/* GENE CAFÉ — original interface system. No external fonts or runtime CSS. */
:root{--ink:#403126;--muted:#8b7967;--cream:#fffbef;--paper:#fffdf6;--gold:#d7ad64;--brown:#77563d;--sage:#547762;--mint:#e8f0df;--line:#e5d7bd;--red:#ab594c;--shadow:0 16px 44px #68452216;--radius:24px;font-family:"Noto Sans Thai",Tahoma,"Leelawadee UI",system-ui,sans-serif;font-synthesis:none;color:var(--ink);font-size:16px;line-height:1.65;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:#f2eddf;min-width:280px}body::selection{background:#dbe8ca}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button,input,select{-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible{outline:3px solid #658866;outline-offset:4px}input,select{min-width:0}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.35;font-weight:750;text-wrap:balance}p{margin:10px 0}h1{font-size:30px}h2{font-size:25px}h3{font-size:19px}small{font-size:12px}img,video{display:block;max-width:100%}img{object-fit:contain;user-select:none}a{color:var(--sage)}[hidden]{display:none!important}.ico{flex-shrink:0;vertical-align:middle}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:800;color:#9a7950;display:block;line-height:1.6;margin-bottom:9px}.chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #d9cfb7;border-radius:40px;padding:6px 12px;background:#fffcf4;font-size:12px;font-weight:700;white-space:nowrap}.chip .ico{width:16px;height:16px}.chip.mini{padding:4px 9px;font-size:11px}.wide{width:100%}.full{grid-column:1/-1}.game-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:13px;border:1px solid #c9ad7f;background:linear-gradient(180deg,#fffcef,#f0e3c9);box-shadow:0 4px 0 #c9b38f,0 6px 10px #4c301310,inset 0 1px 0 #fff;color:#59412a;font-weight:700;line-height:1.45;transition:transform .15s,box-shadow .15s,filter .15s,background .15s;touch-action:manipulation;text-decoration:none}.game-btn:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #ad9165,inset 0 1px 0 #ffffff4d}.game-btn.primary{background:linear-gradient(#648b70,#4b715d);border-color:#446a55;color:#fffbee;box-shadow:0 5px 0 #355442,0 8px 14px #38553720,inset 0 1px 0 #92b194}.game-btn.primary:active:not(:disabled){box-shadow:0 2px 0 #355442;transform:translateY(3px)}.game-btn.outline{background:linear-gradient(#fffcf6,#faf3e7);border-color:#ded0b8;box-shadow:0 3px 0 #e0d2b9;color:#73583e}.game-btn.pale{background:#fffbefdd}.game-btn.mint{background:#e1edda;border-color:#c8d7be;box-shadow:0 3px 0 #bbcbb1}.game-btn.text-btn{border-color:transparent;background:transparent;box-shadow:none}.game-btn.danger{color:#a84e40}.game-btn.large{font-size:17px;min-height:55px;border-radius:15px;padding:14px 20px}.game-btn.small{font-size:12px;min-height:40px;padding:9px 12px;border-radius:10px}.game-btn.icon-btn{width:44px;height:44px;padding:10px;flex-shrink:0}.game-btn:disabled{opacity:.52;filter:saturate(.6);box-shadow:0 2px 0 #cebfaa;transform:none}.game-btn.primary:disabled{box-shadow:0 2px 0 #829284}.game-btn.chosen,.game-btn.selected{outline:3px solid #718f66;outline-offset:2px}.game-btn.busy{cursor:progress}@media(hover:hover) and (pointer:fine){.game-btn:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.04)}.game-btn:active:not(:disabled){transform:translateY(3px)}}
/* Opening screen: video and form have independent, stable lifecycles. */
#home{position:relative;min-height:100dvh;overflow:hidden;background:#efe6d2}.home-scene{position:absolute;inset:0;z-index:0;pointer-events:none;background:#e1d2b8}.home-scene video{width:100%;height:100%;object-fit:cover;opacity:.76}.home-shade{position:absolute;inset:0;background:linear-gradient(90deg,#f2e9d753,#fff8e4b0 57%,#f5ecd9e6),linear-gradient(0deg,#f4eddb 0%,transparent 65%)}.home-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;max-width:1390px;margin:auto;padding:22px 48px}.home-top>div{display:flex;gap:10px}.brand-kicker{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:800;letter-spacing:2.2px}.brand-kicker .ico{color:#826542}.brand-kicker i{font-style:normal;font-size:8px;letter-spacing:1.6px;color:#9d886d;padding-left:12px;border-left:1px solid #bbab8b}.home-layout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.13fr) minmax(370px,.87fr);gap:64px;align-items:center;max-width:1250px;padding:12px 38px 38px;margin:auto}.home-story{min-width:0}.home-logo{position:relative;max-width:420px;margin:0 auto 22px;display:flex;align-items:center;flex-direction:column}.home-logo>img{width:94%;max-height:190px;filter:drop-shadow(0 11px 8px #84582023)}.ribbon{padding:5px 24px;font-size:12px;letter-spacing:1px;color:#776046;border-block:1px solid #ccb995;transform:rotate(-1.5deg);background:#fff9e7b8;margin-top:8px;white-space:nowrap}.hero-theatre{position:relative;height:352px;display:flex;align-items:center;isolation:isolate;border-top:1px solid #cfbd9b50}.hero-theatre:after{content:'';position:absolute;bottom:3px;right:-14px;width:320px;height:32px;background:radial-gradient(ellipse,#52361b22,transparent 68%);z-index:-1}.theatre-copy{width:48%;padding:20px 0;z-index:2}.theatre-copy .eyebrow{font-size:8px;letter-spacing:1.8px}.theatre-copy h1{font-family:Georgia,serif;font-weight:400;font-size:49px;letter-spacing:-2px;color:#69533a;line-height:1.1}.theatre-copy #hero-role{font-size:14px;color:#8b765d;margin-top:8px}.hero-number{display:flex;align-items:baseline;gap:8px;margin-top:17px}.hero-number>span{font:38px Georgia,serif;color:#ad926d}.hero-number>i{font-style:normal;font-size:12px;color:#b7a284}.hero-bio{font-size:13px;line-height:1.8;color:#95826a;margin:8px 0 16px}.theatre-copy .chip{font-size:9px;padding:7px 9px;letter-spacing:.25px;white-space:normal}.hero-video-frame{position:relative;width:56%;height:100%;overflow:hidden;border-radius:130px 130px 80px 80px;margin-left:-4%;background:linear-gradient(#fff5df,#e9d9b8);border:1px solid #cfb78b;box-shadow:inset 0 0 0 8px #fff8e7,0 18px 36px #896b3f14}.hero-video-frame video{width:100%;height:100%;object-fit:contain;border-radius:inherit;mix-blend-mode:multiply}.theatre-arch{position:absolute;inset:8px;border:1px solid #d1bd9428;border-radius:inherit;pointer-events:none}.video-resume{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);border:1px solid #ceb792;border-radius:12px;padding:8px 10px;font-size:12px;white-space:nowrap;background:#fff6e5ef}.home-pills{display:flex;justify-content:center;gap:26px;margin-top:24px;padding-top:17px;border-top:1px solid #c9bba247}.home-pills>span{display:flex;gap:6px;align-items:center;color:#7a684f;font-size:12px}.home-pills .ico{width:17px;height:17px}.register-card{position:relative;background:linear-gradient(150deg,#fffdf7fa,#fff9edfa);border:1px solid #e4d7bd;border-radius:26px;padding:32px 30px 24px;box-shadow:0 20px 60px #624a2222,inset 0 0 0 6px #ffffff80;align-self:center;max-width:490px;width:100%}.register-card:before{content:'';position:absolute;inset:11px;border:1px solid #d6c59c47;border-radius:18px;pointer-events:none}.paper-clip{position:absolute;top:-17px;right:30px;width:25px;height:51px;border:4px solid #b28d57;border-radius:13px;transform:rotate(12deg);box-shadow:2px 2px 3px #a7906b30;pointer-events:none}.paper-clip:after{content:'';position:absolute;inset:4px;border:1px solid #ead3a3;border-radius:10px}.register-card>.eyebrow{font-size:8px;letter-spacing:1.8px}.register-card h2{font-size:24px}.register-card>p{font-size:13px;margin:8px 0 20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 15px}.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#7b644c}.form-grid input{width:100%;height:45px;padding:10px 12px;border:1px solid #dacdb6;border-radius:10px;background:#f8f3e8;box-shadow:inset 0 2px 3px #96703b07;color:var(--ink);font-size:14px;outline-offset:2px}.form-grid input::placeholder{color:#b5a895}.form-grid input:focus{background:#fffef9;border-color:#94aa84}.form-grid input.invalid{border-color:#b66151;background:#fff0eb}.hero-select-label{display:flex;align-items:center;justify-content:space-between;margin:21px 0 10px;font-size:12px}.hero-select-label>span{font-size:9px;color:var(--muted)}.hero-select{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.hero-choice{position:relative;border:1px solid #e3d6c0;border-radius:12px;background:#f4eee0;min-width:0;padding:0 0 7px;box-shadow:0 3px 0 #d9cdb6;transition:.18s;outline-offset:3px}.hero-choice img{width:100%;height:66px;object-fit:contain;padding:0;transform:scale(1.18);pointer-events:none}.hero-choice>span{display:block;text-align:center;font-size:8px;font-weight:700;color:#887256;padding-top:2px;position:relative}.hero-choice>i{position:absolute;top:-6px;right:-5px;width:18px;height:18px;border-radius:50%;background:#658568;color:white;display:none;align-items:center;justify-content:center}.hero-choice>i .ico{width:12px;height:12px}.hero-choice.chosen{background:#e8eedc;border-color:#87a174;box-shadow:0 3px 0 #89a37d,0 0 0 2px #b1c59c52}.hero-choice.chosen>i{display:flex}.form-error{font-size:12px;color:var(--red);min-height:8px;margin:12px 0 9px}.local-note{display:flex;align-items:flex-start;justify-content:center;gap:6px;color:#a18e75;font-size:10px;margin:15px 0 2px}.local-note .ico{width:14px;height:14px}.register-card .large{position:relative;justify-content:space-between}.register-card .large .ico{width:18px}.register-card .large span{flex:1;text-align:center}#home-continue .game-btn{margin-top:16px}.home-footer{position:relative;display:flex;justify-content:space-between;max-width:1280px;margin:auto;padding:14px 45px 24px;font-size:9px;letter-spacing:1.5px;color:#a08b6c}.home-footer>span:last-child{font-family:Georgia,serif;font-style:italic;font-size:14px;letter-spacing:0}
/* Game shell */
#game{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(ellipse at 10% 0,#faf7ee,#f1ebdc 65%)}.game-header{height:83px;flex-shrink:0;display:flex;align-items:center;gap:22px;padding:10px max(22px,env(safe-area-inset-right));border-bottom:1px solid #dfd3bb;background:#fff9e9e6;box-shadow:0 2px 10px #63472509;z-index:30}.game-brand{width:125px;height:61px;padding:0;border:0;background:transparent;flex-shrink:0}.game-brand img{width:100%;height:100%;object-fit:contain}.hud-resources{display:flex;align-items:center;gap:11px;margin-left:auto}.resource{display:flex;align-items:center;gap:10px;padding:8px 14px;border-radius:14px;border:1px solid #e1d4b9;background:#fffdf4;min-width:115px;height:52px}.resource>.ico{width:24px;height:24px;color:#b99347}.resource span{display:flex;flex-direction:column;line-height:1.15}.resource small{font-size:8px;color:#9c896c;letter-spacing:.7px;margin-bottom:5px}.resource b{font-size:19px;letter-spacing:.5px}.resource.star .ico{color:#b99853}.resource.exp .ico{color:#779174}.resource.quiz-hud .ico{color:#8f8197}.header-right{display:flex;align-items:center;gap:12px}.rank-chip{border:1px solid #c5ac78;background:#ece1c7;border-radius:50%;width:49px;height:49px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 0 3px #faf4e2;line-height:1.1}.rank-chip span{font:700 20px Georgia,serif;color:#846338}.rank-chip small{font-size:6px;letter-spacing:1px;margin-top:3px}#view-root{min-height:0;flex:1;overflow:auto;position:relative}.game-dock{z-index:25;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:11px;padding:12px 20px max(15px,env(safe-area-inset-bottom));background:#fff9e9ed;border-top:1px solid #e0d2b9;box-shadow:0 -4px 20px #78572808}.dock-btn{min-width:126px;min-height:49px;gap:9px;font-size:12px;background:#fffaf0}.dock-btn .ico{width:21px;height:21px;color:#967645}.dock-btn.active{background:linear-gradient(#eaf0de,#dce8cf);color:#4d6d50;border-color:#bbcfa8;box-shadow:0 4px 0 #b4c9a5}.dock-btn.active .ico{color:#587651}.save-light{position:fixed;right:15px;bottom:9px;z-index:27;font-size:8px;color:#a49172;display:flex;align-items:center;gap:4px;pointer-events:none}.save-light i{width:5px;height:5px;background:#8ba075;border-radius:50%}#readonly-banner,#practice-banner{position:relative;z-index:40;background:#eee0b7;padding:8px 20px;text-align:center;font-size:12px;flex-shrink:0}#readonly-banner .ico{width:16px}.cafe-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;height:100%;max-width:1160px;margin:auto;gap:30px;padding:18px 30px}.world-frame{position:relative;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;isolation:isolate}.world-scaled{position:relative;box-shadow:0 10px 45px #694a2629;border-radius:20px;overflow:hidden;border:1px solid #cbb189}.world{position:absolute;width:540px;height:960px;left:0;top:0;transform-origin:0 0;overflow:hidden;background:#dfc8a3;isolation:isolate}.scene-bg{position:absolute;width:100%;height:100%;object-fit:cover;inset:0;z-index:0}.sunlight{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(130deg,#ffefac28,transparent 48%,#98725012)}.world-logo{position:absolute;top:49px;left:157px;width:235px;height:108px;z-index:2;filter:drop-shadow(0 5px 3px #683d2420)}.world-logo img{width:100%;height:100%;object-fit:contain}.open-sign{position:absolute;right:18px;top:30px;padding:5px 12px;border:2px solid #d8bf8a;border-radius:5px;background:#526650;color:#fff3d4;font:700 10px Georgia,serif;letter-spacing:2px;z-index:3;transform:rotate(3deg);box-shadow:2px 4px 5px #72503220}.open-sign i{display:inline-block;width:5px;height:5px;background:#c6dfa2;border-radius:50%;margin-left:5px}.world-piece{position:absolute;pointer-events:none;max-width:none}.world-station{position:absolute;border:0;background:none;padding:0;z-index:5;transition:filter .2s;touch-action:manipulation}.world-station:focus-visible{outline-offset:6px;outline-color:#fff4ac}.world-station:hover{filter:brightness(1.06)}.nucleus-station{left:24px;top:150px;width:141px;height:189px;z-index:4}.nucleus-station>img{width:175px;height:193px;max-width:none;position:absolute;left:-15px;top:-12px}.station-plaque{position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;width:133px;padding:5px 8px 4px;line-height:1.15;border:2px solid #a88753;border-radius:8px;background:linear-gradient(#fff4da,#e8c999);color:#69482c;font:700 15px Georgia,serif;box-shadow:0 4px 0 #997448,0 5px 8px #62402120;text-align:center}.station-plaque small{font-family:Tahoma,sans-serif;font-size:10px;width:100%;font-weight:400;margin-top:3px}.station-plaque .ico{width:15px;height:15px}.station-plaque.mint{background:linear-gradient(#eaf4de,#bfd4ae);border-color:#8fa779;box-shadow:0 4px 0 #7d9663;color:#4b6042}.door-glow{position:absolute;inset:40px 35px 25px;background:#c4dda00f;border-radius:90px 90px 0 0;box-shadow:0 0 22px #d2f2aa0a;pointer-events:none}.ribo-station{left:347px;top:186px;width:147px;height:142px;border-radius:30px;background:linear-gradient(160deg,#fdf6e347,#b7c59160);box-shadow:inset 0 0 0 1px #c6b587,0 9px 17px #74543119}.ribo-station>img{position:absolute;width:194px;height:194px;max-width:none;left:-20px;top:-44px}.rna-dock{position:absolute;left:9px;bottom:24px;width:130px;height:15px;border-radius:6px;background:#657e5f;border:2px solid #b4c191;display:flex;gap:5px;padding:3px 13px}.rna-dock i{width:15px;height:5px;background:#b5c995;border-radius:2px}.rna-dock i:nth-child(2n){background:#dbcd91}.rear-worktop{position:absolute;left:47px;top:403px;width:447px;height:25px;background:linear-gradient(#c3925d,#a87741);border:2px solid #9d7145;border-radius:10px 10px 4px 4px;z-index:3;box-shadow:0 5px 0 #906236}.player-sprite{position:absolute;left:147px;top:293px;width:238px;height:238px;z-index:5;pointer-events:none}.sprite-body{width:100%;height:100%;background-size:400% 200%;background-repeat:no-repeat;transform-origin:50% 87.5%;animation:breathe 3s ease-in-out infinite}.player-name{position:absolute;left:50%;transform:translateX(-50%);bottom:36px;padding:3px 10px;border-radius:8px;background:#fff9eac4;border:1px solid #dac39b;font-size:10px;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-aura{position:absolute;width:40px;height:6px;left:100px;bottom:26px;background:#8c623313;filter:blur(3px)}.brew-station{left:344px;top:320px;width:146px;height:174px;z-index:6}.brewer-svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 5px 3px #533b3322)}.brew-plaque{bottom:-9px;width:120px;font:700 11px Tahoma,sans-serif;padding:5px}.counter-top{position:absolute;left:31px;top:481px;width:480px;height:38px;z-index:7;border-radius:12px 12px 5px 5px;background:linear-gradient(#f7e0b5,#dbc08b 65%,#b58e58);border:2px solid #a6824f;box-shadow:0 3px 0 #a47a44}.drink-output{position:absolute;left:210px;top:392px;width:120px;height:139px;z-index:14}.drink-grab.game-btn{position:absolute;bottom:0;width:100%;height:100%;padding:0;border:0;background:transparent;box-shadow:none;filter:drop-shadow(0 6px 5px #6f43252e);transition:transform .16s}.drink-grab img{height:112px;width:97px;position:absolute;bottom:9px;left:12px;animation:drinkPop .35s ease-out}.drink-output.picked .drink-grab{transform:translateY(-12px);filter:drop-shadow(0 0 7px #d9ae50)}.drink-output.picked:after{content:'แตะลูกค้าเพื่อส่ง';position:absolute;bottom:-20px;left:-20px;width:160px;border-radius:8px;background:#fff7db;border:1px solid #caa266;padding:5px;font-size:11px;text-align:center;color:#705432}.steam{position:absolute;bottom:51px;left:58px;width:14px;height:30px;border-left:4px solid #fff9e795;border-radius:50%;opacity:0;pointer-events:none}.steam.s2{left:81px;animation-delay:.5s!important}.working .steam{animation:steam 1.4s ease-in-out infinite}.working .machine-light{animation:glow 1s infinite}.working .machine-pulse{stroke-dasharray:30;animation:dash 1s linear infinite}.working .gauge-hand{transform-origin:131px 86px;animation:gauge 1.2s ease-in-out infinite alternate}.working .brewer-svg{animation:machineVibrate .18s ease-in-out infinite alternate}.world-actors{position:absolute;inset:0;z-index:15;pointer-events:none}.actor{position:absolute;max-width:none;aspect-ratio:1;transform:translate(-50%,-87.5%);transition:left 1s ease-in-out,top 1s ease-in-out,opacity .5s;pointer-events:none}.actor-image{position:relative;width:100%;height:100%;z-index:2;transform-origin:50% 87.5%}.actor.idle .actor-image{animation:breathe 3.6s ease-in-out infinite;animation-delay:var(--phase,0s)}.actor.leaving{opacity:.2}.actor-shadow{position:absolute;left:31%;bottom:10%;width:38%;height:5%;background:#6043282b;border-radius:50%;filter:blur(3px);z-index:1}.held-drink{position:absolute;z-index:3;width:37%;height:37%;left:14%;top:40%}.customer-target{position:absolute;left:168px;top:562px;width:197px;height:184px;border:0;background:transparent;z-index:18;border-radius:50%;box-shadow:none}.customer-target:hover{box-shadow:inset 0 0 0 2px #fffbc745}.drop-selected:not(.customer-target){filter:drop-shadow(0 0 8px #b3cf8f)}.customer-target.drop-selected{box-shadow:0 0 0 4px #edf2b7b0,inset 0 0 30px #ffec9630;animation:targetPulse 1.4s ease-in-out infinite}.drop-hover{filter:drop-shadow(0 0 10px #a9d68b)!important;outline:3px solid #d6eab5;outline-offset:3px}.order-world{position:absolute;left:330px;top:568px;z-index:24;pointer-events:none}.order-bubble{position:relative;display:flex;flex-direction:column;align-items:center;width:96px;padding:8px 9px 6px;background:#fffdf0;border:2px solid #d6ba83;border-radius:20px;box-shadow:0 4px 0 #d3b382,0 5px 12px #75552b20;animation:bubbleFloat 3s ease-in-out infinite}.order-bubble:after{content:'';position:absolute;left:8px;bottom:-10px;width:16px;height:16px;background:#fffdf0;border-bottom:2px solid #d6ba83;transform:skewY(-30deg)}.order-bubble img{height:68px;width:66px}.order-bubble span{font-size:10px;font-weight:700;white-space:nowrap}.order-bubble i{position:absolute;right:-6px;top:-6px;width:23px;height:23px;background:#f5dfcc;border:1px solid #d2ae86;border-radius:50%;display:grid;place-items:center;color:#b88262}.order-bubble .ico{width:13px}.queue-mark{position:absolute;top:862px;border:2px solid #b7936533;width:82px;height:25px;border-radius:50%;font:12px Georgia,serif;color:#a38a65a0;text-align:center;z-index:1}.q1{left:121px}.q2{left:335px;top:881px}.welcome-mat{position:absolute;left:177px;bottom:25px;width:190px;text-align:center;font:bold 15px Georgia,serif;letter-spacing:3px;color:#785a3a;border:3px solid #baa174;border-radius:4px;background:#d9c69e;padding:8px 9px;box-shadow:0 3px 4px #75592c22;z-index:2;transform:perspective(500px) rotateX(20deg)}.welcome-mat small{font-size:5px;letter-spacing:1.1px}.world-caption{position:absolute;bottom:9px;left:0;width:100%;text-align:center;font-size:6px;letter-spacing:2px;color:#ac8b5c;z-index:3}.world-particles{position:absolute;inset:0;pointer-events:none;z-index:26}.world-particles i{position:absolute;top:calc(20% + var(--i)*11%);left:calc(5% + var(--i)*14%);width:3px;height:3px;border-radius:50%;background:#fff8c690;box-shadow:0 0 7px #fff3b4;animation:dust 7s ease-in-out infinite;animation-delay:calc(var(--i)*-.8s)}.mentor-world{position:absolute;left:325px;top:598px;width:190px;height:225px;z-index:26;animation:mentorIn .6s ease-out}.mentor-world img{height:210px;width:190px}.mentor-world span{display:flex;align-items:center;justify-content:center;gap:5px;background:#f2e6ce;border:1px solid #c5aa7a;border-radius:10px;font-size:11px;padding:4px}.mentor-world .ico{width:15px}.lab-excursion .player-sprite{opacity:.25}.cafe-side{align-self:center;background:#fffbf0;border:1px solid #e2d5bb;box-shadow:var(--shadow);padding:27px;border-radius:24px;max-height:100%;overflow:auto;position:relative;min-width:0}.cafe-side>h2{font-size:24px}.cafe-side>.order-drink{margin:20px auto}.cafe-side>.mentor-portrait{height:190px;margin:auto}.order-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.order-header .eyebrow{font-size:9px;letter-spacing:1.3px;margin:0}.order-product{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px}.order-drink{width:155px;height:193px;object-fit:contain;filter:drop-shadow(0 8px 7px #8c67352b)}.order-product>div{width:100%}.recipe-tag{font:10px ui-monospace,monospace;letter-spacing:1px;color:#ab8c61}.order-product h2{font:500 26px Georgia,serif;line-height:1.25;margin:8px 0 13px;color:#624832;overflow-wrap:anywhere}.order-price{display:inline-flex;align-items:center;gap:7px;color:#a08046;font-size:20px;font-weight:800}.order-price small{font-size:11px;font-weight:400}.order-price .ico{width:20px}.order-status{display:flex;justify-content:space-between;align-items:center;margin-top:22px;gap:10px}.stock-pill{border-radius:8px;padding:6px 9px;background:#edf0e2;color:#617550;font-size:11px;display:flex;align-items:center;gap:5px}.stock-pill.empty{background:#f4e7d8;color:#a27647}.stock-pill .ico{width:15px;height:15px}.time-note{font-size:11px;color:#a18b68;display:flex;align-items:center;gap:5px}.time-note .ico{width:15px;height:15px}.patience{height:5px;background:#e9dfcc;border-radius:5px;overflow:hidden;margin:13px 0 22px}.patience i{display:block;height:100%;background:#acbb84;border-radius:5px;transition:width .4s linear}.context-controls .game-btn{font-size:13px;padding:13px 10px;min-height:50px;gap:8px}.context-controls .game-btn span{flex:1;text-align:center}.context-controls .game-btn .ico{width:17px}.context-hint{font-size:11px;text-align:center;color:#a18b70;line-height:1.7;margin:12px 0 5px}.cafe-side-footer{display:flex;justify-content:space-between;border-top:1px dashed #dccdb1;padding-top:18px;margin-top:20px;color:#987a53}.cafe-side-footer>div{display:flex;gap:10px;align-items:center}.cafe-side-footer b{font:44px Georgia,serif;color:#91a178}.cafe-side-footer span{font-size:10px;line-height:1.5}.cafe-side-footer .stamp{font:8px Georgia,serif;border:1px solid #b7a580;border-radius:50%;width:57px;height:57px;padding:9px;text-align:center;transform:rotate(-13deg);letter-spacing:1px;color:#a4906c}.selected-card{display:flex;align-items:center;gap:10px;border:2px solid #b5c49b;padding:8px 11px;border-radius:13px;background:#f0f2e1;margin-top:15px;cursor:grab}.selected-card>img{width:36px;height:51px}.selected-card>span{font-size:11px;font-weight:700;letter-spacing:.8px;flex:1}.selected-card small{display:block;font-size:10px;letter-spacing:0;color:var(--muted);font-weight:400;margin-top:4px}.pause-note{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;color:#997f59;padding:12px 6px;border-radius:9px;background:#f2ecd9;margin-top:18px}.pause-note .ico{width:14px;height:14px}.rna-capsule{display:flex;align-items:center;gap:15px;padding:25px 16px;border:2px solid #99b585;border-radius:18px;background:linear-gradient(135deg,#f0f7e8,#dcebd2);margin:24px 0;cursor:grab;box-shadow:inset 0 1px 0 white,0 6px 0 #bdcba9}.rna-capsule>.ico{width:35px;height:35px;color:#66825b}.rna-capsule>span{flex:1;font-size:25px;font-weight:800;letter-spacing:2px}.rna-capsule small{display:block;font-size:10px;letter-spacing:0;font-weight:400}.sale-total{font:44px Georgia,serif;color:#688561;padding:30px 0}.sale-total small{font:12px Tahoma,sans-serif}.receipt-row{display:flex;justify-content:space-between;border-bottom:1px dashed #d7c9aa;padding:10px 0;font-size:13px}.receipt-row .ico{width:15px}
/* Pages and cards */
.content-page{max-width:1220px;margin:auto;padding:36px 40px 45px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.page-heading h1{font-size:29px}.page-heading p{font-size:13px;color:#978168;margin-top:8px}.search-box{display:flex;align-items:center;gap:12px;background:#fffaf1;border:1px solid #dfd3ba;border-radius:12px;padding:10px 14px;max-width:460px;margin-bottom:25px}.search-box .ico{width:18px;color:#9a8769}.search-box input{width:100%;border:0;background:none;outline-offset:6px;font-size:14px;color:var(--ink);height:27px}.search-box input::placeholder{color:#b09d82}.menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.menu-card{position:relative;background:linear-gradient(150deg,#fffdf5,#f6eddb);border:1px solid #e0d0b1;border-radius:19px;padding:16px;box-shadow:0 5px 0 #e2d4b8,0 12px 20px #76542908;min-width:0}.card-top{display:flex;justify-content:space-between;font-size:10px;color:#a28b66;font-weight:700}.card-top>span:last-child{display:flex;align-items:center;gap:4px}.card-top .ico{width:14px;height:14px}.drink-stage{position:relative;height:184px;display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse,#ead9b640,transparent 66%)}.drink-stage img{max-height:166px;width:145px;filter:drop-shadow(0 9px 5px #78522525);transition:transform .3s}.menu-card:hover .drink-stage img{transform:translateY(-5px) rotate(1deg)}.menu-card h3{font:500 18px/1.35 Georgia,serif;color:#614830;min-height:49px;overflow-wrap:anywhere}.card-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#9d8769;margin:14px 0}.card-meta>span:first-child{display:flex;align-items:center;gap:6px;font-size:12px;color:#6f8260}.card-meta .ico{width:14px;height:14px}.out-stock .card-meta>span:first-child{color:#ae8860}.menu-card .game-btn{font-size:11px;padding:10px}.empty-message{grid-column:1/-1;color:#998467;padding:45px 20px;text-align:center;border:1px dashed #cfc0a2;border-radius:15px}.decor-slots{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:22px}.decor-slots .game-btn{font-size:12px}.decor-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:24px}.decor-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:15px}.decor-item{display:flex;flex-direction:column;position:relative;padding:8px 6px 10px;background:#fffaf1;border:1px solid #dac9a8;border-radius:15px}.decor-item>img{height:105px;width:100%;object-fit:contain}.decor-item>span{font-size:9px;min-height:28px;text-align:center;overflow-wrap:anywhere}.decor-item>i{position:absolute;top:6px;right:6px;width:21px;height:21px;border-radius:50%;background:#6f8c64;color:#fff;display:grid;place-items:center}.decor-item>i .ico{width:13px;height:13px}.rank-banner{display:flex;align-items:center;gap:24px;border:1px solid #d6c5a2;border-radius:22px;background:linear-gradient(100deg,#efe5cd,#fff9e8);padding:28px;margin:24px 0}.rank-medal{position:relative;display:flex;align-items:center;justify-content:center;width:94px;height:105px;flex-shrink:0;background:linear-gradient(#ebd39b,#cbaa64);border:4px double #fff1c5;border-radius:48px;box-shadow:0 5px 0 #b59558}.rank-medal .ico{width:68px;height:68px;position:absolute;stroke:#fff5d3;fill:#bb995657}.rank-medal b{position:relative;font:30px Georgia,serif;color:#795e32}.rank-banner>div:last-child{flex:1}.rank-banner h2{font:30px Georgia,serif}.rank-banner p{font-size:12px;color:#a48a61}.exp-track{height:8px;background:#e0d4ba;border-radius:8px;overflow:hidden;width:min(380px,100%);margin-top:14px}.exp-track i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#91ab7c,#617e56)}.stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:13px;margin-bottom:32px}.stat-card{display:flex;flex-direction:column;align-items:center;gap:10px;background:#fffaf0;border:1px solid #e2d5b9;border-radius:17px;padding:22px 8px;text-align:center}.stat-card .ico{color:#9e8556}.stat-card b{font:28px Georgia,serif;color:#6e563a}.stat-card span{font-size:10px;color:#9e8c71}.learning-table{margin:17px 0 32px;background:#fffcf4;border:1px solid #e0d3b8;border-radius:14px;overflow:hidden}.table-row{display:grid;grid-template-columns:minmax(0,1fr) 62px 62px 62px;gap:15px;padding:11px 16px;border-bottom:1px solid #e9dfcc;font-size:12px}.table-row:last-child{border:0}.table-row>:not(:first-child){text-align:center}.table-row.header{background:#ece3cd;color:#8c744b;font-size:11px}.quiz-history>div{display:flex;align-items:center;gap:14px;padding:14px 5px;border-bottom:1px solid #ddd1b9;font-size:11px}.quiz-history .ico{width:18px;color:#7f9467}.quiz-history span{flex:1}.quiz-history b{font-size:10px;white-space:nowrap;color:#9f845c}
/* Laboratories: a readable workstation beside a real supplied environment. */
.lab-layout{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,1.6fr);height:100%;max-width:1400px;margin:auto;padding:20px 25px;gap:25px}.lab-art{position:relative;overflow:hidden;border:1px solid #c2ac80;border-radius:22px;background-position:center;background-size:cover;isolation:isolate;max-width:430px;width:100%;min-height:350px}.lab-art>.world-piece{left:50%!important;top:58%!important;max-width:none}.lab-art>[data-part^=counter]{top:70%!important;width:115%!important}.lab-art>[data-part^=player]{top:66%!important;width:72%!important}.lab-art>[data-part^=decor]{top:69%!important;width:68%!important}.lab-sign{position:absolute;top:35px;left:10%;width:80%;text-align:center;padding:13px 5px;background:#fff9e5cc;border:1px solid #d2bd8f;border-radius:12px;z-index:9;color:#78603b;box-shadow:0 4px 0 #baa17555}.lab-sign>span{font:700 20px Georgia,serif;letter-spacing:3px}.lab-sign small{display:block;font-size:10px;margin-top:4px}.lab-note{position:absolute;bottom:30px;left:9%;width:82%;z-index:10;background:#fffbeaeb;border:1px solid #d6c492;border-radius:13px;padding:13px 10px;text-align:center;font-size:12px;color:#896f45}.lab-note .ico{width:15px}.lab-note small{font-size:9px;color:#ad956d}.lab-panel{background:#fffbf2;border:1px solid #e0d0b1;border-radius:22px;padding:24px;overflow:auto;min-height:0;min-width:0;box-shadow:var(--shadow)}.lab-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.lab-topline h2{font:25px/1.25 Georgia,serif}.lab-topline .eyebrow{font-size:9px;letter-spacing:1.6px}.journey{display:flex;align-items:center;justify-content:space-between;gap:5px;border-block:1px solid #e7dbc3;margin:20px 0;padding:11px 0}.journey>span{font-size:9px;white-space:nowrap;color:#b3a389}.journey>i{height:1px;flex:1;background:#ddd0b6;max-width:32px}.journey>.active{color:#735331;font-weight:800}.journey>.done{color:#71905b;font-weight:700}.puzzle-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}.puzzle-intro h3{font-size:20px}.puzzle-intro p{font-size:12px;color:#988161;margin:7px 0}.puzzle-intro .game-btn{flex-shrink:0}.rna-legend{display:flex;align-items:center;gap:6px;font-size:10px;color:#a08864;margin:15px 0}.dot{width:6px;height:6px;border-radius:50%;display:inline-block}.template-dot{background:#997653}.rna-dot{background:#92ae80;margin-left:13px}.legend-direction{margin-left:auto;color:#768f60}.rna-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.codon-group{padding:9px 9px 13px;border:1px solid #e3d6bd;border-radius:12px;background:linear-gradient(#f6f0e1,#fffdf6);min-width:0}.group-number{display:flex;justify-content:space-between;align-items:center;font:9px ui-monospace,monospace;color:#b09871;margin-bottom:12px}.group-number small{font:8px Tahoma,sans-serif;color:#b3a187}.coding-bases,.template-bases,.rna-bases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;text-align:center}.coding-bases{font:13px ui-monospace,monospace;color:#c4b59a;padding:2px 0 8px}.template-bases{font:700 22px ui-monospace,monospace;color:#81603e}.pair-arrows{font:12px ui-monospace,monospace;text-align:center;color:#c5b38e;letter-spacing:13px;padding:4px 0 6px;white-space:nowrap}.base-slot.game-btn{padding:0;min-height:42px;border:1px solid #d4c8ac;border-radius:8px;background:#fffef7;box-shadow:0 2px 0 #d6c9ae;font:600 21px ui-monospace,monospace;color:#a8997a}.base-slot.active{outline:2px solid #a6b88e;outline-offset:1px;background:#f0f5e7}.base-slot.filled{color:#527448;background:#edf3e6}.base-slot.incorrect{background:#fff0e7;border-color:#d99c88;color:#b45e43;outline-color:#d99c88}.puzzle-progress{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:#877253;margin:13px 0 19px}.puzzle-progress small{font-size:9px;color:#b29c7d;text-align:right}.base-palette{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.base-tile{display:flex;flex-direction:column;gap:3px;padding:11px 7px;cursor:grab;touch-action:none}.base-tile strong{font:700 27px ui-monospace,monospace}.base-tile span{font-size:8px;font-weight:400}.base-A{background:linear-gradient(#f8e9b5,#edda9a);border-color:#d4bd7f;box-shadow:0 4px 0 #c8ad6d;color:#8e7434}.base-U{background:linear-gradient(#f9e1da,#edd0c6);border-color:#d8afa2;box-shadow:0 4px 0 #c99887;color:#a96952}.base-G{background:linear-gradient(#e0eccf,#c9ddb5);border-color:#acc096;box-shadow:0 4px 0 #a0b486;color:#617f4b}.base-C{background:linear-gradient(#e0eaf1,#cbdce6);border-color:#acbfc9;box-shadow:0 4px 0 #9dabb5;color:#61808f}.keyboard-hint{font-size:9px;text-align:center;color:#a38e6f;margin:13px 0 17px}.hint-box{font-size:12px;background:#f2ead2;border:1px solid #dcc796;border-radius:11px;padding:13px 15px;margin:12px 0;color:#937347}.hint-box .ico{width:15px}.hint-box small{font-size:10px}.puzzle-tools{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:15px 0}.puzzle-tools .game-btn{font-size:10px}.puzzle-actions{margin-top:18px}.feedback-error{padding:12px 14px;border:1px solid #deb9a5;background:#fff0e3;color:#ab694b;border-radius:10px;font-size:12px;margin:15px 0}.feedback-success{padding:13px 15px;background:#eef3e1;border:1px solid #c0d0a7;border-radius:11px;color:#65854d;font-size:12px;margin:15px 0}.science-note{display:block;font-size:11px;line-height:1.8;color:#a18c6e;background:#f3eddd;border-radius:10px;padding:12px 14px;margin-top:18px}.science-note>.ico{width:14px;height:14px;margin-right:5px}.translation-rail{display:flex;gap:9px;flex-wrap:wrap;padding:18px 13px;border:1px solid #d7cfb0;border-radius:13px;background:#f0f2e2;position:relative;margin:15px 0}.amino-position{flex:1;min-width:65px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.amino-position code{font:700 16px ui-monospace,monospace;letter-spacing:2px;color:#6c8154}.amino-position small{font-size:8px;color:#9da98a}.aa-slot.game-btn{display:flex;flex-direction:column;gap:2px;width:100%;padding:5px 3px;min-height:78px;background:#fffdf3;border-color:#bfcba8;border-style:dashed;border-width:1px;box-shadow:0 3px 0 #c8d3b3;font-size:13px}.aa-slot img{height:47px;width:51px}.aa-slot strong{font:700 10px ui-monospace,monospace}.aa-slot.active{outline:2px solid #809967;outline-offset:2px}.aa-slot.incorrect{border-color:#c7836b;background:#fff0e4}.stop-endpoint{flex:1;min-width:68px;display:flex;flex-direction:column;align-items:center;gap:8px;border-left:1px dashed #bba782;padding-left:10px}.stop-endpoint code{font:700 16px ui-monospace,monospace;color:#a1855e}.stop-control{width:100%;min-height:78px;font-size:10px;background:#f0e5cb;flex-direction:column;gap:2px;padding:8px 2px}.stop-control.selected{background:#dceacd;color:#64764e;outline:2px solid #9fae82}.stop-endpoint small{font-size:8px;color:#a38965}.amino-palette{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.amino-tile.game-btn{position:relative;display:flex;flex-direction:column;padding:6px 3px 9px;gap:2px;background:#fffdf6;box-shadow:0 3px 0 #dbcfb3;border-color:#e1d3b8;border-radius:11px;cursor:grab;min-width:0}.amino-tile img{width:53px;height:49px}.amino-tile b,.amino-tile strong{font:700 11px ui-monospace,monospace;color:#735d3a}.amino-tile small,.amino-tile span{font-size:8px;color:#9b8667;text-align:center;overflow-wrap:anywhere;line-height:1.6}.polypeptide{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:25px 0}.polypeptide>span{padding:8px 12px;border-radius:50%;font:700 12px ui-monospace,monospace;background:#e7efd9;border:2px solid #bccba6;position:relative}.polypeptide>span:not(:last-child):after{content:'';width:10px;height:3px;background:#b1c393;position:absolute;right:-11px;top:50%}.synthesis-reward{text-align:center;padding:12px 5px}.synthesis-reward>img{height:180px;margin:20px auto;filter:drop-shadow(0 10px 6px #88623920)}.synthesis-reward h2{font-size:29px}.synthesis-reward h3{font:24px Georgia,serif}.card-award{font:50px Georgia,serif;color:#6e895e}.card-award small{font:14px Tahoma,sans-serif}.reward-summary{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;margin:20px 0}.reward-summary>span{display:flex;align-items:center;gap:7px;padding:10px 15px;border-radius:12px;background:#f0e8d5;border:1px solid #dfceaa;color:#9b7a43;font-size:13px}.reward-summary .ico{width:18px}
/* Dialogs and codon reference */
#modal-root{position:fixed;inset:0;z-index:100}.modal-backdrop{position:absolute;inset:0;background:#2e271c8f;backdrop-filter:blur(7px);display:flex;justify-content:center;align-items:center;padding:24px}.modal{position:relative;background:#fffaf0;border:1px solid #d9c294;border-radius:25px;max-width:760px;width:100%;max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 90px #160f1550,inset 0 0 0 6px #fffdf57f;animation:modalIn .2s ease-out;scrollbar-width:thin;scrollbar-color:#c2ad88 #faf2df}.modal-content{padding:34px}.modal-close{position:sticky;top:14px;float:right;margin:14px 14px -58px 0;z-index:6;box-shadow:0 3px 0 #cfb786}.modal-content>.eyebrow{padding-right:45px}.modal-content>h2{padding-right:45px}.recipe-hero{display:flex;gap:22px;align-items:center;margin:15px 0 24px}.recipe-hero>img{width:115px;height:147px;flex-shrink:0}.recipe-hero h2{font:27px/1.25 Georgia,serif;color:#785836}.recipe-hero p{font-size:12px;color:#a38a66}.dna-book{padding:20px;border-radius:12px;background:linear-gradient(100deg,#f1e4c8,#fff9e8 48%,#e7d8b880 49%,#f7efda 51%,#fff9e8);border:1px solid #d8c7a2;box-shadow:0 4px 0 #cdb790;overflow:auto}.strand-label{display:flex;justify-content:space-between;gap:20px;font-size:9px;letter-spacing:1px;font-weight:700;color:#a58b5e;margin-bottom:10px}.strand-label:last-child{margin-top:12px;margin-bottom:0;color:#927249}.strand-label span{font-size:9px;letter-spacing:0;font-weight:400}.dna-book code{display:block;font:600 15px/1.8 ui-monospace,monospace;letter-spacing:.1px;white-space:nowrap;color:#97805a}.dna-book code.template{color:#735336}.base-bonds{font:10px ui-monospace,monospace;color:#c1a97b;letter-spacing:8px;white-space:nowrap;margin:3px 0 3px 50px}.recipeDialog .wide{margin-top:15px}.notice{background:#f3e5d1;border:1px solid #d9c1a0;padding:12px;border-radius:10px;font-size:12px;color:#9b7145}.confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.modal-content>.wide{margin-top:15px}.codon-selectors{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:25px 0 18px}.codon-selectors label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#9d8560}.codon-selectors select{background:#f5efdf;border:1px solid #d6c39d;border-radius:12px;padding:10px 14px;min-height:48px;color:#6e7851;font:600 23px ui-monospace,monospace}.codon-result{display:flex;align-items:center;gap:16px;border:1px solid #c8d2b1;background:#edf2e0;border-radius:16px;min-height:111px;padding:14px 20px;margin-bottom:20px}.codon-result>code{font:700 29px ui-monospace,monospace;color:#647b51;letter-spacing:2px}.codon-result>span{color:#a2b086}.codon-result img{width:76px;height:71px}.codon-result h3{font:700 23px ui-monospace,monospace;color:#63724e}.codon-result h3 small{font:12px Georgia,serif;color:#97a080;margin-left:5px}.codon-result p{font-size:13px;margin:4px 0 0;color:#788963}.codon-result.is-stop{background:#f4e9d3;border-color:#d4be93}.codon-result.is-stop h3{color:#9d7850}.codon-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:340px;overflow:auto;padding:2px 4px 4px 2px}.codon-row{min-width:0;display:flex;align-items:center;gap:11px;border:1px solid #e6d9bd;border-radius:9px;background:#fffcf3;padding:12px 10px;text-align:left;min-height:47px}.codon-row code{font:700 13px ui-monospace,monospace;color:#937447}.codon-row b{font:700 11px ui-monospace,monospace;color:#70835a;min-width:28px}.codon-row span{font-size:9px;color:#a58c68}.codon-row:hover{background:#f3f0dd}.settings-grid{margin-top:20px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 3px;border-bottom:1px solid #e4d7bc;font-size:14px}.setting-row>span>.ico{width:17px;margin-right:5px;color:#9d8357}.setting-row small{display:block;font-size:10px;color:#a79475;margin:5px 0 0 26px}.setting-row input{appearance:none;width:44px;height:26px;background:#dcd1bc;border:1px solid #c9ba9e;border-radius:22px;position:relative;transition:.2s;cursor:pointer;flex-shrink:0}.setting-row input:before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fffaf0;box-shadow:0 1px 3px #72592730;transition:.2s}.setting-row input:checked{background:#8da881;border-color:#7e9870}.setting-row input:checked:before{transform:translateX(18px)}.settings-profile{display:flex;align-items:center;gap:14px;margin:22px 0;padding:12px;background:#f3ecdc;border-radius:14px}.settings-profile>img{width:64px;height:68px;transform:scale(1.15)}.settings-profile>div{flex:1;min-width:0}.settings-profile b{font-size:14px;overflow-wrap:anywhere}.settings-profile p{font-size:10px;color:#a28a65;margin:4px 0}.settings-profile .game-btn{font-size:10px}.settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:13px}.settings-actions .game-btn{font-size:12px}.privacy-note{font-size:11px;color:#a08d6c;margin-top:23px;padding:14px;background:#f1ebdb;border-radius:10px;display:flex;gap:9px;align-items:center}.privacy-note .ico{width:19px;flex-shrink:0}.about-logo{max-width:240px;margin:25px auto}.howto-steps{display:flex;flex-direction:column;gap:10px;margin:25px 0}.howto-steps>span{display:flex;align-items:center;gap:13px;font-size:13px;color:#8e7552}.howto-steps b{width:34px;height:34px;border-radius:10px;background:#e5edd7;border:1px solid #b7c9a1;display:grid;place-items:center;color:#6b8054;font-size:11px}
/* Mentor quiz */
.quiz-modal{max-width:775px}.quiz-mentor{display:flex;align-items:center;gap:17px;padding-right:35px;margin-bottom:23px}.mentor-avatar{width:79px;height:91px;flex-shrink:0;border-radius:24px;background:#eee4ca;border:1px solid #dac49a;overflow:hidden}.mentor-avatar img{width:97px;height:108px;max-width:none;transform:translate(-9px,-5px) scale(1.2);transform-origin:50% 38%}.quiz-mentor .eyebrow{font-size:8px;letter-spacing:1.5px}.quiz-mentor h2{font-size:25px}.quiz-mentor p{font-size:11px;color:#a08b69;margin:7px 0}.difficulty{display:inline-block;padding:3px 9px;background:#e5ecd7;border-radius:6px;border:1px solid #c7d2b5;color:#82946b;font-size:10px;margin-left:10px}.difficulty.d3,.difficulty.d4{background:#f3e2ca;border-color:#dfc9a3;color:#a48a59}.quiz-question{font-size:17px;line-height:1.9;background:#f4eddc;border:1px solid #e2d2af;border-radius:14px;padding:22px;margin-bottom:20px;overflow-wrap:anywhere}.quiz-question code,.quiz-choice code,.quiz-feedback code{font:600 .94em/1.8 ui-monospace,monospace;white-space:normal;overflow-wrap:anywhere;color:#647c51}.quiz-choices{display:flex;flex-direction:column;gap:13px;margin-bottom:22px}.quiz-choice{justify-content:flex-start;text-align:left;min-height:57px;box-shadow:0 3px 0 #d8c6a4;background:linear-gradient(#fffdf5,#faf1de);padding:12px 14px;gap:14px;font-size:14px;font-weight:500;line-height:1.65}.choice-letter{display:grid;place-items:center;width:33px;height:33px;border:1px solid #d6c5a2;border-radius:9px;background:#f1e6cf;font:bold 13px Georgia,serif;color:#9a7d4b;flex-shrink:0}.quiz-choice>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.quiz-choice.selected{outline:2px solid #8da676;border-color:#b4c39a;background:#edf1de}.quiz-choice.selected .choice-letter{background:#819b6c;color:#fff;border-color:#759160}.quiz-choice.correct:disabled{opacity:1;filter:none;background:#e8efda;border-color:#9daf86;box-shadow:0 3px 0 #a5b98f;color:#61784c}.quiz-choice.correct .choice-letter{background:#8eaa75;border-color:#819e68;color:#fff}.quiz-choice.incorrect:disabled{opacity:1;filter:none;background:#f6e6d9;border-color:#d0a288;color:#a46b50}.quiz-choice:disabled:not(.correct):not(.incorrect){opacity:.65;filter:none}.quiz-feedback{padding:17px 20px;border-radius:13px;margin:18px 0;border:1px solid #ced9bb;background:#eef3e2;color:#6e8159}.quiz-feedback b{font-size:14px;display:flex;align-items:center;gap:8px}.quiz-feedback .ico{width:18px}.quiz-feedback p{font-size:13px;line-height:1.9;margin:10px 0 0}.quiz-feedback.review{background:#f3ead8;border-color:#dac8a4;color:#8e7851}.quiz-support{font:12px/1.7 ui-monospace,monospace;white-space:pre-wrap;background:#f5ecd9;padding:15px;border-radius:10px;overflow:auto}.quiz-summary{text-align:center;padding:10px}.mentor-portrait{height:180px;width:180px;object-fit:contain;margin:0 auto 10px}.quiz-summary h2{font-size:27px}.quiz-summary .muted{font-size:12px}
/* Feedback and lifecycle */
#boot{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:#f3ead8;text-align:center}.boot-card{max-width:320px;padding:30px}.boot-card>img{max-height:180px;margin:auto}.boot-card h1{font-size:21px;color:#8f7650;margin:20px 0 10px}.boot-card p{font-size:12px;color:#a68e69}.loader{height:5px;width:200px;border-radius:5px;background:#dfd1b4;overflow:hidden;margin:24px auto}.loader i{display:block;width:40%;height:100%;background:#93a67a;border-radius:5px;animation:load 1.2s ease-in-out infinite}.fatal-card{max-width:550px;margin:20px;padding:32px;border:1px solid #d3b88e;border-radius:20px;background:#fff9e8}.fatal-card p{font-size:14px}.fatal-card .game-btn{margin-top:20px}#toast-root{position:fixed;bottom:97px;left:50%;transform:translateX(-50%);z-index:150;max-width:min(90vw,510px);pointer-events:none}.toast{display:flex;align-items:center;gap:10px;background:#fffaf0;border:1px solid #d6c19b;border-radius:15px;box-shadow:0 12px 35px #48301c30;padding:13px 20px;font-size:12px;animation:toastIn .22s ease-out}.toast .ico{width:18px;color:#9b7b47}.toast.error{border-color:#d1a18b;background:#fff2e5;color:#a3664b}.toast.success{border-color:#b2c299;background:#edf3e1;color:#6c8250}.drag-ghost{position:fixed!important;z-index:1000!important;pointer-events:none!important;transform:translate(-50%,-58%) rotate(-5deg)!important;opacity:.91;max-height:140px;min-height:50px;height:auto!important;background:#fff9e3eb!important;border-radius:14px;box-shadow:0 15px 25px #6d452638!important;padding:7px!important;animation:none!important}.drag-ghost img{max-height:100px;position:static!important;width:100%!important}.drag-ghost span{font-size:10px}.drag-ghost.small{height:auto}[data-drag]{touch-action:none}#effects{position:fixed;inset:0;pointer-events:none;z-index:160}.celebrate-label{position:absolute;top:37%;left:50%;transform:translateX(-50%);background:#fff8dc;border:2px solid #d1b371;border-radius:17px;padding:16px 26px;font-size:22px;font-weight:800;color:#8b713c;box-shadow:0 13px 30px #634d2b20;animation:rewardFly 1.5s ease-out both}.confetti-piece{position:absolute;left:50%;top:44%;width:7px;height:10px;border-radius:3px;background:var(--c,#cfb16b);animation:confetti 1.3s ease-out forwards}.image-failed{min-width:45px;min-height:45px;background:#f6e9d1;color:#9d7650}.reduce-motion *,.reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reduce-motion .sprite-body{transform:none}.reduce-motion .steam{display:none}
@keyframes breathe{0%,100%{transform:translateY(0) scaleY(1)}50%{transform:translateY(-1px) scaleY(1.008)}}@keyframes bubbleFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes steam{0%{transform:translateY(7px) scale(.6);opacity:0}35%{opacity:.8}100%{transform:translateY(-24px) scale(1.3);opacity:0}}@keyframes glow{50%{fill:#f3e3ab;filter:drop-shadow(0 0 5px #ceef96)}}@keyframes dash{to{stroke-dashoffset:-60}}@keyframes gauge{to{transform:rotate(40deg)}}@keyframes machineVibrate{to{transform:translateX(.7px)}}@keyframes targetPulse{50%{box-shadow:0 0 0 7px #e2e8ab59,inset 0 0 30px #ffec9630}}@keyframes dust{0%,100%{opacity:.15;transform:translateY(0)}50%{opacity:.8;transform:translateY(-30px)}}@keyframes mentorIn{from{opacity:0;transform:translateY(70px)}to{opacity:1;transform:none}}@keyframes drinkPop{from{opacity:0;transform:scale(.7) translateY(-20px)}to{opacity:1;transform:none}}@keyframes modalIn{from{opacity:0;transform:scale(.96) translateY(10px)}to{opacity:1;transform:none}}@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes load{0%{transform:translateX(-100%)}100%{transform:translateX(350%)}}@keyframes rewardFly{0%{opacity:0;transform:translate(-50%,30px) scale(.8)}20%{opacity:1;transform:translate(-50%,0) scale(1)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-90px) scale(.85)}}@keyframes confetti{to{transform:translate(var(--dx,60px),var(--dy,-100px)) rotate(var(--r,210deg));opacity:0}}
/* Responsive layout uses both viewport width and height. */
@media(min-width:1650px){.home-layout{max-width:1380px;gap:110px;padding-top:4vh;padding-bottom:4vh}.hero-theatre{height:390px}.register-card{max-width:490px;padding:40px}.home-logo>img{max-height:220px}.cafe-layout{max-width:1300px;grid-template-columns:minmax(0,1fr) 370px;gap:50px}.cafe-side{padding:32px}.order-drink{height:220px;width:180px}}
@media(max-width:1050px){.home-top{padding:17px 27px}.home-layout{gap:35px;padding:15px 26px 28px;grid-template-columns:minmax(0,1fr) minmax(340px,.92fr)}.register-card{padding:29px 23px 22px}.home-logo{max-width:330px}.hero-theatre{height:318px}.theatre-copy h1{font-size:40px}.hero-bio{font-size:12px}.home-pills{gap:16px;font-size:10px}.game-header{gap:15px;padding:9px 16px}.resource{min-width:90px;padding:7px 11px;gap:7px}.resource b{font-size:17px}.cafe-layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px;padding:17px 23px}.cafe-side{padding:21px}.order-product h2{font-size:23px}.order-drink{height:156px;width:135px}.cafe-side-footer{margin-top:15px;padding-top:15px}.lab-layout{grid-template-columns:minmax(180px,.6fr) minmax(0,1.8fr);gap:16px;padding:17px}.lab-panel{padding:20px}.content-page{padding:28px}.menu-grid{gap:18px}.menu-card{padding:14px}.drink-stage{height:152px}.drink-stage img{max-height:140px}.decor-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.stat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){.home-top{padding:14px 20px}.brand-kicker i{display:none}.home-layout{grid-template-columns:minmax(0,1fr) minmax(310px,1fr);gap:23px;padding:5px 20px 30px}.register-card{padding:26px 19px 22px;border-radius:23px}.register-card h2{font-size:21px}.register-card>p{font-size:11px}.hero-choice img{height:51px}.hero-choice>span{font-size:7px}.hero-select{gap:5px}.theatre-copy{width:46%}.theatre-copy h1{font-size:32px}.hero-video-frame{width:64%;margin-left:-10%}.hero-theatre{height:290px}.hero-bio{font-size:10px}.hero-number>span{font-size:29px}.home-logo>img{max-height:147px}.home-pills{gap:10px}.home-pills span{font-size:10px}.home-pills .ico{width:15px}.home-footer{padding-inline:25px}.game-brand{width:95px}.resource{min-width:78px;padding:7px 9px}.resource small{font-size:7px}.resource b{font-size:15px}.resource>.ico{width:19px;height:19px}.hud-resources{gap:7px}.game-header{gap:9px;height:73px}.header-right{gap:9px}.rank-chip{width:40px;height:40px}.header-right>.icon-btn{width:40px;height:40px;padding:8px}.cafe-layout{grid-template-columns:minmax(0,1fr) 249px;padding:13px;gap:14px}.cafe-side{padding:17px;border-radius:18px}.order-product h2{font-size:21px}.order-drink{height:140px;width:117px}.order-status{gap:6px;margin-top:15px}.context-controls .game-btn{font-size:11px;padding:10px 8px;min-height:46px}.order-header{margin-bottom:12px}.order-header .eyebrow{font-size:8px;letter-spacing:1px}.context-hint{font-size:10px}.cafe-side-footer .stamp{display:none}.cafe-side-footer b{font-size:32px}.game-dock{gap:8px;padding:10px 12px 15px}.dock-btn{min-width:104px;min-height:45px;font-size:11px;padding:9px 10px}.save-light{font-size:7px;bottom:3px}.lab-layout{grid-template-columns:1fr;padding:14px}.lab-art{display:none}.lab-panel{height:100%;padding:22px}.lab-topline h2{font-size:24px}.rna-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.amino-palette{grid-template-columns:repeat(5,minmax(0,1fr))}.content-page{padding:26px 22px}.menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.menu-card h3{font-size:17px}.page-heading h1{font-size:25px}.modal-content{padding:30px}.modal{max-height:calc(100dvh - 36px)}.modal-backdrop{padding:18px}.quiz-question{font-size:16px}}
@media(max-width:600px) and (orientation:portrait){#home{background:#f0e8d6}.home-scene{height:calc(100vw * .5625);min-height:220px;position:absolute;inset:0 0 auto}.home-scene video{height:auto;min-height:0;object-fit:contain;opacity:1}.home-shade{background:linear-gradient(0deg,#f0e8d6 0%,#f0e8d622 48%,#f0e8d625)}.home-top{padding:12px 17px}.brand-kicker{font-size:9px;letter-spacing:1px}.brand-kicker .ico{width:16px}.home-top .icon-btn{width:36px;height:36px;min-height:36px;padding:8px}.home-layout{display:flex;flex-direction:column;gap:28px;padding:0 20px 26px}.home-story{width:100%;max-width:440px}.home-logo{max-width:247px;margin:0 auto 12px}.home-logo>img{max-height:118px;filter:drop-shadow(0 4px 4px #67452220)}.ribbon{font-size:9px;padding:3px 14px;margin-top:2px}.hero-theatre{height:225px;border:0;max-width:355px;margin:auto}.theatre-copy{padding:5px 0 5px 4px;width:49%}.theatre-copy .eyebrow{font-size:7px;letter-spacing:1.5px}.theatre-copy h1{font-size:35px}.theatre-copy #hero-role{font-size:11px;margin-top:5px}.hero-number{margin-top:7px}.hero-number>span{font-size:25px}.hero-number>i{font-size:9px}.hero-bio{font-size:9px;line-height:1.65;margin:5px 0 9px}.theatre-copy .chip{font-size:7px;max-width:150px;padding:5px 7px}.theatre-copy .chip .ico{width:12px}.hero-video-frame{width:52%;height:225px;margin-left:-1%;border-radius:95px 95px 55px 55px;max-width:190px}.home-pills{margin-top:15px;padding-top:12px;gap:25px}.home-pills>span{font-size:10px}.register-card{max-width:440px;padding:27px 23px 25px}.register-card h2{font-size:23px}.register-card>p{font-size:12px}.form-grid input{height:45px;font-size:16px}.hero-choice img{height:58px}.hero-choice>span{font-size:8px}.hero-select{gap:7px}.hero-select-label>span{font-size:8px}.register-card .large{font-size:16px}.home-footer{font-size:7px;padding:0 22px 20px;letter-spacing:1px}.home-footer>span:last-child{font-size:11px}.game-header{height:64px;padding:6px 10px;gap:7px}.game-brand{width:74px;height:48px}.hud-resources{gap:5px}.resource{min-width:0;padding:5px 7px;height:42px;border-radius:10px;gap:5px}.resource>.ico{width:16px;height:16px}.resource small{display:none}.resource b{font-size:13px;line-height:1.2}.resource.quiz-hud{display:none}.header-right{gap:6px}.rank-chip{display:none}.header-right>.icon-btn{width:38px;height:38px;min-height:38px}.game-dock{padding:8px 8px max(13px,env(safe-area-inset-bottom));gap:7px;justify-content:space-between}.dock-btn{flex:1;min-width:0;min-height:48px;display:flex;flex-direction:column;padding:5px 2px;gap:3px;font-size:8px;border-radius:11px}.dock-btn .ico{width:19px;height:19px}.cafe-layout{position:relative;display:flex;flex-direction:column;gap:0;padding:8px 9px 0;height:100%;max-width:510px}.world-frame{width:100%;flex:1;min-height:150px;padding-bottom:5px}.world-scaled{border-radius:17px}.cafe-side{position:relative;width:100%;flex-shrink:0;align-self:stretch;max-height:165px;padding:12px 13px;margin:0 0 8px;border-radius:16px;overflow:auto;display:block;box-shadow:0 7px 20px #7250270e}.order-header{position:absolute;left:13px;top:10px;right:13px;margin:0}.order-header>.chip{font-size:8px;padding:2px 6px}.order-header .eyebrow{font-size:7px;letter-spacing:1px}.order-product{display:flex;flex-direction:row;text-align:left;gap:10px;margin-top:22px;width:58%}.order-product>.order-drink{height:59px;width:45px;flex-shrink:0}.order-product>div{min-width:0}.order-product h2{font-size:14px;line-height:1.2;margin:0;overflow-wrap:break-word}.order-product .recipe-tag{display:none}.order-price{font-size:12px;margin-top:4px;gap:4px}.order-price small{font-size:8px}.order-price .ico{width:12px;height:12px}.order-status{position:absolute;left:14px;bottom:11px;right:43%;margin:0}.stock-pill{font-size:8px;padding:3px 5px;gap:3px}.stock-pill .ico{width:11px;height:11px}.time-note{font-size:8px;gap:2px}.time-note .ico{width:10px;height:10px}.patience{position:absolute;left:14px;bottom:4px;width:calc(57% - 14px);margin:0;height:3px}.context-controls{position:absolute;right:12px;top:40px;width:37%}.context-controls .game-btn{font-size:10px;line-height:1.5;padding:9px 7px;gap:4px;min-height:46px;border-radius:10px}.context-controls .game-btn .ico{width:13px;height:13px}.context-controls .game-btn>.ico:last-child{display:none}.context-hint{font-size:8px;margin:9px 0 0;line-height:1.45}.cafe-side:has(.order-product){height:139px;min-height:139px}.cafe-side-footer{display:none}.selected-card{display:none}.cafe-side:has(.rna-capsule){min-height:135px}.cafe-side>.eyebrow{font-size:8px;margin-bottom:5px}.cafe-side>h2{font-size:17px}.cafe-side>p{font-size:11px;line-height:1.6;margin:5px 0}.cafe-side>.rna-capsule{padding:7px 10px;border-radius:10px;margin:10px 0;width:56%;gap:8px;min-height:55px}.rna-capsule>.ico{width:22px;height:22px}.rna-capsule>span{font-size:17px}.rna-capsule small{font-size:8px}.cafe-side:has(.rna-capsule)>p{display:none}.cafe-side:has(.rna-capsule)>.game-btn{position:absolute;right:12px;bottom:39px;width:36%;font-size:11px}.cafe-side>.pause-note{margin:4px 0 0;padding:2px 5px;font-size:8px;background:none}.cafe-side:has(.rna-capsule)>.pause-note{position:absolute;bottom:8px;right:8px}.cafe-side>.order-drink{display:none}.cafe-side>.mentor-portrait{display:none}.cafe-side:not(:has(.order-product)):not(:has(.rna-capsule))>.game-btn{font-size:11px;min-height:38px;padding:8px;margin-top:5px}.cafe-side>b{font:14px Georgia,serif}.sale-total{font-size:25px;padding:7px 0}.receipt-row{display:inline-flex;gap:8px;font-size:9px;border:0;padding:4px 9px 0 0}.content-page{padding:22px 15px}.page-heading{gap:12px;margin-bottom:18px}.page-heading h1{font-size:24px}.page-heading>.chip{display:none}.page-heading p{font-size:11px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.page-heading>.game-btn{font-size:10px;padding:9px 10px;flex-shrink:0}.search-box{padding:9px 12px;margin-bottom:18px}.search-box input{font-size:16px}.menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.menu-card{padding:12px;border-radius:16px}.drink-stage{height:137px}.drink-stage img{height:127px;width:117px}.menu-card h3{font-size:16px;min-height:45px}.menu-card .game-btn{font-size:10px;padding:9px 7px}.card-meta{font-size:8px;gap:4px}.card-meta>span:first-child{font-size:10px}.card-meta .ico{width:12px}.lab-layout{padding:9px}.lab-panel{padding:18px 14px;border-radius:17px}.lab-topline h2{font-size:21px}.lab-topline .eyebrow{font-size:8px}.lab-topline .game-btn{width:39px;height:39px;min-height:39px}.journey{gap:4px;margin:15px 0}.journey>span{font-size:8px}.puzzle-intro{gap:8px;margin-bottom:12px}.puzzle-intro h3{font-size:18px}.puzzle-intro p{font-size:11px}.puzzle-intro .game-btn{font-size:10px;padding:7px 9px}.rna-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.codon-group{padding:9px 8px 11px}.base-slot.game-btn{min-height:44px;font-size:23px}.template-bases{font-size:24px}.coding-bases{font-size:13px}.group-number{font-size:9px}.group-number small{font-size:8px}.base-palette{gap:9px}.base-tile{padding:10px 5px}.base-tile strong{font-size:25px}.base-tile span{font-size:7px}.puzzle-progress{gap:7px;font-size:9px}.puzzle-progress small{font-size:8px;max-width:140px}.amino-palette{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.amino-tile.game-btn{padding:7px 3px}.amino-tile img{height:45px;width:48px}.amino-tile span,.amino-tile small{font-size:8px}.translation-rail{gap:7px;padding:11px 9px}.amino-position{min-width:57px;max-width:75px}.amino-position code{font-size:14px}.aa-slot.game-btn{min-height:75px}.stop-endpoint{max-width:78px}.modal-backdrop{padding:10px}.modal{border-radius:20px;max-height:calc(100dvh - 20px)}.modal-content{padding:27px 19px}.modal-close{top:11px;margin-top:11px;margin-right:11px;width:36px;height:36px;min-height:36px;padding:8px}.modal-content>.eyebrow{font-size:8px;letter-spacing:1.6px}.modal-content>h2{font-size:23px}.modal-content>p{font-size:13px}.recipe-hero{gap:13px}.recipe-hero>img{width:75px;height:103px}.recipe-hero h2{font-size:22px}.recipe-hero p{font-size:10px}.recipe-hero .chip{font-size:9px;padding:5px 8px;white-space:normal}.dna-book{padding:14px}.dna-book code{font-size:12px}.base-bonds{font-size:8px;letter-spacing:5px;margin-left:40px}.strand-label{font-size:8px}.strand-label span{font-size:7px}.codon-selectors{gap:10px}.codon-selectors select{font-size:21px}.codon-result{padding:13px;gap:10px}.codon-result>code{font-size:24px}.codon-result img{width:54px;height:64px}.codon-result h3{font-size:21px}.codon-result h3 small{display:block;font-size:10px;margin-left:0;margin-top:4px}.codon-result p{font-size:11px}.codon-list{grid-template-columns:1fr;max-height:320px}.codon-row{padding:12px 15px;gap:17px}.codon-row code{font-size:15px}.codon-row b{font-size:13px}.codon-row span{font-size:11px}.quiz-mentor{gap:12px;margin-bottom:17px;padding-right:21px}.mentor-avatar{width:58px;height:70px;border-radius:18px}.mentor-avatar img{width:72px;height:86px;transform:translate(-7px,-3px) scale(1.2)}.quiz-mentor h2{font-size:21px}.quiz-mentor .eyebrow{font-size:7px;letter-spacing:1px}.quiz-mentor p{font-size:10px}.difficulty{font-size:8px;margin-left:6px;padding:2px 6px}.quiz-question{font-size:16px;padding:17px;line-height:1.85}.quiz-choice{font-size:14px;padding:11px 12px;gap:10px}.choice-letter{width:29px;height:29px;font-size:12px;border-radius:7px}.quiz-feedback{padding:15px}.quiz-feedback b{font-size:12px}.quiz-feedback p{font-size:12px}.settings-actions{gap:12px}.settings-actions .game-btn{font-size:10px;padding:10px 7px}.settings-profile{gap:8px}.settings-profile>img{width:49px;height:60px}.settings-profile>.game-btn{font-size:8px;padding:8px}.setting-row{font-size:12px}.setting-row small{font-size:9px}.privacy-note{font-size:10px}.rank-banner{padding:21px 17px;gap:17px}.rank-medal{width:70px;height:80px}.rank-medal .ico{width:51px;height:51px}.rank-medal b{font-size:24px}.rank-banner h2{font-size:24px}.rank-banner p{font-size:10px}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.stat-card{padding:17px 5px;gap:7px;border-radius:13px}.stat-card b{font-size:24px}.stat-card span{font-size:8px}.table-row{grid-template-columns:minmax(0,1fr) 35px 42px 35px;gap:7px;font-size:9px;padding:10px}.table-row.header{font-size:8px}.quiz-history>div{font-size:10px;gap:9px}.quiz-history b{font-size:8px}.decor-slots{gap:9px}.decor-slots .game-btn{font-size:10px;min-height:40px;padding:9px 12px}.decor-filters{gap:3px}.decor-filters .game-btn{font-size:9px;padding:8px}.decor-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.decor-item>img{height:91px}.decor-item>span{font-size:8px}.science-note{font-size:10px;padding:11px}#toast-root{bottom:80px}.toast{font-size:11px;padding:12px 15px}}
@media(max-height:650px) and (orientation:landscape){.home-top{padding:10px 24px}.home-layout{grid-template-columns:minmax(220px,1fr) minmax(320px,.92fr);align-items:start;gap:25px;padding:4px 25px 25px}.home-logo{max-width:230px;margin-bottom:10px}.home-logo>img{max-height:110px}.ribbon{font-size:8px;padding:3px 13px}.hero-theatre{height:240px;max-width:380px;margin:auto}.theatre-copy h1{font-size:32px}.theatre-copy .eyebrow{font-size:7px}.hero-bio{font-size:9px}.hero-number>span{font-size:25px}.hero-number{margin-top:8px}.hero-video-frame{max-width:195px}.home-pills{font-size:9px;gap:17px;margin-top:12px;padding-top:9px}.register-card{padding:24px 21px 21px}.register-card h2{font-size:21px}.register-card>.eyebrow{font-size:7px}.register-card>p{font-size:11px;margin-bottom:14px}.form-grid{gap:10px}.form-grid input{height:41px;font-size:14px}.hero-choice img{height:45px}.hero-choice>span{font-size:7px}.hero-select-label{margin-top:15px}.hero-select-label>span{font-size:8px}.home-footer{padding-top:0;font-size:8px}.game-header{height:54px;padding:5px 14px;gap:10px}.game-brand{width:91px;height:45px}.resource{height:38px;padding:5px 9px;min-width:79px;border-radius:10px}.resource small{font-size:6px;margin-bottom:2px}.resource b{font-size:13px}.resource>.ico{width:17px;height:17px}.rank-chip{width:36px;height:36px}.rank-chip span{font-size:16px}.header-right>.icon-btn{width:37px;height:37px;min-height:37px}.game-dock{height:55px;padding:6px 12px 10px;gap:8px}.dock-btn{min-width:93px;min-height:37px;font-size:10px;padding:7px 11px;gap:7px}.dock-btn .ico{width:16px;height:16px}.cafe-layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px;max-width:830px;padding:8px 17px}.cafe-side{max-height:100%;padding:15px 18px;border-radius:17px}.order-header{margin-bottom:10px}.order-header .eyebrow{font-size:8px}.order-product{flex-direction:row;gap:12px;text-align:left}.order-drink{width:63px;height:85px}.order-product h2{font-size:19px;margin:0 0 5px}.recipe-tag{font-size:8px}.order-price{font-size:15px}.order-status{margin-top:10px}.patience{margin:9px 0 13px}.context-controls .game-btn{font-size:11px;min-height:41px;padding:9px}.context-hint{font-size:9px;margin-top:8px}.cafe-side-footer{display:none}.selected-card{margin-top:10px;padding:5px}.selected-card>img{height:31px}.selected-card small{font-size:8px}.selected-card span{font-size:8px}.lab-layout{grid-template-columns:1fr;padding:8px 15px}.lab-art{display:none}.lab-panel{padding:20px}.lab-topline h2{font-size:23px}.rna-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.content-page{padding:22px}.modal-backdrop{padding:9px}.modal{max-height:calc(100dvh - 18px)}.modal-content{padding:28px}.modal-close{top:10px;margin-top:10px;margin-right:10px}.save-light{bottom:1px;font-size:6px}#toast-root{bottom:65px}}
@media(max-width:700px) and (max-height:500px) and (orientation:landscape){.brand-kicker{font-size:9px}.home-layout{grid-template-columns:220px minmax(280px,1fr);gap:17px;padding:0 15px 25px}.register-card{padding:22px 16px}.register-card h2{font-size:19px}.theatre-copy{width:47%}.theatre-copy h1{font-size:29px}.hero-bio{display:none}.hero-theatre{height:235px}.hero-video-frame{width:63%;margin-left:-10%}.theatre-copy .chip{font-size:7px}.home-pills{gap:9px}.home-pills>span{font-size:8px}.home-pills .ico{width:13px}.game-header{height:46px;padding:4px 10px;gap:7px}.game-brand{width:77px;height:37px}.resource{height:33px;min-width:67px;padding:4px 8px;gap:5px}.resource small{display:none}.resource b{font-size:12px}.resource.quiz-hud{display:none}.rank-chip{display:none}.header-right>.icon-btn{width:33px;height:33px;min-height:33px;padding:7px}.game-dock{height:45px;padding:4px 9px 8px;gap:7px}.dock-btn{min-width:84px;min-height:32px;font-size:9px;padding:6px 7px;border-radius:8px}.cafe-layout{grid-template-columns:minmax(0,1fr) 247px;gap:13px;padding:5px 12px}.cafe-side{padding:12px 14px}.order-header{margin-bottom:7px}.order-header .chip{display:none}.order-product h2{font-size:17px}.order-drink{height:62px;width:47px}.order-price{font-size:13px}.order-price small{font-size:9px}.order-status{margin-top:7px}.stock-pill{font-size:9px;padding:3px 6px}.time-note{font-size:9px}.patience{margin:8px 0 11px}.context-controls .game-btn{min-height:36px;font-size:10px;padding:8px}.context-hint{font-size:8px}.rna-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lab-panel{padding:18px}.amino-palette{grid-template-columns:repeat(5,minmax(0,1fr))}.menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.decor-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:350px) and (orientation:portrait){.home-layout{padding-inline:13px}.register-card{padding-inline:18px}.form-grid{gap:12px}.hero-select{gap:4px}.hero-choice img{height:48px}.hero-choice>span{font-size:7px}.hero-select-label>span{font-size:7px}.home-footer>span:last-child{display:none}.game-header{padding-inline:7px}.game-brand{width:64px}.resource{padding:5px 6px;gap:4px}.resource>.ico{width:13px}.resource b{font-size:12px}.hud-resources{gap:4px}.header-right>.icon-btn{width:34px;min-height:36px;height:36px}.cafe-side:has(.order-product){height:124px;min-height:124px;padding:10px}.order-product h2{font-size:12px}.order-product>.order-drink{height:51px;width:36px}.context-controls{right:9px;top:33px}.context-controls .game-btn{font-size:9px}.context-hint{font-size:7px}.cafe-side .order-header{top:8px}.rna-grid{gap:9px}.codon-group{padding-inline:6px}.base-slot.game-btn{min-height:42px}.lab-panel{padding-inline:11px}.amino-palette{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.modal-content{padding:25px 15px}.quiz-question{font-size:15px;padding:13px}.quiz-choice{font-size:13px;padding:10px;gap:9px}.settings-actions{grid-template-columns:1fr}.settings-profile{flex-wrap:wrap}.menu-grid{gap:11px}.menu-card{padding:10px}.menu-card h3{font-size:15px}.drink-stage{height:112px}.drink-stage img{height:105px}.card-top{font-size:8px}.page-heading h1{font-size:21px}.hero-theatre{height:210px}.hero-video-frame{height:210px}}
/* Semantic workstation pieces. */
.aa-column{flex:1;min-width:60px;text-align:center;display:flex;flex-direction:column;align-items:stretch;gap:9px;max-width:96px}.aa-column>code{font:700 16px ui-monospace,monospace;letter-spacing:2px;color:#748857}.aa-slot b{font:700 11px ui-monospace,monospace}.aa-slot small{font:8px Tahoma,sans-serif;color:#a29579;line-height:1.4}.empty-aa{font:26px Georgia,serif;color:#b9c6a1}.stop-column{border-left:1px dashed #b6a780;padding-left:9px;margin-left:3px}.stop-column>code{color:#a98a57}.stop-slot{min-height:78px;display:flex;flex-direction:column;padding:7px 3px;gap:3px;font-size:11px;background:#f4ead4;box-shadow:0 3px 0 #d8c6a3}.stop-slot .ico{width:16px}.stop-slot small{font-size:7px;font-weight:400}.stop-slot.chosen{background:#e0ebd2;color:#78905e}.prime{position:absolute;top:-10px;font:700 11px ui-monospace,monospace;background:#eef2e2;padding:3px 8px;border:1px solid #d4dcbf;border-radius:6px;color:#88966a}.prime-start{left:7px}.prime-end{right:7px}.amino-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 10px}.amino-label>b{font-size:12px}.amino-label small{font-size:9px;color:#a99675;font-weight:400;margin-left:7px}.amino-palette+.game-btn{margin-top:22px}.validation-message{padding:12px 15px;margin:15px 0;border:1px solid #dcc0a3;background:#f9eddc;border-radius:10px;font-size:12px;color:#a1794e}.verification-success{display:flex;align-items:center;gap:10px;border:1px solid #bacd9f;background:#e9f0dd;color:#64804e;font-size:14px;padding:17px;border-radius:12px;margin:21px 0}.peptide-line{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:24px 0}.peptide-line span{font:700 12px ui-monospace,monospace;padding:11px 12px;border-radius:40px;background:#e2ebd3;border:1px solid #b1c496;color:#6e8254;box-shadow:0 3px 0 #bdcfa4}.peptide-line i{font-style:normal;color:#bbca9e}.reward-scene{text-align:center;padding:12px 8px;position:relative;isolation:isolate}.reward-rays{position:absolute;top:25px;left:50%;transform:translateX(-50%);width:260px;height:260px;border-radius:50%;background:repeating-conic-gradient(#ead89625 0 15deg,transparent 15deg 30deg);mask-image:radial-gradient(black,transparent 70%);z-index:-1}.reward-cards{position:relative;width:163px;height:207px;margin:15px auto 26px;border:2px solid #c9b06d;border-radius:15px;background:linear-gradient(140deg,#fffcdf,#ecdda9);box-shadow:5px 6px 0 #cdb477,10px 12px 0 #e2cfa2,0 12px 25px #946c3023;transform:rotate(-4deg)}.reward-cards img{height:172px;width:136px;margin:7px auto 0;filter:drop-shadow(0 8px 5px #73542523)}.reward-cards b{position:absolute;right:-21px;bottom:7px;background:#678159;color:#fff9dc;font:700 25px Georgia,serif;padding:5px 14px;border-radius:14px;border:2px solid #c4d4aa;transform:rotate(4deg);box-shadow:0 4px 0 #3e5f3b}.codon-selector{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:25px 0 18px}.codon-selector label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#9d8560}.codon-selector select{background:#f5efdf;border:1px solid #d6c39d;border-radius:12px;padding:10px 14px;min-height:48px;color:#6e7851;font:600 23px ui-monospace,monospace}.reward-pop{position:absolute;top:37%;left:50%;display:flex;align-items:center;gap:10px;transform:translateX(-50%);background:#fff8dc;border:2px solid #d1b371;border-radius:17px;padding:16px 26px;font-size:22px;font-weight:800;color:#8b713c;box-shadow:0 13px 30px #634d2b20;animation:rewardFly 2.1s ease-out both;white-space:nowrap}.reward-particle{position:absolute;left:50%;top:44%;width:7px;height:10px;border-radius:3px;background:#cfb16b;animation:particleFly 1.3s ease-out forwards;animation-delay:var(--delay)}.reward-particle:nth-child(3n){background:#a4b484}.reward-particle:nth-child(3n+1){background:#d0a18d}@keyframes particleFly{to{transform:translate(var(--x),-190px) rotate(var(--r));opacity:0}}
@media(max-width:600px) and (orientation:portrait){.aa-column{min-width:56px;max-width:76px}.aa-column>code{font-size:14px}.amino-label>b{font-size:11px}.amino-label small{display:block;margin:4px 0 0}.codon-selector{gap:10px}.codon-selector select{font-size:22px}.verification-success{font-size:12px}.reward-pop{font-size:18px;padding:13px 20px}}
#start-game{width:100%}
.translation-rail{position:sticky;top:-24px;z-index:5;box-shadow:0 5px 12px #71633c0a}.amino-tile small{font-size:11px}.amino-tile b{font-size:13px}.amino-tile img{height:57px;width:60px}.decor-item:disabled{opacity:.36;box-shadow:0 2px 0 #d8cfbc}.decor-item:disabled:hover{filter:none;transform:none}
@media(max-width:600px) and (orientation:portrait){.translation-rail{top:-18px;flex-wrap:nowrap;overflow-x:auto;padding-top:18px;gap:8px}.aa-column{flex:0 0 62px;min-width:62px}.aa-column.stop-column{flex-basis:72px}.amino-tile small{font-size:9px}.amino-tile b{font-size:12px}.amino-tile img{height:48px;width:50px}.context-controls .game-btn{font-size:12px}.order-product h2{font-size:15px}.stock-pill{font-size:9px}.context-hint{font-size:8px}}

/* Gene Café 6.2 — immersive playfield and supplied 3D icon family. */
.ico.asset-icon{display:inline-block;width:28px;height:28px;object-fit:contain;flex-shrink:0;vertical-align:middle;filter:drop-shadow(0 2px 1px #79441c25)}
.game-btn .asset-icon{width:29px;height:29px}.dock-btn .asset-icon{width:38px;height:38px}.resource .asset-icon{width:36px;height:36px}
.cafe-mode #game{position:relative;border:5px solid #dbc69e;border-radius:22px;background:#846039;height:100dvh}
.cafe-mode .game-header{position:absolute;inset:13px 18px auto;height:72px;gap:12px;border:0;box-shadow:none;background:none;padding:0;pointer-events:none;z-index:70}
.cafe-mode .game-header>*{pointer-events:auto}.cafe-mode .game-brand{background:#fff5d9;border:2px solid #c8a465;border-radius:20px;box-shadow:0 5px 0 #91623680;padding:7px 25px;min-width:160px;height:78px}
.cafe-mode .game-brand img{height:62px;max-width:140px;object-fit:contain}.cafe-mode .hud-resources{margin-left:auto;gap:10px}
.cafe-mode .resource{border:2px solid #d0ae70;background:linear-gradient(#fff9e9,#fff0d2);box-shadow:0 4px 0 #94724077;border-radius:23px;padding:8px 15px;min-width:100px;height:58px}
.cafe-mode .resource small{font-size:10px}.cafe-mode .resource b{font-size:21px}
.cafe-mode #view-root{position:absolute;inset:0;overflow:hidden}
.cafe-mode .cafe-layout{display:block;position:relative;max-width:none;padding:0;margin:0;height:100%;width:100%;background:#bc8d57}
.cafe-mode .world-frame{position:absolute;inset:0;width:100%;height:100%;max-width:none;padding:0;border:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cafe-mode .world-scaled{position:relative;flex:none}.cafe-mode .world{border-radius:0}
.cafe-mode .cafe-side{position:absolute;left:20px;top:111px;bottom:108px;width:245px;max-height:none;align-self:auto;border-radius:26px;padding:24px 18px 18px;background:linear-gradient(100deg,#fff5d8,#fffae9);border:4px double #a98149;box-shadow:0 5px 0 #81563166,0 12px 35px #4a2d1829;z-index:55;scrollbar-width:thin;scrollbar-color:#c5a36a #fbf0d5;text-align:center}
.cafe-mode .cafe-side:before{content:'';position:absolute;top:0;left:calc(50% - 37px);width:74px;height:13px;border-radius:0 0 10px 10px;background:linear-gradient(90deg,#ae7a3d,#eed8a2,#ab7735)}
.cafe-mode .cafe-side h2{font:700 20px/1.4 Georgia,serif;margin:12px 0;color:#634529;overflow-wrap:anywhere}.cafe-mode .order-drink{height:158px;margin:8px auto;object-fit:contain}
.cafe-mode .cafe-side .primary{background:linear-gradient(#936939,#5b3e28);color:#fff6d9;border-color:#d7b782;box-shadow:0 4px 0 #71451f, inset 0 1px #edcc9d66;font-size:12px;min-height:48px}
.cafe-mode .cafe-side .muted{font-size:11px;line-height:1.6}.cafe-mode .cafe-side .order-price{font-size:25px;margin:12px 0}
.cafe-mode .game-dock{position:absolute;bottom:max(13px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:94%;padding:7px 10px;gap:5px;background:linear-gradient(#fff3d0,#efd29b);border:3px double #b1874d;border-radius:27px;box-shadow:0 5px 0 #a87a3d,0 12px 23px #63472630;z-index:65;overflow-x:auto}
.cafe-mode .dock-btn{min-width:76px;padding:5px 10px;min-height:60px;box-shadow:none;border:1px solid transparent;display:flex;flex-direction:column;gap:2px;background:transparent;font-size:11px}
.cafe-mode .dock-btn.active{background:#fff8dc;border:1px solid #c99b4b;box-shadow:0 3px 0 #b99050;border-radius:18px}
.cafe-mode .save-light{z-index:75;bottom:12px;right:15px;background:#fff7debd;padding:3px 8px;border-radius:8px;font-size:10px}
.cafe-mode #readonly-banner,.cafe-mode #practice-banner{position:absolute;top:91px;left:50%;transform:translateX(-50%);z-index:85;width:max-content;max-width:95%;padding:8px 12px;background:#fff3d2;border-radius:10px}
.world-piece{pointer-events:none}.world-actors{position:absolute;inset:0;pointer-events:none;z-index:25}.order-world{pointer-events:none!important;z-index:38}.actor{pointer-events:none}.actor img{pointer-events:none}.customer-target{z-index:40!important;cursor:pointer;outline-offset:5px}.drink-output{z-index:42}.drink-grab{cursor:grab;touch-action:none}.drink-grab:active{cursor:grabbing}.world-station{cursor:pointer}.world-station:hover{filter:drop-shadow(0 0 12px #fff3a9)}.world-station:focus-visible{outline:3px solid #fff29a;outline-offset:7px}.world-station .station-plaque{font-weight:700;box-shadow:0 4px 0 #9e763955}
.customer-target:hover,.customer-target:focus-visible{box-shadow:inset 0 0 0 3px #fff2ac,inset 0 0 35px #ffd87844}.drop-hover{filter:drop-shadow(0 0 15px #ffe7a2)!important;outline:3px solid #fff1ad!important}.scene-bg{pointer-events:none}.player-sprite{pointer-events:none;transition:none!important}.sprite-body.walking{animation:none}.lab-excursion .player-sprite{opacity:.72}.player-name{font-weight:700}.destination-ring{position:absolute;z-index:4;width:38px;height:17px;border:3px solid #fce6a5;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 18px #ffe784;pointer-events:none;animation:targetPulse .9s ease-in-out infinite}
.world-wide .world-logo{left:660px;top:135px;width:256px;height:150px;background:#fff2d0;border:4px double #bb944e;border-radius:35px;padding:12px 28px;filter:drop-shadow(0 6px 1px #71472055)}
.world-wide .open-sign{right:70px;top:120px;left:auto}.world-wide .nucleus-station{left:345px;top:180px;width:233px;height:250px;z-index:10}
.world-wide .ribo-station{left:1060px;top:199px;width:205px;height:248px;z-index:10}
.world-wide .brew-station{left:977px;top:365px;width:170px;height:225px;z-index:13}
.world-wide .rear-worktop{left:550px;top:514px;width:595px;height:29px;background:linear-gradient(#f9e6bc,#d3ad75);border:2px solid #b99154;border-radius:13px;z-index:2}
.world-wide .counter-top{left:500px;top:544px;width:650px;height:44px;border-radius:17px;background:linear-gradient(#fff6de,#dbc6a3);box-shadow:0 4px 0 #b38c4c;z-index:7}
.world-wide .drink-output{left:746px;top:440px;width:128px;height:144px}.world-wide .customer-target{left:720px;top:612px;width:177px;height:171px;border-radius:40%}
.world-wide .order-world{left:896px;top:585px}.world-wide .queue-mark.q1{left:1037px;top:799px}.world-wide .queue-mark.q2{left:1212px;top:811px}
.world-wide .mentor-world{left:975px;top:552px;width:235px;z-index:45}.world-wide .welcome-mat{left:690px;top:837px;width:290px}.world-wide .world-caption{left:25px;bottom:18px;background:#62422599;border-radius:12px;padding:8px;color:#fff3d4;font-size:9px}
.world-wide .player-name{bottom:6px}.world-wide .world-particles{z-index:3}.world-wide .sunlight{width:65%}
.screen-options{display:grid;gap:12px}.screen-options .wide{min-height:48px}
body[data-screen-mode=window].cafe-mode #game{max-width:1180px;height:min(92dvh,850px);margin:4dvh auto;box-shadow:0 22px 70px #34241977}
body.expanded-window.cafe-mode #game{position:fixed;inset:0;height:100dvh;margin:0;max-width:none;border:0;border-radius:0}
.recovery-card{max-width:620px;max-height:92dvh;overflow:auto}.recovery-actions{display:grid;gap:12px;margin-top:25px}.recovery-actions .game-btn{margin:0!important;min-height:48px}.recovery-card h1{font-size:30px}.recovery-card p{line-height:1.8}
.reward-pop{position:absolute;left:50%;top:38%;transform:translateX(-50%);padding:14px 26px;border:3px double #ba9259;background:#fff6d6;border-radius:23px;box-shadow:0 12px 40px #53361150;font-size:26px;font-weight:800;color:#7d562f;animation:rewardFly 1.8s ease-out both;display:flex;align-items:center;gap:10px}
.reward-particle{position:absolute;left:50%;top:42%;width:9px;height:13px;border-radius:4px;background:#e9b953;animation:particleBurst 1.5s ease-out forwards;animation-delay:var(--delay);opacity:0}
@keyframes particleBurst{10%{opacity:1}100%{opacity:0;transform:translate(var(--x),-260px) rotate(var(--r))}}
.cafe-mode:not(.expanded-window) #toast-root{bottom:105px}.game-btn:hover:not(:disabled){filter:brightness(1.035)}.game-btn:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #946b39}
/* Narrow portrait: the world stays dominant; order is a compact, readable bottom card. */
@media(max-width:760px) and (orientation:portrait){
 .cafe-mode #game{border-width:2px;border-radius:15px}.cafe-mode .game-header{inset:8px 8px auto;height:48px;gap:5px}.cafe-mode .game-brand{width:62px;min-width:62px;height:48px;border-radius:12px;padding:3px}.cafe-mode .game-brand img{height:38px}.cafe-mode .resource{min-width:0;height:45px;padding:4px 8px;gap:4px;border-radius:14px}.cafe-mode .resource b{font-size:16px}.cafe-mode .resource small{font-size:8px}.cafe-mode .resource .asset-icon{width:25px;height:25px}.cafe-mode .hud-resources{gap:4px}.cafe-mode .resource.exp,.cafe-mode .quiz-hud,.cafe-mode .rank-chip,.cafe-mode .sound-button{display:none}.cafe-mode .header-right{gap:4px}.cafe-mode .header-right .icon-btn{width:36px;min-width:36px;min-height:40px;padding:5px}.cafe-mode .header-right .asset-icon{width:24px;height:24px}
 .cafe-mode .world-frame{top:57px;bottom:155px;height:auto;min-height:180px}
 .cafe-mode .cafe-side{left:8px;right:8px;top:auto;bottom:77px;width:auto;height:113px;max-height:113px;padding:11px 12px;border-width:2px;border-radius:18px;display:block;text-align:left;overflow:auto}
 .cafe-mode .cafe-side:before{display:none}.cafe-mode .cafe-side .eyebrow{font-size:8px;margin:0}.cafe-mode .cafe-side h2{font:700 14px/1.4 sans-serif;margin:3px 105px 7px 0;max-width:none}.cafe-mode .cafe-side .order-drink{float:left;width:50px;height:69px;margin:1px 9px 5px 0}.cafe-mode .cafe-side .primary{min-height:43px;font-size:12px;padding:7px 11px}.cafe-mode .cafe-side .order-price{font-size:15px;margin:3px 0}.cafe-mode .cafe-side .muted,.cafe-mode .cafe-side .next-quiz,.cafe-mode .cafe-side .stamp,.cafe-mode .cafe-side .service-note{display:none}
 .cafe-mode .game-dock{bottom:10px;padding:4px 6px;gap:0;max-width:98%;width:max-content;border-radius:20px}.cafe-mode .dock-btn{min-width:45px;padding:3px 5px;min-height:51px;font-size:8px}.cafe-mode .dock-btn .asset-icon{width:28px;height:28px}.cafe-mode .dock-btn .ico:not(.asset-icon){width:24px;height:24px}.cafe-mode .save-light{bottom:0;font-size:7px;padding:0 4px}
 .cafe-mode #readonly-banner,.cafe-mode #practice-banner{top:56px;font-size:11px}
 .cafe-mode .rna-capsule{margin:7px 0;padding:9px;min-height:50px}.cafe-mode .cafe-side .pause-note{display:none}
}
/* Compact landscape prioritizes touch-size controls rather than shrinking a web page. */
@media(max-height:620px) and (orientation:landscape){
 .cafe-mode .game-header{top:6px;height:45px;left:10px;right:10px}.cafe-mode .game-brand{height:46px;min-width:100px;padding:3px 12px;border-radius:15px}.cafe-mode .game-brand img{height:38px}.cafe-mode .resource{height:42px;min-width:60px;padding:3px 10px;gap:5px;border-radius:15px}.cafe-mode .resource b{font-size:17px}.cafe-mode .resource small{font-size:8px}.cafe-mode .resource .asset-icon{width:25px;height:25px}.cafe-mode .resource.exp,.cafe-mode .quiz-hud,.cafe-mode .sound-button{display:none}.cafe-mode .game-header .icon-btn{min-height:40px;width:40px;min-width:40px;padding:6px}.cafe-mode .rank-chip{width:42px;height:42px;min-width:42px}
 .cafe-mode .cafe-side{top:65px;bottom:80px;width:182px;left:10px;padding:16px 11px;border-radius:18px}.cafe-mode .cafe-side .order-drink{height:72px;margin:4px auto}.cafe-mode .cafe-side h2{font-size:15px;margin:6px 0}.cafe-mode .cafe-side .muted,.cafe-mode .cafe-side .stamp{display:none}.cafe-mode .cafe-side .primary{font-size:11px;min-height:42px}.cafe-mode .game-dock{bottom:8px;padding:3px 6px}.cafe-mode .dock-btn{min-width:55px;padding:3px 6px;min-height:48px;font-size:9px}.cafe-mode .dock-btn .asset-icon{width:28px;height:28px}
}
@media(max-width:359px){.cafe-mode .header-right .screen-button{display:none}.cafe-mode .resource{padding:3px 5px!important}.cafe-mode .dock-btn{min-width:42px!important;padding:3px!important;font-size:8px!important}}

/* Final clear-space adjustments: faces and serving area stay above the dock. */
.world-wide .customer-target{top:570px;height:172px}
.world-wide .order-world{top:562px}
.world-wide .nucleus-station>img{width:233px;height:239px;left:0;top:0}
.world-wide .ribo-station{left:1110px;top:185px;width:183px;height:218px;background:none;border:0;box-shadow:none}
.world-wide .ribo-station>img{width:204px;height:204px;left:-10px;top:-10px;filter:drop-shadow(0 8px 3px #61432645)}
.world-wide .brew-station{left:957px;width:160px}
.world-wide .queue-mark.q1{top:760px}.world-wide .queue-mark.q2{top:780px}
.cafe-mode .tip-hud{min-width:83px}
@media(max-width:1200px){.cafe-mode .tip-hud{display:none}}
@media(max-width:760px) and (orientation:portrait){.cafe-mode .tip-hud{display:none}}
/* Compact order panel: explicit nested widths prevent inherited one-word columns. */
@media(max-width:760px) and (orientation:portrait){
 .cafe-mode .cafe-side:has(.order-product){height:141px;min-height:141px;max-height:141px;padding:10px 12px;overflow:hidden}
 .cafe-mode .cafe-side .order-product{position:relative;display:flex;flex-direction:row;width:60%;gap:8px;margin:26px 0 0;text-align:left;align-items:center}
 .cafe-mode .cafe-side .order-product>.order-drink{float:none;width:42px;min-width:42px;height:61px;margin:0;flex-shrink:0}
 .cafe-mode .cafe-side .order-product>div{width:auto;flex:1;min-width:0}
 .cafe-mode .cafe-side .order-product h2{margin:0;font:700 13px/1.3 Tahoma,system-ui,sans-serif;word-break:normal;overflow-wrap:normal;max-height:54px;overflow:auto}
 .cafe-mode .cafe-side .order-product .order-price{font-size:12px;margin:2px 0 0}.cafe-mode .cafe-side .order-price .asset-icon{width:17px;height:17px}
 .cafe-mode .cafe-side .order-status{position:absolute;left:12px;right:43%;bottom:12px;gap:4px;font-size:10px;margin:0}
 .cafe-mode .cafe-side .stock-pill{font-size:9px;padding:4px 6px}.cafe-mode .cafe-side .stock-pill .ico{width:17px;height:17px}
 .cafe-mode .cafe-side .context-controls{right:11px;top:39px;width:35%}.cafe-mode .cafe-side .context-hint{display:none}
 .cafe-mode .cafe-side .context-controls .primary{font-size:11px;min-height:54px;white-space:normal}
 .cafe-mode .cafe-side .context-controls .primary>.ico:first-child{display:none}
 .cafe-mode .cafe-side .patience{left:12px;bottom:5px;width:calc(100% - 24px);margin:0;height:3px}
 .cafe-mode .world-frame{bottom:220px}
}
@media(max-height:620px) and (orientation:landscape){
 .cafe-mode .cafe-side .order-product{width:100%;margin:8px 0;flex-direction:column;text-align:center;gap:4px}
 .cafe-mode .cafe-side .order-product>div{width:100%}.cafe-mode .cafe-side .order-product h2{margin:0;font-size:14px}
 .cafe-mode .cafe-side .order-status{position:static;display:flex;margin-top:8px;font-size:11px}
 .cafe-mode .cafe-side .context-controls{position:sticky;bottom:0;right:auto;width:100%;padding:4px 0;background:#fff5dd;z-index:3}
 .cafe-mode .cafe-side .context-hint{display:none}.cafe-mode .cafe-side .order-price{font-size:16px}
}
/* === Patch 1: user room art, per-profile anchors, equal visible character size === */
.cafe-mode .cafe-layout .world-frame{inset:0;width:100%;height:100%;padding:0;overflow:hidden;display:flex;align-items:center;justify-content:center;isolation:isolate}
.cafe-mode .cafe-layout .world-frame::before{content:"";position:absolute;inset:-25px;background-image:var(--shop-backdrop);background-size:cover;background-position:center;filter:blur(20px) brightness(.77);z-index:-1;pointer-events:none}
.cafe-mode .world-frame .world-scaled{border:0;border-radius:0;box-shadow:0 0 32px #49321c22;overflow:hidden}
.shop-patch1{position:relative!important;transform-origin:0 0;isolation:isolate}
.shop-patch1 .scene-bg{position:absolute;inset:0;object-fit:contain;pointer-events:none}
.shop-patch1 .patch-furniture,.shop-patch1 .patch-counter{position:absolute;display:block;max-width:none;pointer-events:none;object-fit:contain;transform:none;filter:drop-shadow(1px 4px 2px #58321422)}
.shop-patch1 .patch-tray{filter:drop-shadow(1px 3px 1px #59391830)}
.shop-patch1 .counter-top{position:absolute;border-radius:18px 18px 6px 6px;background:linear-gradient(175deg,#fffaf0 0%,#eee1c8 50%,#dbc2a0 84%,#bb8948 85%,#d8b775 100%);border:2px solid #c59a5d;box-shadow:0 2px 0 #7653304d;pointer-events:none}
.shop-patch1 .world-station{position:absolute;background:none;border:0;box-shadow:none;padding:0;border-radius:15px;max-width:none;overflow:visible;transition:filter .16s;touch-action:manipulation}
.shop-patch1 .world-station>img{max-width:none;object-fit:contain;pointer-events:none}
.shop-patch1 .world-station:hover,.shop-patch1 .world-station:focus-visible{filter:drop-shadow(0 0 9px #faec9caa)}
.shop-patch1 .nucleus-frames{position:absolute;pointer-events:none;max-width:none}
.shop-patch1 .nucleus-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;max-width:none;pointer-events:none;transition:none;filter:drop-shadow(1px 4px 2px #59391922)}
.shop-patch1 .station-plaque{position:absolute;top:calc(100% + 3px);bottom:auto;left:50%;transform:translateX(-50%);width:max-content;max-width:135%;min-width:74%;padding:4px 10px;border-radius:9px;gap:4px;font-size:var(--plaque-size,14px);white-space:nowrap;z-index:2;box-shadow:0 3px 0 #95724466;line-height:1.2;pointer-events:none}
.shop-patch1 .station-plaque small{font-size:.64em;margin-top:1px}
.shop-patch1 .station-plaque .asset-icon,.shop-patch1 .station-plaque .ico{width:1em;height:1em}
.shop-patch1 .ribo-art{position:absolute;max-width:none;filter:drop-shadow(0 5px 2px #5435122e)}
.shop-patch1 .rna-dock{left:12%;width:76%;bottom:2%;height:11px;padding:2px 6px;gap:3px;pointer-events:none}
.shop-patch1 .rna-dock i{width:15%;height:4px}
.shop-patch1 .brew-station .brewer-svg{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(1px 4px 2px #533b3329)}
.shop-patch1 .brew-plaque{top:calc(100% + 1px);bottom:auto;font-family:inherit;font-size:calc(var(--plaque-size)*.87);padding:4px 7px;max-width:135%}
.shop-patch1 .steam{bottom:22%;left:36%;height:20%;width:10%}.shop-patch1 .steam.s2{left:54%}
.shop-patch1 .player-sprite{position:absolute;transform:none!important;pointer-events:none;transition:none!important;aspect-ratio:1;max-width:none}
.shop-patch1 .sprite-body{width:100%;height:100%;background-size:400% 200%;background-repeat:no-repeat;transform-origin:50% 87.5%;animation:patchBreath 3.8s ease-in-out infinite}
.shop-patch1 .sprite-body.walking{animation:none}
.shop-patch1 .player-name{top:calc(87.5% + 6px);bottom:auto;max-width:160px;font-size:calc(var(--plaque-size)*.72);white-space:nowrap;background:#fff7e1d9;padding:2px 8px;z-index:3}
.shop-patch1 .player-aura,.shop-patch1 .actor-shadow{position:absolute;left:50%;top:87.5%;bottom:auto;width:calc(var(--actor-height)*.43);height:calc(var(--actor-height)*.075);transform:translate(-50%,-30%);background:#492b2030;border-radius:50%;filter:blur(2px);z-index:-1;pointer-events:none}
.shop-patch1 .world-actors{position:absolute;inset:0;z-index:auto;pointer-events:none}
.shop-patch1 .actor,.shop-patch1 .mentor-world{position:absolute;max-width:none;transform:none!important;aspect-ratio:1;height:auto;pointer-events:none}
.shop-patch1 .actor{transition:left .85s ease-in-out,top .85s ease-in-out,opacity .35s}
.shop-patch1 .actor-image,.shop-patch1 .mentor-world>img{position:relative;width:100%;height:100%;max-width:none;object-fit:contain;transform-origin:50% 87.5%;z-index:1}
.shop-patch1 .actor.idle .actor-image,.shop-patch1 .mentor-world .actor-image{animation:patchBreath 3.8s ease-in-out infinite;animation-delay:var(--phase,0s)}
.shop-patch1 .mentor-world{animation:none}.shop-patch1 .mentor-label{position:absolute;top:calc(87.5% + 6px);left:50%;transform:translateX(-50%);width:max-content;max-width:none;font-size:calc(var(--plaque-size)*.7);white-space:nowrap;z-index:3;padding:3px 8px}
.shop-patch1 .actor .held-drink{position:absolute;width:18%;height:18%;left:39%;top:57%;z-index:3}
.shop-patch1 .customer-target{position:absolute;background:transparent;border:0;z-index:20010!important;border-radius:38%;transform:none;touch-action:manipulation}
.shop-patch1 .drink-output{position:absolute;z-index:20000;transform:none}
.shop-patch1 .drink-grab.game-btn{width:100%;height:100%;padding:0;bottom:0;left:0;background:none;border:0;box-shadow:none;min-height:0;touch-action:none}
.shop-patch1 .drink-grab img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.shop-patch1 .drink-output.picked:after{width:max-content;max-width:210px;left:50%;transform:translateX(-50%);bottom:calc(100% + 4px);font-size:var(--plaque-size);white-space:nowrap;padding:3px 7px;pointer-events:none}
.shop-patch1 .order-world{position:absolute;z-index:20020;pointer-events:none!important}
.shop-patch1 .order-bubble{width:var(--bubble-width,72px);padding:5px 6px 4px;border-radius:14px}
.shop-patch1 .order-bubble>img{width:100%;height:calc(var(--bubble-width,72px)*.8);object-fit:contain}
.shop-patch1 .order-bubble span{font-size:calc(var(--plaque-size)*.72);white-space:nowrap}
.shop-patch1 .order-bubble>i{right:-4px;top:-5px;width:19px;height:19px}.shop-patch1 .order-bubble .ico{width:12px;height:12px}
.shop-patch1 #world-decor{position:static;pointer-events:none}.shop-patch1 #world-decor img{filter:drop-shadow(1px 2px 1px #58321418)}
.shop-patch1 .world-particles{z-index:1;pointer-events:none}
.shop-patch1 .destination-ring{z-index:100;pointer-events:none}
@keyframes patchBreath{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.4px)}}
.reduce-motion .shop-patch1 .sprite-body,.reduce-motion .shop-patch1 .actor-image{animation:none!important;transform:none!important}
/* Portrait scenes use the same art/anchor profile even when screen height changes. */
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side{left:12px;right:12px;top:auto;bottom:88px;width:auto;height:141px;min-height:141px;max-height:141px;padding:10px 16px;overflow:hidden;text-align:left;display:block}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side:before{display:none}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .order-header{font-size:11px}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .order-product{display:flex;flex-direction:row;width:62%;gap:12px;margin:26px 0 0;align-items:center;text-align:left}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .order-product>.order-drink{float:none;width:53px;min-width:53px;height:64px;margin:0}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .order-product>div{width:auto;min-width:0;flex:1}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .order-product h2{font:700 15px/1.4 Tahoma,system-ui,sans-serif;margin:0;overflow-wrap:normal;max-height:48px;overflow:auto}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .order-price{font-size:14px;margin:3px 0}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .order-status{position:absolute;left:16px;right:43%;bottom:10px;font-size:11px;margin:0}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .context-controls{position:absolute;right:16px;top:36px;width:33%;bottom:auto}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .context-controls .primary{min-height:56px;font-size:14px}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .patience{position:absolute;left:16px;bottom:5px;width:calc(100% - 32px);height:3px;margin:0}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side-footer,.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .context-hint,.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .service-note{display:none}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side>.mentor-portrait{display:none}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side>.rna-capsule{width:55%;margin:4px 0;padding:7px 10px;min-height:50px}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side>.pause-note,.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side:has(.rna-capsule)>p{display:none}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side:has(.rna-capsule)>.game-btn{position:absolute;right:16px;bottom:32px;width:33%}
@media(min-width:761px) and (max-width:1200px) and (orientation:landscape){
 .cafe-mode .cafe-side{width:175px;left:10px;padding:18px 10px}
 .cafe-mode .cafe-side h2{font-size:16px}.cafe-mode .order-drink{height:102px}
 .cafe-mode .cafe-side .primary{font-size:11px}
}
@media(max-width:760px) and (orientation:portrait){
 .shop-patch1 .station-plaque small{display:none}
 .shop-patch1 .station-plaque{padding:3px 5px}
 .shop-patch1 .brew-plaque{max-width:160%}
}
/* Keep the order overlay clear of the left pastry/display anchor. */
.cafe-mode[data-shop-profile="desktop"] .cafe-side{left:18px;width:210px;padding:23px 14px 15px}
.cafe-mode[data-shop-profile="desktop"] .cafe-side h2{font-size:18px}
.cafe-mode[data-shop-profile="tabletPortrait"] .game-header{left:12px;right:12px;top:12px;height:60px;gap:8px}
.cafe-mode[data-shop-profile="tabletPortrait"] .game-brand{width:105px;min-width:105px;height:61px;padding:6px 12px}
.cafe-mode[data-shop-profile="tabletPortrait"] .game-brand img{height:47px}
.cafe-mode[data-shop-profile="tabletPortrait"] .hud-resources{gap:6px}
.cafe-mode[data-shop-profile="tabletPortrait"] .resource{min-width:75px;height:51px;padding:5px 8px;gap:5px;border-radius:17px}
.cafe-mode[data-shop-profile="tabletPortrait"] .resource small{font-size:9px;white-space:nowrap}
.cafe-mode[data-shop-profile="tabletPortrait"] .resource b{font-size:18px}
.cafe-mode[data-shop-profile="tabletPortrait"] .resource .asset-icon{width:28px;height:28px}
.cafe-mode[data-shop-profile="tabletPortrait"] .quiz-hud,.cafe-mode[data-shop-profile="tabletPortrait"] .sound-button{display:none}
.cafe-mode[data-shop-profile="tabletPortrait"] .header-right{gap:5px}
.cafe-mode[data-shop-profile="tabletPortrait"] .rank-chip{width:44px;height:44px;min-width:44px}
.cafe-mode[data-shop-profile="tabletPortrait"] .header-right .icon-btn{width:40px;min-width:40px;height:42px;min-height:42px;padding:7px}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .order-header{position:absolute;top:8px;left:16px;right:16px;margin:0;height:25px}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .order-product{margin-top:26px}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .order-product>.order-drink{height:62px}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .recipe-tag{display:none}
.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side .stock-pill{font-size:10px;padding:3px 5px}


/* PATCH 02: Brief 5–9. Presentation only; world/saves/science remain intact. */
.shop-patch2 .brewer-art{position:absolute;display:block;max-width:none;pointer-events:none;object-fit:contain;filter:drop-shadow(0 5px 3px #49311a38)}
.shop-patch2 .ribo-station{border:0!important;background:none!important;box-shadow:none!important}
.shop-patch2 .brew-station.working .brewer-art{animation:brewWork .32s ease-in-out infinite alternate}
@keyframes brewWork{from{filter:drop-shadow(0 5px 3px #49311a38)}to{filter:drop-shadow(0 5px 3px #49311a38) brightness(1.04)}}
.lab-ribosome-new{position:absolute;width:185px;height:195px;object-fit:contain;left:50%;top:38%;transform:translateX(-50%);z-index:6;filter:drop-shadow(0 8px 4px #47332533);pointer-events:none}
/* A real fitted board: CTA never depends on scrolling past an oversized drink. */
.cafe-mode .cafe-side{container-type:size;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
.cafe-mode .cafe-side .order-board{height:100%;min-height:0;display:flex;flex-direction:column;gap:clamp(4px,1.3cqh,12px)}
.cafe-mode .cafe-side .order-board .order-header{position:static;flex:none;width:100%;margin:0;font-size:10px;min-height:23px}
.cafe-mode .cafe-side .order-board .order-product{position:static;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 1 auto;min-height:0;width:100%;gap:clamp(3px,1cqh,10px);margin:0;text-align:center}
.cafe-mode .cafe-side .order-board .order-drink{float:none;position:static;display:block;flex:1 1 auto;min-height:24px;height:clamp(36px,34cqh,260px);max-height:38cqh;width:100%;object-fit:contain;margin:0;filter:drop-shadow(0 8px 5px #7657321a)}
.cafe-mode .cafe-side .order-board .order-product>div{flex:0 0 auto;width:100%;min-width:0}
.cafe-mode .cafe-side .order-board .recipe-tag{display:block;font-size:clamp(8px,1.55cqh,10px);margin:0 0 3px}
.cafe-mode .cafe-side .order-board h2{font-size:clamp(13px,3cqh,20px);line-height:1.32;margin:0;text-align:center;max-height:none;overflow:visible;overflow-wrap:normal;word-break:normal}
.cafe-mode .cafe-side .order-board .order-price{font-size:clamp(14px,3.7cqh,25px);margin:clamp(3px,1.7cqh,14px) 0 0;line-height:1.15;justify-content:center}
.cafe-mode .cafe-side .order-board .order-price small{font-size:10px;margin-left:4px}
.cafe-mode .cafe-side .order-board .order-price .asset-icon{width:27px;height:27px}
.cafe-mode .cafe-side .order-board .order-status{position:static;margin:0;display:flex;justify-content:space-between;align-items:center;flex:none;gap:4px;font-size:11px}
.cafe-mode .cafe-side .order-board .stock-pill{font-size:10px;padding:5px 7px;gap:3px}.cafe-mode .cafe-side .order-board .time-note{white-space:nowrap}
.cafe-mode .cafe-side .order-board .patience{position:static;width:100%;height:5px;min-height:5px;margin:0;flex:none}
.cafe-mode .cafe-side .order-board .context-controls{position:static;inset:auto;width:100%;padding:0;flex:none;background:none;z-index:auto}
.cafe-mode .cafe-side .order-board .context-controls .game-btn{font-size:12px;line-height:1.3;min-height:45px;width:100%;padding:9px 7px;white-space:normal;gap:5px}
.cafe-mode .cafe-side .order-board .context-controls .game-btn .ico{width:17px;height:17px;flex-shrink:0}
.cafe-mode .cafe-side .order-board .context-hint{font-size:10px;line-height:1.45;margin:7px 0 0}
.cafe-mode .cafe-side .order-board .cafe-side-footer{position:static;flex:none;width:100%;margin:0;padding-top:10px;min-height:0;font-size:10px}
.cafe-mode .cafe-side .order-board .cafe-side-footer b{font-size:24px}
.cafe-mode .cafe-side .order-board .cafe-side-footer .stamp{font-size:9px;width:49px;height:49px}
.cafe-mode .cafe-side .order-board .selected-card{position:static;flex:none;margin:0;height:50px;padding:5px 8px;font-size:10px;display:flex;align-items:center;gap:8px}
.cafe-mode .cafe-side .order-board .selected-card img{width:28px;height:40px;object-fit:contain}
/* Full-height delivery art, no old DNA icon in the draggable payload. */
.cafe-mode .cafe-side:has(.rna-capsule){display:flex;flex-direction:column;gap:8px}
.cafe-mode .cafe-side:has(.rna-capsule)>h2{font-size:clamp(17px,3.3cqh,23px);line-height:1.25;margin:5px 0;text-align:center}
.cafe-mode .cafe-side:has(.rna-capsule)>.rna-capsule{position:relative;display:flex;flex:1 1 auto;min-height:60px;max-height:42cqh;width:100%;padding:0;margin:0;flex-direction:column;align-items:center;justify-content:center;border-radius:18px;background:radial-gradient(ellipse at center,#c7e6cb30,transparent 70%);border:1px solid #b0c5a24d;box-shadow:none;touch-action:none}
.cafe-mode .cafe-side .rna-capsule.chosen{outline:3px solid #94b293;outline-offset:1px;filter:drop-shadow(0 0 6px #8cdcd457)}
.mrna-ribbon{display:block;position:relative;width:min(100%,230px);aspect-ratio:1;pointer-events:none;flex:1 1 auto;min-height:24px;max-height:100%;transform:none}
.mrna-ribbon>img{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none;transition:none!important}
.rna-payload-label{flex:none!important;font-size:14px;text-align:center;letter-spacing:1px;margin-top:-18px;padding:0 4px 8px}
.rna-payload-label small{display:block;font-size:10px;letter-spacing:0;margin-top:2px}
.cafe-mode .cafe-side:has(.rna-capsule)>p{font-size:12px;line-height:1.6;margin:4px 0}
.cafe-mode .cafe-side:has(.rna-capsule)>.game-btn{position:static;min-height:44px;font-size:13px;width:100%;flex:none}
.cafe-mode .cafe-side:has(.rna-capsule)>.pause-note{position:static;font-size:10px;flex:none;margin:0;padding:9px}
.rna-capsule.drag-ghost{height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:none!important;box-shadow:none!important;border:0!important}
.rna-capsule.drag-ghost .mrna-ribbon{width:125px;height:125px;flex:none}.rna-capsule.drag-ghost .rna-payload-label{display:none}
/* Codex: received card + antiparallel alignment, legible on all screens. */
.recipe-hero{display:grid!important;grid-template-columns:110px minmax(0,1fr) 115px;align-items:center;gap:20px;margin-top:18px}
.recipe-hero>img{width:110px!important;height:160px!important;object-fit:contain}
.recipe-hero h2{font-size:clamp(19px,2.3vw,27px);line-height:1.3;margin:0 0 12px}
.reward-card-preview{margin:0;min-width:0;width:100%;position:relative;text-align:center}
.reward-card-preview>img{display:block;width:100%;max-height:165px;object-fit:contain;border-radius:9px;filter:drop-shadow(0 5px 4px #71553830)}
.reward-card-preview figcaption{font-size:10px;line-height:1.4;margin-top:5px;color:#795631}
.reward-card-preview strong{display:inline-block;font-size:13px;border-radius:20px;background:#f6e7ba;padding:2px 8px;margin-left:3px;color:#755023}
.dna-book.patch2-dna{padding:20px 18px;text-align:center;max-width:100%;margin:20px 0}
.patch2-dna .strand-label{font-size:10px;letter-spacing:1px;display:flex;justify-content:space-between;gap:10px;text-align:left}
.patch2-dna .strand-label span{font-size:10px;letter-spacing:0;text-align:right}
.dna-pair-scroll{overflow-x:auto;padding:10px 0;max-width:100%;scrollbar-width:thin}
.dna-pair-lines{width:max-content;margin:0 auto}
.dna-book .dna-pair-lines code{display:block;white-space:pre;text-align:left;font:700 clamp(14px,2.05vw,22px)/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:0;color:#a68b63;overflow:visible;padding:0;background:none}
.dna-book .dna-pair-lines .template{color:#755134}.dna-book .dna-pair-lines .base-bonds{color:#c2a86b;line-height:.9;font-weight:400;letter-spacing:0;opacity:.65;margin:1px 0}
/* Progress of the job, not a claim that partially filled answers are correct. */
.synthesis-progress{margin:16px 0 20px;padding:12px 14px;background:#f8f0dc;border:1px solid #e5d2ac;border-radius:15px}
.progress-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8f7451;margin-bottom:8px;gap:8px}
.progress-heading>b{font-size:13px;color:#526e50}.journey-track{height:9px;border-radius:20px;background:#e4d8bd;overflow:hidden;box-shadow:inset 0 2px 2px #6e4a1a15}
.journey-track>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#9eb78a,#4f7c64);transition:width .22s ease}
.journey-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:10px 0 0;padding:0;list-style:none;gap:5px;color:#ab977b;font-size:10px}
.journey-stages>li{display:flex;align-items:center;gap:5px;line-height:1.35}.journey-stages>li>span{display:grid;place-items:center;border:1px solid #d7c7a7;border-radius:50%;flex-shrink:0;width:19px;height:19px;font-size:9px}
.journey-stages>li.done{color:#567459;font-weight:700}.journey-stages>li.done>span{background:#648966;color:#fff;border-color:#648966}
.puzzle-options{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.puzzle-options .game-btn{min-height:40px;line-height:1.4;font-size:11px}
.puzzle-options [aria-pressed="true"]{background:#e4ecd9;box-shadow:0 3px 0 #aabe9c}
/* Codon cells, U/C/A/G order. Every sense codon has its own ingredient thumb. */
.codon-modal{width:min(1060px,calc(100vw - 28px))!important;max-width:1060px!important}
.codon-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:stretch;max-height:none!important;overflow:visible!important}
.codon-row{display:flex!important;justify-content:space-between;align-items:center;gap:7px;min-width:0;min-height:90px;padding:10px;border:1px solid transparent;border-radius:12px;background:#f4edd9;text-align:left;color:#62442e;transition:background .12s,box-shadow .12s}
.codon-row:hover,.codon-row:focus-visible{background:#ebecd8;box-shadow:0 2px 0 #c0c8a4;border-color:#b1bd97}
.codon-cell-text{min-width:0;flex:1}.codon-cell-text>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.codon-cell-text code{font:800 16px ui-monospace,monospace;letter-spacing:1px;color:#638366;padding:0;background:none}.codon-cell-text b{font-size:12px}
.codon-row .codon-cell-text>span{display:block;font-size:11px;line-height:1.5;margin-top:5px;word-break:normal}
.codon-row .codon-ingredient{flex:0 0 48px;width:48px;height:57px;object-fit:contain;filter:drop-shadow(0 3px 2px #7759391c)}
.codon-row.is-stop{background:#f1d5c6;border-color:#ebc0a6}.codon-stop-symbol{color:#be7864;font-size:22px;padding:0 10px}
.music-detail{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 22px;padding:12px;background:#f6eedf;border-radius:12px}.music-detail small{font-size:11px;line-height:1.5}.music-detail button{flex-shrink:0;font-size:11px}
@container(max-height:510px){.cafe-mode .cafe-side .order-board .cafe-side-footer,.cafe-mode .cafe-side .order-board .context-hint{display:none}.cafe-mode .cafe-side .order-board h2{font-size:15px}.cafe-mode .cafe-side .order-board .order-drink{max-height:31cqh}}
@media(max-width:800px){.codon-list{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-hero{gap:12px;grid-template-columns:85px minmax(0,1fr) 94px}.recipe-hero>img{width:85px!important;height:130px!important}.reward-card-preview>img{max-height:142px}}
@media(max-width:550px){.recipe-hero{grid-template-columns:66px minmax(0,1fr) 76px;gap:9px}.recipe-hero>img{width:66px!important;height:100px!important}.recipe-hero h2{font-size:18px;margin:0 0 6px}.recipe-hero p{font-size:11px;line-height:1.5;margin:3px 0}.recipe-hero .chip{font-size:9px;padding:5px 6px}.reward-card-preview>img{max-height:110px}.reward-card-preview figcaption{font-size:9px}.reward-card-preview strong{font-size:11px}.dna-book.patch2-dna{padding:13px 9px}.patch2-dna .strand-label{font-size:9px;letter-spacing:.5px}.patch2-dna .strand-label span{font-size:9px}.dna-book .dna-pair-lines code{font-size:14px}.codon-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.codon-row{padding:8px;min-height:87px;gap:4px}.codon-cell-text code{font-size:14px}.codon-cell-text>div{gap:6px}.codon-row .codon-ingredient{flex-basis:34px;width:34px;height:48px}.codon-row .codon-cell-text>span{font-size:10px}.codon-modal{width:calc(100vw - 16px)!important;padding:27px 14px 20px!important}.puzzle-intro{flex-wrap:wrap;gap:8px}.puzzle-options{width:100%;justify-content:flex-start}.puzzle-options .game-btn{min-height:42px}.journey-stages{font-size:9px;gap:3px}.journey-stages>li{gap:3px}.journey-stages>li>span{width:16px;height:16px}.synthesis-progress{padding:10px;margin:12px 0 15px}.music-detail{flex-wrap:wrap}}
/* Portrait: compact board above game dock; image/title left, actions right. */
@media(orientation:portrait) and (max-width:900px){
 .cafe-mode .cafe-side,.cafe-mode[data-shop-profile="tabletPortrait"] .cafe-side{left:10px;right:10px;top:auto;bottom:81px;width:auto;height:152px;min-height:152px;max-height:152px;padding:10px 12px;overflow-x:hidden;overflow-y:auto;text-align:left;display:block}
 .cafe-mode .cafe-side:before{display:none}
 .cafe-mode .cafe-side .order-board{display:grid;grid-template-columns:minmax(0,1fr) 34%;grid-template-rows:20px minmax(0,1fr) 5px;column-gap:10px;row-gap:5px}
 .cafe-mode .cafe-side .order-board .order-header{grid-column:1;grid-row:1;font-size:9px;min-height:0;height:20px}
 .cafe-mode .cafe-side .order-board .order-product{grid-column:1;grid-row:2;display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;width:100%;margin:0;text-align:left;align-items:center}
 .cafe-mode .cafe-side .order-board .order-product>.order-drink{width:42px;height:73px;min-height:0;max-height:73px;float:none;position:static;margin:0}
 .cafe-mode .cafe-side .order-board .order-product>div{width:100%;min-width:0}
 .cafe-mode .cafe-side .order-board h2{font:700 clamp(11px,2.75vw,15px)/1.3 Tahoma,system-ui,sans-serif;margin:0;text-align:left;overflow:visible;max-height:none}
 .cafe-mode .cafe-side .order-board .recipe-tag{display:none}
 .cafe-mode .cafe-side .order-board .order-price{font-size:13px;margin:4px 0 0;justify-content:flex-start}.cafe-mode .cafe-side .order-board .order-price .asset-icon{width:18px;height:18px}.cafe-mode .cafe-side .order-board .order-price small{font-size:9px}
 .cafe-mode .cafe-side .order-board .order-status{grid-column:2;grid-row:1;position:static;font-size:9px;gap:1px;white-space:nowrap}.cafe-mode .cafe-side .order-board .stock-pill{font-size:9px;padding:2px 4px}.cafe-mode .cafe-side .order-board .stock-pill .ico{width:13px;height:13px}.cafe-mode .cafe-side .order-board .time-note{font-size:9px}.cafe-mode .cafe-side .order-board .time-note .ico{display:none}
 .cafe-mode .cafe-side .order-board .context-controls{grid-column:2;grid-row:2;position:static;width:100%;align-self:center}.cafe-mode .cafe-side .order-board .context-controls .game-btn{font-size:11px;min-height:52px;padding:6px;gap:4px}.cafe-mode .cafe-side .order-board .context-controls .game-btn>.ico{display:none}
 .cafe-mode .cafe-side .order-board .patience{grid-column:1/-1;grid-row:3;position:static;width:100%;margin:0;height:4px;min-height:4px}
 .cafe-mode .cafe-side .order-board .context-hint,.cafe-mode .cafe-side .order-board .cafe-side-footer{display:none}
 .cafe-mode .cafe-side .order-board .selected-card{display:none}
 .cafe-mode .cafe-side:has(.rna-capsule){display:grid;grid-template-columns:47% minmax(0,1fr);grid-template-rows:20px 1fr;column-gap:12px;row-gap:5px}
 .cafe-mode .cafe-side:has(.rna-capsule)>.eyebrow{grid-column:1/-1;font-size:10px}.cafe-mode .cafe-side:has(.rna-capsule)>h2{grid-column:2;grid-row:1;margin:0;font-size:10px;text-align:left;align-self:center}
 .cafe-mode .cafe-side:has(.rna-capsule)>.rna-capsule{grid-row:2;grid-column:1;max-height:none;min-height:0;width:100%;margin:0;border:0;background:none;position:relative}
 .cafe-mode .cafe-side .rna-capsule .mrna-ribbon{position:absolute;width:140px;height:140px;left:50%;top:50%;transform:translate(-50%,-50%)}
 .cafe-mode .cafe-side .rna-payload-label{position:absolute;bottom:0;font-size:11px;margin:0;padding:0}.cafe-mode .cafe-side .rna-payload-label small{display:none}
 .cafe-mode .cafe-side:has(.rna-capsule)>.game-btn{grid-column:2;grid-row:2;align-self:center;position:static;width:100%;font-size:12px;min-height:49px;margin:0;bottom:auto;right:auto}
 .cafe-mode .cafe-side:has(.rna-capsule)>p,.cafe-mode .cafe-side:has(.rna-capsule)>.pause-note{display:none}
}
@media(orientation:landscape) and (max-height:620px){
 .cafe-mode .cafe-side .order-board{gap:4px;display:grid;grid-template-columns:62px minmax(0,1fr);grid-template-rows:18px minmax(28px,1fr) 22px 4px auto}
 .cafe-mode .cafe-side .order-board .order-header{grid-column:1/-1;grid-row:1;font-size:8px;min-height:0;height:18px}
 .cafe-mode .cafe-side .order-board .order-product{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:50px minmax(0,1fr);gap:6px;align-items:center}
 .cafe-mode .cafe-side .order-board .order-product>.order-drink{width:50px;height:100%;max-height:98px;min-height:20px;margin:0}.cafe-mode .cafe-side .order-board .recipe-tag{display:none}
 .cafe-mode .cafe-side .order-board h2{font:700 11px/1.3 Tahoma,system-ui,sans-serif;text-align:left}.cafe-mode .cafe-side .order-board .order-price{font-size:13px;margin:4px 0 0;justify-content:flex-start}.cafe-mode .cafe-side .order-board .order-price .ico{width:18px;height:18px}
 .cafe-mode .cafe-side .order-board .order-status{grid-column:1/-1;grid-row:3;font-size:10px}
 .cafe-mode .cafe-side .order-board .patience{grid-column:1/-1;grid-row:4;min-height:4px}
 .cafe-mode .cafe-side .order-board .context-controls{grid-column:1/-1;grid-row:5;position:static}
 .cafe-mode .cafe-side .order-board .context-controls .game-btn{font-size:11px;min-height:38px;padding:7px}.cafe-mode .cafe-side .order-board .context-hint,.cafe-mode .cafe-side .order-board .cafe-side-footer,.cafe-mode .cafe-side .order-board .selected-card{display:none}
 .cafe-mode .cafe-side:has(.rna-capsule)>.eyebrow{font-size:8px}.cafe-mode .cafe-side:has(.rna-capsule)>h2{font-size:12px;margin:0}.cafe-mode .cafe-side:has(.rna-capsule)>p,.cafe-mode .cafe-side:has(.rna-capsule)>.pause-note{display:none}.cafe-mode .cafe-side:has(.rna-capsule)>.rna-capsule{flex:1;min-height:30px;max-height:none}.cafe-mode .cafe-side .rna-payload-label{display:none}.cafe-mode .cafe-side:has(.rna-capsule)>.game-btn{font-size:11px;min-height:36px;padding:5px}
}
.reduce-motion .journey-track>i,.reduce-motion .brew-station.working .brewer-art{transition:none!important;animation:none!important}

/* Patch 3 — scoped UI/art changes; state, positions, scale and economy stay intact. */
:root{--font-game:'Kanit','Noto Sans Thai',Tahoma,system-ui,sans-serif}
body,body *{font-family:var(--font-game)!important}
body{font-weight:400;font-synthesis:none}
h1,h2,h3{font-weight:600;line-height:1.4;letter-spacing:0}
button,input,select,textarea{line-height:1.45}
.eyebrow{font-weight:600}.resource b{font-weight:600;font-variant-numeric:tabular-nums}
code,pre{font-variant-numeric:tabular-nums}.quiz-question,.quiz-choice{line-height:1.65}
/* Dedicated viewport drag surface: no cloned layout, cards, native selection, or stacked frames. */
[data-drag], [data-drag] *, .dragging-game-item, .dragging-game-item *{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.pointer-drag-preview{position:fixed!important;z-index:2147483000!important;display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;transform:none!important;animation:none!important;transition:none!important;pointer-events:none!important;overflow:visible;isolation:isolate;opacity:1;filter:drop-shadow(0 8px 7px #44352240)}
.pointer-drag-preview *{pointer-events:none!important;margin:0!important}
.pointer-drag-preview .mrna-ribbon{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-height:0!important;transform:none!important;flex:none!important;display:block!important;aspect-ratio:1!important}
.pointer-drag-preview .mrna-ribbon>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;object-fit:contain!important;transition:none!important;transform:none!important}
.pointer-drag-preview .drag-object{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:10px}
.pointer-drag-preview .drag-base{display:flex;width:100%;height:100%;align-items:center;justify-content:center;font-size:30px;font-weight:600;border:2px solid #abbd93;background:#f5ffe8;border-radius:14px;color:#557454}
.is-dragging-source{cursor:grabbing!important}.dragging-game-item{cursor:grabbing!important}
/* Real menu cards; an exhausted card is not the same as an undiscovered recipe. */
.collectible-card{padding:14px!important;display:flex;flex-direction:column;gap:10px;background:linear-gradient(145deg,#fffdf5,#f3e8d0);border:1px solid #d9c49b;border-radius:19px;box-shadow:0 5px 0 #dcc9a5,0 9px 22px #603b1910}
.collectible-card .card-top{margin:0}.collectible-card h3{min-height:3em;margin:0;font-size:15px;line-height:1.5;text-align:center}
.card-view-button{position:relative;display:block;align-self:center;padding:0;border:0;background:none;width:100%;max-width:232px;aspect-ratio:427/640;border-radius:15px;transition:transform .16s,filter .16s}
.card-view-button:hover{transform:translateY(-3px);filter:drop-shadow(0 6px 7px #87633130)}
.card-view-button:active{transform:translateY(1px)}
.collected-card-art{width:100%;height:100%;object-fit:contain;border-radius:13px;filter:drop-shadow(0 5px 3px #75513021)}
.card-art-depleted{filter:grayscale(1) saturate(0) brightness(.94)!important}
.card-view-hint{position:absolute;left:12%;right:12%;bottom:10px;background:#fff9e8ed;border:1px solid #cfb27c;border-radius:20px;text-align:center;font-size:11px;padding:4px;box-shadow:0 2px 4px #71512618}
.collectible-card .card-meta{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;margin:0;font-size:11px}.collectible-card .card-meta .ico{width:19px;height:19px}
.card-status-label{background:#edf3e5;padding:2px 7px;border-radius:20px;color:#4e7559}.depleted .card-status-label{color:#6f6a63;background:#e7e3da}.unearned .card-status-label{background:#f3e3c3;color:#8a6834}
.collectible-card>.game-btn{margin-top:auto;font-size:12px;padding:9px 7px;gap:6px}
.card-detail-modal{max-width:860px!important}.card-detail-main{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(0,1fr);gap:30px;margin-top:20px;align-items:center}
.card-detail-picture{position:relative;max-width:260px;margin:auto;width:100%}.card-detail-picture>.collected-card-art{height:auto;max-height:365px}
.card-detail-stock{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px auto 0;color:#78572c;font-size:15px}.card-detail-stock img{width:25px;height:25px}
.card-detail-copy h2{font-size:clamp(20px,3vw,28px);margin:12px 0}.card-detail-copy p{font-size:14px;color:#8d795e}
.card-detail-facts{display:grid;gap:10px;margin:20px 0;font-size:13px;color:#81633d}.card-detail-facts span{display:flex;gap:8px;align-items:center}.card-detail-facts img{width:27px;height:27px}
.card-science{border-top:1px solid #dfcfb1;margin-top:24px;padding-top:16px}.card-science summary{cursor:pointer;font-weight:500;color:#587862;padding:9px 0}
.card-science dl{background:#f5edda;border-radius:12px;padding:15px}.card-science dt{font-size:11px;color:#8c764d;margin:8px 0 3px}.card-science dd{margin:0;overflow-wrap:anywhere;line-height:1.8;font-size:15px;font-weight:500;letter-spacing:.06em}
/* Actual token artwork in verified AA chain and reward summary. */
.peptide-line.token-chain{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:22px 0;max-width:100%}
.token-chain .peptide-token{display:flex;align-items:center;flex-direction:column;width:84px;padding:0;margin:0;border:0;background:none;box-shadow:none}
.token-chain .peptide-token-image{width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 3px 2px #82642624)}
.peptide-token figcaption{text-align:center;line-height:1.4}.peptide-token b{font-size:13px;font-weight:600;color:#61794b}.peptide-token small{display:block;font-size:10px;line-height:1.5;color:#8d7653;max-width:90px}
.token-chain .peptide-link{font-size:20px;color:#b7c599;align-self:center;transform:translateY(-12px)}
.reward-cards.reward-card-final{width:184px;height:auto;aspect-ratio:427/640;border:0;background:none;box-shadow:none;transform:none;margin:15px auto 28px}
.reward-cards.reward-card-final img{width:100%;height:100%;margin:0;object-fit:contain;border-radius:14px;filter:drop-shadow(0 7px 5px #72542335)}
.reward-card-final b{right:-15px;bottom:12px;transform:none;font-size:24px}
/* Stop keeps its biological meaning; image class is distinct from ingredient. */
.stop-token-art{object-fit:contain;aspect-ratio:1;flex:none}
.codon-row .codon-stop-symbol{width:56px;height:56px;background:none;border:0;padding:0}
.codon-result .codon-result-stop{width:78px;height:78px}
.stop-slot .stop-slot-image{width:58px;height:58px;margin:0 auto}.stop-slot small{font-size:10px;line-height:1.35}.stop-slot{padding:7px;min-height:91px}
/* Five actual rank artworks, not numbered substitute medals. */
.rank-art-medal{border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;display:block;width:108px!important;height:108px!important;flex:none;padding:0}
.rank-art-medal .current-rank-art{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #795b2d28)}
.rank-badge-gallery{margin:24px 0 30px}.rank-badge-gallery h3{font-size:17px;margin-bottom:16px}
.rank-badge-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.rank-badge-item{display:flex;align-items:center;flex-direction:column;margin:0;padding:14px 8px;background:#faf4e4;border:1px solid #e4d4b2;border-radius:17px}
.rank-badge-item.current{background:#edf3df;border:2px solid #9db387;box-shadow:0 4px 0 #c7d6b3}
.rank-badge-image{width:95px;height:95px;object-fit:contain}.rank-badge-item.not-reached .rank-badge-image{filter:grayscale(1);opacity:.48}
.rank-badge-item figcaption{display:flex;flex-direction:column;text-align:center;font-size:11px;line-height:1.55;margin-top:10px;color:#7b664c}.rank-badge-item figcaption b{font-size:13px}.rank-badge-item figcaption small{font-size:10px;color:#978469;margin-top:5px}
.stat-card>.ico{width:51px;height:51px;object-fit:contain}.resource.exp>.ico{width:36px;height:36px}
/* Kanit is proportional. Fixed glyph columns, not whitespace, align the two DNA strands. */
.dna-pair-lines{--base-step:1em;--group-gap:.42em;max-width:100%;font-size:clamp(15px,2.1vw,23px)}
.dna-glyph-line{display:grid;grid-template-columns:1.65em repeat(var(--codon-count),3em) 1.65em;gap:var(--group-gap);align-items:center;white-space:nowrap;line-height:1.55;color:#ac9369}
.dna-glyph-line.template{color:#795635;font-weight:600}.dna-glyph-line .dna-triplet{display:grid;grid-template-columns:repeat(3,1em);text-align:center;letter-spacing:0}
.dna-glyph-line .prime-label{font-size:.82em;text-align:center;font-weight:500}.dna-glyph-line.base-bonds{font-weight:300;color:#c9b789;line-height:1}
/* Ambient greetings: actual click targets, never steal a drink drop or mutate order. */
.shop-patch1 .actor{pointer-events:auto!important;cursor:pointer;background:none;border:0;padding:0;line-height:1;outline-offset:-6px}
.shop-patch1 .actor:hover .actor-image{filter:drop-shadow(0 0 5px #ffe69590)}
.shop-patch1 .actor:focus-visible{outline:2px solid #fff3b8;border-radius:24px}
.shop-patch1 .actor.leaving{pointer-events:none!important}
.shop-patch1 .mentor-world{border:0;padding:0;background:none;pointer-events:auto;cursor:pointer}
.mentor-talk-button{display:block;border:0;padding:0;background:none;cursor:pointer;border-radius:50%;flex:none}
.mentor-talk-button:hover{filter:drop-shadow(0 0 4px #b8cf98)}.summary-mentor{margin:0 auto}
.character-speech{position:fixed;z-index:2200;pointer-events:none;padding:14px 18px;background:linear-gradient(#fffef3,#f7eccd);border:2px solid #c3a165;border-radius:20px;box-shadow:0 5px 0 #b8965540,0 8px 20px #583a2e24;color:#65492f;font-size:14px;line-height:1.6;text-align:center;overflow-wrap:break-word;animation:speechEnter .14s ease-out}
.character-speech:after{content:'';position:absolute;width:12px;height:12px;background:#f7eccd;border-right:2px solid #c3a165;border-bottom:2px solid #c3a165;left:calc(var(--speech-arrow-x) - 7px);bottom:-8px;transform:rotate(45deg)}
.character-speech[data-placement='below']:after{bottom:auto;top:-8px;transform:rotate(225deg);background:#fffef3}
.has-character-speech .order-world{opacity:0}
@keyframes speechEnter{from{opacity:0}to{opacity:1}}
.reduce-motion .character-speech{animation:none}
@media(max-width:800px){.rank-badge-grid{gap:7px}.rank-badge-item{padding:10px 4px}.rank-badge-image{width:70px;height:70px}.rank-badge-item figcaption span{font-size:10px}.collectible-card .card-meta{justify-content:center}.collectible-card h3{font-size:13px}.resource.exp>.ico{width:29px;height:29px}}
@media(max-width:600px){.card-detail-main{grid-template-columns:1fr;gap:14px}.card-detail-picture{max-width:168px}.card-detail-picture>.collected-card-art{max-height:245px}.card-detail-copy{text-align:center}.card-detail-facts{justify-content:center;margin:14px 0}.card-detail-copy p{font-size:13px}.card-science dd{font-size:13px}.rank-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rank-badge-image{width:70px;height:70px}.rank-art-medal{width:82px!important;height:82px!important}.token-chain .peptide-token{width:64px}.token-chain .peptide-token-image{width:60px;height:60px}.peptide-token small{font-size:9px}.peptide-line.token-chain{gap:4px}.token-chain .peptide-link{font-size:16px}.reward-cards.reward-card-final{width:145px}.collectible-card{padding:9px!important}.card-view-hint{font-size:9px;left:5%;right:5%;bottom:5px}.card-detail-stock{font-size:13px}.dna-pair-lines{font-size:15px}.codon-row .codon-stop-symbol{width:46px;height:46px}}

/* Patch 4 / Brief 11-13. Confined to new lesson artwork and concept book. */
.lesson-art-stage{position:absolute;inset:112px 5% 112px;z-index:3;pointer-events:none;overflow:visible}
.lesson-frame-stack{position:absolute;filter:drop-shadow(0 14px 10px #52331335);transform-origin:50% 80%}
.lesson-frame{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none;transition:opacity 180ms ease-in-out;user-select:none}
.lesson-art-stage[data-lesson-kind="ribosome"] .lesson-frame-stack{animation:lessonMachineBreathe 3.4s ease-in-out infinite}
@keyframes lessonMachineBreathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
.lesson-art-stage[data-playback="paused"] .lesson-frame-stack{animation-play-state:paused}
.reduce-motion .lesson-art-stage .lesson-frame-stack{animation:none!important}
.reduce-motion .lesson-frame{transition:none!important}
/* Counter placement is computed from actual image bounds in patch4.ts. */
.shop-patch1 .concept-book-station{overflow:visible;min-width:0;min-height:0;transform:none;background:none;border:0;border-radius:10px;box-shadow:none;cursor:pointer}
.concept-book-art{position:absolute;pointer-events:none;filter:drop-shadow(0 3px 2px #38231765)}
.concept-book-art>img{display:block;position:absolute;inset:0;max-width:none;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.concept-book-glow{opacity:0;transition:opacity .18s}
.concept-book-station:hover .concept-book-glow,.concept-book-station:focus-visible .concept-book-glow{opacity:1}
.concept-book-tooltip{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:var(--plaque-size,14px);font-weight:600;color:#fef5d6;background:#593d23ee;border:1px solid #ecd18e;border-radius:9px;padding:5px 9px;pointer-events:none;opacity:0;transition:opacity .12s}
.concept-book-station:focus-visible .concept-book-tooltip,.concept-book-station:hover .concept-book-tooltip{opacity:1}
.concept-book-station:focus-visible{outline:2px solid #fff1aa;outline-offset:4px}
/* Full presentation image is uncropped. Zoom uses native scrolling, no drag handler. */
.concept-modal{width:min(1480px,calc(100vw - 32px));max-width:1480px;max-height:calc(100dvh - 28px)}
.concept-modal .modal-content{padding:24px}
.concept-heading{padding-right:48px}
.concept-heading h2{margin:6px 0;font-size:clamp(20px,2.3vw,30px);line-height:1.4}
.concept-heading p{margin:0;font-size:14px;color:#816641}
.concept-image-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}
.concept-image-tools>span{font-size:12px;color:#937550}
.concept-image-tools>.game-btn{min-height:44px}
.concept-image-scroll{width:100%;max-height:70dvh;overflow:auto;overscroll-behavior:contain;border:1px solid #d5b176;border-radius:12px;background:#ebdab2;touch-action:pan-x pan-y pinch-zoom}
.concept-presentation-image{display:block;width:100%;height:auto;max-width:none;max-height:70dvh;object-fit:contain;user-select:none}
.concept-image-scroll.is-zoomed .concept-presentation-image{width:max(100%,1600px);max-height:none}
.concept-text-alternative{margin-top:12px;color:#695239;font-size:14px;line-height:1.8}
.concept-text-alternative summary{cursor:pointer;min-height:36px;display:list-item}
.concept-text-alternative p{margin:7px 0}
/* Keep a visible miniature lesson stage on small screens, without shrinking text. */
@media(max-width:780px){
 .lab-layout.lesson-layout-patch4{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:clamp(112px,20dvh,158px) minmax(0,1fr);gap:10px}
 .lesson-layout-patch4 .lab-art{display:block;max-width:none;min-height:0;width:100%;height:100%;background-position:50% 40%}
 .lesson-layout-patch4 .lab-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff4d7ee,#fff3d685 53%,transparent);z-index:0;pointer-events:none}
 .lesson-layout-patch4 .lab-sign{left:12px;top:10px;width:52%;padding:3px 0;background:none;border:0;box-shadow:none;text-align:left}
 .lesson-layout-patch4 .lab-sign>span{font-size:15px;letter-spacing:2px}
 .lesson-layout-patch4 .lab-sign small{font-size:9px}
 .lesson-layout-patch4 .lab-note{bottom:10px;left:12px;width:52%;padding:4px 7px;font-size:10px;text-align:left;background:#fff9e4eb}
 .lesson-layout-patch4 .lab-note small{display:none}
 .lesson-art-stage{left:56%;right:2%;top:5px;bottom:5px}
 .lesson-layout-patch4 .lab-panel{height:auto;min-height:0}
}
@media(max-height:650px) and (orientation:landscape){
 .lab-layout.lesson-layout-patch4{display:grid;grid-template-columns:clamp(128px,21vw,200px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:10px;padding:8px 12px}
 .lesson-layout-patch4 .lab-art{display:block;max-width:none;min-height:0;width:100%;height:100%}
 .lesson-layout-patch4 .lab-art:after{display:none}
 .lesson-layout-patch4 .lab-sign{left:5%;top:6px;width:90%;padding:4px 0;text-align:center;background:#fff9e4dd;border:1px solid #d2bd8f;box-shadow:none}
 .lesson-layout-patch4 .lab-sign>span{font-size:11px;letter-spacing:1px}
 .lesson-layout-patch4 .lab-sign small{display:none}
 .lesson-layout-patch4 .lab-note{left:5%;bottom:6px;width:90%;padding:3px;font-size:9px;text-align:center}
 .lesson-layout-patch4 .lab-note small{display:none}
 .lesson-art-stage{inset:42px 4% 35px}
 .concept-modal{max-height:calc(100dvh - 12px)}
 .concept-heading h2{font-size:18px;margin:0}.concept-heading>.eyebrow,.concept-heading p{display:none}
}
@media(max-width:600px){
 .concept-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .concept-modal .modal-content{padding:18px 12px}
 .concept-heading .eyebrow{font-size:8px;letter-spacing:1px}
 .concept-image-tools>span{display:none}
 .concept-image-scroll,.concept-presentation-image{max-height:64dvh}
 .concept-text-alternative{font-size:13px}
}

/* Patch 5 revision 1 — Home media framing, working furniture editor.
   Copyright exists only inside #home. No global fixed footer. */
#home{background:#ede1cb;min-height:100dvh;isolation:isolate;color:#3c2b1d}
#home .home-scene{position:absolute;inset:0;height:100%;min-height:0;background:#624526}
#home .home-scene video{width:100%;height:100%;object-fit:cover;object-position:center center;opacity:1;filter:none}
#home .home-shade{background:linear-gradient(180deg,#24140712 0%,#24140712 65%,#24140788 100%)}
#home .home-top{position:relative;inset:auto;max-width:1220px;margin:auto;padding:15px 24px 0;z-index:2;color:#fff8e9}
#home .brand-kicker{padding:7px 13px;background:#332518e8;color:#fff8e9;border:1px solid #bfa16b;border-radius:30px;letter-spacing:.06em;font-size:11px;box-shadow:0 5px 15px #30201922}
#home .brand-kicker i{color:#fff0d2;opacity:1}
#home .home-title{position:relative;z-index:1;margin:4px auto 14px;text-align:center}
#home .home-logo{width:clamp(250px,30vw,405px);max-width:84vw;margin:0 auto;gap:4px;animation:homeBrandFloat 5s ease-in-out infinite}
#home .home-logo>img{width:100%;height:clamp(126px,15vw,198px);max-height:none;object-fit:contain;filter:drop-shadow(0 5px 3px #fff4d8cc) drop-shadow(0 12px 16px #40270955)}
#home .home-logo .ribbon{display:inline-block;padding:5px 15px;border:1px solid #d7b16d;border-radius:30px;background:#fff7e9f5;color:#4a311b;font-size:14px;line-height:1.6;box-shadow:0 4px 12px #30180630;white-space:normal}
#home .home-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:32px;max-width:1160px;padding:0 24px 22px;margin:0 auto}
#home .home-story{display:flex;flex-direction:column;align-items:stretch;min-width:0;width:auto;max-width:none;padding:0;text-align:left}
#home .hero-theatre{position:relative;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:18px;width:100%;height:auto;max-width:none;margin:0;padding:25px 20px;border:1px solid #c9ab75;border-radius:30px;background:#fff9edf5;box-shadow:inset 0 0 0 5px #fffef899,0 14px 40px #28190435;overflow:hidden;isolation:isolate}
#home .hero-theatre:after{display:none}
#home .theatre-copy{width:auto;min-width:0;padding:0;align-self:center;z-index:2;color:#3b2819}
#home .theatre-copy .eyebrow{color:#755431;font-size:10px;letter-spacing:.14em}
#home .theatre-copy h1{font-size:clamp(28px,3vw,42px);letter-spacing:0;font-weight:600;line-height:1.2;margin:8px 0;color:#392719;overflow-wrap:anywhere}
#home .theatre-copy #hero-role{color:#654929;font-size:14px;line-height:1.6;margin:6px 0 18px}
#home .hero-number{display:flex;align-items:baseline;gap:8px;line-height:1.2;color:#655039;margin:0 0 14px}
#home .hero-number span{font-size:45px;font-weight:600;color:#967042}
#home .hero-number i{font-size:14px;font-style:normal;color:#6d573e}
#home .hero-bio{font-size:14px;line-height:1.7;color:#5a432d;margin:0 0 14px;opacity:1}
#home .theatre-copy .chip{font-size:10px;line-height:1.6;white-space:normal;background:#e8efdf;color:#385040;border-color:#b7c7aa;padding:7px;letter-spacing:0;max-width:100%}
#home .hero-video-frame{position:relative;justify-self:center;align-self:center;width:100%;height:auto;min-height:0;max-width:230px;aspect-ratio:9/16;max-height:none;margin:0;padding:0;border:2px solid #b7975e;border-radius:22px;background:#f8eedb;box-shadow:0 5px 0 #d3b17c,0 12px 23px #71502822;overflow:hidden}
#home .hero-video-frame video{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;max-width:none;object-fit:contain;object-position:50% 50%;mix-blend-mode:normal;opacity:1;filter:none;border-radius:18px}
#home .theatre-arch{position:absolute;inset:5px;border:1px solid #fff8e585;border-radius:17px;z-index:1;pointer-events:none}
#home .video-resume{position:absolute;left:8px;right:8px;bottom:12px;background:#fff7e8f2;color:#332416;font-size:12px;border-radius:12px;padding:10px;border:1px solid #b9975b;z-index:2}
#home .home-pills{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;padding:10px 14px;margin-top:16px;border:1px solid #ccad79;background:#fff8edf5;border-radius:24px}
#home .home-pills>span{font-size:12px;color:#513a24;font-weight:500;opacity:1}
#home .register-card{align-self:center;justify-self:center;max-width:none;width:100%;padding:28px;background:#fffaf1fa;box-shadow:inset 0 0 0 5px #fffef899,0 14px 40px #28190435;border:1px solid #ceb17f}
#home .register-card h2{font-size:24px;color:#3d2b1c}
#home .register-card .muted,#home .register-card>p,#home .local-note,#home .hero-select-label span{color:#66513a}
#home .hero-choice span{color:#4e3822;font-size:10px}
#home .form-grid input{background:#fffefa;color:#392b1d;border-color:#cbb48d}
#home .form-grid input::placeholder{color:#79674f;opacity:1}
#home .home-footer{position:relative;display:block;max-width:1100px;width:calc(100% - 32px);margin:0 auto 0;padding:13px 16px 20px;text-align:center;color:#fff7e6;font-size:12px;line-height:1.7;letter-spacing:0;z-index:1}
#home .home-footer>span:last-child{display:inline-block!important;font-family:var(--font-game)!important;font-style:normal;letter-spacing:0;font-size:12px;padding:7px 16px;border-radius:15px;background:#362416ed;color:#fff7e6;line-height:1.7}
@keyframes homeBrandFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.reduce-motion #home .home-logo{animation:none!important}
@media(max-width:900px){#home .home-layout{gap:20px;padding:0 18px 20px}#home .hero-theatre{grid-template-columns:1fr;padding:18px;gap:12px}#home .theatre-copy{text-align:center}#home .hero-number{display:none}#home .hero-bio{display:none}#home .theatre-copy .chip{display:inline-flex}#home .hero-video-frame{max-width:180px}#home .theatre-copy h1{font-size:32px}#home .theatre-copy #hero-role{margin:4px 0 10px}#home .register-card{padding:26px 20px}#home .register-card h2{font-size:21px}}
@media(max-width:640px){#home .home-top{padding:12px 14px 0}#home .brand-kicker{font-size:10px;padding:5px 9px}#home .brand-kicker i{display:none}#home .home-title{margin:5px auto 14px}#home .home-logo{width:275px}#home .home-logo>img{height:142px}#home .home-logo .ribbon{font-size:12px}#home .home-layout{display:flex;flex-direction:column;gap:20px;padding:0 16px 22px;margin:0 auto;max-width:500px}#home .home-story{width:100%}#home .hero-theatre{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:20px 16px;border-radius:24px}#home .theatre-copy{text-align:left}#home .theatre-copy h1{font-size:28px}#home .theatre-copy .eyebrow{font-size:8px}#home .theatre-copy #hero-role{font-size:12px}#home .hero-bio{display:block;font-size:12px;margin-top:10px}#home .hero-video-frame{max-width:175px}#home .theatre-copy .chip{font-size:8px}#home .home-pills{gap:13px;margin-top:12px}#home .home-pills>span{font-size:10px}#home .register-card{width:100%;padding:27px 22px}#home .home-footer{font-size:11px;padding-bottom:16px}#home .home-footer>span:last-child{font-size:11px}#home .home-scene{position:fixed;inset:0;height:100dvh}#home .home-scene video{object-fit:cover;object-position:center center}}
@media(prefers-reduced-motion:reduce){#home .home-logo{animation:none!important}}

/* Same world/anchors in editing mode and live shop. */
#world-storefront-decor{display:contents!important;pointer-events:none}
.storefront-piece{position:absolute;display:block;margin:0;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;max-width:none;min-height:0;pointer-events:none;filter:drop-shadow(1px 4px 3px #3e231d40);transition:none;user-select:none;-webkit-user-select:none}
.storefront-piece>img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none}
.is-decor-preview .storefront-piece{pointer-events:auto;touch-action:none;cursor:grab}
.is-decor-preview .storefront-piece:hover{filter:drop-shadow(0 0 7px #ffdf79) drop-shadow(1px 4px 3px #3e231d40)}
.is-decor-preview .storefront-piece.is-selected{outline:3px solid #60885f;outline-offset:3px;filter:drop-shadow(0 0 7px #fbe391)}
.is-decor-preview .world-station,.is-decor-preview .concept-book-station,.is-decor-preview .actor,.is-decor-preview .mentor-world,.is-decor-preview .drink-output{pointer-events:none!important}
.is-decor-preview .customer-target{display:none!important}
.is-decor-preview .order-world,.is-decor-preview .queue-mark{opacity:.35}
.decor-page{max-width:1460px;margin:0 auto;padding:22px 24px 38px;min-width:0;color:#402e1d}
.decor-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.decor-heading-title{display:flex;gap:12px;align-items:center;min-width:0}.decor-heading-title>.asset-icon{width:56px;height:56px;flex-shrink:0}
.decor-heading h1{font-size:28px;font-weight:600;line-height:1.4}.decor-heading p{margin:3px 0;color:#6c5740;font-size:13px}
.decor-heading>.game-btn{flex-shrink:0}.decor-workspace{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(320px,1fr);gap:22px;align-items:start}
.decor-preview-panel{position:sticky;top:0;min-width:0;border:1px solid #d5bf98;border-radius:25px;background:#fffaf0;padding:14px;box-shadow:0 10px 28px #62462013}
.decor-panel-bar{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:13px;font-weight:500;padding:2px 2px 12px}.decor-panel-bar>span{display:flex;align-items:center;gap:6px}.decor-autosave{color:#507451;font-size:11px;font-weight:400}
.decor-page .editor-world{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:var(--editor-ratio,16/9);max-height:560px;min-height:180px;display:flex;justify-content:center;align-items:center;overflow:hidden;background:#b68755;border-radius:16px;padding:0;touch-action:pan-y}
.decor-page .editor-world .world-scaled{border:0;border-radius:0;box-shadow:none;flex:none;overflow:hidden}
.decor-instructions{padding:11px 3px;color:#5b432c;line-height:1.6}.decor-instructions b{font-size:13px;font-weight:500;display:block}.decor-instructions span{font-size:11px;color:#756048}
.decor-inspector{padding:12px 14px;border:1px solid #e2d3b9;border-radius:18px;background:#f5efdf;min-height:116px}
.decor-unselected{display:flex;align-items:center;gap:13px;min-height:90px;font-size:13px}.decor-unselected>.asset-icon{width:44px;height:44px}.decor-unselected p{color:#6a5540;font-size:12px;margin:5px 0}
.decor-selected-title{display:flex;gap:10px;align-items:center;margin-bottom:8px}.decor-selected-title>img{width:46px;height:46px;object-fit:contain}.decor-selected-title>div{flex:1;min-width:0}.decor-selected-title b{display:block;font-size:13px;font-weight:500}.decor-selected-title span{display:block;font-size:10px;color:#685640}
.decor-transform-controls{display:grid;grid-template-columns:1fr 1fr;gap:20px}.decor-transform-controls label{display:block;font-size:12px;color:#513b27}.decor-transform-controls output{float:right;font-size:12px;font-variant-numeric:tabular-nums;color:#315e44;font-weight:500}
.decor-transform-controls input{display:block;width:100%;height:28px;padding:0;margin:4px 0;border:0;accent-color:#567c5d;touch-action:pan-x;cursor:ew-resize;box-shadow:none}
.decor-nudge{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.decor-nudge>span{font-size:11px;color:#6c563c;margin-right:auto}.decor-nudge .game-btn{min-width:32px;min-height:30px;font-size:12px;padding:4px 9px}
.decor-inventory-title{display:flex;justify-content:space-between;font-size:12px;padding:12px 3px 8px}.decor-inventory-title b{font-weight:500}.decor-inventory-title span{color:#745e45}
.decor-inventory-items{display:flex;gap:7px;flex-wrap:wrap;max-height:120px;overflow:auto;padding:3px}.decor-inventory-items>.muted{font-size:11px}
.decor-mini.game-btn{position:relative;padding:3px;width:46px;height:48px;min-height:0;min-width:0;background:#fffdf6;border:1px solid #d5c39f;border-radius:10px;box-shadow:0 2px 0 #d9c7a5}.decor-mini>img{width:100%;height:100%;object-fit:contain}.decor-mini>span{position:absolute;bottom:0;right:2px;font-size:9px;background:#fff7e8bd;padding:0 2px}.decor-mini.active{outline:2px solid #71946e;outline-offset:1px}
.decor-store-panel{min-width:0;background:#fffaf0;border-radius:25px;border:1px solid #d5bf98;padding:18px;box-shadow:0 10px 28px #62462013}
.decor-store-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.decor-store-heading h2{font-size:19px}.decor-store-heading .eyebrow{font-size:9px;letter-spacing:.12em;color:#7b5b30}
.decor-wallet{display:flex;align-items:center;gap:5px;border-radius:17px;border:1px solid #d4b371;background:#fff3d6;padding:7px 10px}.decor-wallet>.ico{width:26px;height:26px}.decor-wallet b{font-size:19px;font-variant-numeric:tabular-nums}.decor-wallet small{font-size:10px}
.decor-filters-new{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.decor-filters-new .game-btn{font-size:11px;padding:6px 10px;min-height:31px;border-radius:12px}.decor-filters-new [aria-pressed=true]{background:#e3eed9;color:#32533c;border-color:#7b9d71;box-shadow:0 3px 0 #b6cba6}
.decor-shop-note{font-size:11px;color:#6c5740;margin:11px 0 12px}
.decor-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.decor-product{display:flex;flex-direction:column;min-width:0;background:linear-gradient(145deg,#fffdf7,#f4ead5);border:1px solid #e0cda9;border-radius:17px;padding:11px;box-shadow:0 3px 0 #e1d1b3}
.decor-product-image{position:relative;height:137px;display:flex;align-items:center;justify-content:center;padding:8px 3px 25px}
.decor-product-image>img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 4px #65391124)}
.decor-price-tag{position:absolute;bottom:0;right:0;background:#fff4d9;border:1px solid #d6ba83;color:#634820;padding:3px 7px;border-radius:20px;font-size:10px;line-height:1.4}.decor-price-tag.is-free{background:#e7efdf;border-color:#a9bc93;color:#395339}
.decor-product h3{font-size:13px;font-weight:500;line-height:1.5;margin-top:10px}.decor-product p{font-size:10px;line-height:1.6;margin:5px 0 10px;color:#705c46}.decor-product>.game-btn{margin-top:auto;font-size:11px;white-space:normal;padding:8px 6px;line-height:1.4;min-height:38px}
.decor-product>.game-btn:disabled{opacity:.58;box-shadow:0 2px 0 #ddd1b9;cursor:not-allowed}.decor-product .game-btn .ico{width:18px;height:18px}
.decor-purchase{background:#e7f0de;border:2px solid #789768;border-radius:17px;padding:16px;margin-bottom:13px;box-shadow:0 5px 12px #45603220;font-size:14px}.decor-purchase p{font-size:12px;color:#45523a}.decor-purchase>div{display:flex;justify-content:flex-end;gap:9px}
.classic-decor{margin-top:23px;padding:16px;border:1px solid #d8c7a7;border-radius:18px;background:#fffaf0}.classic-decor summary{cursor:pointer;display:flex;gap:10px;align-items:center;color:#654d31;font-size:13px}.classic-decor .page-heading{display:none}
.classic-decor .decor-slots{margin-top:20px}.classic-decor .decor-grid{max-height:380px;overflow:auto}
@media(max-width:1080px){.decor-workspace{grid-template-columns:minmax(0,1.15fr) minmax(280px,1fr);gap:14px}.decor-page{padding:18px 16px 28px}.decor-store-panel{padding:12px}.decor-product{padding:9px}.decor-product-image{height:115px}.decor-wallet small{display:none}.decor-panel-bar{flex-wrap:wrap}.decor-heading h1{font-size:24px}.decor-heading p{font-size:11px}}
@media(max-width:760px){.decor-workspace{grid-template-columns:1fr}.decor-preview-panel{position:static;padding:12px}.decor-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.decor-heading-title>.asset-icon{width:45px;height:45px}.decor-heading h1{font-size:22px}.decor-heading>.game-btn{padding:8px 14px;font-size:12px;width:100%}.decor-page{padding:15px 12px 26px}.decor-page .editor-world{max-height:540px}.decor-products{grid-template-columns:repeat(3,minmax(0,1fr))}.decor-product-image{height:115px}.decor-store-panel{padding:14px}.decor-transform-controls{gap:13px}.decor-autosave{font-size:10px}.decor-instructions b{font-size:12px}.decor-instructions span{font-size:10px}}
@media(max-width:440px){.decor-products{grid-template-columns:repeat(2,minmax(0,1fr))}.decor-product-image{height:136px}.decor-page .editor-world{max-height:480px}.decor-transform-controls{grid-template-columns:1fr;gap:7px}.decor-nudge>span{display:none}.decor-heading-title>.asset-icon{width:38px;height:38px}.decor-heading p{font-size:10px}.decor-store-heading h2{font-size:17px}}
@media(max-height:480px) and (orientation:landscape){.decor-workspace{grid-template-columns:1fr}.decor-preview-panel{position:static}.decor-page .editor-world{aspect-ratio:16/9;max-height:330px}.decor-products{grid-template-columns:repeat(4,minmax(0,1fr))}}

.decor-store-panel .decor-inspector{margin:14px 0 10px}.decor-selected-title>img{height:38px;width:38px}
@media(min-width:1100px){.decor-page .editor-world{max-height:calc(100dvh - 455px);min-height:240px}}

/* Touch UX: no global user-scalable=no, no touchmove/end preventDefault blanket.
   Scrollable panels keep pan gestures; only object dragging captures a finger. */
html,body{touch-action:manipulation}
:where(#home,#game,#modal-root,#boot,#toast-root,#effects),
:where(#home,#game,#modal-root,#boot) :where(button,[role="button"],a,input,select,summary){touch-action:manipulation}
html[data-touch-ui] :where(#home,#game,#modal-root,#boot,#toast-root,#effects),
html[data-touch-ui] :where(#home,#game,#modal-root,#boot,#toast-root,#effects) *{
 -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
html[data-touch-ui] :where(#home,#game,#modal-root,#boot) :where(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),textarea,[contenteditable]:not([contenteditable="false"]),[data-allow-selection]),
html[data-touch-ui] :where(#home,#game,#modal-root,#boot) :where([contenteditable]:not([contenteditable="false"]),[data-allow-selection]) *{
 -webkit-user-select:text;user-select:text;-webkit-touch-callout:default;
}
:where(#home,#game,#modal-root) :where(img,video,svg){-webkit-user-drag:none}
/* Game-owned drags must win over scrolling, without affecting the rest of a panel. */
#game [data-drag],#modal-root [data-drag],.editor-world [data-storefront-item]{touch-action:none}
html[data-touch-ui] input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
html[data-touch-ui] textarea,html[data-touch-ui] select{font-size:max(16px,1rem)!important}
html[data-touch-ui] .decor-transform-controls input[type="range"]{touch-action:pan-y;min-height:36px}
html[data-touch-ui] .decor-filters-new .game-btn{min-height:42px}
html[data-touch-ui] .decor-nudge .game-btn{min-width:42px;min-height:42px}
html[data-touch-ui] .decor-mini.game-btn{min-width:46px;min-height:48px}
/* Original 70 props are first-class items in the same stable scene editor. */
.decor-search.search-box{margin:12px 0 0;max-width:none;min-width:0}
.decor-search input{width:100%;min-width:0}
.decor-result-count{font-size:12px;color:#5a4a30;line-height:1.6;margin:8px 0 12px}
.decor-no-results{grid-column:1/-1;text-align:center;padding:24px 12px;color:#6d543b;font-size:14px}
.decor-filters-new{gap:7px}
.decor-product[data-origin="legacy"]{border-color:#bfd0a7}
.decor-product[data-origin="legacy"] .decor-price-tag{background:#e4efda;color:#34563c}
.decor-store-heading h2{font-size:19px}
@media(max-width:440px){
 .decor-store-heading{flex-wrap:wrap}
 .decor-heading p{font-size:11px}
 .decor-filters-new .game-btn{font-size:11px;padding:6px 8px}
}

/* Patch 7: keep station hit areas clear on shallow displays, no gameplay changes. */
.compact-order-host{display:contents}
.compact-order-toggle{display:none!important}
.compact-order-modal{width:min(510px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px 24px}
.compact-order-heading{font-size:18px;margin:0 44px 15px 0}
.compact-order-content{text-align:center;color:var(--ink)}
.compact-order-content .order-header{display:flex;justify-content:space-between;align-items:center}
.compact-order-content .order-product{display:flex;gap:16px;align-items:center;text-align:left;margin:12px 0}
.compact-order-content .order-product>.order-drink{height:94px;width:70px;flex:none;margin:0}
.compact-order-content .order-product h2{font-size:19px;margin:4px 0}
.compact-order-content .order-price{font-size:22px;margin:6px 0}
.compact-order-content .context-controls{position:static;width:100%;margin-top:14px}
.compact-order-content .context-controls .game-btn{width:100%;min-height:46px}
.compact-order-content .cafe-side-footer{display:none}
.compact-order-content>.order-drink{height:110px;width:auto;margin:10px auto}
.compact-order-content>.rna-capsule{margin:10px auto;width:min(230px,100%);min-height:120px}
.compact-order-content>.mentor-portrait{height:120px;margin:auto}
@media (orientation:landscape) and (max-height:540px){
 .cafe-mode .cafe-side{display:none!important}
 .cafe-mode .compact-order-toggle{position:absolute;display:flex!important;align-items:center;justify-content:flex-start;gap:8px;left:10px;bottom:70px;width:185px;max-width:37vw;height:50px;min-height:48px;padding:5px 8px;z-index:58;border:2px solid #b99355;border-radius:14px;background:linear-gradient(#fffae7,#f4e3ba);box-shadow:0 4px 0 #805b3380,0 6px 15px #53392130;color:#432d1b;text-align:left}
 .compact-order-toggle .compact-drink{width:24px;height:38px;object-fit:contain;flex:none}
 .compact-order-toggle>span{min-width:0;flex:1}
 .compact-order-toggle small{display:block;font-size:9px;line-height:1.4;color:#795a36}
 .compact-order-toggle b{display:block;font-size:11px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .compact-order-toggle>.ico{width:16px;height:16px;flex:none}
 .compact-order-content .rna-capsule{min-height:95px;width:190px}
 .compact-order-content .rna-ribbon{max-height:64px}
}
/* Height-aware Home: keep a fully visible CTA on ordinary desktop/laptop screens.
   Inputs remain >=38px, videos remain 9:16 contain, no zoom/scale of the full page. */
@media(min-width:1000px) and (min-height:600px) and (max-height:1000px){
 #home .home-top{padding-top:8px;padding-bottom:0;min-height:42px}
 #home .home-title{margin:0 auto 10px}
 #home .home-logo{width:clamp(260px,26vw,370px)}
 #home .home-logo>img{height:clamp(96px,15dvh,150px)}
 #home .home-logo .ribbon{font-size:12px;padding:3px 14px}
 #home .home-layout{align-items:center;gap:28px;padding:0 24px 12px}
 #home .register-card{padding:18px 24px}
 #home .register-card h2{font-size:22px}
 #home .register-card>p{font-size:13px;margin:4px 0 10px}
 #home .form-grid{gap:8px 12px}
 #home .form-grid label{font-size:12px;gap:3px}
 #home .form-grid input{height:39px;padding:6px 10px;font-size:14px}
 #home .hero-select-label{margin:12px 0 7px;font-size:12px}
 #home .hero-choice{padding:5px 2px}
 #home .hero-choice img{height:65px}
 #home .hero-choice span{font-size:9px}
 #home .form-error{margin:3px 0;min-height:0;font-size:12px}
 #home .form-error:empty{display:none}
 #home #start-game{margin-top:12px;min-height:48px;height:auto;padding:9px 14px;font-size:16px}
 #home .local-note{font-size:10px;line-height:1.4;margin:10px 0 0}
 #home #home-continue .game-btn{margin-top:9px;min-height:40px;padding:6px 12px;font-size:13px}
 #home .hero-theatre{padding:18px 20px;gap:16px}
 #home .hero-video-frame{max-width:min(205px,27dvh)}
 #home .hero-number{margin-bottom:9px}
 #home .hero-bio{font-size:13px;margin-bottom:9px}
 #home .home-pills{margin-top:10px;padding:7px 12px}
 #home .home-footer{padding:4px 16px 12px}
 #home .home-footer>span:last-child{font-size:11px;padding:5px 14px}
}
@media(min-width:1000px) and (min-height:600px) and (max-height:760px){
 #home .home-top{padding-top:4px}
 #home .home-top .icon-btn{height:36px;min-height:36px;width:36px;padding:6px}
 #home .home-logo>img{height:92px}
 #home .home-title{margin-bottom:6px}
 #home .register-card{padding:14px 20px}
 #home .register-card h2{font-size:20px}
 #home .form-grid input{height:36px}
 #home .form-grid{gap:6px 12px}
 #home .hero-choice img{height:50px}
 #home .hero-select-label{margin-top:8px}
 #home #start-game{margin-top:9px;min-height:44px;padding:8px 12px}
 #home .hero-bio{display:none}
 #home .home-pills{margin-top:7px}
}
@media(min-width:1000px) and (min-height:600px) and (max-height:650px){
 #home .home-logo>img{height:70px}
 #home .register-card>.eyebrow{display:none}
 #home .register-card>p.muted{margin:3px 0 6px;font-size:12px}
 #home .register-card{padding:12px 20px}
}
/* Shallow lesson panels must not pin a two-row codon rail over the AA palette. */
@media(orientation:landscape) and (max-height:540px){
 .lab-layout .translation-rail{position:relative;top:auto;flex-wrap:nowrap;overflow-x:auto;gap:8px;scroll-padding-inline:8px}
 .lab-layout .translation-rail .aa-column{flex:0 0 66px;min-width:66px}
 .lab-layout .translation-rail .stop-column{flex-basis:76px}
}
