/* Football All-in-One — styles
 *
 * One look: a floodlit pitch at night. Deep turf greens with mowing stripes,
 * chalk-white lines, glassy cards, and broadcast-style condensed type. Each
 * game carries its own accent (--g), set on its card, lobby and screen.
 * Every size is in px so the layout cannot be deformed by text scaling (see
 * MainActivity.setTextZoom for the Android half). */

:root {
  --bg: #04110a;
  --turf-1: #0c2c19;
  --turf-2: #071c10;
  --card: rgba(255, 255, 255, .055);
  --card-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --ink: #f1f7f2;
  --ink-soft: #a9bdb0;
  --ink-faint: #6e8577;
  --lime: #c8f03c;
  --lime-ink: #0f1f08;
  --gold: #ffc83d;
  --red: #ff4d5e;
  --green: #2ee67a;
  --g: var(--lime);
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 16px 36px rgba(0, 0, 0, .42);
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.45, .55, 1);

  /* names the shared settings/privacy styles expect */
  --paper: #0d2216;
  --paper-warm: rgba(255, 255, 255, .05);
  --danger: var(--red);
  --modal-pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(110% 55% at 50% -12%, rgba(200, 240, 60, .16), transparent 62%),
    radial-gradient(70% 40% at 100% 0%, rgba(46, 230, 122, .08), transparent 70%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .024) 0 58px, transparent 58px 116px),
    linear-gradient(180deg, var(--turf-1) 0%, var(--turf-2) 55%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 500 16px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

button { font: inherit; color: inherit; }
input { font: inherit; -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }

/* ───────── boot lockup (shared with the other Polite Carrot games) ───────── */
#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity .55s ease;
}
#boot.done { opacity: 0; }
.boot-lockup { display: grid; justify-items: center; width: min(68vw, 52vh, 360px); }
.boot-mark { display: block; width: 92%; height: auto; opacity: 0; transform: scale(.94); animation: boot-logo .7s var(--ease) .18s forwards; }
.boot-name { display: block; width: 100%; height: auto; margin-top: 12px; opacity: 0; transform: translateY(8px); animation: boot-name .55s ease .72s forwards; }
@keyframes boot-logo { to { opacity: 1; transform: scale(1); } }
@keyframes boot-name { to { opacity: 1; transform: translateY(0); } }

/* ───────── frame ───────── */
.app {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  height: var(--vvh, 100dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left));
}
.screen.is-active { display: flex; animation: screen-in .34s var(--ease) both; }
.screen.is-back { animation-name: screen-back; }
@keyframes screen-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes screen-back { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }

.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s var(--ease), background-color .2s, box-shadow .2s, opacity .2s;
  touch-action: manipulation;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn:focus-visible, .icon-btn:focus-visible, .game:focus-visible, .opt:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.btn--primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .3), inset 0 -3px 0 rgba(0, 0, 0, .14); }
.btn--gold { background: var(--gold); color: #2a1d00; box-shadow: 0 4px 12px rgba(0, 0, 0, .3), inset 0 -3px 0 rgba(0, 0, 0, .14); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line-2); }
.btn--quiet { background: transparent; color: var(--ink-soft); min-height: 40px; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 16px; }
.btn--wide { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s var(--ease), background-color .2s;
}
.icon-btn:active { transform: scale(.92); background: var(--card-2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── home ───────── */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__ball {
  width: 50px; height: 50px; flex: none; display: block; border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 14px rgba(0, 0, 0, .4);
}
.brand__name {
  margin: 0;
  font: italic 800 30px/0.92 var(--display);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.brand__name em { display: block; font-style: italic; color: var(--lime); }
.brand__date { margin: 4px 0 0; color: var(--ink-soft); font: 600 14px/1 var(--body); letter-spacing: .02em; }

.today {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(200, 240, 60, .16), rgba(46, 230, 122, .05) 60%, rgba(255, 255, 255, .02)),
    var(--card);
  box-shadow: inset 0 0 0 1px rgba(200, 240, 60, .22), var(--shadow);
  overflow: hidden;
}
.today::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .07);
}
.today__ring { position: relative; width: 58px; height: 58px; flex: none; display: grid; place-items: center; }
.today__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.today__ring circle { fill: none; stroke-width: 5; }
.today__ring .bg { stroke: rgba(255, 255, 255, .1); }
.today__ring .fg { stroke: var(--lime); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.today__ring b { font: 800 22px/1 var(--display); }
.today__ring span { font: 600 12px/1 var(--display); color: var(--ink-soft); align-self: end; margin-bottom: 14px; }
.today__count { display: flex; align-items: baseline; }
.today__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.today__text b { font: 800 21px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.today__text span { color: var(--ink-soft); font-size: 14px; line-height: 1.25; }
.today__streak { flex: none; display: grid; justify-items: center; padding-left: 12px; border-left: 1px solid var(--line); }
.today__streak b { font: 800 28px/1 var(--display); color: var(--gold); }
.today__streak span { font: 600 11px/1.1 var(--body); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; text-align: center; }

.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.game {
  --g: var(--lime);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 14px 13px 13px;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--g) 9%, transparent), transparent 58%),
    var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 22px rgba(0, 0, 0, .28);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .14s var(--ease), box-shadow .2s;
  animation: card-in .5s var(--ease) both;
  animation-delay: calc(var(--n, 0) * 45ms);
}
.game::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--g);
}
.game:active { transform: scale(.975); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.game__icon {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--g) 18%, rgba(0, 0, 0, .25));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 45%, transparent);
  color: var(--g);
}
.game__icon svg, .lobby__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.game__icon svg .fill, .lobby__icon svg .fill { fill: currentColor; }
.game__body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.game__name { font: italic 800 23px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__tag { color: var(--ink-soft); font-size: 14px; line-height: 1.3; }
.game__status {
  flex: none;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 700 14px/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}
/* Not played yet: a quiet chevron; the word stays for screen readers. */
.game__status.is-new {
  display: grid;
  place-items: center;
  min-width: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: 0;
}
.game__status.is-new::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: -4px;
  border-top: 2.5px solid var(--ink-faint);
  border-right: 2.5px solid var(--ink-faint);
  transform: rotate(45deg);
}
.game__status.is-done { color: var(--ink); }
.game__status.is-done::before { content: "\2713  "; color: var(--g); }

