/* Inventory and exchange: scoped to preserve the shared Avenor theme. */
.exchange-page{--ex-ink:#3f2c24;--ex-muted:#796052;--ex-line:#e9c995;max-width:1120px;margin:0 auto;color:var(--ex-ink);font-family:Rubik,sans-serif;line-height:1.6}.exchange-page *{box-sizing:border-box}.exchange-page h1,.exchange-page h2,.exchange-page h3{font-family:Rubik,sans-serif;color:var(--ex-ink);text-transform:none;letter-spacing:-.035em;margin:0;font-weight:800}.exchange-page h1{font-size:clamp(30px,4vw,48px);line-height:1.15}.exchange-page h2{font-size:25px;line-height:1.3;margin-bottom:12px}.exchange-page h3{font-size:18px;overflow-wrap:anywhere}.exchange-page p{margin:10px 0}.ex-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.13em;color:#896132;margin-bottom:10px}.ex-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:32px 8px}.ex-hero p{color:var(--ex-muted);font-size:16px;max-width:440px}.ex-hero-art{background:#ffedc8;border:1px solid #f4cd84;border-radius:50% 42% 48% 38%;width:190px;height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;transform:rotate(5deg);flex-shrink:0}.ex-hero-art img{width:170px;height:auto;object-fit:contain;filter:drop-shadow(0 8px 5px #78532125);transform:rotate(-5deg)}.ex-hero-art span{font-size:11px;font-weight:700;transform:rotate(-5deg)}.ex-links{display:flex;flex-wrap:wrap;gap:24px;margin-top:23px;font-size:14px;font-weight:700}.ex-link{font-weight:700;font-size:14px}.exchange-page a:hover{text-decoration:underline;text-underline-offset:4px}.ex-balance{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#493226;color:#fff0d2;border:1px solid #39251b;border-bottom:5px solid #312018;border-radius:20px;padding:22px 28px;margin:12px 0 26px}.ex-balance .ex-eyebrow{color:#ecc990;margin-bottom:3px}.ex-balance strong{font-size:30px;font-weight:800;line-height:1.2}.ex-balance a{color:#ffdc91}.ex-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}.ex-panel{background:#fff8e9;border:1px solid var(--ex-line);border-bottom:4px solid #dec08d;border-radius:20px;padding:28px;min-width:0;box-shadow:0 8px 24px #6e461407}.ex-muted{color:var(--ex-muted);font-size:14px;line-height:1.7}.ex-form{display:grid;gap:16px;margin-top:22px}.exchange-page label{display:block;font-size:13px;font-weight:700}.ex-optional{font-weight:400;color:var(--ex-muted)}.exchange-page input:not([type=hidden]):not([type=checkbox]){display:block;width:100%;min-height:48px;margin-top:7px;background:#fffdf6;border:1px solid #d7b785;border-radius:10px;padding:12px 14px;font:400 16px Rubik,sans-serif;color:var(--ex-ink);box-shadow:inset 0 2px 0 #b28c4910}.exchange-page input::placeholder{color:#967d6a;opacity:1}.exchange-page :is(a,button,input,summary):focus-visible{outline:3px solid #21858f;outline-offset:4px}.exchange-page button{min-height:46px;font-size:13px;letter-spacing:.02em;white-space:normal;line-height:1.4}.ex-form button{width:100%;margin-top:2px}.ex-help{font-size:12px;color:var(--ex-muted);line-height:1.6}.ex-form .ex-help{margin:-8px 0 0}.ex-note{font-size:12px;color:#775b3d;padding:14px 16px;background:#ffedc7;border-radius:10px;line-height:1.7}.ex-transfer>.ex-note{margin-top:22px}.ex-section-heading{display:flex;gap:14px;align-items:center;margin-bottom:12px}.ex-section-heading .ex-eyebrow{margin-bottom:3px}.ex-section-heading h2{margin-bottom:0}.ex-product{padding:20px 0;border-bottom:1px solid var(--ex-line)}.ex-product:last-of-type{border-bottom:0}.ex-badge{display:inline-block;background:#e5efda;border:1px solid #c5d7b1;color:#45622c;font-size:11px;font-weight:700;padding:4px 9px;border-radius:7px;margin:3px 0 12px}.ex-product-actions{display:grid;gap:8px}.ex-product details{border:1px solid #e5cda7;background:#fffdf5;border-radius:10px;padding:0 14px}.ex-product summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:13px;font-weight:700}.ex-product details[open]{padding-bottom:16px}.ex-product details[open] summary{border-bottom:1px solid #ead7b8}.ex-product details form{margin-top:14px}.exchange-page .ex-checkbox{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:13px;margin:14px 0}.ex-checkbox input{width:18px;height:18px;accent-color:#735135;flex-shrink:0;margin-top:2px}.ex-empty{text-align:center;padding:38px 12px}.ex-empty p{font-size:14px;color:var(--ex-muted)}.ex-empty-symbol{display:block;color:#cd9339;font-size:36px;margin-bottom:10px}.ex-pagination{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;border-top:1px solid var(--ex-line);padding-top:18px;margin-top:14px;font-size:12px}.ex-pagination span{color:var(--ex-muted)}.ex-pagination a{font-weight:700;min-height:32px;display:inline-flex;align-items:center}.ex-history{margin-top:24px}.ex-history-row{position:relative;border-bottom:1px solid var(--ex-line);padding:18px 170px 18px 0;overflow-wrap:anywhere;font-size:14px}.ex-history-row:last-of-type{border-bottom:0}.ex-history-row p{margin:4px 0}.ex-history-row time{position:absolute;right:0;top:23px;color:var(--ex-muted);font-size:12px}.ex-description{font-style:italic;color:#7d6248}.ex-attribution{font-size:10px;color:#816346;text-align:right;padding:4px}.exchange-page .alert{padding:16px 20px;border-radius:12px;margin-bottom:20px;font-size:14px}.exchange-page .alert-success{background:#e4efda;color:#375024;border:1px solid #b6cb9b}.exchange-page .alert-error{background:#ffe5dc;color:#8b342b;border:1px solid #e9b0a0}.ex-confirm{max-width:650px;padding:36px}.ex-confirm h1{font-size:32px}.ex-confirm>p{font-size:14px;margin:18px 0}.ex-receipt{background:#fffdf7;border:1px solid var(--ex-line);border-radius:14px;padding:22px;display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;margin:26px 0}.ex-receipt dt{font-size:13px;color:var(--ex-muted)}.ex-receipt dd{font-weight:700;font-size:15px;margin:0;overflow-wrap:anywhere}.ex-confirm form{margin:12px 0}.ex-confirm form button{width:100%}.ex-confirm>.ex-link{display:inline-block;margin-top:14px}
@media(max-width:760px){.ex-layout{grid-template-columns:minmax(0,1fr)}.ex-hero{padding:20px 0;gap:12px}.ex-hero-art{width:112px;height:130px}.ex-hero-art img{width:108px;height:auto}.ex-hero-art span{display:none}.ex-panel{padding:22px}.ex-balance{padding:20px}.ex-history-row{padding-right:0}.ex-history-row time{position:static;display:block;margin-top:8px}.ex-confirm{padding:24px}}
@media(max-width:420px){.ex-hero-art{display:none}.ex-balance{align-items:flex-start;flex-direction:column;gap:12px}.ex-panel{padding:18px}.ex-receipt{grid-template-columns:minmax(0,1fr);gap:6px;padding:16px}.ex-receipt dd{margin-bottom:10px}.ex-links{gap:16px}.ex-confirm h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){.exchange-page *{transition:none!important;animation:none!important}.exchange-page button:hover,.exchange-page button:active{transform:none}}

.ex-section-heading>img{flex-shrink:0;object-fit:contain;filter:drop-shadow(0 3px 2px #78532120)}

.ex-hero-art img{width:128px;height:128px;object-fit:contain}
@media(max-width:760px){.ex-hero-art img{width:100px;height:100px}}
/* Warm wood inventory, with real product artwork and accessible item dialogs. */
.exchange-page{--ex-muted:#664b3c;--ex-line:#c99c65}.ex-panel{background:#e9c393;border-color:#bf915c;border-bottom-color:#a47443}.ex-note,.ex-receipt{background:#f0d3a7}.exchange-page input:not([type=hidden]):not([type=checkbox]){background:#f4dcb6;border-color:#bc8d58}.exchange-page input::placeholder{color:#80604b}.ex-hero-art{background:#eac28a;border-color:#c89857}.ex-slot-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:22px 0 12px;padding:13px;background:#a06b49;border:3px solid #573528;border-radius:8px;box-shadow:inset 0 3px 0 #e1ad73,inset 0 -4px 0 #71452f,0 4px 0 #bf915c;isolation:isolate}.exchange-page .ex-slot{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;min-width:0;min-height:0;padding:6px;border:2px solid #59372e;border-radius:2px;background:#875347;box-shadow:inset 3px 3px 0 #653d35,inset -3px -3px 0 #bd8862,0 0 0 1px #ca965e;cursor:pointer;overflow:visible;transform:none}.ex-slot img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #2f1c2080);transition:transform .16s ease;pointer-events:none}.ex-slot-mark{position:absolute;bottom:3px;right:6px;font-size:12px;font-weight:800;color:#fff0cf;text-shadow:1px 2px #38261e;pointer-events:none}.ex-slot-used img{opacity:.55}.exchange-page .ex-slot-empty{cursor:default;background:#794b42}.exchange-page .ex-slot:focus-visible{z-index:1;outline-color:#ffe1a0}.ex-slot:focus-visible img{transform:scale(1.14)}
@media(hover:hover) and (pointer:fine){.ex-slot:not(.ex-slot-empty):hover{background:#a56c52;z-index:1}.ex-slot:hover img{transform:scale(1.16)}}
.exchange-page .ex-item-dialog{position:fixed;inset:0;margin:auto;width:calc(100% - 32px);max-width:440px;max-height:85vh;max-height:85dvh;overflow:auto;padding:28px;border:2px solid #8c5b39;border-bottom:5px solid #70472f;border-radius:18px;background:#edcca1;color:var(--ex-ink);box-shadow:0 20px 80px #20140f55}.ex-item-dialog::backdrop{background:#24160fb3}.ex-dialog-icon{display:block;margin:0 auto 12px;object-fit:contain;filter:drop-shadow(0 5px 3px #70472f30)}.ex-item-dialog h3,.ex-item-dialog> .ex-help{text-align:center}.exchange-page .ex-dialog-close{position:absolute;right:10px;top:10px;width:38px;min-height:38px;border-radius:12px;background:#d7ac79;border:1px solid #ae7e4b;font-size:24px;cursor:pointer}.ex-product details{background:#e6b987;border:1px solid #b48050;border-bottom:3px solid #a36c41}.ex-product details:nth-child(2){background:#d7c58e;border-color:#aaa06a}.ex-product summary{list-style:none;text-align:center;padding:12px 0;font-size:14px}.ex-product summary::-webkit-details-marker{display:none}.ex-product summary:hover{color:#7d3e19}.ex-product details[open] summary{border-bottom-color:#bc8d58}.ex-pagination a{background:#d9ad76;border:1px solid #b1804e;border-bottom-width:3px;border-radius:9px;padding:7px 12px}.ex-pagination{gap:10px}.ex-badge{background:#d3e1b2;border-color:#a1b57d}.ex-history{background:#e3bc8c}
@media(max-width:420px){.ex-slot-board{grid-template-columns:repeat(4,minmax(0,1fr));padding:10px;gap:6px}.exchange-page .ex-item-dialog{padding:22px}.ex-slot-mark{font-size:11px}}

/* Transfer receipts share the site's cached player heads. */
.ex-history-row{padding-top:22px;padding-bottom:22px}.ex-history-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:12px}.ex-history-status{display:inline-flex;align-items:center;padding:3px 9px;border:1px solid #8d9f60;border-radius:7px;background:#d2dda8;color:#3d5326;font-size:11px;font-weight:700;white-space:nowrap}.ex-history-status-game{background:#f0d092;border-color:#b88e4f;color:#654420}.ex-history-players{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}.ex-history-player{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;font-weight:600}.ex-history-player img{width:32px;height:32px;flex-shrink:0;image-rendering:pixelated;border:1px solid #9c704b;border-radius:5px;background:#c5996c;box-shadow:0 2px 0 #a1744c}.ex-history-player>span{overflow-wrap:anywhere;min-width:0}.ex-history-arrow{color:#87603e;font-size:18px}.ex-history-destination{font-size:13px;color:var(--ex-muted)}.ex-history-row .ex-description{display:inline-block;max-width:100%;padding:7px 12px;margin-top:12px;background:#edcda3;border-left:3px solid #a87948;border-radius:0 7px 7px 0;font-size:13px}.ex-history-row time{top:26px;font-variant-numeric:tabular-nums}
@media(max-width:760px){.ex-history-row time{margin-top:12px}.ex-history-heading{gap:8px}.ex-history-players{gap:8px}}

/* Inventory-only parchment highlights; decorative overlays never intercept input. */
.inventory-page :is(.ex-panel,.ex-balance,.ex-slot-board){position:relative;border-radius:10px}
.inventory-page :is(.ex-panel,.ex-balance,.ex-slot-board)::before,
.inventory-page .ex-slot::after{content:"";position:absolute;inset:0;pointer-events:none;border:16px solid transparent;border-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2296%22%20height%3D%2296%22%20viewBox%3D%220%200%2096%2096%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23ce9650%22%20stroke-width%3D%221%22%20d%3D%22M15%203%20Q8%202%205%209%20L3%2019%204%2045%203%2075%20Q2%2087%2013%2091%20L31%2092%2064%2092%2081%2091%20Q92%2089%2093%2080%20L92%2051%2093%2023%20Q94%208%2083%204%20L62%203%2035%204Z%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23ffe1a0%22%20stroke-width%3D%222%22%20d%3D%22M15%206%20Q8%205%208%2014%20L7%2024%20M24%206%20L72%206%20Q88%205%2089%2017%20M7%2072%20L7%2079%20Q6%2087%2019%2088%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23b77a36%22%20stroke-opacity%3D%22.35%22%20stroke-width%3D%222%22%20d%3D%22M24%2090%20L76%2090%20Q90%2090%2091%2078%22%2F%3E%3C%2Fsvg%3E") 24 / 16px / 0 stretch}
.inventory-page .ex-slot::after{border-width:8px;border-image-width:8px;opacity:.65}
.inventory-page .ex-slot-empty::after{opacity:.3}
