:root{font-family:Arial,Helvetica,sans-serif;color:#f9e8c9;background:#170e0b;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden;min-height:100dvh;background:radial-gradient(ellipse at center,#49301d 0,#1f140f 65%,#110b08 100%)}body:before{content:'';position:fixed;inset:0;background:linear-gradient(100deg,#170e0bdd,#170e0b22),url("./public/assets/bg-harvest.webp") center/cover;filter:blur(16px);opacity:.24;pointer-events:none}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #ffe391;outline-offset:4px}button:disabled{opacity:.5;cursor:default}.desktop-brand{position:fixed;left:calc(50% - 490px);top:50%;transform:translateY(-50%);width:260px;text-align:center}.desktop-brand img{width:260px;height:173px;object-fit:contain}.desktop-brand p{font-family:Georgia,serif;font-size:30px;line-height:1.2;margin:4px 0 12px;font-weight:bold;letter-spacing:1px}.desktop-brand span{font-size:15px;color:#cbb38e}#shell{position:fixed;left:50%;top:50%;width:390px;height:780px;transform:translate(-50%,-50%);transform-origin:center;border:1px solid #a9855144;border-radius:22px;overflow:hidden;box-shadow:0 25px 100px #0009;background:#25170e;isolation:isolate}#background{position:absolute;inset:0;background-size:cover;background-position:center;transition:background-image .35s ease}#background:after{content:'';position:absolute;inset:0;background:linear-gradient(#1a120a15,#0000 40%,#140b0877)}#game{position:absolute;inset:0;width:390px;height:780px;touch-action:none}#ui{position:absolute;inset:0;pointer-events:none}#ui>*{pointer-events:auto}.screen{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;padding:22px}.logo{width:248px;height:82px;overflow:hidden;border-radius:18px;background:#25190fe6;position:relative;flex-shrink:0}.logo img{width:280px;height:187px;max-width:none;position:absolute;top:-46px;left:-27px}.hero-logo{margin-top:15px}.home-title{font-family:Georgia,serif;font-size:46px;text-align:center;line-height:1.02;color:#4b2115;margin:24px 0 8px;text-shadow:0 2px #fff7;font-weight:900;letter-spacing:-1.8px}.home-sub{font-size:19px;font-weight:bold;color:#3d2418;margin:0}.home-desc{font-size:16px;line-height:1.5;color:#3b2518;text-align:center;max-width:280px;margin:12px 0}.home-bottom{position:absolute;left:26px;right:26px;bottom:87px;display:grid;gap:10px}.btn{border:1px solid #e7ba75;background:linear-gradient(#a5252a,#781019);color:#fff9e9;border-radius:14px;padding:15px 18px;min-height:50px;font-size:16px;font-weight:bold;box-shadow:0 4px 0 #3b160c66}.btn:active{transform:translateY(2px);box-shadow:0 1px 0 #3b160c66}.btn.secondary{background:linear-gradient(#fff0d2,#e7c592);color:#492b1b;border-color:#caa36a}.btn.ghost{background:#24170edb;color:#fae5bb;border-color:#a17b48}.journey-mini{position:absolute;bottom:22px;left:20px;right:20px;display:flex;justify-content:space-between;text-align:center}.journey-mini span{font-size:12px;display:block;margin-top:6px}.journey-mini b{display:grid;place-items:center;background:#f2d5a5;color:#583318;width:42px;height:42px;border-radius:50%;border:2px solid #b98c45;font-size:20px}.round{position:absolute;left:17px;top:20px;width:46px;height:46px;border-radius:50%;background:#402719;border:2px solid #c89d59;color:#fff2d1;font-size:22px;display:grid;place-items:center}.audio{left:auto;right:18px;font-size:19px}.timer{position:absolute;right:16px;top:22px;background:#422519;border:2px solid #cfa564;border-radius:10px;padding:9px 12px;font-size:18px;font-variant-numeric:tabular-nums}.stage-title{position:absolute;top:82px;left:25px;right:25px;background:#f3debaeb;border-radius:12px;padding:10px;text-align:center;color:#502a17;border:1px solid #eed5a1}.eyebrow{text-transform:uppercase;font-size:13px;letter-spacing:1px;font-weight:bold}.stage-title h1{font-family:Georgia,serif;font-size:33px;line-height:1;margin:7px 0}.stage-title p{font-size:14px;line-height:1.4;margin:5px 0 0}.hud{position:absolute;top:190px;left:20px;right:20px;display:flex;gap:12px}.stat{flex:1;padding:12px;background:linear-gradient(#422919ee,#251a12ee);border:1px solid #c79b55;border-radius:12px;min-height:67px;box-shadow:0 5px 15px #0003}.stat small{font-size:12px;color:#e5c99c;font-weight:bold;display:block;letter-spacing:.4px}.stat strong{display:block;font-size:25px;margin-top:3px;color:#fff2ce;font-variant-numeric:tabular-nums}.hint{position:absolute;left:20px;right:20px;bottom:23px;padding:13px 15px;text-align:center;background:#342217ee;border:1px solid #c59b60;border-radius:12px;min-height:49px;font-size:14px;line-height:1.4}.float-feedback{position:absolute;top:268px;left:22px;right:22px;text-align:center;color:#fff8c2;text-shadow:0 2px 5px #000;font-size:20px;font-weight:bold;min-height:24px;pointer-events:none!important}.method-panel{position:absolute;top:285px;left:20px;right:20px;display:flex;gap:8px}.method{width:calc(100% / 3);padding:7px 5px 9px;border:2px solid #ad8752;border-radius:12px;background:#f6e1bc;color:#4e2a18;font-size:14px;font-weight:bold;overflow:hidden}.method img{width:100%;height:76px;object-fit:cover;border-radius:6px;margin-bottom:7px}.method.selected{border:3px solid #f4cb58;box-shadow:0 0 0 2px #724613}.method:disabled{opacity:.85}.method-copy{position:absolute;left:25px;right:25px;top:432px;text-align:center;background:#f5dfbcd9;color:#57341f;padding:10px;border-radius:8px;font-size:14px;line-height:1.4}.bottom-action{position:absolute;left:25px;right:25px;bottom:91px;display:flex;gap:10px;flex-direction:column}.bottom-action .btn{width:100%}.meter{position:absolute;top:193px;left:20px;right:20px;background:#2f241de8;border:1px solid #bb9c68;padding:13px;border-radius:13px}.meter-heading{display:flex;justify-content:space-between;font-size:14px;font-weight:bold;margin-bottom:10px}.track{height:18px;position:relative;border-radius:20px;background:linear-gradient(90deg,#57b39a,#e1d660,#e89532,#ab2526);border:1px solid #ead7a6;overflow:visible}.target-zone{position:absolute;left:60%;width:16%;top:-3px;bottom:-3px;border:2px solid #ffe6ad;background:#ffffff22}.needle{position:absolute;top:-6px;width:4px;height:29px;border-radius:2px;background:white;box-shadow:0 0 0 1px #332014;transform:translateX(-50%)}.meter-labels{display:flex;justify-content:space-between;font-size:12px;margin-top:9px}.roast-meter{top:auto;bottom:213px}.roast-meter .target-zone{left:55%;width:15%}.roast-actions{bottom:72px}.roast-actions .btn{padding:12px;min-height:46px}.sim-note{position:absolute;bottom:16px;left:20px;right:20px;text-align:center;color:#f4dcac;font-size:12px}.sort-stats{position:absolute;top:275px;left:25px;right:25px;font-size:14px;text-align:center;color:#ffebbc;background:#332219dc;padding:9px;border-radius:8px}.bins-controls{position:absolute;top:570px;left:26px;right:26px;display:flex;gap:28px;pointer-events:none!important}.bin-btn{flex:1;height:115px;border:3px solid transparent;border-radius:16px;background:transparent;color:white;text-shadow:0 2px 4px #000;font-weight:bold;font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:6px;pointer-events:auto}.bin-btn.selected{border-color:#ffe092;box-shadow:0 0 18px #ffcb5b77}.bin-btn span{font-size:12px;padding-top:4px}.scrim{position:absolute;inset:0;background:#1e130eda;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:25px}.card{width:100%;background:linear-gradient(#f7e4c3,#eacda0);color:#4e2d1c;border:2px solid #d0a367;border-radius:19px;padding:25px 22px;text-align:center;box-shadow:0 15px 50px #0007}.card .logo{margin:0 auto 20px}.card h1,.card h2{font-family:Georgia,serif;font-size:31px;line-height:1.1;margin:10px 0 16px}.card p{font-size:16px;line-height:1.6;margin:10px 0 22px}.card .btn{width:100%;margin-top:10px}.tutorial-steps{text-align:left;font-size:15px;line-height:1.6;margin:15px 0;padding-left:22px}.tutorial-steps li{margin-bottom:9px}.intro-num{width:58px;height:58px;display:grid;place-items:center;background:#6b3f20;border:2px solid #dca954;border-radius:50%;color:#fce7bc;font-size:30px;margin:auto}.result-number{font-size:65px;line-height:1;color:#8c2026;font-weight:bold;font-family:Georgia,serif;margin:14px 0 5px}.result-caption{font-size:14px}.summary-stats{display:flex;gap:10px;margin:17px 0}.summary-stats div{flex:1;padding:10px;background:#59352111;border-radius:10px;font-size:13px}.summary-stats b{font-size:24px;display:block;color:#743e1d}.map-title{position:absolute;left:20px;right:20px;top:112px;text-align:center;color:#512d1b;background:#f9e5c4e8;border-radius:12px;padding:15px}.map-title h1{font-family:Georgia,serif;font-size:26px;margin:0 0 5px}.map-title p{font-size:14px;margin:0}.map-logo{position:absolute;top:28px;left:71px}.checkpoint{position:absolute;border:2px solid #d9b565;background:linear-gradient(#5a351e,#342314);color:#fff2d0;border-radius:50%;width:48px;height:48px;font-size:20px;box-shadow:0 4px 12px #0005}.checkpoint.active{box-shadow:0 0 0 6px #efbd6a44,0 0 20px #f4d680;animation:pulse 1.5s infinite}.checkpoint.done{background:linear-gradient(#5d7938,#283e1c)}.checkpoint:disabled{opacity:.75}.checkpoint-label{position:absolute;color:#fff3d2;font-size:14px;font-weight:bold;text-shadow:0 2px 4px #23140a;min-width:98px;text-align:center;transform:translateX(-25px)}.map-bottom{position:absolute;left:25px;right:25px;bottom:40px;background:#f6dfbbec;border:1px solid #c69a60;border-radius:13px;padding:16px;color:#502c19}.map-bottom small{font-size:13px}.map-bottom h2{font-family:Georgia,serif;margin:6px 0 13px;font-size:25px}.map-bottom .btn{width:100%}.result-screen{background:#1f150dd9;overflow:auto;padding:24px 23px}.result-screen h1{font-family:Georgia,serif;font-size:29px;margin:18px 0 13px;color:#fff0cf}.total-panel{width:100%;background:#f7dfb6;color:#502817;border:2px solid #c39654;border-radius:13px;padding:17px;position:relative}.total-panel small{font-weight:bold;font-size:13px}.total-panel strong{display:block;font-size:45px;color:#8c171d;font-family:Georgia,serif;margin-top:4px}.medal{position:absolute;right:16px;top:17px;width:72px;height:72px;background:radial-gradient(#f9e5a1,#d59c33);border:5px double #a87127;box-shadow:0 0 0 4px #eac471;border-radius:50%;font-family:Georgia,serif;font-size:42px;font-weight:bold;display:grid;place-items:center;color:#825519}.score-list{width:100%;margin:10px 0;background:#f7e2c2;color:#4a2b18;border-radius:12px;padding:8px 15px}.score-row{display:flex;justify-content:space-between;border-bottom:1px solid #ac7d3933;padding:11px 0;font-size:16px}.score-row:last-child{border:0}.xp-earned{width:100%;background:#56361766;border:1px solid #c59a5f;border-radius:12px;padding:13px;margin:3px 0 13px;display:flex;justify-content:space-between;font-size:16px}.xp-earned b{font-size:24px;color:#f0c75a}.result-actions{width:100%;display:grid;gap:10px}.result-actions .btn{padding:13px;min-height:47px}.product-screen{background:#23160ee6;padding:23px}.product-screen h1{color:#e7c473;font-family:Georgia,serif;font-size:28px;text-align:center;margin:17px 0 6px}.product-screen .subtitle{font-size:14px;margin:0 0 12px;color:#e9cfa8}.xp-track{width:100%;height:13px;background:#23170d;border:1px solid #c7a26a;border-radius:12px;overflow:hidden}.xp-track span{display:block;height:100%;background:linear-gradient(90deg,#c58d34,#f2cf74)}.xp-label{font-size:13px;margin:8px 0 13px}.product-screen h2{font-family:Georgia,serif;font-size:26px;margin:8px 0 5px}.product-photo{width:100%;height:340px;object-fit:contain;border-radius:10px;background:#ddd;margin:8px 0 13px}.product-actions{display:flex;width:100%;gap:8px;flex-wrap:wrap}.product-actions .btn{flex:1;padding:12px 9px;font-size:14px}.product-actions .collection{flex-basis:100%;font-size:16px}.product-view{background:#1d130f;overflow:auto}.product-view img{max-width:100%;max-height:540px;object-fit:contain}.product-view p{color:#f6dfbb}.loading{background:#2f1e14}.loading h1{font-family:Georgia,serif;color:#e1ba72}.loading progress{width:100%;accent-color:#d8b468}.toast{position:absolute;left:24px;right:24px;bottom:20px;background:#291a12f2;border:1px solid #e8c07a;border-radius:12px;text-align:center;font-size:14px;padding:12px;color:#f6e3bd;pointer-events:none!important;z-index:10}.intro-tip{font-size:13px!important;color:#755230;margin-bottom:8px!important}.status-dot{width:10px;height:10px;border-radius:50%;background:#f4cd7b;display:inline-block;margin-right:7px}@keyframes pulse{50%{box-shadow:0 0 0 9px #efbd6a20,0 0 24px #f4d680}}@media(max-width:1050px){.desktop-brand{display:none}}@media(prefers-reduced-motion:reduce){.checkpoint.active{animation:none}#background{transition:none}}

.previous-scene{position:absolute;inset:0;background-size:cover;background-position:center;animation:sceneFade .35s ease forwards}@keyframes sceneFade{from{opacity:1}to{opacity:0}}

#shell[data-screen="home"] #background:after{background:linear-gradient(#fff3d3aa 0%,#fff3d355 35%,transparent 55%,#1c100b66 100%)}
/* Dedicated desktop layout. The interactive world expands horizontally;
   raster objects retain their aspect ratio and native pixel density. */
body:before{background:radial-gradient(ellipse at 70% 30%,#7c543033,transparent 65%);filter:none;opacity:1}
#game{width:100%;height:100%}
#desktop-panel{display:none;position:fixed;top:50%;height:780px;width:260px;transform-origin:left center;color:#f1dfbf}
body[data-layout="desktop"] #desktop-panel{display:flex;flex-direction:column}
.desk-brand{padding:12px 0 24px;border-bottom:1px solid #bd955433}
.desk-brand .logo{background:transparent;margin-left:-12px;width:248px;height:82px}
.desk-brand>.eyebrow{font-size:11px;letter-spacing:1.7px;color:#c09d66;margin:18px 0 12px}
.desk-brand h1{font:700 37px/.98 Georgia,serif;letter-spacing:-.5px;margin:0;color:#f8e9ce}
.desk-brand h1>span{font:14px Arial,sans-serif;letter-spacing:.3px;display:block;margin-top:13px;color:#c7ab82}
.desk-progress-head{display:flex;justify-content:space-between;margin:21px 0 14px;font-size:12px;letter-spacing:1.2px;color:#bfa57e}
.desk-progress-head b{font-size:13px;color:#e7c183;letter-spacing:0}
.desk-stages{list-style:none;padding:0;margin:0;display:grid;gap:5px}
.desk-stages li{display:flex;align-items:center;gap:13px;padding:9px 12px;border:1px solid transparent;border-radius:11px;opacity:.55}
.desk-stages li.active{background:#8f6a3029;border-color:#ad80434d;opacity:1}
.desk-stages li.done{opacity:1}
.desk-step{display:grid;place-items:center;width:34px;height:34px;border:1px solid #a47e424d;border-radius:50%;color:#d5b078;font-size:13px}
.desk-stages li.active .desk-step{background:#e1b46a;color:#2c1b11;border-color:#e1b46a}
.desk-stages li.done .desk-step{color:#b9d39a;border-color:#91ac6a}
.desk-stages b{display:block;font-size:15px;font-weight:500}.desk-stages small{display:block;font-size:12px;color:#bda17b;margin-top:5px}
.desk-help{margin-top:20px;padding:15px 17px;background:#100b0866;border:1px solid #ac82402e;border-radius:12px}
.desk-help>.eyebrow{font-size:11px;color:#d5af73;letter-spacing:1.5px}
.desk-help p{font-size:14px;line-height:1.5;color:#cbb593;margin:10px 0 14px}
.desk-live{display:flex;justify-content:space-between;border-top:1px solid #a67b3b30;padding-top:10px;font-size:11px;color:#aa9375}
.desk-live strong{display:block;color:#ecd6b5;font-size:16px;font-weight:500;margin-top:5px}
.desk-footer{margin-top:auto;display:grid;grid-template-columns:1fr auto;align-items:center;padding:15px 3px 5px;border-top:1px solid #ad864235}
.desk-footer>span:first-child{font-size:11px;letter-spacing:1px;color:#b49a75}.desk-footer>b{font-size:28px;font-family:Georgia,serif;color:#ebc280}.desk-footer small{font-size:15px;color:#b49a75}.desk-footer>span:last-child{font-size:12px;color:#a58d6d;margin-top:3px;grid-column:1/-1}
body[data-layout="desktop"] #shell{border-radius:24px;box-shadow:0 30px 90px #0008;border:1px solid #d2a96959}
body[data-layout="desktop"] .stage-title{left:calc(50% - 205px);right:auto;width:410px}
body[data-layout="desktop"] .hud{left:calc(50% - 215px);right:auto;width:430px}
body[data-layout="desktop"] .meter{left:calc(50% - 225px);right:auto;width:450px}
body[data-layout="desktop"] .bottom-action{left:calc(50% - 190px);right:auto;width:380px}
body[data-layout="desktop"] .hint{left:calc(50% - 220px);right:auto;width:440px}
body[data-layout="desktop"] .card{max-width:420px}
body[data-layout="desktop"] .home-title{font-size:55px;margin-top:22px}
body[data-layout="desktop"] .home-bottom{left:calc(50% - 180px);right:auto;width:360px}
body[data-layout="desktop"] .journey-mini{left:calc(50% - 190px);right:auto;width:380px}
body[data-layout="desktop"] .hero-logo{margin-top:13px}
body[data-layout="desktop"] .home-desc{background:#f8eddbbb;padding:8px 16px;border-radius:10px;margin-top:14px}
body[data-layout="desktop"] .map-logo{left:calc(50% - 124px)}
body[data-layout="desktop"] .map-title{left:calc(50% - 230px);right:auto;width:460px}
body[data-layout="desktop"] .map-bottom{left:calc(50% - 205px);right:auto;width:410px}
body[data-layout="desktop"] .method-panel{left:70px;right:70px;gap:16px}
body[data-layout="desktop"] .method{font-size:15px;padding:8px}
body[data-layout="desktop"] .method img{height:81px}
body[data-layout="desktop"] .method-copy{left:calc(50% - 235px);right:auto;width:470px}
body[data-layout="desktop"] .sort-stats{left:calc(50% - 220px);right:auto;width:440px}
body[data-layout="desktop"] .bins-controls{left:calc(25.385% - 79px);right:calc(25.641% - 79px);justify-content:space-between;gap:0}
body[data-layout="desktop"] .bin-btn{flex:none;width:158px}
body[data-layout="desktop"] .result-screen,body[data-layout="desktop"] .product-screen{left:calc(50% - 225px);width:450px;border-left:1px solid #bd965c44;border-right:1px solid #bd965c44}
@media(prefers-reduced-motion:reduce){.previous-scene{animation:none;opacity:0}}
.desk-brand{padding:4px 0 18px}.desk-brand .logo{height:82px;transform:scale(.82);transform-origin:left top;margin-bottom:-20px}.desk-brand>.eyebrow{margin:10px 0 8px}.desk-brand h1{font-size:32px}.desk-brand h1>span{font-size:13px;margin-top:10px}.desk-progress-head{margin:18px 0 10px}.desk-stages{gap:4px}.desk-stages li{padding:7px 12px}.desk-help{margin-top:16px;padding:13px 16px}.desk-help p{margin:9px 0 12px}.desk-footer{padding-top:12px}

/* Compact interface and transparent, undistorted brand artwork. */
.logo,.desk-brand .logo{width:220px;height:70px;background:transparent;border-radius:0;overflow:visible;transform:none;margin-left:0;margin-bottom:0}
.logo img{position:static;width:100%;height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 1px 1px #ffe9cb55)}
.map-logo{left:85px}body[data-layout="desktop"] .map-logo{left:calc(50% - 110px)}
.btn{min-height:44px;padding:11px 14px;font-size:14px;border-radius:10px}
.round{width:44px;height:44px;font-size:20px}.timer{padding:7px 10px;font-size:15px}
.stage-title{left:55px;right:55px;padding:8px}.stage-title h1{font-size:26px;margin:5px 0}.stage-title p{font-size:13px}.eyebrow{font-size:11px}
.hud{left:35px;right:35px;gap:8px}.stat{padding:8px 10px;min-height:53px;border-radius:9px}.stat strong{font-size:20px!important}.stat small{font-size:11px}
.hint{left:30px;right:30px;padding:9px 12px;min-height:40px;font-size:13px}.float-feedback{font-size:16px}
.method-panel{left:30px;right:30px;gap:8px}.method{font-size:13px;padding:6px}.method img{height:60px;margin-bottom:4px}.method-copy{padding:8px;font-size:13px}
.meter{left:30px;right:30px;padding:9px;border-radius:10px}.meter-heading{font-size:13px;margin-bottom:8px}.track{height:14px}.needle{height:25px}.meter-labels{margin-top:7px}
.sort-stats{padding:7px;font-size:13px}.bin-btn{font-size:14px}
.card{max-width:300px;padding:20px 18px;border-radius:15px}.card .logo{margin-bottom:14px}.card h1,.card h2{font-size:25px;margin:8px 0 12px}.card p{font-size:14px;line-height:1.5;margin:8px 0 16px}.tutorial-steps{font-size:14px}.intro-num{width:46px;height:46px;font-size:24px}.result-number{font-size:52px}.summary-stats b{font-size:20px}
.home-title{font-size:40px}.home-sub{font-size:17px}.home-desc{font-size:14px}
.map-title{left:40px;right:40px;padding:10px}.map-title h1{font-size:23px}.map-bottom{padding:12px}.map-bottom h2{font-size:22px}
.result-screen h1,.product-screen h1{font-size:24px}.total-panel{padding:13px}.total-panel strong{font-size:38px}.medal{width:60px;height:60px;font-size:34px}.score-row{padding:9px 0;font-size:14px}.xp-earned{padding:10px;font-size:14px}.xp-earned b{font-size:20px}.result-actions{gap:8px}.result-actions .btn,.roast-actions .btn{min-height:44px;padding:10px}.product-actions .collection{font-size:14px}
body[data-layout="desktop"] .stage-title{left:calc(50% - 160px);width:320px}
body[data-layout="desktop"] .hud{left:calc(50% - 170px);width:340px}
body[data-layout="desktop"] .meter{left:calc(50% - 180px);width:360px}
body[data-layout="desktop"] .hint{left:calc(50% - 185px);width:370px}
body[data-layout="desktop"] .bottom-action{left:calc(50% - 155px);width:310px}
body[data-layout="desktop"] .card{max-width:350px}
body[data-layout="desktop"] .home-title{font-size:46px}
body[data-layout="desktop"] .method-panel{left:140px;right:140px;gap:12px}
body[data-layout="desktop"] .method{font-size:14px;padding:6px}
body[data-layout="desktop"] .method img{height:60px}
body[data-layout="desktop"] .method-copy{left:calc(50% - 190px);width:380px}
body[data-layout="desktop"] .map-title{left:calc(50% - 185px);width:370px}
body[data-layout="desktop"] .map-bottom{left:calc(50% - 170px);width:340px}

/* Small brand signature; keep full mark proportions. */
.logo,.desk-brand .logo{width:140px;height:44px}
.map-logo{left:125px}body[data-layout="desktop"] .map-logo{left:calc(50% - 70px)}
.game-audio{left:70px;top:20px;font-size:18px}

/* Compact toy-world interface: smooth 3D artwork owns the play area. */
:root{font-family:Arial,Helvetica,sans-serif;color:#543322;background:#170e0b}
body{background:radial-gradient(ellipse at center,#49301d 0,#1f140f 65%,#110b08 100%)}body:before{background:radial-gradient(ellipse at top,#b77b3a22,transparent 70%);filter:none;opacity:1}
#shell,body[data-layout="desktop"] #shell{border:3px solid #f4e5b9;border-radius:22px;box-shadow:0 12px 32px #58321e55;background:#25170e}
#background,.previous-scene,.method img,#game{image-rendering:auto}
#background:after{background:linear-gradient(#fff8e61a,transparent 50%,#25482533)}
#shell[data-screen="home"] #background:after{background:linear-gradient(#fffbecd9,transparent 55%)}
.logo,.desk-brand .logo{width:118px;height:38px;background:transparent}.logo img{filter:none}
.map-logo{left:136px}body[data-layout="desktop"] .map-logo{left:calc(50% - 59px)}
.home-title{font:900 34px/1.05 Arial,sans-serif;letter-spacing:-1px;color:#743d23;text-shadow:0 2px #fff9d6;margin:20px 0 10px}body[data-layout="desktop"] .home-title{font-size:38px}
.home-sub{font-size:16px}.home-desc{font-size:14px;line-height:1.4}
.btn{border:2px solid #823523;border-radius:14px;background:linear-gradient(#bf503d,#a63428);color:#fff8dc;box-shadow:0 3px 0 #76291e,0 5px 10px #522c2222;padding:9px 12px;min-height:44px;font-size:14px;font-weight:800}
.btn.secondary{background:linear-gradient(#fff8e7,#f3dfb5);color:#67432c;border-color:#c3a478;box-shadow:0 3px 0 #b79565}.btn.ghost{background:linear-gradient(#599b6a,#367849);border-color:#28623a;color:#fff9e5;box-shadow:0 3px 0 #255a35}.btn:active{transform:translateY(2px)}
.round{width:44px;height:44px;border:2px solid #d2b180;border-radius:15px;background:linear-gradient(#fff8e8,#f3dfbd);color:#783d28;box-shadow:0 3px 0 #b69262;font-size:20px}
.game-audio{left:69px}.timer{border:2px solid #d2b180;border-radius:14px;background:#fff1d8;color:#6a3c25;box-shadow:0 3px 0 #b69262;font-size:14px;padding:7px 9px}
.stage-title{top:80px;left:80px;right:80px;padding:7px 9px;border:2px solid #d8b282;border-radius:13px;background:#fff2d9ed;color:#76442b;box-shadow:0 3px 0 #b68c6055}
.stage-title h1{font:900 19px/1.1 Arial,sans-serif;margin:3px 0}.stage-title p{display:none}.eyebrow{font-size:12px;letter-spacing:.4px}
.hud{top:151px;left:55px;right:55px;gap:8px}.stat{min-height:46px;padding:6px 9px;background:#fff1d5ec;border:2px solid #d5b285;border-radius:12px;box-shadow:0 3px 0 #b48d5d44}.stat small{font-size:12px;letter-spacing:0;color:#94643e}.stat strong{font-size:17px!important;margin-top:2px;color:#793e24}
.hint{left:35px;right:35px;bottom:23px;min-height:38px;padding:8px 10px;background:#fff2d8eb;border:2px solid #ddba8c;color:#6e462d;border-radius:13px;font-size:14px;box-shadow:0 3px 0 #a7835944}
.float-feedback{top:216px;font-size:16px;color:#fff2b1;text-shadow:0 2px 2px #71351f;min-height:20px}
.meter{top:151px;left:40px;right:40px;padding:8px 10px;background:#fff1d7ed;color:#73482c;border:2px solid #d1ad7e;border-radius:13px;box-shadow:0 3px 0 #b18b5c44}.meter-heading{font-size:13px;margin-bottom:7px}.track{height:12px;border-radius:9px;border:1px solid #ad8a60}.needle{height:23px}.meter-labels{font-size:12px;margin-top:6px}.roast-meter{top:auto;bottom:201px}
.method-panel{top:260px;left:35px;right:35px;gap:8px}.method{padding:5px;font-size:13px;border:2px solid #d1aa76;border-radius:12px;background:#fff0ce;box-shadow:0 3px 0 #b18d5c55}.method img{height:50px;border-radius:7px;margin-bottom:4px}.method.selected{border:2px solid #b9442f;box-shadow:0 0 0 2px #fce5a6}.method-copy{top:360px;left:40px;right:40px;padding:7px 9px;background:#fff3d8df;color:#754b30;border-radius:10px;font-size:13px;line-height:1.35}
.bottom-action{left:45px;right:45px}.sort-stats{top:229px;background:#fff0d4de;color:#6a4128;padding:7px 9px;font-size:13px;border-radius:10px}.bin-btn{font-size:14px;border-radius:18px}.bin-btn.selected{border-color:#ffdf84;box-shadow:0 0 12px #ffd96b88}
.scrim{background:#1b3547b8;backdrop-filter:blur(3px)}.card{max-width:290px;padding:18px 17px;border:2px solid #d6ae77;border-radius:20px;background:linear-gradient(#fff8e6,#f7e6c6);box-shadow:0 8px 0 #9d754844,0 15px 30px #14334555}.card h1,.card h2{font:900 23px/1.2 Arial,sans-serif;margin:8px 0 12px}.card p{font-size:14px;line-height:1.5}.card .logo{margin-bottom:12px}.intro-num{width:42px;height:42px;font-size:22px;background:linear-gradient(#c5673d,#9c432a);border:2px solid #e0b578;box-shadow:0 3px 0 #7a3b23}.result-number{font-family:Arial,sans-serif;font-size:46px}.summary-stats b{font-size:20px}
.map-title{top:90px;left:50px;right:50px;padding:9px;border:2px solid #d6ad78;border-radius:13px;background:#fff1d7ed}.map-title h1{font:900 20px/1.2 Arial,sans-serif}.map-title p{font-size:13px}.map-bottom{left:45px;right:45px;padding:11px;border:2px solid #cfa577;border-radius:15px;background:#fff2d9ee}.map-bottom h2{font:800 20px Arial,sans-serif}.checkpoint{border:2px solid #ffeac1;background:linear-gradient(#af6c43,#844c2f);box-shadow:0 4px 0 #63412d;font-size:18px}.checkpoint.done{background:linear-gradient(#77b56b,#448e4e)}
.result-screen,.product-screen{background:#fff3deeF;color:#73462c}.result-screen h1,.product-screen h1{font:900 23px/1.2 Arial,sans-serif;color:#87462b}.product-screen h2{font:900 22px Arial,sans-serif}.product-screen .subtitle{color:#846043}.total-panel{border:2px solid #d6b182;border-radius:15px;background:#ffe7b4;padding:12px}.total-panel strong{font:900 34px Arial,sans-serif}.medal{width:56px;height:56px;font-size:30px}.score-list{background:#ffefd1;border:1px solid #d7b78b}.score-row{font-size:14px;padding:8px 0}.xp-earned{background:#f4dfb8;color:#795337;padding:9px;font-size:14px}.xp-earned b{font-size:20px;color:#9a5228}.xp-label{color:#815739}.xp-track{background:#e0c8a2}.product-photo{border:2px solid #d8b180;border-radius:14px;background:#fff;image-rendering:auto}.product-actions .collection{font-size:14px}.result-actions{gap:8px}
#desktop-panel{color:#6f462d;padding:14px;background:#fff4dfee;border:2px solid #e2c297;border-radius:22px;box-shadow:0 8px 0 #5b8daf33}
.desk-brand{border-bottom:1px solid #cba77b;padding-bottom:14px}.desk-brand h1{font:900 28px/1.02 Arial,sans-serif;color:#804629;letter-spacing:-.5px}.desk-brand h1>span{color:#9a7051;font-size:13px}.desk-brand>.eyebrow{font-size:12px;letter-spacing:0;color:#a16f49}.desk-progress-head{color:#996d49;letter-spacing:0;font-size:12px}.desk-progress-head b{color:#a65133}.desk-stages li{padding:6px 8px;gap:10px;border-radius:13px}.desk-stages li.active{background:#f3d9af;border:1px solid #d2a374}.desk-step{border-color:#bf976c;color:#956c48}.desk-stages li.active .desk-step{background:#a85b38;color:#fff4d9;border-color:#a85b38}.desk-stages b{font-size:14px}.desk-stages small{font-size:12px;color:#957552}.desk-stages li.done .desk-step{color:#3f8a52;border-color:#79ae74}.desk-help{padding:10px 12px;background:#f3e1c3;border:1px solid #d4b086;border-radius:14px}.desk-help>.eyebrow{font-size:12px;letter-spacing:0;color:#a46c45}.desk-help p{font-size:14px;color:#7e5b3e}.desk-live{color:#9a7453;border-color:#ceab82}.desk-live strong{color:#9c5031}.desk-footer{border-color:#cba77b}.desk-footer>span:first-child,.desk-footer>span:last-child,.desk-footer small{color:#a27a54}.desk-footer>b{font-family:Arial,sans-serif;color:#a05a36;font-size:26px}
body[data-layout="desktop"] .stage-title{left:calc(50% - 115px);width:230px}
body[data-layout="desktop"] .hud{left:calc(50% - 145px);width:290px}
body[data-layout="desktop"] .meter{left:calc(50% - 165px);width:330px}
body[data-layout="desktop"] .hint{left:calc(50% - 170px);width:340px}
body[data-layout="desktop"] .bottom-action{left:calc(50% - 135px);width:270px}
body[data-layout="desktop"] .method-panel{left:calc(50% - 195px);right:auto;width:390px;gap:10px}
body[data-layout="desktop"] .method{font-size:13px;padding:5px}body[data-layout="desktop"] .method img{height:50px}
body[data-layout="desktop"] .method-copy{left:calc(50% - 165px);width:330px}
body[data-layout="desktop"] .sort-stats{left:calc(50% - 170px);width:340px}
body[data-layout="desktop"] .card{max-width:330px}
body[data-layout="desktop"] .map-title{left:calc(50% - 165px);width:330px}
body[data-layout="desktop"] .map-bottom{left:calc(50% - 155px);width:310px}
body[data-layout="desktop"] .home-desc{background:#fff3dbcc;border-radius:12px}
/* Keep the roast meter above the machine, clear of its animated opening. */
.roast-meter{top:218px;bottom:auto}
/* Edge-to-edge viewport with compact controls; no framed desktop sidebar. */
html,body{width:100%;height:100%;overflow:hidden}#desktop-panel,body[data-layout="desktop"] #desktop-panel{display:none!important}
#shell,body[data-layout="desktop"] #shell{border:0;border-radius:0;box-shadow:none;position:fixed;left:0;top:0;transform-origin:top left}
.game-brand{display:none}body[data-layout="desktop"] .game-brand{display:block;position:absolute;left:127px;top:24px;width:105px;height:34px}
body[data-layout="desktop"] .stage-title{top:20px}body[data-layout="desktop"] .hud{top:92px}body[data-layout="desktop"] .meter:not(.roast-meter){top:92px}body[data-layout="desktop"] .float-feedback{top:175px}
body[data-layout="desktop"] .result-screen,body[data-layout="desktop"] .product-screen{border:0;border-radius:20px}
body[data-layout="mobile"] .home-bottom{max-width:310px;margin:auto}body[data-layout="mobile"] .stage-title{left:calc(50% - 105px);right:auto;width:210px}
.journey-screen{position:absolute;inset:0;display:flex;flex-direction:column;color:#804a2f}
.journey-header{height:84px;flex:none;display:flex;align-items:center;justify-content:center;gap:18px;padding:12px 18px;background:#fff3dbe8;border-bottom:1px solid #bd8d5944;z-index:2}
.journey-header .logo{width:100px;height:32px}.journey-header h1{font:900 18px Arial;margin:0 0 5px}.journey-header small{font-size:13px}.journey-header .round{position:static;width:44px;height:44px;flex:none;margin-left:12px}
.journey-scroll{overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;overscroll-behavior:contain;touch-action:pan-y;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#b88b5b transparent}
.journey-content{position:relative;width:min(100%,700px);height:1620px;margin:0 auto}
.journey-path{position:absolute;inset:0;width:100%;height:1500px;pointer-events:none;opacity:.8}
.journey-stop{position:absolute;top:calc(30px + var(--step)*300px);left:5%;width:65%;max-width:330px;transform:rotate(var(--tilt));transform-origin:center}
.journey-stop:nth-of-type(even){left:auto;right:5%}
.photo-card{position:relative;display:block;width:100%;padding:9px 9px 0;border:1px solid #dbcbaa;background:#fffef9;color:#874a30;box-shadow:0 6px 12px #6a482b44;min-height:0;text-align:center;font-family:Arial;border-radius:2px}
.photo-card:before{content:'';position:absolute;top:-12px;right:-14px;width:48px;height:20px;transform:rotate(42deg);background:#ffffff66;border:1px solid #fff9;box-shadow:0 1px 2px #7b513122}
.photo-card img{width:100%;height:185px;object-fit:cover;display:block;background:#d8c79e;image-rendering:auto}.photo-caption{display:block;padding:11px 3px 12px}.photo-caption b{font-size:20px;font-weight:900;display:block}.photo-caption small{font-size:13px;display:block;margin-top:5px;color:#9b7657}.photo-card:disabled{opacity:1;cursor:default}.locked .photo-card img{filter:saturate(.7)}
.current .photo-card{outline:3px solid #e3aa42;outline-offset:5px}.done .photo-caption small{color:#528254}.map-player{position:absolute;left:50%;top:101.5px;width:56px;height:86px;transform:translate(-50%,-50%);z-index:3;pointer-events:none}.map-player img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #71492955)}
.journey-finish{position:absolute;top:1540px;left:50%;transform:translateX(-50%);width:260px}.journey-finish .btn{width:100%}
body[data-layout="desktop"] .journey-header h1{font-size:20px}body[data-layout="desktop"] .journey-stop{width:44%}
@media(prefers-reduced-motion:reduce){.journey-scroll{scroll-behavior:auto}}
.fullscreen-btn{left:auto;right:17px;top:76px;font-size:22px;z-index:5}
body[data-layout="desktop"] .fullscreen-btn{top:auto;bottom:20px;right:20px}
#shell[data-screen="map"] .fullscreen-btn{top:98px;bottom:auto;right:16px}
@keyframes journeyArrival{from{opacity:0;translate:0 15px}to{opacity:1;translate:0 0}}
.map-player{will-change:left,top}
@media(prefers-reduced-motion:reduce){.map-player{animation:none}}
.journey-header{gap:10px}.journey-header .round{margin-left:6px}.journey-header h1{font-size:16px;line-height:1.15}


  :root,body{background:#170e0b}
  body{background:radial-gradient(ellipse at center,#49301d 0,#1f140f 65%,#110b08 100%)}
  #shell,body[data-layout="desktop"] #shell{background:#25170e}
  #initial-loading{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 42%,#53321f,#21130d 72%);color:#f8e7c7;text-align:center;font-family:Arial,Helvetica,sans-serif}
  .initial-loading-card{width:min(360px,100%);padding:28px 24px;border:1px solid #c79b55;border-radius:18px;background:#25170eeb;box-shadow:0 18px 55px #0008}
  .initial-loading-mark{width:42px;height:42px;margin:0 auto 16px;border:3px solid #795035;border-top-color:#e7ba75;border-radius:50%;animation:initial-load-spin .9s linear infinite}
  .initial-loading-title{margin:0;font-size:18px;color:#fff2ce}
  .initial-loading-copy{margin:9px 0 0;color:#e5c99c;font-size:14px}
  @keyframes initial-load-spin{to{transform:rotate(360deg)}}
  @media(prefers-reduced-motion:reduce){.initial-loading-mark{animation:none}}
