/* The Lobinhood interface look (lob-city-v1/index.html: the start menu, the loading screen, the HUD plates): brand red
   #dc1408 panels with ink #110e08 display type in Unbounded set tight and white text in Space Grotesk; menu rows with
   2 px ink rules; over the 3D scene, ink plates with a white hairline; red is the one main action and anything urgent;
   lime #ccff00 is the notice. */
@font-face{font-family:Unbounded;src:url('assets/unbounded-800.woff2');font-weight:700 900;font-display:swap}
@font-face{font-family:Unbounded;src:url('assets/unbounded-600.woff2');font-weight:400 600;font-display:swap}
@font-face{font-family:'Space Grotesk';src:url('assets/space-grotesk-700.woff2');font-weight:600 900;font-display:swap}
@font-face{font-family:'Space Grotesk';src:url('assets/space-grotesk-500.woff2');font-weight:100 500;font-display:swap}
:root{--red:#dc1408;--ink:#110e08;--lime:#ccff00;--plate:rgba(17,14,8,.84);--line:rgba(255,255,255,.16);
  --arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23110e08' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
  font-family:'Space Grotesk',system-ui,sans-serif;color:#fff;background:var(--ink)}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;min-height:100svh;display:flex;flex-direction:column;background:var(--ink)}
button{font:inherit;cursor:pointer}button:disabled{cursor:default}
button:focus-visible,canvas:focus-visible,input:focus-visible{outline:3px solid #fff;outline-offset:2px}

header,footer{flex:none;display:flex;justify-content:space-between;align-items:center;background:var(--ink);color:#fff;padding:0 clamp(16px,2.6vw,40px)}
header{height:60px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;font:900 19px/1 Unbounded,system-ui,sans-serif;letter-spacing:-.04em}
.ring{width:26px;height:26px;border-radius:50%;background:repeating-conic-gradient(from 22.5deg,#fff 0 45deg,var(--red) 45deg 90deg);position:relative}
.ring::after{content:'';position:absolute;inset:7px;border-radius:50%;background:var(--ink)}
.header-right{display:flex;align-items:center;gap:16px;font:800 11px/1 Unbounded,system-ui,sans-serif;letter-spacing:.12em}
footer{height:38px;border-top:1px solid var(--line);font:700 12px/1 'Space Grotesk',system-ui,sans-serif;color:rgba(255,255,255,.8)}
footer>div{display:flex;align-items:center;gap:9px}
.lamp{width:8px;height:8px;border-radius:50%;background:var(--lime)}
#footnote{font:800 10px/1 Unbounded,system-ui,sans-serif;letter-spacing:.12em}

main{flex:1;position:relative;display:grid;grid-template-columns:minmax(0,1fr);min-height:calc(100svh - 98px)}

h1,h2{margin:0;font-family:Unbounded,system-ui,sans-serif;font-weight:900;letter-spacing:-.06em}
/* the one main action on a red panel: an ink plate with the white arrow disc */
.primary{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:15px 16px 15px 20px;border:0;border-radius:6px;background:var(--ink);color:#fff;font:900 20px/1 Unbounded,system-ui,sans-serif;letter-spacing:-.03em;text-align:left;transition:transform .12s,background .12s}
.primary::after{content:'';flex:none;width:34px;height:34px;border-radius:50%;background:#fff var(--arrow) center/18px no-repeat;transition:transform .2s}
.primary:not(:disabled):hover{background:#2a2219}.primary:not(:disabled):hover::after{transform:translateX(4px)}
.primary:not(:disabled):active{transform:scale(.985)}
.primary:disabled{background:rgba(17,14,8,.45)}.primary:disabled::after{opacity:.4}
/* the other entries: the menu's rows, an ink rule under each, ink when pointed at */
.secondary{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:13px 4px;border:0;border-bottom:2px solid var(--ink);border-radius:0;background:none;color:var(--ink);font:800 15px/1 Unbounded,system-ui,sans-serif;letter-spacing:-.02em;text-align:left;transition:background .12s,color .12s,padding .14s}
.secondary::after{content:'';flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--arrow) center/contain no-repeat;mask:var(--arrow) center/contain no-repeat;transition:transform .15s}
.secondary:not(:disabled):hover,.secondary:focus-visible{background:var(--ink);color:#fff;padding-left:13px;padding-right:11px;outline:none}
.secondary:not(:disabled):hover::after{transform:translateX(3px)}
.secondary:disabled{opacity:.5}
@keyframes candle{from{transform:scaleY(.72)}to{transform:scaleY(1)}}

.arena{position:relative;overflow:hidden;min-width:0;background:#337e8b}
.arena canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:0}

/* over the scene: ink plates with a white hairline */
.hud{position:absolute;top:16px;left:16px;display:flex;background:var(--plate);border:1px solid var(--line);border-radius:8px;color:#fff}
.hud>div{display:grid;gap:4px;padding:9px 14px}.hud>div+div{border-left:1px solid var(--line)}
.hud small{font:800 9px/1 Unbounded,system-ui,sans-serif;letter-spacing:.12em;color:rgba(255,255,255,.7)}
.hud b{font:900 22px/1 Unbounded,system-ui,sans-serif;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
#signal{position:absolute;left:50%;top:18px;transform:translateX(-50%);padding:10px 16px;border-radius:8px;background:var(--plate);border:1px solid var(--line);color:#fff;white-space:nowrap;text-align:center;font:800 11px/1.2 Unbounded,system-ui,sans-serif;letter-spacing:.06em}
#signal.warn{background:var(--red);border-color:var(--red)}
#pause{position:absolute;right:16px;top:16px;width:40px;height:40px;padding:0;border-radius:50%;border:1.5px solid rgba(255,255,255,.4);background:rgba(17,14,8,.7);color:#fff;font-size:17px;transition:background .12s,color .12s}
#pause:hover{background:#fff;color:var(--ink);border-color:#fff}
#you,#names i{position:absolute;transform:translate(-50%,-100%);pointer-events:none;white-space:nowrap;border-radius:4px;padding:4px 7px;font:800 10px/1 Unbounded,system-ui,sans-serif;font-style:normal;letter-spacing:.04em}
#you{background:var(--lime);color:var(--ink)}
#you::after{content:'';position:absolute;bottom:-4px;left:calc(50% - 4px);border:4px solid transparent;border-bottom:0;border-top-color:var(--lime)}
#names i{background:var(--plate);border:1px solid var(--line);color:#fff}

/* the countdown: one huge numeral that slams in each second, then GO */
#count{position:absolute;inset:0;z-index:2;display:grid;place-items:center;pointer-events:none}
#count b{display:block;font:900 min(46vh,34vw)/1 Unbounded,system-ui,sans-serif;letter-spacing:-.06em;color:#fff;-webkit-text-stroke:.05em var(--ink);paint-order:stroke fill;
  text-shadow:.05em .055em 0 var(--red),.1em .11em 0 var(--ink);animation:count .95s cubic-bezier(.2,1.5,.3,1) both}
#count b.win{font-size:min(13vh,8.6vw);max-width:92%;text-align:center;line-height:1.02;letter-spacing:-.04em;color:var(--lime);-webkit-text-stroke:.07em var(--ink);text-shadow:.06em .07em 0 var(--ink);animation:win 1.9s cubic-bezier(.2,1.5,.3,1) both}
@keyframes win{0%{transform:scale(2.2) rotate(-6deg);opacity:0}9%{transform:scale(1) rotate(0);opacity:1}88%{transform:scale(1);opacity:1}100%{transform:scale(.8);opacity:0}}
#summary{white-space:pre-line}
#count:has(b.win){place-items:end center;padding-bottom:13vh}   /* (the winner's name under the winner, not over them) */
#count b.go{font-size:min(30vh,23vw);color:var(--lime);text-shadow:.05em .055em 0 var(--ink);animation-name:go}
@keyframes count{0%{transform:scale(2.6) rotate(-9deg);opacity:0}16%{transform:scale(1) rotate(0);opacity:1}78%{transform:scale(1);opacity:1}100%{transform:scale(.6);opacity:0}}
@keyframes go{0%{transform:scale(.3);opacity:0}18%{transform:scale(1.12) rotate(-3deg);opacity:1}70%{transform:scale(1) rotate(-3deg);opacity:1}100%{transform:scale(1.9) rotate(-3deg);opacity:0}}

/* cards over the round: a red panel, as the menu */
#overlay{position:absolute;inset:0;z-index:3;display:grid;place-items:center;padding:16px;background:rgba(17,14,8,.55)}
.card{width:min(380px,100%);padding:24px 22px 20px;border-radius:14px;background:var(--red);color:var(--ink);text-align:left;box-shadow:0 22px 44px rgba(17,14,8,.5)}
.card small{font:800 10px/1.2 Unbounded,system-ui,sans-serif;letter-spacing:.12em}
.card h2{font-size:clamp(28px,4.4vw,38px);line-height:.98;margin:10px 0 10px}
.card p{margin:0 0 16px;white-space:pre-line;font:700 14px/1.45 'Space Grotesk',system-ui,sans-serif;color:#fff}
.card .secondary{margin-top:4px}

/* touch controls */
#stick,#actions,#camera-controls{display:none}
#stick{position:fixed;pointer-events:none;width:124px;height:124px;border:1.5px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(17,14,8,.3);align-items:center;justify-content:center}
#knob{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.8)}
#actions{position:absolute;bottom:20px;right:16px;gap:10px}
#actions button{width:66px;height:66px;border-radius:50%;border:1.5px solid rgba(255,255,255,.4);background:rgba(17,14,8,.7);color:#fff;font:800 11px/1 Unbounded,system-ui,sans-serif;letter-spacing:-.02em;text-transform:uppercase;touch-action:none}
#actions #hit{background:var(--red);border-color:var(--red)}
#actions button.down{transform:scale(.92)}
#camera-controls{position:absolute;bottom:98px;right:16px;gap:6px}
#camera-controls button{padding:8px 11px;border-radius:999px;border:1.5px solid rgba(255,255,255,.4);background:rgba(17,14,8,.7);color:#fff;font:700 12px/1 'Space Grotesk',system-ui,sans-serif;touch-action:none}
@media(pointer:coarse),(max-width:740px){body.play #stick,body.play #actions{display:flex}#stick{bottom:65px;left:18px;opacity:.7}#stick.on{opacity:1}}
@media(pointer:coarse){body.play #camera-controls{display:flex}}
body.touch.play #actions,body.touch.play #stick,body.touch.play #camera-controls{display:flex}

@media(max-width:740px) and (orientation:portrait){
  header{height:50px}.brand{font-size:15px}.header-right span{display:none}footer{height:32px}
  main{min-height:calc(100svh - 82px)}
  .hud{left:8px;top:8px}.hud>div{padding:7px 9px}.hud b{font-size:17px}
  #pause{top:8px;right:8px}#signal{top:62px;font-size:9px;padding:8px 11px}
  body.play .arena{min-height:calc(100svh - 82px)}
}
@media(max-height:520px) and (orientation:landscape){
  header{height:40px}footer{height:26px}main{min-height:calc(100svh - 66px)}
}
@media(prefers-reduced-motion:reduce){#count b,#room i{animation:none}}

/* the item bar: one plate per item, its count, and its key */
#items{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);display:flex;gap:8px}
#items button{position:relative;width:62px;height:62px;padding:0;display:grid;place-items:center;border-radius:8px;border:1px solid var(--line);background:var(--plate);color:#fff;touch-action:none;transition:transform .1s,background .12s}
#items button:hover{background:rgba(17,14,8,.95);border-color:rgba(255,255,255,.5)}
#items button:active,#items button.used{transform:scale(.9)}
#items b{position:absolute;top:-7px;right:-7px;min-width:22px;height:22px;padding:0 5px;display:grid;place-items:center;border-radius:11px;background:#fff;color:var(--ink);font:900 11px/1 Unbounded,system-ui,sans-serif}
#items kbd{position:absolute;left:5px;bottom:4px;font:800 9px/1 Unbounded,system-ui,sans-serif;color:rgba(255,255,255,.6)}
#items button.empty{opacity:.38}#items button.empty b{background:rgba(255,255,255,.5)}
.ic{position:relative;display:block}
.ic.red,.ic.green{width:13px;height:26px;border-radius:2px;background:var(--red)}
.ic.green{background:#2fd06a}
.ic.red::before,.ic.green::before{content:'';position:absolute;left:calc(50% - 1px);top:-8px;width:2px;height:42px;background:inherit}
.ic.rug{width:34px;height:20px;border-radius:3px;background:repeating-linear-gradient(90deg,var(--red) 0 6px,#fff 6px 9px);box-shadow:-3px 0 0 -1px #fff,3px 0 0 -1px #fff;transform:rotate(-8deg)}
.ic.butter{width:30px;height:17px;border-radius:3px;background:linear-gradient(#fff3a8 0 30%,#ffd84d 30%);transform:skewX(-10deg)}
@media(pointer:coarse),(max-width:740px){#items{left:auto;right:16px;bottom:98px;transform:none;gap:6px}#items button{width:46px;height:46px}#items kbd{display:none}.ic{transform-origin:center;scale:.8}#camera-controls{bottom:156px}}
body.touch #items{left:auto;right:16px;bottom:98px;transform:none}body.touch #camera-controls{bottom:156px}

/* the item in hand: a white edge and a lime foot; the hint beside the bar; the touch Item button wears its icon */
#items{align-items:center}
#items button.sel{border-color:#fff;background:rgba(17,14,8,.96);box-shadow:inset 0 -4px 0 var(--lime);transform:translateY(-4px)}
#items button.sel.used{transform:translateY(-4px) scale(.9)}
#items .hint{margin-left:6px;padding:8px 10px;border-radius:8px;background:var(--plate);border:1px solid var(--line);white-space:nowrap;font:700 12px/1 'Space Grotesk',system-ui,sans-serif;color:rgba(255,255,255,.85)}
#items .hint kbd{position:static;display:inline-block;padding:3px 6px;border-radius:4px;background:#fff;color:var(--ink);font:800 10px/1 Unbounded,system-ui,sans-serif}
#actions #item{position:relative;display:grid;place-items:center;background:var(--plate);border-color:#fff;box-shadow:inset 0 -5px 0 var(--lime)}
#actions #item b{position:absolute;top:-4px;right:-4px;min-width:24px;height:24px;padding:0 5px;display:grid;place-items:center;border-radius:12px;background:#fff;color:var(--ink);font:900 12px/1 Unbounded,system-ui,sans-serif}
#actions #item.empty{opacity:.4}
@media(pointer:coarse),(max-width:740px){#items .hint{display:none}#items{gap:6px}#items button.sel{transform:none}}
body.touch #items .hint{display:none}

/* round 6 has no punch: the Item button is the main action */
body.no-punch #actions #hit{display:none}
/* (it keeps its ink plate: a red button would swallow the red candle's icon) and takes the thumb's corner */
body.no-punch #actions #item{order:2;width:74px;height:74px}

/* who is in the room, under the Play online row */
.card p{font-variant-numeric:tabular-nums}

/* Touch, 2026-11-26 (user: "the safari buttons are blocking jump when saved lobinhood.com as an app", "make jump button
   bigger", "make camera fixed behind player"). Safari's floating bar (and the bar of the in-app browser a home-screen
   app opens this page in) covers the bottom 75 px or so: every control sits above it. Jump is the biggest button. The
   camera follows the player on touch (game.js), so its two buttons are gone. */
body.touch.play #camera-controls{display:none}
@media(pointer:coarse){body.play #camera-controls{display:none}}
body.touch #actions{bottom:calc(96px + env(safe-area-inset-bottom));right:14px;gap:12px;align-items:flex-end}
body.touch #actions #jump{width:104px;height:104px;font-size:14px;background:rgba(17,14,8,.82);border-color:#fff;border-width:2px}
body.touch.no-punch #actions #item{width:78px;height:78px;order:0}   /* (Jump sits in the corner, under the thumb) */
body.touch #items{bottom:calc(214px + env(safe-area-inset-bottom));right:14px}
body.touch #stick{bottom:calc(104px + env(safe-area-inset-bottom))}
@media(pointer:coarse){
  #actions{bottom:calc(96px + env(safe-area-inset-bottom));right:14px;gap:12px;align-items:flex-end}
  #actions #jump{width:104px;height:104px;font-size:14px;background:rgba(17,14,8,.82);border-color:#fff;border-width:2px}
  body.no-punch #actions #item{width:78px;height:78px;order:0}
  #items{bottom:calc(214px + env(safe-area-inset-bottom));right:14px}
  #stick{bottom:calc(104px + env(safe-area-inset-bottom))}
}

/* the winner's emote plates: over the result card's dim, at the top of the arena so they cover neither the winner nor the card */
#cheer{position:absolute;left:50%;top:64px;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;background:var(--plate);border:1px solid var(--line);white-space:nowrap}
#cheer span{font:800 10px/1 Unbounded,system-ui,sans-serif;letter-spacing:.12em;color:var(--lime);margin-right:4px}
#cheer button{display:flex;align-items:center;gap:7px;padding:10px 14px;border-radius:8px;border:1px solid #fff;background:var(--ink);color:#fff;font:800 12px/1 Unbounded,system-ui,sans-serif;touch-action:none}
#cheer button:active{transform:scale(.94)}
#cheer kbd{padding:3px 6px;border-radius:4px;background:#fff;color:var(--ink);font:800 10px/1 Unbounded,system-ui,sans-serif}
body.touch #cheer kbd{display:none}
@media(pointer:coarse){#cheer kbd{display:none}#cheer{top:112px}}
#overlay.result{place-items:center end;padding-right:max(16px,5vw);background:linear-gradient(90deg,rgba(17,14,8,0) 30%,rgba(17,14,8,.6))}
@media(max-width:740px){#overlay.result{place-items:end center;padding:16px 16px calc(96px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(17,14,8,0) 30%,rgba(17,14,8,.6))}}

/* clips and screenshots (clip.js): two round buttons beside the pause button while a round is on; a red pill while
   recording; the card after it */
#capture{position:absolute;right:64px;top:16px;z-index:4;display:none;gap:8px}
body.play #capture{display:flex}
#capture button{width:40px;height:40px;padding:0;display:grid;place-items:center;border-radius:50%;border:1.5px solid rgba(255,255,255,.4);background:rgba(17,14,8,.7);color:#fff}
#capture button:hover{background:#fff;color:var(--ink);border-color:#fff}
#recBtn i{width:14px;height:14px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2px #fff}
body.rec #recBtn i{border-radius:3px}
#recPill{position:absolute;left:50%;top:62px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;border:0;background:var(--red);color:#fff;font:800 12px/1 Unbounded,system-ui,sans-serif}
#recPill i{width:9px;height:9px;border-radius:50%;background:#fff;animation:blink 1s steps(2) infinite}
#recPill.saving i{animation:none;opacity:.5}
@keyframes blink{50%{opacity:.2}}
#toast{position:absolute;left:50%;bottom:120px;transform:translateX(-50%);z-index:6;max-width:calc(100% - 32px);padding:10px 14px;border-radius:8px;background:var(--plate);border:1px solid var(--line);color:#fff;font:700 13px/1.3 'Space Grotesk',system-ui,sans-serif;text-align:center}
#capCard{position:absolute;inset:0;z-index:7;display:grid;place-items:center;padding:16px;background:rgba(17,14,8,.6)}
#capCard[hidden]{display:none}
#capCard .cap-in{width:min(520px,100%);max-height:100%;overflow:auto;border-radius:8px;box-shadow:0 18px 50px rgba(0,0,0,.45)}
#capPrev{display:grid;place-items:center;background:var(--ink);line-height:0}
#capPrev video,#capPrev img{display:block;width:100%;height:min(46vh,320px);object-fit:contain}
#capCard .cap-b{display:flex;flex-direction:column;gap:8px;padding:16px;background:var(--red);color:var(--ink)}
#capCard #capT{font:800 20px/1.1 Unbounded,system-ui,sans-serif}
#capCard #capS{font:800 10px/1 Unbounded,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase}
#capCard #capN{margin:0;font:600 13px/1.4 'Space Grotesk',system-ui,sans-serif}
@media(max-width:740px){#capture{top:8px;right:56px}#recPill{top:104px}#toast{bottom:240px}}
@media(pointer:coarse){#toast{bottom:240px}}


/* the tutorial's coach plate: what to do next, at the top of the arena (the signal's place while it runs) */
#coach{position:absolute;left:50%;top:16px;transform:translateX(-50%);z-index:3;width:min(560px,calc(100% - 200px));padding:11px 16px 12px;border-radius:8px;background:rgba(17,14,8,.9);border:1px solid var(--line);box-shadow:inset 4px 0 0 var(--lime);color:#fff}
#coach small{display:block;font:800 9px/1 Unbounded,system-ui,sans-serif;letter-spacing:.12em;color:var(--lime)}
#coach p{margin:6px 0 0;font:700 15px/1.35 'Space Grotesk',system-ui,sans-serif}
#coach.fight{box-shadow:inset 4px 0 0 var(--red)}#coach.fight small{color:#fff}
.coach-b{display:flex;gap:8px}.coach-b:has(button:not([hidden])){margin-top:9px}
#coachGo{padding:9px 14px;border-radius:8px;border:0;background:var(--lime);color:var(--ink);font:800 12px/1 Unbounded,system-ui,sans-serif}
@media(max-width:740px),(pointer:coarse){#coach{top:58px;width:calc(100% - 16px);padding:9px 12px 10px}#coach p{font-size:13px}}

@media(max-width:740px){.header-right{gap:6px}.icon{width:34px;height:34px}.brand{white-space:nowrap}}


/* the knockout feed: who sent whom in, top right under the capture buttons, each line for a few seconds */
#feed{position:absolute;right:16px;top:66px;z-index:3;display:grid;justify-items:end;gap:5px;pointer-events:none;max-width:min(360px,60%)}
#feed p{margin:0;padding:7px 11px;border-radius:7px;background:rgba(17,14,8,.82);border:1px solid var(--line);color:#fff;font:700 12.5px/1.25 'Space Grotesk',system-ui,sans-serif;text-align:right;animation:feedIn .22s ease-out both;transition:opacity .4s}
#feed p.me{border-color:var(--lime);box-shadow:inset -3px 0 0 var(--lime)}#feed p.gone{opacity:0}
@keyframes feedIn{from{transform:translateX(16px);opacity:0}}
@media(max-width:740px),(pointer:coarse){#feed{top:104px;right:8px;max-width:72%}#feed p{font-size:11.5px;padding:6px 9px}}
/* the "last two" banner */
#banner{position:absolute;left:50%;top:30%;transform:translateX(-50%);z-index:3;pointer-events:none;padding:10px 20px;border-radius:8px;background:var(--red);color:#fff;white-space:nowrap;font:900 clamp(16px,3.4vw,30px)/1 Unbounded,system-ui,sans-serif;letter-spacing:-.01em;box-shadow:0 6px 0 var(--ink);animation:banner 1.8s ease-out both}
@keyframes banner{0%{transform:translateX(-50%) scale(.6);opacity:0}12%{transform:translateX(-50%) scale(1.06);opacity:1}20%{transform:translateX(-50%) scale(1)}85%{opacity:1}100%{opacity:0}}
/* knocked out in an online round: watch on, or leave for the menu */
#outbar{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:10px;padding:10px 10px 10px 16px;border-radius:10px;background:rgba(17,14,8,.92);border:1px solid var(--line);color:#fff;max-width:calc(100% - 24px)}
#outbar>div{display:grid;gap:4px;min-width:0;margin-right:4px}
#outbar b{font:900 13px/1.1 Unbounded,system-ui,sans-serif;letter-spacing:.02em;white-space:nowrap}
#outbar small{font:600 12px/1.25 'Space Grotesk',system-ui,sans-serif;color:rgba(255,255,255,.8)}
#outbar button{flex:none;padding:11px 14px;border-radius:8px;font:800 12px/1 Unbounded,system-ui,sans-serif;white-space:nowrap}
#outbar .ob-w{border:1px solid rgba(255,255,255,.45);background:none;color:#fff}
#outbar .ob-l{border:0;background:var(--lime);color:var(--ink)}
@media(max-width:740px){#outbar{flex-wrap:wrap;bottom:calc(18px + env(safe-area-inset-bottom));padding:12px}#outbar>div{flex-basis:100%}#outbar button{flex:1}}
body.out #stick,body.out #actions,body.out #items{display:none!important}


/* ---- The menu as a ticket (user, 2026-11-26: "it needs to be on dribble level, but it also needs to be clear and
   really focus on just showing the content and infos necessary, with additonal options behind tooltips or sth"). The
   city's Harbor Games booth is a ticket booth, so the menu is the ticket it hands out: one red card over the live
   harbour. Above the tear line, what a player needs: the game, who is in, a name, Quick play. Below it, the stub:
   practice, a private room, how to play and this week's leader, each opening a small sheet. */
body:not(.play) footer{display:none}
body:not(.play) main{min-height:calc(100svh - 60px)}
.arena{grid-area:1/1}
.brief{grid-area:1/1;position:relative;z-index:2;align-self:center;justify-self:start;margin:24px clamp(20px,4vw,64px);width:min(392px,calc(100% - 40px));pointer-events:none}
body.play .brief,body.play .sheets{display:none}
.ticket{pointer-events:auto;color:var(--ink);filter:drop-shadow(0 18px 28px rgba(17,14,8,.38))}
.t-main,.t-stub{background:var(--red)}
/* the tear line: a dashed perforation, with a half-circle bitten out of each edge */
.t-main{border-radius:20px 20px 0 0;padding:26px 26px 22px;-webkit-mask:radial-gradient(circle 11px at 0 100%,#0000 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 11px at 100% 100%,#0000 98%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 11px at 0 100%,#0000 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 11px at 100% 100%,#0000 98%,#000) right/51% 100% no-repeat}
.t-stub{position:relative;margin-top:-1px;border-radius:0 0 20px 20px;padding:19px 26px 20px;-webkit-mask:radial-gradient(circle 11px at 0 0,#0000 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 11px at 100% 0,#0000 98%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 11px at 0 0,#0000 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 11px at 100% 0,#0000 98%,#000) right/51% 100% no-repeat}
.t-stub::before{content:'';position:absolute;left:20px;right:20px;top:1px;height:2px;background:repeating-linear-gradient(90deg,rgba(17,14,8,.5) 0 7px,transparent 7px 13px)}
.brief h1{font-size:clamp(36px,3.3vw,46px);line-height:.9;letter-spacing:-.065em;text-transform:uppercase;max-width:7.2em}
.intro{margin:12px 0 0;font:600 15px/1.4 'Space Grotesk',system-ui,sans-serif;color:#fff;max-width:28em}
/* who is in quick play right now: a live lamp and one line */
#room{display:flex;align-items:center;gap:9px;margin:16px 0 0;font:700 13px/1.3 'Space Grotesk',system-ui,sans-serif;color:var(--ink)}
#room i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 2px var(--ink);animation:lamp 1.6s ease-in-out infinite}
#room.idle i{background:rgba(17,14,8,.35);animation:none}
@keyframes lamp{50%{box-shadow:0 0 0 2px var(--ink),0 0 0 6px rgba(204,255,0,.35)}}
.name{display:block;margin:18px 0 10px;border-bottom:2px solid var(--ink)}
.name span{display:block;font:700 11px/1 'Space Grotesk',system-ui,sans-serif;color:rgba(17,14,8,.7)}
.name input{display:block;width:100%;border:0;background:none;color:var(--ink);padding:6px 0 8px;font:800 18px/1.1 Unbounded,system-ui,sans-serif;letter-spacing:-.03em}
.name input::placeholder{color:rgba(17,14,8,.38)}
.name input:focus-visible{outline:none}.name:focus-within{border-bottom-color:#fff}
.brief .primary{margin:0;padding:17px 16px 17px 22px;font-size:21px}
/* the stub: three quiet chips and the week's leader */
.stub-row{display:flex;gap:8px}
.chip{flex:1;min-width:0;height:40px;padding:0 12px;border-radius:999px;border:2px solid var(--ink);background:none;color:var(--ink);font:800 12.5px/1 Unbounded,system-ui,sans-serif;letter-spacing:-.02em;white-space:nowrap;transition:background .12s,color .12s}
.chip.round{flex:none;width:40px;padding:0;font-size:15px}
.chip:not(:disabled):hover,.chip:focus-visible,.chip[aria-expanded="true"]{background:var(--ink);color:#fff;outline:none}
.chip:disabled{opacity:.45}
.lead{display:flex;align-items:center;gap:9px;width:100%;margin-top:12px;padding:0;border:0;background:none;color:var(--ink);font:700 13px/1.3 'Space Grotesk',system-ui,sans-serif;text-align:left}
.lead span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead::after{content:'';flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:var(--arrow) center/contain no-repeat;mask:var(--arrow) center/contain no-repeat;opacity:.6;transition:transform .15s}
.lead:hover::after,.lead:focus-visible::after{transform:translateX(3px);opacity:1}
.lead:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:4px}
/* icon toggles in the header, with their name on hover */
.icon{position:relative;flex:none;width:38px;height:38px;padding:0;display:grid;place-items:center;line-height:0;border-radius:50%;border:1.5px solid rgba(255,255,255,.35);background:none;color:#fff;transition:background .12s,color .12s}
.icon:hover{background:#fff;color:var(--ink)}
.icon .x{display:none}.icon[aria-pressed="false"] .x{display:inline}.icon[aria-pressed="false"] .w{display:none}.icon[aria-pressed="false"]{color:rgba(255,255,255,.6)}
[data-tip]:hover::before,[data-tip]:focus-visible::before{content:attr(data-tip);position:absolute;line-height:1;top:calc(100% + 8px);right:0;z-index:20;padding:6px 9px;border-radius:6px;background:#fff;color:var(--ink);font:700 12px/1 'Space Grotesk',system-ui,sans-serif;white-space:nowrap;pointer-events:none}
.chip[data-tip]{position:relative}.chip[data-tip]:hover::before,.chip[data-tip]:focus-visible::before{top:auto;bottom:calc(100% + 8px)}
/* the sheets the stub opens: a card beside the ticket (over it on a phone), closed by ×, Escape or a click outside */
.sheets{grid-area:1/1;position:relative;z-index:3;pointer-events:none}
.sheet{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-start;padding:24px 24px 24px calc(clamp(20px,4vw,64px) + min(392px,100% - 40px) + 18px);pointer-events:auto}
.sh-in{position:relative;width:min(380px,100%);max-height:100%;overflow-y:auto;padding:24px 24px 22px;border-radius:18px;background:var(--ink);color:#fff;border:1px solid var(--line);box-shadow:0 18px 40px rgba(17,14,8,.45);animation:sheet .18s ease-out both}
@keyframes sheet{from{transform:translateX(-10px);opacity:0}}
.sh-in h2{font-size:22px;letter-spacing:-.05em;padding-right:36px}
.sh-in>p{margin:8px 0 14px;font:500 13.5px/1.45 'Space Grotesk',system-ui,sans-serif;color:rgba(255,255,255,.75)}
.sh-x{position:absolute;right:14px;top:14px;width:32px;height:32px;padding:0;border-radius:50%;border:1px solid var(--line);background:none;color:#fff;font:400 20px/1 'Space Grotesk',system-ui,sans-serif}
.sh-x:hover{background:#fff;color:var(--ink)}
.opt{display:grid;gap:4px;width:100%;margin-top:8px;padding:13px 15px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:#fff;text-align:left;transition:background .12s,border-color .12s}
.opt b{font:800 14px/1.1 Unbounded,system-ui,sans-serif;letter-spacing:-.02em}
.opt span{font:500 12.5px/1.3 'Space Grotesk',system-ui,sans-serif;color:rgba(255,255,255,.65)}
.opt:not(:disabled):hover,.opt:focus-visible{background:var(--red);border-color:var(--red);outline:none}
.opt:not(:disabled):hover span,.opt:focus-visible span{color:#fff}
.opt:disabled{opacity:.45}
.opt.slim{margin-top:16px}
#how{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:9px}
#how li{display:grid;grid-template-columns:7.4em 1fr;gap:10px;font:500 13px/1.4 'Space Grotesk',system-ui,sans-serif;color:rgba(255,255,255,.88)}
#how li>b{font:800 11px/1.6 Unbounded,system-ui,sans-serif;letter-spacing:-.01em;color:var(--lime)}
#how b.in{font-weight:700;color:#fff}
#weekList{margin:4px 0 0;padding:0;list-style:none;display:grid;gap:2px;counter-reset:w}
#weekList li{display:flex;gap:12px;align-items:baseline;padding:9px 0;border-bottom:1px solid var(--line);font:600 14px/1.3 'Space Grotesk',system-ui,sans-serif;counter-increment:w}
#weekList li::before{content:counter(w);min-width:1.2em;font:900 13px/1 Unbounded,system-ui,sans-serif;color:var(--lime)}
#weekList li b{font-weight:700;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#weekList li span{font:800 12px/1 Unbounded,system-ui,sans-serif;white-space:nowrap}
#weekList li.empty{border:0;color:rgba(255,255,255,.75);font-weight:500}#weekList li.empty::before{content:''}
/* a phone: the harbour on top, the ticket as a sheet along the foot; the stub's sheets cover the ticket */
@media(max-width:740px){
  body:not(.play) main{min-height:calc(100svh - 50px)}
  .brief{align-self:end;justify-self:stretch;margin:0;width:auto}
  .ticket{filter:drop-shadow(0 -8px 24px rgba(17,14,8,.35))}
  .t-main{border-radius:22px 22px 0 0;padding:22px 20px 18px}.t-stub{border-radius:0;padding:16px 20px calc(18px + env(safe-area-inset-bottom))}
  .brief h1{font-size:34px}.intro{font-size:14px;margin-top:10px}#room{margin-top:12px}.name{margin:14px 0 10px}
  .sheet{align-items:flex-end;justify-content:stretch;padding:0}
  .sh-in{width:100%;max-height:82svh;border-radius:22px 22px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom));animation-name:sheetUp}
  @keyframes sheetUp{from{transform:translateY(24px);opacity:0}}
}
@media(max-height:560px) and (orientation:landscape){
  .brief{align-self:center;margin:12px 20px;width:min(360px,48%)}.intro{display:none}.t-main{padding:18px 20px 14px}.t-stub{padding:12px 20px 14px}.brief h1{font-size:26px}
  .sheet{padding-left:calc(min(360px,48%) + 40px)}
}
@media(max-width:740px){.icon{width:34px;height:34px}}

/* on lobinhood.com a signed-in player's name comes from the game: shown, not typed (game.js whoAmI) */
.name.known b{display:block;padding:6px 0 8px;font:800 18px/1.1 Unbounded,system-ui,sans-serif;letter-spacing:-.03em;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* the way back to the city (user, 2026-11-26: the portal): a pill in the header on the menu and in rounds, and a line on
   the result card; both bring down the loading screen's shutter and open Claw Harbor in this tab (src/trip.js) */
.header-left{display:flex;align-items:center;gap:14px;min-width:0}
.home{flex:none;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px 0 11px;box-sizing:border-box;border-radius:999px;border:1.5px solid rgba(255,255,255,.35);color:#fff;text-decoration:none;font:800 11px/1 Unbounded,system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;transition:background .12s,color .12s}
.home:hover,.home:focus-visible{background:#fff;color:var(--ink);outline:none}
.home svg{flex:none;display:block}
.card .home2{display:none}#overlay.result .card .home2{display:flex}
@media(max-width:740px){.home{height:34px;padding:0 12px 0 9px}.header-left{gap:10px}}
@media(max-width:560px){.home{width:34px;padding:0;justify-content:center}.home span{display:none}}
