@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#10141d;--panel:#191e29;--line:#ffffff12;--muted:#929aaa;--lime:#c4f564;--white:#f4f6ef;--font:'DM Sans',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white);font-family:var(--font);overflow:hidden}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:4px}button{border:0}button:hover{filter:brightness(1.12)}button:active{transform:translateY(1px)}#arena{position:fixed;inset:0;width:100%;height:100%;touch-action:none}.topbar{height:96px;position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;border-bottom:1px solid var(--line);background:#10141d90}.brand{display:flex;align-items:center;text-decoration:none;color:var(--white);font:600 26px 'Space Grotesk',sans-serif;letter-spacing:-1.3px}.brand>span:not(.brand-icon){color:var(--lime)}.brand-icon{font-size:39px;color:var(--lime);margin-right:11px}.brand sup{font:500 9px var(--font);letter-spacing:1px;padding:4px 5px;border:1px solid #454c58;border-radius:4px;color:#a0a8b8;margin-left:12px;align-self:flex-start;margin-top:9px}.top-right{display:flex;align-items:center;gap:12px}.status{font-size:10px;letter-spacing:1.4px;margin-right:15px;color:#b5c3b9}.status i,.eyebrow>span{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lime);margin-right:8px}.icon-btn{width:36px;height:36px;background:#ffffff07;color:#d1d5de;border:1px solid #ffffff18;border-radius:50%;font-size:17px}#lobby{position:relative;z-index:2;max-width:1180px;padding:56px 34px 0;margin:auto;display:grid;grid-template-columns:1.2fr 1fr;gap:32px 80px}.intro{padding-top:50px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:var(--lime)}h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(42px,5.5vw,74px);line-height:1.09;font-weight:500;letter-spacing:-4px;margin:24px 0}h1>span{color:var(--lime)}.intro>p{font-size:17px;line-height:1.8;color:#a1a8b5;margin:0}.intro-tags{display:flex;gap:23px;font-size:11px;color:#b1b7c2;margin-top:39px}.intro-tags span:first-child{color:var(--lime)}.play-card{background:linear-gradient(140deg,#222733f2,#181d27f5);border:1px solid #ffffff18;border-radius:22px;padding:25px 30px 16px;box-shadow:0 25px 80px #0003}.card-heading{display:flex;justify-content:space-between;align-items:center}.card-heading .eyebrow{color:#b5bcc8;font-size:9px;letter-spacing:1.5px}.small-tag{font-size:8px;letter-spacing:1px;padding:5px 7px;border:1px solid #ffffff15;border-radius:4px;color:#9099a9}.cell-preview{height:143px;display:flex;justify-content:center;align-items:center;position:relative}#avatar{height:94px;width:94px;background:var(--lime);border:4px solid #e4ffab;border-radius:46% 54% 53% 47%;box-shadow:0 0 65px #c4f56420,inset -10px -12px 25px #0002;display:grid;place-items:center;color:#253614;font-weight:700;font-size:17px;position:relative;animation:bob 5s ease-in-out infinite}#avatar i,#avatar b{width:6px;height:6px;background:#34431d;border-radius:50%;position:absolute;top:29px;left:31px}#avatar b{left:47px}#avatar span{padding-top:28px;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.orbit{width:8px;height:8px;position:absolute;border-radius:50%;background:#b998fb;left:20%;top:28%}.orbit.two{width:5px;height:5px;background:#ed9e75;left:77%;top:68%}.orbit.three{width:6px;height:6px;background:#6cd6cc;left:81%;top:20%}form>label{display:block;color:#bec4d0;font-size:11px;margin:5px 0 9px}input,select{width:100%;background:#11151f;border:1px solid #ffffff13;border-radius:8px;color:var(--white);padding:13px 14px;font-size:13px}input{margin-bottom:16px}input::placeholder{color:#626d80}.colors{display:flex;gap:12px;margin:5px 0 21px}.swatch{width:24px;height:24px;border-radius:50%;border:3px solid transparent;background:var(--color);background-clip:padding-box;padding:0}.swatch[aria-pressed=true]{outline:1px solid var(--color);outline-offset:3px}.mode-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:16px}.mode-row label{font-size:11px;color:#b6becc}.mode-row select{width:70%;font-size:11px;padding:10px}.play-button{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--lime);color:#1c2b0c;border-radius:8px;font-size:14px;font-weight:700;padding:17px 20px}.play-button span{font-size:23px;line-height:14px}.card-foot{text-align:center;font-size:9px;color:#838c9d;margin:16px 0 1px}.howto{grid-column:1/-1;display:flex;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0;gap:45px;margin-top:15px}.howto>div{display:flex;align-items:center;gap:13px;flex:1}.key{display:grid;place-items:center;border:1px solid #ffffff25;box-shadow:0 3px #ffffff07;border-radius:6px;height:38px;min-width:38px;color:#c8cfda;font:14px 'Space Grotesk',sans-serif;background:#1a202b}.key.wide{font-size:10px;padding:0 9px}.howto p{margin:0}.howto b{font-size:11px;font-weight:500;display:block;margin-bottom:5px}.howto small{font-size:10px;color:#818b9d}footer{grid-column:1/-1;display:flex;justify-content:space-between;color:#647084;font-size:10px;padding:0 0 20px}footer strong{color:#b4bdcc;margin-left:5px}.dot-separator{margin:0 12px}body.playing .topbar{height:67px;pointer-events:none;background:linear-gradient(#10141ddd,transparent);border:0}body.playing .top-right{pointer-events:auto}body.playing .brand{font-size:21px}body.playing .brand-icon{font-size:28px}#hud{position:fixed;inset:80px 30px 20px;pointer-events:none}.score-panel{position:absolute;top:8px;left:8px;display:flex;flex-direction:column}.score-panel>span{font-size:10px;letter-spacing:2px;color:var(--muted)}.score-panel strong{font:500 42px 'Space Grotesk',sans-serif}.score-panel small{color:var(--muted);font-size:12px}.leaderboard{position:absolute;right:0;top:0;width:200px;background:#151b25dd;border:1px solid var(--line);border-radius:12px;padding:18px}.leader-title{font-size:10px;letter-spacing:1.3px;display:flex;justify-content:space-between}.leader-title span{color:#7b8699;font-size:8px}ol{padding:0;list-style:none;margin:16px 0}li.leader{display:flex;gap:9px;align-items:center;font-size:11px;padding:7px 0;color:#a3adbd}.leader .num{color:#626e81;width:12px}.leader .name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leader .pill{width:6px;height:6px;border-radius:50%}li.leader.me{color:var(--lime)}#rank{font-size:10px;color:var(--lime);border-top:1px solid var(--line);padding-top:12px}.bottom-hud{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:flex-end;justify-content:space-between}.quiet-btn{pointer-events:auto;background:#1b2230;color:#b8c2d2;border:1px solid #ffffff12;border-radius:8px;padding:12px 16px;font-size:12px}kbd{font:9px var(--font);border:1px solid #ffffff20;padding:3px 5px;border-radius:3px;margin:0 5px;color:#bcc7d7}.hints{font-size:10px;color:#8692a5;padding-bottom:12px}#minimap{border:1px solid #ffffff20;border-radius:12px;background:#141b27dd;width:120px;height:120px}.touch-actions{display:none;position:absolute;bottom:150px;right:0;gap:12px;pointer-events:auto}.touch-actions button{border-radius:50%;width:65px;height:65px;background:#252e40dd;border:1px solid #ffffff30;color:var(--lime);font-size:24px;touch-action:none}.touch-actions small{display:block;font-size:8px;color:#ccd3df}#toast{position:absolute;bottom:90px;left:50%;transform:translateX(-50%);font-size:12px;color:var(--lime);text-align:center;background:#10141dcc;border-radius:8px;padding:10px 16px;opacity:0;transition:opacity .2s}dialog{background:#1b212d;color:var(--white);border:1px solid #ffffff20;border-radius:20px;padding:35px;width:min(460px,90vw);box-shadow:0 30px 100px #0008}dialog::backdrop{background:#080d17b8;backdrop-filter:blur(8px)}dialog h2{font:500 30px 'Space Grotesk',sans-serif;letter-spacing:-1px;margin:18px 0}dialog p,dialog li{font-size:13px;color:#a7b2c4;line-height:1.8}dialog ul{padding-left:18px}dialog .quiet-btn{width:100%;margin-top:12px}dialog .play-button{margin-top:24px}.results{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.results small{font-size:9px;color:#929fb4;display:block}.results strong{display:block;font:500 28px 'Space Grotesk',sans-serif;color:var(--lime);margin-top:6px}.results>div:last-child{grid-column:1/-1}.playing #lobby{display:none}[hidden]{display:none!important}@keyframes bob{50%{transform:translateY(-5px);border-radius:52% 48% 46% 54%}}@media(min-height:900px){#lobby{padding-top:90px;row-gap:50px}.intro{padding-top:60px}}@media(max-width:800px){body:not(.playing){overflow:auto}.topbar{height:74px;padding:0 22px}#lobby{gap:26px;padding:28px 24px 0;grid-template-columns:1fr 1fr}.intro{padding-top:40px}h1{font-size:45px;letter-spacing:-2.5px}.intro-tags{flex-direction:column;gap:13px;margin-top:26px}.play-card{padding:22px}.status{font-size:8px;margin:0}.howto{gap:20px}.howto small{font-size:9px}}@media(max-width:600px){#lobby{grid-template-columns:1fr;max-width:440px}.intro{padding-top:5px}.intro h1{font-size:44px;margin:17px 0}.intro>p{font-size:14px;line-height:1.6}.intro-tags{flex-direction:row;gap:15px;font-size:9px;margin-top:18px}.play-card{padding:22px 24px}.cell-preview{height:110px}#avatar{height:82px;width:82px}.howto{gap:18px;margin-top:2px;padding:20px 0;flex-wrap:wrap}.howto>div{min-width:140px}.howto>div:first-child{flex-basis:100%}footer{font-size:8px;gap:12px}.brand{font-size:23px}.brand sup{display:none}.top-right{gap:7px}.status{font-size:7px;letter-spacing:.7px}#hud{inset:80px 15px 20px}.leaderboard{width:156px;padding:12px}.leader{font-size:10px!important}.hints{display:none}#minimap{width:95px;height:95px}.touch-actions{display:flex}.score-panel strong{font-size:33px}.quiet-btn kbd{display:none}.bottom-hud{bottom:max(0px,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){#avatar{animation:none}}

