@font-face{font-family:BottleLabel;src:url('assets/working-standard-game-assets/font-for-bottle-label.ttf') format('truetype');font-display:swap}
*{box-sizing:border-box} [hidden]{display:none!important}
:root{font-family:Inter,'Segoe UI',system-ui,sans-serif;color:#fff;--navy:#08244e;--gold:#ffe5a0;--ease:cubic-bezier(.2,.8,.2,1)}
body{margin:0;background:#081a31;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:default}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #ffe5a0;outline-offset:5px}
#app{position:fixed;inset:0;height:100dvh;isolation:isolate;background:#0b2340}#stage{position:absolute;inset:0;overflow:hidden}.view{position:absolute;inset:0;overflow:hidden;display:grid;place-items:center}.view:not([hidden]){animation:page-arrive .5s var(--ease) both}.scene{position:absolute;container-type:inline-size}.scene>img,.scene>video{display:block;width:100%;height:100%;object-fit:fill}.scene>video{object-fit:cover}.title-art{position:absolute;inset:0}.title-art img{width:100%;height:100%;object-fit:cover;display:block}#intro::after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#09255118);pointer-events:none}
.topbar{position:absolute;top:max(15px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;z-index:6;pointer-events:none}.topbar>*{pointer-events:auto}.exit-control{display:flex;align-items:center;gap:8px;padding:7px 15px 9px 12px;font-size:13px;font-weight:750;border:1px solid #d5efff70;border-radius:30px;background:#083269bb;backdrop-filter:blur(12px);box-shadow:0 4px 15px #041b4333;transition:background .2s,transform .2s}.exit-control>span:first-child{font-size:25px;line-height:1}.exit-control:hover{background:#134ea8;transform:translateX(-2px)}.tools{display:flex;align-items:center;gap:10px}.tools button{width:37px;height:37px;border:1px solid #d5efff70;border-radius:50%;background:#083269b8;backdrop-filter:blur(12px);color:#fff;font-weight:800;font-size:20px;transition:transform .2s,background .2s}.tools button:hover{transform:scale(1.08);background:#155bc3}.tools #fullscreen{font-size:25px}#timer{display:grid;place-items:center;width:58px;height:58px;border:4px solid #94e9ff;background:radial-gradient(circle,#133867,#082345);border-radius:50%;box-shadow:0 3px 18px #001f4d66,0 0 15px #77dcff44;font-size:18px;font-weight:850;font-variant-numeric:tabular-nums;transition:border-color .4s,background .4s}#timer.urgent{border-color:#ffc15d;color:#fff0ca;animation:timer-beat 1s infinite}#app[data-view="cabinet"][data-video="playing"] #how-to{display:none}
.intro-panel{position:absolute;z-index:2;left:50%;bottom:max(5.5%,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;gap:10px;width:max-content;max-width:90%;animation:launch-arrive .8s .15s var(--ease) both}.mission-facts{display:flex;align-items:center;gap:12px;background:#07234ec9;border:1px solid #bbdcff60;backdrop-filter:blur(12px);padding:8px 18px;border-radius:30px;box-shadow:0 8px 20px #07244f22;font-size:12px;color:#eff8ff}.mission-facts b{font-size:17px;color:#ffe7a8;margin-right:3px}.mission-facts i{height:15px;width:1px;background:#d1edff55}.art-button{padding:0;border:0;background:none;width:clamp(210px,29vw,390px);filter:drop-shadow(0 7px 4px #08366a80);transition:transform .2s;animation:start-float 3s ease-in-out infinite}.art-button img{width:100%;display:block}.art-button:hover{animation:none;transform:translateY(-4px) scale(1.03)}.art-button:active{transform:translateY(2px) scale(.98)}
#boxes{position:absolute;inset:0}.box{position:absolute;left:38.3%;width:23.7%;height:14.3%;padding:0;border:0;border-radius:4%;background:none;isolation:isolate;outline:none;transition:filter .25s,transform .25s;transform-origin:center;--delay:0s}.box:nth-child(1){top:23.6%}.box:nth-child(2){top:39.5%;--delay:.25s}.box:nth-child(3){top:55.4%;--delay:.5s}.box:nth-child(4){top:71.3%;height:12.2%;--delay:.75s}.box-glass{position:absolute;inset:0;border-radius:4%;background:linear-gradient(115deg,#74dfff00,#b1eaff18,#74dfff00);box-shadow:inset 0 0 18px #89dcff22,0 0 12px #89dcff33;border:1px solid #b4efff55;transform:skewY(-2.5deg);animation:drawer-beckon 3s var(--delay) ease-in-out infinite}.box-corners{position:absolute;inset:0;transform:skewY(-2.5deg);filter:drop-shadow(0 0 4px #60dfff)}.box-corners i{position:absolute;width:12%;height:22%;border-color:#d0f6ff;border-style:solid;border-width:0;opacity:.85;transition:width .25s,height .25s,opacity .25s}.box-corners i:nth-child(1){left:0;top:0;border-left-width:2px;border-top-width:2px;border-radius:6px 0 0 0}.box-corners i:nth-child(2){right:0;top:0;border-right-width:2px;border-top-width:2px;border-radius:0 6px 0 0}.box-corners i:nth-child(3){right:0;bottom:0;border-right-width:2px;border-bottom-width:2px;border-radius:0 0 6px 0}.box-corners i:nth-child(4){left:0;bottom:0;border-left-width:2px;border-bottom-width:2px;border-radius:0 0 0 6px}.box-handle{position:absolute;left:44%;top:43%;width:12%;height:19%;border-radius:50%;background:#c8f4ff35;box-shadow:0 0 0 0 #c8f4ff4d;animation:tap-ripple 3s var(--delay) infinite;pointer-events:none}.box:hover,.box:focus-visible{filter:brightness(1.12);transform:translateY(-1%)}.box:hover .box-glass,.box:focus-visible .box-glass{background:#8ee6ff20;box-shadow:0 0 22px #93eaff55,inset 0 0 30px #93eaff30;border-color:#d4f8ff;animation:none}.box:hover .box-corners i,.box:focus-visible .box-corners i{width:18%;height:32%;opacity:1}.box:active{transform:scale(.98)}
.scene-hint{position:absolute;z-index:3;left:50%;bottom:max(22px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:15px;width:max-content;max-width:70%;padding:11px 18px;border:1px solid #ceeaff65;border-radius:18px;background:#083269dc;backdrop-filter:blur(14px);box-shadow:0 5px 25px #001e4d55;font-size:13px;color:#fff}.scene-hint small{display:block;font-size:11px;color:#c3ddf8;margin-top:3px}.tap-symbol{font-size:27px;animation:tap-bob 2s infinite}.floating{position:absolute;z-index:4;display:flex;align-items:center;gap:8px;top:max(70px,calc(env(safe-area-inset-top) + 55px))}.floating.left{left:max(18px,env(safe-area-inset-left))}.floating.right{right:max(18px,env(safe-area-inset-right))}.floating button,.floating strong{color:#fff;font-size:12px;font-weight:750;background:#083269d9;backdrop-filter:blur(10px);border:1px solid #ceeaff65;padding:10px 15px;border-radius:25px;box-shadow:0 4px 14px #08244d33;transition:transform .2s,background .2s}.floating button:hover{transform:translateY(-2px);background:#1d62c4}.floating strong{font-size:11px;letter-spacing:1px;text-transform:uppercase;background:#fff0cc;color:#183d67;border-color:#fff4d8}.primary{border:1px solid #fff2bf;border-bottom:4px solid #b88a38;border-radius:13px;background:linear-gradient(#fff0b7,#f2c366);color:#3f2c13;padding:12px 23px;box-shadow:0 5px 0 #03244c66,0 8px 22px #ffe99a20;font-weight:850;font-size:14px;transition:transform .18s,box-shadow .18s}.primary:hover{transform:translateY(-3px);box-shadow:0 7px 0 #03244c66,0 12px 26px #ffe99a33}.primary:active{transform:translateY(2px)}.scene-hint .primary{padding:7px 16px;font-size:12px;white-space:nowrap}
#contents-viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;cursor:grab}#contents-viewport:active{cursor:grabbing}#contents-scene{transform-origin:0 0;user-select:none}#contents-scene img{pointer-events:none}#corrected-sheet{position:absolute;left:25.55%;width:48.8%;background:#fcf6e8;border:1px solid #756d61;border-radius:1cqw;padding:.5cqw;color:#17140e}#corrected-sheet h2{margin:0 0 .4cqw;text-align:center;font-size:2.2cqw;border:1px solid #756d61;border-radius:.4cqw;padding:.3cqw}#corrected-sheet .sheet-columns{display:grid;grid-template-columns:1fr 1fr}#corrected-sheet table{border-collapse:collapse;width:100%;font-family:Arial,sans-serif;font-size:.85cqw}#corrected-sheet th{font-size:1cqw}#corrected-sheet td,#corrected-sheet th{border:1px solid #81776a;padding:.21cqw .15cqw;text-align:center}#corrected-sheet td:first-child{width:16%}.sheet-note{display:none}
#bottles{position:absolute;left:19.5%;top:19.5%;width:61%;height:58%;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(4,1fr);gap:.6%}.bottle{padding:0;border:0;background:none;position:relative;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;isolation:isolate;transition:transform .18s,filter .18s,opacity .25s}.bottle::before{content:'';position:absolute;width:96%;aspect-ratio:1;border-radius:50%;background:linear-gradient(140deg,#fff8,hsl(var(--hue) 90% 40%) 45%,hsl(var(--hue) 95% 24%));box-shadow:0 .5cqw .3cqw #06183066;z-index:-1}.bottle img{width:90%;height:90%;object-fit:contain;filter:drop-shadow(0 1px 1px #142e5580)}.bottle span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-14deg);font-family:BottleLabel,cursive;font-size:clamp(13px,2cqw,40px);font-weight:400;color:#161616}.bottle[aria-pressed=true]{opacity:.3;filter:saturate(.3);transform:scale(.88)}.bottle:hover:not([aria-pressed=true]),.bottle:focus-visible{transform:translateY(-5%) scale(1.07);filter:drop-shadow(0 0 7px #ffeda8);outline:0}.bottle:active{transform:scale(.93)}
#bench{position:absolute;z-index:5;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:72%;height:clamp(65px,15vh,135px);display:flex;align-items:center;gap:14px;padding:8px 20px;background:linear-gradient(140deg,#0d3767f5,#061d3fe8);border:1px solid #bddbfc80;border-top:2px solid #f4db9e;border-radius:22px;box-shadow:0 12px 40px #04204366,inset 0 1px 0 #fff3;backdrop-filter:blur(16px);animation:bench-arrive .5s var(--ease)}.bench-heading{font-size:9px;letter-spacing:1.3px;color:#a9c6e7;white-space:nowrap}.bench-heading b{display:block;letter-spacing:0;font-size:20px;color:#ffe5a0;line-height:1.7}#slots{height:100%;display:flex;gap:12px}.slot{position:relative;height:100%;width:clamp(65px,10vw,120px);padding:0;border:1px dashed #95b9e080;border-radius:12px;background:linear-gradient(140deg,#4c7bac30,#19345980);overflow:hidden;transition:border-color .2s,background .2s}.slot:not(:disabled){border-style:solid;border-color:#f8df9a80;background:#fff0d31a}.slot:not(:disabled):hover{border-color:#fff0ba;background:#fff0d32a}.slot img{height:100%;width:100%;object-fit:contain;filter:hue-rotate(var(--hue));animation:specimen-land .4s var(--ease)}.slot .code{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);font-family:BottleLabel,cursive;color:#17243d;font-size:clamp(12px,2vh,22px);background:#fff1dc;min-width:22px}.slot .remove{position:absolute;right:5px;top:2px;color:#e3efff;font-size:17px}.slot .empty{font-size:10px;letter-spacing:.5px;color:#bdd3ec}.slot:disabled::before{content:'+';display:block;font-size:24px;line-height:1.1;color:#8bb2dd70}#status{position:absolute;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%);width:max-content;max-width:110%;text-align:center;font-size:11px;line-height:1.5;background:#07234dc9;border:1px solid #b9dcff40;backdrop-filter:blur(12px);color:#e2efff;padding:5px 13px;border-radius:20px;margin:0;pointer-events:none}.flying-bottle{position:fixed;z-index:80;object-fit:contain;pointer-events:none;filter:drop-shadow(0 10px 12px #001c4d77)}
.overlay,.notes-overlay{position:absolute;inset:0;z-index:20;display:grid;place-items:center;background:#0617299e;backdrop-filter:blur(8px)}.notes-overlay{backdrop-filter:none;background:#04132670}.panel,.briefing-card{width:min(490px,85%);max-height:90%;overflow:auto;text-align:center;padding:28px 35px;border:1px solid #abcff455;border-top:3px solid #ffe1a0;border-radius:24px;background:radial-gradient(ellipse at 50% 0,#285b90,#0d2a4d 70%);box-shadow:0 20px 80px #0006;animation:card-arrive .45s var(--ease)}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#ffe1a0}.briefing-emblem{margin:10px auto 0;width:54px;height:54px;border:1px solid #ffdf9980;border-radius:50%;display:grid;place-items:center;font-size:30px;color:#ffe1a0;background:#f3d58c12;box-shadow:0 0 30px #ffe39c15}.briefing-card h2{font-size:clamp(21px,3vw,32px);letter-spacing:-1px;margin:14px 0}.briefing-card p{font-size:14px;line-height:1.8;color:#bfd5ed}.briefing-card strong{color:#fff0c1}.briefing-tip{font-size:11px;color:#bcd7ee;border-top:1px solid #b8d7f526;margin:16px 0;padding-top:13px}.instructions-list{text-align:left;font-size:13px;line-height:1.7;padding-left:22px;color:#c8dff7}.instructions-list li{padding:5px 0}.instructions-list b{color:#ffe3a2}
.notes-card{position:absolute;bottom:24px;left:50%;width:min(490px,72%);max-height:calc(100% - 45px);overflow:auto;padding:25px 28px 20px 45px;color:#28446c;border-radius:2px;background:linear-gradient(90deg,transparent 31px,#d07a7b88 32px,#d07a7b88 33px,transparent 34px),repeating-linear-gradient(#fff8dc 0,#fff8dc 27px,#a6c5d66b 28px,#fff8dc 29px);box-shadow:4px 9px 0 #0002,0 15px 30px #0005;transform:translateX(-50%) rotate(-2deg);transform-origin:center bottom;font-family:'Segoe Print','Bradley Hand','Comic Sans MS',cursive;animation:note-arrive .4s cubic-bezier(.18,.85,.25,1.12) both}.notes-card::before{content:'';position:absolute;top:1px;left:38%;width:90px;height:15px;background:#e4d6a6c9;transform:rotate(-5deg);box-shadow:0 1px 2px #0001}.mission-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.mission-heading h2{font:700 25px/1.3 'Segoe Print','Bradley Hand','Comic Sans MS',cursive;margin:0;color:#28446c}.mission-heading b{font:700 14px/1.2 'Segoe UI',sans-serif;color:#934838;border:2px solid #bc7665;border-radius:50%;padding:7px;transform:rotate(8deg)}.list-instruction{font-size:14px;margin:10px 0 7px;color:#456087}#targets{counter-reset:samples;list-style:none;padding:0;margin:0}#targets li{position:relative;counter-increment:samples;padding:8px 0 8px 23px;border-bottom:1px dashed #365f7b25;font-weight:700;font-size:20px;line-height:1.4}#targets li::before{content:counter(samples) '.';position:absolute;left:0;color:#b36d58;font-size:.8em}#targets li:nth-child(2){transform:rotate(.7deg)}#targets li:nth-child(3){transform:rotate(-.6deg)}.note-signature{display:block;text-align:right;margin-top:13px;font-size:11px;color:#7c5e4a;font-style:italic}
.dossier{position:absolute;right:max(27px,env(safe-area-inset-right));bottom:max(33px,env(safe-area-inset-bottom));z-index:7;width:94px;height:83px;padding:0;border:0;background:none;color:#513715;transform:rotate(-6deg);isolation:isolate;filter:drop-shadow(3px 7px 4px #0006);transition:transform .2s,filter .2s}.dossier-cover{position:absolute;inset:14px 0 0;background:linear-gradient(135deg,#f3d696,#c9984b);border:1px solid #a87937;border-radius:3px 5px 6px 6px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;font-weight:850;line-height:1.15;letter-spacing:1px;transform-origin:center bottom;transition:transform .2s}.dossier-cover::before{content:'';position:absolute;left:-1px;top:-10px;width:40%;height:12px;border:1px solid #a87937;border-bottom:0;border-radius:5px 9px 0 0;background:#ebc77e}.dossier-paper{position:absolute;left:9px;right:8px;top:6px;bottom:6px;display:flex;flex-direction:column;gap:8px;padding:10px;background:#fff7dd;border-radius:2px;transform:rotate(6deg);transition:transform .2s}.dossier-paper i{height:2px;background:#53749355;width:100%}.dossier-count{position:absolute;right:-8px;top:-3px;z-index:2;width:26px;height:26px;display:grid;place-items:center;border:2px solid #153e36;border-radius:50%;background:#a0f0d7;color:#173f35;font-size:14px;font-weight:850}.dossier-caption{position:absolute;left:50%;bottom:-19px;transform:translateX(-50%) rotate(6deg);white-space:nowrap;font-size:10px;font-weight:750;background:#102631e8;color:#ffebbc;padding:3px 7px;border-radius:4px}.dossier:not(:disabled){animation:dossier-float 3s ease-in-out infinite}.dossier:not(:disabled):hover,.dossier:focus-visible{transform:translateY(-6px) rotate(-2deg);animation:none}.dossier:hover .dossier-cover{transform:skewX(-6deg) scaleY(.94)}.dossier:hover .dossier-paper{transform:translateY(-7px) rotate(3deg)}.dossier:disabled{filter:drop-shadow(2px 4px 3px #0005) saturate(.5)}.dossier:disabled .dossier-count{background:#dad9c9;color:#50564e;border-color:#58635b}
#results{background:radial-gradient(ellipse at 50% 0,#3677b5,#071b34 80%)}.results-panel{position:relative;width:min(960px,90%);max-height:90%;overflow:auto;padding:25px 35px;border-radius:25px;border:1px solid #badfff45;border-top:3px solid #ffe5a0;background:#0c2b4cce;box-shadow:0 20px 60px #0005;animation:card-arrive .5s var(--ease);text-align:center}.result-medal{display:grid;place-items:center;margin:0 auto 10px;width:60px;height:60px;border:3px double #ffe5a0;border-radius:50%;color:#ffe5a0;font-size:32px;background:#ffe5a018;box-shadow:0 0 35px #ffe5a020;animation:medal-stamp .6s var(--ease)}.results-panel h1{margin:10px 0 20px;font-size:clamp(22px,3vw,38px);letter-spacing:-1px}.review-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;text-align:left;margin-bottom:20px}.review-columns h2{font-size:11px;text-transform:uppercase;letter-spacing:1.3px;color:#a9c9eb}.review-columns ul{padding:0;list-style:none;margin:10px 0}.review-columns li{background:#ffffff08;border:1px solid #ffffff13;border-radius:12px;padding:12px 14px;margin:7px 0;font-size:clamp(12px,1.1vw,15px);animation:answer-arrive .45s var(--ease) both}.review-columns li:nth-child(2){animation-delay:.1s}.review-columns li:nth-child(3){animation-delay:.2s}.review-columns small{display:block;color:#9fbad8;font-size:11px;margin-top:5px}.review-columns .match{border-left:3px solid #9df2cd}.review-columns .miss{border-left:3px solid #ffc49e}.results-panel>a{display:inline-block;margin-left:20px;font-size:12px;color:#bfd5ed}.result-spark{position:absolute;pointer-events:none;border-radius:2px;background:#ffe5a0;animation:spark-fall 1.6s ease-out both}
#rotate{position:fixed;z-index:100;background:radial-gradient(ellipse,#174673,#071b34)}.rotate-icon{display:block;font-size:70px;color:#ffe5a0;animation:rotate-hint 2.5s ease-in-out infinite}.panel h1{font-size:26px}.panel p{font-size:14px;line-height:1.6;color:#c3d8ef}.panel a{display:inline-block;font-size:13px;padding:9px 18px;margin-top:8px;border:1px solid #bed9f44d;border-radius:20px}
@keyframes page-arrive{from{opacity:0;filter:brightness(.6)}to{opacity:1;filter:brightness(1)}}@keyframes launch-arrive{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}@keyframes start-float{50%{transform:translateY(-4px);filter:drop-shadow(0 10px 6px #08366a80)}}@keyframes drawer-beckon{50%{box-shadow:inset 0 0 25px #89dcff33,0 0 20px #89dcff55;border-color:#d8f7ffbb}}@keyframes tap-ripple{0%,70%,100%{box-shadow:0 0 0 0 #c8f4ff00;opacity:.3}35%{box-shadow:0 0 0 9px #c8f4ff00;opacity:.8}}@keyframes tap-bob{50%{transform:translateY(-4px)}}@keyframes timer-beat{50%{box-shadow:0 0 22px #ffb34877;transform:scale(1.04)}}@keyframes bottle-arrive{from{opacity:0;transform:translateY(-18px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes bench-arrive{from{opacity:0;translate:0 20px}to{opacity:1;translate:0 0}}@keyframes specimen-land{from{opacity:.5;transform:translateY(-20px) scale(.85)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes card-arrive{from{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:none}}@keyframes note-arrive{from{transform:translate(-50%,calc(100% + 50px)) rotate(5deg)}to{transform:translate(-50%,0) rotate(-2deg)}}@keyframes dossier-float{50%{transform:translateY(-4px) rotate(-3deg)}}@keyframes medal-stamp{from{opacity:0;transform:scale(1.5) rotate(-20deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes answer-arrive{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}@keyframes spark-fall{from{opacity:1;transform:translateY(-30px) rotate(0)}to{opacity:0;transform:translateY(180px) rotate(200deg)}}@keyframes rotate-hint{50%{transform:rotate(90deg)}}
@media(max-height:500px){.topbar{top:max(9px,env(safe-area-inset-top));left:12px;right:12px}.tools{gap:7px}.tools button{width:31px;height:31px;font-size:17px}#timer{width:46px;height:46px;font-size:14px;border-width:3px}.exit-control{padding:3px 11px 5px 9px;font-size:11px}.exit-control>span:first-child{font-size:22px}.intro-panel{bottom:5%;gap:7px}.mission-facts{font-size:10px;padding:5px 12px}.mission-facts b{font-size:13px}.art-button{width:clamp(190px,30vw,280px)}.floating{top:52px}.floating.left{left:12px}.floating.right{right:12px}.floating button,.floating strong{padding:7px 11px;font-size:10px}.scene-hint{bottom:12px;padding:7px 13px;font-size:11px;gap:10px}.scene-hint small{font-size:9px}.scene-hint .primary{font-size:11px;padding:6px 10px}.tap-symbol{font-size:22px}.dossier{width:65px;height:59px;right:20px;bottom:28px}.dossier-cover{font-size:10px;inset:10px 0 0}.dossier-cover::before{top:-7px;height:9px}.dossier-paper{left:6px;right:6px;top:4px;padding:6px;gap:5px}.dossier-count{width:21px;height:21px;font-size:11px;right:-6px}.dossier-caption{font-size:8px;bottom:-16px}#bench{height:64px;bottom:11px;padding:5px 13px;gap:10px;border-radius:15px;max-width:72%}#slots{gap:8px}.slot{width:clamp(58px,10vw,85px);border-radius:8px}.bench-heading{font-size:8px;letter-spacing:.7px}.bench-heading b{font-size:16px}.slot .empty{font-size:8px}.slot:disabled::before{font-size:20px}#status{font-size:9px;bottom:calc(100% + 5px);padding:3px 10px}.briefing-card,.panel{padding:17px 25px;max-height:94%}.briefing-emblem{width:34px;height:34px;font-size:23px;margin-top:6px}.briefing-card h2{font-size:23px;margin:8px 0}.briefing-card p{font-size:12px;line-height:1.6;margin:8px 0}.briefing-tip{font-size:10px;margin:10px 0;padding-top:8px}.primary{font-size:12px;padding:9px 18px}.instructions-list{font-size:11px;margin:10px 0;line-height:1.6}.instructions-list li{padding:3px 0}.notes-card{bottom:14px;max-height:calc(100% - 28px);width:min(430px,72%);padding:18px 23px 14px 39px}.mission-heading h2{font-size:21px}.mission-heading b{font-size:12px;padding:6px}.list-instruction{font-size:12px;margin:8px 0 4px}#targets li{font-size:16px;line-height:1.35;padding:7px 0 7px 20px}.note-signature{font-size:9px;margin-top:9px}.results-panel{padding:15px 25px;max-height:94%}.result-medal{width:36px;height:36px;font-size:22px;margin-bottom:6px}.results-panel h1{font-size:23px;margin:7px 0 9px}.review-columns{gap:15px;margin-bottom:10px}.review-columns h2{font-size:9px;margin:4px 0}.review-columns ul{margin:4px 0}.review-columns li{padding:7px 10px;font-size:11px;margin:5px 0}.review-columns small{font-size:9px;margin-top:3px}.eyebrow{font-size:9px}.rotate-icon{font-size:45px}.panel h1{font-size:23px;margin:8px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The contents sheet sits on a closed, removed box. Actions belong to its physical handle. */
.handle-actions{position:absolute;left:50%;top:81.6%;width:44%;transform:translateX(-50%);display:flex;justify-content:space-between;align-items:center;z-index:3;pointer-events:none}
.handle-actions button{pointer-events:auto;white-space:nowrap;font-size:clamp(10px,1cqw,15px);padding:clamp(7px,.8cqw,14px) clamp(10px,1.1cqw,20px);border-radius:14px;transition:transform .2s,box-shadow .2s}
.return-box{color:#e3f1ff;background:linear-gradient(#174779,#092c54);border:1px solid #b4defa90;border-bottom:3px solid #051e3d;box-shadow:0 5px 12px #061b3e44;font-weight:750}
.return-box span{display:inline-block;margin-right:5px;font-size:1.3em}.return-box:hover{transform:translateX(-3px)}
.handle-open{animation:handle-invite 2.8s ease-in-out infinite}.handle-open:hover{animation:none}
.handle-caption{position:absolute;left:50%;top:calc(100% + .8cqw);transform:translateX(-50%);font-size:clamp(8px,.7cqw,11px);letter-spacing:1.7px;font-weight:800;color:#eaf7ff;text-shadow:0 1px 4px #083269;background:#072b507a;border:1px solid #b8e5ff44;padding:4px 9px;border-radius:20px;white-space:nowrap}
.handle-hit{position:absolute;left:42%;top:80.8%;width:16%;height:5.7%;padding:0;border:1px solid #c4f0ffb0;border-radius:10px;background:linear-gradient(transparent,#b4ecff1c);box-shadow:0 0 12px #9ce8ff55;z-index:4;cursor:pointer;transition:background .2s,box-shadow .2s}
.handle-hit:hover,.handle-hit:focus-visible{background:#b4ecff30;box-shadow:0 0 24px #9ce8ff99}.handle-hit:active{transform:translateY(-2px)}
.contents-reading-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:5px 13px;border:1px solid #cde6ff44;border-radius:20px;background:#082951a8;backdrop-filter:blur(8px);font-size:10px;color:#d8eaff;pointer-events:none}
@keyframes handle-invite{50%{box-shadow:0 5px 0 #03244c66,0 0 22px #ffe99a66}}
@media(max-height:500px){.handle-actions{width:50%}.handle-actions button{font-size:10px;padding:7px 10px;border-radius:10px}.handle-caption{font-size:7px;letter-spacing:1px;padding:3px 7px;top:calc(100% + 4px)}.contents-reading-hint{font-size:8px;bottom:7px;padding:4px 9px}.handle-hit{border-radius:6px}}

/* The bench travels with the player; each physical box has local handle actions. */
.handle-actions{width:56%;top:81.2%}.handle-caption{top:-21px;color:#f0f8ff;letter-spacing:1.2px;font-size:10px;background:#083269cb}
.close-box{color:#e3f1ff;background:linear-gradient(#174779,#092c54);border:1px solid #b4defa90;border-bottom:3px solid #051e3d;box-shadow:0 5px 12px #061b3e44;font-weight:750}.close-box:hover{transform:translateY(3px);background:linear-gradient(#245e99,#103a69)}.close-box span{margin-right:5px}
.confirm-selections{font-size:12px;max-width:145px;line-height:1.4;padding:10px 15px;border-radius:12px}.confirm-selections:disabled{background:linear-gradient(#345a7b,#233f60);border-color:#718fb155;color:#9fb9d5;box-shadow:none;transform:none;opacity:.7;cursor:default}
#bench[data-ready="true"]{border-color:#ffe5a0;box-shadow:0 12px 40px #04204366,0 0 22px #ffe5a035;transition:border-color .3s,box-shadow .3s}#bench[data-ready="true"] .confirm-selections{animation:handle-invite 2.8s ease-in-out infinite}#bench[data-ready="true"] .confirm-selections:hover{animation:none}
#app[data-view="cabinet"] #cabinet-hint{bottom:calc(clamp(65px,15vh,135px) + 39px)}
.contents-reading-hint{bottom:auto;top:20px;max-width:50%;text-align:center}.slot .code{font-family:'Segoe UI',system-ui,sans-serif;font-weight:800;font-size:clamp(12px,1.6vh,18px);border-radius:3px;padding:1px 3px}
@media(max-height:500px){.handle-actions{width:62%;top:80.6%}.handle-caption{top:-18px;font-size:8px}.confirm-selections{font-size:9px;padding:6px 9px;max-width:92px}#bench{gap:8px;padding:5px 11px;max-width:78%}#slots{gap:6px}.slot{width:clamp(47px,8.4vw,75px)}#app[data-view="cabinet"] #cabinet-hint{bottom:91px}.contents-reading-hint{top:15px;font-size:8px}}
@media(max-width:640px){#bench{left:43%;max-width:78%}.bench-heading{font-size:7px;letter-spacing:.3px}.bench-heading b{font-size:14px}.confirm-selections{max-width:75px;font-size:8px;padding:5px 7px}.slot{width:46px}#status{font-size:8px;max-width:105%}}

/* Bottle codes need to be readable at a glance, including similar numbers and letters. */
.bottle span{font-family:'Segoe UI',system-ui,sans-serif;font-weight:800;font-size:clamp(13px,1.65cqw,33px);font-variant-numeric:tabular-nums;letter-spacing:.02em}
@media(max-height:500px){.handle-actions{width:84%}.handle-actions button{font-size:9px;padding:6px 9px}}
@media(max-width:640px){.handle-actions{width:94%}.handle-actions button{font-size:8px;padding:6px 7px}}

/* Visual debrief: compare real specimens, not just a text list. */
#results{isolation:isolate;background:#08213e}#results::before{content:'';position:absolute;inset:-12px;background:linear-gradient(#08213ecc,#061b36ee),url('assets/working-standard-game-assets/ui/working-standard-game-bg.webp') center/cover;filter:blur(6px);z-index:-1}
.results-panel{width:min(1140px,92%);max-height:88dvh;display:flex;flex-direction:column;padding:28px 34px;text-align:left;background:linear-gradient(145deg,#17416ae8,#082443ed);backdrop-filter:blur(18px);border-color:#b4daff44;border-top-color:#ffe5a0;box-shadow:0 25px 80px #00132966}
.result-hero{display:flex;align-items:center;gap:27px;padding:2px 2px 24px;flex-shrink:0}.score-orbit{--score:0deg;position:relative;width:112px;height:112px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:conic-gradient(from -90deg,#ffe5a0 var(--score),#98c2e72b 0);box-shadow:0 0 35px #e3bd6618;animation:medal-stamp .6s var(--ease)}.score-core{width:94px;height:94px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid #afd5f03d;border-radius:50%;background:linear-gradient(#12395d,#082544)}.score-core b{font-size:30px;letter-spacing:-1px;color:#ffe8aa;font-variant-numeric:tabular-nums}.score-core small{font-size:8px;letter-spacing:2px;color:#adc9e3;margin-top:5px}.result-heading{flex:1;min-width:0}.results-panel h1{font-size:clamp(23px,2.8vw,37px);margin:7px 0}.result-heading p{font-size:12px;line-height:1.5;color:#c3d8ed;margin:6px 0 0;max-width:550px}.result-stars{display:flex;gap:7px;font-size:24px;line-height:1.2}.result-stars .earned{color:#ffe4a0;text-shadow:0 0 15px #ffd57677;animation:medal-stamp .7s var(--ease) both}.result-stars .unearned{color:#87acce38;-webkit-text-stroke:1px #94b6d155}.result-stars span:nth-child(2){animation-delay:.1s}.result-stars span:nth-child(3){animation-delay:.2s}.result-hero .result-medal{margin:0;width:52px;height:52px;flex-shrink:0}
.review-columns{gap:24px;overflow:auto;min-height:0;margin:0 0 20px;padding:0 2px 2px}.review-columns>div{min-width:0}.review-columns h2{padding:10px 14px;background:#b6d6f210;border:1px solid #b6d6f222;border-radius:9px;color:#d2e5f7;font-size:10px;letter-spacing:1.7px;margin:0 0 10px}.review-columns ul{margin:0}.review-columns li.bottle-review{position:relative;display:flex;align-items:center;gap:12px;min-height:116px;padding:8px 14px 8px 7px;margin:8px 0;background:linear-gradient(110deg,#fff4,#fff1 22%,#ffffff08 65%);border-radius:15px;border:1px solid #b4d7fa26;border-left-width:3px;overflow:hidden}.review-columns .bottle-review.match{border-left-color:#98edc5;background:linear-gradient(110deg,#57d4a02b,#153c591c)}.review-columns .bottle-review.miss{border-left-color:#ffe0a0;background:linear-gradient(110deg,#ffce6c18,#153c591c)}.review-columns .bottle-review.wrong{border-left-color:#ffb29e;background:linear-gradient(110deg,#e7897622,#153c591c)}.review-specimen{position:relative;width:76px;height:102px;flex-shrink:0;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 70%,#d5edff25,transparent 70%)}.review-specimen img{width:100%;height:100%;object-fit:contain;filter:hue-rotate(var(--hue)) drop-shadow(0 4px 4px #0005);animation:specimen-land .6s var(--ease)}.review-bottle-code{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-weight:850;font-size:12px;background:#fff0d6;color:#183552;border-radius:2px;padding:1px 3px;line-height:1.2}.review-copy{min-width:0;display:flex;align-items:flex-start;flex-direction:column;gap:7px}.review-copy .review-box{font-size:9px;letter-spacing:1.1px;color:#b0c8e0;margin:0}.review-copy strong{font-size:clamp(12px,1.05vw,15px);line-height:1.35;color:#f0f7ff}.review-verdict{display:inline-flex;align-items:center;font-size:10px;font-weight:750;padding:4px 8px;border-radius:20px;border:1px solid #ffe3ac35;background:#ffe3ac12;color:#ffe3ac}.match .review-verdict{color:#b2f4d5;border-color:#b2f4d535;background:#b2f4d512}.wrong .review-verdict{color:#ffc7b7;border-color:#ffc7b735;background:#ffc7b712}.empty-review{display:flex;align-items:center;gap:16px;border:1px dashed #aac9e555!important;background:#aac9e509!important;min-height:116px;color:#bcd1e5;font-size:12px!important}.empty-bottle{position:relative;display:grid;place-items:center;width:38px;height:65px;margin:4px 12px;border:2px dashed #accae566;border-radius:7px;color:#c8daeb;font-size:23px}.empty-bottle::before{content:'';position:absolute;top:-7px;left:6px;right:6px;height:8px;border:2px solid #accae566;border-radius:3px;background:#234664}
.result-actions{display:flex;align-items:center;justify-content:center;gap:22px;padding-top:17px;border-top:1px solid #bad7f023;flex-shrink:0}.result-actions a{color:#bdd4e9;font-size:12px;padding:10px 0;transition:color .2s}.result-actions a:hover{color:#ffe5a0}
@media(max-height:500px){.results-panel{max-height:91dvh;padding:14px 20px;border-radius:18px}.result-hero{gap:15px;padding-bottom:12px}.score-orbit{width:68px;height:68px}.score-core{width:56px;height:56px}.score-core b{font-size:18px}.score-core small{font-size:6px;letter-spacing:1px;margin-top:3px}.results-panel h1{font-size:22px;margin:3px 0}.result-heading p{font-size:10px;margin:4px 0 0}.result-stars{font-size:17px;gap:4px}.result-hero .result-medal{width:36px;height:36px;font-size:20px}.review-columns{gap:14px;margin-bottom:9px}.review-columns h2{font-size:8px;padding:7px 10px;margin-bottom:5px;letter-spacing:1px}.review-columns li.bottle-review{gap:6px;min-height:82px;padding:5px 9px 5px 4px;margin:5px 0;border-radius:10px}.review-specimen{width:49px;height:70px}.review-bottle-code{font-size:9px;padding:1px 2px}.review-copy{gap:4px}.review-copy .review-box{font-size:7px}.review-copy strong{font-size:10px}.review-verdict{font-size:8px;padding:3px 6px}.empty-review{min-height:82px;font-size:10px!important;gap:8px}.empty-bottle{height:48px;width:28px;font-size:18px;margin:2px 8px}.result-actions{padding-top:9px;gap:17px}.result-actions a{font-size:10px;padding:6px 0}}
@media(max-width:640px){.results-panel{width:95%;padding:11px 13px}.result-heading p{font-size:9px}.result-hero .result-medal{display:none}.result-hero{gap:11px}.review-columns{gap:9px}.review-copy strong{font-size:9px}.review-specimen{width:41px}.review-copy .review-box{font-size:6px}.review-verdict{font-size:7px;padding:2px 5px}.review-columns h2{font-size:7px;padding:6px 8px}.result-actions .primary{padding:7px 13px}}

/* iOS safe areas, browser bars and inline media need their own fallbacks. */
#app{height:100vh;height:100dvh}.cabinet-still{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#fullscreen-help{position:fixed;z-index:90}.topbar,.floating,.dossier,.results-panel,.briefing-card{-webkit-backdrop-filter:blur(12px)}.view,.review-columns,.notes-card,.briefing-card{overscroll-behavior:contain}.review-columns,.notes-card,.briefing-card{-webkit-overflow-scrolling:touch}#contents-viewport{touch-action:none;-webkit-user-select:none;user-select:none}button img{-webkit-user-drag:none}body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.topbar{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right))}.dossier{right:max(20px,calc(env(safe-area-inset-right) + 10px));bottom:max(28px,calc(env(safe-area-inset-bottom) + 16px))}
.results-panel{max-height:88vh;max-height:88dvh}#bench{bottom:max(11px,calc(env(safe-area-inset-bottom) + 6px))}
@media(pointer:coarse){.tools button{min-width:40px;min-height:40px}.floating button{min-width:40px;min-height:40px}.handle-actions button{min-height:38px}.handle-hit{min-height:30px}.bottle{touch-action:manipulation}.slot{touch-action:manipulation}.confirm-selections{min-height:38px}}
@media(max-height:500px){.topbar{top:max(8px,env(safe-area-inset-top))}.floating{top:max(58px,calc(env(safe-area-inset-top) + 49px))}.results-panel{max-height:91vh;max-height:91dvh}.handle-actions{width:90%}}
@supports not (width:1cqw){#corrected-sheet{padding:calc(var(--scene-unit)*.5);border-radius:8px}#corrected-sheet h2{font-size:calc(var(--scene-unit)*2.2);padding:calc(var(--scene-unit)*.3)}#corrected-sheet table{font-size:calc(var(--scene-unit)*.85)}#corrected-sheet th{font-size:var(--scene-unit)}#corrected-sheet td,#corrected-sheet th{padding:calc(var(--scene-unit)*.21) calc(var(--scene-unit)*.15)}.bottle span{font-size:clamp(13px,calc(var(--scene-unit)*1.65),33px)}}
