:root{color-scheme:light;font-family:ui-rounded,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#2a2930;background:#f6f4ee;font-synthesis:none;
  --header:70px;--stage:76px;--bottom:188px;--side:8px;
  --ink:#2a2930;--muted:#6b6775;--line:#e4dfd3;--panel:#fff;--yellow:#F2C94C;--red:#E86F51;--green:#BEC694;--terracotta:#DBA384;--ring:#2f8a4a}
*{box-sizing:border-box;touch-action:manipulation}body{margin:0;-webkit-text-size-adjust:100%;background:#f6f4ee}
button,select,input{font:inherit}
button,select,a.primary{color:inherit;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 18px;min-height:44px;cursor:pointer;text-decoration:none;display:inline-block;text-align:center}
button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}button:active{filter:brightness(.96)}
button.primary,a.primary{background:var(--yellow);color:var(--ink);border:0;font-weight:700}button:disabled{opacity:.5}
button.link{border:0;background:none;padding:0;min-height:0;color:var(--red);font-weight:600}
p{color:var(--muted);line-height:1.55}h1{font-size:clamp(28px,5vw,44px);letter-spacing:-1.2px;line-height:1.12;margin:12px 0;color:var(--ink)}
#app{max-width:1050px;margin:auto;min-height:100vh;min-height:100svh;padding:env(safe-area-inset-top) max(var(--side),env(safe-area-inset-right)) env(safe-area-inset-bottom) max(var(--side),env(safe-area-inset-left))}
header{height:var(--header);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px}
.header-actions{display:flex;gap:2px}header .icon{width:44px;height:44px;min-height:0;padding:10px;display:flex;align-items:center;justify-content:center;border:0;background:none;border-radius:12px;color:var(--ink)}header .icon svg{width:24px;height:24px;display:block;color:#303133}#player-btn svg,#shop svg{fill:currentColor;stroke:none;width:23px;height:23px}#menu-btn svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:butt}header .icon:active{background:#ebe7dc}body.playing .header-actions{visibility:hidden}
header .logo{padding:0;border:0;background:none;min-height:0;height:44px;display:flex;align-items:center}header .logo img{height:40px;width:auto;display:block}

[hidden]{display:none!important}body{position:fixed;inset:0;overflow:hidden;width:100%;overscroll-behavior:none}#app{height:100vh;height:100svh;min-height:0;overflow:hidden}.screen{height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--header));height:calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--header));overflow:hidden;display:flex;flex-direction:column}
.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#9a93a8}
/* Home and game share one vertical rhythm: header → stage → board → bottom. The board box is identical on both, so the cards sit in the same place. */
.stage{height:var(--stage);flex:none;display:flex;flex-direction:column;justify-content:center}
.board{position:relative;flex:none;min-height:0;width:100%;isolation:isolate;height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--header) - var(--stage) - var(--bottom));height:calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--header) - var(--stage) - var(--bottom))}
.intro{text-align:center;padding:0 8px}.intro h1{font-size:26px;margin:0}
legend{position:absolute;clip-path:inset(100%);width:1px;height:1px;overflow:hidden}input{accent-color:var(--red)}
.menu-actions{max-width:480px;margin:auto;text-align:center;height:var(--bottom);display:flex;flex-direction:column;justify-content:center;padding:0 8px}.menu-actions>.primary{width:100%;font-size:18px}
nav{display:flex;justify-content:center;gap:4px;margin:6px 0 0;flex-wrap:wrap}nav button{border:0;background:none;color:#4a4656;font-size:14px;padding:10px 12px}nav #shop{color:var(--red);font-weight:600}
.links{font-size:13px;color:var(--muted);margin:0}#get-app{display:none;margin-top:6px;font-size:12px;color:#9a93a8}body.web #get-app{display:block}.links .lang select{width:auto;margin:0;padding:6px 10px;min-height:32px;font-size:13px;background:none;border:0;color:#4a4656}.visually-hidden{position:absolute;clip-path:inset(100%);width:1px;height:1px;overflow:hidden}
.card{position:absolute;overflow:visible;filter:drop-shadow(0 3px 6px #0002);pointer-events:none}.card .symbol{pointer-events:auto}#ghost .symbol,#menu-ghost .symbol{pointer-events:none}.card svg.face{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.symbol{position:absolute;transform:translate(-50%,-50%);width:23%;aspect-ratio:1;border:0;border-radius:50%;background:transparent;min-height:0;padding:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.symbol img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
.symbol::after{content:'';position:absolute;inset:-14%;border-radius:50%;opacity:0;pointer-events:none;transition:opacity .08s}.symbol.found::after{background:#5aa36b;opacity:.55}.symbol.wrong::after{background:var(--red);opacity:.5}
@media(prefers-reduced-motion:no-preference){.symbol.found{animation:pop .3s ease}@keyframes pop{0%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.18)}100%{transform:translate(-50%,-50%) scale(1)}}}
.symbol:focus-visible{outline:2px solid var(--red)}.card.standard .symbol{width:18%}
#game,#menu{position:relative}#ghost,#menu-ghost{position:absolute;left:0;right:0;top:var(--stage);pointer-events:none;opacity:1}#ghost.fade,#menu-ghost.fade{opacity:0;transition:opacity .3s ease-out}.hud{display:flex;justify-content:space-around;align-items:center;gap:15px;padding:0 10px;flex-direction:row}.hud .me{display:flex;align-items:center;gap:10px}.hud .me img{height:56px;width:56px;object-fit:contain;display:block}.score-wrap{position:relative}#delta{position:absolute;left:100%;top:4px;margin-left:6px;font-size:22px;font-weight:800;opacity:0;pointer-events:none}#delta.up{color:#2f8a4a}#delta.down{color:var(--red)}@media(prefers-reduced-motion:no-preference){#delta.go{animation:rise .9s ease-out}@keyframes rise{0%{opacity:0;transform:translateY(8px)}15%{opacity:1;transform:translateY(0)}70%{opacity:1}100%{opacity:0;transform:translateY(-14px)}}}@media(prefers-reduced-motion:reduce){#delta.go{opacity:1}}.hud>div{text-align:center;min-width:60px}.hud span{display:block}.hud strong{display:block;font-size:36px;font-variant-numeric:tabular-nums}.hud button{font-size:13px}.ring{position:relative;width:64px;height:64px;min-width:0;display:grid;place-items:center}.ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.ring circle{fill:none;stroke-width:5.5}.ring .track{stroke:var(--line)}.ring .arc{stroke:var(--green);stroke-linecap:round;transition:stroke-dashoffset .4s linear,stroke .3s}.ring.urgent .arc{stroke:var(--red)}.hud .ring strong{position:relative;font-size:26px;font-weight:600;line-height:1}
#feedback{text-align:center;font-size:16px;font-weight:600;min-height:44px;margin:8px 0 0;display:flex;align-items:center;justify-content:center;color:var(--ink);opacity:0;transition:opacity .6s ease}#feedback.show{opacity:1;transition:opacity .1s}#feedback.good{color:#2f8a4a}#feedback.bad{color:var(--red)}
.center{text-align:center;padding-top:6px;max-width:450px;margin:0 auto;width:100%;justify-content:center}.center .player-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;border:0;background:none;margin:0 auto 6px;width:auto!important;font-size:14px;color:var(--muted)}.player-card img{height:96px;width:96px;object-fit:contain;display:block}.level-up{color:#2f8a4a;font-weight:600;margin:0 0 6px;font-size:15px}.center button{display:block;width:100%;margin:10px 0}.big-score{font-size:92px;font-weight:750;line-height:1.1;color:var(--ink)}
#avatars{padding:0 8px;max-width:720px;margin:0 auto;width:100%}#avatar-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:1px;margin:8px 0;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:auto;flex:0 1 auto;min-height:0;align-content:start;grid-auto-rows:max-content}#avatar-grid button{padding:6px;background:#fff;border:0;border-radius:0;min-height:0;height:auto}#avatar-grid button.selected{background:#fdf1c8;box-shadow:inset 0 0 0 3px var(--yellow)}#avatar-grid img{width:100%;aspect-ratio:1;object-fit:contain;display:block}#avatars h2{font-size:15px;margin:4px 0 6px}#avatars h1{font-size:26px;margin:14px 0 2px}#avatars p{margin:0 0 4px;font-size:16px;line-height:1.4}#avatars .back{margin-top:auto!important;flex-shrink:0}#avatars .back{display:block;width:100%;margin-top:16px}
.reading{max-width:600px;margin:0 auto;padding:0 8px;width:100%;justify-content:flex-start}.reading h1{font-size:28px;margin:6px 0 10px}.reading p{margin:8px 0;font-size:17px;line-height:1.45}.reading ol{margin:4px 0;padding-left:22px}.reading li{margin:8px 0;line-height:1.45;font-size:17px}.reading .rule{background:var(--panel);border-left:3px solid var(--yellow);padding:8px 12px;border-radius:0 10px 10px 0;color:var(--ink)}
.reading .primary{display:block;width:100%;margin:auto 0 8px;flex-shrink:0}
.box-photo-btn{display:block;width:100%;padding:0;border:0;background:none;border-radius:16px;margin:0 0 10px;min-height:0;flex:1 1 auto;min-height:120px;max-height:46%}.box-photo{width:100%;height:100%;object-fit:cover;border-radius:16px;display:block;background:#eee9dd}
#buy ul{padding-left:20px;color:var(--ink);margin:4px 0}#buy li{margin:6px 0;font-size:17px}
#leaderboard{max-width:650px;margin:0 auto;padding:0 8px;width:100%}#leaderboard h1{font-size:26px;margin:6px 0 10px}#leaderboard>button{display:block;width:100%;margin:auto 0 8px;flex-shrink:0}#board-status{margin:6px 0;font-size:13px;min-height:0}
#entries{padding:0 12px;list-style:none;margin:0 -12px;overflow:hidden;flex:0 1 auto;min-height:0}#entries li{display:flex;align-items:center;gap:12px;padding:7px 0;border-bottom:1px solid var(--line)}#entries img{width:36px;height:36px;object-fit:contain;background:#fff;border-radius:9px;border:1px solid var(--line)}
#entries .who{display:flex;flex-direction:column;line-height:1.2;font-size:15px}#entries .who small{font-size:12px;color:var(--muted)}#entries strong{margin-left:auto;font-size:22px}
#notice{font-size:13px;color:#b2641f;text-align:center;margin:0 0 12px}#notice:empty{display:none}

@media(min-width:700px){:root{--side:32px;--stage:100px}.intro h1{font-size:38px}}
@media(max-height:700px){:root{--header:60px;--stage:64px;--bottom:168px}.intro h1{font-size:21px}header .logo img{height:34px}.hud strong{font-size:30px}.ring{width:56px;height:56px}.hud .ring strong{font-size:22px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s ease}}
.segmented{display:flex;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:3px;gap:3px}.segmented label,.segmented button{flex:1;position:relative;text-align:center;border:0;border-radius:11px;min-height:40px;display:flex;align-items:center;justify-content:center;font-size:14px;background:transparent;padding:0 8px;color:#4a4656;cursor:pointer}.segmented input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}.segmented label:has(input:checked),.segmented button.selected{background:var(--yellow);color:var(--ink);font-weight:700}.segmented label:focus-within{outline:3px solid var(--yellow);outline-offset:2px}
@media(max-height:700px){.player-card img{height:64px;width:64px}#entries li{padding:4px 0;gap:8px}#entries img{width:30px;height:30px}#entries strong{font-size:18px}#entries .who{font-size:14px}#entries .who small{font-size:11px}.reading h1,#leaderboard h1{font-size:22px;margin:4px 0 6px}.reading p,.reading li,#buy li{font-size:15px;line-height:1.35;margin:4px 0}.big-score{font-size:72px}.center .player-card{margin-bottom:6px}#avatar-grid{grid-template-columns:repeat(8,1fr)}}

/* Desktop browsers only (mouse/trackpad and a wide window): the cards take the full height on the left;
   headline, deck choice, Play, score and time sit in a column on the right. Touch devices — the iPhone/iPad
   app and phone browsers — never match this query, so their layout is untouched. Home and game keep one grid,
   so the cards stay in the same place on both screens. */
/* Wide layout (cards left, HUD/controls right): desktop with a mouse, and wide landscape touch screens
   such as an unfolded foldable (iPhone Duo inner display) or an iPad in landscape. */
@media (hover:hover) and (pointer:fine) and (min-width:900px), (min-width:900px) and (orientation:landscape) and (min-height:600px){
  /* Title-safe margins: on a big window nothing runs to the edge. Phones keep their tight edges. */
  :root{--edge-x:clamp(32px,5vw,96px);--edge-y:clamp(16px,4vh,56px)}
  #app{max-width:calc(1500px + 2 * var(--edge-x));padding:var(--edge-y) var(--edge-x)}
  .screen{height:calc(100vh - var(--header) - 2 * var(--edge-y));height:calc(100svh - var(--header) - 2 * var(--edge-y))}
  .sheet-panel{top:var(--edge-y);right:var(--edge-x)}
  #menu,#game{display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,26vw,360px);grid-template-rows:1fr auto auto 1fr;column-gap:clamp(16px,3vw,48px)}
  #preview,#menu-ghost,#board,#ghost{grid-column:1;grid-row:1/-1;height:auto;margin:4px 0 20px}
  #menu-ghost,#ghost{position:relative;top:auto;left:auto;right:auto}
  #menu .stage,#game .stage{grid-column:2;grid-row:2;height:auto}
  .menu-actions,#feedback{grid-column:2;grid-row:3;height:auto;max-width:none;width:100%}
  .menu-actions{padding:0;margin:20px 0 0}
  .intro{padding:0}
  .intro h1{font-size:clamp(28px,2.6vw,40px)}
  .hud{padding:0;justify-content:space-between}
  .hud strong{font-size:clamp(44px,4vw,60px)}
  .ring{width:clamp(72px,7vw,96px);height:clamp(72px,7vw,96px)}.hud .ring strong{font-size:clamp(30px,2.8vw,40px)}
  #feedback{margin:24px 0 0;font-size:17px;line-height:1.4}
}
/* Mouse affordance: a faint ring under the pointer on playable symbols (never on touch, where :hover sticks). */
@media (hover:hover) and (pointer:fine){#board .symbol:not(.found):not(.wrong):hover::after{background:var(--yellow);opacity:.35}}
/* Menu sheet (≡): slides in from the top right, mirrors the mobeecards.store header */
.sheet{position:fixed;inset:0;z-index:50}.sheet-backdrop{position:absolute;inset:0;background:rgba(42,41,48,.28);opacity:0;transition:opacity .18s}.sheet.open .sheet-backdrop{opacity:1}
.sheet-panel{position:absolute;top:calc(env(safe-area-inset-top) + 8px);right:8px;width:min(320px,calc(100% - 16px));background:#fff;border-radius:18px;box-shadow:0 12px 40px rgba(42,41,48,.22);padding:10px;display:flex;flex-direction:column;gap:4px;transform:translateY(-8px) scale(.98);opacity:0;transition:transform .18s,opacity .18s;transform-origin:top right}.sheet.open .sheet-panel{transform:none;opacity:1}
.sheet-player{display:flex;align-items:center;gap:12px;padding:8px 10px;border:0;background:var(--panel);border-radius:14px;text-align:left;min-height:0}.sheet-player img{width:52px;height:52px;object-fit:contain;display:block}.sheet-player span{display:flex;flex-direction:column;line-height:1.25}.sheet-player strong{font-size:16px;color:var(--ink)}.sheet-player small{font-size:12px;color:var(--muted)}
.sheet-lang{padding:6px 2px 2px}.sheet-lang .eyebrow{display:block;margin:0 8px 4px}.sheet-lang .segmented label,.sheet-lang .segmented button{min-height:36px;font-size:13px}
.sheet-item{display:block;width:100%;text-align:left;padding:12px 12px;border:0;background:none;border-radius:12px;font-size:16px;color:var(--ink);min-height:0}.sheet-item:active{background:var(--panel)}.sheet-item.shop{color:var(--red);font-weight:700}

.cta-cart{display:flex!important;align-items:center;justify-content:center;gap:10px;text-decoration:none}.cta-cart svg{width:22px;height:22px;fill:currentColor;flex-shrink:0}
.segmented label span{display:flex;flex-direction:column;line-height:1.15;padding:4px 0}.segmented label b{font-weight:inherit}.segmented label small{font-size:12px;font-weight:500;opacity:.75}.segmented label:has(input:checked) small{opacity:.85}
/* Deck colours follow the card borders: Easy is the green deck, Hard the yellow one. */
.segmented label:has(input[value="1"]:checked),#board-select button[data-board="ios"].selected{background:var(--green)}
.segmented label:has(input[value="2"]:checked),#board-select button[data-board="ios-standard"].selected{background:var(--yellow)}

/* Wide screens (laptop/desktop windows): avatars stop growing at ~100px; extra width adds columns instead.
   Phones and portrait iPads are below 900px and keep their fixed column count. */
@media (min-width:900px){#avatar-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}#avatars{max-width:1050px;margin:0 auto;width:100%}}
.sheet-footer{border-top:1px solid var(--line);margin-top:6px;padding:12px 12px 6px;display:flex;flex-direction:column;gap:10px}.sheet-mail{font-size:14px;color:var(--muted);text-decoration:none}.social{display:flex;gap:22px}.social a{color:#303133;display:block}.social svg{width:26px;height:26px;fill:currentColor;display:block}
.sheet-settings{display:flex;flex-direction:column;gap:2px;padding:2px 2px 4px}.sheet-settings fieldset{margin:0 0 6px}.sheet-settings .eyebrow{display:block;margin:0 8px 4px}.sheet-settings .segmented label{min-height:44px}.sheet-settings .segmented small{font-size:11px}
/* Low-key Møbee tints for the other selectors: language in warm sand, timed in a soft red, untimed in a soft green. */
.lang-pick button.selected{background:#efe3c6}
.segmented label:has(input[value="timed"]:checked){background:#f6cdbf}
.segmented label:has(input[value="untimed"]:checked){background:#e2e6cb}
.build{position:fixed;right:10px;bottom:calc(env(safe-area-inset-bottom) + 4px);margin:0;font-size:10px;color:#b4aec0;pointer-events:none;z-index:5}body.playing .build,body:has(#menu[hidden]) .build{display:none}

/* Player avatar in the header (once chosen); the head icon stays until then */
#player-btn img{display:block;width:34px;height:34px;object-fit:contain;padding:3px;background:#fff;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);box-shadow:inset 0 0 0 30px #fff}
#player-btn.has-avatar{padding:4px}#player-btn.has-avatar svg{display:none}
#player-btn.has-avatar{position:relative}#player-btn.has-avatar::before{content:"";position:absolute;width:38px;height:42px;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--yellow);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}#player-btn.has-avatar img{position:relative}
#avatar-done{display:block;width:100%;margin-top:auto;flex-shrink:0}
.link-btn{background:none;border:0;min-height:44px;font-size:15px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}

/* Leaderboard: your own rows */
#entries li.mine{position:relative;isolation:isolate;border-bottom-color:transparent}#entries li.mine::before{content:"";position:absolute;inset:-1px -12px 0;background:var(--terracotta);border-radius:12px;z-index:-1}#entries li.mine .who{font-weight:700}#entries li.mine .who small{font-weight:400}
/* Personal best on the results screen */
#results.best #verdict{color:#2f8a4a}
#final-score{position:relative;display:inline-block}
.burst{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none}
.burst i{position:absolute;left:-6px;top:-7px;width:12px;height:14px;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);opacity:0;animation:burst .9s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes burst{0%{opacity:1;transform:translate(0,0) scale(.6)}70%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(1) rotate(90deg)}}
@media(prefers-reduced-motion:no-preference){#results.best #final-score{animation:bestPop .5s cubic-bezier(.3,1.6,.5,1)}@keyframes bestPop{0%{transform:scale(.85)}60%{transform:scale(1.08)}100%{transform:scale(1)}}}

/* Your player: name field above the avatar grid */
#avatars .field-label{display:block;font-size:13px;font-weight:700;color:var(--muted);margin:8px 0 4px}
.name-input{width:100%;min-height:48px;padding:10px 14px;border:2px solid var(--line);border-radius:14px;background:#fff;font-size:18px;font-weight:600;color:var(--ink)}
.name-input:focus{outline:none;border-color:var(--yellow)}.name-input.invalid{border-color:var(--red)}
.name-error{margin:6px 0 0;font-size:14px;color:#c4472e}
#entries .who em.you{font-style:normal;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--ink);margin-left:6px;font-weight:700}#entries li.mine .who small{color:var(--ink)}
.build a{pointer-events:auto;color:inherit;text-decoration:none;padding:6px 2px}
/* ── Party mode ── */
.party-screen{max-width:480px;margin:0 auto;padding:0 8px 12px;width:100%;gap:14px;justify-content:flex-start;overflow-y:auto}
.party-screen h1{margin:6px 0 0;font-size:28px}
.party-screen .sub{margin:-6px 0 4px;font-size:16px;line-height:1.4;color:var(--muted)}
.party-screen .wide{display:block;width:100%;flex-shrink:0}
.party-screen .go:not(:disabled){background:var(--green)}
.party-screen button:disabled{opacity:.55;cursor:default}
.link-btn{border:0;background:none;min-height:40px;margin-top:4px;padding:6px 10px;color:var(--red);font-weight:700;font-size:16px}
.text-btn{border:0;background:none;color:var(--muted);font-weight:600;align-self:center;min-height:40px}
.hint{text-align:center;margin:-6px 0 0;font-size:14px;color:var(--muted)}
.waiting{margin:0;min-height:52px;display:grid;place-items:center;border:2px dashed var(--line);border-radius:14px;color:var(--muted);text-align:center;padding:6px 12px}
.waiting[hidden]{display:none}
.tiles{display:flex;gap:6px;justify-content:center;padding:0;border:0;background:none;min-height:0}
.tile{position:relative;width:46px;height:52px;display:grid;place-items:center;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:var(--t,var(--red));font:700 24px ui-rounded,-apple-system,sans-serif;color:var(--ink);isolation:isolate}
.tile::before{content:"";position:absolute;inset:4px;clip-path:inherit;background:#fff;z-index:-1}
.tile.y{--t:var(--yellow)}.tile.g{--t:var(--green)}.tile.empty{--t:var(--line)}.tile.empty::before{background:#faf8f3}
.tile.caret::after{content:"";width:2px;height:24px;background:var(--ink);animation:caret 1s steps(1) infinite}@keyframes caret{50%{opacity:0}}
.code-entry{position:relative}
.code-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;border:0}
.row{display:flex;justify-content:space-between;align-items:baseline;margin-top:4px}.row b{font-size:16px}.row span{font-size:14px;color:var(--muted)}
.seats{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.seat{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.seat .h{position:relative;width:58px;height:66px;display:grid;place-items:center;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:var(--green);isolation:isolate}
.seat .h::before{content:"";position:absolute;inset:4px;clip-path:inherit;background:#fff;z-index:-1}
.seat .h img{width:40px;height:40px;object-fit:contain}
.seat.me .h{background:var(--yellow)}.seat.open .h{background:var(--line)}.seat.open .h::before{background:var(--bg,#f6f4ee)}.seat.away{opacity:.5}
.seat small{font-size:12px;color:var(--muted);display:flex;flex-direction:column;align-items:center;line-height:1.15;max-width:100%;text-align:center;overflow-wrap:anywhere}
.seat small em{font-style:normal;font-size:9px;letter-spacing:1px;text-transform:uppercase;color:var(--ink);font-weight:700}.seat.me small{color:var(--ink);font-weight:700}.seat.open small{color:#b9b3a6}
.tag{position:absolute;top:-6px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;font-size:10px;font-weight:700;padding:1px 7px 2px;border-radius:99px;z-index:2}
/* In a party game the stage strip holds everyone's avatar and score; same height, so the cards don't move. */
.party-hud{display:none}
body.party .hud>.me{display:none}
body.party .party-hud{display:flex;gap:8px;align-items:center}
.party-hud .p{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;width:44px}
.party-hud .ph{position:relative;width:36px;height:41px;display:grid;place-items:center;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:var(--line);isolation:isolate}
.party-hud .ph::before{content:"";position:absolute;inset:3px;clip-path:inherit;background:#fff;z-index:-1}
.party-hud .ph img{width:26px;height:26px;object-fit:contain}
.party-hud .lead .ph{background:var(--green)}.party-hud .mine .ph{background:var(--yellow)}.party-hud .away{opacity:.45}
.party-hud .lead::before{content:"";position:absolute;top:-6px;width:11px;height:6px;background:var(--green);clip-path:polygon(0 100%,0 30%,25% 70%,50% 0,75% 70%,100% 30%,100% 100%)}
.party-hud b{font-size:20px;line-height:1;font-variant-numeric:tabular-nums}
.party-hud .pd{position:absolute;right:-8px;top:36px;font-size:12px;font-weight:800;opacity:0}.party-hud .pd.up{color:#2f8a4a}.party-hud .pd.down{color:var(--red)}
.party-hud .pd.go{animation:pd .9s ease-out}@keyframes pd{0%{opacity:0;transform:translateY(4px)}20%{opacity:1}100%{opacity:0;transform:translateY(-10px)}}
#board.locked{opacity:.55;filter:saturate(.5);transition:opacity .15s}
.banner{display:inline-flex;align-items:center;gap:10px;padding:5px 12px 5px 5px;border-radius:99px;background:#fff;border:2px solid var(--green);font-size:15px;font-weight:700;color:var(--ink)}
.banner.other{border-color:var(--red)}.banner img{width:30px;height:30px;object-fit:contain;border-radius:50%;background:#fff}.banner .next{font-weight:500;color:var(--muted)}
#feedback .count{font:800 40px ui-rounded,-apple-system,sans-serif;color:var(--ink)}
.stand{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.stand li{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:14px}
.stand li.first{border:2px solid var(--green);background:#f6f8e8}.stand li.me:not(.first){background:#fbf1ea}
.stand .rk{width:36px;text-align:center;font-weight:800;color:var(--muted)}.stand .medal-wrap{display:flex}.stand .medal{width:36px;height:44px;flex:none}
.stand img{width:40px;height:40px;object-fit:contain}
.stand .nm{flex:1;font-weight:600;min-width:0;overflow-wrap:anywhere}.stand .nm em{font-style:normal;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--ink);margin-left:6px}
.stand strong{font-size:26px}
.big{text-align:center}.big h1{margin:2px 0 0}

/* Your name under your picture in the score bar; names under every face in the party strip */
.hud .me-av{display:flex;flex-direction:column;align-items:center;gap:2px;max-width:76px}.hud .me-av small{font-size:11px;font-weight:600;color:var(--muted);max-width:76px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1}.hud .me-av small:empty{display:none}
.party-hud .p{width:52px}.party-hud .pn{display:block;max-width:52px;font-size:10px;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1}.party-hud .pd{top:48px}
/* Who's playing: one head vs three heads */
.players-pick label span{flex-direction:row;align-items:center;gap:7px}.players-pick .who-ico{width:20px;height:20px;fill:currentColor;flex:none}.players-pick label:last-child .who-ico{width:28px}
.segmented label:has(input[value="friends"]:checked){background:var(--yellow)}
.segmented label.disabled{opacity:.4;pointer-events:none}
/* Join with a code, folded into the room page */
.join-toggle{text-decoration:underline;text-underline-offset:3px}.room-join{display:flex;flex-direction:column;gap:8px;width:100%;margin-top:4px;padding-top:12px;border-top:1px solid var(--line)}.room-join[hidden]{display:none}.room-join .hint{margin:0}
.party-screen>*{flex-shrink:0}

/* Menu items with a picture: book, podium, cart */
.sheet-item{display:flex;align-items:center;gap:12px}.sheet-item .mi{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.sheet-item .mi.fill{fill:currentColor;stroke:none}.sheet-item .mi text{fill:currentColor;stroke:none;font:700 5.4px system-ui,-apple-system,sans-serif}
/* Joining: only the code field, high enough to stay above the keyboard */
#room.joining>:not(h1):not(.room-join){display:none!important}#room.joining .room-join{border-top:0;margin-top:0;padding-top:0}
.sheet-item .mi text{font-size:6.4px}
