@font-face{font-family:ApothecaryHead;src:url('assets/fonts/GFSDidot-Regular.ttf') format('truetype');font-display:swap}@font-face{font-family:ApothecaryBody;src:url('assets/fonts/GFSNeohellenic.ttf') format('truetype');font-display:swap}@font-face{font-family:ApothecaryBody;src:url('assets/fonts/GFSNeohellenicBold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{color-scheme:light;--ink:#253b3b;--paper:#eee4ce;--bronze:#89683f;--blue:#153e48;--terracotta:#a04f32;--line:#b9a783;--muted:#746b58;font-family:ApothecaryBody,Georgia,serif;font-size:20px;background:#172c31;color:var(--ink)}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-weight:700;cursor:pointer;min-height:48px;border:1px solid #af9874;border-radius:5px;background:#e9ddc3;color:var(--ink);padding:10px 16px;box-shadow:0 2px 0 #3d35231a;touch-action:manipulation}button:hover{background:#f6eedb}button:active{transform:translateY(1px)}button:disabled{opacity:.43;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #2b9db1;outline-offset:3px}a{color:#176779}h1,h2,h3{font-family:ApothecaryHead,Georgia,serif;font-weight:400;line-height:1.1;letter-spacing:-.02em}h1{font-size:clamp(36px,5vw,54px);margin:8px 0 22px}h2{font-size:32px;margin:8px 0 16px}p{line-height:1.4}small{font-size:15px}b{font-weight:700}.primary{background:var(--blue);color:#fff1d4;border-color:#0a3039;box-shadow:inset 0 1px #ffffff24,0 3px 0 #0b252b}.primary:hover{background:#245562}.wide{width:100%;margin:7px 0}.quiet{border:0;box-shadow:none;background:transparent;text-decoration:underline;text-decoration-color:#b3a488;text-underline-offset:4px;font-weight:400}.quiet:hover{background:#baad8d22}.eyebrow,.smallcaps{font-size:14px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.eyebrow{color:var(--bronze)}.fine{font-size:16px;color:var(--muted);line-height:1.45}.shell{max-width:1120px;margin:auto;background:var(--paper);min-height:100vh;box-shadow:0 0 90px #0008}.topbar{display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top) + 6px) 16px 8px;border-bottom:1px solid var(--line)}.topbar button{font-size:17px;padding:7px 9px}.back{background:transparent;border:0;box-shadow:none;font-weight:400}.wordmark{font-family:ApothecaryHead,serif;letter-spacing:.16em;font-size:21px;color:#7c5d35}footer{text-align:center;font-size:13px;padding:18px 16px calc(18px + env(safe-area-inset-bottom));line-height:1.5;color:#7e705a;border-top:1px solid #cbbd9d}.meander{height:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='18' viewBox='0 0 42 18'%3E%3Cpath d='M0 2H36V15H12V7H27V10H21M0 15H5V2' fill='none' stroke='%23846943' stroke-width='2'/%3E%3C/svg%3E");opacity:.72;margin:18px 0 0}.home{min-height:100vh;position:relative;max-width:1200px;margin:auto;overflow:hidden;background:#172f35;padding:1px 25px 30px}.home-art{position:absolute;inset:0;background:linear-gradient(90deg,#06262a30,#06262a00 50%,#06262a70),url('assets/art/apothecary.png') center 30%/cover}.home-head{position:relative;color:#f9efd6;max-width:540px;text-align:center;margin:45px auto 0;padding:24px 10px;text-shadow:0 3px 12px #0d272b}.home-head .eyebrow{color:#f2dbb1}.home-head h1{font-size:clamp(46px,7vw,77px);margin:16px 0;line-height:.95}.home-head h1 span{display:block;font-size:.6em;margin-bottom:12px;font-style:italic}.attribution{font-size:13px;letter-spacing:.23em}.home-panel{position:relative;background:linear-gradient(120deg,#f0e7d2f5,#e3d3b3f5);border:1px solid #bc9a65;box-shadow:0 15px 50px #07191c88;padding:8px 28px 18px;text-align:center;max-width:445px;margin:180px auto 20px}.home-panel .smallcaps{margin:19px 0 12px;font-size:12px;color:#84663e}.home-panel h2{font-size:42px;margin:12px 0}.home-panel p{margin:10px 0 18px}.home-panel .meander{margin:9px 0}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.menu-grid button{font-size:18px;padding:11px 6px}.home-links{display:flex;justify-content:center;gap:15px;margin-top:8px}.home-links button{font-size:16px}.home-panel .fine{font-size:14px;margin-bottom:4px}
.game-layout{display:grid;grid-template-columns:1fr 1fr;gap:0}.bench-side{background:#263e40;align-self:start;position:sticky;top:0}.customer-strip{display:flex;gap:12px;align-items:center;background:#e6dac0;padding:14px 18px;position:relative;min-height:115px}.portrait{flex:none;width:76px;height:76px;border:2px solid #b0905b;border-radius:50%;background-image:url('assets/art/customers.png');background-size:300% 200%;background-repeat:no-repeat;box-shadow:0 2px 10px #3f382333;background-color:#c8b795}.p0{background-position:0 0}.p1{background-position:50% 0}.p2{background-position:100% 0}.p3{background-position:0 100%}.p4{background-position:50% 100%}.p5{background-position:100% 100%}.customer-strip b{font-family:ApothecaryHead,serif;font-size:23px;font-weight:400}.customer-strip span:not(.shop-rank){font-size:14px;color:#6e6755;margin-left:8px}.customer-strip p{font-size:17px;margin:5px 0 0;line-height:1.25}.shop-rank{position:absolute;top:5px;right:8px;color:#8c7452;font-size:10px;text-transform:uppercase;letter-spacing:.1em}.scene-wrap{position:relative;overflow:hidden;line-height:0}.scene-wrap canvas{width:100%;height:auto;aspect-ratio:540/420;display:block}.scene-status{position:absolute;left:16px;right:16px;bottom:9px;text-align:center;line-height:1.2;font-size:14px;background:#102b32ed;color:#efdfbd;padding:8px 8px;border-radius:3px;box-shadow:0 1px 3px #0003}.reaction-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:14px 16px 18px;color:#e9d8b6}.reaction-panel span{font-size:16px;display:flex;justify-content:space-between}.reaction-panel b{font-size:15px}meter{display:block;width:100%;height:8px;margin-top:8px;border:0;background:#102c31;border-radius:2px}meter::-webkit-meter-bar{border:0;background:#0b252a;border-radius:2px}meter::-webkit-meter-optimum-value{background:#bca575}meter.danger::-webkit-meter-optimum-value{background:#ef986a}meter::-moz-meter-bar{background:#bca575}.working-side{padding:22px 22px 12px}.recipe-heading h2{font-size:31px;margin:6px 0 16px}.recipe-amounts{display:grid;gap:10px}.recipe-item{display:grid;grid-template-columns:24px 1fr 40px;column-gap:8px;align-items:center;font-size:18px}.recipe-item small{display:inline-block;margin-left:8px;color:#776a51;font-size:14px}.recipe-item>b{text-align:right;font-size:22px;font-variant-numeric:tabular-nums}.dot{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--liquid);color:#122b30;font-size:13px;border:1px solid #384c4233}.amount-track{grid-column:2/4;height:6px;background:#cbbda0;margin:6px 0 0;position:relative}.amount-track i{display:block;background:#5c7c79;height:100%;width:0}.amount-track span{position:absolute;top:-3px;height:12px;border:2px solid #4d4435;border-radius:1px;min-width:2px}.botanical-recipe{display:flex;gap:9px;flex-wrap:wrap;font-size:14px;margin:14px 0}.botanical-recipe .omit{color:#756b59}.botanical-recipe .correct{color:#446542;text-decoration:underline;text-underline-offset:3px}.tip{font-size:16px;line-height:1.25;padding:10px 11px;background:#daceb1;border-left:3px solid #8d7850;min-height:60px;margin:12px 0}.pour-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pour-card{padding:7px 3px 9px;background:#e1d1ad;display:flex;align-items:center;flex-direction:column;position:relative;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;border:1px solid #b7a07b;box-shadow:inset 0 1px 0 #fff6,0 2px 0 #948260}.pour-card:hover{background:#eadaba}.pour-card b{font-size:18px;margin-top:5px;white-space:nowrap}.pour-card small{font-size:12px;white-space:nowrap;color:#695a43}.pot-sprite{height:83px;width:83px;display:block;background:url('assets/art/amphorae.png') 0 50%/300% 100% no-repeat;filter:drop-shadow(0 4px 3px #40321855);pointer-events:none}.pot1{background-position:50% 50%}.pot2{background-position:100% 50%}.stock{font-size:13px;color:#776246;margin-top:5px}.hold-label{font-size:9px;letter-spacing:.12em;margin-top:5px;color:#65563d}.holding{background:#c6d3b4!important;box-shadow:inset 0 0 0 2px #5d816b!important}.section-label{font-size:11px;letter-spacing:.12em;display:block;margin:17px 0 8px;font-weight:700}.section-label small{font-size:12px;letter-spacing:0;font-weight:400;margin-left:8px;color:#776b55}.herb-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.herb{display:flex;flex-direction:column;align-items:center;padding:5px 3px 8px;background:#274344;border-color:#26403d;color:#eee0c3}.herb:hover{background:#345857}.herb>span{font-size:28px;line-height:1.2}.herb>b{font-size:17px}.herb small{font-size:12px;color:#c7c4aa}.mix-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:14px 0}.mix-controls button{touch-action:none;user-select:none;padding:12px 4px}.mix-controls b{display:block;font-size:18px}.mix-controls small{font-size:11px;display:block;margin-top:4px}.fast{border-color:#b06f4d;background:#ddbea1}.cool{background:#ccdad4;border-color:#96aaa0}.inspection{font-size:17px;min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;border-top:1px solid #bba983;padding:9px}.inspection.good{color:#416a3b}.inspection.dead{color:#853b34;background:#d6a69355;font-weight:700}.serve-row{display:flex;gap:12px;justify-content:space-between}.serve-row .primary{flex:1}.bench-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0;margin-top:8px}.bench-links button{font-size:13px;min-height:40px;padding:8px}.left-hand .serve-row{flex-direction:row-reverse}.left-hand .mix-controls{direction:rtl}.left-hand .mix-controls button{direction:ltr}
.paper{padding:34px 30px 45px}.narrow{max-width:700px;margin:0 auto;min-height:75vh}.days{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.day{text-align:left;padding:15px;display:grid;gap:6px;grid-template-columns:32px 1fr;align-items:center}.day>span{font-family:ApothecaryHead,serif;font-size:26px;color:#997b4d}.day b{font-size:21px;font-weight:400}.day small{grid-column:2;color:#75644c}.setting{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #cbbd9d}.setting input{width:28px;height:28px;accent-color:#315c57}.paper details{border-bottom:1px solid #bcaa87;padding:16px 0}.paper summary{font-size:25px;cursor:pointer;min-height:38px;font-family:ApothecaryHead,serif}.paper details .eyebrow{display:block;margin-top:20px;font-size:12px}.paper details a{font-size:16px;line-height:1.4;display:block;margin-bottom:8px}.guide{padding-left:24px}.guide li{padding:0 0 16px 8px;line-height:1.4}.modal-shade{position:fixed;inset:0;background:#10272ab8;z-index:20;display:grid;place-items:center;padding:25px;backdrop-filter:blur(3px);overflow:auto}.dialog{max-width:440px;background:#eee3cb;border:1px solid #a98c5b;border-radius:7px;padding:25px 25px 22px;box-shadow:0 15px 70px #0007;text-align:center;max-height:calc(100dvh - 40px);overflow:auto}.dialog .portrait{width:96px;height:96px;margin:0 auto 18px}.dialog h2{font-size:34px}.dialog p{font-size:20px;line-height:1.35}.dialog-actions{display:grid;gap:10px;margin-top:20px}.dialog-mark{font-size:50px;color:#8d7548}.danger-button{background:#8c493b;border-color:#6f332d;color:#fff0d6}.danger-button:hover{background:#a45c4d}.portrait.sick{filter:sepia(.5) hue-rotate(37deg);animation:sick 1.3s ease-in-out 2}.portrait.dead{filter:grayscale(1) brightness(.65);transform:rotate(12deg)}.portrait.good{box-shadow:0 0 0 4px #9bac7a77}.portrait.exploded{filter:grayscale(.7) brightness(.7)}@keyframes sick{50%{transform:rotate(-6deg)}}.reduced *{animation:none!important;scroll-behavior:auto!important}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#183e44;color:#fff2d5;box-shadow:0 5px 30px #0005;padding:14px 20px;z-index:50;border-radius:5px;width:max-content;max-width:90vw;font-size:17px}.loading{color:#f0e5cd;text-align:center;margin:20vh 0}
@media(min-width:850px){.home{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:100vh;padding:40px}.home-art{background-position:center 35%}.home-head{align-self:start;margin-top:30px}.home-panel{margin:30px 0 30px auto}.home-panel h2{font-size:45px}.bench-side{margin-top:0}.scene-wrap canvas{aspect-ratio:540/420}.game-layout{min-height:calc(100vh - 135px)}.working-side{padding:25px 25px 15px}}
@media(max-width:749px){.game-layout{display:block}.bench-side{position:relative}.customer-strip{padding:12px 16px;min-height:91px}.customer-strip .portrait{width:60px;height:60px}.customer-strip b{font-size:21px}.customer-strip p{font-size:16px}.scene-wrap{max-height:290px}.scene-wrap canvas{aspect-ratio:540/420;margin-top:-15px}.reaction-panel{padding:10px 16px 12px;gap:14px}.reaction-panel span{font-size:15px}.working-side{padding:17px 16px 12px}.recipe-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.recipe-heading h2{font-size:27px;margin:0 0 12px}.recipe-heading .eyebrow{font-size:11px}.recipe-amounts{gap:7px}.recipe-item{font-size:17px}.recipe-item small{font-size:13px}.botanical-recipe{margin:11px 0;font-size:13px}.tip{min-height:unset;margin:9px 0;font-size:15px;padding:9px}.pour-card b{font-size:17px}.pot-sprite{height:70px;width:70px}.pour-card small{font-size:11px}.mix-controls b{font-size:17px}.mix-controls small{font-size:10px}.topbar{padding:calc(env(safe-area-inset-top) + 3px) 9px 3px}.topbar button{min-height:42px}.topbar .wordmark{font-size:18px}.paper{padding:26px 20px 40px}.days{grid-template-columns:1fr 1fr;gap:8px}.day{grid-template-columns:22px 1fr;padding:12px 8px;gap:3px}.day b{font-size:18px}.day small{font-size:12px}.day>span{font-size:22px}.home{padding:1px 18px 20px}.home-head{margin-top:24px}.home-panel{margin:170px auto 10px;padding:8px 22px 16px}.home-panel h2{font-size:37px}.home-panel .primary{font-size:22px}.home-panel p{font-size:18px}.home-panel .fine{font-size:13px}}
@media(max-width:370px){.scene-wrap{max-height:245px}.pour-card b{font-size:15px}.pour-card small{font-size:10px}.recipe-item small{display:block;margin-left:0}.home-panel{padding:8px 16px 16px}.herb b{font-size:15px}.mix-controls b{font-size:15px}}
/* Keep the live reaction and target bands in view while thumb controls scroll. */
@media(max-width:749px){.bench-side{position:sticky;top:0;z-index:6;box-shadow:0 3px 12px #132a322c}.customer-strip{min-height:58px;padding:6px 12px;gap:8px}.customer-strip .portrait{width:43px;height:43px}.customer-strip b{font-size:18px}.customer-strip p{font-size:13px;margin-top:2px;max-width:285px}.customer-strip span:not(.shop-rank){font-size:12px}.shop-rank{display:none}.scene-wrap{height:220px;max-height:none}.scene-wrap canvas{margin-top:0;height:220px;aspect-ratio:auto}.scene-status{font-size:11px;padding:5px;bottom:5px;left:10px;right:10px}.reaction-panel{padding:7px 12px 9px;height:45px}.reaction-panel span{font-size:13px}.reaction-panel b{font-size:13px}meter{height:5px;margin-top:5px}.recipe-amounts{position:sticky;top:323px;z-index:5;background:var(--paper);padding:8px 0 10px;box-shadow:0 5px 0 var(--paper)}.recipe-item{font-size:15px;grid-template-columns:19px 1fr 36px;column-gap:6px}.recipe-item small{font-size:12px}.recipe-item>b{font-size:18px}.recipe-item .dot{height:18px;width:18px;font-size:11px}.amount-track{margin-top:2px;height:4px}.amount-track span{top:-2px;height:8px}.recipe-amounts{gap:6px}.pot-sprite{height:65px;width:65px}.pour-card{padding:5px 2px}.hold-label{margin-top:3px}.stock{margin-top:2px}.working-side{padding-top:12px}.botanical-recipe{font-size:12px;gap:7px}.tip{font-size:14px}.section-label{margin-top:12px}.herb>span{font-size:23px}.mix-controls{margin:11px 0}.home-art{background-position:50% 20%}.home-head{margin-top:120px}.home-panel{margin-top:160px}}
@media(max-width:749px) and (max-height:700px){.scene-wrap,.scene-wrap canvas{height:165px}.customer-strip{min-height:50px}.customer-strip p{display:none}.recipe-amounts{top:260px}.reaction-panel{height:45px}.tip{font-size:13px}.pot-sprite{height:52px;width:52px}}

@media(max-width:749px){.customer-strip{height:70px;min-height:70px;overflow:hidden}.recipe-amounts{top:335px}.home-panel{margin-top:95px}}
@media(max-width:749px) and (max-height:700px){.customer-strip{height:50px;min-height:50px}.recipe-amounts{top:260px}}
/* Approved Panacea character, reused unchanged on the welcome and workbench. */
.panacea-host{position:absolute;left:6%;bottom:0;width:46%;max-height:76vh;object-fit:contain;object-position:center bottom;pointer-events:none;filter:drop-shadow(0 12px 20px #09272b44)}
.home-head{z-index:1;align-self:start;margin-top:0;padding-top:0}.home-head h1{font-size:61px}.host-line{font-family:ApothecaryHead,serif;font-size:20px;line-height:1.2;background:#17353bdd;border-radius:4px;padding:10px 14px;display:inline-block;margin:4px 0 0}.host-line span{display:block;font-family:ApothecaryBody,serif;font-size:12px;letter-spacing:.07em;margin-top:6px;color:#d4c59e}.home-panel{z-index:2}
.panacea-guidance{display:flex;gap:10px;align-items:center;background:#daceb1;border-left:3px solid #8d7850;padding:8px;margin:12px 0}.panacea-avatar{flex:none;width:49px;height:59px;border-radius:25px 25px 12px 12px;background:#2a4b4c url('assets/art/panacea-approved-v1.png') 50% 3%/245px auto no-repeat;box-shadow:0 0 0 1px #ae8b57}.panacea-label{font-family:ApothecaryHead,serif;font-size:15px;color:#5d5039}.panacea-guidance .tip{margin:3px 0 0;padding:0;border:0;min-height:0;background:none;font-size:15px}
@media(min-width:850px){.home{min-height:850px}.home-head{margin-top:0}.panacea-host{max-height:620px;height:620px;left:5%;width:44%}.home-panel{margin-top:50px;margin-bottom:50px}.home-head h1{font-size:62px}.home-head .eyebrow{font-size:12px}.home-head .attribution{font-size:11px}.host-line{position:absolute;top:640px;left:25px;width:calc(100% - 50px)}}
@media(max-width:849px){.home-head{margin-top:25px;padding-top:8px}.home-head h1{font-size:54px}.home-head .host-line{display:none}.panacea-host{width:330px;height:495px;max-height:none;left:50%;transform:translateX(-50%);top:230px;bottom:auto}.home-panel{margin-top:420px}.home-art{background-position:50% 0}.panacea-guidance{padding:7px;margin:9px 0;gap:9px}.panacea-guidance .tip{font-size:14px}.panacea-avatar{width:43px;height:53px;background-size:225px auto}}
@media(max-width:849px){.home-panel{margin-top:320px}.home-panel .smallcaps{display:none}.home-panel h2{font-size:30px;margin:10px 0}.home-panel>p:not(.fine){font-size:16px;margin:7px 0 12px}.home-panel .primary{font-size:20px}}
/* One identity, four authored expression/pose cells; no CSS face deformation. */
#panaceaFace{display:flex;flex:none}.panacea-expression{--pw:66px;display:block;position:relative;width:var(--pw);height:66px;overflow:hidden;flex:none}.panacea-expression img{position:absolute;width:calc(var(--pw)*2);max-width:none;height:auto;left:calc(var(--col)*var(--pw)*-1);top:calc(var(--row)*var(--pw)*-3);pointer-events:none}.panacea-comment{font-size:15px;line-height:1.2;color:#604d30;margin:5px 0 0;font-style:italic}.panacea-comment:empty{display:none}.panacea-verdict{display:flex;align-items:center;gap:14px;text-align:left;border-bottom:1px solid #c7b58f;margin:-8px 0 18px}.panacea-verdict .verdict-expression{--pw:115px;height:150px}.panacea-verdict p{font-size:18px;line-height:1.3;margin:0 0 10px}.panacea-verdict b{font-family:ApothecaryHead,serif;font-weight:400;font-size:22px}.panacea-verdict .panacea-avatar{margin:20px}
@media(max-width:749px){.panacea-expression{--pw:56px;height:61px}.panacea-verdict .verdict-expression{--pw:95px;height:125px}.panacea-verdict p{font-size:16px}}
/* Read-only diagnostics, kept separate from the playing surface. */
.diagnostics{max-width:820px}.debug-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.debug-summary p{margin:0;padding:12px;background:#eee6d5;overflow-wrap:anywhere}.debug-summary b,.debug-summary span{display:block}.debug-table{max-width:100%;overflow-x:auto}.debug-table table{width:100%;border-collapse:collapse;font-size:17px}.debug-table td,.debug-table th{text-align:left;padding:10px 8px;border-bottom:1px solid #b9ad92;white-space:nowrap}.debug-table th{font-weight:700}.diagnostics details{margin:16px 0}.diagnostics summary{min-height:44px;padding:12px 0;cursor:pointer}
/* Fit the available viewport, including browsers with a visible scrollbar. */
body{min-width:0}.game-layout>*{min-width:0}.reaction-panel>div{min-width:0}
@media(max-width:849px){.home-head h1{font-size:clamp(35px,12vw,54px)}.panacea-host{max-width:100%}}
@media(max-width:370px){.reaction-panel{gap:7px;padding-left:9px;padding-right:9px}.recipe-item small{margin-left:0}.pour-card small{white-space:normal}.pour-card b{white-space:normal}.topbar{padding-left:5px;padding-right:5px}.topbar .wordmark{font-size:16px}.topbar button{font-size:15px}.serve-row button{padding-left:9px;padding-right:9px}.debug-summary{grid-template-columns:1fr}.paper{padding-left:14px;padding-right:14px}}

.academy-return{display:block;width:fit-content;margin:1rem auto 2rem;padding:.8rem;color:#e8d7ae;font-size:.85rem;text-underline-offset:.25em}.academy-return:focus-visible{outline:2px solid #e8d7ae;outline-offset:3px}

.pour-card.selected{border:2px solid #476b5a;box-shadow:inset 0 0 0 1px #476b5a;background:#d5dfc7}.pour-card.selected .hold-label{color:#244b39;font-weight:700}
/* Customer craft: the needle and its instructions stay next to the controls. */
.order-taste{margin-top:16px;border-top:1px solid #bba983;padding-top:12px;display:grid;gap:4px}.order-taste b{font-family:ApothecaryHead,serif;font-size:23px;font-weight:400}.order-taste small{font-size:14px;color:#6f614b}.botanical-recipe span{border:1px solid #b9a684;padding:5px 7px}.botanical-recipe .correct{background:#d7dfc7;text-decoration:none;border-color:#6e8157}.stir-station{margin:16px 0 8px;padding:14px 12px 4px;background:#ded2b8;border:1px solid #b5a17c}.stir-heading{display:flex;justify-content:space-between;gap:10px;font-size:16px}.stir-heading span{font-size:14px;color:#624e30;text-align:right}.stir-track{height:18px;margin:14px 6px 10px;background:#b9aa8a;position:relative;border:1px solid #7c6c50}.stir-zone{position:absolute;top:-4px;bottom:-4px;background:#496c5b;border:2px solid #264d3e}.stir-track i{position:absolute;top:-7px;bottom:-7px;width:4px;margin-left:-2px;background:#fff5dc;border:1px solid #342f21;box-shadow:0 0 0 1px #342f2166}.stir-caption{font-size:14px;line-height:1.4;margin:6px 0}.mix-controls{grid-template-columns:1.3fr 1fr}.inspection.unhappy{color:#6b4934}.portrait.unhappy{filter:saturate(.7)}
@media(max-width:749px){.reaction-panel{grid-template-columns:1fr 1fr 1.35fr}.reaction-panel span{gap:4px}.reaction-panel b{font-size:12px}.order-taste b{font-size:21px}.stir-station{padding:11px 10px 3px}.mix-controls small{font-size:11px}}
/* Short landscape/high-zoom screens need the full page to scroll. */
@media(max-width:749px) and (max-height:540px){.bench-side{position:relative;top:auto}.recipe-amounts{position:static;top:auto}.dialog{max-height:85vh;overflow-y:auto}}
/* Trading days: controls remain readable beside the working vessel. */
.pinch-dispenser{padding:14px;border:1px solid #b99a63;background:#122e35;margin-top:12px;display:grid;gap:10px}.pinch-track{position:relative;height:60px;margin:5px 10px}.pinch-numbers{display:grid;grid-template-columns:repeat(7,1fr);height:100%;align-items:end;text-align:center}.pinch-numbers span{border-left:1px solid #947c52;font-size:24px;padding:5px 0}.pinch-numbers span:last-child{border-right:1px solid #947c52}.pinch-track i{position:absolute;top:0;color:#f0c575;transform:translateX(-50%);font-style:normal;font-size:21px;animation:pinch-pulse .8s ease-in-out infinite alternate}.pinch-release{min-height:58px;touch-action:none;background:#74562e;color:#fff4dd}.herb.selected{outline:2px solid #efd29c;outline-offset:2px}.pinch-dispenser small{font-size:12px}.market-list{display:grid;gap:10px}.market-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #8c795a;padding:12px 0}.market-list small{display:block}.market-list button{min-height:48px}.purse{padding:16px;border:1px solid #b99a63}.customer-verdict{display:flex;justify-content:center;gap:10px;margin:20px 0}.customer-verdict span{font-size:24px;opacity:.3;filter:grayscale(1)}.customer-verdict .chosen{font-size:36px;opacity:1;filter:none}.dialog{max-height:85dvh;overflow-y:auto}.stir-zone{transition:none!important}@keyframes pinch-pulse{to{opacity:.6}}.reduced .pinch-track i{animation:none}@media(max-width:749px){.bench-side{position:relative!important;top:auto!important}.recipe-amounts{position:relative!important;top:auto!important}.pinch-dispenser{scroll-margin-bottom:20px}}
.pinch-dispenser{color:#f4e7c9}.pinch-dispenser small{color:#e0d2b2}.pinch-numbers{color:#f4e7c9}.dialog-body{line-height:1.6;margin:16px 0}

/* A visible customer clock throughout pouring, dispensing and stirring. */
.service-clock{position:sticky;top:0;z-index:40;display:grid;grid-template-columns:1fr auto;gap:2px 18px;padding:9px 18px 6px;background:#183e44;color:#f8ecd0;box-shadow:0 3px 8px #0004;border-bottom:1px solid #c4a574;align-items:center}.service-clock span{font-size:19px}.service-clock b{font-size:29px;line-height:1.1;font-variant-numeric:tabular-nums}.clock-track{grid-column:1/-1;height:4px;background:#0d282e;margin-top:4px}.clock-track i{display:block;height:100%;background:#dfc08b;width:100%}.service-clock.urgent{background:#743c2b;color:#fff2d9}.service-clock.urgent .clock-track i{background:#ffda98}.bench-side{top:68px}.customer-response{display:grid;justify-items:center;gap:3px;margin:0 auto 14px}.customer-expression{width:156px;height:156px;border:2px solid #b89560;border-radius:50%;background:#203d3d url('assets/art/customer-reactions-v1.webp') no-repeat;background-size:500% 600%;box-shadow:0 4px 14px #3e34252b}.customer-response b{font-family:ApothecaryHead,serif;font-weight:400;font-size:24px;margin-top:7px}.customer-response small{color:#756448}.inspection.accepted{background:#eee2c3;color:#684c24;border-color:#b39153}.dialog.accepted{border-color:#b39153}.dialog h2{margin-top:8px}.service-clock~.game-layout .recipe-amounts{scroll-margin-top:80px}@media(max-width:749px){.service-clock{padding:8px 12px 6px}.service-clock span{font-size:17px}.service-clock b{font-size:26px}.customer-expression{width:140px;height:140px}}@media(prefers-reduced-motion:reduce){.pinch-track i{animation:none}}

.modal-shade{z-index:80}

.result-faces{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.result-faces .customer-expression{width:128px;height:128px}.result-panacea .result-expression{--pw:128px;height:128px;border-bottom:1px solid #b89560}.result-faces .customer-response{margin-bottom:4px}.result-faces .customer-response b{font-size:22px}.result-faces small{font-size:14px}.pour-card:disabled .hold-label{color:#d8c29b}@media(max-width:420px){.result-faces{gap:10px}.result-faces .customer-expression{width:105px;height:105px}.result-panacea .result-expression{--pw:105px;height:105px}.dialog{padding:20px 16px}}


/* Keep touch game controls out of the native selection/copy callout. */
button,button *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

.header-actions{display:flex;align-items:center;gap:.3rem;flex-wrap:wrap;justify-content:flex-end}html:fullscreen,html:-webkit-full-screen{overflow:auto;background:#102c2e}

.host-line a{color:inherit;text-decoration:underline;text-underline-offset:.2em}.order-check{font-size:.85em;margin-top:1rem;text-align:left}.order-check summary{cursor:pointer}.order-check p{margin:.4em 0}

/* Beta legibility: retain parchment in browsers that automatically darken pages. */
html,body{color-scheme:light!important}
html{background:#eee4ce}
body{background-color:#eee4ce}
/* Each displayed pinch value occupies an equal, readable position. */
.pinch-numbers{align-items:stretch;font-variant-numeric:tabular-nums}
.pinch-numbers span{display:flex;align-items:center;justify-content:center;min-width:0;padding:12px 1px 4px;border-left-color:#d2b783;font-size:clamp(21px,5vw,27px);font-weight:700;color:#fff0cf}
.pinch-numbers span:last-child{border-right-color:#d2b783}
.pinch-track{height:68px}
.pinch-track i{color:#ffe09c;text-shadow:0 1px 3px #000,0 0 5px #000}
.pinch-release{color:#fff5df;background:#77562e;border:1px solid #d8b77e}
