/* The treasury desk: walnut furniture, brass hardware and readable paper inserts. */
:root{--ink:#f4e8cf;--gold:#e8c77d;--line:#927043;--panel:#2c1c13f5;--paper:#ecdbb8;--paper-ink:#3e2b1b;--wood:repeating-linear-gradient(3deg,#ffffff03 0 1px,#00000005 2px 5px),linear-gradient(120deg,#503421,#26180f 70%);--brass:linear-gradient(145deg,#f0d99b,#c29a50 48%,#9a7036);--shadow:0 12px 35px #0007,inset 0 1px #ffdfaa30,inset 0 0 0 3px #140b0755}
button{transition:background .15s,box-shadow .15s,transform .15s;color:inherit}
button:hover:not(:disabled){filter:none;box-shadow:0 0 0 1px #f2d29288,0 5px 15px #0004,inset 0 1px #fff4}
button:focus-visible{outline:2px solid #fff0bd;outline-offset:4px}
button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 4px #0005}
button:disabled{opacity:.5;filter:saturate(.35);cursor:default;box-shadow:inset 0 1px #ffffff12}
.big,.big.alt,.pill,.icon,.wtab{border-radius:6px;border:1px solid #b58b4e;min-height:44px;font:600 13px/1.2 system-ui;letter-spacing:.025em}
.big{background:var(--brass);color:#302012;text-shadow:0 1px #fff5;box-shadow:0 3px 0 #62451f,0 5px 12px #0004,inset 0 1px #fff8;padding:12px 18px}
.big.alt,.icon,.wtab{background:var(--wood);border-color:#9e794a;color:#f1ddba;text-shadow:0 1px #0006;box-shadow:0 3px 0 #140c08,inset 0 1px #d3ac6b40}
.big.warning,button.is-warning{background:linear-gradient(#9d4b30,#71311f);border-color:#e9a06d;color:#fff1d8;text-shadow:0 1px #0008}
.ready{box-shadow:0 0 0 2px #edc777,0 0 18px #edbd4430!important}
.pulse{animation:desk-pulse 1.8s ease-in-out infinite}
@keyframes desk-pulse{50%{box-shadow:0 3px 0 #62451f,0 0 17px #f0c36955}}
#top{top:max(16px,env(safe-area-inset-top));left:22px;right:22px;display:flex;gap:16px;align-items:flex-start;justify-content:space-between;pointer-events:none;z-index:3}
#top>*{pointer-events:auto}#top .spacer{display:none}
.treasury-ledger{display:flex;align-items:center;gap:20px;flex:none;padding:12px 20px;background:var(--wood);border:1px solid #b38a4e;border-radius:7px;box-shadow:var(--shadow);position:relative}
.treasury-ledger::after{content:'';position:absolute;inset:4px;border:1px solid #bd965233;border-radius:3px;pointer-events:none}
#money,#timer{border:0;background:none;box-shadow:none;backdrop-filter:none;border-radius:0;padding:0;min-width:0;color:#f8dc99;font-variant-numeric:tabular-nums}
#money{font:30px/1.05 Georgia,serif;min-width:115px}#timer{font:15px/1.2 system-ui;border-left:1px solid #b38a4e55;padding-left:20px;color:#ead8b7}
#money::before,#timer::before{font:9px/1.2 system-ui;letter-spacing:.2em;color:#bda176;display:block;margin-bottom:6px}#money::before{content:'TREASURY'}#timer::before{content:'TIME'}
#deskNav{display:flex;gap:6px;align-items:center;padding:5px;background:#21150eea;border:1px solid #9e794a66;border-radius:7px;box-shadow:var(--shadow)}
#top #deskNav button{background:var(--wood);border:1px solid #977145;border-radius:4px;color:#edd6ae;padding:8px 12px;min-height:48px;display:flex;gap:7px;align-items:center;justify-content:center;font-size:12px;white-space:nowrap;box-shadow:inset 0 1px #f5cf8b1f}
#deskNav button::before{content:'';width:19px;height:19px;flex:none;background:currentColor;mask:var(--nav-icon) center/contain no-repeat;opacity:.88}
#wardBtn{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6a2 2 0 1 1 3 2l-1 1v2L2 18h20l-10-7' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E")}
#collectorsBtn{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h7v16H3zm11 0h7v16h-7M3 15h7m4-4h7M2 2h9m2 0h9' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E")}
#targetBtn{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 22V9a8 8 0 0 1 16 0v13M2 22h20M8 22V9a4 4 0 0 1 8 0v13M13 15h1' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E")}
#bookBtn{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7l2 2 2-2h7v17h-7l-2 2-2-2H3zm9 2v17M6 7h3m-3 4h3m6-4h3m-3 4h3' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E")}
#muteBtn::before{display:none}#top #muteBtn{width:44px;padding:0;font-size:18px}
#top #deskNav button.is-warning{background:linear-gradient(#9d4b30,#71311f);border-color:#e9a06d;color:#fff1d8}
#screenTitle{display:block;position:fixed;top:96px;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:40vw;padding:10px 30px 12px;text-align:center;font:11px Georgia,serif;letter-spacing:.23em;color:#d9bd85;background:var(--wood);border:1px solid #a37b43;border-radius:2px 2px 15px 15px;box-shadow:var(--shadow)}
#screenTitle small{font:19px/1.2 Georgia,serif;letter-spacing:.015em;color:#fae6bb;margin-top:6px}
#stats{top:104px;left:22px;max-width:260px;background:linear-gradient(120deg,#f2e4c7,#d9c19a);border:1px solid #b69a6b;box-shadow:0 4px 16px #0005,inset 0 0 0 3px #fff2;color:#65482b;border-radius:3px;padding:11px 14px;font-size:11px}
#stats b{color:#3b2715}#stats .search-line{display:block;margin-top:7px;color:#6f5436}
#searchTrack{display:block;height:4px;background:#baa17e88;margin-top:7px;border-radius:1px;overflow:hidden}#searchFill{display:block;height:100%;background:#84612e;width:0;transition:width .25s}
#tray{top:190px;left:22px;gap:7px;padding:0}#tray:not(:empty){padding:10px;background:linear-gradient(135deg,#3d2426,#211519);border:1px solid #967146;border-radius:6px;box-shadow:var(--shadow)}
#tray .lbl{background:none;color:#ddc391;font-size:9px;letter-spacing:.16em;text-transform:uppercase;padding:0 2px 4px}
/* the room's 6 discovery slots (owner 2026-11-15): dim until found, lit when found, glowing while waiting */
#tray button.slot{position:relative;animation:none}
#tray button.slot.dim{opacity:.55;cursor:default}
#tray button.slot.dim img{filter:grayscale(1) brightness(.25) contrast(1.2)}
#tray button.slot.waiting{animation:pop .45s;box-shadow:inset 0 0 0 3px #190d10,0 0 12px #ffd75a}
#tray button.slot .tick{position:absolute;right:2px;bottom:1px;font:700 13px system-ui;color:#9fe08a;text-shadow:0 1px 2px #000;font-style:normal}
#tray button{background:radial-gradient(ellipse,#4b2933,#25151b);border:1px solid #bb965a;border-radius:4px;width:54px;height:54px;box-shadow:inset 0 0 0 3px #190d10,0 3px 5px #0005}
#bar{max-width:710px;left:16px;right:16px;bottom:max(20px,env(safe-area-inset-bottom));padding:20px 20px 16px;gap:14px 18px;background:var(--wood);border:1px solid #c09a5e;border-radius:8px;box-shadow:var(--shadow)}
#bar::before{content:'FIELD EQUIPMENT';top:-10px;left:22px;font:9px system-ui;letter-spacing:.18em;background:linear-gradient(#dbc28e,#ae8748);color:#3e2916;border:1px solid #edcc86;padding:4px 12px;border-radius:2px;text-shadow:0 1px #fff4}
.meter{background:linear-gradient(120deg,#eee0c2,#d9c09a);border:1px solid #a78a5d;border-radius:3px;padding:9px;gap:7px;box-shadow:inset 0 1px #fff6;font-size:12px}
.meter span{color:#59402a;font-weight:600;font-size:11px}.meter em{color:#4c3520;opacity:1;font-size:10px}.track{height:8px;background:#a9927070;border:1px solid #886e4666;box-shadow:inset 0 1px 3px #60472655;border-radius:2px}.track i{background:linear-gradient(#cda357,#90672b);box-shadow:none;border-radius:1px}#hopFill{background:linear-gradient(#8a9eaa,#4c6577)}
#bar .row{gap:12px;border-top:1px solid #c3a06444;padding-top:13px;align-items:center}
#tool{opacity:1;font-size:11px;color:#c5ae89;gap:11px;min-width:0}#tool b{font:20px Georgia,serif;color:#f5e0b8;margin-bottom:5px}.tool-symbol{width:47px;height:47px;flex:none;border-radius:5px;border:1px solid #b28b4e;background:linear-gradient(#1e130c,#4b301c);box-shadow:inset 0 0 0 3px #1d120c}
#bar .big{min-height:46px}#shopBtn.big.alt{background:var(--wood);color:#f1ddba;border-color:#bc945a}
#views{top:auto;bottom:25px;right:22px;gap:4px;flex-direction:column;background:#24170ff0;border:1px solid #89653a;padding:6px;border-radius:5px;box-shadow:var(--shadow)}
#views::before{display:block;content:'VIEW';text-align:center;font:8px system-ui;letter-spacing:.19em;color:#bc9e6a;margin:2px 0 4px}
#views button{min-height:32px;padding:6px 10px;font-size:10px;text-align:left;background:var(--wood);border:1px solid #8b673e;border-radius:3px;color:#dfc79e;min-width:86px}
#views button[aria-pressed='true']{background:var(--brass);color:#352415;border-color:#f3d799;box-shadow:inset 0 1px #fff7}
#toast{top:auto;bottom:190px;transform:translateX(-50%);max-width:430px;background:linear-gradient(120deg,#f2e3c3,#dcc397);border:1px solid #b08a4b;border-left:5px solid #9b7234;color:#45301e;padding:12px 18px;border-radius:3px;box-shadow:0 7px 22px #0006;font-size:12px;line-height:1.45}
#toast[data-tone='warning']{border-left-color:#a1482c;background:linear-gradient(120deg,#f2dcc0,#d9b18a);color:#68341f}
#hint{bottom:169px;font-size:10px;color:#d0ba96;text-shadow:0 1px 5px #000;letter-spacing:.03em}
.modal{background:#100b08b3;backdrop-filter:blur(4px);padding:22px}
.card{position:relative;background:repeating-linear-gradient(0deg,#ffffff06 0 1px,#00000002 2px 4px),linear-gradient(115deg,#f5e8ca,#e3cba3);color:var(--paper-ink);border:7px solid #4e321e;outline:1px solid #bc9659;border-radius:7px;padding:25px;max-width:510px;max-height:88dvh;box-shadow:0 30px 90px #000a,inset 0 0 0 1px #bc9659;backdrop-filter:none;scrollbar-color:#ad8750 #ddc49b}
.card h2{font:30px/1.2 Georgia,serif;color:#4b301a;margin:0 0 14px}.card h4{color:#74532d}.card p{font-size:13px;line-height:1.6}.card .roomfacts{color:#6b5238;opacity:1;font-size:12px}.card .roomtag{background:#71502b;color:#f6e5c2;border:1px solid #b28e54;border-radius:2px;letter-spacing:.15em;font-size:9px;padding:4px 9px}
.card .goal,.compare>div{background:linear-gradient(120deg,#e0c499,#f1dfbd);border:1px solid #ad8c59;border-radius:4px;color:#4b321e;box-shadow:inset 0 1px #fff6}
.card .sub{border-bottom:1px solid #a8865344;padding-bottom:7px;font-size:10px;letter-spacing:.05em}.card .bookline{color:#765b3a;opacity:1;font-size:11px}.card .mixkey{color:#5f442a}.mixbar{border:1px solid #a08356;border-radius:3px;box-shadow:inset 0 1px #fff4}.mixbar i b{text-shadow:0 1px 2px #000;color:#fff5db}
.card .cur{background:linear-gradient(#efe0c1,#ddc59c);border:1px solid #ad8c59;border-radius:4px;color:#4b321e;padding:10px 5px;box-shadow:0 3px 5px #75522a14}.card .cur.got{background:#d8ddbd;border-color:#83915d}.card .cur em{color:#785b2f}.card .cur.r-rare{border-color:#9b739f;box-shadow:inset 0 0 0 1px #9b739f33}
.shoprow{padding:15px 0;border-bottom:1px solid #b89b6b66;gap:14px}.shoprow div{font-size:13px}.shoprow small{color:#7c6241;opacity:1;font-size:11px;line-height:1.55}.shoprow .big{min-width:100px;font-size:12px}.shoprow [data-buy]::before{content:'PURCHASE';display:block;font-size:7px;letter-spacing:.16em;margin-bottom:4px}
.msg{color:#943f29}.photo{background:#fff0d4;color:#4b321e;box-shadow:0 3px 8px #5c3e2850;border:1px solid #c4a779}.photo .pic{background:#bdaa87}.photo.empty{opacity:.65}.photo.empty .pic{color:#76603d;background:#ceb994}.photo.r-uncommon .pic{background:#879c7a}.photo.r-rare .pic{background:linear-gradient(135deg,#a789a7,#667f8d)}
#wardrobe{background:var(--wood);border-color:#ad874d;box-shadow:-10px 0 45px #0007,inset 0 0 0 4px #160c0655;border-radius:8px 0 0 8px;padding:18px;color:#efdfc0}
#wName{background:#1d130e;border:1px solid #ad874d;border-radius:4px;color:#f1dfbd;font:21px Georgia,serif;box-shadow:inset 0 2px 4px #0004}.wtab{font-size:12px;border-radius:3px;min-height:40px}.wtab.on{background:var(--brass);border-color:#f0d49b;color:#3b2919}.wcard{background:linear-gradient(135deg,#e9d6b2,#cdb38a);border:1px solid #a08251;border-radius:4px;color:#4c341e;box-shadow:inset 0 1px #fff6;font-size:12px}.wcard.on{background:#f6e7c6;border:1px solid #e8c36e;box-shadow:0 0 0 2px #d5b065}.wsub{color:#d3b57f;opacity:1}.wcard em.price{background:#395d36;color:#eff4d8}.wcard em.lock{background:#79603c;color:#fae9c5}.icon{border-radius:4px}#wMoney{background:#20150e;border-color:#ad874d}
.wardrobe-on #screenTitle,.wardrobe-on #views,.wardrobe-on #hint{display:none}
@media(max-width:1150px){#top #deskNav button{padding:8px 10px;font-size:11px}.treasury-ledger{gap:14px;padding:12px 16px}#money{font-size:26px;min-width:100px}#timer{padding-left:14px}#screenTitle{left:auto;right:22px;transform:none;text-align:right;max-width:48vw}#stats{max-width:235px}#views{bottom:185px;flex-direction:row;right:16px}#views::before{display:none}#views button{min-width:0;min-height:32px}#toast{bottom:240px}}
@media(max-width:720px){#top{left:12px;right:12px;gap:10px}.treasury-ledger{padding:10px 12px;gap:10px}#money{font-size:24px;min-width:88px}#timer{padding-left:10px;font-size:13px}#top #deskNav button{font-size:0;width:39px;padding:7px;gap:0;min-height:43px}#top #muteBtn{font-size:16px;width:39px}#deskNav button::before{width:19px;height:19px}#deskNav{gap:3px;padding:4px}#screenTitle{top:94px;right:12px;max-width:42vw;padding:8px 12px}#screenTitle small{font-size:15px}#stats{top:100px;left:12px;max-width:210px;padding:9px 10px;font-size:10px}#tray{top:183px;left:12px}#bar{bottom:12px;padding:18px 13px 13px;gap:10px}#tool b{font-size:18px}#tool{font-size:10px}.meter{padding:7px;font-size:10px;gap:5px}.meter span{font-size:10px}.meter em{font-size:9px}#bar .row{gap:8px}#bar .big{padding:10px 13px;font-size:12px}#views{bottom:182px;right:12px}#hint{bottom:166px;font-size:9px}.card{padding:20px 16px;border-width:5px}.card h2{font-size:26px}.modal{padding:16px}}
@media(max-width:540px){#top{display:flex;flex-direction:column;align-items:stretch;gap:8px}.treasury-ledger{align-self:flex-start;padding:9px 13px}#deskNav{align-self:flex-end;margin-top:-5px}#top #deskNav button{width:auto;font-size:10px;padding:6px 8px;min-height:38px}#deskNav button::before{width:14px;height:14px;margin-right:4px}#top #muteBtn{width:34px;font-size:15px}#screenTitle{display:none}#stats{top:137px;left:12px;max-width:205px}#tray{top:221px;max-height:32vh;overflow:auto;padding:7px!important}#tray button{width:42px;height:42px}.meter{padding:6px}.meter span{font-size:9px}.meter em{font-size:9px}.track{min-width:15px;height:7px}#bar{left:8px;right:8px;padding:16px 11px 12px;gap:8px}#bar .row{flex-wrap:wrap;gap:10px;padding-top:10px}#tool{flex-basis:100%;gap:9px}.tool-symbol{width:37px;height:37px}#tool b{font-size:18px;margin-bottom:3px}#bar .big{flex:1;min-height:42px}#hint{bottom:214px;font-size:8px}#views{bottom:231px;gap:3px;padding:4px}#views button{font-size:9px;padding:5px 7px;min-height:29px}#toast{bottom:277px;max-width:90vw;font-size:11px}.card{max-height:88dvh}.shoprow{gap:8px}.shoprow .big{min-width:82px;padding:10px}#wardrobe{border-radius:8px 8px 0 0;padding:12px}.wfoot .big{font-size:12px}}
@media(max-width:365px){#top #deskNav button{font-size:9px;padding:6px}#deskNav button::before{width:12px;height:12px;margin-right:3px}#deskNav{gap:2px}#top #muteBtn{width:29px}}
@media(max-height:650px) and (min-width:721px){#top{top:9px}.treasury-ledger{padding:8px 14px}#top #deskNav button{min-height:40px}#screenTitle{top:76px;padding:6px 18px}#screenTitle small{font-size:16px}#stats{top:82px;padding:7px 11px}#tray{top:155px}#bar{padding:16px 15px 12px;bottom:12px;gap:9px}#bar .row{padding-top:9px}#hint{bottom:156px}#views{bottom:168px}#toast{bottom:210px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Room briefing: an opened walnut treasury case. */
#introCard{max-width:880px;width:100%;padding:26px;background:repeating-linear-gradient(0deg,#ffffff03 0 1px,transparent 1px 5px),linear-gradient(105deg,#49301f,#281b15 55%,#49301f);border:9px solid #382318;outline:2px solid #ac8750;color:#efdfbe;box-shadow:0 28px 100px #000c,inset 0 0 0 2px #947044,inset 0 0 24px #0008;text-align:left}
.case-heading{text-align:center;border-bottom:1px solid #a17d474f;padding-bottom:18px;margin-bottom:20px}.case-heading .roomtag{background:#231b14;border-color:#8a6a3e;color:#d4b576}.case-heading h2{color:#f3deb0!important;font-size:34px!important;margin:10px 0 5px!important;text-shadow:0 2px 3px #0008}.case-subtitle{font:italic 13px Georgia,serif;color:#c9b596}.case-interior{display:grid;grid-template-columns:.85fr 1.15fr;gap:20px}.case-label{font:10px system-ui;text-transform:uppercase;letter-spacing:.18em;color:#d9bf85}.ring-display{background:radial-gradient(ellipse at 50% 32%,#335a50,#142f2a 64%,#10231f);box-shadow:inset 0 0 28px #0009,0 0 0 1px #a4834b;padding:23px 20px;text-align:center;border:5px solid #2a2118;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:center}.ring-mount{width:160px;height:143px;display:grid;place-items:center;position:relative;background:radial-gradient(ellipse,#daba6730,transparent 66%);filter:drop-shadow(0 10px 6px #0008)}.ring-mount svg{max-width:100%}.ring-display h3{font:24px Georgia,serif;color:#f3dfae;margin:0 0 10px}.ring-description{font-size:13px;line-height:1.6;color:#e2d7bd}.ring-caution{font-size:10px;color:#bcbca6;border-top:1px solid #c8bc8e38;padding-top:13px;margin-top:18px}.room-dossier{color:#4b321e;background:repeating-linear-gradient(0deg,#ffffff06 0 1px,transparent 1px 4px),linear-gradient(120deg,#f0e0bb,#d7bd90);padding:17px 19px;box-shadow:0 5px 12px #0006;transform:rotate(.5deg);border:1px solid #b3996d}.dossier-title{font:italic 18px Georgia,serif;border-bottom:1px solid #a18150;padding-bottom:8px;display:flex;justify-content:space-between}.dossier-title span{font:10px system-ui;align-self:center;letter-spacing:.12em}.survey-facts{margin:10px 0;font-size:11px}.survey-facts div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dotted #987b5155;padding:6px 0}.survey-facts dt{color:#705435}.survey-facts dd{margin:0;font-weight:700}.value-note{font-size:10px;color:#745536;margin:-1px 0 8px}.room-dossier .sub{margin-top:13px}.room-dossier .bookline{line-height:1.4;font-size:10px}.vault-illustration{height:85px;position:relative;overflow:hidden;margin:12px 0 5px;background:linear-gradient(#34302b,#5e4a33);border:3px solid #987b51;box-shadow:inset 0 0 20px #0008}.vault-arch{position:absolute;width:108px;height:100px;border:12px solid #897655;border-radius:65px 65px 0 0;left:50%;transform:translateX(-50%);top:5px;box-shadow:0 0 0 2px #30291f,inset 0 0 15px #000;background:#171e1b}.vault-glow{height:75px;background:radial-gradient(ellipse at bottom,#e7ae5599,transparent 65%)}.vault-coins{position:absolute;bottom:14px;left:-50px;width:185px;height:35px;transform:rotate(-5deg);border-radius:50% 50% 0 0;background:radial-gradient(ellipse,#edc86b 0 30%,#977136 32% 46%,transparent 49%) 0 0/15px 9px,#ab8846;box-shadow:0 -5px 15px #d5a74544}.vault-floor{position:absolute;bottom:0;height:10px;left:0;right:0;background:linear-gradient(#5d492e,#32291e)}
#introCard .collectible-shelf{margin-top:20px}#introCard .collectible-shelf .sub{color:#d9c293;border-color:#a17d4755}#introCard .curios{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}#introCard .cur{padding:10px 4px 8px;min-width:0;position:relative}#introCard .cur .ci{display:grid;place-items:center;width:100%;height:45px;background:radial-gradient(ellipse,#9e78452b,transparent);font-size:32px}#introCard .cur small{text-align:center;min-height:27px;font-size:10px;font-weight:600}#introCard .cur em{font-size:9px;text-align:center}#introCard .collectible-shelf .bookline{text-align:center;color:#bba98a;font-size:10px;margin-top:10px}.expedition-steps{list-style:none;padding:14px 0;margin:16px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:13px;border-top:1px solid #a17d474f}.expedition-steps li{display:flex;align-items:center;gap:9px}.expedition-steps li>span{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid #9b7a47;border-radius:50%;font:24px Georgia;color:#dfbf77;background:#241d15}.expedition-steps b{font-size:11px;color:#ecd7b0;display:block}.expedition-steps small{font-size:10px;color:#c0ad8e;display:block;margin-top:3px;line-height:1.4}.case-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;padding-top:16px;border-top:1px solid #a17d474f;margin-top:12px}.case-actions .big{min-width:245px;min-height:49px;font-size:16px}.case-actions .big span{margin-left:22px}.case-actions .alt{min-width:120px}.case-actions>small{flex-basis:100%;text-align:center;color:#bba98a;font-size:10px}
@media(max-width:620px){#introCard{padding:18px 14px;border-width:6px}.case-heading h2{font-size:27px!important}.case-interior{grid-template-columns:1fr;gap:14px}.ring-display{padding:16px;display:grid;grid-template-columns:100px 1fr;column-gap:14px;text-align:left}.case-label{grid-column:1/-1;text-align:center;margin-bottom:10px}.ring-mount{grid-column:1;grid-row:2/4;width:100px;height:100px}.ring-mount svg{width:90px;height:90px}.ring-display h3{font-size:21px;margin-bottom:5px}.ring-description{font-size:12px}.ring-caution{grid-column:1/-1;text-align:center;margin-top:10px;padding-top:10px;width:100%}.room-dossier{transform:none}.vault-illustration{height:65px}#introCard .curios{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.expedition-steps{grid-template-columns:1fr;gap:12px}.expedition-steps small{margin-top:2px}.case-actions .big{width:100%;min-width:0}.case-heading{margin-bottom:16px;padding-bottom:15px}}
@media(prefers-reduced-motion:no-preference){#intro:not([hidden]) #introCard{animation:case-open .35s ease-out}@keyframes case-open{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}}
/* Room title plaque sits top-left, above the treasury/time ledger (owner's call); the ledger, stats card and tray move down under it. */
@media(min-width:541px){#screenTitle{top:max(16px,env(safe-area-inset-top));left:22px;right:auto;transform:none;text-align:left;max-width:min(380px,46vw);padding:8px 18px 10px}.treasury-ledger{margin-top:var(--title-gap,70px)}#stats{top:calc(104px + var(--title-gap,70px))}#tray{top:calc(190px + var(--title-gap,70px))}}
@media(min-width:541px) and (max-width:720px){#screenTitle{left:12px;max-width:60vw}#stats{top:calc(100px + var(--title-gap,70px))}#tray{top:calc(183px + var(--title-gap,70px))}}
@media(max-height:650px) and (min-width:721px){#screenTitle{top:9px}#stats{top:calc(82px + var(--title-gap,70px))}#tray{top:calc(155px + var(--title-gap,70px))}}
/* Phones (playtest 2026-11-15): 44 px touch targets, and the room splash keeps its start button in reach. */
@media(max-width:540px){#top #deskNav button{min-height:44px}#top #muteBtn{width:44px;min-width:44px;flex:none}#views{bottom:226px;gap:4px}#views button{min-height:44px;min-width:0;padding:6px 10px;font-size:11px}#hint{bottom:210px}#toast{bottom:292px}}
@media(max-width:620px){#introCard .vault-illustration{display:none}#introCard .case-actions{position:sticky;bottom:-18px;z-index:2;margin:14px -14px -18px;padding:12px 14px 14px;background:linear-gradient(0deg,#2a1c14 70%,#2a1c14e6);border-top:1px solid #a17d474f}}
/* Shop tabs and next-item rows (2026-11-15): each row shows only what you'd buy next. */
#shopTabs{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:2px 0 10px;padding-bottom:10px;border-bottom:1px solid #b89b6b66}
#shopTabs button{position:relative;font:600 12px Georgia,serif;padding:8px 14px;min-height:40px;border-radius:999px;background:#efe2c4;border:1px solid #b89b6b;color:#6b4e2e;cursor:pointer}
#shopTabs button[aria-selected="true"]{background:var(--brass);border-color:#8a6a3b;color:#2e1f12;box-shadow:inset 0 1px #fff8,0 2px 6px #0003}
#shopTabs .dot{position:absolute;top:4px;right:6px;width:7px;height:7px;border-radius:50%;background:#2f7d3a;box-shadow:0 0 0 2px #efe2c4}
.shoprow .kicker{display:flex;align-items:center;gap:8px;font:600 9px system-ui;letter-spacing:.14em;text-transform:uppercase;color:#9a7b52;margin-bottom:3px}
.shoprow .pips{display:inline-flex;gap:3px}
/* floor paintings (floor.js): win card note and the photo book's Floors page */
.floorwon{display:flex;gap:12px;align-items:center;justify-content:center;margin:6px 0 10px;text-align:left}
.floorwon img{width:120px;aspect-ratio:3/2;object-fit:cover;border-radius:6px;border:3px solid #fffaf0;box-shadow:0 3px 8px rgba(40,25,10,.35);transform:rotate(-2deg)}
.floorwon small{font-size:12px;line-height:1.45;color:#5a4128}
.book-floors-title{margin:18px 0 2px;font:600 20px Georgia,serif}
.book.floors .photo .pic{aspect-ratio:3/2;height:auto;overflow:hidden;background:#3a2c22;border-radius:4px}
.book.floors .photo .pic img{width:100%;height:100%;object-fit:cover}
.book.floors .photo.empty .pic{background:repeating-linear-gradient(45deg,#4a3a2c 0 8px,#3a2c22 8px 16px)}
.shoprow .shopico{flex:0 0 58px;height:58px;display:flex;align-items:center;justify-content:center}
.shoprow .shopico img{max-width:100%;max-height:100%;filter:drop-shadow(0 2px 3px rgba(58,38,20,.35))}
.shoprow.maxed .shopico img{opacity:.8}
.shoprow .pips i{width:7px;height:7px;border-radius:50%;border:1px solid #b08d57;background:transparent}
.shoprow .pips i.on{background:#b08d57}
.shoprow b{display:block;font:600 16px Georgia,serif;color:#3a2614}
.shoprow.maxed b{color:#8f7a5c}
.shoprow.maxed small{color:#5d7d4a}
@media(max-width:540px){#shopTabs button{padding:8px 11px;font-size:11px;min-height:44px}}
/* odd-item pop-up: keyboard hint and "Game paused" note */
#snapBtn kbd{display:inline-block;margin-left:8px;padding:1px 6px;border:1px solid #7c5a2b;border-radius:4px;font:600 10px system-ui;background:#fff6;color:#3a2614}
.pausenote{font:600 10px system-ui;letter-spacing:.16em;text-transform:uppercase;color:#9a7b52;margin:6px 0 0;text-align:center}