body:not(.playing){overflow-y:auto}.food-legend{display:flex;align-items:center;justify-content:space-between;margin:0 0 19px;color:#9ca9ba;font-size:9px}.food-legend span{display:flex;align-items:center;gap:6px}.food-legend i{display:inline-block;background:var(--lime);border-radius:50%}.food-small{width:5px;height:5px}.food-medium{width:9px;height:9px}.food-large{width:14px;height:14px;box-shadow:0 0 7px #c4f56455}body[data-theme=paper].playing .topbar{background:linear-gradient(#182130cc,transparent)}body[data-theme=paper].playing .score-panel{background:#192230e8;padding:12px 18px;border-radius:12px}body[data-theme=paper].playing .hints{background:#192230df;padding:12px;border-radius:8px}@media(min-width:801px){#lobby{padding-top:34px;row-gap:24px}.intro{padding-top:74px}.cell-preview{height:118px}.howto{margin-top:2px}}
/* Mobile viewport, notches and touch controls. */
html{min-height:100%;-webkit-text-size-adjust:100%}body{min-height:100dvh}body.playing{height:var(--view-height,100dvh);overscroll-behavior:none;touch-action:none}#hud{bottom:calc(20px + env(safe-area-inset-bottom));left:calc(15px + env(safe-area-inset-left));right:calc(15px + env(safe-area-inset-right))}.topbar{padding-left:max(22px,env(safe-area-inset-left));padding-right:max(22px,env(safe-area-inset-right))}dialog{max-height:calc(var(--view-height,100dvh) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}.touch-actions{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.touch-actions button.held{background:#516b35;transform:scale(.94);border-color:var(--lime)}
@media(any-pointer:coarse){.touch-actions{display:flex;bottom:0;gap:14px}.touch-actions button{width:72px;height:72px;min-width:48px;min-height:48px}.bottom-hud{right:174px}#minimap{position:absolute;right:-174px;bottom:92px;width:80px;height:80px}.hints,.quiet-btn kbd{display:none}.swatch{width:36px;height:36px}.colors{gap:9px}input,select,.mode-row select{font-size:16px}.icon-btn{width:44px;height:44px}#toast{bottom:96px;max-width:55%;width:max-content;font-size:11px}}
@media(orientation:landscape) and (max-height:600px){
 body:not(.playing){overflow-y:auto}.topbar,body.playing .topbar{height:48px}.brand,body.playing .brand{font-size:20px}.brand-icon,body.playing .brand-icon{font-size:26px}.brand sup,.status{display:none}.top-right{gap:8px}.icon-btn{width:40px;height:40px}
 #lobby{display:block;max-width:800px;padding:8px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.intro,.cell-preview,.howto,#lobby footer,.card-foot{display:none}.play-card{padding:12px 18px;border-radius:14px}.card-heading{margin-bottom:8px}#playForm{display:grid;grid-template-columns:1fr 1fr;column-gap:22px;row-gap:8px;align-items:center}#playForm>label{margin:0}#playForm>label[for=nickname]{grid-column:1;grid-row:1}#playForm>label:not([for]){grid-column:2;grid-row:1}#nickname{grid-column:1;grid-row:2;margin:0;padding:9px 12px;font-size:16px}.colors{grid-column:2;grid-row:2;margin:0;justify-content:space-between}.swatch{width:32px;height:32px}.mode-row{margin:0;gap:8px}.mode-row select{font-size:16px;padding:8px;width:75%}.food-legend{margin:0;gap:8px;font-size:9px}.play-button{padding:12px 16px;min-height:44px}.food-legend i{flex-shrink:0}
 #hud{top:54px;bottom:calc(10px + env(safe-area-inset-bottom))}.score-panel{top:0;left:0}.score-panel strong{font-size:28px}.score-panel>span{font-size:8px}.score-panel small{font-size:10px}.leaderboard{width:146px;padding:8px 10px}.leader-title{font-size:8px}.leader-title span{display:none}ol{margin:6px 0}li.leader{padding:3px 0;font-size:10px}li.leader:nth-child(n+4){display:none}#rank{padding-top:6px;font-size:9px}.touch-actions{display:flex;bottom:0;gap:12px}.touch-actions button{width:64px;height:64px}.bottom-hud{right:152px;bottom:0}.hints,.quiet-btn kbd{display:none}#minimap{position:absolute;right:6px;bottom:0;width:60px;height:60px}.quiet-btn{padding:12px;min-height:44px}#toast{bottom:72px;max-width:50%;font-size:10px;padding:6px 10px}.results{gap:8px;margin:12px 0}.results>div:last-child{grid-column:auto}dialog{padding:18px 24px}dialog h2{font-size:24px;margin:8px 0}dialog p,dialog li{font-size:12px;line-height:1.5}dialog .play-button{margin-top:12px}body[data-theme=paper].playing .score-panel{padding:6px 10px}
}
@media(orientation:landscape) and (max-height:360px){.card-heading{display:none}.play-card{padding:8px 14px}.leaderboard{width:130px}.leaderboard li:nth-child(n+3){display:none}#minimap{display:none}}
.brand .cell-logo{display:block;width:56px;height:56px;flex-shrink:0;margin-right:9px;filter:drop-shadow(0 0 8px #b4f54b55);animation:cell-glow 3s ease-in-out infinite;object-fit:contain}body.playing .brand .cell-logo{width:40px;height:40px}@keyframes cell-glow{50%{filter:drop-shadow(0 0 13px #b4f54b88);transform:rotate(-4deg) scale(1.04)}}@media(max-width:600px){.brand .cell-logo{width:45px;height:45px;margin-right:6px}}@media(orientation:landscape) and (max-height:600px){.brand .cell-logo,body.playing .brand .cell-logo{width:36px;height:36px}}@media(prefers-reduced-motion:reduce){.brand .cell-logo{animation:none}}
/* Left-hand actions and right-hand relative steering. */
#steeringStick{position:fixed;z-index:5;width:94px;height:94px;border-radius:50%;border:1px solid #c4f56466;background:#10141d55;transform:translate(-50%,-50%);pointer-events:none;box-shadow:inset 0 0 24px #c4f56412}#steeringStick i{position:absolute;left:29px;top:29px;width:34px;height:34px;border-radius:50%;background:#c4f56499;border:1px solid #e6ffbb;transform:translate(var(--stick-x,0px),var(--stick-y,0px))}
@media(any-pointer:coarse),(max-width:600px){.touch-actions{left:0;right:auto;bottom:0;gap:10px}.touch-actions button{width:60px;height:60px;font-size:23px}.bottom-hud{left:0;right:0;bottom:0;height:0}.bottom-hud #pause{position:absolute;left:0;bottom:76px;padding:10px 12px;min-height:44px}#minimap{position:absolute;right:0;bottom:0;width:64px;height:64px;opacity:.65}.leaderboard{pointer-events:none}#toast{bottom:84px}}
@media(orientation:landscape) and (max-height:600px){.touch-actions{left:0;right:auto;bottom:0;gap:10px}.touch-actions button{width:58px;height:58px}.bottom-hud{left:0;right:0;bottom:0;height:0}.bottom-hud #pause{position:absolute;left:0;bottom:70px;padding:10px;min-height:44px}#minimap{right:0;bottom:0;width:55px;height:55px;opacity:.6}#toast{bottom:76px}}
#steeringZone{display:none;position:fixed;z-index:6;right:calc(12px + env(safe-area-inset-right));bottom:calc(10px + env(safe-area-inset-bottom));width:144px;height:144px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#steeringZone #steeringStick{position:absolute;left:50%;top:50%;width:116px;height:116px;background:#15222e30;border-color:#d7f5a52b;box-shadow:none;transition:background .15s}#steeringStick i{left:40px;top:40px;background:#c4f56435;border-color:#e6ffbb66;transform:none}#steeringStick small{position:absolute;left:0;right:0;bottom:17px;text-align:center;font-size:8px;letter-spacing:2px;color:#e2efc280}#steeringStick .direction{position:absolute;color:#efffd6;opacity:0;font-size:19px;line-height:20px;transition:opacity .1s;filter:drop-shadow(0 1px 2px #0008)}#steeringStick .up{top:6px;left:48px}#steeringStick .down{bottom:6px;left:48px;transform:rotate(180deg)}#steeringStick .left{left:6px;top:48px;transform:rotate(-90deg)}#steeringStick .right{right:6px;top:48px;transform:rotate(90deg)}#steeringStick.engaged{background:#15222e55;border-color:#d7f5a566}#steeringStick.engaged i{transform:translate(var(--stick-x,0px),var(--stick-y,0px));background:#c4f56466}#steeringStick.engaged .direction{opacity:.3}#steeringStick.engaged .direction.active{opacity:.85;color:#d3ff7e}#steeringStick.engaged small{opacity:0}
@media(any-pointer:coarse),(max-width:600px){body.playing #steeringZone{display:block}#minimap{right:calc(50% - 28px);width:55px;height:55px}}
@media(orientation:landscape) and (max-height:600px){body.playing #steeringZone{display:block}#minimap{right:calc(50% - 28px);width:55px;height:55px}}