.save-warning { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 200, 61, .12); color: var(--gold); font-size: 14px; }
.home-foot { display: grid; justify-items: center; gap: 12px; padding: 18px 0 6px; }
.credits { margin: 0; color: var(--ink-faint); font-size: 12px; text-align: center; line-height: 1.4; }

#home-remove-ads[hidden] { display: none; }
#home-remove-ads .ra-short { display: none; }

/* ───────── bars ───────── */
.bar { display: flex; align-items: center; gap: 10px; padding: 2px 0 12px; }
.bar__title { flex: 1; min-width: 0; display: grid; text-align: center; }
.bar__title span, .bar__title { font: italic 800 22px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__title small { font: 600 12px/1.2 var(--body); font-style: normal; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }
.bar__spacer { width: 44px; flex: none; }
.bar__meta {
  flex: none;
  min-width: 44px;
  max-width: 120px;
  padding: 7px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--g) 18%, rgba(0, 0, 0, .3));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 40%, transparent);
  color: var(--ink);
  font: 700 15px/1 var(--display);
  letter-spacing: .03em;
  text-align: center;
  white-space: nowrap;
}
.bar__meta:empty { visibility: hidden; }

/* ───────── lobby ───────── */
.lobby { display: grid; gap: 14px; padding-top: 4px; }
.lobby__hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 18px 22px;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(90% 80% at 50% 0%, color-mix(in srgb, var(--g) 16%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 35%, transparent), var(--shadow);
  overflow: hidden;
}
.lobby__hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .07);
}
.lobby__icon {
  width: 82px; height: 82px; display: grid; place-items: center; border-radius: 24px;
  background: color-mix(in srgb, var(--g) 22%, rgba(0, 0, 0, .3));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g) 55%, transparent);
  color: var(--g);
  animation: pop-in .5s var(--spring) both;
}
.lobby__icon svg { width: 48px; height: 48px; }
.lobby__name { margin: 4px 0 0; font: italic 800 40px/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.lobby__tag { margin: 0; color: var(--ink-soft); font-size: 16px; }
@keyframes pop-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

.card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.daily { display: flex; align-items: center; gap: 14px; }
.daily__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.kicker { font: 700 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--g); }
.daily__text b { font: 800 22px/1.05 var(--display); text-transform: uppercase; }
.daily__text span:last-child { color: var(--ink-soft); font-size: 14px; }
.daily__score { font: italic 800 30px/1 var(--display); color: var(--g); }
.rules h3 { margin: 0 0 8px; font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.rules ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); }
.rules li::marker { color: var(--g); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 12px 8px; border-radius: var(--radius-sm); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.stat b { display: block; font: 800 24px/1 var(--display); }
.stat span { font: 600 11px/1.2 var(--body); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

/* ───────── game frame ───────── */
#screen-game { --g: var(--lime); }
.game-root { display: grid; align-content: start; gap: 12px; padding-top: 2px; }
.game-root > div { display: grid; gap: 12px; align-content: start; }

.qcard {
  position: relative;
  padding: 14px 16px 15px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--g) 24%, transparent), transparent 70%),
    rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 32%, transparent);
  animation: rise .4s var(--ease) both;
}
.qcard__kicker { font: 700 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--g); }
.qcard__text { margin: 4px 0 0; font: 800 23px/1.12 var(--display); letter-spacing: .005em; }
.qcard__note { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.35; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ───────── search ───────── */
.search { position: relative; z-index: 5; }
.search__field { position: relative; }
.search__input {
  width: 100%;
  height: 54px;
  padding: 0 46px 0 18px;
  border: 0;
  border-radius: 16px;
  background: rgba(0, 0, 0, .34);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g) 45%, transparent);
  color: var(--ink);
  font: 600 18px/1 var(--body);
  outline: none;
  transition: box-shadow .2s;
}
.search__input::placeholder { color: var(--ink-faint); }
.search__input:focus { box-shadow: inset 0 0 0 2px var(--g), 0 0 0 5px color-mix(in srgb, var(--g) 18%, transparent); }
.search.is-disabled .search__input { opacity: .45; }
.search__clear { position: absolute; right: 6px; top: 7px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 24px; cursor: pointer; }
.search__list {
  display: none;
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  padding: 6px;
  border-radius: 16px;
  background: #102a1b;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px rgba(0, 0, 0, .55);
  max-height: 290px;
  overflow-y: auto;
}
.search.has-results .search__list { display: grid; gap: 2px; animation: drop .16s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.search__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.search__item.is-active, .search__item:active { background: color-mix(in srgb, var(--g) 22%, transparent); }
.search__name { font: 600 17px/1.2 var(--body); }
.search__sub { flex: none; font-size: 13px; color: var(--ink-soft); }
.search__empty { padding: 12px; color: var(--ink-soft); font-size: 14px; }

/* ───────── shared bits ───────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { padding: 5px 11px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--card-2); animation: pop-in .3s var(--spring) both; }
.chip--bad { background: rgba(255, 77, 94, .16); color: #ff9aa5; text-decoration: line-through; text-decoration-color: rgba(255, 77, 94, .7); }
.is-shake { animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.is-bump { animation: bump .35s var(--spring); }
@keyframes bump { 50% { transform: scale(1.22); } }
.is-in { animation: rise .35s var(--ease) both; }

.ring { position: relative; width: 50px; height: 50px; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring__bg { stroke: rgba(255, 255, 255, .12); }
.ring__fg { stroke: var(--g); stroke-linecap: round; transition: stroke .3s; }
.ring__num { font: 800 19px/1 var(--display); }
.ring.is-late .ring__fg { stroke: var(--red); }
.ring.is-late .ring__num { color: var(--red); animation: bump .5s var(--spring); }

/* ───────── Top-10 board (Tenable, Tension) ───────── */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; perspective: 700px; }
.slot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px 0 0;
  border-radius: 13px;
  background: rgba(0, 0, 0, .26);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  animation: rise .35s var(--ease) both;
  animation-delay: calc(var(--i) * 30ms);
}
.slot__n {
  align-self: stretch;
  width: 40px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(255, 255, 255, .06);
  font: 800 20px/1 var(--display);
  color: var(--ink-soft);
}
.board--unranked .slot__n { width: 12px; }
.slot__face { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.slot__label { flex: none; font: 700 12px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot__name { flex: 1; min-width: 0; font: 700 18px/1.2 var(--display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.slot.is-open .slot__face { animation: flip .5s var(--ease) both; transform-origin: center; }
@keyframes flip { from { opacity: 0; transform: rotateX(80deg); } to { opacity: 1; transform: none; } }
.slot.is-hit { background: linear-gradient(90deg, color-mix(in srgb, var(--g) 36%, transparent), color-mix(in srgb, var(--g) 12%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 60%, transparent); }
.slot.is-hit .slot__n { background: var(--g); color: #08140a; }
.slot.is-hit .slot__label { color: rgba(255, 255, 255, .7); }
.slot.is-miss { opacity: .72; }
.slot.is-hint .slot__name { color: var(--ink-soft); letter-spacing: .12em; }
.slot.is-miss .slot__name { color: #ff9aa5; }
.slot--killer { box-shadow: inset 0 0 0 2px rgba(255, 77, 94, .55); background: rgba(255, 77, 94, .1); }
.slot--killer .slot__n { background: var(--red); color: #fff; }
.slot--killer .slot__label { color: #ffb3bb; }
.slot.is-killer .slot__name { color: #ffb3bb; }
.slot.is-killed { background: var(--red); animation: shake .45s var(--ease); }
.slot.is-killed .slot__name, .slot.is-killed .slot__label { color: #fff; }

/* ───────── Football Tenable ───────── */
.tn__status { display: flex; align-items: center; justify-content: space-between; }
.lives { display: flex; gap: 8px; }
.life svg { width: 30px; height: 30px; fill: #fff; stroke: #102018; stroke-width: 1.4; stroke-linejoin: round; transition: opacity .3s, transform .4s var(--spring), filter .3s; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); }
.life svg path { fill: #102018; }
.life.is-lost svg { opacity: .18; transform: scale(.7) rotate(-90deg); filter: grayscale(1); }
.tn__tally, .tx__tally { display: flex; align-items: baseline; gap: 2px; font: 700 18px/1 var(--display); color: var(--ink-soft); }
.tn__tally b, .tx__tally b { font: italic 800 38px/1 var(--display); color: var(--g); }
.tn__giveup { justify-self: center; }
.tn__tools { display: flex; justify-content: center; gap: 10px; }
.tn__tools[hidden] { display: none; }

/* ───────── 501 ───────── */
.d5__top { display: flex; align-items: stretch; gap: 10px; }
.led {
  flex: 1;
  display: grid;
  justify-items: start;
  padding: 10px 16px 8px;
  border-radius: 16px;
  background: #050c08;
  box-shadow: inset 0 0 0 2px #1d3a27, inset 0 0 30px rgba(255, 77, 94, .08);
}
.led__label { font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #ff8a95; }
.led__num {
  font: 800 64px/1 var(--display);
  color: #ff5d6c;
  text-shadow: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.led.is-win .led__num { color: var(--green); animation: bump .6s var(--spring); }
.d5__darts { flex: none; width: 96px; display: grid; place-content: center; justify-items: center; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.d5__darts span { font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.d5__darts b { font: 800 40px/1 var(--display); }
.d5__darts small { font: 700 14px/1 var(--display); color: var(--ink-soft); }
.chalk {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, .03), rgba(255, 255, 255, .03)),
    #1b2420;
  box-shadow: inset 0 0 0 6px #3a2a1a, inset 0 0 0 7px #5a4128, inset 0 0 40px rgba(0, 0, 0, .5);
  font: italic 800 17px/1.2 var(--display);
  letter-spacing: .02em;
  max-height: 300px;
  overflow-y: auto;
}
.chalk__row {
  display: grid;
  grid-template-columns: 1fr auto 56px;
  align-items: baseline;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .9);
  font-size: 17px;
  animation: rise .3s var(--ease) both;
}
.chalk__row:last-child { border-bottom: 0; }
.chalk__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chalk__val { color: rgba(255, 255, 255, .6); font-size: 15px; }
.chalk__rem { text-align: right; font-weight: 700; font-size: 20px; }
.chalk__row--start .chalk__rem { color: #ffe08a; }
.chalk__row.is-bust .chalk__name, .chalk__row.is-bust .chalk__val { text-decoration: line-through; text-decoration-color: #ff7a87; color: rgba(255, 255, 255, .45); }
.chalk__row.is-bust .chalk__rem { color: #ff7a87; font-size: 15px; letter-spacing: .08em; }
.chalk__row.is-miss .chalk__name { color: rgba(255, 255, 255, .5); }
.chalk__row.is-hit .chalk__rem { color: #b8ffcf; }
.chalk--summary { max-height: none; }

/* ───────── Pointless ───────── */
.pt__stage { display: flex; gap: 14px; align-items: stretch; }
.column {
  position: relative;
  width: 86px;
  flex: none;
  height: 252px;
  border-radius: 18px;
  background: #0a1530;
  box-shadow: inset 0 0 0 2px #2f4c99;
  overflow: hidden;
}
.column::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 11px, rgba(255, 255, 255, .06) 11px 12.5px);
  z-index: 2;
}
.column__fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100%;
  transform-origin: bottom;
  background: linear-gradient(180deg, #b4c6ff, #6b8cff 40%, #5a3df0);
}
.column__num {
  position: absolute;
  inset: auto 0 10px 0;
  z-index: 3;
  text-align: center;
  font: 800 34px/1 var(--display);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
  font-variant-numeric: tabular-nums;
}
.column.is-wrong .column__fill { background: linear-gradient(180deg, #ff9aa5, var(--red)); }
.column.is-zero { box-shadow: inset 0 0 0 2px var(--gold); }
.column.is-zero .column__num { color: var(--gold); }
.pt__answers { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.pt__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .26);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pt__name { font: 700 16px/1.15 var(--display); letter-spacing: .02em; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt__pts { font: 800 20px/1 var(--display); }
.pt__row.is-live { box-shadow: inset 0 0 0 2px var(--g); }
.pt__row.is-live .pt__name, .pt__row.is-ok .pt__name, .pt__row.is-zero .pt__name, .pt__row.is-wrong .pt__name { color: var(--ink); }
.pt__row.is-ok { background: color-mix(in srgb, var(--g) 16%, rgba(0, 0, 0, .2)); }
.pt__row.is-zero { background: linear-gradient(90deg, rgba(255, 200, 61, .3), rgba(255, 200, 61, .08)); box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .6); }
.pt__row.is-zero .pt__pts { color: var(--gold); }
.pt__row.is-wrong { background: rgba(255, 77, 94, .12); }
.pt__row.is-wrong .pt__pts { color: #ff9aa5; }
.pt__total { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pt__total span { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.pt__total b { font: italic 800 34px/1 var(--display); color: var(--g); }
.pt__answers--summary { margin-bottom: 4px; }

/* ───────── LONGSHOTS ───────── */
.ls__head { display: flex; align-items: center; justify-content: space-between; }
.ls__count { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--g); }
.ls__q { margin: 0; font: 800 26px/1.1 var(--display); }
.pitch {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  background: #186233;
  aspect-ratio: 68 / 60;
}
.pitch svg { display: block; width: 100%; height: auto; }
.pitch .goal.is-net { animation: net .7s var(--ease); }
@keyframes net { 30% { fill: rgba(255, 255, 255, .85); } }
.mark__text { font: 800 4.2px var(--display); fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: .6px; }
.ls__verdict {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: grid;
  justify-items: center;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(4, 17, 10, .82);
  box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translate(-50%, 16px) scale(.9);
  transition: opacity .25s, transform .35s var(--spring);
  pointer-events: none;
  text-align: center;
  max-width: 90%;
}
.ls__verdict.is-on { opacity: 1; transform: translate(-50%, 0); }
.ls__verdict b { font: italic 800 34px/1 var(--display); color: var(--g); }
.ls__verdict span { font-size: 14px; color: var(--ink-soft); }
.ls__verdict.is-miss b { color: #ff8a95; }
.ls__verdict.is-miss { color: #ff8a95; font: italic 800 26px/1 var(--display); }
.ls__total { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ls__total span { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.ls__total b { font: italic 800 34px/1 var(--display); color: var(--g); }
.ls__summary { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ls__summary li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, .24); }
.ls__summary-q { grid-column: 1; font-size: 13px; color: var(--ink-soft); }
.ls__summary-a { grid-column: 1; font: 700 16px/1.2 var(--display); }
.ls__summary b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: italic 800 24px/1 var(--display); color: var(--g); }
.ls__summary li.is-wide b, .ls__summary li.is-time b { color: #ff8a95; font-size: 18px; }

/* ───────── Tension ───────── */
.killers {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 77, 94, .24), rgba(255, 77, 94, .06));
  box-shadow: inset 0 0 0 1px rgba(255, 77, 94, .5);
}
.killers__label { font: 800 14px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: #ff8a95; }
.killers__card { display: flex; align-items: center; gap: 10px; font: 700 17px/1.2 var(--display); letter-spacing: .02em; }
.redcard { width: 16px; height: 22px; flex: none; border-radius: 3px; background: linear-gradient(160deg, #ff6b78, #d91f33); box-shadow: 0 3px 10px rgba(255, 50, 70, .5); transform: rotate(8deg); }
.tx__bar { display: flex; align-items: center; justify-content: space-between; }
.tx__ring { width: 64px; height: 64px; }
.tx__ring .ring__num { font-size: 24px; }
.tx.is-killed { animation: killed .6s var(--ease); }
@keyframes killed { 0% { filter: none; } 20% { filter: brightness(1.6) saturate(2) hue-rotate(-40deg); transform: translateX(-8px); } 40% { transform: translateX(8px); } 100% { filter: none; transform: none; } }

/* ───────── Back Yourself ───────── */
.by__track { display: flex; gap: 6px; justify-content: center; }
.by__pip { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 800 16px/1 var(--display); color: var(--ink-faint); transition: transform .3s var(--spring); }
.by__pip.is-now { box-shadow: inset 0 0 0 2px var(--g); transform: scale(1.12); color: var(--ink); }
.by__pip.is-won { background: var(--g); color: #241900; box-shadow: none; }
.by__pip.is-bust { background: rgba(255, 77, 94, .25); color: #ff9aa5; box-shadow: inset 0 0 0 1px rgba(255, 77, 94, .6); }
.by__card { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.by__topic { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.by__topic b { font: italic 800 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.by__ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.by__rung { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); font: 700 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); transition: background-color .25s, color .25s; }
.by__rung.is-now { background: color-mix(in srgb, var(--g) 22%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--g); }
.by__rung.is-won { background: var(--g); color: #241900; }
.by__rung.is-bust { background: var(--red); color: #fff; }
.by__q { margin: 0; font: 800 24px/1.15 var(--display); }
.by__opts { display: grid; gap: 8px; }
.opt {
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  border-radius: 15px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font: 600 17px/1.25 var(--body);
  text-align: left;
  cursor: pointer;
  transition: transform .12s var(--ease), background-color .2s, box-shadow .2s;
  animation: rise .3s var(--ease) both;
}
.opt:nth-child(2) { animation-delay: 40ms; }
.opt:nth-child(3) { animation-delay: 80ms; }
.opt:nth-child(4) { animation-delay: 120ms; }
.opt:active { transform: scale(.98); }
.opt:disabled { cursor: default; opacity: .6; }
.opt.is-right { opacity: 1; background: rgba(46, 230, 122, .22); box-shadow: inset 0 0 0 2px var(--green); }
.opt.is-wrong { opacity: 1; background: rgba(255, 77, 94, .2); box-shadow: inset 0 0 0 2px var(--red); animation: shake .4s var(--ease); }
.by__decide { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.by__decide.is-in { animation: rise .35s var(--spring) both; }
.by__score { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.by__score span { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.by__score b { font: italic 800 34px/1 var(--display); color: var(--g); }
.by__summary { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.by__summary li { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .24); font: 700 16px/1.2 var(--display); }
.by__summary li.is-won b { color: var(--g); }
.by__summary li.is-bust b { color: #ff9aa5; }

/* ───────── 38-0 ───────── */
.t38__pitch {
  position: relative;
  height: 330px;
  border-radius: 20px;
  overflow: hidden;
  background: repeating-linear-gradient(180deg, #1b6b38 0 33px, #176131 33px 66px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.t38__lines {
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 50%, transparent 38px, rgba(255, 255, 255, .45) 39px 41px, transparent 42px),
    linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)) center / 100% 2px no-repeat;
}
.t38__lines::before, .t38__lines::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%;
  height: 15%;
  border: 2px solid rgba(255, 255, 255, .45);
}
.t38__lines::before { top: -2px; border-top: 0; }
.t38__lines::after { bottom: -2px; border-bottom: 0; }
.spot {
  position: absolute;
  z-index: 2;
  width: 74px;
  margin-left: -37px;
  margin-top: -24px;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.spot__pos {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
  border: 0;
  font: 800 13px/1 var(--display);
  color: rgba(255, 255, 255, .8);
  letter-spacing: .04em;
  white-space: nowrap;
}
.spot__name { max-width: 74px; font: 700 13px/1 var(--display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.spot__rating { position: absolute; top: -4px; right: 8px; min-width: 22px; padding: 2px 4px; border-radius: 6px; background: var(--g); color: #06210f; font: 800 12px/1 var(--display); text-align: center; }
.spot__rating:empty { display: none; }
.spot.is-filled .spot__pos { background: var(--club, #444); box-shadow: inset 0 0 0 3px var(--trim, #fff), 0 6px 14px rgba(0, 0, 0, .45); color: var(--trim, #fff); }
.spot.is-pop { animation: pop-in .45s var(--spring) both; }
.t38__rating { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; justify-items: center; padding: 6px 10px; border-radius: 12px; background: rgba(4, 17, 10, .78); box-shadow: inset 0 0 0 1px var(--line-2); }
.t38__rating span { font: 700 10px/1 var(--body); letter-spacing: .16em; color: var(--ink-soft); }
.t38__rating b { font: 800 22px/1 var(--display); color: var(--g); }
.t38__panel { display: grid; gap: 10px; }
.t38__spots { position: absolute; inset: 0; z-index: 2; }
.t38__setup { display: grid; gap: 10px; }
.t38__setup .kicker { margin: 0; }
.t38__forms { grid-template-columns: repeat(4, 1fr); }
.t38__hard { background: rgba(0, 0, 0, .2); }
.reel[hidden], .t38__actions[hidden] { display: none; }
.reel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--club, rgba(255, 255, 255, .08)), rgba(0, 0, 0, .5));
  box-shadow: inset 0 0 0 2px var(--trim, var(--line-2));
  overflow: hidden;
  text-align: center;
}
.reel__club { font: italic 800 26px/1.05 var(--display); text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.reel__season { font: 700 15px/1 var(--display); letter-spacing: .12em; color: rgba(255, 255, 255, .85); }
.reel.is-spinning .reel__club, .reel.is-spinning .reel__season { filter: blur(1.2px); }
.reel.is-landed { animation: bump .45s var(--spring); }
.t38__actions { display: flex; gap: 10px; }
.t38__actions .btn--primary { flex: 1; }
.squad { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.squad__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px 0 8px;
  border-radius: 13px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  animation: rise .3s var(--ease) both;
  transition: transform .12s var(--ease), background-color .2s;
}
.squad__row:active { transform: scale(.98); background: color-mix(in srgb, var(--g) 18%, transparent); }
.squad__row.is-off { opacity: .4; cursor: default; }
.squad__name { flex: 1; min-width: 0; font: 700 17px/1.2 var(--display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.squad__fit { font: 700 12px/1 var(--body); color: var(--ink-soft); letter-spacing: .04em; }
.squad__rating { font: 800 21px/1 var(--display); color: var(--g); min-width: 28px; text-align: right; }
.squad__none { padding: 14px; color: var(--ink-soft); text-align: center; }
.pos { flex: none; min-width: 36px; padding: 5px 6px; border-radius: 7px; font: 800 13px/1 var(--display); letter-spacing: .04em; text-align: center; color: #07140b; background: #9fd9ff; }
.pos--GK { background: #ffd166; }
.pos--RB, .pos--CB, .pos--LB { background: #8fd3ff; }
.pos--DM, .pos--CM, .pos--AM, .pos--RM, .pos--LM { background: #9ff0b6; }
.pos--RWB, .pos--LWB { background: #8fd3ff; }
.pos--RW, .pos--LW, .pos--ST { background: #ffa3ae; }
.t38__play { margin-top: 2px; }
.t38__season { display: grid; gap: 12px; }
.t38__record { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.t38__record b { font: italic 800 42px/1 var(--display); color: var(--g); font-variant-numeric: tabular-nums; }
.t38__record span { font: 800 22px/1 var(--display); color: var(--ink-soft); }
.t38__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; }
.res { padding: 8px 0; border-radius: 8px; font: 800 14px/1 var(--display); text-align: center; animation: pop-in .25s var(--spring) both; }
.res--w { background: rgba(46, 230, 122, .85); color: #04220f; }
.res--d { background: rgba(255, 255, 255, .22); }
.res--l { background: var(--red); color: #fff; }
.t38__xi, .t38__table { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.t38__xi li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 7px 10px; border-radius: 11px; background: rgba(0, 0, 0, .24); }
.t38__xi .pos { grid-row: 1 / span 2; }
.t38__xi-name { font: 700 16px/1.15 var(--display); }
.t38__xi small { grid-column: 2; font-size: 12px; color: var(--ink-soft); }
.t38__xi b { grid-column: 3; grid-row: 1 / span 2; font: 800 20px/1 var(--display); color: var(--g); }
.t38__table { margin-top: 10px; }
.t38__table li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .2); font: 700 15px/1.2 var(--display); }
.t38__table li.is-you { background: color-mix(in srgb, var(--g) 30%, transparent); box-shadow: inset 0 0 0 1px var(--g); }

/* ───────── overlays ───────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(2, 8, 5, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade .25s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  overflow-y: auto;
  padding: var(--modal-pad);
  border-radius: 24px;
  background: linear-gradient(180deg, #123020, var(--paper));
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px rgba(0, 0, 0, .6);
  text-align: center;
  animation: pop-in .35s var(--spring) both;
}
.modal h2 { margin: 0; font: italic 800 30px/1 var(--display); text-transform: uppercase; }
.modal__line { margin: 12px 0 0; color: var(--ink-soft); line-height: 1.45; }
.modal__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.modal__foot { margin: 16px 0 0; color: var(--ink-faint); font-size: 12px; line-height: 1.4; }

.overlay--sheet { place-items: end center; padding: 0; }
.sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92%;
  overflow-y: auto;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #143522, #0b1f14 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 -20px 60px rgba(0, 0, 0, .6);
  text-align: center;
  animation: sheet-up .45s var(--ease) both;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet__grab { width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.sheet__kicker { font: 700 12px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--g); }
.sheet__headline { margin: 6px 0 0; font: italic 800 38px/1 var(--display); text-transform: uppercase; }
.sheet__score { margin: 8px 0 0; font: italic 800 64px/1 var(--display); color: var(--g); animation: pop-in .5s var(--spring) .1s both; }
.sheet__sub { margin: 6px auto 0; max-width: 420px; color: var(--ink-soft); }
.sheet__detail { display: grid; gap: 8px; margin: 16px 0 0; text-align: left; }
.sheet__h { margin: 8px 0 0; font: 800 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.sheet__p { margin: 0; font-size: 15px; line-height: 1.45; }
.sheet__actions {
  position: sticky;
  bottom: calc(-20px - env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px -20px 0;
  padding: 12px 20px calc(4px + env(safe-area-inset-bottom));
  background: #0b1f14;
}
.sheet__actions::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 28px;
  background: linear-gradient(180deg, rgba(11, 31, 20, 0), #0b1f14);
  pointer-events: none;
}
.sheet__actions .btn--primary { grid-column: 1 / -1; }

.toast {
  position: fixed;
  left: 50%;
  top: calc(16px + env(safe-area-inset-top));
  z-index: 60;
  max-width: 88%;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(4, 17, 10, .92);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px rgba(0, 0, 0, .5);
  font: 700 16px/1.2 var(--display);
  letter-spacing: .02em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -20px);
  transition: opacity .25s, transform .35s var(--spring);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--good { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .6), 0 12px 30px rgba(0, 0, 0, .5); }
.toast--bad { color: #ff9aa5; }

.confetti { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; display: none; }

/* ───────── settings & privacy (from the shared game-services kit) ───────── */
.modal--wide { max-width: 540px; text-align: left; }
.modal--wide h2 { text-align: center; }
.modal__actions--consent {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  position: sticky;
  bottom: calc(-1 * var(--modal-pad, 24px));
  margin-left: calc(-1 * var(--modal-pad, 24px));
  margin-right: calc(-1 * var(--modal-pad, 24px));
  padding: 10px var(--modal-pad, 24px) var(--modal-pad, 24px);
  background: var(--paper);
}
.policy-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  font: 700 15px/1 var(--display);
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.policy-link:active { color: var(--ink); }
.policy-link[hidden] { display: none; }
.settings-row.settings-row--quiet { border: none; background: none; box-shadow: none; padding: 0 14px 2px; margin-top: -6px; }
.settings-row--quiet[hidden] { display: none; }
.settings-list { display: grid; gap: 10px; margin: 18px 0 0; text-align: left; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 15px;
  background: var(--paper-warm);
  box-shadow: inset 0 0 0 1px var(--line);
}
.settings-row[hidden] { display: none; }
.settings-row > span { font: 700 18px/1.15 var(--display); letter-spacing: .02em; color: var(--ink); }
.settings-row--danger { box-shadow: inset 0 0 0 1px rgba(255, 77, 94, .45); }
.settings-row--danger > span { color: #ff9aa5; }
.settings-row--stack { align-items: flex-start; }
#settings-remove-ads-row { align-items: center; }
.settings-row--stack > div { flex: 1 1 auto; min-width: 0; }
.settings-row--stack > div > b { display: block; font: 700 18px/1.15 var(--display); letter-spacing: .02em; color: var(--ink); }
.settings-row__note { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.settings-row .btn { min-height: 40px; padding: 8px 16px; min-width: 72px; font-size: 16px; }
.settings-row .btn[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.settings-row .btn--primary:disabled { opacity: .6; }

.hold { position: relative; width: 100%; min-height: 56px; margin-top: 16px; border: 0; border-radius: 999px; background: rgba(255, 77, 94, .18); box-shadow: inset 0 0 0 2px var(--red); overflow: hidden; cursor: pointer; }
.hold__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--red); }
.hold__label { position: relative; font: 800 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }

@media (max-height: 700px) {
  .brand__ball { width: 42px; height: 42px; }
  .brand__name { font-size: 26px; }
  .game { padding-top: 10px; padding-bottom: 10px; }
  .game__icon { width: 46px; height: 46px; }
  .t38__pitch { height: 290px; }
  .column { height: 222px; }
}

@media (min-width: 600px) {
  .screen { padding-top: calc(26px + env(safe-area-inset-top)); }
}

/* ───────── versus ───────── */

.versus-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 14px;
  padding: 14px 14px 14px 13px;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(61, 139, 255, .14), transparent 42%, transparent 58%, rgba(255, 77, 94, .14)),
    var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 22px rgba(0, 0, 0, .28);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  animation: card-in .5s var(--ease) both;
  transition: transform .14s var(--ease);
}
.versus-cta:active { transform: scale(.975); }
.versus-cta__badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #0b1a11;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: italic 800 20px/1 var(--display);
}
.versus-cta__badge i, .vs-hero__badge i { width: 5px; height: 22px; border-radius: 3px; background: #3d8bff; }
.versus-cta__badge i:last-child, .vs-hero__badge i:last-child { background: #ff4d5e; }
.versus-cta__body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.versus-cta__body b { font: italic 800 23px/1.05 var(--display); text-transform: uppercase; }
.versus-cta__body span { color: var(--ink-soft); font-size: 14px; line-height: 1.3; }

.vs-hero__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 82px;
  font: italic 800 44px/1 var(--display);
  animation: pop-in .5s var(--spring) both;
}
.vs-hero__badge i { width: 9px; height: 46px; border-radius: 5px; }
.vs-label { display: block; margin: 0 0 10px; }
.vs-players { display: grid; gap: 10px; }
.vs-players .vs-label { margin: 0; }
.vs-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
  box-shadow: inset 4px 0 0 var(--p);
}
.vs-player__kit { flex: none; width: 44px; font: 800 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--p); }
.vs-player__input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: 700 20px/1 var(--display);
  outline: none;
}
.vs-player__input:focus { box-shadow: inset 0 0 0 2px var(--p); }
.vs-player__input::placeholder { color: var(--ink-faint); }
.vs-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vs-game {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .12s var(--ease), background-color .2s, box-shadow .2s;
}
.vs-game:active { transform: scale(.96); }
.vs-game:first-child { grid-column: 1 / -1; }
.vs-game[aria-pressed="true"] { background: color-mix(in srgb, var(--g) 22%, transparent); box-shadow: inset 0 0 0 2px var(--g); }
.vs-game__icon { flex: none; display: grid; color: var(--g); }
.vs-game__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vs-game__icon svg .fill { fill: currentColor; }
.vs-game__name { min-width: 0; font: 800 15px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.vs-seg__btn {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font: 800 16px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.vs-seg__btn[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.vs-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }
.vs-where { grid-template-columns: repeat(2, 1fr); }
.vs-log__total { border-top: 1px solid var(--line-2); }
.vs-log__total .vs-log__game { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.lb { width: 100%; display: grid; gap: 8px; margin-top: 16px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.lb[hidden] { display: none; }
.lb__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lb__head .kicker { margin: 0; }
.lb__meta { font: 800 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.lb__beat { margin: 0; font: italic 800 20px/1.1 var(--display); text-transform: uppercase; color: var(--ink); }
.lb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; }
.lb__row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.lb__row[hidden] { display: none; }
.lb__row.is-me { background: color-mix(in srgb, var(--lime) 18%, transparent); box-shadow: inset 0 0 0 1px var(--lime); }
.lb__rank { font: 800 15px/1 var(--display); color: var(--ink-soft); }
.lb__name { min-width: 0; font: 700 16px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.lb__total { font: 800 18px/1 var(--display); color: var(--lime); }
.lb__empty { color: var(--ink-soft); font-size: 14px; padding: 4px 0; }
.lb__more { justify-self: center; }
.lb__more[hidden] { display: none; }
.lb__tools { display: flex; justify-content: center; gap: 8px; }
.lb__tools .btn[hidden] { display: none; }
.lb__hint { margin: 0; color: var(--ink-faint); font-size: 12px; text-align: center; }
.lb__hint[hidden], .lb__beat[hidden] { display: none; }
.lb__row[role="button"] { cursor: pointer; }
.lb__row[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--gold); }
.lb__compare { display: grid; gap: 2px; padding: 6px 10px 8px 54px; }
.lb__cmp { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; font-size: 13px; color: var(--ink-soft); }
.lb__cmp b { font: 800 15px/1 var(--display); color: var(--ink); }
.lb__cmp em { font-style: normal; color: var(--lime); min-width: 52px; text-align: right; }
.handoff__you { width: 100%; max-width: 420px; }
.handoff__you[hidden] { display: none; }
.handoff { overflow-y: auto; }
.handoff__card { margin: auto 0; }
.handoff .lb { max-width: 420px; }
.handoff .lb__list { max-height: 210px; }
.vs-code-in { display: grid; gap: 10px; }
.vs-code-in .vs-label, .vs-code-in .vs-note { margin: 0; }
.vs-code-in__field {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: 500 14px/1.35 var(--body);
  resize: vertical;
  outline: none;
}
.vs-code-in__field:focus { box-shadow: inset 0 0 0 2px var(--gold); }
.vs-code-in__field::placeholder { color: var(--ink-faint); }
.vs-code { display: grid; justify-items: center; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.vs-code__note { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.35; }
.vs-code__text { display: block; width: 100%; max-height: 96px; overflow-y: auto; padding: 10px; border-radius: 10px; background: var(--card); font: 500 12px/1.4 ui-monospace, Menlo, monospace; color: var(--ink); word-break: break-all; user-select: all; -webkit-user-select: all; text-align: left; }
.versus-cta:focus-visible, .vs-game:focus-visible, .vs-seg__btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

body.versus #game-mode { color: var(--p); }
body.versus #screen-game .bar { box-shadow: inset 0 -3px 0 var(--p); }

.handoff {
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--p) 22%, transparent), transparent 62%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 64px, transparent 64px 128px),
    #04110a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.handoff__card { width: 100%; max-width: 420px; display: grid; justify-items: center; gap: 10px; text-align: center; animation: pop-in .4s var(--spring) both; }
.handoff__kicker { font: 700 13px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--g); }
.handoff__pass { margin: 26px 0 0; color: var(--ink-soft); font: 700 15px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.handoff__name {
  margin: 0;
  max-width: 100%;
  font: italic 800 64px/.95 var(--display);
  text-transform: uppercase;
  color: var(--p);
  overflow-wrap: anywhere;
}
.handoff__note { margin: 4px 0 26px; max-width: 320px; color: var(--ink-soft); line-height: 1.45; }
.handoff .btn--primary {
  background: var(--p);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3), inset 0 -3px 0 rgba(0, 0, 0, .18);
}

.vs-tally {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 1px var(--line);
}
.vs-tally__side { display: flex; align-items: center; gap: 10px; }
.vs-tally__side:last-child { flex-direction: row-reverse; }
.vs-tally__name { max-width: 110px; font: 700 14px/1 var(--body); color: var(--p); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-tally__score { font: italic 800 26px/1 var(--display); }
.vs-tally__dash { color: var(--ink-faint); font: 800 20px/1 var(--display); }

.vs-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; margin: 16px 0 0; }
.vs-side {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: pop-in .45s var(--spring) both;
}
.vs-board__v + .vs-side { animation-delay: .12s; }
.vs-side.is-win {
  background: color-mix(in srgb, var(--p) 22%, transparent);
  box-shadow: inset 0 0 0 2px var(--p);
}
.vs-side.is-lose { opacity: .6; }
.vs-side__name { max-width: 100%; font: 800 15px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--p); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-side.is-win .vs-side__name::before { content: "\1F3C6\00a0"; }
.vs-side__score { font: italic 800 30px/1.05 var(--display); overflow-wrap: anywhere; }
.vs-side__head { color: var(--ink-soft); font-size: 13px; line-height: 1.25; }
.vs-board__v { align-self: center; font: italic 800 22px/1 var(--display); color: var(--ink-faint); }

.vs-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vs-log li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 9px 10px 9px 14px; border-radius: 12px; background: var(--card); box-shadow: inset 3px 0 0 var(--g); }
.vs-log__game { font: 800 15px/1.1 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-log__score { min-width: 64px; padding: 4px 8px; border-radius: 8px; font: 700 13px/1.1 var(--body); text-align: center; color: var(--ink-soft); }
.vs-log__score.is-win { background: color-mix(in srgb, var(--p) 25%, transparent); box-shadow: inset 0 0 0 1px var(--p); color: var(--ink); }
.vs-peek { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.vs-peek:empty, .vs-peek__area:empty { display: none; }
.vs-peek .btn[aria-pressed="true"] { background: var(--card-2); box-shadow: inset 0 0 0 2px var(--g); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
