/* ==========================================================================
   Account pages: sign-in, QR, room, results, account, admin, QR sign.
   Loaded after style.css and uses its colours (section 1 there).
   ========================================================================== */

.app-main { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem); min-height: 60vh; }
.wrap-narrow { max-width: calc(34rem + 2 * var(--gutter)); }
.app-main h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
.app-main h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin-bottom: 1rem; max-width: none; }
.app-page .header-cta-app { display: inline-flex; min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.9375rem; }
.lang-app { margin-left: auto; }
.app-page .brand { margin-right: 0; }
.app-page .site-header:has(.nav-desktop) .brand { margin-right: auto; }   /* the landing's header (team page) */
@media (max-width: 26rem) {       /* phones: logo, languages and the account button must fit side by side */
  .app-page .brand { flex: none; }
  .app-page .brand-word { width: 5.75rem; }
  .app-page .lang a { min-width: 2rem; }
  .app-page .header-cta-app { flex: none; padding: 0.4rem 0.55rem; font-size: 0.8125rem; white-space: nowrap; }
}
@media (max-width: 21rem) {
  .app-page .brand-word { display: none; }
}

.card {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--night-2);
}
.card + .card, .block + .block, .room-grid + .block, .block + .room-grid { margin-top: clamp(1.25rem, 3vw, 2rem); }
.card h1 { margin-bottom: 0.75rem; }
.muted { color: var(--mist); }
/* Where and when, under a page heading */
.place { font-size: 0.9375rem; color: var(--mist); }
.block { margin-top: clamp(1.5rem, 4vw, 2.75rem); }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 52rem) {
  .room-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .room-grid > .card + .card { margin-top: 0; }
}

/* Forms on account pages are one column */
.auth .form, .card .form { grid-template-columns: 1fr; margin-top: 1.25rem; }
.auth .btn, .card .form .btn { justify-self: start; }
.field-hint { color: var(--mist); }
.field-check label { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400; }
.field-check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: 0.2rem; accent-color: var(--turf); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 5.5rem; }
.pw-toggle {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  padding: 0.45rem 0.7rem; border: 0; border-radius: 0.5rem;
  background: transparent; color: var(--turf); font: 600 0.875rem var(--font-body); cursor: pointer;
}
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.5rem; font-size: 0.9375rem; color: var(--mist); }
/* Line icons in buttons (icon() in app/layout.php) */
.btn .ico { flex: none; width: 1.1em; height: 1.1em; margin-right: 0.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* "The e-mail arrives within 2 minutes · ask again in 1:45" */
.wait-note { font-weight: 500; }
.wait-note b { font-variant-numeric: tabular-nums; }
.auth-missing { display: grid; gap: 0.75rem; justify-items: start; }
.auth-missing p { margin: 0; }
.notice { margin-bottom: 1.25rem; padding: 0.85rem 1.1rem; border: 1.5px solid var(--line-2); border-radius: 0.75rem; font-weight: 600; }
.notice-ok { border-color: var(--turf); }
.notice-error { border-color: var(--error); color: var(--error); }
button.btn-line { background: transparent; }
.btn-small { min-height: 2.4rem; padding: 0.45rem 1rem; font-size: 0.9375rem; }
.btn-big { min-height: 3.5rem; font-size: 1.125rem; }
.link-button { padding: 0; border: 0; background: none; color: var(--turf); font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.link-button:hover { color: var(--chalk); }
.back { margin-bottom: 1rem; }
.back a { text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Game type badge */
.badge-type {
  display: inline-block; vertical-align: middle;
  padding: 0.2rem 0.7rem; border-radius: 99rem;
  font: 600 0.8125rem/1.4 var(--font-body); letter-spacing: 0;
  background: rgb(46 224 111 / 0.14); color: var(--turf);
}
.badge-reji { background: rgb(255 159 28 / 0.14); color: var(--ball); }
.app-main h1 .badge-type { margin-left: 0.5rem; }

/* QR page */
.qr-card .badge-type { margin-bottom: 1rem; }
.live-dot { display: flex; align-items: center; gap: 0.6rem; margin-block: 1.25rem; font-weight: 600; }
.live-dot::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ball); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* Room: status and countdown */
.room-head { display: grid; gap: 0.25rem; margin-bottom: 1.25rem; }
.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.status-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.35rem 0.9rem; border-radius: 99rem; border: 1.5px solid var(--line-2);
  font-weight: 700;
}
.status-pill::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--mist); }
.status-pill.is-rec { border-color: #ff5a4f; }
.status-pill.is-rec::before { background: #ff5a4f; animation: pulse 1.2s infinite; }
.status-pill.is-wait::before { background: var(--ball); animation: pulse 1.4s infinite; }
.status-pill.is-ok { border-color: var(--turf); }
.status-pill.is-ok::before { background: var(--turf); }
.status-pill.is-error { border-color: var(--error); color: var(--error); }
.status-pill.is-error::before { background: var(--error); }
.countdown { margin-block: 1rem 0.5rem; font: 800 clamp(3.5rem, 2rem + 8vw, 5.5rem)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.status-card .muted { margin-top: 0.75rem; }
.progress { height: 0.6rem; margin-top: 1.25rem; border-radius: 99rem; background: var(--night); overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--turf); transition: width 0.4s; }

/* Room: share */
.share-row { display: flex; gap: 0.5rem; margin-block: 1rem; }
.share-url {
  flex: 1; min-width: 0; min-height: 2.6rem; padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--line-2); border-radius: 0.75rem; background: var(--night); color: var(--chalk); font: inherit; font-size: 0.9375rem;
}

/* Team comparison */
.compare-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--night-2); }
.score-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; font-weight: 600; }
.score-line b { font: 800 2.75rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 0.9rem; }
.bar-row dt { text-align: center; font-size: 0.9375rem; color: var(--mist); margin-bottom: 0.3rem; }
.bar-row dd { display: grid; grid-template-columns: 3.5rem 1fr 3.5rem; align-items: center; gap: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-b-val { text-align: right; }
.bar { display: flex; gap: 2px; height: 0.55rem; }
.bar i { display: block; flex: 1 1 50%; border-radius: 4px; }
.bar-a { background: var(--turf); }
.bar-b { background: var(--chalk); }
.team-title { margin: 1.5rem 0 0.75rem; }

/* Player cards in the room */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.9rem; }
.pcard { position: relative; display: grid; gap: 0.5rem; align-content: start; padding: 0.75rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--night-2); }
.pcard.is-mine { border-color: var(--ball); }
.pcard-link { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0.2rem 0.75rem; color: var(--chalk); text-decoration: none; }
.pcard-link:hover .pcard-name { color: var(--turf); }
.pcard-img { grid-row: 1 / 3; width: 3.5rem; height: 4.6rem; border-radius: 0.6rem; object-fit: cover; background: var(--night); }
.pcard-ph { display: grid; place-items: center; font: 800 1.4rem var(--font-display); color: var(--line-2); border: 1.5px dashed var(--line-2); }
.team-a .pcard-ph { color: var(--turf); }
.pcard-name { align-self: end; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.pcard-rating { font: 800 1.5rem/1 var(--font-display); }
.pcard-you { font-size: 0.875rem; font-weight: 700; color: var(--ball); }
.pcard .btn { width: 100%; }
.inline-form { margin-top: 1rem; }
.captain-tools { margin-top: 1.25rem; color: var(--mist); }
.captain-tools summary { cursor: pointer; }
.captain-tools ul { display: grid; gap: 0.4rem; margin-top: 0.6rem; }

/* Video */
.game-video { width: 100%; max-height: 75vh; border-radius: var(--radius); background: #000; }
.goal-marks { margin-top: 0.9rem; }
.goal-marks-title { margin: 0 0 0.45rem; font-weight: 600; }
.goal-marks ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.goal-mark { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border: 1px solid var(--line, rgba(127, 127, 127, 0.35));
  border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 0.875rem; cursor: pointer; }
.goal-mark:hover, .goal-mark:focus-visible { border-color: currentColor; }
.goal-mark-a { box-shadow: inset 3px 0 0 #e5484d; }
.goal-mark-b { box-shadow: inset 3px 0 0 #3e7bfa; }
.goal-mark-score { opacity: 0.7; }
.goal-marks-hint { margin: 0.45rem 0 0; font-size: 0.8rem; }
.video-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.9rem; }

/* Player page */
.player-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.25rem; }
.player-top .pcard-img { width: 4.5rem; height: 6rem; grid-row: auto; }
.player-top h1 { margin: 0 0 0.3rem; }
.player-top form { margin-top: 0.6rem; }
.big-rating { display: grid; justify-items: end; }
.big-rating b { font: 800 clamp(2.75rem, 2rem + 4vw, 4rem)/1 var(--font-display); color: var(--turf); }
@media (max-width: 30rem) {
  .player-top { grid-template-columns: auto 1fr; }
  .big-rating { grid-column: 1 / -1; justify-items: start; }
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.25rem 1.25rem; }
.stat-grid div { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.stat-grid dt { font-size: 0.875rem; color: var(--mist); }
.stat-grid dd { font: 700 1.25rem/1.3 var(--font-display); }
.parts { display: grid; gap: 0.1rem; }
.parts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.parts .plus { color: var(--turf); }
.parts .minus { color: var(--error); }
.how-list { display: grid; gap: 0.5rem; padding-left: 1.1rem; list-style: disc; font-size: 0.9375rem; line-height: 1.5; }
.heat-box { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; background: #0c2a1c; color: rgb(241 245 238 / 0.55); }
.heat-canvas, .heat-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.heat-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.75rem; font-size: 0.875rem; color: var(--mist); }
.heat-scale i { width: 6rem; height: 0.5rem; border-radius: 99rem; background: linear-gradient(90deg, #14402c, var(--turf), #d9ffe6); }
.thirds-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.thirds-dl div { padding: 0.75rem; border: 1px solid var(--line); border-radius: 0.75rem; text-align: center; }
.thirds-dl dt { font-size: 0.875rem; color: var(--mist); }
.thirds-dl dd { font: 700 1.25rem var(--font-display); }

/* Account */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 0.5rem 1.5rem; }
.tabs a { padding: 0.5rem 1rem; border: 1.5px solid var(--line-2); border-radius: 99rem; color: var(--chalk); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.tabs a[aria-current] { border-color: var(--turf); color: var(--turf); }
.totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.75rem; }
.totals div { padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--night-2); }
.totals dt { font-size: 0.875rem; color: var(--mist); }
.totals dd { font: 800 1.6rem/1.2 var(--font-display); }
.game-list { display: grid; gap: 0.6rem; }
.game-list a {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 0.5rem 1rem;
  padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--night-2);
  color: var(--chalk); text-decoration: none;
}
.game-list a:hover { border-color: var(--line-2); }
.gl-date { font-variant-numeric: tabular-nums; color: var(--mist); font-size: 0.9375rem; }
.gl-status b { font: 800 1.3rem var(--font-display); color: var(--turf); }
@media (max-width: 40rem) {
  .game-list a { grid-template-columns: 1fr auto; }
  .gl-place { grid-column: 1 / -1; grid-row: 2; }
}

/* Admin */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--mist); font-weight: 600; white-space: nowrap; }
.table form { display: inline; }
.dot { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.35rem; border-radius: 50%; background: var(--line-2); }
.dot-ok { background: var(--turf); }
.notice-token { border-color: var(--ball); margin-bottom: 1.5rem; }

/* Privacy */
.prose h2 { margin: 1.75rem 0 0.5rem; }
.prose p + p { margin-top: 0.6rem; }
.prose p { color: var(--mist); max-width: 65ch; }
.prose .fineprint { margin-top: 2rem; }

