@font-face{font-family:BrandDisplay;src:url('./assets/display.otf')}@font-face{font-family:BrandBody;src:url('./assets/body.otf')}
:root{color-scheme:dark;font-family:BrandBody,Arial,sans-serif;background:#211916;color:#f4e6c8}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0,#533027,transparent 65%),#211916}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #987353;background:#342923;border-radius:5px}button:hover{border-color:#efc67e;background:#49342b}button:focus-visible,a:focus-visible{outline:3px solid #f2c572;outline-offset:3px}button:disabled{opacity:.55;cursor:default}a{color:#e2c7a3;text-decoration:none}a:hover{color:#fff1cd}.tapper{max-width:1180px;margin:auto;padding:0 20px max(12px,env(safe-area-inset-bottom))}.topbar{height:54px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.topbar button{padding:6px 15px}.brand{font:italic bold 20px Georgia,serif}.brand span{font:9px BrandBody,Arial,sans-serif;letter-spacing:2px;color:#be9b7a;margin-left:14px}.cabinet{border:1px solid #79503b;border-radius:10px;background:#2d211c;box-shadow:0 16px 60px #08060499;overflow:hidden}.marquee{padding:14px 30px;display:flex;justify-content:space-between;align-items:center;background:repeating-linear-gradient(92deg,#642d31 0,#642d31 35px,#602b2e 37px,#642d31 39px);border-bottom:3px solid #b08753}.eyebrow{font-size:9px;letter-spacing:3px;color:#dfbc88}h1{font:normal 43px BrandDisplay,Georgia,serif;letter-spacing:1px;margin:1px 0 0;text-shadow:2px 3px #30191b}h1 i{font-style:normal;color:#f2c572}.marquee p{text-align:right;font:italic 16px Georgia,serif;line-height:1.6;margin:0}.marquee p span{font:8px BrandBody,Arial,sans-serif;letter-spacing:2px;color:#d4b195}.hud{display:flex;justify-content:space-between;align-items:center;padding:10px 27px;background:#221b18;gap:24px}.hud>div>span{display:block;font-size:9px;letter-spacing:2px;color:#c0a083}.hud strong{font-size:27px;font-variant-numeric:tabular-nums}.shift-clock{flex:1;max-width:440px;text-align:center}.shift-clock span{font-size:8px!important}.shift-clock small{font-size:10px;color:#cbb08d}.hud progress{display:block;width:100%;height:5px;margin:7px 0 4px;border:0;border-radius:10px;overflow:hidden;background:#4d3930}.hud progress::-webkit-progress-bar{background:#4d3930}.hud progress::-webkit-progress-value{background:#d7aa63}.hud progress::-moz-progress-bar{background:#d7aa63}.lives{text-align:right;min-width:102px}.lives strong{color:#f2c572;font-size:23px;letter-spacing:3px}.stage{position:relative;height:min(49vw,530px);min-height:320px;isolation:isolate;background:#4a3027}canvas{display:block;width:100%;height:100%}.lane-targets{position:absolute;inset:0;display:grid;grid-template-rows:repeat(4,1fr);padding-top:11%;padding-bottom:3%;pointer-events:none}.lane-targets button{pointer-events:auto;touch-action:none;align-self:stretch;width:78px;border:0;border-radius:0;background:transparent;position:relative;display:flex;align-items:center;justify-content:center}.lane-targets button b{border:1px solid #b1885a;color:#e9cca2;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;background:#34251f}.lane-targets button[aria-pressed=true] b{background:#f2c572;color:#39221b;box-shadow:0 0 16px #e9ab4833}.lane-targets button span{display:none}.overlay{position:absolute;inset:0;z-index:3;background:#21150fc9;display:grid;place-items:center;backdrop-filter:blur(4px);padding:12px}.overlay[hidden]{display:none}.menu{width:min(540px,96%);text-align:center;padding:25px 35px;background:radial-gradient(ellipse at top,#593832,#30231f);border:1px solid #b18a5e;box-shadow:0 8px 30px #0007;border-radius:7px}.menu h2{font:normal 31px BrandDisplay,Georgia,serif;line-height:1.15;color:#fff0cf;margin:12px 0}.menu p{font-size:12px;line-height:1.7;color:#dac4a4;margin:12px auto;max-width:390px}.mini-instructions{display:flex;gap:15px;text-align:left;margin:18px 0}.mini-instructions span{font-size:11px;flex:1;line-height:1.4}.mini-instructions b{display:block;font:italic 23px Georgia,serif;color:#e7b968;margin-bottom:3px}.mini-instructions small{display:block;font-size:9px;color:#bfa88e;margin-top:4px}.primary{background:#a34238;border-color:#e5ac73;padding:12px 36px;font-weight:bold;box-shadow:0 3px #1f1512;min-width:200px}.primary:hover{background:#b75344}.menu>small{display:block;font-size:10px;color:#c1a989;margin-top:14px}.menu .result{font-size:18px;color:#efc67e}.message{height:35px;display:flex;align-items:center;justify-content:center;font-size:12px;background:#3b2921;border-top:1px solid #694433;color:#eed6b2;padding:0 12px;text-align:center}.controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;background:#271d19}.keyboard{font-size:10px;color:#bda78d;line-height:1.9;max-width:300px}.keyboard b{color:#f0dbbb;margin-right:4px}.keyboard b:nth-of-type(2){margin-left:12px}.keyboard span{display:block}.serve{position:relative;overflow:hidden;touch-action:none;user-select:none;min-width:210px;min-height:57px;background:#8b3534;border:1px solid #e8bb7a;box-shadow:0 3px #140e0b;display:grid;place-content:center;gap:2px}.serve>span{letter-spacing:3px;font-weight:bold;position:relative;z-index:1}.serve small{font-size:9px;color:#f0cfac;position:relative;z-index:1}.serve i{position:absolute;bottom:0;left:0;height:3px;background:#f2c572;width:100%;transform-origin:left}.serve:active{transform:translateY(2px)}.sound{display:flex;gap:7px}.sound button{font-size:10px;padding:9px}.sound button[aria-pressed=false]{color:#a8917b;background:#211916}footer{display:flex;justify-content:space-between;color:#a98b6d;padding:13px 4px;font-size:10px}footer b{color:#e2c19b;margin-left:5px}body.in-play{overscroll-behavior:none}.in-play .stage{touch-action:none}
@media(min-width:1100px) and (max-height:850px){.topbar{height:40px}.marquee{padding-top:8px;padding-bottom:8px}.stage{height:calc(100dvh - 285px);min-height:280px}h1{font-size:36px}.menu{padding:17px 30px}.menu h2{font-size:27px}.mini-instructions{margin:12px 0}}
@media(max-width:650px){.tapper{padding:0 7px max(7px,env(safe-area-inset-bottom))}.topbar{height:42px;font-size:10px}.brand{font-size:16px}.brand span{display:none}.marquee{padding:10px 15px}.marquee h1{font-size:32px}.eyebrow{font-size:7px;letter-spacing:2px}.marquee p{font-size:12px}.marquee p span{display:none}.hud{padding:9px 12px;gap:12px}.hud strong{font-size:23px}.hud>div>span{font-size:8px;letter-spacing:1px}.lives{min-width:82px}.lives strong{font-size:19px}.shift-clock span{letter-spacing:0!important}.stage{height:clamp(285px,calc(100dvh - 302px),600px);min-height:260px}.lane-targets{padding-top:10%;padding-bottom:4%;width:58px}.lane-targets button{width:58px}.lane-targets button b{width:30px;height:30px;font-size:13px}.controls{padding:10px;gap:9px;display:grid;grid-template-columns:1fr 1.2fr}.keyboard{display:none}.sound{grid-column:1;grid-row:1;display:grid;gap:5px}.sound button{padding:7px 3px;font-size:10px}.serve{grid-column:2;grid-row:1;min-width:0;min-height:69px}.message{height:40px;font-size:10px;padding:0 8px}.menu{padding:18px 16px;width:96%}.menu h2{font-size:26px}.menu p{font-size:11px;line-height:1.5}.mini-instructions{gap:9px;margin:12px 0}.mini-instructions b{font-size:19px}.mini-instructions span{font-size:10px}.mini-instructions small{font-size:8px}.menu>small{font-size:9px;margin-top:10px}.primary{padding:10px 20px}footer{font-size:8px;padding:8px 2px}.hud small{font-size:8px}.menu .result{font-size:17px}}
@media(max-height:500px) and (orientation:landscape){.topbar{height:30px}.marquee{display:none}.hud{padding:4px 15px}.hud strong{font-size:19px}.stage{height:calc(100dvh - 173px);min-height:180px}.controls{padding:6px 12px}.serve{min-height:42px}.message{height:25px;font-size:10px}footer{display:none}.menu{padding:10px 20px;max-width:580px}.menu h2{font-size:22px;margin:5px}.menu h2 br{display:none}.menu p{font-size:10px;margin:6px auto}.mini-instructions{margin:6px 0}.mini-instructions b{display:none}.menu>small{margin-top:5px}.primary{padding:6px 24px}.lane-targets{padding-top:8%;padding-bottom:2%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.brand{display:flex;align-items:center}.brand img{display:block;width:110px;height:42px;object-fit:contain}.lane-targets button{width:100%;justify-content:flex-start;padding-left:24px}.lane-targets{width:100%}.overlay{overflow:hidden}.menu{max-height:100%;overflow-y:auto}.in-play{overflow:hidden}.in-play .tapper{height:100dvh;display:flex;flex-direction:column}.in-play .topbar,.in-play footer{flex-shrink:0}.in-play .cabinet{display:flex;flex-direction:column;flex:1;min-height:0}.in-play .marquee,.in-play .hud,.in-play .controls,.in-play .message{flex-shrink:0}.in-play .stage{flex:1;height:auto;min-height:0}
@media(max-width:650px){.brand img{width:95px;height:35px}.lane-targets button{width:100%;padding-left:14px}}
/* The ready color reinforces the full mug without adding another control. */
.serve[data-ready=true]{background:#426453;border-color:#d4e6b7}.serve[data-ready=true] i{background:#c8e4b9}
/* Compact the cabinet chrome so the room, traffic, and touch controls lead. */
.topbar{height:40px}.brand img{width:100px;height:34px}.marquee{padding:8px 22px}.marquee h1{font-size:32px}.marquee .eyebrow{display:none}.marquee p{font-size:13px}.marquee p span{display:none}.hud{padding:7px 22px}.hud strong{font-size:24px}.controls{padding-top:9px;padding-bottom:9px}.message{min-height:40px;height:auto;padding-top:7px;padding-bottom:7px;line-height:1.4}.in-play footer{padding-top:8px;padding-bottom:8px}.lane-targets button b{box-shadow:0 2px 5px #120d0b99}.lane-targets button[aria-pressed=true] b{border-color:#fff0c0;box-shadow:0 0 0 3px #d6a75d33,0 3px 7px #110b0899}
@media(max-width:650px){.topbar{height:38px}.marquee{padding:7px 14px}.marquee h1{font-size:28px}.marquee p{font-size:11px}.hud{padding:7px 12px}.hud strong{font-size:21px}.lives strong{font-size:18px}.lane-targets button{padding-left:8px}.message{min-height:46px;font-size:11px}.controls{padding:10px}.serve{min-height:69px}.brand img{width:90px;height:32px}}
@media(max-height:500px) and (orientation:landscape){.topbar{height:30px}.marquee{display:none}.hud{padding:4px 12px}.message{min-height:28px;font-size:10px;padding:4px 8px}.controls{padding:6px 12px}.serve{min-height:42px}.brand img{height:27px}}
/* Local Tapper personal bests */
.score-values{display:flex;align-items:center;gap:12px}.score-values small{display:flex;flex-direction:column;gap:2px;color:#d8bb91;font-size:12px;line-height:1.15}.score-values small span{font-size:8px;letter-spacing:1px}.score-values small b{font-variant-numeric:tabular-nums}.shift-clock{min-width:0}.menu .record-celebration{color:#f2c572;font-size:17px;font-weight:bold;letter-spacing:1px}.menu .record-celebration[hidden]{display:none}
@media(max-width:650px){.score-values{gap:7px}.score-values small{font-size:10px}.score-values small span{font-size:7px}.hud{column-gap:9px}.hud .lives{min-width:72px}}
