/* Scoped to the local treasure addition; existing title/result identities stay intact. */
.treasure-result,.treasure-board{color:#f3e8ce;background:#14271f;font:18px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;caret-color:#e3ca91;scrollbar-color:#b9a06a #14271f}
.treasure-result{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);gap:32px;width:min(920px,calc(100% - 32px));margin:24px auto;padding:28px;border:1px solid #b9a06a;border-radius:12px}
.treasure-result.treasure-lost{display:block}
.victory-treasure{grid-column:1/-1;border-top:1px solid #b9a06a}
.victory-treasure .treasure-result{width:100%;margin:0;padding:28px 0 0;border:0;border-radius:0;background:transparent}
#game-dialog .blue-loot-offer .quest-card-footer p.treasure-loot-note{margin:8px auto 0;max-width:42ch;text-align:center;font:18px/1.35 AtlasLoot,Georgia,serif;color:#f3e8ce}
.treasure-copy{min-width:0;align-self:center}
.treasure-result h2,.treasure-board h2{font-family:AtlasLoot,Cinzel,Georgia,serif;font-size:32px;line-height:1.15;font-weight:600;margin:0 0 16px;text-wrap:balance;color:#fff1ce}
.treasure-card{display:block;width:100%;height:auto;object-fit:contain;align-self:start;border-radius:8px}
.treasure-result p,.treasure-board p{max-width:68ch;margin:0 0 16px}
.treasure-result .treasure-note,.treasure-board .treasure-note{font-size:15px;color:#cfbea0;line-height:1.45}
.treasure-form{display:grid;gap:10px;margin:24px 0 0}
.treasure-form label{font-size:18px;font-weight:600}
.treasure-form input{display:block;box-sizing:border-box;min-width:0;width:100%;min-height:48px;border:1px solid #b9a06a;border-radius:8px;background:#14271f;color:#fff1ce;padding:10px 12px;font:16px/1.5 system-ui,sans-serif;caret-color:#e3ca91}
.treasure-form input::placeholder{color:#cfbea0}
.treasure-form .treasure-primary{justify-self:start;min-height:52px;margin:6px 0;padding:10px 24px;border:1px solid #b9a06a;border-radius:8px;background:#e3ca91;color:#172b21;font:600 21px/1.2 AtlasLoot,Cinzel,Georgia,serif;cursor:pointer}
.treasure-form .treasure-primary:hover{background:#f3dda8}.treasure-form .treasure-primary:active{background:#d9b574}
.treasure-form .treasure-primary:disabled{background:#b9ad8d;color:#394332;cursor:wait}
.treasure-link{display:inline-block;padding:10px 0;color:#e3ca91;min-height:44px;text-underline-offset:4px}
.treasure-link:hover{color:#fff1ce}
.treasure-form input:focus-visible,.treasure-primary:focus-visible,.treasure-link:focus-visible{outline:3px solid #fff1ce;outline-offset:4px}
.treasure-result ::selection,.treasure-board ::selection{background:#e3ca91;color:#14271f}
.treasure-feedback:empty{display:none}.treasure-result .treasure-feedback{margin:16px 0 0;color:#f3e8ce}.treasure-result .treasure-feedback[data-error]{color:#ffd5ba}
.treasure-earned strong,.treasure-table td:last-child{font-variant-numeric:tabular-nums}
.treasure-wallets{list-style:none;margin:0 0 16px;padding:0;overflow-wrap:anywhere;font-size:16px}
.treasure-board{padding:48px max(24px,env(safe-area-inset-right));border-top:1px solid #b9a06a}
.treasure-board-inner{display:grid;grid-template-columns:180px minmax(0,1fr);gap:40px;max-width:1000px;margin:auto}
.treasure-table{width:100%;border-collapse:collapse;margin:24px 0;text-align:left;font-size:16px;table-layout:fixed}
.treasure-table caption{text-align:left;font-size:18px;margin-bottom:12px;color:#e3ca91}
.treasure-table th,.treasure-table td{padding:12px 0;border-bottom:1px solid #b9a06a;vertical-align:top;overflow-wrap:anywhere}
.treasure-table th:last-child,.treasure-table td:last-child{width:110px;text-align:right;padding-left:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.treasure-table th{color:#cfbea0;font-weight:500}.treasure-table td:last-child{font-weight:700;color:#fff1ce}
.treasure-restart-warning{max-width:65ch;color:#183b30;font-size:18px;line-height:1.5}
.title-menu .title-treasure-link{margin-top:10px;color:#fff1ce;font-size:18px}
@media(max-width:600px){.treasure-result{grid-template-columns:1fr;width:calc(100% - 24px);gap:24px;padding:20px}.treasure-result .treasure-card{max-width:200px;justify-self:center}.treasure-result h2,.treasure-board h2{font-size:28px}.treasure-board{padding:32px 24px}.treasure-board-inner{grid-template-columns:1fr;gap:24px}.treasure-board .treasure-card{max-width:160px;justify-self:center}.treasure-form .treasure-primary{justify-self:stretch}.treasure-table{font-size:14px}}