/* QR sign: dark on screen, black on white when printed */
.sign { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.sign-brand { display: flex; align-items: center; gap: 0.9rem; }
.sign h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.8rem); }
.sign-qr { width: min(22rem, 80vw); padding: 0.5rem; background: #fff; border-radius: 1rem; }
.sign-qr svg { width: 100%; height: auto; }
.sign-url { font: 700 1.2rem var(--font-display); color: var(--turf); }
.sign-steps { display: grid; gap: 0.4rem; counter-reset: s; text-align: left; font-size: 1.1rem; }
.sign-steps li { counter-increment: s; }
.sign-steps li::before { content: counter(s) ". "; font-weight: 800; color: var(--ball); }
.sign-prices { font-size: 1.05rem; }
.sign-place { color: var(--mist); }
@media print {
  @page { size: A4; margin: 14mm; }
  .print-page .site-header, .print-page .site-footer, .no-print, .skip { display: none !important; }
  .print-page { background: #fff; color: #0a1420; }
  .print-page .app-main { padding: 0; }
  .print-page .sign-url, .print-page .sign-place { color: #0a1420; }
  .print-page .screen-only { display: none; }
  .print-page .print-only { display: inline; }
}
.print-only { display: none; }
.print-word { font: 800 2.2rem/1 var(--font-display); color: #0a1420; }
.print-word span { color: #1aa84f; }

/* ==========================================================================
   Match screen (app/partials/results.php): header, tabs, summary, team stats,
   shot map, line-ups, player leaders, the player sheet. Same palette as the
   rest; team A = turf, team B = chalk, ratings by band (--r below).
   ========================================================================== */

.r-top  { --r: #2ee06f; --r-ink: #0a1420; }
.r-good { --r: #1fb36a; --r-ink: #0a1420; }
.r-mid  { --r: #ff9f1c; --r-ink: #0a1420; }
.r-low  { --r: #ff6b5b; --r-ink: #0a1420; }
.r-none { --r: #2c475f; --r-ink: #f1f5ee; }
.chip-soon {
  display: inline-block; vertical-align: middle; padding: 0.12rem 0.55rem; border-radius: 99rem;
  background: rgb(255 159 28 / 0.14); color: var(--ball); font: 700 0.75rem/1.5 var(--font-body); letter-spacing: 0.02em;
}

/* Header: teams and score */
.mhead {
  display: grid; justify-items: center; gap: 0.7rem; text-align: center;
  padding: clamp(1.25rem, 4vw, 2.25rem) clamp(0.75rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(120% 140% at 50% 0%, rgb(46 224 111 / 0.1), transparent 60%), var(--night-2);
}
.mhead-meta { font-size: 0.875rem; color: var(--mist); }
.mhead-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.5rem; width: 100%; max-width: 40rem; }
.mhead-team { display: grid; justify-items: center; gap: 0.55rem; min-width: 0; font-weight: 700; font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.15rem); line-height: 1.25; }
.mhead-score { display: flex; align-items: center; gap: 0.35rem; font: 800 clamp(2.75rem, 2rem + 4.5vw, 4.5rem)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mhead-score i { font-style: normal; font-weight: 600; color: var(--mist); }
.mhead-score b.is-low { color: var(--mist); }
.mhead-status { font-size: 0.875rem; color: var(--mist); }
.mhead-status span { display: inline-block; padding: 0.2rem 0.75rem; border-radius: 99rem; background: rgb(46 224 111 / 0.14); color: var(--turf); font-weight: 700; }
.crest { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--night); }
.crest svg { width: 58%; height: 58%; }
.crest-a svg { fill: var(--turf); }
.crest-b svg { fill: var(--chalk); }
.crest-big { width: clamp(3.25rem, 2.5rem + 3vw, 4.75rem); height: clamp(3.25rem, 2.5rem + 3vw, 4.75rem); border-width: 2px; }
.crest-big.crest-a { border-color: rgb(46 224 111 / 0.5); }
.crest-big.crest-b { border-color: rgb(241 245 238 / 0.4); }

/* Tabs: they stay under the site header while the page scrolls */
.mtabs {
  position: sticky; top: 4.3rem; z-index: 5; margin-top: 0.75rem;
  background: rgb(10 20 32 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.mtabs-row { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.mtabs-row::-webkit-scrollbar { display: none; }
.mtabs a {
  flex: none; padding: 0.9rem 0.85rem 0.8rem; border-bottom: 2.5px solid transparent;
  color: var(--mist); font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
}
.mtabs a:hover { color: var(--chalk); }
.mtabs a[aria-selected="true"] { color: var(--chalk); border-bottom-color: var(--turf); }
.mpanel { margin-top: clamp(1rem, 3vw, 1.5rem); scroll-margin-top: 8rem; }
.mpanel > .block:first-child { margin-top: 0; }

/* Panel layout */
.mgrid { display: grid; gap: clamp(1rem, 3vw, 1.5rem); }
.mcol { display: grid; gap: clamp(1rem, 3vw, 1.5rem); align-content: start; min-width: 0; }
@media (min-width: 60rem) {
  .mgrid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.mcard { padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--night-2); min-width: 0; }
.mcard h2 { font-size: 1.125rem; margin-bottom: 0.9rem; }
.mcard-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-color: rgb(255 159 28 / 0.35); }
.mcard-cta h2 { margin-bottom: 0.3rem; }
.mcard-cta div { flex: 1 1 16rem; }

/* Highlights: closed for now */
.hl-card { display: grid; gap: 1rem; }
.hl-screen {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; border-radius: 0.9rem; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgb(46 224 111 / 0.05) 0 12%, transparent 12% 24%),
    radial-gradient(60% 90% at 50% 50%, #133a29, #0b2219);
}
.hl-screen::after { content: ""; position: absolute; inset: 14% 20%; border: 1.5px solid rgb(241 245 238 / 0.12); border-radius: 4px; }
.hl-lock { position: relative; z-index: 1; padding: 0.7rem; box-sizing: content-box; border-radius: 50%; background: rgb(10 20 32 / 0.75); color: var(--mist); }
.hl-text h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }

/* Goal timeline: each goal on its team's side */
.tline { display: grid; gap: 0.15rem; }
.tline li { display: grid; grid-template-columns: minmax(0, 1fr) 4.25rem minmax(0, 1fr); align-items: center; gap: 0.5rem; min-height: 2.9rem; }
.tline li.tline-mark { grid-template-columns: 1fr; text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--mist); min-height: 2.2rem; }
.tline-mark span { display: flex; align-items: center; gap: 0.75rem; }
.tline-mark span::before, .tline-mark span::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tline-time { grid-column: 2; grid-row: 1; display: grid; justify-items: center; line-height: 1.15; padding: 0.35rem 0; border-radius: 0.6rem; background: var(--night); }
.tline-time b { font: 800 1rem var(--font-display); }
.tline-time span { font-size: 0.8125rem; color: var(--mist); font-variant-numeric: tabular-nums; }
.tline-what { grid-row: 1; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.tline-what > span { display: grid; min-width: 0; line-height: 1.3; }
.tline-what small { color: var(--mist); font-size: 0.8125rem; }
.tline-a .tline-what { grid-column: 1; flex-direction: row-reverse; text-align: right; }
.tline-b .tline-what { grid-column: 3; }
.tline-ball { flex: none; color: var(--chalk); }
.tline-a .tline-ball { color: var(--turf); }

/* Match info */
.minfo div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.minfo div:last-child { border-bottom: 0; }
.minfo dt { color: var(--mist); }
.minfo dd { font-weight: 600; text-align: right; }
.share-card .share-row { margin-block: 0.75rem; }

/* Team stats: value, name, value, then a bar from the middle out to each side */
.sbar-teams { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; font-weight: 700; font-size: 0.9375rem; }
.sbars { display: grid; gap: 1rem; }
.sbar { display: grid; grid-template-columns: minmax(4.5rem, auto) 1fr minmax(4.5rem, auto); align-items: center; row-gap: 0.4rem; }
.sbar dt { grid-column: 2; grid-row: 1; padding-inline: 0.4rem; text-align: center; text-wrap: balance; font-size: 0.875rem; line-height: 1.3; color: var(--mist); }
.sbar-a, .sbar-b { grid-row: 1; justify-self: start; padding: 0.1rem 0.45rem; border-radius: 0.4rem; font-weight: 700; font-size: 0.9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sbar-a { grid-column: 1; }
.sbar-a small, .sbar-b small { display: block; font-size: 0.75rem; font-weight: 600; opacity: 0.75; }
.sbar-a { text-align: left; }
.sbar-b { text-align: right; }
.sbar-b { grid-column: 3; justify-self: end; }
.sbar-a.is-lead { background: var(--turf); color: var(--night); }
.sbar-b.is-lead { background: var(--chalk); color: var(--night); }
.sbar-track { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 6px; }
.sbar-track i { position: relative; flex: 1; height: 0.45rem; border-radius: 99rem; background: var(--night); overflow: hidden; }
.sbar-track i::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 99rem; background: rgb(147 166 184 / 0.45); transition: width 0.6s; }
.sbar-fa::after { right: 0; }
.sbar-fb::after { left: 0; }
.sbar-fa.is-lead::after { background: var(--turf); }
.sbar-fb.is-lead::after { background: var(--chalk); }
.sbar.is-soon { opacity: 0.6; }

/* Shot map: one half pitch per team, the goal at the top */
.smaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.smap { display: grid; gap: 0.5rem; margin: 0; }
.smap figcaption { display: grid; gap: 0.1rem; font-weight: 700; font-size: 0.9375rem; }
.smap figcaption small { color: var(--mist); font-weight: 400; font-size: 0.8125rem; }
.smap svg { display: block; width: 100%; height: auto; }
.smap-turf { fill: #0e2b1f; }
.smap-lines { fill: none; stroke: rgb(241 245 238 / 0.24); stroke-width: 1.2; }
.smap-goal { fill: rgb(241 245 238 / 0.12); stroke: rgb(241 245 238 / 0.55); stroke-width: 1.2; }
.smap-shot { fill: none; stroke-width: 1.6; opacity: 0.85; }
.smap-a .smap-shot { stroke: var(--turf); }
.smap-b .smap-shot { stroke: var(--chalk); }
.smap-hit circle { stroke: #0e2b1f; stroke-width: 1.6; }
.smap-a .smap-hit circle { fill: var(--turf); }
.smap-b .smap-hit circle { fill: var(--chalk); }
.smap-hit text { font: 700 9px var(--font-body); fill: var(--chalk); text-anchor: middle; paint-order: stroke; stroke: #0e2b1f; stroke-width: 3px; }
.smap-key { display: flex; gap: 1.25rem; margin-top: 0.9rem; font-size: 0.875rem; color: var(--mist); }
.smap-key span { display: inline-flex; align-items: center; gap: 0.45rem; }
.smap-key span::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; box-sizing: border-box; }
.key-goal::before { background: var(--chalk); }
.key-shot::before { border: 1.6px solid var(--chalk); }
.smap-none { margin-top: 0.9rem; font-size: 0.875rem; }

/* Line-ups: one upright pitch, A on top, B below */
.lineup { display: block; width: 100%; max-width: 27rem; height: auto; margin-inline: auto; }
.lineup text { font-family: var(--font-body); }
.lu-turf, .lu-turf-plain { fill: #0e2b1f; }
.lu-stripe { fill: rgb(46 224 111 / 0.035); }
.lu-lines { fill: none; stroke: rgb(241 245 238 / 0.22); stroke-width: 1.5; }
.lu-goal { fill: rgb(241 245 238 / 0.08); stroke: rgb(241 245 238 / 0.4); stroke-width: 1.5; }
.lu-word { opacity: 0.6; }
.lu-p { cursor: pointer; outline: none; }
.lu-hit { fill: transparent; stroke: none; }
.lu-p:focus-visible .lu-hit { stroke: var(--ball); stroke-width: 2; }
.lu-fig { stroke: #0e2b1f; stroke-width: 1.2; }
.lu-a .lu-fig { fill: var(--turf); }
.lu-b .lu-fig { fill: var(--chalk); }
.lu-p.kit-red .lu-fig { fill: var(--kit-red); }
.lu-p.kit-blue .lu-fig { fill: var(--kit-blue); }
.lu-ring { fill: rgb(255 159 28 / 0.12); stroke: var(--ball); stroke-width: 2; }
.lu-badge { fill: var(--r); stroke: #0e2b1f; stroke-width: 1.5; }
.lu-rating { font-size: 10.5px; font-weight: 800; text-anchor: middle; fill: var(--night); }
.r-none + .lu-rating { fill: var(--chalk); }
.lu-name { font-size: 11.5px; font-weight: 600; text-anchor: middle; fill: var(--chalk); paint-order: stroke; stroke: #0e2b1f; stroke-width: 3px; stroke-linejoin: round; }
.lu-p:hover .lu-name { fill: var(--turf); }
.lu-team { display: flex; align-items: center; gap: 0.6rem; width: 100%; max-width: 27rem; margin-inline: auto; padding: 0 0.25rem 0.75rem; }
.lu-team-b { padding: 0.75rem 0.25rem 0; }
.lu-team-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-formation { color: var(--mist); font-weight: 600; font-variant-numeric: tabular-nums; }
.lu-avg { margin-left: auto; padding: 0.15rem 0.5rem; border-radius: 0.45rem; background: var(--r); color: var(--r-ink); font: 800 0.9375rem/1.4 var(--font-display); }
.lineup-note { margin-top: 1rem; text-align: center; }

/* Player details (sheet and player page) */
.pd { display: grid; gap: 1.25rem; }
.pd-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.9rem 1rem; }
.pd-photo { width: 4.25rem; height: 5.6rem; border-radius: 0.8rem; object-fit: cover; background: var(--night); }
.pd-fig { width: 4.25rem; height: 5.6rem; border-radius: 0.8rem; }
.pd-fig svg { width: 2.4rem; height: 2.9rem; }
.pd-who { display: grid; gap: 0.35rem; min-width: 0; justify-items: start; }
.app-main .pd-name, .psheet .pd-name { margin: 0; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); line-height: 1.15; }
.pd-meta { font-size: 0.9375rem; color: var(--mist); }
.pd-rating { display: grid; justify-items: center; gap: 0.25rem; }
.pd-rating b { padding: 0.25rem 0.6rem; border-radius: 0.6rem; background: var(--r); color: var(--r-ink); font: 800 1.6rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.pd-rating small { font-size: 0.75rem; color: var(--mist); }
.pd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr)); gap: 0.6rem; }
.pd-tiles div { padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--night); }
.pd-tiles dt { font-size: 0.8125rem; color: var(--mist); }
.pd-tiles dd { font: 800 1.35rem/1.3 var(--font-display); font-variant-numeric: tabular-nums; }
.pd-tiles small { font: 600 0.8125rem var(--font-body); color: var(--mist); }
.pd-heat h3 { margin: 0.25rem 0 0.6rem; font-size: 1rem; }
.pd-heat .heat3d-slot + h3 { margin-top: 1.25rem; }
.heat3d-slot { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: radial-gradient(80% 80% at 50% 45%, #10281e, var(--night)); }
.scene-heat3d { position: absolute; inset: 0; }
.heat-scale-warm i { background: linear-gradient(90deg, #14402c, var(--turf), #d8f25c, var(--ball)); }
.pd-parts summary { cursor: pointer; font-weight: 600; }
.pd-parts .muted { margin: 0.6rem 0; font-size: 0.9375rem; }
.pd-page { font-size: 0.9375rem; }
@media (max-width: 26rem) {
  .pd-top { grid-template-columns: auto minmax(0, 1fr); }
  .pd-rating { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
  .pd-who { grid-column: 1 / -1; }
}

/* The player sheet: rises from the bottom, pulls up to full screen */
.psheet {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: 46rem; height: min(82dvh, 52rem); max-height: none;
  margin: 0 auto; padding: 0; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 1.25rem 1.25rem 0 0;
  background: var(--night-2); color: var(--chalk); overflow: hidden;
  transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.psheet.is-up { transform: translateY(0); }
.psheet.is-full { height: 100dvh; max-width: none; border-radius: 0; border: 0; }
.psheet.is-drag { transition: none; }
.psheet::backdrop { background: rgb(4 9 15 / 0.62); }
.psheet-in { display: flex; flex-direction: column; height: 100%; }
.psheet.is-full .psheet-in { padding-top: env(safe-area-inset-top, 0px); }
.psheet-bar { position: relative; flex: none; min-height: 3.4rem; touch-action: none; }
.psheet-grab { display: block; width: 100%; height: 3.4rem; padding: 0 0 1.4rem; border: 0; background: none; cursor: grab; touch-action: none; }
.psheet-grab i { display: block; width: 2.75rem; height: 0.3rem; margin: 0 auto; border-radius: 99rem; background: var(--line-2); }
.psheet-close { position: absolute; right: 0.6rem; top: 0.45rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--night); color: var(--chalk); cursor: pointer; }
.psheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.25rem max(16px, 1.25rem) calc(1.75rem + env(safe-area-inset-bottom, 0px)); }
html.sheet-open { overflow: hidden; }
.pd-page-card { margin-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  .psheet, .sbar-track i::after, .lead-more svg { transition: none; }
}

/* "This is me" by kit colour and shirt number (numbered games) */
.kit-pick { display: grid; gap: 1rem; margin-top: 1rem; }
.kit-team { min-width: 0; margin: 0; padding: 0; border: 0; }
.kit-team legend { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; font-weight: 700; }
.kit-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--mist); }
.kit-red .kit-dot { background: var(--kit-red); }
.kit-blue .kit-dot { background: var(--kit-blue); }
.kit-nos { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kit-no { position: relative; }
.kit-no input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.kit-no span { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1.5px solid var(--line-2); border-radius: 0.75rem;
  font: 800 1.25rem/1 var(--font-display); color: var(--chalk); background: var(--night); }
.kit-red .kit-no input:checked + span { background: var(--kit-red); border-color: var(--kit-red); color: #fff; }
.kit-blue .kit-no input:checked + span { background: var(--kit-blue); border-color: var(--kit-blue); color: #fff; }
.kit-no input:focus-visible + span { outline: 2px solid var(--ball); outline-offset: 2px; }
.kit-no.is-off span { opacity: 0.35; text-decoration: line-through; }
.kit-no.is-off input { cursor: not-allowed; }
.kit-pick .btn { justify-self: start; }
/* The tagging page's numbers window: 1-14 for each colour, picked by click (own classes: the room's .kit-no draws shirts) */
.tkit-pick { gap: 1.1rem; }
.tkit-nos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.45rem; }
.tkit-no { position: relative; min-width: 0; }
.tkit-no input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.tkit-no span { display: grid; place-items: center; height: 3rem; border: 1.5px solid var(--line-2); border-radius: 0.7rem;
  background: var(--night); color: var(--chalk); font: 800 1.2rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tkit-no:hover span { border-color: var(--mist); }
.kit-red .tkit-no input:checked + span { background: var(--kit-red); border-color: var(--kit-red); color: #fff; }
.kit-blue .tkit-no input:checked + span { background: var(--kit-blue); border-color: var(--kit-blue); color: #fff; }
.tkit-no input:focus-visible + span { outline: 2px solid var(--ball); outline-offset: 2px; }
.tkit-no.is-off span { opacity: 0.3; text-decoration: line-through; }
.tkit-no.is-off input { cursor: not-allowed; }
.tkit-no.is-shared span { box-shadow: inset 0 0 0 3px var(--kit-red), inset 0 0 0 6px var(--kit-blue); }   /* both teams wear it */
.kit-count { color: var(--mist); font-weight: 400; font-size: 0.875rem; }

/* ---------- Stadium page (/az/stadium) ------------------------------------- */

.btn-turf { background: var(--turf); color: var(--night); }
.btn-turf:hover { background: #5be98d; color: var(--night); }
.st-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.st-head h1, .st-head .place { grid-column: 1; }
.st-head form { grid-column: 2; grid-row: 1 / 3; }
.st-grid { display: grid; gap: 1rem; align-items: start; grid-template-areas: "week" "now"; }   /* phone: the bookings first */
.st-grid > * { min-width: 0; }   /* the week scrolls inside its box, never widens the page */
.st-now-list { grid-area: now; display: grid; gap: 1rem; }
.st-week { grid-area: week; }
.st-form { grid-area: form; }
@media (min-width: 64rem) {
  .st-grid { grid-template-columns: 23rem minmax(0, 1fr); grid-template-areas: "now week"; }
}

.st-now h2, .st-form h2 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.st-health { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0 0 0.75rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--mist); }
.st-health li::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.4rem; border-radius: 50%; background: var(--line-2); }
.st-health .is-ok::before { background: var(--turf); }
.st-health .is-bad::before { background: var(--error); }
.st-game { padding: 0.7rem 0.8rem; border-radius: 0.75rem; background: var(--night); font-weight: 600; margin-bottom: 0.75rem; }
.st-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 0.5rem; }
.st-types button { padding: 0.55rem 0.3rem; border: 1.5px solid var(--line-2); border-radius: 0.7rem; background: var(--night); color: var(--chalk); font: 600 0.875rem/1.25 var(--font-body); }
.st-types small { display: block; color: var(--mist); font-weight: 400; }
.st-btn { width: 100%; margin-top: 0.5rem; }
.st-now button:disabled { opacity: 0.4; cursor: not-allowed; }

.st-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 0.75rem; }
.st-form .form, .st-form .field, .st-two > * { min-width: 0; }
.st-form input, .st-form select { width: 100%; max-width: 100%; min-width: 0; }
.st-kinds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem; margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.st-kinds legend { margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9375rem; }
.st-kind { position: relative; }
.st-kind input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.st-kind span { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.35rem; min-height: 3rem; padding: 0.45rem 0.6rem; border: 1.5px solid var(--line-2); border-radius: 0.7rem; background: var(--night); font-size: 0.875rem; font-weight: 600; }
.st-kind small { color: var(--mist); font-weight: 400; }
.st-kind input:checked + span { border-color: var(--turf); background: rgb(46 224 111 / 0.12); }
.st-kind input:focus-visible + span { outline: 2px solid var(--ball); outline-offset: 2px; }
.st-cam { flex: none; fill: none; stroke: var(--turf); stroke-width: 3.5; }
.st-form .link-button { margin-left: 1rem; }
.st-cancel { margin-top: 1rem; }

.st-week-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.st-week-head h2 { margin: 0 auto 0 0; font-size: 1.125rem; }
.st-nav { display: flex; gap: 0.3rem; }
.st-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-bottom: 0.6rem; font-size: 0.8125rem; color: var(--mist); }
.st-legend span { display: inline-flex; align-items: center; }
.st-legend span::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.35rem; border-radius: 0.2rem; vertical-align: -1px; }
.st-legend .lg-cam::before { display: none; }
.st-legend .lg-cam svg { fill: none; stroke: var(--turf); stroke-width: 3.5; margin-right: 0.3rem; vertical-align: -2px; }
.st-legend .lg-plain::before { background: rgb(77 141 255 / 0.45); }
.st-legend .lg-past::before { background: var(--line-2); }

/* The week: one grid, 8 columns (hours + 7 days) and one row per half hour. */
.st-scroll { overflow: auto; max-height: min(38rem, 72vh); border: 1px solid var(--line); border-radius: 0.8rem; -webkit-overflow-scrolling: touch; }
.wk { --slot: 1.6rem; display: grid; grid-template-columns: 3.2rem repeat(7, minmax(7.25rem, 1fr)); grid-auto-rows: var(--slot); grid-template-rows: auto; min-width: max-content; position: relative; }
.wk-corner, .wk-day { position: sticky; top: 0; z-index: 4; background: var(--night-2); border-bottom: 1px solid var(--line); }
.wk-corner { left: 0; z-index: 5; }
.wk-day { padding: 0.45rem 0.3rem; text-align: center; border-left: 1px solid var(--line); line-height: 1.25; }
.wk-day b { display: block; font-size: 0.875rem; }
.wk-day small { color: var(--mist); font-size: 0.75rem; }
.wk-day.is-today { background: #133426; }
.wk-day.is-today b { color: var(--turf); }
.wk-hour { position: sticky; left: 0; z-index: 3; padding: 0.15rem 0.4rem 0 0; text-align: right; font-size: 0.6875rem; color: var(--mist); background: var(--night-2); border-top: 1px solid var(--line); }
.wk-todaycol { grid-row: 2 / -1; background: rgb(46 224 111 / 0.05); }
.wk-slot { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.wk-slot:hover, .wk-slot:focus-visible { background: rgb(46 224 111 / 0.1); outline: none; }
.wk-bk { position: relative; z-index: 2; margin: 1px 2px; padding: 0.25rem 0.4rem; overflow: hidden; border-radius: 0.45rem; border-left: 3px solid var(--kit-blue); background: rgb(77 141 255 / 0.22); color: var(--chalk); text-decoration: none; font-size: 0.75rem; line-height: 1.25; }
.wk-bk b { display: block; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-bk.is-cam { border-left-color: var(--turf); background: rgb(46 224 111 / 0.2); }
.wk-bk.is-past { border-left-color: var(--mist); background: rgb(147 166 184 / 0.12); color: var(--mist); }
.wk-bk.is-open { outline: 2px solid var(--ball); }
.wk-bk:hover { filter: brightness(1.2); }
.bk-time { display: flex; align-items: center; gap: 0.3rem; opacity: 0.85; }
.bk-cam { flex: none; fill: none; stroke: currentColor; stroke-width: 3.5; }
.bk-kind { display: block; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-now { position: absolute; z-index: 3; height: 2px; background: var(--error); pointer-events: none; }
.wk-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--error); }
.wk .c1 { grid-column: 1; }
.wk .c2 { grid-column: 2; }
.wk .c3 { grid-column: 3; }
.wk .c4 { grid-column: 4; }
.wk .c5 { grid-column: 5; }
.wk .c6 { grid-column: 6; }
.wk .c7 { grid-column: 7; }
.wk .c8 { grid-column: 8; }
.wk .r1 { grid-row-start: 1; }
.wk .r2 { grid-row-start: 2; }
.wk .r3 { grid-row-start: 3; }
.wk .r4 { grid-row-start: 4; }
.wk .r5 { grid-row-start: 5; }
.wk .r6 { grid-row-start: 6; }
.wk .r7 { grid-row-start: 7; }
.wk .r8 { grid-row-start: 8; }
.wk .r9 { grid-row-start: 9; }
.wk .r10 { grid-row-start: 10; }
.wk .r11 { grid-row-start: 11; }
.wk .r12 { grid-row-start: 12; }
.wk .r13 { grid-row-start: 13; }
.wk .r14 { grid-row-start: 14; }
.wk .r15 { grid-row-start: 15; }
.wk .r16 { grid-row-start: 16; }
.wk .r17 { grid-row-start: 17; }
.wk .r18 { grid-row-start: 18; }
.wk .r19 { grid-row-start: 19; }
.wk .r20 { grid-row-start: 20; }
.wk .r21 { grid-row-start: 21; }
.wk .r22 { grid-row-start: 22; }
.wk .r23 { grid-row-start: 23; }
.wk .r24 { grid-row-start: 24; }
.wk .r25 { grid-row-start: 25; }
.wk .r26 { grid-row-start: 26; }
.wk .r27 { grid-row-start: 27; }
.wk .r28 { grid-row-start: 28; }
.wk .r29 { grid-row-start: 29; }
.wk .r30 { grid-row-start: 30; }
.wk .r31 { grid-row-start: 31; }
.wk .r32 { grid-row-start: 32; }
.wk .r33 { grid-row-start: 33; }
.wk .r34 { grid-row-start: 34; }
.wk .r35 { grid-row-start: 35; }
.wk .r36 { grid-row-start: 36; }
.wk .r37 { grid-row-start: 37; }
.wk .r38 { grid-row-start: 38; }
.wk .r39 { grid-row-start: 39; }
.wk .r40 { grid-row-start: 40; }
.wk .r41 { grid-row-start: 41; }
.wk .r42 { grid-row-start: 42; }
.wk .r43 { grid-row-start: 43; }
.wk .r44 { grid-row-start: 44; }
.wk .r45 { grid-row-start: 45; }
.wk .r46 { grid-row-start: 46; }
.wk .r47 { grid-row-start: 47; }
.wk .r48 { grid-row-start: 48; }
.wk .r49 { grid-row-start: 49; }
.wk .s1 { grid-row-end: span 1; }
.wk .s2 { grid-row-end: span 2; }
.wk .s3 { grid-row-end: span 3; }
.wk .s4 { grid-row-end: span 4; }
.wk .s5 { grid-row-end: span 5; }
.wk .s6 { grid-row-end: span 6; }
.wk .s7 { grid-row-end: span 7; }
.wk .s8 { grid-row-end: span 8; }
.wk .s9 { grid-row-end: span 9; }
.wk .s10 { grid-row-end: span 10; }
.wk .s11 { grid-row-end: span 11; }
.wk .s12 { grid-row-end: span 12; }

/* Phone: the strip of seven days, and the week shows the chosen day only. */
.wk-strip { display: none; }
.st-add-text { margin-left: 0.3rem; }
@media (max-width: 47.99rem) {
  .wk-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; margin-bottom: 0.75rem; }
  .wk-chip { position: relative; display: grid; justify-items: center; gap: 0.1rem; padding: 0.45rem 0 0.55rem; border: 1.5px solid var(--line-2); border-radius: 0.8rem; background: var(--night); color: var(--chalk); text-decoration: none; }
  .wk-chip small { font-size: 0.6875rem; color: var(--mist); }
  .wk-chip b { font: 800 1.125rem/1.1 var(--font-display); }
  .wk-chip.is-today b { color: var(--turf); }
  .wk-chip.is-on { border-color: var(--turf); background: rgb(46 224 111 / 0.14); }
  .wk-count { position: absolute; top: -0.4rem; right: -0.25rem; min-width: 1.15rem; height: 1.15rem; padding: 0 0.25rem; border-radius: 0.6rem; background: var(--ball); color: var(--night); font: 700 0.6875rem/1.15rem var(--font-body); text-align: center; }
  .wk-count:empty { display: none; }
  .st-week { padding-inline: 0.75rem; }
  .st-scroll { max-height: 72vh; }
  .wk { --slot: 2rem; grid-template-columns: 3rem minmax(0, 1fr); min-width: 0; }
  .wk-corner, .wk-day { display: none; }
  .wk-bk { margin: 2px 4px; padding: 0.35rem 0.6rem; font-size: 0.8125rem; }
  .wk-bk b { font-size: 0.9375rem; }
  .wk:not([data-day="0"]) .c2 { display: none; }
  .wk[data-day="0"] .c2 { grid-column: 2; }
  .wk:not([data-day="1"]) .c3 { display: none; }
  .wk[data-day="1"] .c3 { grid-column: 2; }
  .wk:not([data-day="2"]) .c4 { display: none; }
  .wk[data-day="2"] .c4 { grid-column: 2; }
  .wk:not([data-day="3"]) .c5 { display: none; }
  .wk[data-day="3"] .c5 { grid-column: 2; }
  .wk:not([data-day="4"]) .c6 { display: none; }
  .wk[data-day="4"] .c6 { grid-column: 2; }
  .wk:not([data-day="5"]) .c7 { display: none; }
  .wk[data-day="5"] .c7 { grid-column: 2; }
  .wk:not([data-day="6"]) .c8 { display: none; }
  .wk[data-day="6"] .c8 { grid-column: 2; }
  /* "+ Booking" floats over the corner of the screen, as in calendar apps */
  .st-add { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-height: 3.25rem; padding: 0 1.2rem; border-radius: 1.75rem; font-size: 1rem; box-shadow: 0 8px 24px rgb(0 0 0 / 0.45); }
  .st-add span[aria-hidden] { font-size: 1.4rem; line-height: 1; }
}

/* ==========================================================================
   The room in the light (2026-11): page_top(…, ['light' => true]) puts the
   room and player pages on the landing's light ground. Only the colour tokens
   change, so every block above follows; the site header and footer stay dark.
   Teams take their kit colours (red / blue) through --ta / --tb.
   ========================================================================== */

body.app-light {
  --night: #edf1ea;       /* page ground and inner tiles                     */
  --night-2: #ffffff;     /* cards                                           */
  --line: #dbe2d8;
  --line-2: #c3cec0;
  --chalk: #0d1b2a;       /* text                                            */
  --chalk-2: #33414d;
  --mist: #5a6b78;
  --turf: #12a150;        /* the green, dark enough to read on white         */
  --error: #d83a2b;
  background: var(--night);
  color: var(--chalk);
}
body.app-light .site-header, body.app-light .site-footer {
  --night: #0a1420; --night-2: #0f1c2c; --line: #1d3145; --line-2: #2c475f;
  --chalk: #f1f5ee; --chalk-2: #c9d4dd; --mist: #93a6b8; --turf: #2ee06f;
}
body.app-light .site-header { background: #0a1420; color: #f1f5ee; }
body.app-light .site-footer { background: #0a1420; border-top-color: #0a1420; }   /* the logo's white "Smart" needs the night ground */
.app-light .mcard, .app-light .card, .app-light .mhead {
  border-color: transparent;
  box-shadow: 0 1px 2px rgb(13 27 42 / 0.05), 0 10px 30px -16px rgb(13 27 42 / 0.18);
}
.app-light .mhead { background: radial-gradient(120% 140% at 50% 0%, rgb(18 161 80 / 0.08), transparent 60%), #fff; }
.app-light .mtabs { background: rgb(237 241 234 / 0.92); }
.app-light .btn-ball { color: #0d1b2a; }
.app-light .btn-line { border-color: var(--line-2); color: var(--chalk); }
.app-light .btn-line:hover { border-color: var(--chalk); }
.app-light .r-none { --r: #dbe2d8; --r-ink: #0d1b2a; }
.app-light .r-top  { --r: #12a150; --r-ink: #fff; }
.app-light .r-good { --r: #4cc27c; --r-ink: #0d1b2a; }
.app-light .psheet::backdrop { background: rgb(13 27 42 / 0.45); }
.app-light .hl-screen { background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.06) 0 12%, transparent 12% 24%), radial-gradient(60% 90% at 50% 50%, #2b8a52, #1c6b3e); }
.app-light .smap-turf, .app-light .lu-turf { fill: #1f7a47; }
.app-light .heat3d-slot { background: radial-gradient(80% 80% at 50% 45%, #2b8a52, #18532f); }

/* Team colours: by kit when the game has them, else A green and B white (dark) / ink (light) */
.match { --ta: var(--turf); --tb: var(--chalk); }
.match.ta-red { --ta: var(--kit-red); }
.match.ta-blue { --ta: var(--kit-blue); }
.match.tb-red { --tb: var(--kit-red); }
.match.tb-blue { --tb: var(--kit-blue); }
.match .team-a::before { background: var(--ta); }
.match .team-b::before { background: var(--tb); }
.match .crest-a svg { fill: var(--ta); }
.match .crest-b svg { fill: var(--tb); }
.match .crest-big.crest-a { border-color: var(--ta); }
.match .crest-big.crest-b { border-color: var(--tb); }

/* Under the score: each scorer once, ×count and the minutes (render_head_scorers; as in the phone app). */
.mscorers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.25rem; width: 100%; max-width: 40rem; margin-top: 0.35rem; padding-top: 0.9rem; border-top: 1px solid var(--line); text-align: left; }
.mscorers-side { display: grid; align-content: start; gap: 0.6rem; margin: 0; padding: 0; list-style: none; min-width: 0; }
.mscorers-b { justify-items: end; text-align: right; }
.mscorers-side li { display: grid; gap: 0.1rem; min-width: 0; max-width: 100%; }
.mscorers.is-short .is-more { display: none; }
.mscorer-head { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.mscorers-b .mscorer-head { flex-direction: row-reverse; }
.mscorer-head b { font-size: 0.875rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mscorer-ball { flex: none; width: 0.65rem; height: 0.65rem; border-radius: 50%; border: 3px solid var(--ta); background: var(--night-2); }
.mscorers-b .mscorer-ball { border-color: var(--tb); }
.mscorer-times { flex: none; padding: 0.05rem 0.4rem; border-radius: 99rem; background: var(--ta); color: #fff; font-size: 0.6875rem; font-weight: 900; }
.mscorers-b .mscorer-times { background: var(--tb); }
.mscorer-mins { padding-left: 1.05rem; font-size: 0.8125rem; color: var(--mist); font-variant-numeric: tabular-nums; white-space: pre-wrap; }
.mscorers-b .mscorer-mins { padding: 0 1.05rem 0 0; }
.mscorers-more { grid-column: 1 / -1; justify-self: center; padding: 0.3rem 0.9rem; border: 1px solid var(--line); border-radius: 99rem; background: var(--night); color: var(--chalk-2); font: 700 0.8125rem/1.4 var(--font-body); cursor: pointer; }
.mscorers-more:hover, .mscorers-more:focus-visible { border-color: var(--turf); color: var(--chalk); }
.app-light .mscorer-ball { background: #fff; }
.app-light .mscorers-more { background: #f4f6f2; color: #3d4e60; }
.match .sbar-a.is-lead { background: var(--ta); color: #fff; }
.match .sbar-b.is-lead { background: var(--tb); color: #fff; }
.match .sbar-fa.is-lead::after { background: var(--ta); }
.match .sbar-fb.is-lead::after { background: var(--tb); }
.match .smap-a .smap-shot { stroke: var(--ta); }
.match .smap-b .smap-shot { stroke: var(--tb); }
.match .smap-a .smap-hit circle { fill: var(--ta); }
.match .smap-b .smap-hit circle { fill: var(--tb); }
.match .tline-a .tline-ball { color: var(--ta); }
.match .tline-b .tline-ball { color: var(--tb); }
.match .lead-a svg { fill: var(--ta); }
.match .lead-b svg { fill: var(--tb); }
.app-light .match .smap-hit text { fill: #fff; stroke: #1f7a47; }
.app-light .match .smap-lines { stroke: rgb(255 255 255 / 0.45); }

/* Shirts: the team's colour, the number in white */
.shirt, .kit-shirt { display: block; overflow: visible; }
.shirt use, .kit-shirt use { stroke: rgb(13 27 42 / 0.18); stroke-width: 1.2; }
.shirt-a { fill: var(--ta, var(--turf)); }
.shirt-b { fill: var(--tb, var(--chalk)); }
.shirt text, .kit-shirt text { font: 800 15px var(--font-display); fill: #fff; text-anchor: middle; }

/* "This is me": the shirt numbers 1-14 in the kit colours */
.kit-nos { gap: 0.4rem; }
.kit-no > span { width: 3.4rem; height: 3.4rem; padding: 0.15rem; border: 2px solid transparent; background: transparent; border-radius: 0.9rem; }
.kit-no .kit-shirt { width: 100%; height: 100%; opacity: 0.75; transition: opacity 0.15s, transform 0.15s; }
.kit-no:hover .kit-shirt { opacity: 1; transform: translateY(-1px); }
.kit-red .kit-no input:checked + span, .kit-blue .kit-no input:checked + span { background: transparent; border-color: var(--ball); }
.kit-no input:checked + span .kit-shirt { opacity: 1; }
.kit-no.is-off > span { opacity: 0.3; text-decoration: none; }
.kit-red .kit-shirt { fill: var(--kit-red); }
.kit-blue .kit-shirt { fill: var(--kit-blue); }

/* Attack lanes: three arrows towards the attacked goal, thickness by share */
.lanes-text { margin: -0.4rem 0 0.9rem; font-size: 0.9375rem; }
.lanes { display: grid; gap: 1rem; }
.lane { display: grid; gap: 0.45rem; margin: 0; }
.lane figcaption { font-weight: 700; font-size: 0.9375rem; }
.lane svg { display: block; width: 100%; height: auto; }
.lane-turf { fill: #1f7a47; }
.lane-lines { fill: none; stroke: rgb(255 255 255 / 0.35); stroke-width: 1.5; }
.lane-sep { fill: none; stroke: rgb(255 255 255 / 0.18); stroke-width: 1; stroke-dasharray: 4 6; }
.lane-arrow path:first-child { fill: none; stroke-linecap: round; opacity: 0.55; }
.lane-arrow.is-top path:first-child { opacity: 0.95; }
.lane-arrow text { font: 800 20px var(--font-display); fill: #fff; text-anchor: middle; }
.lane-a .lane-arrow path:first-child { stroke: var(--ta); }
.lane-b .lane-arrow path:first-child { stroke: var(--tb); }
.lane-a .lane-head { fill: var(--ta); }
.lane-b .lane-head { fill: var(--tb); }
.lane-arrow .lane-head { opacity: 0.55; }
.lane-arrow.is-top .lane-head { opacity: 0.95; }
.lanes-key { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.75rem; font-size: 0.8125rem; color: var(--mist); }
.lanes-key span:nth-child(1)::before { content: "↑ "; }
.lanes-key span:nth-child(3)::before { content: "↓ "; }

/* Where the ball was: three cells per team, darker where the ball was more */
.zones { display: grid; gap: 1rem; }
.zone-row { display: grid; gap: 0.45rem; }
.zone-row .team { font-weight: 700; font-size: 0.9375rem; }
.zone-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.zone-cell { display: grid; justify-items: center; gap: 0.1rem; padding: 0.9rem 0.3rem; border-radius: 0.7rem; text-align: center; background: color-mix(in srgb, var(--zc) var(--zl), var(--night)); }
.zone-a .zone-cell { --zc: var(--ta); }
.zone-b .zone-cell { --zc: var(--tb); }
.zone-cell.lvl-0 { --zl: 6%; } .zone-cell.lvl-1 { --zl: 14%; } .zone-cell.lvl-2 { --zl: 26%; }
.zone-cell.lvl-3 { --zl: 42%; } .zone-cell.lvl-4 { --zl: 62%; }
.zone-cell b { font: 800 1.25rem/1.2 var(--font-display); }
.zone-cell small { font-size: 0.75rem; color: var(--chalk-2); }
.zone-cell.lvl-4 b, .zone-cell.lvl-4 small, .zone-cell.lvl-3 b { color: #fff; }
.zones-note { margin-top: 0.9rem; }
.kit-shirt text { font-size: 13.5px; letter-spacing: -0.4px; }
.pd-shirt { display: grid; place-items: center; width: 4.25rem; height: 5.1rem; border-radius: 0.8rem; background: color-mix(in srgb, var(--pc-c, var(--turf)) 14%, var(--night-2)); }
.pd-shirt-a { --pc-c: var(--ta); }
.pd-shirt-b { --pc-c: var(--tb); }
.pd-shirt .shirt { width: 78%; }

/* The room's door: sign in / register as two big buttons, the guest way folded under them */
.join { display: grid; place-items: center; padding-block: clamp(0.5rem, 3vw, 2rem); }
.join-card {
  display: grid; gap: 0.9rem; width: min(100%, 27rem); padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: 1.5rem; background: var(--night-2); text-align: center;
  box-shadow: 0 1px 2px rgb(13 27 42 / 0.05), 0 18px 40px -20px rgb(13 27 42 / 0.28);
}
.join-mark { justify-self: center; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1.2rem; background: #0a1420; }
.app-main .join-card h2 { margin: 0.25rem 0 0; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); }
.join-card > .muted { margin-top: -0.4rem; }
.join-ways { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.join-ways .btn, .join-go { width: 100%; justify-content: center; }
.join-or { display: flex; align-items: center; gap: 0.75rem; color: var(--mist); font-size: 0.875rem; }
.join-or::before, .join-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.join-guest { border-radius: 1rem; background: var(--night); text-align: left; }
.join-guest summary {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1.1rem; list-style: none;
  font-weight: 700; cursor: pointer; border-radius: 1rem;
}
.join-guest summary::-webkit-details-marker { display: none; }
.join-guest summary svg { flex: none; }
.join-guest summary span { flex: 1; }
.join-chev { transform: rotate(90deg); transition: transform 0.2s; color: var(--mist); }
.join-guest[open] .join-chev { transform: rotate(-90deg); }
.join-guest .join-form { margin: 0; padding: 0 1.1rem 1.1rem; }
.join-form { text-align: left; }
.join-form input[name="room_code"] { font: 800 1.6rem/1.2 var(--font-display); letter-spacing: 0.4em; text-align: center; }
.join-as { font-weight: 600; }
.app-light .join-guest input, .app-light .join-form input { background: #fff; }
.app-light .room-head h1 { color: var(--chalk); }
.join .join-form { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.join .join-form .fineprint { margin: 0; text-align: center; }
@media (max-width: 30rem) { .pc-shirt { aspect-ratio: 16 / 11; } .pc-grid { gap: 0.6rem; } }

/* Team heatmaps: one pitch each, attacking to the right */
.team-heat { margin-top: clamp(1rem, 3vw, 1.5rem); }
.th-grid { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .th-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.th { display: grid; gap: 0.5rem; margin: 0; }
.th figcaption { font-weight: 700; font-size: 0.9375rem; }
.app-light .heat-box { background: #1f7a47; border-radius: 0.9rem; }
.app-light .heat-lines { color: rgb(255 255 255 / 0.55); }
.th figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.th-dir { font-size: 0.8125rem; }

/* ==========================================================================
   Account page (on the light ground above): the player card, totals and
   the list of games.
   ========================================================================== */

.app-light .notice-ok { background: #e9f8ef; border-color: #b7e7c9; }
.app-light .notice-error { background: #fdeeec; border-color: #f2c4bf; }

.btn-dark { background: #0a1420; color: #fff; }
.btn-dark:hover { background: #1d3145; color: #fff; }
/* "Share as an Instagram story" under the card (app.js 23) */
.btn-story { gap: 0.45rem; justify-self: center; border: 0; color: #fff; background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); }
.btn-story:hover, .btn-story:focus-visible { color: #fff; filter: brightness(1.08); }
.btn-story svg { fill: none; stroke: currentColor; stroke-width: 2; }
.btn-story svg circle:last-child { fill: currentColor; stroke: none; }
.btn-story[disabled] { opacity: 0.7; }
.story-status { margin: 0; font-size: 0.875rem; color: #3d4e60; text-align: center; }
.btn-quiet { background: transparent; border-color: var(--line-2); color: var(--chalk); }
.btn-quiet:hover { border-color: var(--chalk); color: var(--chalk); }

.acc-hero { display: grid; gap: 2rem; }
@media (min-width: 54rem) {
  .acc-hero { grid-template-columns: 20rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .acc-card { position: sticky; top: 6rem; }   /* below the sticky header */
}
.acc-main > .block, .acc-main > .room-grid { margin-top: 0.5rem; }
.acc-main .room-grid { gap: 1.25rem; }

/* The card column */
.acc-card { display: grid; gap: 0.9rem; justify-items: center; width: min(100%, 20rem); margin-inline: auto; }
.photo-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.photo-pick { position: relative; }
.photo-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-pick:focus-within { outline: 2px solid var(--turf); outline-offset: 2px; }
.photo-form.is-js .photo-send { display: none; }
.photo-form.is-busy { opacity: 0.5; pointer-events: none; }
.photo-status { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9375rem; font-weight: 600; text-align: center; }
.photo-status[hidden] { display: none; }
.photo-status.is-error { color: var(--error); }
.photo-status.is-error .spin { display: none; }
.spin { flex: none; width: 1rem; height: 1rem; border: 2px solid var(--line-2); border-top-color: var(--turf); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.acc-card-note { max-width: 18rem; font-size: 0.8125rem; line-height: 1.45; color: var(--mist); text-align: center; }

/* The card itself ("The player card" in app/partials/results.php). Its colours do not follow the
   page: the card is always dark. The edge colour shows the level of the overall. */
.fc {
  --fc-edge: #2ee06f;
  --fc-glow: #173a57;
  display: block; width: 100%; height: auto; overflow: visible;
  font-family: var(--font-display);
  filter: drop-shadow(0 22px 28px rgb(10 20 32 / 0.28));
}
.fc-bronze { --fc-edge: #d39a5e; --fc-glow: #3a2a1c; }
.fc-silver { --fc-edge: #cfd9e2; --fc-glow: #283a4b; }
.fc-elite  { --fc-edge: #ffb347; --fc-glow: #1e3b3a; }
.fc-edge { fill: #0a1420; stroke: var(--fc-edge); stroke-width: 5; }
.fc-s-glow { stop-color: var(--fc-glow); }
.fc-s-base { stop-color: #0a1420; }
.fc-s-ray { stop-color: var(--fc-edge); stop-opacity: 0.32; }
.fc-s-ray0 { stop-color: var(--fc-edge); stop-opacity: 0; }
.fc-pitch { fill: none; stroke: var(--fc-edge); stroke-opacity: 0.14; stroke-width: 2; }
.fc-pitch .fc-spot { fill: var(--fc-edge); fill-opacity: 0.35; stroke: none; }
.fc-trail { fill: none; stroke: var(--fc-edge); stroke-opacity: 0.4; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 0 15; }
.fc-ghost { fill: var(--fc-edge); opacity: 0.1; }
.fc-inner { fill: none; stroke: var(--fc-edge); stroke-opacity: 0.4; stroke-width: 2; }
.fc-overall { font-size: 100px; font-weight: 800; letter-spacing: -3px; fill: #f1f5ee; }
.fc-pos { font-size: 34px; font-weight: 700; letter-spacing: 1px; fill: #93a6b8; }
.fc-name { font-weight: 800; letter-spacing: 0.5px; text-anchor: middle; fill: #f1f5ee; }
.fc-rule { stroke: var(--fc-edge); stroke-width: 2.5; stroke-opacity: 0.85; }
.fc-num { font-size: 36px; font-weight: 800; text-anchor: middle; fill: var(--fc-edge); }
.fc-num.is-empty { fill: #93a6b8; fill-opacity: 0.55; }
.fc-lbl { font-size: 21px; font-weight: 600; letter-spacing: 0.5px; text-anchor: middle; fill: #f1f5ee; }
.fc-brand { font-size: 15px; font-weight: 600; letter-spacing: 6px; text-anchor: middle; fill: #93a6b8; }

/* Name, tabs and totals */
.acc-main { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.acc-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 1rem; }
.acc-top h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
.acc-top .eyebrow { margin-bottom: 0.2rem; }
.acc-tabs { display: inline-flex; flex-wrap: wrap; justify-self: start; gap: 0.25rem; padding: 0.3rem; border-radius: 99rem; background: var(--line); }
.acc-tabs a { padding: 0.5rem 1.15rem; border-radius: 99rem; color: #3d4e60; font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.acc-tabs a:hover { color: var(--chalk); }
.acc-tabs a[aria-current] { background: #fff; color: var(--chalk); box-shadow: 0 1px 3px rgb(10 20 32 / 0.12); }
/* Overall numbers, small tiles with an icon (as in the phone app): the icon and the number, the label below. */

/* Games */
.app-light .block h2 { display: flex; align-items: center; gap: 0.6rem; }
.count { padding: 0.1rem 0.6rem; border-radius: 99rem; background: var(--line); font: 700 0.875rem/1.5 var(--font-body); color: var(--mist); letter-spacing: 0; }
.empty { padding: 1.5rem; border: 1.5px dashed var(--line-2); border-radius: 1rem; color: var(--mist); background: #fff; }
.games { border: 1px solid var(--line); border-radius: 1.25rem; background: #fff; overflow: hidden; }
.games li + li { border-top: 1px solid var(--line); }
.games a {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto 1.25rem; align-items: center; gap: 1rem;
  padding: 0.9rem 1.25rem; color: var(--chalk); text-decoration: none;
}
.games a:hover { background: rgb(13 27 42 / 0.03); color: var(--chalk); }
.games a:hover .gm-go { stroke: var(--chalk); transform: translateX(2px); }
.gm-date, .gm-place { display: grid; min-width: 0; }
.gm-date b { font: 800 1.25rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.gm-place b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-date small, .gm-place small { font-size: 0.8125rem; color: var(--mist); }
.gm-go { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.gm-chip { padding: 0.3rem 0.8rem; border-radius: 99rem; font-weight: 700; font-size: 0.8125rem; white-space: nowrap; }
.gm-chip-rating { min-width: 3.4rem; padding: 0.25rem 0.8rem; background: #0a1420; color: #2ee06f; font: 800 1.125rem/1.3 var(--font-display); text-align: center; }
.gm-chip-pick { background: #fff1de; color: #a85a00; }
.gm-chip-ok { background: #e7f8ee; color: #12793e; }
.gm-chip-wait { background: #eef2f6; color: #4a5b6c; }
.gm-chip-bad { background: #fdecea; color: #b4332a; }
@media (max-width: 34rem) {
  .games a { grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.75rem; padding: 0.85rem 1rem; }
  .gm-date { grid-row: 1; display: flex; gap: 0.5rem; align-items: baseline; }
  .gm-date b { font-size: 1rem; }
  .gm-place { grid-column: 1; grid-row: 2; }
  .gm-chip { grid-column: 2; grid-row: 1 / 3; }
  .gm-go { display: none; }
}

   Admin tagging page (app/pages/admin_tag.php, assets/js/tag.js)
   ========================================================================== */
.tagger .back { margin-bottom: 0.25rem; }
.tag-head { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.tag-head h1 { margin: 0; }
.tag-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-pill { padding: 0.2rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--night-2); color: var(--mist); font-size: 0.875rem; }
.tag-pill b { color: var(--chalk); font-variant-numeric: tabular-nums; }
.tag-main { display: grid; gap: 1rem; }
@media (min-width: 64rem) { .tag-main { grid-template-columns: minmax(0, 1fr) 19rem; } }
/* the tagging page uses the whole screen width: players must be told apart without going full screen */
.app-main:has(> .wrap > .tagger) { padding-top: 0.75rem; }
.wrap:has(> .tagger) { max-width: none; padding-inline: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)); }
.tag-head h1 { font-size: 1.4rem; }
.tag-video, .tag-box { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night-2); }
.tag-cams { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 0.75rem 0; }
.tag-cams:empty { display: none; }
.tag-cams [aria-pressed="true"] { border-color: var(--turf); color: var(--turf); }
.tag-vwrap { position: relative; margin-top: 0.6rem; }
.tag-vwrap video { display: block; width: 100%; max-width: 100%; background: #000; aspect-ratio: 2636 / 1000; }
.tag-holder { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.3rem 0.85rem; border: 2px solid var(--mist); border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.6); font-weight: 700; font-size: 1.15rem; pointer-events: none; }
.tag-holder[data-team="red"] { border-color: var(--kit-red); }
.tag-holder[data-team="blue"] { border-color: var(--kit-blue); }
.tag-toast { position: absolute; top: 0.75rem; right: 0.75rem; max-width: 60%; padding: 0.3rem 0.75rem; border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.72); font-weight: 600; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.tag-toast.on { opacity: 1; }
.tag-wait { position: absolute; inset: auto 0 3.5rem; margin-inline: auto; width: fit-content; padding: 0.4rem 1rem; border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.75); color: var(--ball); font-weight: 600; }
.tag-bar { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0.6rem 0.75rem; color: var(--mist); font-size: 0.9375rem; }
.tag-bar b { color: var(--chalk); font-variant-numeric: tabular-nums; }
.tag-parts { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 0.75rem 0.6rem; }
.tag-part { padding: 0.25rem 0.65rem; border: 1px solid var(--line-2); border-radius: 0.5rem; background: transparent; color: var(--chalk);
  font: 500 0.8125rem var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.tag-part[aria-current="true"] { border-color: var(--turf); color: var(--turf); }
.tag-part:disabled { opacity: 0.45; cursor: not-allowed; }
.tag-owner { margin-left: 0.4rem; color: var(--mist); font-weight: 400; }
.tag-part.is-mine { border-color: var(--turf); background: color-mix(in srgb, var(--turf) 16%, transparent); }
.tag-part.is-theirs { opacity: 0.6; }
.tag-ev.is-theirs { opacity: 0.6; }
[data-split-done][aria-pressed="true"] { border-color: var(--turf); color: var(--turf); }
.sp-whos { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-bottom: 0.75rem; }
.sp-who { display: inline-flex; white-space: nowrap; align-items: center; gap: 0.3rem; min-height: 2.25rem; }
.sp-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.5rem 1rem; }
.sp-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; white-space: nowrap; }
.sp-row select { flex: 1; min-width: 0; max-width: 11rem; min-height: 2.5rem; padding: 0 0.6rem; border: 1px solid var(--line-2); border-radius: 0.5rem;
  background: var(--night-2); color: var(--chalk); font: inherit; }
.sp-row option { background: var(--night-2); color: var(--chalk); }
.tag-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.25rem 1rem; margin: 0; padding: 0.75rem;
  border-top: 1px solid var(--line); list-style: none; color: var(--mist); font-size: 0.8125rem; }
.tag-keys kbd { display: inline-block; min-width: 1.4rem; margin-right: 0.2rem; padding: 0 0.35rem; border: 1px solid var(--line-2); border-radius: 0.25rem;
  background: var(--night); color: var(--chalk); font: 600 0.75rem/1.6 ui-monospace, monospace; text-align: center; }
.tag-side { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.tag-box h2 { display: flex; justify-content: space-between; margin: 0; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line);
  color: var(--mist); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tag-log { max-height: 46vh; overflow: auto; }
@media (min-width: 64rem) { .tag-side { position: sticky; top: 0.75rem; align-self: start; } .tag-log { max-height: calc(100vh - 5rem); } }
.tag-ev { display: grid; grid-template-columns: 4rem minmax(0, 1fr) 1.6rem; gap: 0.5rem; align-items: center; padding: 0.3rem 0.75rem;
  border-bottom: 1px solid var(--line); font-size: 0.875rem; cursor: pointer; }
.tag-ev:hover { background: var(--night); }
.tag-ev .t { color: var(--mist); font-variant-numeric: tabular-nums; }
.tag-ev.goal .d { color: var(--turf); font-weight: 700; }
.tag-ev.bad .d { color: var(--error); }
.tag-ev.mark .d { color: var(--ball); }
.tag-ev.flag .d { color: var(--mist); font-style: italic; }
.tag-del { padding: 0; border: 0; border-radius: 0.25rem; background: none; color: var(--mist); cursor: pointer; }
.tag-del:hover { background: var(--error); color: var(--night); }
.tag-statbox { margin-top: 1rem; }
.tag-statwrap { overflow: auto; }
.tag-stats { width: 100%; border-collapse: collapse; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.tag-stats th, .tag-stats td { padding: 0.2rem 0.35rem; border-bottom: 1px solid var(--line); text-align: right; }
.tag-stats th:first-child, .tag-stats td:first-child { text-align: left; }
.tag-stats th { color: var(--mist); font-weight: 600; }
.tag-stats td.n { white-space: nowrap; }
.tag-dot { display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.35rem; border-radius: 50%; }
.tag-dot.red { background: var(--kit-red); }
.tag-dot.blue { background: var(--kit-blue); }
.tag-nums { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; }
.tag-num { display: inline-flex; align-items: center; gap: 0.15rem; }
.tag-controls { border-top: 0; padding-top: 0; }
.tag-keyset { padding: 0.75rem; border-top: 1px solid var(--line); }
.tag-keyset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.35rem 1rem; }
.tag-keyset-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--mist); }
.tag-keybtn { min-width: 3rem; padding: 0.15rem 0.5rem; border: 1px solid var(--line-2); border-radius: 0.35rem; background: var(--night);
  color: var(--chalk); font: 600 0.8125rem ui-monospace, monospace; cursor: pointer; }
.tag-keybtn:hover, .tag-keybtn:focus-visible { border-color: var(--turf); }
.tag-head .tag-pills .btn { min-height: 2rem; padding: 0.2rem 0.85rem; font-size: 0.875rem; }
.tag-rot-form { margin-top: 1rem; }
.tag-rot-form summary { cursor: pointer; font-weight: 600; }
.tag-rot-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0.75rem; }
.tag-shares td small { color: var(--mist); }
tr.muted td { color: var(--mist); }
.tagger [hidden] { display: none !important; }
.partial-note { margin-bottom: 1rem; }
.room-note { margin-bottom: 1rem; border-color: var(--ball); font-weight: 500; line-height: 1.5; }
.room-note-field { display: grid; gap: 0.35rem; width: 100%; }
.room-note-field textarea { width: 100%; min-height: 5rem; font: inherit; }
.tag-sidebtn { margin-left: 0.35rem; padding: 0.05rem 0.6rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  color: var(--chalk); font: inherit; cursor: pointer; }
.tag-sidebtn[aria-pressed="true"] { border-color: var(--turf); background: var(--turf); color: var(--night); font-weight: 700; }

/* ==========================================================================
   Admin page (/az/admin): tiles, section menu, panels, tables, badges.
   Its own classes (adm-…), so no other page changes.
   ========================================================================== */
.adm { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 1.75rem); }
.adm > * { min-width: 0; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.adm-head h1 { margin: 0; }

.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.adm-kpis li { display: grid; gap: 0.2rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--night-2); }
.adm-kpis b { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.adm-kpis span { font-size: 0.875rem; color: var(--mist); }

.adm-tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding: 0.6rem var(--gutter);
  background: color-mix(in srgb, var(--night) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs a {
  flex: none; padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 99rem;
  font-size: 0.875rem; font-weight: 600; color: var(--chalk-2); text-decoration: none; white-space: nowrap;
}
.adm-tabs a:hover, .adm-tabs a:focus-visible { border-color: var(--turf); color: var(--chalk); }
.adm-tabs a[aria-current="page"] { background: var(--turf); border-color: var(--turf); color: var(--night); }

.adm-panel {
  scroll-margin-top: 4.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--night-2);
}
.adm-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 1rem; }
.adm .adm-panel-head h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); }
.adm-count {
  display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.6rem; padding-inline: 0.5rem;
  border-radius: 99rem; background: var(--night); color: var(--mist); font-size: 0.8125rem; font-weight: 600;
}
.adm-intro { margin: -0.25rem 0 1rem; font-size: 0.9375rem; max-width: 60rem; }
.adm-empty { margin: 0; padding: 1.25rem; border: 1px dashed var(--line-2); border-radius: 0.75rem; color: var(--mist); text-align: center; }
.adm-token { border-color: var(--ball); }
.adm-token h2 { margin-bottom: 0.5rem; }

/* Tables: a frame of their own, scroll sideways on phones */
.adm-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--night); }
.adm-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.adm-table th {
  padding: 0.65rem 0.9rem; text-align: left; white-space: nowrap;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mist);
  background: var(--night-2); border-bottom: 1px solid var(--line);
}
.adm-table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover td { background: rgb(255 255 255 / 0.025); }
.adm-table a:not(.btn) { color: var(--chalk); text-decoration-color: var(--line-2); }
.adm-table a:not(.btn):hover { color: var(--turf); }
.adm-table code { font-size: 0.875rem; }
.adm-sub { display: block; margin-top: 0.2rem; font-size: 0.8125rem; color: var(--mist); }
.adm-right { text-align: right; }
.adm-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--mist); }
.adm-nowrap { white-space: nowrap; }
.adm-msg { min-width: 14rem; max-width: 28rem; font-size: 0.875rem; color: var(--chalk-2); }
.adm-err { color: var(--error); }
.adm-good { color: var(--turf); }
.adm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.4rem 0.6rem; }
.adm-actions form { display: inline; }
.adm-actions .btn-small, .adm-inline .btn-small { min-height: 2.1rem; padding: 0.35rem 0.85rem; font-size: 0.8125rem; }
.adm-danger { color: var(--error); }

/* Status badges */
.adm-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.65rem; border-radius: 99rem;
  font-size: 0.8rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: rgb(147 166 184 / 0.14); color: var(--chalk-2);
}
.adm-badge::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.adm-badge.adm-ok   { background: rgb(46 224 111 / 0.14); color: var(--turf); }
.adm-badge.adm-wait { background: rgb(255 159 28 / 0.14); color: var(--ball); }
.adm-badge.adm-bad  { background: rgb(255 138 122 / 0.14); color: var(--error); }
.adm-badge.adm-off  { color: var(--mist); }

/* Search box above the users */
.adm-search {
  flex: 0 1 20rem; min-height: 2.4rem; padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-2); border-radius: 99rem; background: var(--night); color: var(--chalk); font: inherit; font-size: 0.9rem;
}
.adm-search:focus-visible { outline: 2px solid var(--turf); outline-offset: 1px; border-color: transparent; }

/* Reminder e-mail to unconfirmed users */
.adm-remind-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 1.1rem; padding: 0; list-style: none; }
.adm-remind-stats li { display: grid; min-width: 8.5rem; padding: 0.6rem 0.9rem; border: 1px solid var(--line-2); border-radius: 0.75rem; background: var(--night); }
.adm-remind-stats b { font-size: 1.25rem; }
.adm-remind-stats span { font-size: 0.75rem; color: var(--mist); }
.adm-remind-bad { margin-top: 1rem; }
.adm-remind-hint, .adm-remind-bad .adm-table { margin: 0 1rem 1rem; }
td.adm-err { color: var(--error); }

/* Filters above the users table */
.adm-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 0.75rem; margin-bottom: 1rem; }
.adm-filters label { display: grid; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; color: var(--mist); }
.adm-filters select, .adm-filters input {
  min-height: 2.4rem; padding: 0.4rem 0.7rem; border: 1px solid var(--line-2); border-radius: 0.6rem;
  background: var(--night); color: var(--chalk); font: inherit; font-size: 0.875rem; color-scheme: dark;
}
.adm-filters select:focus-visible, .adm-filters input:focus-visible { outline: 2px solid var(--turf); outline-offset: 1px; }
.adm-shown { flex-basis: 100%; margin: 0; font-size: 0.8125rem; color: var(--mist); }
@media (max-width: 40rem) { .adm-filters label { flex: 1 1 45%; } .adm-filters select, .adm-filters input { width: 100%; } }
.adm-filters .btn { align-self: flex-end; }
.adm-check { display: flex !important; align-items: center; gap: 0.4rem !important; align-self: center; font-size: 0.875rem !important; color: var(--chalk-2) !important; }
.adm-check input { width: auto !important; accent-color: var(--turf); }

/* Long admin lists a page at a time (app/admin_lists.php): "26–50 of 213", the pages, how many a page. */
.adm-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin: 0 0 0.9rem; }
.adm-pager + .adm-table, .adm-pager + .rv-list { margin-top: 0; }
.adm-table + .adm-pager, .rv-list + .adm-pager { margin: 0.9rem 0 0; }
.adm-pager-info { margin: 0; font-size: 0.875rem; color: var(--mist); font-variant-numeric: tabular-nums; }
.adm-pages, .adm-per { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.adm-pages a, .adm-pages span, .adm-per a, .adm-per span.is-current {
  display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding-inline: 0.55rem;
  border: 1px solid var(--line); border-radius: 0.6rem; font-size: 0.875rem; font-weight: 600;
  color: var(--chalk-2); text-decoration: none; font-variant-numeric: tabular-nums;
}
.adm-pages a:hover, .adm-pages a:focus-visible, .adm-per a:hover, .adm-per a:focus-visible { border-color: var(--turf); color: var(--chalk); }
.adm-pages .is-current, .adm-per .is-current { background: var(--turf); border-color: var(--turf); color: var(--night); }
.adm-pages span[aria-hidden="true"] { border-color: transparent; color: var(--line-2); }
.adm-per > span:first-child { margin-right: 0.2rem; font-size: 0.8125rem; color: var(--mist); }

/* /admin/reviews */
.rv-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.rv-mean { display: grid; justify-items: start; gap: 0.15rem; }
.rv-mean > b { font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-dist { flex: 1 1 18rem; display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; max-width: 32rem; }
.rv-dist a { display: grid; grid-template-columns: 2.6rem 1fr 2.5rem; align-items: center; gap: 0.6rem; color: var(--chalk-2); text-decoration: none; font-size: 0.875rem; }
.rv-dist a:hover span:first-child, .rv-dist a:focus-visible span:first-child { color: var(--ball); }
.rv-bar { width: 100%; height: 0.55rem; border: 0; border-radius: 99rem; background: var(--night); overflow: hidden; -webkit-appearance: none; appearance: none; }
.rv-bar::-webkit-meter-bar { background: var(--night); border: 0; border-radius: 99rem; height: 0.55rem; }
.rv-bar::-webkit-meter-optimum-value, .rv-bar::-webkit-meter-suboptimum-value, .rv-bar::-webkit-meter-even-less-good-value { background: var(--ball); border-radius: 99rem; }
.rv-bar::-moz-meter-bar { background: var(--ball); border-radius: 99rem; }
.rv-stars { color: var(--ball); letter-spacing: 0.05em; white-space: nowrap; }
.rv-off { color: var(--line-2); }
.rv-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.rv-item { display: grid; gap: 0.45rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--turf); border-radius: 0.75rem; background: var(--night); }
.rv-item.rv-mid { border-left-color: var(--ball); }
.rv-item.rv-low { border-left-color: var(--error); }
.rv-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.75rem; }
.rv-top time { margin-left: auto; }
.rv-issues { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.rv-issues li { padding: 0.15rem 0.6rem; border: 1px solid var(--line-2); border-radius: 99rem; font-size: 0.8125rem; color: var(--chalk-2); }
.rv-text { margin: 0; line-height: 1.5; color: var(--chalk); overflow-wrap: anywhere; }
.rv-game { margin: 0; }

/* "Add …" forms: closed until opened, one column */
.adm-adds { display: grid; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 52rem) { .adm-adds { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.adm-add { border: 1px dashed var(--line-2); border-radius: 0.85rem; background: var(--night); }
.adm-add[open] { border-style: solid; }
.adm-add summary {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--turf);
}
.adm-add summary::-webkit-details-marker { display: none; }
.adm-add summary::before {
  content: "+"; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 1rem; line-height: 1;
}
.adm-add[open] summary::before { content: "−"; }
.adm-form { display: grid; gap: 0.9rem; padding: 0 1rem 1rem; }
.adm-form .btn { justify-self: start; }
.adm-inline { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.adm-inline input {
  width: 11rem; min-height: 2.1rem; padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-2); border-radius: 0.6rem; background: var(--night-2); color: var(--chalk); font: inherit; font-size: 0.875rem;
}

@media (max-width: 40rem) {
  .adm-right { text-align: left; }
  .adm-actions { justify-content: flex-start; }
  .adm-search { flex-basis: 100%; }
}


/* ---------- Stadium page: the booking pop-ups (2026-11) -------------------- */
.st-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.st-pill { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; margin-left: 0.15rem; padding-inline: 0.35rem;
  border-radius: 99rem; background: var(--night); color: var(--mist); font-size: 0.75rem; font-weight: 700; }
.st-legend .lg-series::before { display: none; }
.st-legend .lg-series { color: var(--chalk-2); }
.bk-series { font-weight: 700; }

/* The pop-up: a card in the middle on a computer, a sheet from the bottom on a phone */
.st-dlg {
  width: min(34rem, calc(100vw - 2rem)); max-height: min(90dvh, 52rem); padding: 0;
  border: 1px solid var(--line-2); border-radius: 1.25rem; background: var(--night-2); color: var(--chalk);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.5);
}
.st-dlg-wide { width: min(60rem, calc(100vw - 2rem)); }
.st-dlg::backdrop { background: rgb(4 9 15 / 0.66); }
.st-dlg[open] { display: flex; }
.st-dlg-form { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
.st-dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem 0.9rem; border-bottom: 1px solid var(--line); }
.st-dlg-head h2 { margin: 0; font-size: 1.2rem; }
.st-dlg-lead { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--mist); }
.st-dlg-x { flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%;
  background: var(--night); color: var(--chalk); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.st-dlg-x:hover { background: var(--line); }
.st-dlg-body { display: grid; gap: 0.9rem; padding: 1rem 1.25rem; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.st-dlg-body > * { min-width: 0; margin: 0; }
.st-dlg-body .notice { margin: 0; }
.st-dlg-body input, .st-dlg-body select { width: 100%; max-width: 100%; min-width: 0; }
.st-dlg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.st-dlg-foot .st-del { margin-left: auto; }
.st-del { color: var(--error); }
.st-dlg .st-kinds { margin: 0; }

/* Steps of the long-term form: 1 days, 2 time, 3 period, 4 kind */
.st-step { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-right: 0.3rem; border-radius: 50%;
  background: var(--turf); color: var(--night); font-size: 0.75rem; font-weight: 800; vertical-align: 1px; }
.st-label, .st-days legend, .st-periods legend { margin: 0 0 0.45rem; font-size: 0.9375rem; font-weight: 600; }
.st-days, .st-periods, .st-scope { min-width: 0; margin: 0; padding: 0; border: 0; }
.st-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.st-days legend { grid-column: 1 / -1; }
.st-day { position: relative; }
.st-day input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.st-day span { display: grid; place-items: center; min-height: 2.8rem; border: 1.5px solid var(--line-2); border-radius: 0.7rem;
  background: var(--night); font-size: 0.8125rem; font-weight: 700; }
.st-day input:checked + span { border-color: var(--turf); background: var(--turf); color: var(--night); }
.st-day input:focus-visible + span { outline: 2px solid var(--ball); outline-offset: 2px; }
.st-periods { display: grid; gap: 0.6rem; }
.st-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.st-chips .st-kind span { min-height: 2.6rem; padding-inline: 0.9rem; }
.st-scope { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem; }
.st-scope legend { margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9375rem; }
.st-scope[hidden] { display: none; }

/* "Every Tue, Thu 22:00 · 13 games" */
.st-sum { padding: 0.8rem 1rem; border-radius: 0.8rem; border: 1.5px dashed var(--line-2); color: var(--mist); font-size: 0.9375rem; }
.st-sum.is-ready { border-style: solid; border-color: var(--turf); background: rgb(46 224 111 / 0.1); color: var(--chalk); font-weight: 600; }
.st-note { padding: 0.65rem 0.9rem; border-radius: 0.75rem; background: rgb(77 141 255 / 0.14); font-size: 0.875rem; font-weight: 600; }
.st-note[hidden] { display: none; }

/* A clash: what is in the way, and the choice */
.st-conflict { padding: 0.9rem 1rem; border: 1.5px solid var(--ball); border-radius: 0.85rem; background: rgb(255 159 28 / 0.1); }
.st-conflict h3 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--ball); }
.st-conflict p { margin: 0 0 0.5rem; font-size: 0.875rem; }
.st-conflict ul { margin: 0 0 0.75rem; padding-left: 1.1rem; font-size: 0.875rem; }
.st-conflict li + li { margin-top: 0.2rem; }
.st-conflict-do { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* The list of long-term bookings */
.st-empty { padding: 1.25rem; border: 1px dashed var(--line-2); border-radius: 0.75rem; color: var(--mist); text-align: center; }
.st-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--night); }
.st-table table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.st-table th { padding: 0.6rem 0.8rem; text-align: left; white-space: nowrap; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--mist); background: var(--night-2); border-bottom: 1px solid var(--line); }
.st-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.st-table tbody tr:last-child td { border-bottom: 0; }
.st-table small { display: block; margin-top: 0.15rem; color: var(--mist); }
.st-table small a { color: inherit; }
.st-table form { display: inline; }
.st-num { text-align: right; font-variant-numeric: tabular-nums; }
.st-nowrap { white-space: nowrap; }

@media (max-width: 47.99rem) {
  .st-dlg, .st-dlg-wide { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 1.25rem 1.25rem 0 0; border-bottom: 0; }
  .st-tools .st-add { order: 9; }
  .st-scope { grid-template-columns: 1fr; }
}
.st-dlg [hidden] { display: none !important; }          /* .field sets display: grid */
.st-dlg-foot .btn, .st-tools .btn { gap: 0.35rem; }

/* ==========================================================================
   Match screen, the look of a sports data site: a cool grey ground, flat white
   cards with thin borders, small type and tabular numbers, one section after
   another. Placed last, so it wins over the softer rules above.
   ========================================================================== */

body.app-light:has(.match), body.app-light:has(.gate) {
  --night: #f0f2f5; --night-2: #fff; --line: #e4e7ec; --line-2: #cfd5dc;
  --chalk: #16202a; --mist: #66717d; --turf: #0d9449; --kit-red: #e03a3e; --kit-blue: #2d6fe0;
}
.match { font-size: 0.9375rem; }
.match .r-top  { --r: #0a8f47; --r-ink: #fff; }
.match .r-good { --r: #35a85f; --r-ink: #fff; }
.match .r-mid  { --r: #eda322; --r-ink: #16202a; }
.match .r-low  { --r: #e0574f; --r-ink: #fff; }
.match .r-none { --r: #dfe3e8; --r-ink: #16202a; }
.rbadge { display: inline-block; min-width: 2.15rem; padding: 0.08rem 0.3rem; border-radius: 0.25rem; background: var(--r); color: var(--r-ink); font-size: 0.8125rem; font-weight: 700; line-height: 1.45; text-align: center; font-variant-numeric: tabular-nums; }

/* header and tabs are one block */
.app-light .match .mhead { gap: 0.3rem; padding: 0.85rem 1rem 0.8rem; border: 1px solid var(--line); border-bottom: 0; border-radius: 0.625rem 0.625rem 0 0; background: #fff; box-shadow: none; }
.match .mhead-meta { font-size: 0.8125rem; }
.match .mhead-row { max-width: 34rem; gap: 0.75rem; }
.match .mhead-team { gap: 0.3rem; font-size: 0.9375rem; font-weight: 600; }
.match .crest-big, .match .crest { border: 0; background: #f0f2f5; }
.match .crest-big { width: 3rem; height: 3rem; }
.match .mhead-score { gap: 0.4rem; font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); font-weight: 700; letter-spacing: 0; }
.match .mhead-score b.is-low { color: inherit; }
.match .mhead-status { font-size: 0.8125rem; }
.match .mhead-status span { padding: 0; background: none; color: var(--mist); font-weight: 600; }
.app-light .match .mtabs { margin-top: 0; padding-inline: 0.5rem; border: 1px solid var(--line); border-radius: 0 0 0.625rem 0.625rem; background: #fff; backdrop-filter: none; }
.match .mtabs-row { justify-content: center; gap: 0.5rem; }
.match .mtabs a { padding: 0.7rem 0.9rem 0.6rem; border-bottom-width: 2px; font-size: 0.875rem; }
.match .mtabs a[aria-selected="true"] { color: var(--turf); border-bottom-color: var(--turf); }
@media (max-width: 34rem) { .match .mtabs-row { justify-content: flex-start; } }

/* cards */
.match .mpanel { margin-top: 0.75rem; }
.match .mgrid, .match .mcol { gap: 0.75rem; }
@media (min-width: 60rem) {
  .match .mgrid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .match .mgrid-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match .mgrid-ptable { grid-template-columns: minmax(0, 1fr) 21rem; }
}
.match .mgrid-even, .match .team-heat { margin-top: 0.75rem; }
.app-light .match .mcard { padding: 0.9rem 1rem 1rem; border: 1px solid var(--line); border-radius: 0.625rem; background: #fff; box-shadow: none; }
.match .mcard h2 { margin-bottom: 0.7rem; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; }
.match .mcard-cta { padding-block: 0.7rem; border-color: var(--line); }
.match .mcard-cta h2 { margin-bottom: 0.1rem; }
.match .mcard-cta .muted { font-size: 0.8125rem; }

/* goals */
.match .tline { gap: 0; }
.match .tline li { min-height: 2.35rem; grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr); gap: 0.5rem; border-bottom: 1px solid #f0f2f5; font-size: 0.875rem; }
.match .tline li:last-child { border-bottom: 0; }
.match .tline li.tline-mark { grid-template-columns: 1fr; min-height: 1.9rem; font-size: 0.75rem; }
.match .tline-mark span::before, .match .tline-mark span::after { display: none; }
.match .tline-mark span { justify-content: center; }
.match .tline-time { padding: 0.15rem 0; border-radius: 0; background: none; }
.match .tline-time b { font-size: 0.8125rem; font-weight: 700; }
.match .tline-time span { font-size: 0.75rem; }
.match .tline-what small { font-size: 0.75rem; }
.match .tline-ball { width: 14px; height: 14px; }

/* the best players, info */
.best li + li { border-top: 1px solid #f0f2f5; }
.best a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding-block: 0.4rem; color: inherit; text-decoration: none; }
.best a:hover .best-who b { color: var(--turf); }
.best-who { display: grid; min-width: 0; line-height: 1.25; }
.best-who b { font-size: 0.875rem; font-weight: 600; }
.best-who small { font-size: 0.75rem; color: var(--mist); }
.best-mvp { display: inline-block; margin-left: 0.25rem; padding: 0 0.35rem; border-radius: 0.25rem; background: #ffa51f; color: #0a1420; font-size: 0.6875rem; font-style: normal; font-weight: 800; line-height: 1.45; }
.release-form { display: grid; justify-items: start; gap: 0.4rem; margin-top: 0.4rem; font-size: 0.8125rem; }
.release-edit p { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin-top: 0.4rem; }
.release-edit input[type="number"] { width: 4.2rem; }
.pt-no { display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ta); color: #fff; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-no.pt-b { background: var(--tb); }
.match .minfo div { padding: 0.4rem 0; border-bottom-color: #f0f2f5; font-size: 0.8125rem; }

/* team numbers */
.match .sbar-teams { margin-bottom: 0.5rem; font-size: 0.8125rem; }
.poss { margin-bottom: 0.25rem; }
.poss-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8125rem; }
.poss-top b { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.poss-top span { color: var(--mist); }
.match .poss-track { gap: 2px; height: 0.5rem; margin-top: 0.25rem; }
.match .poss-track.sbar-track i { flex: none; width: var(--w, 50%); height: 100%; border-radius: 0; background: var(--ta); overflow: visible; transition: width 0.6s; }
.match .poss-track.sbar-track i + i { flex: 1; background: var(--tb); }
.match .poss-track.sbar-track i::after { display: none; }
.st-sec { margin: 0.9rem 0 0.45rem; padding-top: 0.7rem; border-top: 1px solid var(--line); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; color: var(--mist); text-transform: uppercase; }
.match .sbars { gap: 0.5rem; }
.match .sbar { grid-template-columns: minmax(3.25rem, auto) 1fr minmax(3.25rem, auto); row-gap: 0.2rem; }
.match .sbar dt { font-size: 0.8125rem; color: var(--chalk); }
.match .sbar-a, .match .sbar-b { padding: 0; background: none; color: var(--chalk); font-size: 0.8125rem; line-height: 1.5; }
.match .sbar-a.is-lead, .match .sbar-b.is-lead { background: none; color: var(--chalk); }
.sbar-n { display: inline-block; padding: 0 0.35rem; border-radius: 0.25rem; }
.match .sbar-a.is-lead .sbar-n { background: var(--ta); color: #fff; }
.match .sbar-b.is-lead .sbar-n { background: var(--tb); color: #fff; }
.match .sbar-a small, .match .sbar-b small { display: inline; font-size: 0.6875rem; font-weight: 500; color: var(--mist); opacity: 1; }
.match .sbar-track { gap: 3px; }
.match .sbar-track i { height: 0.3rem; border-radius: 0; background: #edf0f3; }
.match .sbar-track i::after { border-radius: 0; background: #b9c2cc; }

/* maps: pale pitches, thin lines, the teams' colours on top */
.app-light .match .smap-turf, .app-light .match .lane-turf { fill: #f3f6f4; }
.app-light .match .smap-lines, .match .lane-lines, .match .lane-sep { stroke: #c7d0ca; stroke-width: 1; }
.match .smap-hit text { display: none; }
.match .smap-goal { fill: #16202a; }
.match .smap-key { font-size: 0.75rem; }
.match .smap figcaption, .match .th figcaption, .match .lane figcaption { font-size: 0.8125rem; }
.match .smap figcaption small { font-size: 0.75rem; }
.app-light .match .heat-box { border-radius: 0.3rem; }
.match .lane-arrow path { stroke: #9aa7b4; }
.match .lane-arrow .lane-head { fill: #9aa7b4; stroke: none; }
.match .lane-a .is-top path { stroke: var(--ta); }
.match .lane-a .is-top .lane-head { fill: var(--ta); stroke: none; }
.match .lane-b .is-top path { stroke: var(--tb); }
.match .lane-b .is-top .lane-head { fill: var(--tb); stroke: none; }
.match .lane text { fill: var(--chalk); font-size: 15px; font-weight: 700; }
.match .lanes-text, .match .zones-note { font-size: 0.8125rem; }
.match .zone-cell { border-radius: 0.25rem; }

/* the player table */
.ptable-card { min-width: 0; }
.ptable-wrap { overflow-x: auto; margin-inline: -1rem; }
.ptable { width: 100%; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: 0.42rem 0.3rem; border-bottom: 1px solid #f0f2f5; text-align: center; white-space: nowrap; }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.ptable thead th { border-bottom: 1px solid var(--line); color: var(--mist); font-weight: 600; font-size: 0.75rem; }
.ptable thead button { padding: 0.1rem 0.15rem; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ptable thead button:hover { color: var(--chalk); }
.ptable th[aria-sort] button { color: var(--turf); font-weight: 700; }
.ptable th[aria-sort="descending"] button::after { content: " ↓"; }
.ptable th[aria-sort="ascending"] button::after { content: " ↑"; }
.ptable .pt-name { position: sticky; left: 0; z-index: 1; padding-left: 1rem; background: #fff; text-align: left; font-weight: 600; }
.ptable tbody tr:hover > * { background: #f7f8fa; }
.ptable tr.is-mine > * { background: #eaf7ef; }
.ptable .pt-name a { display: flex; align-items: center; gap: 0.5rem; color: var(--chalk); text-decoration: none; }
.ptable .pt-name a:hover { color: var(--turf); }
.pt-who { max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; }

/* the pitch */
.app-light .match .lu-turf { fill: #2c8a56; }
.match .lu-stripe { fill: rgb(255 255 255 / 0.05); }
.match .lu-lines { stroke: rgb(255 255 255 / 0.55); stroke-width: 1.2; }
.match .lu-fig { stroke: #fff; stroke-width: 1.6; }
.match .lu-no { font-size: 14px; font-weight: 700; text-anchor: middle; fill: #fff; pointer-events: none; }
.match .lu-badge { stroke: none; }
.match .lu-rating { fill: var(--r-ink); font-size: 10.5px; font-weight: 700; }
.match .lu-name { font-size: 11px; font-weight: 500; fill: #fff; stroke: none; }
.match .lu-word { display: none; }
.match .lu-turf-plain { display: none; }
.match .lu-team { font-size: 0.8125rem; }
.match .lineup-note { font-size: 0.75rem; }

/* the player sheet: rows instead of tiles */
.match .pd { gap: 0.9rem; }
.match .pd-photo, .match .pd-shirt { width: 3.25rem; height: 3.25rem; border-radius: 50%; }
.match .pd-rating b { padding: 0.15rem 0.45rem; border-radius: 0.3rem; font-size: 1.25rem; font-weight: 700; }
.match .pd-tiles { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0 1.5rem; }
.match .pd-tiles div { display: flex; justify-content: space-between; align-items: baseline; padding: 0.38rem 0; border: 0; border-bottom: 1px solid #f0f2f5; border-radius: 0; background: none; }
.match .pd-tiles dd { font-size: 0.875rem; font-weight: 700; }
.match .pd-tiles small { font-size: 0.75rem; font-weight: 500; }
.match .pd-heat h3 { font-size: 0.875rem; }
.match .heat3d-slot { border-radius: 0.4rem; }
.match .game-video { border-radius: 0.5rem; }

/* The sample game (/az/sample): the door for visitors without an account, the note above the match */
.gate { display: grid; gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; padding: clamp(1rem, 3vw, 1.5rem); border-radius: var(--radius); background: var(--night-2); box-shadow: 0 1px 2px rgb(13 27 42 / 0.05), 0 10px 30px -16px rgb(13 27 42 / 0.18); }
.gate-shot { position: relative; overflow: hidden; border-radius: 1rem; background: #0a1420; }
.gate-shot img { display: block; width: 100%; height: auto; opacity: 0.72; }
.gate-lock { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgb(10 20 32 / 0.82); color: #f1f5ee; }
.gate-copy h1 { margin-bottom: 0.75rem; }
.gate-list { display: grid; gap: 0.5rem; margin-block: 1.25rem; }
.gate-list li { position: relative; padding-left: 1.5rem; }
.gate-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.6em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--turf); }
.gate-have { margin-top: 1rem; font-size: 0.9375rem; color: var(--mist); }
@media (min-width: 54rem) { .gate { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.sample-note { margin-bottom: 0.75rem; padding: 0.55rem 0.9rem; font-size: 0.875rem; font-weight: 500; line-height: 1.4; }

/* The sample game: the reminder under the video, the rating and the comments */
.sample-remind { margin-top: 0.75rem; font-weight: 600; text-align: center; }
.sample-remind a { color: var(--turf); text-decoration: none; }
.sample-remind a:hover { text-decoration: underline; }
.fb { margin-top: clamp(1rem, 3vw, 1.5rem); scroll-margin-top: 6rem; }
.fb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.mcard.fb h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); margin-bottom: 0.3rem; }
.fb-avg { display: grid; justify-items: end; line-height: 1.1; }
.fb-avg b { font: 800 2.25rem/1 var(--font-display); color: var(--ball); font-variant-numeric: tabular-nums; }
.fb-avg small { font-size: 0.8125rem; color: var(--mist); }
.fb-grid { display: grid; gap: 1.5rem clamp(1.5rem, 4vw, 3rem); }
.fb-form { margin: 0; }
.fb-form .btn { justify-self: start; }
.fb-label { margin-bottom: 0.4rem; font-size: 0.9375rem; font-weight: 600; }
.fb-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.fb-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fb-stars label { padding: 0 0.2rem; font-size: 2.5rem; line-height: 1.1; color: var(--line-2); cursor: pointer; transition: color 0.1s; }
.fb-stars input:checked ~ label, .fb-stars label:hover, .fb-stars label:hover ~ label { color: var(--ball); }
.fb-stars input:focus-visible + label { outline: 2px solid var(--turf); outline-offset: 1px; border-radius: 0.4rem; }
.fb-list { display: grid; gap: 0.25rem; max-height: 26rem; overflow-y: auto; }
.fb-list li { padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.fb-list li:last-child { border-bottom: 0; }
.fb-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; }
.fb-who small { font-size: 0.8125rem; color: var(--mist); }
.fb-score { color: var(--ball); letter-spacing: 0.05em; }
.fb-text { margin-top: 0.2rem; white-space: pre-line; overflow-wrap: anywhere; }
@media (min-width: 54rem) { .fb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* The sample game in the room's look: flat white cards on the grey ground */
.app-light .gate { padding: 1rem; border: 1px solid var(--line); border-radius: 0.625rem; box-shadow: none; }
.gate-shot { border-radius: 0.5rem; }
.gate-copy h1 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem); font-weight: 700; letter-spacing: 0; }
.gate-list li { font-size: 0.9375rem; }
.gate-list li::before { top: 0.55em; width: 0.4rem; height: 0.4rem; }
.notice.sample-note { margin-bottom: 0.75rem; padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: 0.625rem; background: #fff; color: var(--mist); font-size: 0.8125rem; font-weight: 500; }
.sample-remind { margin-top: 0.6rem; font-size: 0.8125rem; }
.app-light .mcard.fb { margin-top: 0.75rem; padding: 0.9rem 1rem 1rem; border: 1px solid var(--line); border-radius: 0.625rem; background: #fff; box-shadow: none; font-size: 0.9375rem; }
.mcard.fb h2 { margin-bottom: 0.15rem; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; }
.fb .muted { font-size: 0.8125rem; }
.fb-head { margin-bottom: 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.fb-avg b { font-size: 1.5rem; font-weight: 700; color: var(--chalk); }
.fb-avg small { font-size: 0.75rem; }
.fb-label { font-size: 0.8125rem; font-weight: 700; }
.fb-stars label { font-size: 1.875rem; }
.fb-stars input:checked ~ label, .fb-stars label:hover, .fb-stars label:hover ~ label, .fb-score { color: #f5a623; }
.fb-list li { padding-block: 0.55rem; border-bottom-color: #f0f2f5; }
.fb-who { font-size: 0.875rem; }
.fb-who small { font-size: 0.75rem; }
.fb-text { font-size: 0.875rem; }
.fb-form.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; max-width: none; }
.fb-form .field label { font-size: 0.8125rem; font-weight: 700; }
.fb-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 0.5rem; background: #fff; color: var(--chalk); font-size: 0.875rem; }

/* ==========================================================================
   Clubs ("Komandam", /az/clubs): team hero, squad cards, season stats,
   league table, opponent board, "team game" on the Start page. Own classes
   (club-…, board-…, league, tg-…), on the light pages of the account.
   ========================================================================== */
.club { display: grid; gap: 1.25rem; min-width: 0; }
.club-badge { display: block; flex: none; width: 3rem; height: 3rem; border-radius: 50%; object-fit: contain; background: #fff; }
.club-badge-text { display: grid; place-items: center; background: linear-gradient(135deg, #12a150, #0d6b3a); color: #fff; font: 800 1.1rem/1 var(--font-display); letter-spacing: 0.5px; }
.club-badge-xl { width: 5.5rem; height: 5.5rem; font-size: 1.9rem; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.12); }
.club-badge-md { width: 2.6rem; height: 2.6rem; font-size: 0.95rem; }
.club-badge-sm { width: 2rem; height: 2rem; font-size: 0.75rem; }

/* The hero: dark, like the key tile of the account */
.club-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.25rem; align-items: center;
  padding: clamp(1.1rem, 3vw, 1.6rem); border-radius: 1.25rem; color: #f1f5ee;
  background: radial-gradient(120% 160% at 0% 0%, rgb(46 224 111 / 0.18), transparent 55%), #0a1420;
}
.club-kicker { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #2ee06f; }
.club .club-name { margin: 0.15rem 0 0.2rem; font: 800 clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem)/1.1 var(--font-display); color: #fff; }
.club-meta { margin: 0 0 0.6rem; font-size: 0.875rem; color: #93a6b8; }
.club-record { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; margin: 0; }
.club-record div { padding: 0.55rem 0.4rem; border-radius: 0.8rem; background: rgb(255 255 255 / 0.06); text-align: center; }
.club-record dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #93a6b8; }
.club-record dd { margin: 0; font: 800 1.35rem/1.2 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.club-record .is-key { background: #2ee06f; }
.club-record .is-key dt, .club-record .is-key dd { color: #0a1420; }
@media (min-width: 60rem) {
  .club-hero { grid-template-columns: auto minmax(0, 1fr) auto; }
  .club-record { grid-column: auto; grid-template-columns: repeat(5, 4rem); }
}

/* Form: W D L pills */
.club-form { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.club-form li { display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.35rem; border-radius: 0.4rem; font-size: 0.75rem; font-weight: 800; color: #fff; }
.club-form .fm-w { background: #12a150; }
.club-form .fm-d { background: #7c8a96; }
.club-form .fm-l { background: #d83a2b; }
.club-form .fm-none { background: rgb(255 255 255 / 0.08); color: #93a6b8; font-weight: 600; }
.club-form.is-small li { min-width: 1.35rem; height: 1.35rem; font-size: 0.6875rem; }

/* Section menu under the hero */
.club-nav { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.1rem; }
.club-nav::-webkit-scrollbar { display: none; }
.club-nav a { flex: none; padding: 0.45rem 0.95rem; border: 1px solid var(--line-2); border-radius: 99rem; background: #fff; color: var(--chalk); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.club-nav a:hover { border-color: var(--chalk); }
.club-nav a.is-manage { border-color: var(--turf); color: var(--turf); }

.club-block { scroll-margin-top: 5rem; padding: clamp(1rem, 3vw, 1.4rem); border: 1px solid var(--line); border-radius: 1.25rem; background: #fff; min-width: 0; }
.club-block > h3, .club-sub { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; font: 800 1.15rem/1.2 var(--font-display); }
.club-block > h3 ~ h3 { margin-top: 1.5rem; }
.club-empty { margin: 0; padding: 1rem; border: 1.5px dashed var(--line-2); border-radius: 0.9rem; color: var(--mist); font-size: 0.9375rem; }

/* Squad: the players' own cards, three or more a row */
.club-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem 0.8rem; margin: 0; padding: 0; list-style: none; }
.club-cards.is-reserve { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.club-card { display: grid; justify-items: center; gap: 0.25rem; min-width: 0; text-align: center; }
.club-card-svg { width: 100%; max-width: 11rem; }
.club-card-svg .fc { display: block; width: 100%; height: auto; }
.club-card-name { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin: 0.25rem 0 0; font-size: 0.9375rem; line-height: 1.25; min-width: 0; }
.club-card-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-no { flex: none; display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.3rem; border-radius: 0.45rem; background: #0a1420; color: #fff; font: 800 0.8125rem/1 var(--font-display); }
.club-card-sub { margin: 0; min-height: 1.1rem; font-size: 0.8125rem; color: var(--mist); }
.club-shirt { position: relative; display: grid; place-items: center; width: 100%; max-width: 11rem; aspect-ratio: 2 / 3; border-radius: 1rem;
  background: radial-gradient(100% 80% at 50% 20%, #1e3b3a, #0a1420); }
.club-shirt svg { width: 62%; fill: #1c2c3c; stroke: #2c475f; stroke-width: 2; }
.club-shirt b { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 8%; font: 800 2.2rem/1 var(--font-display); color: #f1f5ee; }
.club-slot { display: grid; place-content: center; justify-items: center; gap: 0.35rem; min-height: 12rem; border: 1.5px dashed var(--line-2); border-radius: 1rem; color: var(--mist); font-size: 0.875rem; }
.club-slot a { color: var(--turf); font-weight: 600; }

/* Season stats */
.club-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.6rem; margin: 0; }
.club-tiles div { padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: 0.95rem; background: var(--night); }
.club-tiles dt { font-size: 0.8125rem; color: var(--mist); }
.club-tiles dd { margin: 0.15rem 0 0; font: 800 1.6rem/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.club-tiles dd small { font-size: 0.9rem; }
.club-tiles div > small { font-size: 0.75rem; color: var(--mist); }
.club-tiles .is-key { background: #0a1420; border-color: #0a1420; }
.club-tiles .is-key dt { color: #93a6b8; }
.club-tiles .is-key dd { color: #2ee06f; }
.club-record-line { margin: 0.9rem 0 0; font-size: 0.9375rem; }
.club-sub { margin-top: 1.4rem !important; font-size: 1rem !important; }
.club-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.club-leaders li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.5rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 0.95rem; }
.ld-label { grid-column: 1 / -1; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mist); }
.club-leaders b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-val { font: 800 1.05rem/1.3 var(--font-display); color: var(--turf); }
.ld-none { color: var(--mist); }

/* Games */
.club-games { border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.club-games li + li { border-top: 1px solid var(--line); }
.club-games a { display: grid; grid-template-columns: 4.3rem minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; color: var(--chalk); text-decoration: none; }
.club-games a:hover { background: rgb(13 27 42 / 0.03); }
.cg-date { display: grid; }
.cg-date b { font: 800 1.15rem/1.2 var(--font-display); }
.cg-date small, .cg-vs small { font-size: 0.8125rem; color: var(--mist); }
.cg-vs { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 0.45rem; min-width: 0; }
.cg-vs b, .cg-vs small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-vs small { grid-column: 2; }
.kit-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--mist); }
.kit-dot.kit-red { background: var(--kit-red); }
.kit-dot.kit-blue { background: var(--kit-blue); }
.cg-score { min-width: 3.6rem; padding: 0.3rem 0.6rem; border-radius: 0.55rem; text-align: center; font: 800 1rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; color: #fff; background: #7c8a96; }
.cg-score.cg-w { background: #12a150; }
.cg-score.cg-l { background: #d83a2b; }
.cg-score.cg-wait { background: var(--night); color: var(--mist); font: 600 0.75rem/1.3 var(--font-body); }

/* Captain's tools */
.club-manage { border-color: var(--turf); }
.club-manage-grid { display: grid; gap: 0.8rem; margin-bottom: 0.8rem; }
@media (min-width: 52rem) { .club-manage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.club-panel { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--night); min-width: 0; }
.club-panel > summary { cursor: pointer; font-weight: 700; list-style: none; }
.club-panel > summary::-webkit-details-marker { display: none; }
.club-panel > summary::after { content: "+"; float: right; color: var(--mist); }
.club-panel[open] > summary::after { content: "−"; }
.club-panel[open] > summary { margin-bottom: 0.75rem; }
.club-panel .form { margin-top: 0.5rem; }
.club-panel h2 { margin: 0 0 0.4rem; font: 800 1.1rem/1.2 var(--font-display); }
.club-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.6rem 0; }
.club-logo-form { margin-top: 1rem !important; padding-top: 1rem; border-top: 1px solid var(--line); }
.club-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.9rem; background: #fff; }
.club-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.club-table th { padding: 0.6rem 0.75rem; text-align: left; white-space: nowrap; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mist); border-bottom: 1px solid var(--line); }
.club-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.club-table tbody tr:last-child td { border-bottom: 0; }
.club-table td small { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: var(--mist); }
.club-table input, .club-table select, .club-add input, .club-add select {
  width: 100%; min-width: 0; min-height: 2.4rem; padding: 0.35rem 0.6rem; border: 1px solid var(--line-2); border-radius: 0.6rem; background: #fff; color: var(--chalk); font: inherit;
}
.club-table td:first-child { min-width: 10rem; }
.club-num-input { max-width: 4.5rem; }
.club-actions { white-space: nowrap; }
.club-actions .link-button { margin-left: 0.5rem; font-size: 0.8125rem; }
.club-del { color: var(--error); }
.club-add { margin-top: 1rem; }
.club-add-title { margin: 0; font-weight: 700; }
.club-add .muted { margin: 0.2rem 0 0.6rem; font-size: 0.875rem; }
.club-add-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 10rem auto; gap: 0.5rem; align-items: center; }
.club-add-row > * { min-width: 0; }
@media (max-width: 40rem) { .club-add-row { grid-template-columns: minmax(0, 1fr) 4.5rem; } .club-add-row select { grid-column: 1; } }
.club-danger, .club-leave { text-align: right; }
.club-danger { margin-top: 1rem; }

/* No club yet: create / join */
.club-start { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .club-start { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* /az/clubs: head, table, board */
.clubs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.clubs-head h1 { margin: 0; }
.clubs-head p { margin: 0.3rem 0 0; }
.clubs-tabs { margin-bottom: 1.25rem; }
.league th, .league td { text-align: center; font-variant-numeric: tabular-nums; }
.league th:nth-child(2), .league td:nth-child(2) { text-align: left; }
.league .lg-pos { width: 2.5rem; color: var(--mist); font-weight: 700; }
.league .lg-pts { background: rgb(18 161 80 / 0.08); }
.league .lg-pts b { font: 800 1.05rem/1 var(--font-display); }
.league tr.is-mine td { background: rgb(18 161 80 / 0.08); }
.lg-team { display: flex; align-items: center; gap: 0.6rem; color: var(--chalk); text-decoration: none; }
.lg-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.lg-team:hover b { color: var(--turf); }
.league .club-form { justify-content: center; }
@media (max-width: 40rem) { .league .lg-wide { display: none; } }

.board { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 60rem) { .board { grid-template-columns: minmax(0, 1fr) 22rem; } }
.board-main h2, .board-side h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; font: 800 1.2rem/1.2 var(--font-display); }
.board-side { display: grid; gap: 1rem; }
.board-side .club-panel { background: #fff; }
.board-list { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.board-post { display: grid; gap: 0.75rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 1.1rem; background: #fff; }
.board-post.is-own { border-color: var(--turf); }
.bp-club { display: flex; align-items: center; gap: 0.7rem; color: var(--chalk); text-decoration: none; font-size: 1.05rem; }
.bp-club:hover b { color: var(--turf); }
.bp-when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; }
.bp-when div { padding: 0.55rem 0.7rem; border-radius: 0.7rem; background: var(--night); min-width: 0; }
.bp-when dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mist); }
.bp-when dd { margin: 0.1rem 0 0; font-weight: 700; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 40rem) { .bp-when { grid-template-columns: 1fr 1fr; } .bp-when div:last-child { grid-column: 1 / -1; } }
.bp-note { margin: 0; font-style: italic; color: var(--chalk-2); }
.bp-act { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.bp-act input { flex: 1 1 12rem; min-width: 0; min-height: 2.4rem; padding: 0.4rem 0.75rem; border: 1px solid var(--line-2); border-radius: 99rem; font: inherit; }
.bp-state { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--turf); }
.bp-state.is-wait { color: #b86e00; }
.board-mine { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.board-mine > li { padding: 0.8rem 0.9rem; border-radius: 0.85rem; background: var(--night); }
.bm-when { display: grid; margin: 0 0 0.4rem; }
.bm-when small { font-size: 0.8125rem; color: var(--mist); }
.bm-match { margin: 0.2rem 0; font-weight: 700; color: var(--turf); }
.bm-contact { margin: 0; font-size: 0.9375rem; }
.bm-none { margin: 0 0 0.4rem; font-size: 0.875rem; }
.bm-reqs { display: grid; gap: 0.5rem; margin: 0 0 0.6rem; padding: 0; list-style: none; }
.bm-reqs li { display: grid; gap: 0.3rem; padding: 0.6rem 0.7rem; border-radius: 0.7rem; background: #fff; }
.bm-reqs small { color: var(--chalk-2); font-style: italic; }
.bm-reqs form { display: flex; gap: 0.6rem; align-items: center; }

/* Join page */
.club-join { display: grid; justify-items: center; gap: 0.6rem; text-align: center; }
.club-join h1 { margin: 0; }

/* Start page: "team game" */
.tg { margin: 0.25rem 0 1rem; padding: 0; border: 0; min-width: 0; }
.tg-switch { position: relative; display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1.5px solid var(--line-2); border-radius: 0.9rem; cursor: pointer; }
.tg-switch input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--turf); flex: none; }
.tg-switch span { display: grid; gap: 0.15rem; }
.tg-switch small { color: var(--mist); font-size: 0.8125rem; }
.tg-switch:has(input:checked) { border-color: var(--turf); background: rgb(46 224 111 / 0.08); }
.tg-body { display: grid; gap: 0.7rem; margin-top: 0.8rem; }
.tg-body[hidden], .tg [hidden] { display: none !important; }
.tg-label { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.tg-kits { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.tg-kit { position: relative; }
.tg-kit input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tg-kit span { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; border: 1.5px solid var(--line-2); border-radius: 0.8rem; font-weight: 700; }
.tg-kit i { width: 1rem; height: 1rem; border-radius: 50%; }
.tg-red i { background: var(--kit-red); }
.tg-blue i { background: var(--kit-blue); }
.tg-red input:checked + span { border-color: var(--kit-red); background: rgb(230 57 70 / 0.14); }
.tg-blue input:checked + span { border-color: var(--kit-blue); background: rgb(77 141 255 / 0.16); }
.tg-kit input:focus-visible + span { outline: 2px solid var(--ball); outline-offset: 2px; }
.club-table select[name="position"] { min-width: 9.5rem; }
.club-table select[name="squad"] { min-width: 7rem; }
/* The landing's contact form turns .form into two columns on wide screens: not in these panels */
.club-panel .form, .club-start .form, .board-form .form { grid-template-columns: minmax(0, 1fr); }
.club-panel .form > *, .board-form .form > * { grid-column: 1 / -1; }
.board-form .form .btn { justify-self: start; }
.club-add-row .btn { white-space: nowrap; }

/* ---------- Club matches (2026-11): match cards, the board's own block, match day at the QR */
.club-dot { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; margin-left: 0.3rem; padding: 0 0.3rem; border-radius: 99rem; background: #d83a2b; color: #fff; font-size: 0.6875rem; font-weight: 800; }
.club-nav a.is-main { background: #0a1420; border-color: #0a1420; color: #fff; }
.club-note { margin: -0.4rem 0 0.9rem; font-size: 0.875rem; color: var(--mist); }

.tag-saved.is-bad { background: #d83a2b; border-color: #d83a2b; color: #fff; font-weight: 700; }
.tag-goals { max-height: 12rem; }
.match-list { display: grid; gap: 0.8rem; }
.match-list > .match { display: grid; gap: 0.75rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 1.1rem; background: #fff; }   /* only the club's cards: the room's result is .match too */
.match-starting { border-color: #e8a33d; }
.match-ready, .match-live { border-color: var(--turf); }
.match-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.match-teams { display: flex; align-items: center; gap: 0.55rem; min-width: 0; font-size: 1.05rem; }
.match-teams b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-vs { padding: 0.1rem 0.45rem; border-radius: 0.4rem; background: var(--night); color: var(--mist); font-size: 0.75rem; font-weight: 700; }
.match-state { padding: 0.25rem 0.7rem; border-radius: 99rem; background: var(--night); font-size: 0.8125rem; font-weight: 700; color: var(--chalk-2); }
.match-starting .match-state { background: rgb(232 163 61 / 0.18); color: #9a5b00; }
.match-ready .match-state, .match-live .match-state { background: rgb(18 161 80 / 0.14); color: var(--turf); }
.match-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.5rem; margin: 0; }
.match-facts div { padding: 0.55rem 0.75rem; border-radius: 0.7rem; background: var(--night); min-width: 0; }
.match-facts dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mist); }
.match-facts dd { margin: 0.15rem 0 0; font-weight: 600; font-size: 0.9375rem; overflow-wrap: anywhere; }
.match-facts a { color: var(--turf); }
.match-today { padding: 0.05rem 0.4rem; border-radius: 0.35rem; background: var(--turf); color: #fff; font-size: 0.75rem; }
.match-hint { margin: 0; font-size: 0.9rem; color: var(--chalk-2); }
.match-hint.is-wait { color: #9a5b00; font-weight: 600; }
.match-hint.is-ok { color: var(--turf); font-weight: 600; }
.match-ask { padding: 0.8rem 0.9rem; border-radius: 0.8rem; background: rgb(232 163 61 / 0.12); }
.match-ask p { margin: 0 0 0.6rem; }
.match-ask form, .match-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.match-plan { border-top: 1px solid var(--line); padding-top: 0.6rem; }
.match-plan summary { cursor: pointer; font-weight: 700; color: var(--turf); }
.match-plan[open] summary { margin-bottom: 0.4rem; }
.match-plan .muted { margin: 0 0 0.6rem; font-size: 0.875rem; }
.match-plan-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem; align-items: end; }
.match-plan-form label, .board-new label { display: grid; gap: 0.25rem; font-size: 0.8125rem; font-weight: 600; color: var(--chalk-2); min-width: 0; }
.match-plan-form select, .board-new select, .board-new input { width: 100%; min-width: 0; min-height: 2.5rem; padding: 0.4rem 0.6rem; border: 1px solid var(--line-2); border-radius: 0.6rem; background: #fff; color: var(--chalk); font: inherit; font-size: 0.9375rem; }
.match-plan-form .btn { justify-self: start; }
.match-cancel { margin-top: 0.6rem; text-align: right; }

/* The board: the viewer's own block first */
.board-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0 0 1.25rem; font-size: 0.875rem; color: var(--chalk-2); }
.board-steps span { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #0a1420; color: #fff; font-size: 0.75rem; font-weight: 800; }
.board-mine-wrap { display: grid; gap: 1.1rem; margin-bottom: 1.75rem; padding: clamp(1rem, 3vw, 1.4rem); border: 2px solid var(--turf); border-radius: 1.25rem; background: #fff; }
.board-mine-wrap > h2, .board-open > h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font: 800 1.25rem/1.2 var(--font-display); }
.board-col { display: grid; gap: 0.7rem; align-content: start; min-width: 0; }
.board-col h3 { display: flex; align-items: center; gap: 0.5rem; margin: 0; font: 800 1.05rem/1.2 var(--font-display); }
.board-grid { display: grid; gap: 1.1rem; }
@media (min-width: 52rem) { .board-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.board-mypost { display: grid; gap: 0.5rem; padding: 0.85rem 0.95rem; border-radius: 0.9rem; background: var(--night); }
.bm-reqs-title { margin: 0; font-weight: 700; color: #9a5b00; }
.board-new { display: grid; gap: 0.7rem; padding: 0.95rem; border-radius: 0.9rem; background: var(--night); }
.board-new .muted { margin: 0; font-size: 0.875rem; }
.board-new .btn { justify-self: start; }
.board-open { display: grid; gap: 0.9rem; }
.bp-club span { display: grid; min-width: 0; }
.bp-club small { font-size: 0.8125rem; color: var(--mist); font-weight: 400; }

/* Match day at the QR (dark page) */
.qr-match { border-color: #2ee06f; }
.qm + .qm { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.qm-kicker { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #2ee06f; }
.qm-teams { display: flex; align-items: center; gap: 0.6rem; margin: 0.4rem 0 0.9rem; font-size: 1.25rem; line-height: 1.25; }
.qm-teams span { flex: 1; min-width: 0; text-align: center; }
.qm-teams small { color: var(--mist); font-size: 0.8rem; }
.qm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: qm; }
.qm-steps li { counter-increment: qm; padding: 0.45rem 0.3rem; border-radius: 0.6rem; background: rgb(255 255 255 / 0.05); color: var(--mist); font-size: 0.75rem; line-height: 1.25; text-align: center; }
.qm-steps li::before { content: counter(qm); display: block; font-weight: 800; font-size: 0.95rem; }
.qm-steps li.is-done { color: #2ee06f; }
.qm-steps li.is-done::before { content: "✓"; }
.qm-steps li.is-now { background: #2ee06f; color: #0a1420; font-weight: 700; }
.qm-form { display: grid; gap: 0.75rem; }
.qm-q { margin: 0; font-weight: 700; font-size: 1.05rem; }
.qm-hint { margin: 0.4rem 0 0; font-size: 0.875rem; color: var(--mist); }
.qm-wait { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 700; color: var(--ball); }
.qm-ok { margin: 0; font-weight: 800; font-size: 1.05rem; color: #2ee06f; }
.qm-kit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0.4rem 0; }
.qm-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 1rem; padding: 0.7rem 0.9rem; border: 1.5px solid #2ee06f; border-radius: 0.8rem; }
.qm-chip small { flex-basis: 100%; color: var(--mist); }
.qr-match .link-button { margin-top: 0.5rem; }
.qm-teams .club-badge { flex: none; }
.qm-kit { display: block; }
.qm-kit .kit-dot, .match-facts .kit-dot { display: inline-block; vertical-align: -1px; }

/* the players' feedback on a result (room) */
.feedback-card { margin-block: 1.25rem; display: grid; gap: 0.75rem; }
.feedback-card form { display: grid; gap: 0.75rem; }
.feedback-card form > .btn { justify-self: start; }
.feedback-card h2 { margin: 0; }
.fb-stars { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
.fb-stars legend { width: 100%; margin-bottom: 0.35rem; font-weight: 600; }
.fb-stars input { position: absolute; opacity: 0; pointer-events: none; }
.fb-stars label { font-size: 2rem; line-height: 1; cursor: pointer; color: var(--line-2); padding: 0.1rem; }
.fb-stars input:checked ~ label, .fb-stars label:hover, .fb-stars label:hover ~ label { color: var(--ball); }
.fb-stars input:focus-visible + label { outline: 2px solid var(--ball); border-radius: 0.3rem; }
.fb-issues { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-block: 0.5rem; }
.fb-text { display: grid; gap: 0.35rem; }
.fb-text textarea { width: 100%; font: inherit; }
.adm-fb summary { cursor: pointer; font-size: 0.85rem; }

/* The room's "this is me" pop-up stays in the middle on a phone too (the owner, 2026-11-09) */
.claim-dlg .kit-pick { margin-top: 0; }
@media (max-width: 47.99rem) {
  .claim-dlg { width: calc(100vw - 2rem); max-width: calc(100vw - 2rem); max-height: 88dvh; margin: auto; border-radius: 1.25rem; border-bottom: 1px solid var(--line-2); }
}


/* ---------- Tagging practice (2026-11, app/pages/admin_practice.php) ------ */
.practice-banner { margin: 0.25rem 0 0.5rem; padding: 0.55rem 0.9rem; border: 1px solid var(--ball); border-radius: 0.6rem; background: rgb(255 159 28 / 0.14); color: var(--chalk); font-size: 0.875rem; }
.practice-banner b { color: var(--ball); letter-spacing: 0.04em; }
.tagger-practice .tag-head h1 { color: var(--ball); }
.practice-score { display: grid; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.practice-big { display: flex; align-items: baseline; gap: 0.75rem; }
.practice-big b { font-size: clamp(2.5rem, 8vw, 3.5rem); line-height: 1; color: var(--turf); font-variant-numeric: tabular-nums; }
.practice-big span { color: var(--mist); font-weight: 600; }
.practice-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.practice-goals h3 { margin: 0 0 0.4rem; font-size: 0.9375rem; }
.practice-goals ol { margin: 0; padding-left: 1.2rem; }
.practice-table td, .practice-table th { white-space: nowrap; }
.practice-diff { color: var(--ball); font-weight: 700; }
.practice-rate[data-rate="good"] { color: var(--turf); }
.practice-rate[data-rate="mid"] { color: var(--ball); }
.practice-rate[data-rate="low"] { color: var(--error); }


/* ---------- Tagging practice result: the lists behind the numbers, the player (2026-11, practice-view.js) -- */
.practice-num { min-width: 2.2rem; padding: 0.15rem 0.5rem; border: 1px solid var(--line-2); border-radius: 0.5rem; background: var(--night); color: var(--chalk); font: inherit; font-weight: 700; cursor: pointer; }
.practice-num:hover, .practice-num[aria-expanded="true"] { border-color: var(--turf); color: var(--turf); }
.practice-detail > td { padding: 0.75rem 0.5rem 1rem; background: var(--night); white-space: normal; }
.practice-filter, .practice-cams { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; }
.practice-chip { padding: 0.25rem 0.7rem; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--mist); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.practice-chip[aria-pressed="true"] { border-color: var(--turf); color: var(--chalk); background: rgb(46 224 111 / 0.12); }
.practice-events { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.practice-events th { padding: 0.3rem 0.5rem; color: var(--mist); font-size: 0.75rem; font-weight: 600; text-align: left; }
.practice-events td { padding: 0.35rem 0.5rem; border-top: 1px solid var(--line); white-space: normal; vertical-align: middle; }
.practice-events td:first-child { width: 2.4rem; }
.practice-time, .practice-dt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.practice-ev.playing td { background: rgb(46 224 111 / 0.08); }
.practice-ev-miss .practice-time { color: var(--error); }
.practice-ev-extra .practice-time { color: var(--ball); }
.practice-play { width: 2rem; height: 2rem; border: 1px solid var(--line-2); border-radius: 50%; background: none; color: var(--turf); font-size: 0.75rem; cursor: pointer; }
.practice-play:hover { border-color: var(--turf); }
.practice-tag { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.practice-tag-match { color: var(--turf); background: rgb(46 224 111 / 0.12); }
.practice-tag-miss { color: var(--error); background: rgb(255 107 94 / 0.12); }
.practice-tag-extra { color: var(--ball); background: rgb(255 159 28 / 0.12); }
.practice-near { display: block; margin-top: 0.15rem; color: var(--mist); font-size: 0.78rem; }
.practice-view { position: sticky; top: 3.75rem; z-index: 5; padding: 0.9rem 1rem; border: 1px solid var(--line-2); border-radius: 1rem; background: var(--night); }
.practice-view h2 { margin-top: 0; }
.practice-stage { position: relative; max-width: min(46rem, calc(34vh * 16 / 9)); border-radius: 0.75rem; overflow: hidden; background: #000; }
.practice-video { display: block; width: 100%; max-height: 42vh; aspect-ratio: 16 / 9; background: #000; }
.practice-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1rem; color: #cbd5e1; text-align: center; background: rgb(0 0 0 / 0.55); pointer-events: none; }
.practice-wait[hidden] { display: none; }
.practice-now { max-width: min(46rem, calc(34vh * 16 / 9)); margin-top: 0.6rem; }
.practice-bar { position: relative; height: 0.9rem; border-radius: 999px; background: var(--line); }
.practice-tick { position: absolute; top: -0.2rem; bottom: -0.2rem; width: 4px; margin-left: -2px; border-radius: 2px; }
.practice-tick-o { background: var(--turf); }
.practice-tick-m { background: var(--ball); }
.practice-cursor { position: absolute; top: -0.35rem; bottom: -0.35rem; width: 2px; margin-left: -1px; background: var(--chalk); }
.practice-labels { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.5rem 0 0; font-size: 0.8125rem; }
.practice-lab-o, .practice-lab-m { padding: 0.1rem 0.55rem; border-radius: 0.5rem; border: 1px solid transparent; }
.practice-lab-o { color: var(--turf); }
.practice-lab-m { color: var(--ball); }
.practice-lab-o.on { border-color: var(--turf); background: rgb(46 224 111 / 0.15); }
.practice-lab-m.on { border-color: var(--ball); background: rgb(255 159 28 / 0.15); }
.practice-cams { margin: 0.6rem 0 0; }
@media (max-width: 46rem) { .practice-view { position: static; } }

/* ---------- The room: cut a moment, on the room's own player (render_clip_tool, clip.js), 2026-11 ---------- */
.clip { margin-top: 0.75rem; }
.clip-start { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.clip-start[hidden] { display: none; }
.clip-cut { flex: none; }
.clip-how { margin: 0; font-size: 0.875rem; color: var(--mist); }
.clip-panel { padding: 0.9rem 1rem 1rem; border: 1px solid var(--line); border-radius: 0.625rem; background: var(--night-2); }
/* the trimmer: a strip of frames, a yellow frame with two handles, the play line */
.trim-times { margin: 0 0 0.45rem; font-size: 0.875rem; color: var(--mist); text-align: center; font-variant-numeric: tabular-nums; }
.trim-times b { font-size: 1rem; color: var(--chalk); }
.trim { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 2rem; align-items: stretch; gap: 0.35rem; }
.trim-pan { border: 0; border-radius: 0.5rem; background: var(--night); color: var(--chalk); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.trim-pan:disabled { opacity: 0.35; cursor: default; }
.trim-track { position: relative; height: 3.75rem; border-radius: 0.5rem; background: #1b2735; touch-action: none; user-select: none; -webkit-user-select: none; }
.trim-strip { display: flex; height: 100%; border-radius: 0.5rem; overflow: hidden; }
.trim-strip canvas { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; }
.trim-dim { position: absolute; top: 0; bottom: 0; background: rgb(10 20 32 / 0.62); pointer-events: none; }
.trim-dim[data-clip-dim="a"] { left: 0; border-radius: 0.5rem 0 0 0.5rem; }
.trim-dim[data-clip-dim="b"] { right: 0; border-radius: 0 0.5rem 0.5rem 0; }
.trim-sel { position: absolute; top: -3px; bottom: -3px; border: 3px solid #ffc21a; border-inline-width: 0; cursor: grab; }
.trim-h { position: absolute; top: -3px; bottom: -3px; width: 1.1rem; background: #ffc21a; cursor: ew-resize; touch-action: none; }
.trim-h::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 1.1rem; margin: -0.55rem 0 0 -1.5px; border-radius: 2px; background: #6b4a00; }
.trim-h::before { content: ""; position: absolute; inset: -0.6rem -0.9rem; }      /* a finger-sized place to grab */
.trim-h-a { left: -1.1rem; border-radius: 0.45rem 0 0 0.45rem; }
.trim-h-b { right: -1.1rem; border-radius: 0 0.45rem 0.45rem 0; }
.trim-h:focus-visible { outline: 2px solid #0d9449; outline-offset: 2px; }
.trim-head { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgb(10 20 32 / 0.5); pointer-events: none; }
.trim-tip { margin: 0.55rem 0 0; font-size: 0.8125rem; color: var(--mist); text-align: center; }
.trim-watch { display: flex; margin: 0.55rem auto 0; }
/* the phone frame over the video: drag it sideways to keep the ball in */
.clip-wrap { position: relative; }
.clip-crop { position: absolute; pointer-events: none; }
.clip-crop[hidden] { display: none; }
.clip-crop i { position: absolute; top: 0; bottom: 0; background: rgb(0 0 0 / 0.55); }
.clip-crop-frame { position: absolute; top: 0; bottom: 0; border: 3px solid #ffc21a; border-radius: 4px; pointer-events: auto; cursor: grab; touch-action: none; }
.clip-crop-frame span { position: absolute; left: 50%; top: 0.5rem; transform: translateX(-50%); padding: 0.1rem 0.7rem; border-radius: 99rem; background: #ffc21a; color: #3a2a00; font-size: 1rem; font-weight: 800; line-height: 1.4; }
.clip-crop-frame.is-locked { pointer-events: none; }
.clip-crop-frame.is-locked span { display: none; }
.clip-frame-tip { margin: 0.5rem 0 0; font-size: 0.8125rem; font-weight: 600; color: #8a6200; text-align: center; }
.clip-frame-tip[hidden] { display: none; }
.clip-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.clip-formats input, .clip-platform input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.clip-formats span { display: grid; justify-items: center; gap: 0.3rem; padding: 0.6rem 0.3rem; border: 1px solid var(--line-2); border-radius: 0.625rem;
  font-size: 0.8125rem; font-weight: 600; text-align: center; cursor: pointer; }
.clip-formats small { font-size: 0.6875rem; font-weight: 500; color: var(--mist); }
.clip-formats input:checked + span, .clip-platform input:checked + span { border-color: #0d9449; background: #e9f8ef; color: #0b6b36; }
.clip-formats input:focus-visible + span, .clip-platform input:focus-visible + span { outline: 2px solid #0d9449; outline-offset: 1px; }
.clip-f { display: block; border: 2px solid currentColor; border-radius: 3px; opacity: 0.7; }
.clip-f-story { width: 0.9rem; height: 1.6rem; }
.clip-formats input:disabled + span { opacity: 0.5; cursor: not-allowed; }
.clip-f-wide { width: 1.9rem; height: 1.07rem; margin-block: 0.27rem; }
.clip-go { width: 100%; margin-top: 0.75rem; }
.clip-panel .link-button { display: block; margin: 0.6rem auto 0; color: #0d9449; }
.clip-bar { height: 0.45rem; border-radius: 99rem; background: var(--line); overflow: hidden; }
.clip-bar i { display: block; width: 0; height: 100%; background: #0d9449; transition: width 0.2s linear; }
.clip-note { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--mist); text-align: center; }
.clip-canvas { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.clip-result { display: block; width: auto; max-width: 100%; max-height: 22rem; margin-inline: auto; border-radius: 0.5rem; background: #000; }
.clip-error { margin-top: 0.7rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; background: #fdecec; color: #a32020; font-size: 0.875rem; }
.clip-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.clip-actions .btn { justify-content: center; text-align: center; }
.clip-label { margin: 0.9rem 0 0.4rem; font-size: 0.8125rem; font-weight: 700; }
.clip-platform { display: inline-flex; gap: 0.3rem; }
.clip-platform span { display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid var(--line-2); border-radius: 99rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.clip-caption { margin-top: 0.5rem; padding: 0.6rem 0.75rem; border-radius: 0.5rem; background: var(--night); font-size: 0.875rem; line-height: 1.4; overflow-wrap: anywhere; }
.clip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.8125rem; }
.clip-hint { margin-top: 0.6rem; font-size: 0.8125rem; }
.game-video.is-clipping { outline: 3px solid #0d9449; outline-offset: 2px; }

/* ---------- The player's page: one game as a story (render_player_story, story.js), 2026-11 ---------- */
.pstory { margin-top: 0.75rem; }
.pstory[hidden] { display: none; }
.pstory h2 { margin-bottom: 0.2rem; }
.pstory > .muted { margin-bottom: 0.75rem; font-size: 0.875rem; }
.pstory-picks { display: flex; justify-content: center; gap: 0.9rem; }
.pstory-pick { flex: 0 1 11rem; min-width: 0; display: grid; gap: 0.5rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; font-size: 0.9375rem; cursor: pointer; }
.pstory-pick canvas { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; border-radius: 0.9rem; background: #0a1420;
  box-shadow: 0 10px 24px rgb(10 20 32 / 0.28); transition: transform 0.15s, box-shadow 0.15s; }
.pstory-pick:hover canvas, .pstory-pick:focus-visible canvas { transform: translateY(-3px); box-shadow: 0 16px 30px rgb(10 20 32 / 0.35); }
.pstory-pick:focus-visible { outline: none; }
.pstory-pick:focus-visible canvas { outline: 3px solid #0d9449; outline-offset: 3px; }
.pstory-pick:disabled { cursor: progress; opacity: 0.7; }
.pstory-pick span::before { content: "\2197\FE0E  "; color: #0d9449; }
.pstory-status { margin-top: 0.75rem; font-size: 0.875rem; color: var(--mist); text-align: center; }
.pstory-status[hidden] { display: none; }

/* ---------- Account: the hero, compact (form, groups, badges) and the list (2026-11-22) ---------- */
.acc-meta { margin-top: 0.3rem; font-size: 0.9375rem; color: var(--mist); }
.acc-sum { display: grid; gap: 0.75rem; }
.acc-lbl { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.35rem; font-size: 0.8125rem; font-weight: 600; color: var(--mist); }
.acc-ic { width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: #12a150; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.acc-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 0.9rem 1.1rem;
  border-radius: 1rem; background: #0a1420; color: #f1f5ee; }
.acc-form .acc-lbl { color: #93a6b8; }
.acc-big { margin: 0; font: 800 2.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--r, #f1f5ee); }
.acc-big.r-top { --r: #2ee06f; } .acc-big.r-good { --r: #4cd486; } .acc-big.r-mid { --r: #ffb347; } .acc-big.r-low { --r: #ff7a6b; }
.acc-trend { margin: 0.3rem 0 0; font-size: 0.75rem; font-weight: 700; }
.acc-trend.is-up { color: #2ee06f; } .acc-trend.is-down { color: #ff7a6b; }
.acc-wdl { display: inline-flex; flex-wrap: wrap; gap: 0.6rem; margin-left: auto; font-size: 0.75rem; font-weight: 700; }
.acc-wdl span::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.3rem; border-radius: 50%; background: currentColor; }
.acc-wdl .wdl-w { color: #2ee06f; } .acc-wdl .wdl-d { color: #ffb347; } .acc-wdl .wdl-l { color: #ff7a6b; }
.acc-five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; }
.acc-five a { display: grid; justify-items: center; gap: 0.05rem; padding: 0.4rem 0.2rem; border-radius: 0.6rem; text-decoration: none;
  background: rgb(255 255 255 / 0.06); color: #f1f5ee; transition: transform 0.15s; }
.acc-five a:hover { transform: translateY(-2px); }
.acc-five b { font: 800 1.1rem/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.acc-five small { font-size: 0.6875rem; white-space: nowrap; color: #93a6b8; }
.acc-five .res-w a { background: rgb(46 224 111 / 0.16); } .acc-five .res-w b { color: #2ee06f; }
.acc-five .res-d a { background: rgb(255 179 71 / 0.16); } .acc-five .res-d b { color: #ffb347; }
.acc-five .res-l a { background: rgb(255 107 91 / 0.16); } .acc-five .res-l b { color: #ff7a6b; }
.acc-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.acc-grp { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; min-width: 0; }
.acc-val { margin: 0; font: 800 1.5rem/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.acc-val small { font: 600 0.8125rem/1.2 var(--font-body, inherit); color: var(--mist); }
.acc-subs { margin: 0.3rem 0 0; font-size: 0.8125rem; color: var(--mist); }
.acc-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.acc-badges li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 99rem;
  background: #fff; font-size: 0.8125rem; font-weight: 600; }
.acc-badges .acc-b-gold { border-color: #f5d58a; background: #fff6df; color: #8a5a00; }
.acc-badges .acc-b-gold .acc-ic { stroke: #c98a00; }
.acc-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.acc-list-head h2 { margin: 0; }
.acc-rated { font-size: 0.875rem; font-weight: 600; color: var(--mist); }
.acc-filter { display: inline-flex; gap: 0.2rem; padding: 0.2rem; border-radius: 99rem; background: var(--line); }
.acc-filter a { padding: 0.3rem 0.8rem; border-radius: 99rem; font-size: 0.8125rem; font-weight: 600; color: #3d4e60; text-decoration: none; }
.acc-filter a[aria-current] { background: #fff; color: var(--chalk); box-shadow: 0 1px 3px rgb(10 20 32 / 0.12); }
.gm-me { color: #12a150; }
.games li.is-off a { opacity: 0.6; }
@media (max-width: 40rem) {
  .acc-form { grid-template-columns: 1fr; gap: 0.75rem; }
  .acc-avg { display: flex; align-items: baseline; gap: 0.75rem; }
  .acc-avg .acc-lbl { margin: 0; }
  .acc-groups { grid-template-columns: 1fr; }
  .acc-grp { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 0.75rem; }
  .acc-grp .acc-lbl { grid-column: 1 / -1; }
  .acc-grp .acc-subs { grid-column: 1 / -1; }
}

/* Inbox (2026-11-22): SmartStat's answers to reviews — the count on "Hesabım", the account tab, the admin reply. */
.acc-dot { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.35rem; border-radius: 99rem;
  background: var(--ball, #ff9f1c); color: #0a1420; font-size: 0.75rem; font-weight: 700; line-height: 1; vertical-align: 0.1em; }
.acc-inbox { display: grid; gap: 1rem; }
.inbox-list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.inbox-item { display: grid; gap: 0.6rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; color: var(--chalk); }
.inbox-item.is-new { border-color: var(--turf); box-shadow: 0 0 0 1px var(--turf) inset; }
.inbox-meta { margin: 0; color: var(--mist); font-size: 0.875rem; }
.inbox-meta b { color: var(--chalk); }
.inbox-quote { margin: 0; padding: 0.6rem 0.85rem; border-left: 3px solid var(--line-2); border-radius: 0 0.5rem 0.5rem 0; background: var(--night); color: var(--chalk-2, var(--chalk)); font-size: 0.9375rem; }
.inbox-quote small { display: block; margin-bottom: 0.2rem; color: var(--mist); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.inbox-body { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.inbox-item .btn { justify-self: start; }
.rv-reply { padding: 0.55rem 0.8rem; border-left: 3px solid var(--turf); border-radius: 0 0.5rem 0.5rem 0; background: var(--night-2, var(--night)); }
.rv-reply p { margin: 0; }
.rv-reply p + p { margin-top: 0.25rem; overflow-wrap: anywhere; }
.rv-answer summary { cursor: pointer; color: var(--turf); font-weight: 600; font-size: 0.9rem; }
.rv-answer form { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.rv-answer textarea { width: 100%; min-height: 7rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line-2); border-radius: 0.6rem; background: var(--night); color: var(--chalk); font: inherit; resize: vertical; }
.rv-answer .btn { justify-self: start; }

/* Delete account (app/pages/account_delete.php): three steps, the last one red */
.del-step { margin: 0 0 0.25rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mist); }
.del-list { margin: 0.5rem 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.35rem; list-style: disc; }
.del-list li::marker { color: var(--error); }
.del-warn { font-weight: 700; color: var(--error); }
.del-last { font-size: 1.0625rem; }
.btn-danger { background: #d83a2b; color: #fff; width: 100%; }
.btn-danger:hover { background: #bf2f21; }
.del-card { display: flex; justify-content: flex-end; }
.del-link { color: #d83a2b; border-color: rgba(216, 58, 43, 0.45); }
body:not(.app-light) .del-link { color: var(--error); }

/* ----- the performance table (/az/admin/board) ----- */
.pod { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: clamp(0.6rem, 2vw, 1.25rem); margin: 1.25rem 0 1.5rem; }
.pod-card { --m: var(--mist); position: relative; display: grid; justify-items: center; gap: 0.35rem; padding: 1.5rem 0.75rem 1.1rem; text-align: center;
  border: 1px solid color-mix(in srgb, var(--m) 45%, transparent); border-radius: 1.25rem;
  background: radial-gradient(120% 90% at 50% 0, color-mix(in srgb, var(--m) 16%, transparent), transparent 70%), var(--night-2); }
.pod-1 { --m: #ffc94a; order: 2; padding-block: 2.1rem 1.5rem; }
.pod-2 { --m: #b9c6d4; order: 1; }
.pod-3 { --m: #d98a52; order: 3; }
.pod-rank { position: absolute; top: -0.85rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--m);
  color: #14110a; font: 800 1rem var(--font-display); }
.pod-av, .bd-av { display: grid; place-items: center; border-radius: 50%; color: var(--chalk); font: 700 1.2rem var(--font-display);
  background: var(--line); }
.pod-av { width: 4.25rem; height: 4.25rem; border: 3px solid var(--m); }
.pod-1 .pod-av { width: 5.5rem; height: 5.5rem; font-size: 1.6rem; }
.pod-card h2 { margin: 0.3rem 0 0; font: 700 clamp(0.95rem, 2.4vw, 1.2rem)/1.2 var(--font-display); overflow-wrap: anywhere; }
.pod-num { margin: 0; }
.pod-num b { display: block; font: 800 clamp(1.9rem, 5vw, 3rem)/1 var(--font-display); color: var(--m); font-variant-numeric: tabular-nums; }
.pod-num small, .pod-sub { color: var(--mist); font-size: 0.8125rem; }
.pod-sub { margin: 0; }
.bd-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
.bd-bar input[type="search"], .bd-bar select { min-height: 2.6rem; padding: 0 0.8rem; border: 1px solid var(--line-2); border-radius: 0.6rem; background: var(--night-2);
  color: var(--chalk); font: inherit; }
.bd-bar input[type="search"] { flex: 1 1 12rem; }
.bd th a { color: inherit; text-decoration: none; }
.bd th a:hover { color: var(--chalk); }
.bd th.is-on a { color: var(--turf); }
.bd th.is-on a::after { content: " ↓"; }
.bd th[aria-sort="ascending"].is-on a::after { content: " ↑"; }
.bd td { vertical-align: middle; }
.bd-r { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-rank { width: 3rem; text-align: center !important; }
.bd-badge { color: var(--mist); font-variant-numeric: tabular-nums; }
.bd tbody tr:hover td { background: rgb(255 255 255 / 0.03); }
.bd-g { font-weight: 800; font-size: 1.0625rem; }
.bd-who { display: flex; align-items: center; gap: 0.75rem; min-width: 11rem; }
.bd-av { flex: none; width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
.bd-nm { display: grid; line-height: 1.25; }
.bd-nm b { font-weight: 700; }
.bd-nm small, .bd-wdl, .bd td > small { color: var(--mist); font-size: 0.75rem; }
.bd-wdl { display: block; }
.bd-nm i { font-style: normal; }
.bd-foot { font-size: 0.875rem; }
@media (max-width: 40rem) {
  .pod-card { padding-inline: 0.35rem; }
  .pod-av { width: 3.1rem; height: 3.1rem; font-size: 0.95rem; }
  .pod-1 .pod-av { width: 3.9rem; height: 3.9rem; font-size: 1.15rem; }
  .bd-wrap .bd-l { position: sticky; left: 0; z-index: 1; background: var(--night-2); }
}
