/* Phone controller. Theme variables come from core/theme.js; --me is this player's color. */

:root { --me: var(--accent); --edge: 4px solid var(--ink); --lift: 0 6px 0 var(--ink); }
:root[data-theme="neon"] { --edge: 2px solid var(--me); --lift: 0 0 18px color-mix(in srgb, var(--me) 60%, transparent); }
:root[data-theme="paper"] { --edge: 0 solid transparent; --lift: 0 4px 0 rgba(46,42,38,.2), 0 12px 20px rgba(46,42,38,.2); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, main, header { touch-action: manipulation; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-weight: 800; overscroll-behavior: none;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; }
body[data-screen="play"] { background: var(--me); touch-action: none; }
:root[data-theme="neon"] body[data-screen="play"] { background: var(--bg); }
#view { min-height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }

main { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 18px 18px 22px; }
main.center { justify-content: center; align-items: center; text-align: center; }
h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1.05; }
:root[data-theme="neon"] h1 { font-size: 22px; line-height: 1.4; color: var(--accent); }
.logo { font-size: 52px; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); text-align: center; margin: 24px 0 8px; text-transform: uppercase; }
:root[data-theme="neon"] .logo { -webkit-text-stroke: 0; text-shadow: 0 0 12px var(--bad); color: #fff; font-size: 28px; }
:root[data-theme="paper"] .logo { -webkit-text-stroke: 0; text-shadow: none; color: var(--accentText); background: var(--accent); align-self: center; padding: 4px 22px 10px; transform: rotate(-2deg); text-transform: none; }
p { margin: 0; font-size: 18px; }
.sub { color: var(--inkSoft); font-size: 17px; }
.big { font-family: var(--font-display); font-size: 40px; line-height: 1.1; }
:root[data-theme="neon"] .big { font-size: 22px; line-height: 1.5; color: var(--accent); }
.big2 { font-family: var(--font-display); font-size: 30px; }
.place { font-family: var(--font-display); font-size: 96px; line-height: 1; color: var(--me); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
:root[data-theme="neon"] .place { -webkit-text-stroke: 0; text-shadow: 0 0 16px var(--me); font-size: 56px; }
:root[data-theme="paper"] .place { -webkit-text-stroke: 0; }
.gain { color: var(--good); font-size: 22px; }
.warn { background: var(--bad); color: #fff; padding: 10px 14px; border-radius: 12px; font-size: 16px; }

.me { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--surface); border-bottom: var(--edge); }
.me .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--me); border: 3px solid var(--ink); flex: none; }
:root[data-theme="neon"] .me .dot { border: 0; box-shadow: 0 0 10px var(--me); border-radius: 0; width: 16px; height: 16px; }
:root[data-theme="paper"] .me .dot { border: 0; }
.me .nm { font-size: 22px; flex: 1; }
:root[data-theme="neon"] .me .nm { color: var(--me); }
.me .tot { font-size: 16px; color: var(--inkSoft); }

