/* Coffee Rush — illustrated café. Presentation only; station geometry and game state stay in the game engine. */
:root{--ink:#263f32;--forest:#254e3e;--cream:#fbf3e3;--gold:#d6ad66;--muted:#6c7560;--line:#bba788}
html{background:#ddd0b7}
body{color:var(--ink);background:radial-gradient(ellipse at 15% 10%,#fff5da99,transparent 45%),repeating-linear-gradient(90deg,#c5b59a12 0 1px,transparent 1px 90px),#ded3bf;font-family:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(#efe5d529,#d9c8a999),url('cafe-scene.svg') center/cover;opacity:.38}
#app{isolation:isolate;background:var(--cream);color:var(--ink);box-shadow:0 20px 80px #3f3b2b33;border:1px solid #c7b99c;max-width:900px}
header{background:linear-gradient(110deg,#37604b,#234836);border-bottom:1px solid #71856a;color:#fff3d9;padding:12px 18px}
header h1{font:italic 700 31px Georgia,serif;letter-spacing:-1.5px;text-shadow:0 2px 1px #0e2c2a33}
header small{font-size:8px;letter-spacing:2.6px;color:#d2d5b8}
header button{background:#ffffff0b;border-color:#9aac855c;border-radius:50%;color:#f3e7c9;box-shadow:inset 0 1px #ffffff1a}
.stats{background:#224432;color:#e1e2c8;font-size:11px;font-weight:500;letter-spacing:.1px;padding:7px 18px}
.scoreboard{background:#faf3e2;color:var(--ink);border-bottom:1px solid #d9c9ab;padding:8px 18px;box-shadow:inset 0 1px #fffcf3}
.scoreboard span{color:#66735b;font-size:9px;text-transform:uppercase;letter-spacing:1px;font-weight:700}
.scoreboard strong{color:#284b36;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.scoreboard .best strong{color:#9c7440}
.scoreboard #award{color:#68705b;text-transform:none;letter-spacing:0;font-weight:500}
.tickets{background:linear-gradient(#50664b,#40573f);padding:11px 12px 9px;gap:9px;box-shadow:inset 0 2px 3px #203c2933}
.ticket{background:#eadfc4;border:2px solid #cdbf9e;border-radius:4px 4px 8px 8px;color:#314734;box-shadow:0 4px 4px #16302126,inset 0 3px #fff8e1;position:relative;transition:border-color .15s,background .15s;overflow:hidden;padding:7px 9px}
.ticket:after{content:"";position:absolute;top:0;left:8px;right:8px;border-top:1px dashed #b6aa8b;opacity:.65;pointer-events:none}
.ticket b{font-family:Georgia,serif;letter-spacing:-.2px;font-size:15px}
.ticket span{color:#5c694f}
.ticket[aria-pressed=true]{background:#fff8e6;border-color:#dcad5b;box-shadow:0 3px 7px #19322044,inset 0 3px #edc776}
.ticket.ready{border-color:#8db083}
.ticket .patience{background:#d7ceb1;border-radius:2px;overflow:hidden}
.patience i{background:#709366;border-radius:2px}
.working{background:#fdf8eb;border-bottom:1px solid #d1c3a8;padding:9px 16px;box-shadow:0 2px 6px #705a3220;position:relative;z-index:1}
.working strong{font:700 17px Georgia,serif;letter-spacing:-.2px;color:#36523c}
.working p{color:#68745a;line-height:1.4}
.pickup-note{color:#8b6e3c!important}
.bar{position:relative;padding:12px 14px 7px;background:linear-gradient(180deg,#e9dfc7 0%,#f4eddc 44%,#d2b084 44%,#bf9269 100%);box-shadow:inset 0 1px #fff9e8}
.bar:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:repeating-linear-gradient(0deg,transparent 0 43px,#b4ae911e 43px 44px),repeating-linear-gradient(90deg,transparent 0 87px,#b4ae911e 87px 88px)}
.machines{position:relative;z-index:0;gap:14px}
.station[data-drop="grinder"]{background:linear-gradient(#f6eddb55,#f5eedb22);border-radius:10px}
.machine{background:linear-gradient(105deg,#6b8870,#355f49 18%,#284e3a 75%,#57765a);border:1px solid #2e503c;border-top:6px solid #bdcbb0;border-bottom:8px solid #8fa188;border-radius:16px 16px 7px 7px;box-shadow:0 7px 0 -2px #664f3240,0 12px 13px -7px #503d2d80,inset 0 2px 1px #ffffff2a;padding:5px 10px 0;position:relative}
.machine:before{content:"";position:absolute;top:20px;left:7px;right:7px;border-top:1px solid #a3b39230;pointer-events:none}
.brand{font-size:8px;letter-spacing:2.5px;color:#d3ce9c;font-weight:700;flex-basis:18px;text-shadow:0 1px #172d26}
.groups{gap:12px}
.brew{border:1px solid #acba9c;background:linear-gradient(#f8f3dc,#ccc9ad);box-shadow:0 2px 0 #173c2b,inset 0 1px #fffff2;border-radius:5px;color:#3c563d;letter-spacing:1px;font-size:9px;transition:filter .15s}
.brew:active{box-shadow:inset 0 2px 3px #37533c44}
.head{background:linear-gradient(90deg,#7d9784,#ccd5bd 45%,#9caf96);border-radius:4px 4px 7px 7px;margin-top:4px}
.group-tray{background:linear-gradient(#163f2b66,#163b2c22);border-radius:4px;padding:1px 3px}
.group .dock{background:#112f2522;border-color:#9eb29455;border-style:solid;box-shadow:inset 0 1px 4px #153b302b}
.group .dock:empty:after{color:#c4cfad}
.groupStatus{color:#d7dfbd;font-size:10px;padding:2px 0}
.progress{background:#2b45313d}
.progress i{background:#e9bf70;box-shadow:0 0 5px #f4d9a144}
.shot-glass{background:linear-gradient(#f4f3df,#cad7bd);color:#36543d;border:1px solid #b6c5aa;border-radius:5px;box-shadow:0 2px 2px #0e31242e}
.shot-glass:disabled{background:#193b2c16;border:1px solid #7e99714d;color:#b8caa4;box-shadow:none}
.filterrest{background:linear-gradient(#e9dbc1,#d9c4a0);border:1px solid #b49b70;border-radius:7px;box-shadow:inset 0 1px #fff3d5,0 3px 5px #76522c22;margin-top:12px}
.rest-label{font-size:8px;letter-spacing:1.2px;font-weight:700;color:#715d3c;line-height:1.6}
.filterrest .dock{border:0;background:repeating-linear-gradient(90deg,#7d785a0a 0 2px,transparent 2px 5px);box-shadow:none}
.dock{border-color:#836b4359;border-radius:5px;box-shadow:inset 0 1px 3px #8f68351a}
.dock:empty:after{color:#796d50;font-size:8px}
.portafilter{background:linear-gradient(#fffaeb,#e5d8ba);border-color:#b8aa8b;border-radius:6px;box-shadow:0 2px 3px #4e3c2b21,inset 0 1px #ffffee;color:#4c573c}
.portafilter.black{background:linear-gradient(#3b4d3c,#26382c);border-color:#1f3526;color:#f0e6c7;box-shadow:0 2px 3px #4e3c2b33,inset 0 1px #a7b69740}
.portafilter.black{--handle:#233b2d}.portafilter.white{--handle:#fff7e7}
.portafilter .pf-text{line-height:1.25;font-weight:500}
.portafilter .pf-text b{font-weight:750}
.portafilter[aria-pressed=true],.object[aria-pressed=true],.shot-glass[aria-pressed=true]{outline:2px solid #ffe0a2;outline-offset:2px;box-shadow:0 0 0 4px #936a32}
.tools{padding-top:9px;gap:4px 8px;position:relative;z-index:0}
.object{color:#39482f;transition:background .15s;isolation:isolate}
.tools>.object,.tools>.station,.tools>.pitcher-home{border-radius:9px;background:linear-gradient(#fff5df36,#fff5df09);box-shadow:inset 0 1px #fff7df26}
.object svg{filter:drop-shadow(0 3px 2px #704b2824)}
.object b{font-size:11px;font-weight:750;text-shadow:0 1px #f2ddb966}
.object em{color:#665c43;font-size:9px;margin-top:2px}
.object:active{background:#fff4db44}
.pitcher-home:empty:after{color:#6a6048}
.finishing{background:#f1e3c9;border-top:1px solid #a9895d;border-bottom:1px solid #d6c6a5;box-shadow:inset 0 2px #fcf2db;color:#6e6146;padding:4px 14px}
.finishing>span{letter-spacing:1.5px;font-size:8px;font-weight:750}
.lid-stack{color:#586045}
.lid-stack b{font-size:10px;font-weight:600}
.finishing a{color:#657354;font-size:10px;text-underline-offset:3px}
.handoff{background:linear-gradient(#faf3e2,#ede1c7);border-top:0;box-shadow:inset 0 -1px #fff9e6;padding:8px 14px;gap:12px}
.cupbench{background:linear-gradient(#d8d9be99,#e4e3cc);border:1px solid #a9b190;border-radius:8px;box-shadow:inset 0 2px 5px #65794b18;padding:5px 8px;min-height:67px}
.cupbench:empty:after{content:'YOUR CUP COUNTER';font-size:8px;letter-spacing:1.3px;color:#6f7b59;font-weight:650}
.cup-button{color:#56623f}
.cup-button[aria-pressed=true]{outline:2px solid #b08a49;outline-offset:2px;background:#fff5d642}
.cup-button .cup,.delivery .cup{background:linear-gradient(90deg,#dbd0b4,#fff9e8 30%,#f8edda 70%,#c6b898);border-color:#b3a78a;box-shadow:inset 2px 0 #fffbed,0 2px 2px #5a503b22;border-radius:3px 3px 8px 8px}
.cup:after{content:'≈';background:#3f654b;color:#f6e6bd;box-shadow:0 0 0 1px #46654833;font-family:Georgia,serif}
.cup-button .cup.iced{background:linear-gradient(90deg,#9bc4b666,#f6fbec88 30%,#c2e0cb55 70%,#7eaa9155);border-color:#8caf95;box-shadow:inset 2px 0 #f8fff499}
.cup .liquid{opacity:.94}
.cup .icebits{color:#e7f4e7;text-shadow:0 1px #9abea7}
.cup-button .number{font-size:9px}
.cup-lid{background:linear-gradient(#fffae8,#d8cdb3);border-color:#b0a587;box-shadow:0 1px 2px #62492333}
.cold-lid .cup-lid{background:linear-gradient(#edf9e9,#afcebb);border-color:#8dae96}
.handoff .details{color:#728065;font-size:10px;line-height:1.45}
.handoff .details b{color:#3f563d;font-family:Georgia,serif;font-size:14px;margin-bottom:2px}
.serve{background:linear-gradient(#52714e,#365b3d);border:1px solid #2f5438;box-shadow:inset 0 1px #bdc9a766,0 3px 0 #28492f33;color:#fff1cf;border-radius:9px;min-height:59px}
.serve b{font:700 16px Georgia,serif}
.serve span{font-size:8px;color:#d9dfbd}
.status{background:#fff9ec;color:#607052;border-top:1px solid #d7c9ab;font-size:11px;border-left-width:3px}
.status.success{border-left-color:#5c8352;background:#eff1db;color:#425e37}
.status.error{border-left-color:#b06d4e;background:#fff0dc;color:#8b4b32}
footer{background:#e6dcc4;border-top:1px solid #c9bca0;color:#7c785f;padding-left:13px;padding-right:13px}
footer button{color:#506346;text-decoration:none;font-weight:700;border-radius:4px}
footer button:hover{background:#fdf4df88}
.drag-ghost{background:#fff7e7f5;border:1px solid #b4a17d;border-radius:12px;box-shadow:0 15px 30px #283e2c3b;color:#3f5439;backdrop-filter:blur(8px)}
.drag-ghost svg{filter:drop-shadow(0 4px 2px #68523433)}
button:focus-visible,a:focus-visible,.object:focus-visible,.portafilter:focus-visible{outline:3px solid #a97934;outline-offset:3px}
/* The entrance is a bright illustrated café; score/paused dialogs share its paper palette. */
#overlay{background:linear-gradient(145deg,#e8dfc9fa,#d3c6aafa);color:var(--ink);padding:24px;align-items:safe center;backdrop-filter:blur(7px)}
.dialog{max-width:430px;width:100%;padding:22px 26px 16px;background:#fff8e9;border:1px solid #d0bd96;border-radius:18px;box-shadow:0 18px 55px #57614029,inset 0 1px #fffdf6;overflow:visible}
.dialog:before{content:"";display:block;height:150px;margin:-22px -26px 22px;background:url('cafe-scene.svg') center/cover;border-radius:17px 17px 0 0;border-bottom:4px solid #a2784b;pointer-events:none}
.dialog>small{font-size:9px;letter-spacing:2.5px;font-weight:700;color:#8a774e}
.dialog h2{font:italic 700 38px/1.06 Georgia,serif;letter-spacing:-1.5px;color:#33583f;margin:12px 0}
.dialog p{color:#687259;font-size:13px;line-height:1.55;margin:12px 0}
.dialog button{background:#f5ebd5;border:1px solid #b7b397;border-radius:8px;color:#3a563c;padding:13px;box-shadow:inset 0 1px #fffdf3;font-size:12px}
.dialog button:hover{background:#eee0c3}
.dialog .primary{background:linear-gradient(#53744e,#3c603e);border:1px solid #355736;color:#fff1ce;box-shadow:inset 0 1px #b9c6a255,0 3px 0 #1e3d2420}
.dialog .primary:hover{background:#476c45}
.dialog .fine,.dialog .record-note{color:#7e8065;font-size:10px;line-height:1.6}
.dialog .intro-records{color:#49633e;font-size:11px;font-weight:650;padding:8px;background:#e9ecd7;border-radius:5px}
.dialog a{color:#826237}
.dialog [data-leaderboard]{border-color:#c1a574;background:#f5e8cb}
.score-help{background:#eee8d5!important;border-color:#d4c9ab!important;color:#5b684c!important}
.score-help summary{color:#586544!important}
.score-help ul,.score-help p{color:#6a7359!important}
/* The public board uses the same papers, brass, and green enamel. */
.lb-dialog{background:#fff7e7;color:#344c36;border:1px solid #c4b18e;box-shadow:0 25px 80px #16372655}
.lb-dialog::backdrop{background:#274b3b9c;backdrop-filter:blur(3px)}
.lb-panel h2,.lb-page h1,.lb-page #leaderboardPage h2{color:#36573d}
.lb-panel p,.lb-page p{color:#69745a}
.lb-dialog button,.lb-page button{background:#f5ebd4;border-color:#c3b493;color:#4e6345}
.lb-filters button[aria-pressed=true]{background:#426843;color:#fff2cf;border-color:#426843}
.lb-dialog th,.lb-dialog td,.lb-page th,.lb-page td{border-bottom-color:#d6ccb1}
.lb-dialog caption,.lb-page caption{color:#7c8065}
.lb-submit{border-top-color:#d6ccb1}
.lb-page{background:#e4dbc5;color:#344c36}
.lb-page main{position:relative;background:#fff7e7;padding:28px;border:1px solid #cbb996;border-radius:16px;box-shadow:0 15px 50px #4863411a}
.lb-page a{color:#806737}
.lb-page .play{background:#426843;color:#fff2cf}
@media(min-width:650px){body{padding:16px}#app{border-radius:18px;min-height:calc(100svh - 32px)}.object b{font-size:12px}.tools svg{height:54px}}
@media(min-width:650px) and (max-height:850px){body{padding:10px}#app{min-height:740px;height:auto}.bar{min-height:340px}.machines{height:137px;min-height:137px}.tools{grid-template-rows:repeat(2,minmax(76px,1fr))}.tools svg{height:41px}.brand{flex-basis:14px}.groupStatus{font-size:9px}.ticket b{font-size:13px}.working{padding:6px 13px}.working strong{font-size:15px}.tickets{padding:8px}.filterrest{margin-top:9px}.dialog:before{height:125px}}
@media(max-width:649px){#app{border:0;border-radius:0}header{padding:8px 12px}header h1{font-size:27px}.stats{padding:6px 12px;font-size:10px}.scoreboard{padding:7px 12px}.ticket b{font-size:13px}.ticket{padding:5px 7px}.tickets{padding:8px;gap:7px}.working{padding:7px 12px}.working strong{font-size:14px}.bar{padding:10px 8px 5px}.machines{gap:8px}.machine{border-top-width:5px;border-radius:12px 12px 5px 5px;padding:4px 6px 0}.brand{flex-basis:14px;font-size:6px;letter-spacing:1.5px}.groups{gap:6px}.groupStatus{font-size:8px;padding:0}.group-tray{padding:0 1px}.head{margin-top:2px}.filterrest{margin-top:9px}.rest-label{font-size:7px;letter-spacing:.8px}.tools{gap:3px;padding-top:7px}.object b{font-size:10px}.object em{font-size:8px}.tools>.station,.tools>.object,.tools>.pitcher-home{border-radius:6px}.finishing{padding:3px 8px;gap:8px}.finishing>span{font-size:7px;letter-spacing:1px}.finishing a{font-size:9px}.handoff{padding:7px 8px;gap:7px}.handoff .details b{font-size:12px}.handoff .details{font-size:9px}.serve b{font-size:14px}.cupbench{padding:4px}.cupbench:empty:after{font-size:7px;letter-spacing:.7px}.status{font-size:10px}.dialog{padding:20px;max-width:390px}.dialog:before{margin:-20px -20px 19px;height:126px}.dialog h2{font-size:35px}#overlay{padding:18px}.lb-page main{padding:19px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Wide screens give the order rail its own space, keeping the entire counter in view. */
@media(min-width:1000px) and (min-height:600px) and (max-height:900px){
 #app{max-width:1100px;height:calc(100svh - 32px);min-height:568px;display:grid;grid-template-columns:230px minmax(0,1fr);grid-template-rows:60px 30px 48px minmax(200px,1fr)46px 48px 30px;overflow:hidden}
 header{grid-area:1/1/2/3;padding:8px 20px}
 header h1{font-size:29px}
 header small{font-size:7px}
 .stats{grid-area:2/1;padding:4px 10px;font-size:8px;align-items:center;gap:5px}
 .scoreboard{grid-area:3/1;padding:7px 12px;gap:12px;align-items:center}
 .scoreboard>div{display:flex;flex-direction:column;gap:1px}
 .scoreboard span{font-size:7px;letter-spacing:.7px}
 .scoreboard strong,.scoreboard .best strong{font-size:19px;line-height:1}
 .scoreboard #award{display:none}
 .tickets{grid-area:4/1;flex-direction:column;min-height:0;padding:12px;overflow:auto;gap:10px}
 .ticket{flex:0 0 71px;width:100%;padding:10px}
 .ticket b{font-size:15px}
 .ticket span{font-size:11px}
 .ticket .patience{margin-top:8px}
 .working{grid-area:5/1;min-height:0;overflow:auto;padding:5px 10px}
 .working strong{font-size:12px;line-height:1.1}
 .working p{font-size:8px;margin-top:2px}
 .status{grid-area:6/1;min-height:0;font-size:10px;padding:5px 9px;overflow:auto}
 footer{grid-area:7/1;padding:0 8px;min-height:0}
 footer span{font-size:7px}
 footer button{font-size:9px;min-height:28px;white-space:nowrap}
 .bar{grid-area:2/2/5/3;min-height:0;overflow-y:auto;padding:16px 18px 10px;border-left:1px solid #c5b18b}
 .machines{height:156px;min-height:156px;grid-template-columns:124px minmax(0,1fr)}
 .station[data-drop="grinder"]>.object svg{height:72px!important}
 .brand{flex-basis:21px;font-size:8px}
 .group .brew{min-height:30px!important}
 .group .head{flex-basis:21px;min-height:21px}
 .group .head svg{height:21px}
 .groupStatus{font-size:10px;min-height:17px}
 .shot-glass{min-height:43px}
 .shot-glass svg{height:34px}
 .filterrest{margin-top:12px;min-height:47px;padding:4px 8px}
 .filterrest .dock{min-height:34px}
 .portafilter{min-height:33px}
 .portafilter svg{height:27px}
 .portafilter .pf-text{font-size:10px}
 .tools{grid-template-rows:repeat(2,minmax(85px,1fr));flex:1;min-height:185px;padding-top:8px;gap:6px}
 .tools svg{height:47px}
 .object b{font-size:11px}
 .object em{font-size:9px}
 .station[data-drop="tamper"]>.object svg,.station[data-drop="knock"]>.object svg{height:38px}
 .tools .dock{min-height:24px}
 .finishing{grid-area:5/2;min-height:0;padding:3px 16px}
 .handoff{grid-area:6/2/8/3;min-height:0;padding:6px 16px;flex-wrap:nowrap}
 .cupbench{max-width:none;min-height:62px}
 .cup-button .cup{height:41px}
 .cup-button{min-height:59px}
 .serve{min-width:145px;min-height:59px}
}

/* Preserve readability of the Academy invitation beneath the public board. */
.lb-page .academy-invitation{background:#e8ecd9;border-color:#bac6a5;color:#3f573b}
.lb-page .academy-invitation p{color:#657252}
.lb-page .academy-invitation .academy-eyebrow{color:#8b713f}
.lb-page .academy-actions .academy-membership{color:#4d683d}
.lb-page .academy-invitation .academy-reassurance{border-top-color:#b6c49f}