.joinform { display: flex; flex-direction: column; gap: 10px; }
.joinform label { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.joinform input { font: inherit; font-size: 28px; padding: 12px 16px; border-radius: 16px; border: var(--edge); background: var(--surface); color: var(--ink); min-height: 56px; }
:root[data-theme="neon"] .joinform input { border: 2px solid var(--accent); }
:root[data-theme="paper"] .joinform input { border: 2px dashed var(--ink); }
#code { text-transform: uppercase; letter-spacing: 10px; font-family: var(--font-display); font-weight: 400; }

.btn { font: inherit; font-family: var(--font-body); color: var(--ink); background: var(--surface); border: var(--edge); border-radius: 18px;
  box-shadow: var(--lift); min-height: 48px; padding: 10px 16px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn.small { font-size: 16px; min-height: 46px; box-shadow: none; }
.btn.big { font-size: 22px; min-height: 64px; }
.btn.huge { font-family: var(--font-display); font-weight: 400; font-size: 34px; min-height: 96px; background: var(--gold); margin-top: 6px; }
.btn.on { background: var(--good); color: #fff; }
.btn:disabled { opacity: .45; }
.btn.down { transform: translateY(5px); box-shadow: none; }
:root[data-theme="neon"] .btn { background: transparent; color: #fff; border: 2px solid var(--me); box-shadow: 0 0 12px color-mix(in srgb, var(--me) 45%, transparent); border-radius: 0; }
:root[data-theme="neon"] .btn.huge { color: #fff; font-size: 22px; }
:root[data-theme="paper"] .btn { border-radius: 4px; }
:root[data-theme="paper"] .btn.huge { background: var(--accent); color: var(--accentText); }

.picks { display: flex; flex-direction: column; gap: 12px; }
.pick { font: inherit; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 18px; background: var(--surface); color: var(--ink);
  border: var(--edge); box-shadow: var(--lift); cursor: pointer; min-height: 72px; }
.pick b { display: block; font-size: 22px; font-family: var(--font-display); font-weight: 400; }
.pick small { display: block; font-size: 15px; color: var(--inkSoft); }
.pick:disabled { opacity: .45; box-shadow: none; }
:root[data-theme="neon"] .pick { background: none; color: #fff; border: 2px solid var(--accent); border-radius: 0; box-shadow: none; }
:root[data-theme="neon"] .pick b { font-size: 13px; line-height: 1.6; }

.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 18px; }

.aimstep { background: var(--surface); border: var(--edge); border-radius: 16px; padding: 12px 14px; font-size: 16px; display: flex; flex-direction: column; gap: 4px; }
.aimstep b { font-size: 19px; }
:root[data-theme="neon"] .aimstep { background: none; border: 2px solid var(--accent); border-radius: 0; }
.btn.fire { background: var(--me); color: var(--ink); min-height: 110px; font-size: 28px; }
:root[data-theme="neon"] .btn.fire { background: none; color: #fff; }
.seg { display: flex; align-items: center; gap: 8px; }
.seg span { font-size: 14px; text-transform: uppercase; flex: none; }
.seg .btn { flex: 1; padding: 6px 4px; }
.seg .btn.on { background: var(--ink); color: var(--bg); }
:root[data-theme="neon"] .seg .btn.on { background: var(--me); color: var(--bg); }

/* play layout */
.layout { gap: 14px; }
.w-row { display: flex; gap: 12px; align-items: stretch; }
.w-row > * { flex: 1; }
.w-col { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.w-aim { display: flex; flex-direction: column; gap: 10px; }
.w-aim .btn { align-self: flex-end; }
.layout .btn.huge { flex: 1; flex-direction: column; font-size: 40px; min-height: 260px; border-radius: 32px; background: var(--gold); box-shadow: 0 10px 0 var(--ink); }
.layout .btn.huge .ic { width: 110px; height: 110px; display: block; }
.layout .btn.huge .ic svg { width: 100%; height: 100%; }
.layout .btn.huge.down { transform: translateY(8px); box-shadow: 0 2px 0 var(--ink); }
:root[data-theme="neon"] .layout .btn.huge { background: radial-gradient(circle, color-mix(in srgb, var(--me) 25%, transparent), transparent 70%); border: 3px solid var(--me); box-shadow: 0 0 26px color-mix(in srgb, var(--me) 55%, transparent); color: #fff; font-size: 26px; }
:root[data-theme="paper"] .layout .btn.huge { background: var(--surface); color: var(--ink); box-shadow: var(--lift); }
.pulse { animation: pulse .6s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(.96); filter: brightness(1.15); } }
.w-meter { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: var(--edge); border-radius: 18px; padding: 10px 14px; }
:root[data-theme="neon"] .w-meter { background: none; border: 2px solid var(--open); border-radius: 0; }
.w-meter .ml { font-size: 15px; text-transform: uppercase; }
.w-meter .mv { display: flex; gap: 5px; }
.w-meter .mv i { width: 13px; height: 28px; border-radius: 6px 6px 3px 3px; border: 3px solid var(--ink); background: var(--open); }
.w-meter .mv i.on { background: var(--gold); }
:root[data-theme="neon"] .w-meter .mv i { border: 0; border-radius: 0; background: var(--open); }
:root[data-theme="neon"] .w-meter .mv i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.w-meter .mv.bar { flex: 1; height: 18px; background: var(--open); border-radius: 9px; overflow: hidden; }
.w-meter .mv.bar b { display: block; height: 100%; background: var(--gold); }
.w-text { font-family: var(--font-display); font-size: 22px; display: flex; align-items: center; justify-content: center; text-align: center; }
.w-text.big { font-size: 34px; }
:root[data-theme="neon"] .w-text { font-size: 14px; color: var(--gold); }
.w-hint { font-size: 16px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink); }
:root[data-theme="neon"] .w-hint { color: var(--inkSoft); }
.w-dpad { display: grid; grid-template-columns: repeat(3, 76px); grid-template-rows: repeat(3, 76px); gap: 6px; justify-content: center; }
.w-dpad .btn { padding: 0; min-height: 0; border-radius: 16px; }
.w-dpad .d-up { grid-column: 2; grid-row: 1; } .w-dpad .d-left { grid-column: 1; grid-row: 2; }
.w-dpad .d-right { grid-column: 3; grid-row: 2; } .w-dpad .d-down { grid-column: 2; grid-row: 3; }
.w-pads { display: grid; gap: 14px; flex: 1; align-content: center; }
.pad { font: inherit; font-family: var(--font-display); font-size: 30px; border: var(--edge); border-radius: 50%; background: var(--pad); color: var(--pad-text);
  box-shadow: 0 8px 0 var(--ink); touch-action: none; cursor: pointer; width: 100%; aspect-ratio: 1; align-self: center; justify-self: center; max-width: 220px; }
.pad.down { transform: translateY(6px); box-shadow: 0 2px 0 var(--ink); filter: brightness(1.15); }
.pad.lit { outline: 6px solid var(--light); outline-offset: -14px; animation: pulse .35s ease-in-out infinite alternate; }
:root[data-theme="neon"] .pad { background: transparent; color: var(--pad); border: 3px solid var(--pad); box-shadow: 0 0 18px color-mix(in srgb, var(--pad) 55%, transparent); }
:root[data-theme="neon"] .pad.down { background: color-mix(in srgb, var(--pad) 35%, transparent); }
:root[data-theme="paper"] .pad { box-shadow: var(--lift); }
.w-choices { display: flex; flex-direction: column; gap: 10px; }
.w-pad { min-height: 150px; border: 3px dashed var(--ink); border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 60%, transparent); touch-action: none; font-size: 16px; color: var(--inkSoft); }
:root[data-theme="neon"] .w-pad { border-color: var(--accent); }

.banner { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 16px; text-align: center; z-index: 5; }
body.offline .banner.off { display: block; }
body.hostaway:not(.offline) .banner.away { display: block; }
body.flash::after { content: ''; position: fixed; inset: 0; border: 10px solid #fff; pointer-events: none; animation: fl .18s ease-out forwards; }
@keyframes fl { to { opacity: 0; } }

/* ---- party layer ---- */
.me .sym { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--me); flex: none; }
.me .sym svg { display: block; }
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.opts h2 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tog { font: inherit; text-align: left; padding: 10px 12px; border-radius: 6px; border: 2px dashed var(--inkSoft); background: transparent; color: var(--ink); min-height: 58px; cursor: pointer; }
.tog b { display: block; font-size: 17px; } .tog small { display: block; font-size: 13px; color: var(--inkSoft); font-weight: 700; }
.tog[aria-pressed="true"] { background: var(--accent); color: var(--accentText); border: 2px solid var(--accent); transform: rotate(-1deg); box-shadow: var(--lift); }
.tog[aria-pressed="true"] small { color: var(--accentText); }
.btn.night { background: var(--gold); min-height: 60px; font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.teamtag { align-self: flex-start; color: #FFF8EC; padding: 4px 16px; font-size: 18px; transform: rotate(-2deg); box-shadow: var(--lift); }
.modline { font-size: 16px; color: var(--inkSoft); }
.btn.cheer { min-height: 150px; width: 100%; font-family: var(--font-display); font-weight: 400; font-size: 40px; background: var(--me); color: #FFF8EC; margin-top: 12px; }
.layout .btn.huge { min-height: 150px; }
.w-meter .mv.bar.warn b { background: var(--bad); }
.w-meter .mv.bar b { transition: width .12s linear; }
.w-moves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1; }
.w-moves .btn { flex-direction: column; gap: 2px; min-height: 84px; font-family: var(--font-display); font-weight: 400; font-size: 26px; box-shadow: none; }
.w-moves .btn small { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--inkSoft); }
.w-moves .btn.call { outline: 5px solid var(--gold); outline-offset: -5px; }
.w-moves .btn.on { background: var(--me); color: #FFF8EC; transform: scale(0.97); }
.w-moves .btn.on small { color: #FFF8EC; }
.w-moves .btn:last-child:nth-child(odd) { grid-column: span 2; }
.w-text { min-height: 30px; }
@media (max-height: 700px) { .w-dpad { grid-template-columns: repeat(3, 62px); grid-template-rows: repeat(3, 62px); } .layout .btn.huge { min-height: 120px; font-size: 30px; } }
.layout .w-row .btn.big { min-height: 104px; font-family: var(--font-display); font-weight: 400; font-size: 24px; }

/* ---- practice, menus, new widgets ---- */
main.practice { gap: 10px; padding-bottom: 12px; }
.phead { display: flex; flex-direction: column; gap: 4px; font-size: 17px; color: var(--ink); }
.phead b { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.phead .teamtag { font-size: 14px; } .phead .modline { font-size: 13px; color: var(--ink); }
main.practice #pad { flex: 1; display: flex; flex-direction: column; }
main.practice .layout .btn.huge { min-height: 110px; }
.readybar { display: flex; gap: 8px; position: sticky; bottom: 0; z-index: 4; background: var(--bg); padding: 8px 0 calc(4px + env(safe-area-inset-bottom)); margin-bottom: -4px; }
.readybar #ready { flex: 1; background: var(--gold); min-height: 58px; font-family: var(--font-display); font-weight: 400; }
.readybar #ready.on { background: var(--good); color: #fff; }
.stats { font-family: var(--font-display); font-size: 22px; background: var(--surface); padding: 8px 14px; align-self: flex-start; transform: rotate(-1deg); box-shadow: var(--lift); }
.mbtn { flex-direction: column; gap: 2px; width: 100%; }
.mbtn small { font-family: var(--font-body); font-size: 14px; font-weight: 700; opacity: .8; }
.w-tilt { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.w-stick { flex: 1; min-height: 200px; position: relative; border: 3px dashed var(--ink); border-radius: 22px; background: color-mix(in srgb, var(--surface) 60%, transparent); touch-action: none; display: grid; place-items: center; font-size: 15px; color: var(--inkSoft); text-align: center; }
.w-stick i { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px; border-radius: 50%; background: var(--surface); border: var(--edge); box-shadow: var(--lift); pointer-events: none; }
.w-blow { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.w-blow .lvl { height: 26px; background: var(--open); border: var(--edge); border-radius: 13px; overflow: hidden; }
.w-blow .lvl b { display: block; height: 100%; width: 0; background: var(--gold); transition: width .1s linear; }
.w-grid { display: grid; gap: 8px; flex: 1; min-height: 0; grid-auto-rows: minmax(52px, 1fr); }
.w-grid button { font: inherit; font-family: var(--font-display); font-size: 26px; border-radius: 10px; border: 2px dashed var(--inkSoft); background: var(--surface); color: var(--ink); min-height: 60px; cursor: pointer; }
.w-grid button.gold { background: var(--gold); } .w-grid button.crab { background: var(--bad); color: #fff; } .w-grid button.empty { background: var(--open); color: var(--inkSoft); }
.w-grid button.gem { background: #7A4E7E; color: #fff; }
.w-grid button.dug { opacity: .25; border-style: solid; } .w-grid button.mine { outline: 5px solid var(--ink); outline-offset: -5px; }
.w-grid.locked button { pointer-events: none; }

.strip { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.strip i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-size: 20px; color: #FFF8EC; border: 2px solid #FFF8EC; box-shadow: 0 2px 0 rgba(46,42,38,.2); }
.strip i:first-of-type { width: 42px; height: 42px; }
.sp-blue, .sp-start { background: #2F6F8F; } .sp-red { background: #B84E36; } .sp-item { background: #E2B33C; } .sp-chance { background: #7A4E7E; } .sp-stand { background: #D8553C; outline: 3px solid #E2B33C; }

/* motion guide */
.w-guide { background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 14px; padding: 6px 8px; font-size: 15px; --mg: 46px; }
.w-moves .btn { flex-direction: row; gap: 8px; justify-content: flex-start; padding-left: 10px; text-align: left; --mg: 54px; }
.w-moves .btn .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.w-moves .btn:last-child:nth-child(odd) { justify-content: center; }
.w-stick span { align-self: start; margin-top: 12px; }

.mc-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: 16px; }
.mc-row .lvl { height: 22px; background: #fff; border: 2px solid rgba(46,42,38,.18); border-radius: 11px; overflow: hidden; }
.mc-row .lvl b { display: block; height: 100%; width: 0; background: var(--me, #E2B33C); transition: width .1s linear; }

/* your look */
.lookcard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface, #FFF8EC); border: 0; border-radius: 16px; padding: 8px 12px; box-shadow: 0 3px 0 rgba(46,42,38,.12); font: inherit; color: inherit; }
.lookcard b { display: block; font-size: 18px; } .lookcard small { opacity: .7; }
.lk-prev { display: flex; justify-content: center; margin: 4px 0 6px; }
.lk-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lk-col, .lk-skin { width: 52px; height: 52px; border-radius: 50%; border: 4px solid #FFF8EC; background: var(--c); box-shadow: 0 2px 0 rgba(46,42,38,.2); display: grid; place-items: center; }
.lk-col[disabled] { opacity: .25; } .lk-col.on, .lk-skin.on, .lk-hat.on { outline: 4px solid var(--ink, #2E2A26); outline-offset: 2px; }
.lk-hat { width: 76px; padding: 4px 2px; border-radius: 14px; border: 0; background: #FFF8EC; display: flex; flex-direction: column; align-items: center; font: inherit; color: inherit; box-shadow: 0 2px 0 rgba(46,42,38,.15); }
.lk-hat small { font-size: 12px; }
main h2 { font-size: 17px; margin: 12px 0 6px; }

.w-lean { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; flex: none; }
.w-lean .track { position: relative; height: 18px; border-radius: 9px; background: color-mix(in srgb, var(--surface, #FFF8EC) 70%, transparent); border: 2px solid rgba(46,42,38,.15); }
.w-lean .track::after { content: ''; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 2px; background: rgba(46,42,38,.25); }
.w-lean b { position: absolute; top: -5px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--me, #E2B33C); border: 3px solid #FFF8EC; left: 50%; transition: left .08s linear; }
.w-lean small { grid-column: 1 / -1; text-align: center; opacity: .75; }

/* Emote dock: reactions that show up on the TV. Sticks to the bottom of the screen. */
.emotes { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg, #F6EBCF) 88%, transparent); backdrop-filter: blur(6px); border-top: 2px solid rgba(46,42,38,.08); z-index: 3; }
.emo { appearance: none; border: 0; border-radius: 16px; background: var(--surface, #FFF8EC); box-shadow: 0 3px 0 rgba(46,42,38,.16); padding: 6px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 0; font: inherit; color: inherit; touch-action: manipulation; }
.emo span { font-size: 30px; line-height: 1.1; }
.emo img { width: 44px; height: 44px; display: block; margin: -2px 0 -1px; }
.emo small { font-size: 11px; opacity: .7; }
.emo:active, .emo.sent { animation: emo-pop .4s cubic-bezier(.3,1.7,.5,1); background: var(--me); color: #FFF8EC; }
@keyframes emo-pop { 0% { transform: scale(.85); } 50% { transform: scale(1.15) rotate(-4deg); } 100% { transform: scale(1); } }
.award { background: var(--surface, #FFF8EC); border-radius: 16px; padding: 10px 16px; box-shadow: 0 3px 0 rgba(46,42,38,.14); display: flex; flex-direction: column; border-left: 8px solid var(--me); text-align: left; width: 100%; }
.award small { opacity: .75; font-weight: 700; }
.w-grid button { position: relative; }
.w-grid button .co { position: absolute; left: 6px; top: 3px; font-family: var(--font-body); font-style: normal; font-size: 12px; opacity: .55; }
.fans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.btn.fan { background: var(--c); color: #FFF8EC; min-height: 84px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; }
.btn.fan.sent { animation: emo-pop .4s cubic-bezier(.3,1.7,.5,1); }
.photo-over { position: fixed; inset: 0; z-index: 20; background: rgba(46,42,38,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; color: #FFF8EC; text-align: center; }
.photo-over img { max-width: 100%; max-height: 62vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); -webkit-touch-callout: default; }
.photo-over a.btn { text-decoration: none; display: flex; align-items: center; justify-content: center; width: 100%; }

/* ---------- pause & settings ---------- */
.me .gear { appearance: none; border: 0; background: transparent; color: var(--ink); width: 44px; height: 44px; margin: -8px -10px -8px 0; display: grid; place-items: center; border-radius: 50%; flex: none; }
.me .gear:active { background: color-mix(in srgb, var(--ink) 12%, transparent); transform: rotate(40deg); }
.sheet-over { position: fixed; inset: 0; z-index: 30; background: rgba(46,42,38,.55); display: flex; align-items: flex-end; justify-content: center; animation: sheetfade .18s ease-out; }
.sheet { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: var(--bg); color: var(--ink); border-radius: 26px 26px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -10px 30px rgba(0,0,0,.25); animation: sheetup .26s cubic-bezier(.2,1.3,.4,1); }
.sheet h1 { text-align: center; }
.sheet h2 { margin: 8px 0 0; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--inkSoft); }
.sheet .sub.tight { margin: -2px 0 2px; font-size: 14px; }
.sheet .warnbtn { background: #E2B33C; color: #2E2A26; }
@keyframes sheetup { from { transform: translateY(60%); } }
@keyframes sheetfade { from { opacity: 0; } }
.motionbar { position: fixed; left: 10px; right: 10px; top: calc(8px + env(safe-area-inset-top)); z-index: 25; appearance: none; border: 0; border-radius: 16px; padding: 14px 16px; background: #E2B33C; color: #2E2A26; font: inherit; font-size: 17px; box-shadow: 0 6px 0 rgba(46,42,38,.25); animation: mbpulse 1.6s ease-in-out infinite; }
@keyframes mbpulse { 50% { transform: scale(1.02); } }

/* aim trackpad (no gyro, or touch only): bigger, with a dot showing where you're aiming */
.w-aim.touchpad { flex: 1; min-height: 200px; }
.w-aim.touchpad .w-pad { flex: 1; min-height: 220px; position: relative; overflow: hidden; }
.w-pad { position: relative; text-align: center; line-height: 1.3; }
.w-pad small { font-size: 13px; opacity: .8; }
.w-pad .dot { position: absolute; left: calc(50% - 14px); top: calc(50% - 14px); width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--ink); background: color-mix(in srgb, var(--me) 70%, transparent); pointer-events: none; transition: transform .05s linear; }
.w-pad.down { background: color-mix(in srgb, var(--surface) 85%, transparent); }
.w-lean.off, .w-blow.off .lvl { opacity: .45; }
.w-aim.touchpad .w-pad > span { position: absolute; top: 10px; left: 0; right: 0; pointer-events: none; }

/* Tablets (an iPad as a controller): keep the controls phone-sized and centred, so grids and
   pads don't stretch into giant slabs and the Ready bar always has room. */
@media (min-width: 700px) {
  main { width: 100%; max-width: 640px; margin-inline: auto; box-sizing: border-box; }
  .w-grid { flex: none; grid-auto-rows: minmax(64px, 104px); }
}

.btn.danger { color: var(--bad); } .btn.danger.armed { background: var(--bad); color: #fff; }
.sub.quiet { opacity: .7; font-size: 14px; margin-top: auto; }
.legal { font-size: 13px; line-height: 1.45; opacity: .7; text-align: center; margin: 14px 0 0; font-weight: 700; }
.legal a { color: inherit; }
.roomline { margin: 2px 0 4px; font-size: 16px; text-align: center; } .roomline b { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: 3px; } .roomline small { display: block; font-size: 13px; opacity: .65; }
.teamcard { background: var(--surface); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; text-align: center; width: 100%; box-sizing: border-box; }
.teamcard > b { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.teambtn { flex-direction: column; gap: 2px; border: 3px solid var(--tc) !important; background: var(--bg) !important; color: var(--ink) !important; min-height: 84px; }
.teambtn span { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--tc); } .teambtn small { font-size: 12px; opacity: .75; line-height: 1.2; }
.teambtn.on { background: var(--tc) !important; color: #fff !important; } .teambtn.on span { color: #fff; }
.tnote { font-size: 12px; opacity: .65; }
.teamtag.big { align-self: center; font-size: 26px; font-family: var(--font-display); font-weight: 400; padding: 8px 24px; border-radius: 14px; }
.aimbar { gap: 8px; } .aimbar .btn { flex: 1; }

/* Captain's lobby: party modes, then games filtered by shelf. */
h2.sec { margin: 14px 0 2px; font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode { font: inherit; text-align: left; padding: 12px 14px; min-height: 72px; border-radius: 16px; border: 0; background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 rgba(46,42,38,.18); }
.mode b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.1; }
.mode small { display: block; font-size: 14px; line-height: 1.25; margin-top: 3px; }
.mode:disabled { opacity: .45; box-shadow: none; }
.mode:active { transform: translateY(2px); box-shadow: none; }
/* Party modes come in sections: the big modes as coloured cards (the TV's colours), playlists slimmer. */
h3.msub { margin: 12px 2px 6px; font: 800 13px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.mode { position: relative; display: flex; align-items: flex-start; gap: 10px; }
.mode > span { min-width: 0; }
.mode svg { width: 26px; height: 26px; flex: none; margin-top: 1px; }
.mode.wide { grid-column: 1 / -1; }
.modes.g-big .mode { min-height: 86px; }
.modes.g-night .mode { min-height: 60px; padding: 10px 12px; align-items: center; }
.modes.g-night .mode svg { width: 22px; height: 22px; }
.modes.g-night .mode b { font-size: 19px; }
.modes.g-big .mode.c0:not(.locked) { background: var(--p0); color: var(--p0-text); }
.modes.g-big .mode.c1:not(.locked) { background: var(--p4); color: var(--p4-text); }
.modes.g-big .mode.c2:not(.locked) { background: var(--p1); color: var(--p1-text); }
.modes.g-big .mode.c3:not(.locked) { background: var(--p2); color: var(--p2-text); }
.modes.g-big .mode.c4:not(.locked) { background: var(--p3); color: var(--p3-text); }
.modes.g-big .mode.c5:not(.locked) { background: var(--p5); color: var(--p5-text); }
.modes.g-big .mode.c6:not(.locked) { background: var(--p6); color: var(--p6-text); }
.modes.g-big .mode.c7:not(.locked) { background: var(--p7); color: var(--p7-text); }
.mode .mbadge { position: absolute; top: -8px; right: 10px; font: 800 12px/1 var(--font-body); font-style: normal; background: var(--surface); color: var(--ink); padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 0 rgba(46,42,38,.25); transform: rotate(3deg); }
:root[data-theme="neon"] .modes .mode { background: none !important; color: #fff !important; }
.shelfbar { display: flex; flex-wrap: wrap; gap: 6px; }
.shelfchip { font: inherit; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); }
.shelfchip svg { width: 18px; height: 18px; }
.shelfchip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
:root[data-theme="neon"] .mode { background: none; color: #fff; border: 2px solid var(--gold); border-radius: 0; }

/* The audience */
header.me.aud { --me: #7A4E7E; }
header.me.aud .sym { font-size: 22px; line-height: 1; }
.votes { display: flex; flex-direction: column; gap: 8px; }
.vote { font: inherit; display: flex; align-items: center; gap: 12px; text-align: left; min-height: 60px; padding: 10px 14px; border-radius: 16px; border: 3px solid transparent; background: var(--surface); color: var(--ink); box-shadow: var(--lift); }
.vote b { flex: 1; font-family: var(--font-display); font-weight: 400; font-size: 21px; }
.vote i { font-style: normal; background: #7A4E7E; color: #FFF8EC; border-radius: 999px; padding: 3px 10px; font-size: 15px; }
.vote .vs2 { width: 36px; height: 36px; border-radius: 50%; background: var(--c); display: grid; place-items: center; flex: none; }
.vote.on { border-color: #7A4E7E; background: color-mix(in srgb, #7A4E7E 14%, var(--surface)); }
.vote.on b::after { content: '  ✓ your vote'; font-family: var(--font-body); font-size: 14px; }
.crowdpick { background: #7A4E7E; color: #FFF8EC; }
.crowdpick small { color: #F3E6F0; }
.crowdpick .hearts { font-size: 30px; width: 34px; text-align: center; }
.ptoast { position: fixed; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50; background: var(--ink); color: var(--surface); padding: 14px 16px; border-radius: 14px; font-size: 17px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Earned hats and dice */
.lk-hat { position: relative; }
.lk-hat.locked canvas { filter: grayscale(1) brightness(.75); opacity: .55; }
.lk-hat.locked small { opacity: .7; }
.lk-hat .lock { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: 16px; }
.lk-die canvas { margin: 3px 0; }
.sub.center { text-align: center; }
.unlock { position: fixed; left: 12px; right: 12px; top: calc(64px + env(safe-area-inset-top)); z-index: 300; display: flex; justify-content: center; pointer-events: none; animation: ufade .25s; }
.unlock .ucard { pointer-events: auto; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 12px 14px; max-width: 420px; width: 100%; text-align: left; box-shadow: 0 14px 40px rgba(0,0,0,.35); border: 3px solid var(--gold, #E2B33C); animation: upop .5s cubic-bezier(.2,1.6,.4,1); }
.unlock .uprize { grid-row: span 3; display: flex; justify-content: center; }
.unlock .lbl { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--inkSoft); }
.unlock h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.unlock .sub { margin: 0; font-size: 14px; }
.unlock .btn { grid-column: 1 / -1; width: 100%; margin-top: 6px; min-height: 48px; }
@keyframes upop { from { transform: scale(.5) rotate(-6deg); } }
@keyframes ufade { from { opacity: 0; } }
.roster { display: flex; flex-direction: column; gap: 6px; }
.rrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 2px dashed rgba(46,42,38,.12); font-size: 18px; }
.rrow small { opacity: .6; }
/* Vote to skip the coming game (board, Game Night, tournament) */
.skipbox { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 10px auto 4px; text-align: center; }
.skipbox .btn { min-height: 56px; }
.skipbox .btn.on { background: var(--accent); color: var(--accentText); }
.skipbox small { font-size: 14px; font-weight: 700; color: var(--inkSoft); }

/* Free demo: the captain's note, full-game tags, and the key box */
.democard { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #F3D98A; color: #2E2A26; border-radius: 16px; padding: 12px 14px; margin: 4px 0 12px; box-shadow: inset 0 0 0 2px #9A7222; }
.democard b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.democard small { display: block; font-size: 14px; line-height: 1.3; }
.democard .btn { flex: none; width: auto; }
.pick.locked { opacity: .72; }
.pick.locked small { color: #8A6420; font-weight: 800; }
.keyform { display: grid; gap: 12px; margin: 8px 0 6px; }
.keyform input { min-height: 60px; padding: 10px 14px; font: 700 20px/1 'Courier New', ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; border: 3px solid var(--ink); border-radius: 14px; background: #fff; color: #2E2A26; width: 100%; box-sizing: border-box; }
.mode.locked { background: #EADCB8; box-shadow: inset 0 0 0 2px #C9B27A; }
.mode.locked small { color: #8A6420; font-weight: 800; opacity: 1; }

/* ---- the captain's game list: two columns of compact tiles (41 games in a third of the scrolling) ---- */
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.picks .pick { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px 12px; min-height: 0; border-radius: 16px; }
.picks .pick > svg, .picks .pick > .ic { width: 26px; height: 26px; flex: none; }
.picks .pick b { font-size: 18px; line-height: 1.1; }
.picks .pick small { font-size: 13px; line-height: 1.25; margin-top: 2px; }
:root[data-theme="neon"] .picks .pick b { font-size: 11px; }

/* ---- short screens (an iPhone SE or mini with the browser's bars showing): the practice screen fits ---- */
@media (max-height: 600px) {
  main.practice { gap: 6px; padding-bottom: 6px; }
  .phead { gap: 2px; font-size: 15px; } .phead b { font-size: 19px; }
  main.practice .layout { gap: 8px; }
  main.practice .layout .btn.huge { min-height: 84px; font-size: 26px; border-radius: 24px; }
  main.practice .w-dpad { grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 52px); }
  .readybar { padding-top: 6px; } .readybar #ready { min-height: 50px; }
}

/* ---- Kart Grand Prix garage (phone/garage.js) ---- */
main.garage { gap: 10px; padding-bottom: 0; }
.gk-hero { display: flex; flex-direction: column; align-items: center; background: var(--surface); border-radius: 22px; padding: 10px 10px 6px; box-shadow: var(--lift); }
.gk-hero svg { max-width: 70%; height: auto; animation: gk-bob 1.6s ease-in-out infinite; }
@keyframes gk-bob { 50% { transform: translateY(-3px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .gk-hero svg { animation: none; } }
.gk-name { font-family: var(--font-display); font-size: 20px; text-align: center; }
.gk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 14px; font-weight: 700; }
.gk-stat { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.gk-stat i { display: flex; gap: 2px; }
.gk-stat b { width: 11px; height: 11px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 15%, transparent); }
.gk-stat b.on { background: var(--me); }
.gk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; }
.gk-tab { font: inherit; font-family: var(--font-display); font-size: 20px; padding: 10px; background: var(--surface); color: var(--ink); border: 0; }
.gk-tab b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 15px; margin-right: 4px; }
.gk-tab.on { background: var(--me); color: #FFF8EC; }
.gk-tab.on b { background: #FFF8EC; color: var(--me); }
.gk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gk-card.btn { flex-direction: column; gap: 2px; min-height: 150px; padding: 8px; position: relative; box-shadow: none; border: 3px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.gk-card span { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.1; }
.gk-card small { font-size: 13px; font-weight: 700; opacity: .75; }
.gk-card svg { width: 100%; max-width: 120px; height: auto; }
.gk-card.on, .gk-card.on small { border-color: var(--me); background: color-mix(in srgb, var(--me) 16%, var(--surface)); color: var(--ink); transform: scale(0.98); }
.gk-card.on small { background: none; transform: none; }
.gk-card em { position: absolute; top: 6px; right: 8px; font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--me); color: #FFF8EC; display: grid; place-items: center; font-weight: 900; }
.gk-grid .gk-card:last-child:nth-child(odd) { grid-column: span 2; }
.garage .readybar .btn { flex: 1; min-height: 62px; font-family: var(--font-display); font-weight: 400; }
.garage .readybar .gk-next, .garage .readybar .gk-go { background: var(--gold); }
.garage .readybar .gk-back { flex: 0 0 34%; }

/* Your own questions (the captain's editor). */
.oqform { display: grid; gap: 12px; margin: 8px 0 6px; }
.oqform label { display: grid; gap: 4px; font-weight: 800; }
.oqform label small { font-weight: 700; opacity: .7; font-size: 13px; }
.oqform input { min-height: 52px; padding: 10px 12px; font: 700 17px/1.2 inherit; font-family: inherit; border: 3px solid var(--ink); border-radius: 14px; background: #fff; color: #2E2A26; width: 100%; box-sizing: border-box; }
.oqform .seg button { flex: 1; min-height: 46px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: #2E2A26; font: inherit; font-weight: 800; }
.oqform .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.oqlist { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 8px; }
.oqlist li { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: rgba(255,255,255,.6); border-radius: 12px; padding: 8px 10px; }
.oqlist li span { display: grid; gap: 2px; } .oqlist small { opacity: .7; font-size: 13px; }
.oqlist .btn { flex: none; min-width: 44px; }
.sub.good { color: #2E6B3A; } .sub.bad { color: #A3392A; }

/* Paper swatches, the Sticker Album and the new-sticker note. */
.swatch { display: block; }
.lk-paper canvas { margin: 0 auto; }
.albumcard .lc-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #E2B33C; color: #FFF8EC; font-size: 30px; }
.apager { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.apager .atitle { flex: 1; display: grid; } .apager .atitle b { font-size: 20px; } .apager .atitle small { opacity: .7; }
.acards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.acard { background: #FFF8EC; border-radius: 14px; padding: 10px; box-shadow: 0 3px 0 rgba(46,42,38,.15); }
.acard.full { outline: 3px solid #E2B33C; }
.acard b { display: block; font-size: 15px; margin-bottom: 6px; color: #2E2A26; }
.acard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.acard li { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: 1.2; color: #6B5F55; }
.acard li span { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px dashed #B8A994; display: grid; place-items: center; font-size: 13px; }
.acard li.got { color: #2E2A26; font-weight: 800; } .acard li.got span { border: none; background: #E2B33C; color: #FFF8EC; transform: rotate(-8deg); }
.stickpop { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; background: #FFF8EC; color: #2E2A26; border-radius: 16px; padding: 12px 16px; box-shadow: 0 8px 22px rgba(0,0,0,.25); display: grid; gap: 6px; min-width: 260px; animation: stickin .35s ease-out; }
.stickpop span { display: flex; flex-wrap: wrap; gap: 6px; } .stickpop i { font-style: normal; background: #E2B33C; color: #FFF8EC; border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 13px; }
@keyframes stickin { from { transform: translate(-50%, 40px); opacity: 0; } }
.moveqr { width: min(78vw, 320px); height: auto; aspect-ratio: 1; background: #fff; border-radius: 14px; padding: 10px; margin: 10px auto; display: block; image-rendering: pixelated; }
.sheet.center { text-align: center; }
.cupline { background: #FFF8EC; color: #2E2A26; border-radius: 14px; padding: 10px 14px; margin: 8px 0; display: grid; gap: 2px; box-shadow: 0 3px 0 rgba(46,42,38,.15); } .cupline b { color: #9A7222; } .cupline small { opacity: .75; }
.lk-pose .pz { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: var(--me, #B84E36); color: #FFF8EC; font-size: 22px; }
.lk-pose:not(.locked) .pz-hop { animation: pose-hop .9s ease-in-out infinite; } .lk-pose:not(.locked) .pz-wiggle { animation: pose-wiggle .7s ease-in-out infinite; }
.lk-pose:not(.locked) .pz-zoom { animation: pose-zoom 1.6s ease-out infinite; } .lk-pose:not(.locked) .pz-spin { animation: pose-spin 1.4s ease-in-out infinite; }
@keyframes pose-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } }
@keyframes pose-wiggle { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes pose-zoom { 0% { transform: scale(1.6); opacity: .3; } 50%, 100% { transform: none; opacity: 1; } }
@keyframes pose-spin { 0%, 30% { transform: rotate(0); } 70%, 100% { transform: rotate(360deg); } }

/* ---------- The captain's tabs (phone/captain.js) ---------- */
/* Keyboard and switch-access users see where they are; touch users never see a ring. */
:focus { outline: none; }
:focus-visible { outline: 4px solid var(--focus, #2F6F8F); outline-offset: 3px; border-radius: 12px; }
.cpanel:focus, .cpanel:focus-visible { outline: none; }
main.cap { gap: 0; padding-top: 0; }
.captabs { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0 -18px; padding: 8px 10px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 2px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.captab { appearance: none; border: 0; font: inherit; font-weight: 800; font-size: 14px; color: var(--ink); background: transparent; border-radius: 14px; min-height: 52px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.captab svg { width: 24px; height: 24px; }
.captab[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.cpanel { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.caph { font-size: 32px; }
.cpanel h2.sec { scroll-margin-top: 84px; display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.cpanel h2.sec .cnt { font: 800 14px/1 var(--font-body); font-style: normal; background: color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 999px; padding: 4px 9px; }
.cpanel .sub.tight { margin-top: -6px; }
/* Start a party: bigger, coloured tiles, two to a row. */
.modes.feat .mode { min-height: 92px; }
.modes.feat .mode b { font-size: 22px; }
.modes.feat .mode.c0:not(.locked) { background: var(--p0); color: var(--p0-text); }
.modes.feat .mode.c1:not(.locked) { background: var(--p4); color: var(--p4-text); }
.modes.feat .mode.c2:not(.locked) { background: var(--p1); color: var(--p1-text); }
.modes.feat .mode.c3:not(.locked) { background: var(--p2); color: var(--p2-text); }
.modes.feat .mode.c4:not(.locked) { background: var(--p3); color: var(--p3-text); }
.modes.feat .mode.c5:not(.locked) { background: var(--p5); color: var(--p5-text); }
.modes.g-adv .mode:not(.locked) { background: var(--p0); color: var(--p0-text); }
.modes.g-adv .mode:nth-child(2n):not(.locked) { background: var(--p1); color: var(--p1-text); }
.modes.g-adv .mode:nth-child(3n):not(.locked) { background: var(--p2); color: var(--p2-text); }
.modes.g-big .mode { min-height: 80px; }
.mode[aria-disabled="true"], .pick[aria-disabled="true"] { opacity: .55; box-shadow: none; }
.mode small, .pick small { overflow-wrap: anywhere; }
/* Little tags on game tiles: new, and free this weekend. */
.picks .pick { position: relative; }
.gtag { position: absolute; top: -7px; right: 8px; font: 800 12px/1 var(--font-body); font-style: normal; padding: 4px 8px; border-radius: 999px; background: #2F6F8F; color: #FFF8EC; box-shadow: 0 2px 0 rgba(46,42,38,.25); }
.gtag.wk { background: #3E7A4E; }
.surprise { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; background: var(--gold); }
.surprise svg { width: 26px; height: 26px; }
.surprise small { flex-basis: 100%; text-align: center; font-size: 14px; font-weight: 700; opacity: .8; }
.toolrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.toolrow .btn { width: 100%; }
#youbox { display: flex; flex-direction: column; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .captabs { backdrop-filter: none; } }
