/* DiceFooty — visual system
   Ground: a floodlit football pitch. Panels: fixture-list paper.
   Two accents only: turf green for actions, floodlight amber for attention.

   The ground used to be evening blue. It is now the pitch itself — the same
   three tokens, so every screen that sat on `--pitch` moved with it and not one
   component had to be touched. */

:root {
  --pitch:       #0F3D23;
  --pitch-deep:  #0A2C19;
  --pitch-soft:  #17512F;
  --paper:       #FAFAF7;
  --paper-alt:   #F0F1EC;
  --ink:         #16222E;
  --ink-soft:    #5A6B7A;
  --chalk:       #E8EEF3;
  --chalk-soft:  #9DB2C4;
  --grass:       #1F8A4C;
  --grass-dark:  #17703D;
  --floodlight:  #F2B705;
  --danger:      #B3372B;
  --playoff:     #E07A1F;
  /* darker variants of the boundary colours, for text on the light table */
  --zone-promotion-text:  #176B3A;
  --zone-playoff-text:    #A85B0B;
  --zone-relegation-text: #A83024;
  /* the fixture being played, and its two clubs in the table: floodlight amber
     at low strength, so it reads as attention rather than as a result */
  --picked:      rgba(242, 183, 5, 0.22);
  --picked-soft: rgba(242, 183, 5, 0.13);
  --rule:        #D9DCD4;
  --rule-dark:   rgba(232, 238, 243, 0.16);

  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', system-ui, 'Segoe UI', sans-serif;

  --shell: 1140px;
  --r-lg: 10px;
  --r-sm: 6px;
}

/* --- the pitch behind everything ---------------------------------------
   Fixed, so the markings stay put while the page scrolls, and behind every
   layer, so nothing readable ever sits on a line rather than on the green. */
.pitch {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  /* the SVG is sliced, so its shapes run past the viewport by design — clipped
     here so they can never add to the page's scrollable width */
  overflow: hidden;
  color: #FFFFFF;
  /* the faintest suggestion of mown stripes, under the markings */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.018) 0 8vw,
    rgba(0, 0, 0, 0.018) 8vw 16vw);
}
.pitch svg { width: 100%; height: 100%; display: block; opacity: 0.085; }

/* Everything else sits above it. */
.topbar, main, .footer, .skip { position: relative; z-index: 1; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pitch);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--cond); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: 0.005em; }

p { margin: 0 0 0.9em; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--floodlight);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--floodlight); color: var(--ink);
  padding: 10px 16px; z-index: 50; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ----------------------------------------------------------- top bar --- */

.topbar {
  background: var(--pitch-deep);
  border-bottom: 1px solid var(--rule-dark);
  position: sticky; top: 0; z-index: 20;
}
/* Wider than the content shell: seven sections and a wordmark need more room
   than a league table does. `wrap` is what lets the narrow-screen menu drop
   onto its own line instead of pushing the header off the side. */
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 14px; flex-wrap: wrap;
}

.wordmark {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--chalk);
}
.wordmark-text {
  font-family: var(--cond); font-weight: 700; font-size: 25px;
  letter-spacing: 0.055em; line-height: 1;
}
.wordmark-dice {
  width: 26px; height: 26px; border-radius: 6px; background: var(--grass);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 6px; flex: none;
}
.wordmark-dice i { background: var(--paper); border-radius: 50%; }

.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* --- the site's sections ------------------------------------------------
   One row of tabs on a wide screen; a panel under the header on a narrow one,
   opened by the button beside the wordmark. Both are the same list of
   buttons — only the layout changes. */
.site-nav {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  flex: 1 1 auto; min-width: 0;
}
.nav-tab {
  font-family: var(--cond); font-size: 15.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
  background: none; border: 0; cursor: pointer;
  color: var(--chalk-soft);
  padding: 10px 8px; border-radius: var(--r-sm);
  white-space: nowrap; line-height: 1.1;
}
.nav-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-tab[aria-current="page"] {
  color: var(--ink); background: var(--floodlight);
}
/* A section that exists in the navigation but not yet in the product. Muted
   rather than hidden, so the shape of the site is visible from the start. */
.nav-tab-soon { opacity: 0.6; }
.nav-tab-soon:hover { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 38px; padding: 0 9px;
  background: none; border: 1px solid var(--rule-dark); border-radius: var(--r-sm);
  cursor: pointer; margin-left: auto;
}
.nav-toggle span { display: block; height: 2px; background: var(--chalk); border-radius: 2px; }
.nav-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%; flex: 0 0 100%; order: 3;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding-top: 10px; margin-top: 4px;
    border-top: 1px solid var(--rule-dark);
  }
  .site-nav.is-open { display: flex; }
  .nav-tab { text-align: left; padding: 12px 10px; font-size: 18px; }
  .topbar-actions { order: 2; }
}

.danger-zone { margin-top: 26px; }
.danger-zone h2 { font-size: 20px; margin-bottom: 4px; }
.danger-zone .hero-cta { margin-top: 14px; }

/* ------------------------------------------------------------ layout --- */

main { flex: 1; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }

.footer {
  width: 100%;  /* flex item: without this, `margin:0 auto` collapses it to its content */
  max-width: var(--shell); margin: 0 auto; padding: 28px 20px 40px;
  color: var(--chalk-soft); font-size: 13.5px;
}
.footer p { margin: 0; }

/* ------------------------------------------------------------ hero --- */

/* The tagline lives in the hero rather than the header: with seven sections up
   there it had nowhere to go, and here it is visible on a phone too. */
.hero-tagline {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: clamp(13px, 1.6vw, 15.5px); font-weight: 600;
  color: var(--floodlight);
  margin: 0 0 14px;
}

.hero { padding: 56px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px; align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 66px);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 18px;
  max-width: 13ch;
}
.hero-tag {
  font-size: 19px; color: var(--chalk-soft); max-width: 46ch; margin-bottom: 26px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: var(--chalk-soft); }

.hero-preview {
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 44px rgba(4, 14, 24, 0.42);
  overflow: hidden;
}
.hero-preview-head {
  padding: 12px 16px; border-bottom: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.hero-preview-head strong { font-family: var(--cond); font-size: 20px; font-weight: 600; }
.hero-preview-head span { font-size: 13px; color: var(--ink-soft); }

/* --------------------------------------------------------- buttons --- */

.btn {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; background: var(--grass); color: #fff; line-height: 1.2;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--grass-dark); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--grass); }

.btn-lg { font-size: 17px; padding: 14px 26px; }

.btn-quiet {
  background: transparent; color: var(--chalk); border-color: var(--rule-dark);
}
.btn-quiet:hover { background: rgba(232, 238, 243, 0.08); }

.btn-onpaper {
  background: transparent; color: var(--ink); border-color: var(--rule);
}
.btn-onpaper:hover { background: var(--paper-alt); }

/* The floodlight yellow, for a secondary action that has to be as findable as
   the primary one beside it. Dark ink on yellow rather than white: white on
   #F2B705 is around 1.9:1 and unreadable, dark ink is about 11:1. Hover,
   focus and pressed all stay visibly distinct, and a genuine disabled state
   still dims through the shared .btn[disabled] rule. */
.btn-accent {
  background: var(--floodlight); color: var(--ink);
  border-color: rgba(22, 34, 46, 0.22);
}
.btn-accent:hover { background: #D9A404; }
.btn-accent:active { background: #C79504; }
.btn-accent[disabled]:hover { background: var(--floodlight); }
.btn-accent:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px;
}

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #962d23; }

.btn-sm { font-size: 13.5px; padding: 7px 13px; }

/* ---------------------------------------------------------- panels --- */

.panel {
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-lg); padding: 24px;
  margin-bottom: 18px;
}
.panel > h2 { font-size: 24px; margin-bottom: 4px; }
.panel-hint { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; max-width: 62ch; }

.page-head { padding: 34px 0 22px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: 6px; }
.page-head p { color: var(--chalk-soft); max-width: 60ch; margin: 0; }

/* ----------------------------------------------------------- forms --- */

label.field { display: block; margin-bottom: 16px; }
label.field > span {
  display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; color: var(--ink);
}

input[type="text"], input[type="search"], input[type="number"], select {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: 10px 12px; width: 100%; max-width: 420px;
}
input::placeholder { color: #97A2AC; }

.chipset { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: #fff; color: var(--ink-soft); cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}

/* ------------------------------------------------- division setup --- */

.division-card {
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 14px; background: #fff;
}
.division-card-head {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 14px;
}
.division-rank {
  font-family: var(--cond); font-size: 13px; font-weight: 600;
  color: var(--ink-soft); letter-spacing: 0.04em;
}
.setup-row { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.setup-row > * { min-width: 0; }

.squad-summary {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 16px 0 10px; font-size: 15px;
}
.squad-count { font-family: var(--cond); font-size: 27px; font-weight: 600; }
.squad-count.is-empty { color: var(--ink-soft); }

.picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.picked li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper-alt); border-radius: 999px; padding: 4px 5px 4px 12px; font-size: 14px;
}
/* The remove control only. This used to be `.picked button`, which also caught
   the S / N / W rating circles sitting in the same row — so hovering Strong or
   Neutral turned it red, the colour that means Weak. The destructive style is
   now scoped to the one button it belongs to. */
.picked .picked-remove {
  border: 0; background: rgba(22, 34, 46, 0.1); color: var(--ink);
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1;
  font-size: 14px; display: grid; place-items: center;
}
.picked .picked-remove:hover { background: var(--danger); color: #fff; }

/* ---------------------------------------------------- team picker --- */

.picker { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 16px; }
.picker-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.picker-tools input[type="search"] { max-width: 340px; }
.picker-tools select { max-width: 210px; }

.picker-list {
  max-height: 400px; overflow-y: auto;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  /* No padding at the top: it would sit above the sticky header and let a
     sliver of the scrolling list show through the gap. */
  padding: 0 4px 4px;
}
.picker-group-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 10px 6px; position: sticky; top: 0; background: var(--paper);
  border-bottom: 1px solid var(--rule);
  /* The rows are later siblings, so they paint over the sticky header without
     this. Only noticeable now the longer lists get scrolled. */
  z-index: 1;
}
.picker-group-head h4 { margin: 0; font-family: var(--cond); font-size: 17px; font-weight: 600; }
.picker-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1px; padding: 6px 0 14px; }

.opt { display: flex; gap: 9px; align-items: center; padding: 6px 10px; border-radius: var(--r-sm); font-size: 15px; }
.opt:hover { background: var(--paper-alt); }
.opt input { margin: 0; width: 17px; height: 17px; accent-color: var(--grass); flex: none; }
.opt.is-taken { color: var(--ink-soft); }
.opt.is-taken span { text-decoration: line-through; }
.opt-taken-note { font-size: 12.5px; color: var(--danger); margin-left: auto; text-decoration: none !important; }

.picker-empty { padding: 20px 12px; color: var(--ink-soft); }
.picker-elsewhere { margin: 0; padding: 8px 12px 12px; font-size: 13.5px; color: var(--ink-soft); }

/* Country tabs above the club library. Navigation, not another set of league
   controls — hence the underline rather than the pill used by .chip. */
.lib-tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); margin-bottom: 14px;
}
.lib-tab {
  font-family: var(--cond); font-size: 18px; font-weight: 600; letter-spacing: 0.01em;
  padding: 9px 18px; min-height: 44px;
  background: none; border: 0; border-bottom: 3px solid transparent;
  margin-bottom: -1px; color: var(--ink-soft); cursor: pointer;
}
.lib-tab:hover { color: var(--ink); background: var(--paper-alt); }
.lib-tab.is-on { color: var(--grass-dark); border-bottom-color: var(--grass); }
/* Four tabs with long labels do not fit one narrow row and read as a menu when
   stacked one per line, so pair them up two by two. The active tab gets a tint
   as well as the underline, which reads better in a grid than on a single row. */
@media (max-width: 900px) {
  .lib-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .lib-tab { padding: 10px 8px; font-size: 16.5px; }
  /* An odd number of tabs would leave a hole in the grid: let the last one
     take the full width rather than sit beside empty space. */
  .lib-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lib-tab.is-on { background: var(--paper-alt); }
}

/* ------------------------------------------------------- messages --- */

.notice { border-left: 4px solid var(--floodlight); background: #FFF8E3; color: var(--ink); padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 16px; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice-error { border-left-color: var(--danger); background: #FCEDEB; }

.banner {
  background: var(--floodlight); color: var(--ink);
  padding: 10px 20px; font-size: 14.5px; font-weight: 500; text-align: center;
}

/* ------------------------------------------------- competition bar --- */

.comp-bar { padding: 26px 0 0; }
.comp-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.comp-title h1 { font-size: clamp(27px, 3.6vw, 38px); }
.comp-meta { color: var(--chalk-soft); font-size: 14.5px; }

.divtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--rule-dark); }
.divtab {
  font-family: var(--cond); font-size: 19px; font-weight: 600;
  background: none; border: 0; border-bottom: 3px solid transparent;
  color: var(--chalk-soft); padding: 9px 15px; cursor: pointer; margin-bottom: -1px;
}
.divtab:hover { color: var(--chalk); }
.divtab[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--floodlight); }

.division-strip {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: baseline;
  padding: 18px 0 20px; color: var(--chalk-soft); font-size: 14.5px;
}
.stat b { font-family: var(--cond); font-size: 21px; font-weight: 600; color: var(--chalk); margin-right: 5px; }
.stat-done {
  background: var(--floodlight); color: var(--ink); font-weight: 600;
  padding: 3px 12px; border-radius: 999px; font-size: 13.5px;
}

.final-banner {
  margin: 0; padding: 11px 16px; background: var(--floodlight); color: var(--ink);
  font-family: var(--cond); font-size: 18px; font-weight: 600;
}
.season-done {
  margin: 0; padding: 14px 16px; border-top: 1px solid var(--rule);
  background: #FFF8E3; color: var(--ink); font-size: 14.5px;
}
.season-done[hidden] { display: none; }
.build-stamp { opacity: 0.6; margin-left: 6px; }

/* the scorebook: enter scores on the left, watch the table on the right */
.scorebook {
  display: grid;
  /* the table carries far more information than the fixture list — ten columns
     plus the form guide — so it takes the larger share and the more prominent
     position. Roughly 44 / 56. */
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 20px; align-items: start;
}
.scorebook-main { min-width: 0; }
.scorebook-side {
  position: sticky; top: 74px;
  max-height: calc(100vh - 94px); overflow-y: auto;
  border-radius: var(--r-lg);
  container-type: inline-size;
}
.scorebook-side table.league { font-size: 14.5px; }
.scorebook-side table.league thead th,
.scorebook-side table.league tbody td { padding-left: 5px; padding-right: 5px; }
.scorebook-side table.league thead th.col-pos,
.scorebook-side table.league tbody td.col-pos { padding-left: 12px; }
.scorebook-side table.league thead th.col-pts,
.scorebook-side table.league tbody td.col-pts { padding-right: 12px; }

/* belt and braces: if the rail is ever squeezed (small tablet), shed the
   secondary columns rather than clipping the points */
@container (max-width: 430px) {
  .col-w, .col-d, .col-l, .col-gf, .col-ga { display: none; }
}

/* the form guide is the first thing to go when the rail is short, so the
   existing columns keep behaving exactly as they did before */
@container (max-width: 500px) {
  .col-form { display: none; }
}

.teams-details { margin: 16px 0 4px; border-top: 1px solid var(--rule); padding-top: 14px; }
.teams-details > summary {
  cursor: pointer; font-weight: 600; font-size: 15px; list-style-position: outside;
  padding: 4px 0;
}
.teams-details[open] > summary { margin-bottom: 12px; }

.picker-tools-gap { flex: 1 1 20px; }

/* seeding: a small dot beside a name, never a coloured row. Kept visually
   separate from the promotion/relegation system, which colours the name text. */
.seed-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle; flex: none;
  font-family: var(--sans); font-size: 9px; font-weight: 600; line-height: 1;
  color: #fff; letter-spacing: 0;
}
/* amber is light, so its letter takes the dark ink instead */
.seed-dot.seed-amber { color: var(--ink); }
.seed-dot-after { margin-right: 0; margin-left: 6px; }
.seed-green { background: var(--grass); }
.seed-amber { background: var(--floodlight); }
.seed-red   { background: var(--danger); }

.picked-area { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 12px; }
.picked-head { margin: 0 0 8px; font-weight: 600; font-size: 14.5px; }

.seeding { margin: 0 0 6px; }
.seeding-hint { margin: 7px 0 0; font-size: 13px; color: var(--ink-soft); max-width: 68ch; }
.chip-sm { font-size: 13.5px; padding: 5px 13px; }

.seed-counts { margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }
.picked-note { font-weight: 400; font-size: 13px; color: var(--ink-soft); }
.field-head { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
.scoring { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 4px; }
.scoring-sub { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--rule); }

.picked-seeded li { padding-left: 10px; }
.seed-pick { display: inline-flex; gap: 3px; margin-left: 8px; }
.seed-btn {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(22, 34, 46, 0.28); background: transparent;
  font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1;
  color: var(--ink-soft);
}
.seed-btn.is-on { color: #fff; }
.seed-btn.seed-amber.is-on { color: var(--ink); }
.seed-btn.seed-green.is-on { background: var(--grass); border-color: var(--grass); }
.seed-btn.seed-amber.is-on { background: var(--floodlight); border-color: #C79400; }
.seed-btn.seed-red.is-on   { background: var(--danger); border-color: var(--danger); }
/* Each circle shows ITS OWN colour on hover, before anything is clicked, so
   the control previews what pressing it would mean: Strong green, Neutral
   amber, Weak red. Never the shared destructive red. */
.seed-btn:hover:not([disabled]) { border-color: currentColor; }
.seed-btn.seed-green:hover:not(.is-on) { background: rgba(31, 138, 76, 0.16); border-color: var(--grass); color: var(--zone-promotion-text); }
.seed-btn.seed-amber:hover:not(.is-on) { background: rgba(242, 183, 5, 0.22); border-color: #C79400; color: var(--zone-playoff-text); }
.seed-btn.seed-red:hover:not(.is-on)   { background: rgba(179, 55, 43, 0.14); border-color: var(--danger); color: var(--zone-relegation-text); }
/* Hovering the one already chosen keeps its solid colour rather than lifting. */
.seed-btn.seed-green.is-on:hover { background: var(--grass-dark); border-color: var(--grass-dark); }
.seed-btn.seed-amber.is-on:hover { background: #E0A800; border-color: #C79400; }
.seed-btn.seed-red.is-on:hover   { background: #97281E; border-color: #97281E; }
.seed-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.picked-remove { margin-left: 8px; }

/* ---- a purple Super Seed in the selected-team list ----------------------
   The grey box stays; a purple outline goes round it; the rating badge and the
   three S / N / W circles are not drawn at all. No purple circle is added —
   the outline is the signal, and the club's name stays plainly readable. The
   status is also on the element as a title and an aria-label, so it does not
   depend on seeing the colour. */
.picked li.is-super {
  box-shadow: inset 0 0 0 2px var(--super);
  background: var(--paper-alt);
  padding-left: 12px;
}
.opt-cup.is-super {
  box-shadow: inset 0 0 0 2px var(--super);
  border-radius: var(--r-sm);
}

.rules { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 14px; }
.rules-hint { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-soft); }
.rules-row { display: flex; gap: 16px; flex-wrap: wrap; }
.rule { display: block; }
.rule > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.rule input { width: 88px; max-width: 88px; }
.rules-preview { margin: 12px 0 0; font-size: 14px; color: var(--ink); font-weight: 500; }
.opt-own { font-size: 12px; color: var(--ink-soft); }

.viewtabs { display: flex; gap: 8px; margin-bottom: 16px; }
.viewtab {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(232, 238, 243, 0.08); border: 1px solid var(--rule-dark); color: var(--chalk-soft);
}
.viewtab[aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* -------------------------------------------------- league table --- */

.table-wrap { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); overflow: hidden; }

table.league { width: 100%; border-collapse: collapse; font-size: 15px; }

table.league thead th {
  font-family: var(--cond); font-weight: 600; font-size: 15px;
  text-align: right; padding: 11px 8px; border-bottom: 2px solid var(--ink);
  white-space: nowrap; color: var(--ink);
}
table.league thead th.col-pos { text-align: left; padding-left: 16px; width: 46px; }
table.league thead th.col-team { text-align: left; width: auto; }
table.league thead th.col-pts { padding-right: 16px; }

table.league tbody td {
  padding: 9px 8px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap;
}
table.league tbody tr:last-child td { border-bottom: 0; }
table.league tbody tr:nth-child(even) { background: rgba(22, 34, 46, 0.028); }

/* these need to beat `table.league tbody td` above, so they carry the same prefix */
table.league tbody td.col-pos { text-align: left; padding-left: 16px; color: var(--ink-soft); width: 1%; }
table.league tbody td.col-team { text-align: left; font-weight: 500; white-space: normal; width: auto; }
.clinch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; margin-left: 6px;
  font-family: var(--sans); font-size: 10px; font-weight: 600; line-height: 1;
  color: #fff; vertical-align: middle;
}
/* Both greens, because both are good news, and the champions' is the darker,
   heavier one so a C and a P are told apart without reading them. */
.clinch-c { background: var(--grass-dark); box-shadow: 0 0 0 2px rgba(31, 138, 76, 0.28); }
.clinch-p { background: var(--grass); }
.clinch-r { background: var(--danger); }

/* What the letters mean, under the table that shows them. */
.clinch-key {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 8px 0 0; padding: 0;
  font-size: 13.5px; color: var(--ink-soft);
}
.clinch-key-item { display: inline-flex; align-items: center; gap: 2px; }
.clinch-key-item .clinch { margin-left: 0; margin-right: 6px; }
table.league tbody td.col-pts { font-weight: 600; padding-right: 12px; font-size: 16px; }
table.league tbody td.col-gd { color: var(--ink-soft); }

table.league tbody tr.leader td.col-pos { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--floodlight); }
table.league tbody tr.unplayed-all td { color: var(--ink-soft); }

/* form guide: last six results, newest on the right */
table.league thead th.col-form { text-align: right; }
table.league tbody td.col-form { text-align: right; padding-right: 16px; white-space: nowrap; }
.form-guide { display: inline-flex; gap: 2px; vertical-align: middle; }
.form-box {
  width: 14px; height: 14px; border-radius: 3px;
  font-family: var(--sans); font-size: 10px; font-weight: 600; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; letter-spacing: 0;
}
.form-w { background: var(--grass); }
.form-d { background: #6E7A84; }
.form-l { background: var(--danger); }

/* compact variant used by the example table on the home page */
table.league.is-compact thead th, table.league.is-compact tbody td { padding-top: 8px; padding-bottom: 8px; }

.table-foot { padding: 12px 16px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-soft); }

/* qualification boundaries: a line between positions, never a filled row.
   Declared after the :last-child reset above so a boundary still shows. */
/* the team name takes the colour of the POSITION it currently occupies, so it
   changes as teams move; nothing else in the row is coloured */
table.league tbody td.col-team.zone-promotion  { color: var(--zone-promotion-text); }
table.league tbody td.col-team.zone-playoff    { color: var(--zone-playoff-text); }
table.league tbody td.col-team.zone-relegation { color: var(--zone-relegation-text); }

/* the two clubs in the selected fixture.
   A tint on the cells and nothing else: the P and R badges, the seed dots, the
   zone text colours and the boundary lines all paint over it untouched, and the
   team name itself is not restyled. Set on the cells rather than the row so it
   sits above the even-row shading without having to fight it. */
table.league tbody tr.is-selected td { background: var(--picked); }

table.league tbody tr.line-promotion td { border-bottom: 2px solid var(--grass); }
table.league tbody tr.line-playoff td { border-bottom: 2px solid var(--playoff); }
table.league tbody tr.line-relegation td { border-bottom: 2px solid var(--danger); }

.table-key {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--ink-soft);
}
.table-key .key { display: inline-flex; align-items: center; gap: 7px; }
.table-key .key::before { content: ''; width: 16px; height: 2px; border-radius: 2px; }
.table-key .key-promotion::before { background: var(--grass); }
.table-key .key-playoff::before { background: var(--playoff); }
.table-key .key-relegation::before { background: var(--danger); }

/* ----------------------------------------------------- fixtures --- */

.round-nav {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 14px 16px; border-bottom: 1px solid var(--rule);
}
.round-nav h3 { font-size: 21px; margin-right: auto; }
.round-nav select {
  width: auto; max-width: 260px;
  /* a narrower fixtures column would otherwise push Next onto a second line:
     give the selector a small basis so it fills whatever is left instead */
  flex: 1 1 108px; min-width: 108px;
}
.round-nav h3 { min-width: 0; }

.fixtures { background: var(--paper); color: var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 6px 0 10px; }

.fixture {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto minmax(0, 1fr) 36px;
  align-items: center; gap: 10px;
  padding: 9px 16px; border-bottom: 1px solid var(--rule);
}
.fixture:last-child { border-bottom: 0; }
/* the seed dot is a flex sibling of the name, so however the name wraps the
   dot stays beside it and can never drop onto a line of its own */
.fixture .home, .fixture .away { display: flex; align-items: center; gap: 6px; font-weight: 500; min-width: 0; }
.fixture .home { justify-content: flex-end; text-align: right; }
.fixture .away { justify-content: flex-start; text-align: left; }
.fixture .team-name { min-width: 0; }
.fixture .seed-dot { margin: 0; }
.fixture.is-played .home, .fixture.is-played .away { color: var(--ink); }
/* which fixture the table is currently showing — lighter than the table tint,
   since here it is confirming a choice rather than picking two rows out of many */
.fixture.is-selected { background: var(--picked-soft); }

.score-pair { display: flex; align-items: center; gap: 5px; }
.score-pair input {
  width: 46px; max-width: 46px; text-align: center; padding: 7px 4px;
  font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.score-pair input::-webkit-outer-spin-button,
.score-pair input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-pair input:placeholder-shown { border-style: dashed; border-color: #C6CBC2; }
.score-pair .dash { color: var(--ink-soft); }

.fixture-clear {
  border: 0; background: none; color: var(--ink-soft); cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%; font-size: 17px; line-height: 1;
}
.fixture-clear:hover { background: var(--danger); color: #fff; }
.fixture-clear[hidden] { display: none; }

.resting {
  padding: 10px 16px; font-size: 14px; color: var(--ink-soft);
  background: var(--paper-alt); border-bottom: 1px solid var(--rule);
}

/* --------------------------------------------------- teams list --- */

.teamlist { columns: 220px auto; column-gap: 26px; margin: 0; padding: 0; list-style: none; }
.teamlist li { padding: 5px 0; break-inside: avoid; border-bottom: 1px solid var(--rule); }
.teamlist .custom-flag { font-size: 12.5px; color: var(--ink-soft); margin-left: 6px; }

/* ------------------------------------------------------ dialog --- */

.dialog-backdrop {
  position: fixed; inset: 0; background: rgba(6, 16, 26, 0.72);
  display: grid; place-items: center; padding: 20px; z-index: 40;
}
.dialog-backdrop[hidden] { display: none; }
.dialog {
  background: var(--paper); color: var(--ink); border-radius: var(--r-lg);
  padding: 24px; max-width: 460px; width: 100%;
}
.dialog h2 { font-size: 23px; margin-bottom: 8px; }
.dialog p { font-size: 15px; color: var(--ink-soft); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 11px 20px;
  border-radius: 999px; font-size: 14.5px; font-weight: 500; z-index: 45;
  box-shadow: 0 8px 24px rgba(4, 14, 24, 0.4);
}
.toast[hidden] { display: none; }

/* ----------------------------------------------------- responsive --- */

/* below this the two columns get too cramped to type in, so stack them */
@media (max-width: 1000px) {
  .scorebook { grid-template-columns: 1fr; gap: 16px; }
  .scorebook-side { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 900px) {
  .hero { padding: 36px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { max-width: none; }
}

@media (max-width: 620px) {
  .shell { padding: 0 14px; }
  .topbar-inner { padding: 10px 14px; }
  .wordmark-text { font-size: 21px; }
  .panel { padding: 18px 15px; }
  .division-card { padding: 15px; }

  table.league { font-size: 14px; }
  table.league thead th, table.league tbody td { padding: 8px 5px; }
  table.league thead th.col-pos, table.league tbody td.col-pos { padding-left: 10px; }
  table.league thead th.col-pts, table.league tbody td.col-pts { padding-right: 10px; }
  /* drop the least load-bearing columns first */
  .col-w, .col-d, .col-l, .col-gf, .col-ga { display: none; }

  .fixture { grid-template-columns: 0 minmax(0,1fr) auto minmax(0,1fr) 28px; gap: 5px; padding: 9px 8px; font-size: 14.5px; }
  /* the tick needs a column of its own, which mobile otherwise collapses to nothing */
  .fixtures.is-picking .fixture { grid-template-columns: 26px minmax(0,1fr) auto minmax(0,1fr) 24px; }
  .score-pair input { width: 40px; max-width: 40px; }
  .picker-options { grid-template-columns: 1fr; }
  .division-strip { gap: 18px; }
}



/* --------------------------------------------- auto-generate bar --- */

/* A secondary tool: present when wanted, never competing with the fixtures.
   Closed it is one quiet button; open it grows two rows of controls. */
.autobar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--paper-alt); color: var(--ink);
  padding: 9px 16px; border-bottom: 1px solid var(--rule);
}
.autobar.is-open { display: block; background: #FFF8E3; }
.autobar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.autobar-row + .autobar-row { margin-top: 8px; }
.autobar-title { font-family: var(--cond); font-size: 18px; margin-right: auto; }
.autobar-note { font-size: 13px; color: var(--ink-soft); margin-right: auto; }
.autobar-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-soft); }

.auto-tick { display: flex; align-items: center; justify-content: center; }
.auto-tick-gap { display: block; }
.auto-check { width: 19px; height: 19px; margin: 0; cursor: pointer; accent-color: var(--grass); }

@media (max-width: 620px) {
  .autobar { padding: 9px 8px; }
  .autobar-title { font-size: 16.5px; }
  .auto-check { width: 22px; height: 22px; }
}

/* ------------------------------------------------- digital dice --- */

/* Unrolled, the die sits at a tilt and carries its own name (D4/D6/D8) rather
   than a number, so it cannot read as a score that has already been generated.
   Landing squares it up. */
.die {
  width: 40px; height: 40px; flex: none; padding: 0; cursor: pointer;
  border-radius: 9px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink);
  font-family: var(--cond); font-size: 17px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transform: rotate(-11deg);
  box-shadow: 2px 3px 0 rgba(22, 34, 46, 0.16);
  transition: transform 90ms ease, box-shadow 90ms ease, background 90ms ease;
}
.die .die-face { display: block; font-variant-numeric: tabular-nums; }
.die:hover { transform: rotate(-11deg) scale(1.06); background: #FFF8E3; }
.die:active { transform: rotate(-4deg) scale(0.97); box-shadow: 1px 1px 0 rgba(22, 34, 46, 0.16); }

.die.is-rolled {
  transform: rotate(0deg);
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  font-size: 20px;
  box-shadow: 2px 3px 0 rgba(22, 34, 46, 0.10);
}
.die.is-rolled:hover { transform: rotate(0deg) scale(1.04); background: var(--pitch-soft); }

/* the tumble: CSS does the motion, JS flickers the faces. No engine, no
   dependency, and it ends cleanly on the generated value. */
.die.is-rolling {
  animation: die-tumble 165ms linear infinite;
  background: var(--floodlight); border-color: #C79400; color: var(--ink);
  cursor: default;
}
@keyframes die-tumble {
  0%   { transform: rotate(-14deg) scale(1);    }
  25%  { transform: rotate(76deg)  scale(1.08); }
  50%  { transform: rotate(168deg) scale(0.96); }
  75%  { transform: rotate(262deg) scale(1.07); }
  100% { transform: rotate(346deg) scale(1);    }
}
.die.just-landed { animation: die-land 230ms ease-out 1; }
@keyframes die-land {
  0%   { transform: rotate(0deg) scale(1.22); }
  55%  { transform: rotate(0deg) scale(0.95); }
  100% { transform: rotate(0deg) scale(1);    }
}
.die[disabled] { opacity: 1; }

.score-pair-dice { gap: 8px; }
.fixture.is-dice { padding-top: 7px; padding-bottom: 7px; }

@media (prefers-reduced-motion: reduce) {
  .die.is-rolling { animation: none; background: var(--floodlight); }
  .die.just-landed { animation: none; }
}

@media (max-width: 620px) {
  .die { width: 36px; height: 36px; font-size: 15.5px; border-radius: 8px; }
  .die.is-rolled { font-size: 18px; }
  .score-pair-dice { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ====================================================== League Cup === */
/* Deliberately borrows the league's card, picker, chip and score-box
   styling. Only the things a knockout needs are new: the stage strip, the
   tie block, the aggregate line and the penalties button. */

.cup-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.cup-head h1 { font-size: 34px; }
.cup-sub { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
/* A cup created under an older entry format, kept as it was and labelled. */
.cup-sub-legacy { font-size: 13.5px; color: #B4690E; }
.cup-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cup-note { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.cup-note-on strong { color: var(--grass-dark); }
.cup-note-off strong { color: #B4690E; }
.cup-entering { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.cup-entering span { font-weight: 600; color: var(--ink); }

/* Round One byes — collapsed by default, so a competition that has them can
   show who they are at any stage without crowding the round being played. */
.cup-byes { padding: 16px 24px; }
.cup-byes > summary {
  cursor: pointer; font-size: 14.5px; color: var(--ink-soft);
  list-style-position: outside; padding: 2px 0;
}
.cup-byes > summary strong { color: var(--ink); }
.cup-byes[open] > summary { margin-bottom: 12px; }
.cup-byes .cup-entering { margin-bottom: 0; }

.cup-stages {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 18px; padding: 0;
}
.cup-stage {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--cond); font-size: 16px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: var(--paper-alt); color: var(--ink-soft);
}
.cup-stage em { font-style: normal; font-size: 13px; opacity: 0.75; }
.cup-stage-now { background: var(--grass); color: #fff; }
.cup-stage-done { background: #E2EFE6; color: var(--grass-dark); }

/* Said to a screen reader, never shown. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.cup-champion {
  position: relative; overflow: hidden;
  /* Deep enough that the trophy and the name sit in the middle of it rather
     than filling it edge to edge, and symmetric so the block is exactly
     centred rather than nearly. */
  padding: 32px 22px; margin-bottom: 18px;
  border-radius: var(--r-md); background: var(--grass); color: #fff;
}
/* The champion sits above both decorative layers and is never overlapped.
   A column, centred both ways: trophy above, name below, and nothing else
   competing with either. */
.cup-champion-text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  /* keeps the club name legible for the couple of seconds a pale fleck may
     pass behind it */
  text-shadow: 0 2px 6px rgba(12, 29, 44, 0.5);
}

/* The trophy supports the name: always comfortably smaller than it, and in the
   floodlight amber used everywhere else for attention. */
.cup-trophy {
  width: clamp(30px, 4.6vw, 44px); height: auto;
  color: var(--floodlight);
  filter: drop-shadow(0 2px 5px rgba(12, 29, 44, 0.45));
  flex: none;
}

/* The dominant element on the screen. `clamp` keeps a 28-character club name
   inside a 360px phone without shrinking a short one on a desktop, and
   `balance` splits a long name across two even lines rather than leaving one
   word stranded. */
.cup-champion strong {
  font-family: var(--cond); font-weight: 700;
  font-size: clamp(34px, 6.6vw, 68px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  max-width: 18ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* --- the keepsake trim: static, always there once a cup is won ----------- */
.cup-champion-trim, .cup-champion-burst {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
}
.cup-champion-trim .fleck {
  position: absolute; display: block; width: 7px; height: 9px; border-radius: 1px;
  opacity: 0.55;
}
.fleck-gold  { background: var(--floodlight); }
.fleck-chalk { background: #FFFFFF; opacity: 0.4; }
.fleck-ribbon {
  width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--floodlight), rgba(255, 255, 255, 0.55));
  opacity: 0.4;
}

/* --- the one-off burst: about 3.5 seconds, then the stage is emptied ----- */
.cup-champion-burst .piece {
  position: absolute; display: block;
  width: var(--w); height: var(--h); border-radius: 1px;
  opacity: 0;
  animation: champion-fall var(--dur) cubic-bezier(0.25, 0.7, 0.4, 1) var(--delay) 1 both;
}
.cup-champion-burst .piece-ribbon { border-radius: 4px; }
.piece-gold        { background: var(--floodlight); }
.piece-chalk       { background: #FFFFFF; }
.piece-grass-light { background: #7CD3A0; }
.piece-ribbon      { background: linear-gradient(180deg, #FFFFFF, var(--floodlight)); }

@keyframes champion-fall {
  0%   { opacity: 0; transform: translate3d(0, -14px, 0) rotate(0deg) scale(0.7); }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--spin)) scale(1);
  }
}

.piece-sky         { background: #6FC3F0; }
.piece-flame       { background: #F2704B; }

/* --- the champion's name gets its moment ---------------------------------
   A single pop on the banner, and one sweep of light across it. Both are
   one-shot: the class is taken off when the celebration ends and the banner
   settles back to its keepsake state. */
.cup-champion.is-celebrating {
  animation: champion-pop 900ms cubic-bezier(0.2, 1.3, 0.4, 1) 1 both;
  box-shadow: 0 0 0 2px var(--floodlight), 0 12px 34px rgba(242, 183, 5, 0.32);
}
.cup-champion.is-celebrating .cup-champion-text {
  animation: champion-name 1100ms cubic-bezier(0.2, 1.2, 0.35, 1) 1 both;
}
.cup-champion.is-celebrating::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg,
    transparent 38%, rgba(255, 255, 255, 0.42) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: champion-sheen 1500ms ease-in-out 380ms 2 both;
}

/* Reduced motion, and the state a finished banner holds: no movement at all,
   just a brighter, clearly-marked champion. */
.cup-champion.is-crowned {
  box-shadow: 0 0 0 2px var(--floodlight), 0 8px 22px rgba(12, 29, 44, 0.3);
}

@keyframes champion-pop {
  0%   { transform: scale(0.97); }
  55%  { transform: scale(1.022); }
  100% { transform: scale(1); }
}
/* transform and opacity only — nothing here forces a layout pass. */
@keyframes champion-name {
  0%   { transform: scale(0.74); opacity: 0.15; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes champion-sheen {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* =========================================================================
   The full-window celebration.

   Fixed over everything, but takes no pointer events and is REMOVED from the
   document when it finishes, so once it is over there is nothing in front of
   the interface and nothing still animating. Everything below animates only
   transform and opacity, which is what keeps it cheap on a phone.
   ====================================================================== */
.champion-show {
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.cs-layer { position: absolute; inset: 0; }

/* --- confetti and streamers, falling the whole height of the window ------ */
.cs-fall-piece {
  position: absolute; top: -12vh; display: block;
  width: var(--w); height: var(--h); border-radius: 1px;
  opacity: 0;
  will-change: transform, opacity;
  animation: cs-fall var(--dur) linear var(--delay) 1 both;
}
.cs-streamer { border-radius: 4px; animation-timing-function: ease-in-out; }

.cs-gold        { background: var(--floodlight); }
.cs-chalk       { background: #FFFFFF; }
.cs-grass-light { background: #7CD3A0; }
.cs-ribbon      { background: linear-gradient(180deg, #FFFFFF, var(--floodlight)); }
.cs-sky         { background: #6FC3F0; }
.cs-flame       { background: #F2704B; }

@keyframes cs-fall {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  6%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--spin)); }
}

/* --- fireworks ----------------------------------------------------------- */
.cs-shell { position: absolute; display: block; width: 0; height: 0; }
.cs-flash {
  position: absolute; left: -26px; top: -26px;
  display: block; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  opacity: 0;
  animation: cs-flash 620ms ease-out var(--delay) 1 both;
}
.cs-spark {
  position: absolute; left: 0; top: 0;
  display: block; width: 7px; height: 7px; border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  animation: cs-spark var(--dur) cubic-bezier(0.12, 0.72, 0.3, 1) var(--delay) 1 both;
}
/* The shell carries the colour so one declaration paints all of its sparks. */
.cs-fw-gold        .cs-spark { background: var(--floodlight); box-shadow: 0 0 12px 2px rgba(242, 183, 5, 0.85); }
.cs-fw-sky         .cs-spark { background: #6FC3F0; box-shadow: 0 0 12px 2px rgba(111, 195, 240, 0.85); }
.cs-fw-flame       .cs-spark { background: #F2704B; box-shadow: 0 0 12px 2px rgba(242, 112, 75, 0.85); }
.cs-fw-chalk       .cs-spark { background: #FFFFFF; box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.85); }
.cs-fw-grass-light .cs-spark { background: #7CD3A0; box-shadow: 0 0 12px 2px rgba(124, 211, 160, 0.85); }

@keyframes cs-flash {
  0%   { opacity: 0; transform: scale(0.2); }
  25%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); }
}
@keyframes cs-spark {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(0.4); }
  8%   { opacity: 1; }
  70%  { opacity: 1; transform: translate3d(var(--dx), var(--dy), 0) scale(1); }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), calc(var(--dy) + var(--drop)), 0) scale(0.35);
  }
}

/* Reduced motion: the static trim and the held champion state are the whole
   celebration. No overlay is built in the first place — this is the
   belt-and-braces, in case one is ever on screen when the setting changes. */
@media (prefers-reduced-motion: reduce) {
  .cup-champion-burst { display: none; }
  .cup-champion-burst .piece { animation: none; opacity: 0; }
  .champion-show { display: none; }
  .champion-show .cs-fall-piece,
  .champion-show .cs-spark,
  .champion-show .cs-flash { animation: none; opacity: 0; }
  .cup-champion.is-celebrating,
  .cup-champion.is-celebrating .cup-champion-text { animation: none; }
  .cup-champion.is-celebrating::after { content: none; }
}

/* --- automatic fixture seeding: the post-draw question and review ------- */
.scoring-auto { margin-top: 12px; }

.seed-prompt-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px;
}

.seed-rows {
  display: flex; flex-direction: column; gap: 8px;
  margin: 14px 0 4px;
}
.seed-row {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: 1fr auto 1fr auto;
  padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--paper);
}
.seed-row-edited { border-color: var(--floodlight); background: var(--picked-soft); }
.seed-row-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.seed-row-team:last-of-type { flex-direction: row-reverse; }
.seed-row-name {
  font-weight: 600; font-size: 15px; line-height: 1.3;
  overflow-wrap: anywhere; min-width: 0;
}
.seed-row-v {
  font-family: var(--cond); text-transform: uppercase; font-size: 13px;
  color: var(--ink-soft); flex: none;
}
.seed-row .seed-pick { flex: none; }
.seed-row-reset { min-width: 62px; text-align: right; }

@media (max-width: 720px) {
  .seed-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "home reset" "v v" "away reset2";
    gap: 6px 10px;
  }
  .seed-row-team:first-of-type { grid-area: home; }
  .seed-row-v { grid-area: v; }
  .seed-row-team:last-of-type { grid-area: away; flex-direction: row; }
  .seed-row-reset { grid-area: reset; align-self: start; }
}

.cup-round-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cup-progress { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.cup-section {
  font-family: var(--cond); font-size: 19px; font-weight: 600;
  margin: 20px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--rule);
}
.cup-ties { display: grid; gap: 10px; }

.tie { padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-sm); }
.tie-done { background: var(--paper-alt); }
.tie-bye { color: var(--ink-soft); }
.tie-bye p { margin: 0; font-size: 15px; }
.tie-agg { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.tie-through { margin: 6px 0 0; font-size: 14.5px; color: var(--grass-dark); }
/* The final says something different: nobody goes through from it. Given a
   little more weight than an ordinary round's line, but deliberately not
   competing with the banner above it. */
.tie-champions { font-size: 16px; font-weight: 600; }
.tie-champions strong { font-weight: 700; }
.tie-pens { margin-top: 8px; }
.tie-pens-result { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; }
.btn-pens { background: #B4690E; border-color: #B4690E; color: #fff; }
.btn-pens:hover { background: #96580B; border-color: #96580B; }

.cup-fixture {
  display: grid; grid-template-columns: 1fr auto 1fr auto;
  align-items: center; gap: 10px; padding: 4px 0;
}
.cup-fixture + .cup-fixture { border-top: 1px dashed var(--rule); margin-top: 6px; padding-top: 10px; }
.cup-fixture .leg-label {
  grid-column: 1 / -1; font-size: 12.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft);
}
.cup-fixture .team-home { text-align: right; }
.cup-fixture .team-away { text-align: left; }

.cup-next { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.cup-draw-card h2 { margin-bottom: 8px; }

/* On a phone the three-column tie squeezes club names into three-line
   columns. Stack it instead: home, score, away, each on its own line. */
@media (max-width: 560px) {
  .cup-fixture {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "leg   leg"
      "home  home"
      "score clear"
      "away  away";
    gap: 2px 10px; padding: 8px 0;
  }
  .cup-fixture .leg-label { grid-area: leg; }
  .cup-fixture .team-home { grid-area: home; text-align: left; font-weight: 600; }
  .cup-fixture .score-pair { grid-area: score; justify-self: start; margin: 4px 0; }
  .cup-fixture .team-away { grid-area: away; text-align: left; font-weight: 600; }
  .cup-fixture .btn-clear { grid-area: clear; justify-self: end; align-self: center; }
  .cup-head h1 { font-size: 28px; }
}

/* Cup ratings sit inside the entrant row, using the league's own seed buttons. */
/* The rating buttons sit BESIDE the label, never inside it: a button inside a
   <label> toggles the checkbox, which would untick the club being rated. */
.opt-cup { justify-content: space-between; gap: 10px; }
.opt-cup .opt-label { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; cursor: pointer; }
.opt-cup .seed-pick { margin-left: auto; flex: 0 0 auto; }
.seed-counts { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.cup-scoring { margin-bottom: 20px; }
.cup-roll-all { margin-top: 16px; }
/* The same bar the league puts under its fixtures, sat inside the cup's panel:
   rounded and inset rather than a full-width strip with a rule under it. */
.cup-autobar {
  margin-top: 16px; border-bottom: 0; border-radius: var(--r-sm);
  padding: 10px 14px;
}
.cup-fixture .score-pair-dice { display: inline-flex; align-items: center; gap: 8px; }

/* =========================================================================
   Promotion play-offs and the season end
   ====================================================================== */

/* The one control on the setup screen that is a choice rather than a number. */
.rule-choice { display: flex; flex-direction: column; gap: 5px; }
.rule-choice > span { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.rule-note { font-size: 13px; color: var(--ink-soft); }

/* What a finished division offers next, under the fixture counts. */
.season-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 16px;
}
.season-bar-label {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 13.5px; color: var(--floodlight);
}

/* ------------------------------------------- the shared play-off stage ---
 *
 * Every division that has a play-off appears on one page, one section each, in
 * league order. Only one is live at a time; the ones above it are finished and
 * folded away, the ones below are waiting. The three states have to be
 * distinguishable at a glance without reading a word, so each gets its own left
 * edge: orange for the one being played, green for settled, grey for waiting.
 */
.playoff-stage { display: grid; gap: 16px; }

.playoff-section { border-left: 4px solid var(--rule); }
.playoff-section.is-live    { border-left-color: var(--playoff); }
.playoff-section.is-done    { border-left-color: var(--zone-promotion-text); }
.playoff-section.is-waiting { opacity: 0.72; }

.playoff-head { margin-bottom: 12px; }
.playoff-head h2 {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(18px, 2.4vw, 23px); margin: 0 0 4px;
}
.playoff-head .explain { margin: 0; }

.playoff-wait {
  font-style: italic; color: var(--ink-soft); margin: 0;
}

/* A settled division folds to a single line: who went up, and nothing else
   until it is opened. The summary marker stays, so it is obviously openable. */
.playoff-section.is-done > summary {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  cursor: pointer; list-style: revert;
}
.playoff-done-name {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(16px, 2.1vw, 20px);
}
.playoff-done-winner { font-size: 15px; color: var(--ink-soft); }
.playoff-done-winner strong { color: var(--zone-promotion-text); }
.playoff-section.is-done[open] > summary { margin-bottom: 14px; }

.playoff-final-table { margin-top: 14px; }
.playoff-final-table .setting-head { margin: 0 0 8px; }

@media (max-width: 640px) {
  .playoff-section { border-left-width: 3px; }
  .playoff-section.is-done > summary { gap: 4px; }
  .playoff-done-winner { flex-basis: 100%; }
}

/* The play-off qualifiers, in the order they finished. */
.playoff-seeds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.playoff-seeds li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--ink);
}
.playoff-pos {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px; padding: 0 6px; border-radius: 4px;
  background: var(--paper-alt); color: var(--ink-soft);
  font-size: 13px; font-weight: 600;
}

/* Promotion, not a championship: the same banner, one word different. The
   trophy is replaced by a rising chevron and the verdict is spoken aloud. */
.cup-trophy-promoted { width: clamp(28px, 4.2vw, 40px); }
.cup-champion-verdict {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.13em;
  font-size: clamp(15px, 1.8vw, 21px); font-weight: 600;
  color: var(--floodlight);
  margin-top: 2px;
}

.season-next { text-align: center; }
.season-next .cup-note { margin-bottom: 14px; }

/* --- the summary ------------------------------------------------------- */

.season-end .page-head p { max-width: 72ch; }
.season-block { padding-top: 20px; }
.season-head {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 22px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--rule);
}
.season-head-up        { color: var(--zone-promotion-text); border-bottom-color: #BFE3CD; }
.season-head-down      { color: var(--zone-relegation-text); border-bottom-color: #F0C8C3; }
.season-head-champions { color: var(--zone-playoff-text); border-bottom-color: #F3DCA8; }
.season-head-table     { color: var(--ink-soft); }

/* --- one division's section of the single scrolling page ---------------- */

/* Enough space above each division that a new one is obviously a new one,
   with a rule across the page to close the one before it. The page itself is
   the only thing that scrolls: nothing here has its own scrollbar. */
.season-division { margin-bottom: 14px; padding-top: 8px; }
.season-division + .season-division {
  margin-top: 26px; padding-top: 30px; border-top: 2px solid var(--rule-dark);
}
.season-division-head { margin-bottom: 16px; }
.season-division-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--chalk);
}
.season-division-meta { margin: 4px 0 0; color: var(--chalk-soft); font-size: 14.5px; }

.season-via-champion { background: #FBEBC4; color: var(--zone-playoff-text); }
.season-row-champion .season-name { font-size: 17px; }

.season-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.season-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--r-sm); background: var(--paper-alt);
}
.season-pos {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; border-radius: 4px; background: #fff; color: var(--ink-soft);
  font-size: 13px; font-weight: 600;
}
.season-name { font-weight: 600; color: var(--ink); overflow-wrap: break-word; }
.season-via {
  font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px;
}
.season-via-automatic { background: #DCF0E4; color: var(--zone-promotion-text); }
.season-via-playoff   { background: #FBEBC4; color: var(--zone-playoff-text); }
.season-via-relegated { background: #F7DDD9; color: var(--zone-relegation-text); }

@media (max-width: 560px) {
  .season-row { grid-template-columns: 30px minmax(0, 1fr); }
  .season-via { grid-column: 2; justify-self: start; }
}

/* =========================================================================
   The website shell: the One-Off Season area and the placeholder sections
   ====================================================================== */

/* A card that takes you somewhere. Paper, like every other readable surface in
   DiceFooty, so the pitch shows around it rather than through it. */
.choice-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 8px;
}
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left; width: 100%;
  background: var(--paper); color: var(--ink);
  border: 1px solid transparent; border-radius: var(--r-lg);
  padding: 20px 22px; cursor: pointer;
  font-family: var(--sans);
  /* comfortably past the 44px touch target at every width */
  min-height: 96px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.choice:hover {
  transform: translateY(-2px);
  border-color: var(--grass);
  box-shadow: 0 10px 26px rgba(4, 20, 12, 0.32);
}
.choice-name {
  font-family: var(--cond); font-size: 24px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05;
}
.choice-note { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

/* The one prominent route: a full-width card, turf green rather than paper. */
.choice-lead {
  background: var(--grass); color: #fff;
  padding: 28px 30px; min-height: 0;
}
.choice-lead:hover { background: var(--grass-dark); border-color: var(--floodlight); }
.choice-lead .choice-name { font-size: clamp(28px, 4vw, 40px); }
.choice-lead .choice-note { color: rgba(255, 255, 255, 0.88); max-width: 62ch; font-size: 15.5px; }
.choice-lead .choice-go {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 14px; color: var(--floodlight); margin-top: 6px;
}

/* A block of the shell: a heading on the green, then its cards. */
.shell-block { margin-bottom: 34px; }
.shell-block-head { margin-bottom: 14px; }
.shell-block-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--chalk);
}
.shell-block-head p { margin: 4px 0 0; color: var(--chalk-soft); font-size: 15px; max-width: 64ch; }

/* Continue playing — the saved games, kept exactly where the player can find
   them while the full My Games section is still to come. */
.resume-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.resume-card { border-left: 4px solid var(--floodlight); }
.resume-kind {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 12.5px; color: var(--zone-playoff-text);
}
.shell-empty {
  color: var(--chalk-soft); font-size: 15px;
  border: 1px dashed var(--rule-dark); border-radius: var(--r-lg);
  padding: 18px 20px;
}

/* A section that is in the navigation but not yet in the product. */
.soon { padding: 60px 0 40px; max-width: 62ch; }
.soon h1 {
  font-size: clamp(32px, 5vw, 52px);
  text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 10px;
}
.soon-badge {
  display: inline-block;
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 13px; font-weight: 600;
  background: var(--floodlight); color: var(--ink);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.soon p { color: var(--chalk-soft); font-size: 17px; }
.soon .btn { margin-top: 12px; }

@media (max-width: 560px) {
  .choice { padding: 18px; min-height: 84px; }
  .choice-lead { padding: 22px; }
}

/* ===================================================================== */
/* Combined Season                                                       */
/* ===================================================================== */

/* The controller screen. Deliberately quiet: it is a signpost between two
   competition screens that already have plenty going on, so it carries one
   strong statement — what you are playing now — and gets out of the way. */

.season-head { align-items: flex-start; }

.season-now { padding: 0; overflow: hidden; }
.season-now-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--rule);
}
.season-slot { padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; }
.season-slot + .season-slot { border-left: 1px solid var(--rule); }
.season-slot-current { background: var(--picked); }
.season-slot-head {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 12px; color: var(--ink-soft);
}
.season-slot-name { font-family: var(--cond); font-size: 24px; line-height: 1.15; }
.season-slot-note { font-size: 13.5px; color: var(--ink-soft); }
.season-now .hero-cta { padding: 18px 20px 4px; }
.season-progress {
  margin: 0; padding: 0 20px 18px; font-size: 13px; color: var(--ink-soft);
}

.season-done-panel .season-honours { margin-top: 4px; }

.season-honours { list-style: none; margin: 0 0 18px; padding: 0; }
.season-honours li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px;
}
.season-honours li:last-child { border-bottom: 0; }
.season-honours b { font-family: var(--cond); font-size: 19px; }

.season-cuprow {
  display: grid; gap: 12px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.season-cupcard {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
}
.season-cupcard-name { font-family: var(--cond); font-size: 18px; }
.season-cupcard-note { font-size: 13px; color: var(--ink-soft); }

/* These buttons sit straight on the pitch rather than on a panel, so the
   on-paper style would be dark ink on dark grass. They carry their own paper. */
.season-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.season-jump .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.season-jump .btn:hover { background: #fff; border-color: #fff; }

.season-calendar summary { cursor: pointer; }
.season-events {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.season-event {
  display: flex; gap: 10px; align-items: baseline; padding: 7px 10px;
  border: 1px solid var(--rule); border-radius: 8px; font-size: 13.5px;
}
.season-event-kind {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 11.5px; color: var(--ink-soft); white-space: nowrap;
}
.season-event-name { font-weight: 600; }
.season-event-done { opacity: 0.55; }
.season-event-now { border-color: var(--floodlight); background: var(--picked); }

/* The strip that appears at the top of a league round or a cup round to say
   where that round sits in the season. One component, both screens. */
.season-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px;
}
.season-strip-label {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 12px; color: var(--ink-soft);
}
.season-strip-note { font-size: 13.5px; color: var(--ink-soft); margin-right: auto; }
.season-strip-ready { border-color: var(--floodlight); background: #FFF8E3; }
.season-strip-waiting { border-style: dashed; }
.season-strip-done { border-color: var(--grass); }

/* The cup tick-boxes on the setup screen. */
.cupchoice-list { display: grid; gap: 10px; margin: 10px 0 12px; }
.cupchoice-item {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start;
  border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px;
  cursor: pointer; background: #fff;
}
.cupchoice-item.is-on { border-color: var(--grass); background: #F4FBF6; }
.cupchoice-item input { grid-row: span 3; width: 22px; height: 22px; margin-top: 4px; }
.cupchoice-name { font-family: var(--cond); font-size: 21px; }
.cupchoice-item input:disabled { cursor: not-allowed; }
.cupchoice-item:has(input:disabled) { cursor: default; opacity: 0.75; }

/* ------------------------------------------------------- the play method --- */

/* Always on screen, never in the way. It sits directly above the fixtures it
   governs, on both the league list and a cup round, and looks the same in both
   because it IS the same control. */
.playmethod {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 0 0 12px; padding: 9px 12px;
  background: var(--paper-alt); border: 1px solid var(--rule); border-radius: 10px;
}
.playmethod-label {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 12px; color: var(--ink-soft);
}
.playmethod-hint { font-size: 12.5px; color: var(--ink-soft); flex: 1 1 220px; }
.cup .playmethod { margin-top: 4px; }

@media (max-width: 640px) {
  .season-now-grid { grid-template-columns: 1fr; }
  .season-slot + .season-slot { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ------------------------------------------------ the unreadable save --- */

/* The one screen nobody wants to see, so it is written to be read: a single
   calm panel, the explanation before the buttons, and the destructive choice
   last and visibly different from the other two. */
.recovery { padding-top: 28px; }
.recovery-panel { max-width: 640px; margin: 0 auto; padding: 22px 22px 20px; }
.recovery-flag {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 12px; color: var(--grass-dark); margin: 0 0 6px;
}
.recovery-panel h1 { font-size: clamp(22px, 4.6vw, 30px); line-height: 1.15; margin: 0 0 14px; }
.recovery-detail { margin: 0 0 12px; color: var(--ink); }
.recovery-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0 12px;
}
.recovery-actions .btn { flex: 0 1 auto; min-height: 44px; }
.recovery-small { font-size: 13px; color: var(--ink-soft); margin: 0; }

@media (max-width: 520px) {
  .recovery-actions { flex-direction: column; align-items: stretch; }
}

/* ------------------------------------------------------- cup entry step --- */

/* One club, its division, and where it comes into each cup. Stacked rather
   than tabulated: a table of four cups against ninety clubs is unreadable on a
   phone, and this is the same information in the order it is actually read. */
.cupentry { display: block; }
.entry-tools { margin: 10px 0 8px; }
.entry-search, .entry-cand-search {
  width: 100%; padding: 9px 11px; font: inherit; font-size: 15px;
  border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--paper);
  color: var(--ink);
}
.entry-list, .entry-candidates {
  max-height: 420px; overflow-y: auto;
  border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--paper);
}
.entry-club { padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.entry-club:last-child { border-bottom: 0; }
.entry-club-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px;
}
.entry-division {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 12px; color: var(--ink-soft);
}
.entry-cup {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 5px 0;
}
.entry-cup-name { font-size: 13.5px; color: var(--ink-soft); flex: 0 0 auto; }
.entry-cup-stage { font-size: 14px; font-weight: 600; flex: 1 1 120px; }
.entry-cup-stage.is-out { font-weight: 400; color: var(--ink-soft); font-style: italic; }
.entry-cup .btn { min-height: 34px; }

.entry-made {
  margin: 10px 0; padding: 10px 12px;
  background: var(--picked-soft); border: 1px solid var(--rule); border-radius: var(--r-sm);
}
.entry-made-head { margin: 0 0 8px; font-size: 14px; }
.entry-made-row {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start;
  padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14px;
}
.entry-made-row > div { flex: 1 1 260px; }
.entry-made-note { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }

.entry-picker {
  margin-top: 10px; padding: 14px 14px 16px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
}
.entry-picker-head {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline;
  justify-content: space-between; margin-bottom: 6px;
}
.entry-picker-head h3 { margin: 0; font-size: clamp(17px, 3.2vw, 21px); }
.entry-stages { margin-bottom: 10px; }
.entry-candidate {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 12px; min-height: 44px;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  font: inherit; font-size: 14.5px; text-align: left; color: var(--ink); cursor: pointer;
}
.entry-candidate:last-child { border-bottom: 0; }
.entry-candidate:hover { background: var(--paper-alt); }
.entry-tag {
  flex: 0 0 auto; font-family: var(--cond); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 11.5px; color: var(--danger);
}
.entry-tag.is-mine { color: var(--ink-soft); }

.entry-confirm { margin: 10px 0 0; }
.entry-confirm > div {
  display: flex; flex-wrap: wrap; gap: 2px 12px;
  padding: 7px 0; border-top: 1px solid var(--rule);
}
.entry-confirm dt {
  flex: 0 0 150px; font-family: var(--cond); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 12px; color: var(--ink-soft);
}
.entry-confirm dd { flex: 1 1 200px; margin: 0; font-size: 14.5px; }
.entry-picker-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.entry-picker-actions .btn { min-height: 44px; }

@media (max-width: 520px) {
  .entry-confirm dt { flex-basis: 100%; }
  .entry-picker-actions { flex-direction: column; align-items: stretch; }
}

/* ------------------------------------------------- invited clubs picker --- */

.invitepanel { display: block; }
.invite-selected { margin: 8px 0 4px; font-size: 14.5px; }
.invite-head {
  margin: 12px 0 8px; padding: 9px 12px;
  background: var(--picked-soft); border: 1px solid var(--rule); border-radius: var(--r-sm);
}
.invite-head strong { display: block; font-size: 15px; margin-bottom: 2px; }

.invite-country { margin: 0 0 12px; }
.invite-country-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 10px; margin-bottom: 6px;
}
.invite-count {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 12px; color: var(--ink-soft);
}
.invite-count.is-full { color: var(--grass-dark); font-weight: 600; }
.invite-search {
  width: 100%; padding: 9px 11px; font: inherit; font-size: 15px;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
}
.invite-list {
  margin-top: 6px; max-height: 230px; overflow-y: auto;
  border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--paper);
}
.invite-option {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 12px; min-height: 44px;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  font: inherit; font-size: 14.5px; text-align: left; color: var(--ink); cursor: pointer;
}
.invite-option:last-child { border-bottom: 0; }
.invite-option:hover:not([disabled]) { background: var(--paper-alt); }
.invite-option.is-on { background: var(--picked); font-weight: 600; }
.invite-option[disabled] { opacity: 0.4; cursor: not-allowed; }
.invite-league { font-size: 12.5px; color: var(--ink-soft); flex: 0 0 auto; }

/* ------------------------------------------------------- Super Seeds --- */

/* Purple: one step above green. Colour is never the only signal — the swatch
   carries a P, exactly as green/amber/red carry S/N/W. */
:root { --super: #6B3FA0; --super-soft: rgba(107, 63, 160, 0.14); }

.seed-purple { background: var(--super); color: #fff; }

.superpanel { display: block; }
.super-question { margin: 10px 0 6px; font-size: 15px; }
.super-count { margin: 12px 0 4px; }
.super-head {
  margin: 12px 0 8px; padding: 9px 12px;
  background: var(--super-soft); border: 1px solid var(--rule); border-radius: var(--r-sm);
}
.super-head strong { display: block; font-size: 15px; margin-bottom: 2px; }
.super-chosen { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.super-pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--super); color: #fff; font-size: 13px; font-weight: 600;
}
.invite-option.is-super { background: var(--super-soft); }
.invite-option.is-super .invite-league { color: var(--super); font-weight: 600; }

/* --------------------------------------------------------- quick setup --- */

.quicksetup { display: block; }
.quick-rows {
  margin: 12px 0 10px;
  border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--paper);
}
.quick-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 10px 12px; border-bottom: 1px solid var(--rule);
}
.quick-row:last-child { border-bottom: 0; }
/* The row is named with the division's own generic name; the real-life
   division it draws from is said beside it, as information rather than a
   label. */
.quick-name { flex: 1 1 160px; font-weight: 600; font-size: 16px; }
.quick-real {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 12px; color: var(--ink-soft); flex: 0 1 auto;
}
.quick-size { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.quick-step {
  width: 44px; height: 44px; font-size: 20px; line-height: 1;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.quick-step:hover:not([disabled]) { background: var(--paper-alt); }
.quick-step[disabled] { opacity: 0.35; cursor: not-allowed; }
.quick-count { min-width: 2.5ch; text-align: center; font-size: 17px; font-weight: 600; }
.quick-total { margin: 0 0 8px; font-size: 14.5px; }
.quick-total.is-over { color: var(--danger); font-weight: 600; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.quick-actions .btn { min-height: 44px; }
.quick-actions .seeding-hint { flex: 1 1 240px; }

@media (max-width: 520px) {
  .quick-name { flex-basis: 100%; }
  .quick-real { flex-basis: 100%; }
  .quick-size { margin-left: auto; }
}

/* ======================================================================
   The season week — one scrolling page
   ----------------------------------------------------------------------
   A week of a Combined Season, whole: every division of a matchday and
   every cup round the calendar put in it, stacked down one page instead of
   hidden behind division tabs. The parts inside a section are the ones the
   play screen and the cup screen already use, so almost everything here is
   layout: how the sections sit, and how they fold on a phone.
   ====================================================================== */

.week-title { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.08; }
.week-head { align-items: flex-start; }

/* --- browsing the season, week by week --- */
.week-nav {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 14px;
}
.week-nav .week-arrow { min-height: 44px; }
.week-nav .week-arrow[disabled] { opacity: 0.4; cursor: not-allowed; }
.week-jump {
  flex: 1 1 200px; min-width: 0; min-height: 44px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: 8px 10px;
}
.week-sections + .week-nav { margin: 16px 0 0; }
/* The forward control is the page's main action, so it takes the site's
   yellow and sits at the end of the row at both ends of the page. */
.week-forward { margin-left: auto; font-weight: 600; }
.week-nav .week-forward[disabled] { opacity: 1; }

/* --- the whole-week summary --- */
.week-summary { margin-bottom: 18px; }
.week-summary-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.week-summary-head h2 { font-size: 22px; margin: 0; }
.week-tag {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--rule);
  color: var(--ink-soft); white-space: nowrap;
}
.week-tag-now { border-color: var(--floodlight); background: #FFF8E3; color: var(--ink); }
.week-tag-past { border-color: var(--grass); color: var(--zone-promotion-text); }
.week-tag-locked { border-style: dashed; }

.week-counts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.week-count { font-size: 15px; color: var(--ink-soft); }
.week-count b { font-size: 22px; font-family: var(--cond); color: var(--ink); margin-right: 4px; }
.week-count-open b { color: var(--playoff); }

.week-chips { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.week-chip-row {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  border-top: 1px solid var(--rule); padding-top: 6px; font-size: 14.5px;
}
.week-chip-row:first-child { border-top: 0; padding-top: 0; }
.week-chip {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--rule); color: var(--ink-soft);
}
.week-chip-done { border-color: var(--grass); background: #F4FBF6; color: var(--zone-promotion-text); }
.week-chip-open { border-color: var(--playoff); background: #FFF4E8; color: var(--zone-playoff-text); }

.week-blockers { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 5px; }
.week-blockers li { font-size: 14.5px; color: var(--ink); }
.week-blocker-where {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 12px; color: var(--ink-soft); margin-right: 6px;
}

.week-action { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.week-action .btn { min-height: 48px; }
.week-action .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.week-action-note { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-soft); }
.week-action-blocked { margin: 0; flex: 1 1 220px; }

/* --- one section: a division, or a cup round --- */
.week-sections { display: grid; gap: 22px; }
.week-section {
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-lg); padding: 14px 16px 16px;
}
.week-section-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--rule);
}
.week-section-head h2 { font-family: var(--cond); font-size: 26px; margin: 0; line-height: 1.1; }
.week-section-head [data-part="section-status"] { margin-left: auto; }

/* Fixtures on the left, that division's table on the right — the scorebook's
   own proportions, so a section reads exactly like the screen it replaces. */
.week-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px; align-items: start;
}
.week-col-fixtures { min-width: 0; }
.week-col-table { min-width: 0; container-type: inline-size; }
.week-col-table table.league { font-size: 14.5px; }
.week-col-table table.league thead th,
.week-col-table table.league tbody td { padding-left: 5px; padding-right: 5px; }
.week-col-table table.league thead th.col-pos,
.week-col-table table.league tbody td.col-pos { padding-left: 12px; }
.week-col-table table.league thead th.col-pts,
.week-col-table table.league tbody td.col-pts { padding-right: 12px; }
.week-table-note {
  margin: 0 0 8px; font-size: 13px; color: var(--ink-soft);
  border-left: 3px solid var(--floodlight); padding-left: 9px;
}
/* inside a section the fixture list already sits on paper */
.week-col-fixtures .fixtures { background: transparent; border-radius: 0; padding-top: 0; }
.week-col-fixtures .autobar { border-radius: var(--r-sm); }
.week-section .cup-ties { margin-top: 12px; }
.week-section .panel { padding: 0; background: transparent; margin-bottom: 0; }
.week-section .panel + .panel { margin-top: 14px; }

/* A week the calendar has not reached: everything is shown, nothing can be
   pressed. The dashes are deliberate — there is no score yet, and an empty box
   would invite one to be typed. */
.fixtures-locked { opacity: 0.85; }
.fixture-locked { cursor: default; }
.score-pair-locked {
  font-family: var(--cond); font-size: 20px; letter-spacing: 0.02em;
  min-width: 52px; text-align: center; color: var(--ink);
}
.cup-fixture-locked { align-items: center; }
.tie-locked { opacity: 0.95; }

/* The season calendar's rows became buttons when weeks arrived. */
.season-event { padding: 0; }
.season-event-open {
  display: flex; gap: 10px; align-items: baseline; width: 100%;
  padding: 7px 10px; background: none; border: 0; border-radius: 8px;
  font: inherit; font-size: 13.5px; color: inherit; text-align: left; cursor: pointer;
  min-height: 44px;
}
.season-event-open:hover { background: var(--picked-soft); }

@media (max-width: 900px) {
  /* Each section folds on its own: fixtures first, then that division's table,
     then the next division. Nothing scrolls sideways. */
  .week-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 560px) {
  .week-forward { margin-left: 0; width: 100%; order: 2; }
  .week-nav [data-act="week-prev"] { order: 1; }
  .week-section { padding: 12px 12px 14px; }
  .week-section-head h2 { font-size: 22px; }
  .week-section-head [data-part="section-status"] { margin-left: 0; }
  .week-nav { padding: 8px; }
  .week-nav .week-arrow { flex: 1 1 auto; }
  .week-jump { flex-basis: 100%; order: -1; }
  .week-action .btn { width: 100%; }
  .week-counts { gap: 4px 16px; }
}

/* The one play-method switch for a whole league week: it sets the league's
   setting, so it belongs to the week rather than to any one division. */
.week-playmethod {
  background: var(--paper); border-radius: var(--r-lg);
  padding: 4px 14px; margin-bottom: 18px;
}
.week-playmethod .playmethod { border: 0; margin: 0; background: transparent; }

/* Inside a week the section heading already names the cup and the round, so the
   round's own heading steps back to a sub-heading rather than repeating it at
   full size. */
.week-section .cup-round-head h2,
.week-section .cup-draw-card h2,
.week-section .cup-draw-card h3 { font-size: 18px; }

/* ======================================================================
   Setup: what you have chosen, and how to unchoose it
   ----------------------------------------------------------------------
   One list, used by the six Scottish invitations and by purple Super Seeds
   in a division and in a cup. It sits above the search box and is never
   filtered by it, so a club chosen by mistake can always be reached —
   including when the picker below it is at its limit and greyed out.
   ====================================================================== */

.chosen-list {
  list-style: none; margin: 8px 0 10px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chosen-item {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--grass); border-radius: 999px;
  background: #F4FBF6; padding: 4px 4px 4px 12px;
  font-size: 14.5px; max-width: 100%;
  /* Set explicitly: this list appears both inside a paper panel (the season
     setup) and straight onto the pitch (the standalone cup setup), and the
     pill is light in either case, so it must carry its own ink. */
  color: var(--ink);
}
.chosen-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.chosen-remove {
  flex: 0 0 auto; min-height: 32px; padding: 0 12px;
  font: inherit; font-size: 12px; font-family: var(--cond);
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); color: var(--ink-soft); cursor: pointer;
}
.chosen-remove:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
/* Outside the pill there is no background of its own, so this one follows
   whatever it is sitting on rather than naming a colour. */
.chosen-empty { margin: 8px 0 10px; font-size: 14px; color: inherit; opacity: 0.72; }

@media (max-width: 520px) {
  /* A full-width row per choice on a phone, so the Remove button is always a
     comfortable target rather than a sliver at the end of a wrapped pill. */
  .chosen-list { display: grid; gap: 6px; }
  .chosen-item { justify-content: space-between; border-radius: var(--r-sm); padding: 6px 6px 6px 12px; }
  .chosen-remove { min-height: 44px; }
}

/* ======================================================================
   Setup, as numbered steps
   ----------------------------------------------------------------------
   The screen is still one page and one draft — the numbering and the Back
   control are wayfinding, not a wizard. Nothing is committed or discarded
   at a step boundary, which is why moving between them cannot reset a
   choice.
   ====================================================================== */

.setup-step { padding: 0 0 6px; }
.setup-step + .setup-step {
  margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--rule);
}
.setup-step-head {
  display: flex; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.setup-step-title { min-width: 0; }
.setup-step-no {
  display: block;
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 12px; color: var(--ink-soft);
}
.setup-step-head h2 {
  font-family: var(--cond); font-size: 26px; line-height: 1.1; margin: 2px 0 0;
}
.setup-step-head h2:focus-visible { outline: 2px solid var(--floodlight); outline-offset: 3px; }
.setup-back { margin-left: auto; min-height: 44px; }

@media (max-width: 560px) {
  .setup-step-head h2 { font-size: 22px; }
  .setup-back { margin-left: 0; width: 100%; }
}

/* ======================================================================
   Build 1_48 — automation, byes and the week controls
   ====================================================================== */

/* The site's yellow, for the action a player reaches for most. Dark ink on
   floodlight amber; a genuinely disabled one stays visibly disabled rather
   than merely dimmer. */
.btn-auto {
  background: var(--floodlight); color: var(--ink);
  border: 1px solid #C79400; font-weight: 600;
}
.btn-auto:hover:not([disabled]) { background: #FFC71F; border-color: #A87D00; }
.btn-auto:active:not([disabled]) { background: #E0A800; }
.btn-auto:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-auto[disabled] {
  background: var(--paper-alt); color: var(--ink-soft);
  border-color: var(--rule); opacity: 1; cursor: not-allowed;
}

/* Two copies of the automate control, one at each end of the fixture list. */
.fixtures + .autobar, .cup-ties + .autobar { margin-top: 10px; }
.autobar[data-end="bottom"] { margin-bottom: 0; }

/* Every bye in a round, on one line. Wraps freely; never truncated. */
.cup-bye-line {
  margin: 0 0 12px; padding: 9px 12px;
  background: var(--paper-alt); border-radius: var(--r-sm);
  font-size: 14.5px; line-height: 1.55; color: var(--ink);
  overflow-wrap: break-word;
}
.cup-bye-line strong { white-space: nowrap; }
.cup-bye-line-panel { margin-bottom: 14px; }

/* ------------------------------------------- the guided season setup --- */
/* One question on screen at a time. Everything here is sized for a thumb
   first: every control in the journey is at least 44px in both directions,
   the question is the largest thing on the step, and nothing is hidden
   behind a hover. Text scales with the user's own font size and the page
   never disables zoom. */

.wiz { padding-top: 14px; }
.wiz-head p { max-width: 54ch; }

.wiz-progress { margin: 0 0 16px; }
.wiz-dots {
  list-style: none; margin: 0 0 8px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.wiz-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 13px; color: var(--ink-soft);
}
.wiz-dot::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rule); flex: 0 0 auto;
}
.wiz-dot.is-done { color: var(--grass-dark); }
.wiz-dot.is-done::before { background: var(--grass); }
.wiz-dot.is-now { color: var(--ink); font-weight: 700; }
.wiz-dot.is-now::before { background: var(--floodlight); box-shadow: 0 0 0 3px rgba(242,183,5,0.25); }
.wiz-dot + .wiz-dot { margin-left: 4px; }

.wiz-count { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.wiz-bar { height: 6px; border-radius: 3px; background: var(--paper-alt); overflow: hidden; }
.wiz-bar > span { display: block; height: 100%; background: var(--grass); transition: width 160ms ease; }

.wiz-step { padding: 4px 0 2px; }
.wiz-question {
  font-family: var(--cond); font-size: 26px; line-height: 1.15;
  margin: 0 0 14px; color: var(--ink);
}
.wiz-question:focus-visible { outline: 2px solid var(--floodlight); outline-offset: 4px; }
@media (min-width: 720px) { .wiz-question { font-size: 32px; } }

.wiz-body { margin-bottom: 4px; }
.wiz-hint { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.wiz-note { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.wiz-field { max-width: 460px; }
.wiz-field input { min-height: 48px; font-size: 17px; }

.wiz-choice { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .wiz-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wiz-choice-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 520px) { .wiz-choice-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.wiz-big {
  min-height: 60px; min-width: 44px; padding: 14px 18px;
  font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.25;
  color: var(--ink); background: var(--paper); cursor: pointer;
  border: 2px solid var(--rule); border-radius: var(--r-lg);
  transition: border-color 120ms ease, background 120ms ease;
}
.wiz-big:hover { border-color: var(--grass); }
.wiz-big:focus-visible { outline: 2px solid var(--floodlight); outline-offset: 3px; }
.wiz-big.is-on { border-color: var(--grass); background: rgba(31,138,76,0.10); }
.wiz-big.is-on::after { content: ' ✓'; color: var(--grass-dark); font-weight: 700; }
.wiz-big-number { font-family: var(--cond); font-size: 30px; }
.wiz-big-number.is-on::after { content: ''; }

.wiz-list {
  margin: 0 0 14px; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.wiz-list li {
  background: var(--paper-alt); border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: 8px 12px; font-size: 15px; color: var(--ink);
}
.wiz-name-card { padding: 0; border: 0; background: transparent; }
.wiz-name-card + .wiz-name-card { margin-top: 12px; }
.division-name-fixed { margin: 0; font-family: var(--cond); font-size: 22px; color: var(--ink); }

.wiz-nav {
  display: flex; gap: 10px; align-items: center;
  margin: 16px 0; flex-wrap: wrap;
}
.wiz-nav .btn { min-height: 48px; }
.wiz-back { flex: 0 0 auto; }
.wiz-next { flex: 1 1 auto; min-width: 160px; }
@media (min-width: 520px) { .wiz-next { flex: 0 0 auto; margin-left: auto; } }

.wiz-problems:empty { display: none; }

.wiz-review { display: grid; gap: 10px; }
.wiz-review-row {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 12px 14px; background: var(--paper-alt);
  border: 1px solid var(--rule); border-radius: var(--r-sm);
}
.wiz-review-row .btn { min-height: 44px; min-width: 64px; flex: 0 0 auto; }
.wiz-review-label {
  display: block; font-family: var(--cond); text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 12.5px; color: var(--ink-soft);
}
.wiz-review-value { display: block; font-size: 15.5px; line-height: 1.5; color: var(--ink); overflow-wrap: break-word; }
.wiz-ready { margin: 14px 0 0; font-size: 15.5px; font-weight: 600; color: var(--grass-dark); }

@media (prefers-reduced-motion: reduce) {
  .wiz-bar > span { transition: none; }
}

/* ------------------------------------- readable setup explanations --- */
/* Instructions people actually have to read, at a size that says so. The
   small, faint helper text stays for asides; anything that explains how to
   PLAY is `.explain`: 18px on desktop, 17px on a phone, full-strength ink
   rather than a grey, and never the last thing squeezed under a control. */

.setting-head {
  font-family: var(--cond); font-size: 21px; font-weight: 700;
  margin: 0 0 4px; color: var(--ink); letter-spacing: 0.01em;
}
@media (min-width: 720px) { .setting-head { font-size: 24px; } }
.scoring-sub .setting-head { margin-top: 4px; }

.explain {
  font-size: 17px; line-height: 1.6; color: var(--ink);
  margin: 0 0 10px; max-width: 64ch; overflow-wrap: break-word;
}
@media (min-width: 720px) { .explain { font-size: 18px; } }
.explain strong { font-weight: 700; }
.explain:last-child { margin-bottom: 0; }

.explain-list {
  margin: 0 0 10px; padding-left: 22px; max-width: 64ch;
  font-size: 17px; line-height: 1.6; color: var(--ink);
}
@media (min-width: 720px) { .explain-list { font-size: 18px; } }
.explain-list li { margin: 0 0 4px; }

.explain-box {
  background: var(--paper-alt); border: 1px solid var(--rule);
  border-left: 4px solid var(--grass);
  border-radius: var(--r-sm); padding: 14px 16px; margin: 12px 0 16px;
}
.explain-box > *:last-child { margin-bottom: 0; }

/* ------------------------------------------- the strength legend --- */
/* What S, N and W mean, said in words as well as in colour, where the
   choice is actually made. */

.strength-legend {
  background: var(--paper-alt); border: 1px solid var(--rule);
  border-left: 4px solid var(--grass);
  border-radius: var(--r-sm); padding: 14px 16px; margin: 0 0 16px;
}
.legend-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
@media (min-width: 620px) { .legend-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.legend-row { display: flex; align-items: center; gap: 10px; }
.legend-swatch {
  flex: 0 0 auto; pointer-events: none;
  width: 32px; height: 32px; min-width: 32px; min-height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
}
.legend-text { font-size: 17px; line-height: 1.4; color: var(--ink); }
@media (min-width: 720px) { .legend-text { font-size: 18px; } }

/* ------------------------------ going up and coming down --- */
/* What moves between each pair of neighbouring divisions, said in the
   player's own division names and marked when the two ends disagree. */

.movement { margin: 18px 0 4px; }
.movement-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.movement-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--paper-alt); border: 1px solid var(--rule);
  border-left: 4px solid var(--grass);
}
.movement-row.is-off { border-left-color: var(--danger); background: rgba(179, 55, 43, 0.07); }
.movement-mark {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff; background: var(--grass);
}
.movement-row.is-off .movement-mark { background: var(--danger); }
.movement-text { font-size: 17px; line-height: 1.55; color: var(--ink); }
@media (min-width: 720px) { .movement-text { font-size: 18px; } }
.movement-warn { color: var(--zone-relegation-text); }
.rule-note { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }

/* ---------------------------- one card per competition's Super Seeds --- */
/* Three cups' worth of the same controls in a row reads as one block of
   repeated text. Each competition gets a card of its own, with its full
   name at the top in the purple that Super Seeds are, so it is never in
   doubt which cup a Yes, a count or a club belongs to. */

.superpanel {
  border: 1px solid var(--rule); border-top: 4px solid var(--super);
  border-radius: var(--r-lg); background: var(--paper);
  padding: 16px 18px; margin: 0 0 20px;
}
.superpanel + .superpanel { margin-top: 20px; }
.super-title {
  font-family: var(--cond); font-size: 22px; font-weight: 700;
  color: var(--super); margin: 0 0 8px; line-height: 1.15;
  overflow-wrap: break-word;
}
@media (min-width: 720px) { .super-title { font-size: 26px; } }
.super-question { font-size: 17px; margin: 14px 0 8px; color: var(--ink); }
@media (min-width: 720px) { .super-question { font-size: 18px; } }
.superpanel .super-count { margin-top: 16px; }

/* ------------------------------- comfortable targets on the setup --- */
/* The setup screens are where a child taps hardest and most often: the
   strength circles beside every team, the play-method chips, the play-off
   choices. They are sized for a thumb HERE only — the playing screens keep
   the compact controls they have, because nothing in this change is
   licensed to redesign them. */

#setup-root .chip,
#setup-root .chip-sm { min-height: 44px; display: inline-flex; align-items: center; }
#setup-root .rule-input { min-height: 44px; }
#setup-root .seed-btn {
  width: 32px; height: 32px; min-width: 32px; min-height: 32px;
  font-size: 14px;
}
#setup-root .picked li { gap: 4px; }
#setup-root .picked-remove { min-width: 32px; min-height: 32px; }

/* ------------------------------- the secondary paired action --- */
/* "Review seedings" beside "Keep seedings". The green Keep is the ordinary
   answer and is untouched; Review keeps its yellow and its dark text but
   takes about half the room, through padding and width rather than by
   shrinking the words to the point of illegibility. It stays a 44px-high
   target with its own focus, hover and pressed states. */

.btn-second {
  font-size: 13px; font-weight: 600; letter-spacing: 0;
  padding: 5px 8px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
.seed-prompt-actions .btn-second { align-self: center; }

/* The advice under a Yes/No pair is an instruction, not a footnote: it is
   what tells a player which answer they want. */
.wiz-answer-hint { margin-top: 14px; }

/* The cup cards: name, what the competition is, and — where it has them —
   who the invitations go to, all at reading size rather than as a caption. */
.cupchoice-note { font-size: 17px; line-height: 1.55; color: var(--ink); }
@media (min-width: 720px) { .cupchoice-note { font-size: 18px; } }
.cupchoice-detail {
  display: block; margin-top: 6px;
  font-size: 16px; line-height: 1.55; color: var(--ink-soft);
}
@media (min-width: 720px) { .cupchoice-detail { font-size: 17px; } }

/* A setting that is calculated rather than typed: shown as plainly as the
   box it replaces, with the reason for its value beside it. */
.rule-shown { display: flex; flex-direction: column; gap: 4px; }
.rule-value {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; min-height: 44px; padding: 0 12px;
  font-family: var(--cond); font-size: 24px; font-weight: 700; color: var(--ink);
  background: var(--paper-alt); border: 1px solid var(--rule); border-radius: var(--r-sm);
  align-self: flex-start;
}
#setup-root .chip[disabled] {
  opacity: 1; background: var(--paper-alt); color: var(--ink-soft);
  border-color: var(--rule); cursor: not-allowed; text-decoration: line-through;
}

/* ==================================== Automate and Automate Pulse ======= */
/* Two ways to do the same thing, chosen before the button is pressed.
   Automate puts the results straight on the screen; Automate Pulse rolls
   every selected game at once and shows them together at the end. */

.pulse-modes {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch;
  margin: 10px 0 6px;
}
.pulse-mode {
  flex: 1 1 200px; min-height: 52px; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 13px; border-radius: var(--r-sm); cursor: pointer;
  border: 2px solid var(--rule); background: var(--paper); color: var(--ink);
  font-family: var(--sans);
}
.pulse-mode:hover { border-color: #C79400; }
.pulse-mode:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pulse-mode.is-on { border-color: #C79400; background: rgba(242, 183, 5, 0.18); }
.pulse-mode-name { font-size: 15.5px; font-weight: 700; }
.pulse-mode.is-on .pulse-mode-name::after { content: ' ✓'; }
.pulse-mode-note { font-size: 13.5px; color: var(--ink-soft); }
.pulse-mode.is-on .pulse-mode-note { color: var(--ink); }

.pulse-sound {
  flex: 0 0 auto; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
}
.pulse-sound:hover { border-color: var(--ink-soft); }
.pulse-sound:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pulse-sound[aria-pressed="false"] { color: var(--ink-soft); }

/* The legend, so the red is explained in words and not only by its colour. */
.pulse-legend {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 4px 0 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink);
}
.pulse-legend-die {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  color: #fff; background: var(--danger); border: 2px solid #8E2B21;
}

/* A die DiceFooty is about to roll. The colour marks who rolls it, never how
   strong a team is — the rating badges are untouched. */
.die.is-pulse-pick {
  border-color: #8E2B21; background: rgba(179, 55, 43, 0.14); color: var(--zone-relegation-text);
}
.die.is-pulse-pick .die-face { color: var(--zone-relegation-text); }
.fixture.is-pulse-pick, .cup-fixture.is-pulse-pick { background: rgba(179, 55, 43, 0.05); }

/* In the air: every selected die together, for the same short moment. */
.die.is-pulsing {
  border-color: #8E2B21; background: rgba(179, 55, 43, 0.2); color: var(--zone-relegation-text);
  animation: pulse-shake 220ms linear infinite;
  cursor: progress;
}
.die.is-pulsing[disabled] { opacity: 1; }
@keyframes pulse-shake {
  0%   { transform: rotate(-7deg) translateY(0); }
  25%  { transform: rotate(6deg) translateY(-2px); }
  50%  { transform: rotate(-4deg) translateY(1px); }
  75%  { transform: rotate(8deg) translateY(-1px); }
  100% { transform: rotate(-7deg) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .die.is-pulsing { animation: none; }
}

/* The season summary, while promotion is still undecided. Said once at the
   top rather than repeated beside every division. */
.season-unfinished { border-left: 4px solid var(--playoff); margin-bottom: 18px; }
.season-unfinished h2 {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(17px, 2.2vw, 21px); margin: 0 0 6px;
}
.season-unfinished .cup-note { margin: 0 0 12px; }

/* The play-off week's own section on the weekly page. */
.week-section-playoff { border-left: 4px solid var(--playoff); }
.week-section-playoff .hero-cta { margin-top: 12px; }

/* ------------------------------------------------- the honours board ---
 *
 * The top of the season summary: who won what, who went up, who went down,
 * who lifted each cup. Read before any table, so it is set in the page's
 * largest comfortable type and given room rather than packed in.
 */
.honours { border-left: 4px solid var(--floodlight); margin-bottom: 22px; }
.honours-head {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.07em;
  font-size: clamp(19px, 2.6vw, 25px); margin: 0 0 4px;
}
.honours-block { margin-top: 18px; }
.honours-block h3 {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 14.5px; color: var(--ink-soft);
  margin: 0 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--rule);
}
.honours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.honours-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  font-size: 16px;
}
.honours-row .clinch { margin-left: 0; }
.honours-name { font-weight: 600; font-size: 17px; }
.honours-detail { color: var(--ink-soft); font-size: 14.5px; }
.honours-cup-name {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 15px; color: var(--ink-soft); min-width: 42%;
}

@media (max-width: 640px) {
  .honours-row { gap: 2px 8px; }
  .honours-detail { flex-basis: 100%; }
  .honours-cup-name { min-width: 100%; }
}

/* --------------------------------------- a title or promotion secured ---
 *
 * A league title arrives mid-matchday, in a division the player may not be
 * looking at, so the moment has to say WHAT has happened as well as mark it.
 * The card sits low on the screen rather than over the middle of it: the
 * table that has just produced the news stays readable behind it.
 */
.secured-show {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.secured-card {
  position: relative; pointer-events: auto;
  width: min(560px, 100%);
  background: var(--pitch); color: var(--chalk);
  border: 1px solid rgba(232, 238, 243, 0.22);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 46px rgba(10, 44, 25, 0.42);
  padding: 18px 46px 18px 20px;
  display: grid; gap: 14px;
}
.secured-show.is-moving .secured-card { animation: secured-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes secured-in {
  from { transform: translateY(26px) scale(0.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.secured-close {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: transparent; color: var(--chalk-soft);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.secured-close:hover { color: var(--chalk); background: rgba(232, 238, 243, 0.12); }
.secured-line { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-items: baseline; }
.secured-line .clinch { margin-left: 0; grid-row: span 3; align-self: center; width: 22px; height: 22px; font-size: 13px; }
.secured-name {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: clamp(20px, 3.4vw, 27px); font-weight: 600; line-height: 1.05;
}
.secured-verb {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.13em;
  font-size: clamp(13px, 1.8vw, 16px); color: var(--floodlight);
}
.secured-where { font-size: 13.5px; color: var(--chalk-soft); }

/* The falling pieces ride inside the card's own fixed layer, so they cover the
   window without a second overlay to clean up. */
.secured-fall { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .secured-show.is-moving .secured-card { animation: none; }
}

/* =====================================================================
   Build 1_55 — the standalone cup setup, in the Combined Season's style
   ---------------------------------------------------------------------
   One light panel of numbered sections. Only the page title sits on the
   green; every piece of guidance is on paper, in full-strength ink, at the
   same readable size as the guided season setup (.explain). Nothing here
   changes a rule — only where things sit and how they read.
   ===================================================================== */

.cupsetup-panel { padding: 22px 24px 8px; }
.cupsetup-lead { margin-bottom: 6px; }

.cupsetup-section {
  padding: 20px 0 22px;
  border-top: 1px solid var(--rule);
}
.cupsetup-section:first-of-type { border-top: 0; padding-top: 10px; }
.cupsetup-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--cond); font-size: 24px; line-height: 1.15;
  margin: 0 0 14px; color: var(--ink);
}
@media (min-width: 720px) { .cupsetup-title { font-size: 28px; } }
.cupsetup-no {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grass); color: #fff;
  font-family: var(--cond); font-size: 18px; font-weight: 700;
}
.cupsetup-name { max-width: 460px; }
.cupsetup-name input { min-height: 48px; font-size: 17px; }
.cupsetup .cup-template .explain-box { margin-bottom: 0; }
.cupsetup .cup-note-off { border-left-color: #B4690E; }

.cupsetup-count {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 14px; margin: 0 0 8px;
}
.cupsetup-count .squad-line { margin: 0; font-size: 17px; }
.cupsetup .picker { margin-top: 12px; }
.cupsetup .picker-tools input[type="search"] { min-height: 44px; font-size: 16px; }
.cupsetup .opt { font-size: 15.5px; min-height: 44px; }
.opt-fixed .opt-label { cursor: default; }
.opt-tag {
  margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--picked); color: var(--ink);
  font-family: var(--cond); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
}

/* The invitation lists and the Super Seed panel sit inside a section now, so
   their own headings are sub-headings and their notes read like the rest. */
.cupsetup-section .invitepanel,
.cupsetup-section .superpanel { margin: 0; }
.invite-head-note { display: block; font-size: 15px; line-height: 1.5; color: var(--ink); }
.invite-country-head strong { font-size: 16.5px; }
.invite-count { font-size: 13px; }
.invite-country { margin-bottom: 18px; }
.invite-country .chosen-empty { color: var(--ink-soft); opacity: 1; }

.cupsetup-foot {
  border-top: 1px solid var(--rule);
  padding: 18px 0 16px;
}
.cupsetup-foot .notice { margin-bottom: 14px; }
.cupsetup-ready { margin: 0 0 14px; font-size: 16px; font-weight: 600; color: var(--grass-dark); }
.cupsetup-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cupsetup-actions .btn { min-height: 48px; }
.cupsetup-create { margin-left: auto; min-width: 180px; }

@media (max-width: 620px) {
  .cupsetup-panel { padding: 16px 15px 4px; }
  .cupsetup-title { font-size: 22px; gap: 10px; }
  .cupsetup-no { width: 30px; height: 30px; font-size: 16px; }
  .cupsetup-create { flex: 1 1 100%; margin-left: 0; order: -1; }
  .cupsetup-actions .btn-onpaper { flex: 1 1 100%; }
}
.cupsetup .setting-head { margin-bottom: 8px; }
.cupsetup .scoring-sub { margin-top: 18px; }

/* =====================================================================
   Build 1_55 — fixture rows, league and cup alike
   ---------------------------------------------------------------------
   Build 1_51 gave the cup a tick box without giving it a column: the box
   took the home name's column, everything after it slid one along, and
   the clear control wrapped onto a row of its own and stretched into a
   long bar. Every row now has the same five named cells, whether the
   selection list is open, closed, or the fixture has just been played:

     tick │ home name + badge │ dice or scores │ badge + away name │ clear

   The tick cell is 0px wide until the list is open, then 28px; the clear
   cell is a fixed 32px whether or not its button is showing. So ticking,
   rolling and revealing never move a name.
   ===================================================================== */

.fixture,
.cup-fixture {
  --tick-w: 0px;
  --fx-cols: var(--tick-w) minmax(0, 1fr) auto minmax(0, 1fr) 32px;
  display: grid;
  grid-template-columns: var(--fx-cols);
  grid-template-areas:
    "leg  leg  leg   leg  leg"
    "tick home score away clear";
  align-items: center;
  column-gap: 10px; row-gap: 0;
}
.fixtures.is-picking .fixture,
.cup-ties.is-picking .cup-fixture { --tick-w: 28px; grid-template-columns: var(--fx-cols); }

.tick-slot { grid-area: tick; display: flex; align-items: center; justify-content: center; min-width: 0; }
.fixture > .home, .cup-fixture > .team-home { grid-area: home; }
.fixture > .score-pair, .cup-fixture > .score-pair { grid-area: score; justify-self: center; }
.fixture > .away, .cup-fixture > .team-away { grid-area: away; }
.fixture > .fixture-clear, .cup-fixture > .btn-clear { grid-area: clear; justify-self: end; }
.cup-fixture > .leg-label { grid-area: leg; margin-bottom: 4px; }

.cup-fixture .team-name {
  display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 500;
}
.cup-fixture .team-home { justify-content: flex-end; text-align: right; }
.cup-fixture .team-away { justify-content: flex-start; text-align: left; }
.cup-fixture .seed-dot { margin: 0; flex: 0 0 auto; }
.cup-fixture .tn,
.fixture .team-name { min-width: 0; overflow-wrap: break-word; hyphens: auto; }

/* The clear control: a small round button in its own cell, never a bar.
   It clears that one match's score — both sides, half-rolled included —
   and is offered only when there is a score to clear. */
.fixture-clear,
.cup-fixture .btn-clear {
  width: 32px; height: 32px; padding: 0; flex: none;
  border: 1px solid transparent; border-radius: 50%;
  background: none; color: var(--ink-soft);
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
}
.fixture-clear:hover,
.cup-fixture .btn-clear:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.fixture-clear:focus-visible,
.cup-fixture .btn-clear:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.fixture-clear[hidden],
.cup-fixture .btn-clear[hidden] { display: none; }

.auto-check { margin: 0; }
.cup-fixture { padding: 3px 0; }
.cup-fixture + .cup-fixture { margin-top: 4px; padding-top: 8px; }

/* The dice never add to the page's width while they turn. */
.fixtures, .cup-ties { overflow-x: clip; overflow-clip-margin: 10px; }
.score-pair-dice { min-height: 44px; }

/* ------------------------------------------------ the line under a tie --- */

.tie { padding: 8px 12px 8px; }
.tie-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  min-height: 28px; margin-top: 4px; padding-top: 4px;
  border-top: 1px solid var(--rule);
  font-size: 14.5px; line-height: 1.35;
}
.tie-status .tie-agg,
.tie-status .tie-through,
.tie-status .tie-pens-result,
.tie-status .tie-pens { margin: 0; }
.tie-status .tie-agg { color: var(--ink-soft); }
.tie-pending { color: var(--ink-soft); }
.tie-pending.is-rolling { color: #8E2B21; font-weight: 600; }
.tie-status .btn-pens { min-height: 36px; }
.just-revealed .tie-status > * { animation: reveal-in 420ms ease-out 1; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- the dice --- */

/* A personal roll: the ordinary black-outlined die, turning in place. The
   motion itself is a transform written each frame (see animateRoll), so the
   box never changes size and nothing beside it moves. */
.die.is-rolling {
  animation: none;
  background: var(--paper); border-color: var(--ink); color: var(--ink);
  cursor: default; transition: none;
}
.die.just-landed { animation: die-land 380ms cubic-bezier(.2,.8,.3,1.2) 1; }
@keyframes die-land {
  0%   { transform: scale(1.18); }
  60%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* Pulse: every selected die in red — who rolls, not how strong. */
.die.is-pulsing {
  animation: none;
  transform: none;
  border-color: #8E2B21; background: rgba(179, 55, 43, 0.14); color: var(--zone-relegation-text);
  cursor: progress;
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.die.is-pulsing .die-face { font-size: 20px; }
/* Landed: upright on the real face, solid red, and held long enough to read. */
.die.is-pulsing.is-landed {
  background: #B3372B; border-color: #8E2B21; color: #fff;
  animation: die-land 380ms cubic-bezier(.2,.8,.3,1.2) 1;
}
.die.is-pulsing.is-landed .die-face { color: #fff; }
/* Then eased into the saved look the redraw will show, so there is no flash. */
.die.is-pulsing.is-handover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.die.is-pulsing.is-handover .die-face { color: var(--paper); }
.die.is-standin { cursor: default; }
.die.is-standin.is-handover { background: #fff; border-color: #C6CBC2; color: var(--ink); }
.die.is-standin.is-handover .die-face { color: var(--ink); }

.autobar.is-busy .autobar-note { color: #8E2B21; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .just-revealed .tie-status > * { animation: none; }
  .die.is-pulsing.is-landed, .die.just-landed { animation: none; }
}

/* --------------------------------------------------------- phones --- */
/* Two lines per match, like a scoreboard: home name and its die on the
   first, away name and its die on the second. Long names wrap inside
   their own cell and never push a die or the clear button about. */
@media (max-width: 560px) {
  .fixture,
  .cup-fixture {
    --fx-cols: var(--tick-w) minmax(0, 1fr) auto 36px;
    grid-template-areas:
      "leg  leg  leg  leg"
      "tick home hs   clear"
      "tick away as   clear";
    column-gap: 10px; row-gap: 6px;
    padding-left: 8px; padding-right: 6px;
  }
  .fixtures.is-picking .fixture,
  .cup-ties.is-picking .cup-fixture { --tick-w: 26px; }
  .cup-fixture { padding-left: 0; padding-right: 0; }
  .fixture > .score-pair:not(.score-pair-locked),
  .cup-fixture > .score-pair:not(.score-pair-locked) { display: contents; }
  .fixture > .score-pair .dash,
  .cup-fixture > .score-pair .dash { display: none; }
  .fixture .die[data-side="home"], .cup-fixture .die[data-side="home"],
  .fixture .score-home, .cup-fixture .score-home { grid-area: hs; justify-self: end; }
  .fixture .die[data-side="away"], .cup-fixture .die[data-side="away"],
  .fixture .score-away, .cup-fixture .score-away { grid-area: as; justify-self: end; }
  .score-pair-locked { grid-area: hs / hs / as / as; align-self: center; }
  .fixture > .home, .cup-fixture > .team-home,
  .fixture > .away, .cup-fixture > .team-away {
    justify-content: flex-start; text-align: left; font-weight: 600;
  }
  .fixture > .away .seed-dot, .cup-fixture > .team-away .seed-dot { order: 2; }
  .fixture > .fixture-clear, .cup-fixture > .btn-clear { align-self: center; width: 36px; height: 36px; }
  .cup-fixture .score-pair, .cup-fixture .team-home, .cup-fixture .team-away,
  .cup-fixture .btn-clear { grid-area: auto; }
  .cup-fixture > .team-home { grid-area: home; }
  .cup-fixture > .team-away { grid-area: away; }
  .cup-fixture > .btn-clear { grid-area: clear; }
  .tick-slot { grid-area: tick; }
  .score-pair-dice { min-height: 0; }
}

/* On a wide screen a tie is ONE line tall: its match (or both legs) on the
   left, and where it stands in a column of its own on the right, instead of
   a second line under every tie. */
@media (min-width: 721px) {
  .tie:not(.tie-bye):not(.tie-locked) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    column-gap: 14px; align-items: center;
    padding: 6px 12px;
  }
  .tie:not(.tie-bye):not(.tie-locked) > .cup-fixture { grid-column: 1; }
  .tie:not(.tie-bye):not(.tie-locked) > .tie-status {
    grid-column: 2; grid-row: 1 / span 2;
    margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid var(--rule);
    align-self: stretch; align-content: center; font-size: 14px;
  }
  .tie > .cup-fixture + .cup-fixture { margin-top: 2px; }
}
.pulse-legend-text { flex: 1 1 auto; min-width: 0; }
/* The count and the button share one line at every width, so the bar does
   not grow when its note changes to "Rolling 10 ties…". */
.autobar-row:has(> [data-act="cup-roll-round"]),
.autobar-row:has(> [data-act="auto-generate"]) { flex-wrap: nowrap; }
.autobar-row > .autobar-note { min-width: 0; }
.autobar-row > .btn-auto { flex: 0 0 auto; white-space: nowrap; }
/* A score box and a die are given the same height, so a manual-dice row does
   not change height when a Pulse shows dice in place of its boxes. */
.fixture > .score-pair, .cup-fixture > .score-pair { min-height: 44px; }
.die.is-standin { width: 46px; height: 38px; border-radius: var(--r-sm); }
@media (max-width: 620px) { .die.is-standin { width: 40px; } }
@media (min-width: 721px) {
  .tie:not(.tie-bye):not(.tie-locked) { grid-template-columns: minmax(0, 1fr) 240px; }
}
.tie-status .tie-pens-result { color: var(--ink-soft); font-size: 13.5px; }
/* A disabled automate button stays visibly disabled under the pointer; the
   general .btn:hover green was showing through while the dice rolled. */
.btn-auto[disabled]:hover { background: var(--paper-alt); border-color: var(--rule); color: var(--ink-soft); }
/* On a phone the status line runs under the tie, and "… go through" plus a
   shootout score can need two lines. Two are reserved, so a tie is the same
   height before its dice are rolled and after the result is revealed. */
@media (max-width: 720px) {
  .tie-status { min-height: calc(2 * 1.35em + 6px); align-content: flex-start; }
}
.tie-status > * { line-height: 20px; }
@media (max-width: 720px) {
  .tie-status { min-height: 48px; }
}
@media (min-width: 721px) {
  /* Three short lines fit beside a one-line tie without making it taller. */
  .tie:not(.tie-bye):not(.tie-locked) > .tie-status { font-size: 13.5px; }
  .tie:not(.tie-bye):not(.tie-locked) > .tie-status > * { line-height: 17px; }
}
@media (max-width: 720px) {
  .tie-status { min-height: 54px; row-gap: 2px; }
}
@media (min-width: 721px) {
  .tie:not(.tie-bye):not(.tie-locked) { grid-template-columns: minmax(0, 1fr) 270px; }
}
.tie-through .tie-pens-result { font-size: inherit; color: var(--ink-soft); }

/* =====================================================================
   Build 1_56 — preferred teams
   ---------------------------------------------------------------------
   Blue, because every other colour on a fixture already means something:
   green/amber/red are strengths, purple is a Super Seed, red dice are
   DiceFooty rolling and black dice are yours. The marker is words as well
   as colour — "Your team" beside the club — and the row gains a blue edge.
   ===================================================================== */
:root { --pref: #1D5FA8; --pref-ink: #123F73; --pref-soft: #EAF2FC; }

.pref-tag {
  display: inline-flex; align-items: center; flex: none;
  padding: 3px 7px; border-radius: 999px;
  background: var(--pref); color: #fff;
  font-family: var(--cond); font-size: 11.5px; font-weight: 700; line-height: 1;
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}
/* Only a row carrying the marker may wrap it under the name; every other row
   keeps build 1_55's layout exactly. */
.fixture > .home:has(.pref-tag), .fixture > .away:has(.pref-tag),
.cup-fixture > .team-name:has(.pref-tag) { flex-wrap: wrap; row-gap: 3px; }

.fixture.is-preferred { background: var(--pref-soft); box-shadow: inset 4px 0 0 var(--pref); }
.fixture.is-preferred.is-selected { background: #DCE9F8; }
.tie.is-preferred { border-color: var(--pref); background: var(--pref-soft); box-shadow: inset 4px 0 0 var(--pref); }
.tie.is-preferred.tie-done { background: #E2ECF8; }
.cup-fixture-locked .team-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cup-fixture-locked .team-home { justify-content: flex-end; }

/* The picker */
.preferpanel { display: block; }
.prefer-explain { margin-top: 12px; }
.prefer-head {
  margin: 12px 0 8px; padding: 9px 12px;
  background: var(--pref-soft); border: 1px solid var(--rule); border-left: 4px solid var(--pref);
  border-radius: var(--r-sm);
}
.prefer-head strong { display: block; font-size: 16px; margin-bottom: 2px; color: var(--pref-ink); }
.prefer-list { max-height: 300px; }
.prefer-option.is-on { background: var(--pref-soft); color: var(--pref-ink); }
.prefer-option.is-on .invite-league { color: var(--pref); font-weight: 700; }
.preferpanel .chosen-item { border-color: var(--pref); background: var(--pref-soft); }
.prefer-search {
  width: 100%; padding: 10px 12px; min-height: 44px; font: inherit; font-size: 16px;
  border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
  margin-top: 6px;
}
.prefer-lost {
  margin: 8px 0; padding: 9px 12px; border-left: 4px solid var(--danger);
  background: #FCEDEB; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15px;
}

/* Build 1_56: a personal roll lands with build 1_54's quick pop again. Its own
   keyframes, so the approved Pulse landing (die-land, 380ms) is untouched. */
.die.just-landed { animation: die-land-personal 230ms ease-out 1; }
@keyframes die-land-personal {
  0%   { transform: rotate(0deg) scale(1.22); }
  55%  { transform: rotate(0deg) scale(0.95); }
  100% { transform: rotate(0deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .die.just-landed { animation: none; } }
/* Build 1_56: build 1_54's personal roll, restored — CSS tumbles the die (a
   transform only, so nothing beside it moves) while the faces flicker. */
.die.is-rolling {
  animation: die-tumble-personal 165ms linear infinite;
  background: var(--floodlight); border-color: #C79400; color: var(--ink);
  cursor: default; transition: none;
}
@keyframes die-tumble-personal {
  0%   { transform: rotate(-14deg) scale(1);    }
  25%  { transform: rotate(76deg)  scale(1.08); }
  50%  { transform: rotate(168deg) scale(0.96); }
  75%  { transform: rotate(262deg) scale(1.07); }
  100% { transform: rotate(346deg) scale(1);    }
}
@media (prefers-reduced-motion: reduce) {
  .die.is-rolling { animation: none; background: var(--floodlight); }
}

/* =====================================================================
   Build 1_56 — the One-Off League on one page
   Each division: its name, its counts, then its fixtures beside its table
   (stacked on narrow screens, as the scorebook already does).
   ===================================================================== */
.division-jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 18px; }
.division-jump-label { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; color: var(--chalk-soft); }
.division-jump-link {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule-dark); background: rgba(255,255,255,0.06); color: var(--chalk);
  font: inherit; font-size: 14.5px; font-weight: 600;
}
.division-jump-link:hover { background: rgba(255,255,255,0.14); }
.play-section { margin: 0 0 34px; scroll-margin-top: 80px; }
.play-section + .play-section { padding-top: 24px; border-top: 1px solid var(--rule-dark); }
.play-section-head h2 {
  font-family: var(--cond); font-size: clamp(24px, 3.2vw, 30px); color: var(--chalk);
  margin: 0 0 6px;
}
.play-method-bar { margin: 0 0 20px; }
.play-method-bar .playmethod { background: var(--paper); border-radius: var(--r-lg); }

/* =====================================================================
   Build 1_57 — the Lower League Cup of Scotland's Round One groups
   Seven small tables in a grid (one column on a phone), each table the
   league's own table styles, scrolling sideways inside its own box rather
   than widening the page.
   ===================================================================== */
.cup-groups { margin-top: 18px; }
.cup-group-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}
.cup-group-card {
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 12px; background: var(--paper); color: var(--ink); min-width: 0;
}
.cup-group-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cup-group-card-head h3 { font-size: 20px; }
.cup-group-card .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.league.cup-group-table { font-size: 14.5px; min-width: 300px; }
table.league.cup-group-table thead th,
table.league.cup-group-table tbody td { padding-left: 4px; padding-right: 4px; }
table.league.cup-group-table tbody tr.is-qualified td.col-team { box-shadow: inset 3px 0 0 var(--grass); }
.clinch-q { background: var(--grass); }
.cup-group-tie { margin: 10px 0 0; }
.cup-group-tie .chipset { margin: 8px 0 4px; }
.cup-group-fixtures { margin-top: 10px; }
.cup-group-fixtures summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.cup-group-round { margin: 8px 0 12px; }
.cup-group-round-head { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); }
.cup-group-correct { color: var(--zone-promotion-text); font-weight: 600; }
.cup-group-block { margin: 0 0 14px; }
.cup-group-head { font-size: 18px; margin: 10px 0 6px; }
.cup-group-fixture .score-pair input { font-size: 16px; }   /* 16px keeps phones from zooming in */
.invite-set { margin: 14px 0 18px; padding-top: 12px; border-top: 1px solid var(--rule); }
.invite-set .invite-head { flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.invite-autopick { min-height: 40px; }
table.league.cup-group-table thead th.col-pos,
table.league.cup-group-table tbody td.col-pos { width: 24px; padding-left: 6px; }
table.league.cup-group-table tbody td.col-pts { padding-right: 6px; }
@media (max-width: 520px) {
  .cup-group-card { padding: 10px 6px; }
  table.league.cup-group-table { font-size: 13px; min-width: 0; }
  table.league.cup-group-table thead th,
  table.league.cup-group-table tbody td { padding-left: 2px; padding-right: 2px; }
  table.league.cup-group-table thead th.col-pos,
  table.league.cup-group-table tbody td.col-pos { width: 18px; padding-left: 3px; }
  table.league.cup-group-table tbody td.col-pts { font-size: 14px; padding-right: 4px; }
  table.league.cup-group-table .clinch { margin-left: 3px; }
}

.cup-groups-later { margin-top: 14px; }
.cup-groups-later > summary {
  cursor: pointer; min-height: 44px; display: flex; align-items: center;
  font-family: var(--cond); font-weight: 600; font-size: 18px; color: var(--ink);
}

/* =====================================================================
   Build 1_59 — Continuous Season
   ---------------------------------------------------------------------
   The followed club is blue wherever it is: the same --pref blue and the
   same "Your team" words as a preferred team, now on table rows as well.
   The setup boxes use the guided journey's own sizes; only what is new
   here — the ladder, the size control, the result card and the history —
   is styled below. Everything wraps at phone width.
   ===================================================================== */
table.league tr.is-followed td { background: var(--pref-soft); }
table.league tr.is-followed td.col-pos { box-shadow: inset 4px 0 0 var(--pref); }
table.league tr.is-followed .team-name { color: var(--pref-ink); font-weight: 700; }
table.league tr.is-followed .pref-tag { margin-left: 6px; vertical-align: middle; }
.league .col-team .pref-tag { font-size: 10.5px; padding: 2px 6px; }

.opt.is-followed { background: var(--pref-soft); }
.picked li[data-followed] { border-color: var(--pref); background: var(--pref-soft); }
.picked li[data-followed] .pref-tag { margin: 0 6px; }

.c-club .c-chosen { font-size: 17px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.c-club-list { max-height: 360px; }
.c-club-option.is-on { background: var(--pref-soft); color: var(--pref-ink); }
.c-club-option.is-on .invite-league { color: var(--pref); font-weight: 700; }

.c-ladder-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 12px; }
.c-rung {
  border: 1px solid var(--rule); border-radius: var(--r-md, 10px); padding: 14px 16px;
  background: var(--paper); display: grid; gap: 10px;
}
.c-rung.is-here { border-color: var(--pref); box-shadow: inset 4px 0 0 var(--pref); background: var(--pref-soft); }
.c-rung.is-new { border-style: dashed; }
.c-rung-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.c-rung-level { font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.c-rung-here, .c-rung-new {
  font-family: var(--cond); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 999px; background: var(--pref); color: #fff;
}
.c-rung-new { background: var(--ink); }
.c-rung-field { margin: 0; }
.c-rung-field input, .c-rung-field select { min-height: 44px; font-size: 16px; width: 100%; max-width: 440px; }
.c-rung-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.c-system { margin-top: 18px; }

.c-where { margin-bottom: 14px; }
.c-where-line { font-size: 17px; margin: 0 0 6px; }
.c-size, .c-meet { margin: 6px 0 16px; }
.c-size-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.c-size-row { display: flex; align-items: center; gap: 10px; }
.c-size-btn { min-width: 48px; min-height: 48px; font-size: 22px; padding: 0; }
.c-size-input { width: 5.5ch; min-height: 48px; font-size: 20px; text-align: center; font-weight: 600; }

.c-teams-intro { margin-bottom: 14px; }
.c-suggest { border-left: 4px solid var(--pref); background: var(--pref-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.c-suggest .hero-cta { margin: 8px 0; }
.c-suggest-note { font-weight: 600; color: var(--pref-ink); margin: 6px 0; }
.c-counter.is-over .squad-count { background: #B3261E; color: #fff; }

.c-rules .c-top-note { font-weight: 600; }
.rule input:disabled { opacity: 0.55; }

.c-stale { margin-bottom: 14px; }
.c-stale p { margin: 6px 0 10px; }

.c-banner { margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; border-left: 5px solid var(--pref); }
.c-banner-line { margin: 0; font-size: 17px; flex: 1 1 280px; }

.c-card-name { margin: 4px 0 6px; font-family: var(--cond); font-size: 28px; }
.c-card-club { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 17px; margin: 0 0 8px; }
.c-card-foot { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 10px; }
.c-danger { color: #B3261E; }

.c-result { text-align: left; border-left: 6px solid var(--pref); }
.c-result.c-up { border-left-color: #1F8A4C; }
.c-result.c-down { border-left-color: #B3261E; }
.c-badge {
  display: inline-block; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--pref); color: #fff;
}
.c-up .c-badge { background: #1F8A4C; }
.c-down .c-badge { background: #B3261E; }
.c-result-club { font-family: var(--cond); font-size: 32px; margin: 10px 0 4px; color: var(--pref-ink); }
.c-result-pos, .c-result-line, .c-result-next { font-size: 17px; margin: 6px 0; }
.c-honours, .c-complete .season-next { margin-top: 16px; }
.c-trophies { margin: 6px 0 10px; padding-left: 20px; font-size: 17px; font-weight: 600; }

.c-hist { margin-top: 14px; }
.c-hist-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; cursor: pointer; font-size: 17px; }
.c-hist.is-current .c-hist-head { margin-bottom: 10px; cursor: default; }
.c-lock { background: var(--paper-alt); border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 15px; }
.c-results { margin-top: 12px; }
.c-results > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.c-round h4 { margin: 12px 0 4px; font-family: var(--cond); }
.c-round ul { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 24px; }
.c-round li { padding: 3px 0; break-inside: avoid; font-size: 15px; }
.c-round li.is-followed { color: var(--pref-ink); font-weight: 700; }
.c-ladder-mini { margin: 6px 0 0; padding-left: 22px; }
.c-muted { color: var(--ink-soft, #5A6570); font-size: 14px; }

/* =====================================================================
   Build 1_60 — International qualifying and the World Shield
   Reuses the cup and group-stage pieces above; these rules only lay out
   what is new: the region and round tabs, the 32 slots, the finals pickers.
   ===================================================================== */
.intl-tabs { margin-bottom: 18px; }
.intl-tabs .divtab { font-size: 17px; padding: 9px 12px; }
.intl-tabs .divtab.is-locked,
.intl-tabs .divtab[disabled] { opacity: 0.45; cursor: not-allowed; }
.intl-lock { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin-left: 4px; }
.intl-subtabs { flex-wrap: wrap; }
.intl-intro { color: var(--chalk-soft); max-width: 72ch; margin: 0 0 16px; font-size: 15px; }
.intl-stage { margin-bottom: 18px; }
.intl-stage .cup-round-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.intl-auto { margin: 8px 0 14px; }
.intl-ties { display: grid; gap: 10px; }
.intl-tie-label { grid-column: 1; }
/* Inside a group card a deciding match has no room for a side column. */
.intl-decider .tie:not(.tie-bye) { display: block; }
.intl-decider .tie > .tie-status { border-left: 0; padding: 4px 0 0; border-top: 1px solid var(--rule); margin-top: 4px; }
.intl-tie-label { margin: 0 0 4px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.intl-placeholder { color: var(--ink-soft); border-style: dashed; }
.intl-placeholder-teams { margin: 4px 0 0; }
.intl-byes { margin-top: 14px; }
.intl-match .team-home, .intl-match .team-away { min-width: 0; overflow-wrap: anywhere; }
.intl-match .seed-dot { font-size: 11px; }
.intl-blank { display: inline-block; margin: 0 6px; color: var(--ink-soft); }
.intl-wait { font-size: 13px; color: var(--ink-soft); font-style: italic; }
.intl-decider { margin: 12px 0 4px; }
.intl-decider .tie { background: var(--paper); margin-top: 8px; }
.intl-compare { margin-top: 20px; }
.intl-compare h3 { margin-bottom: 6px; }
.intl-level-note { padding: 8px 4px 0; border-top: 0; }
.intl-pots { margin: 8px 0 14px; }
.intl-pot { margin: 6px 0; font-size: 14.5px; line-height: 1.5; }
.intl-pot .seed-dot { margin-right: 6px; }
.intl-waiting { font-weight: 600; }
.intl-ratings { margin-top: 18px; }
.intl-ratings > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.intl-colour-list { display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); margin: 10px 0; }
.intl-colour-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.intl-colour-name { font-weight: 600; min-width: 0; }
.intl-colour-row select { min-height: 40px; font-size: 16px; }
.intl-pot-note, .intl-changed { font-weight: 400; font-size: 12.5px; color: var(--ink-soft); }
.intl-changed { color: #B4690E; }
.intl-colour-row .chip { min-height: 38px; }
.intl-slots { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 6px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.intl-slot { display: grid; grid-template-columns: 34px 1fr; gap: 0 8px; padding: 7px 10px; border: 1px solid var(--rule); border-radius: var(--r-sm); min-height: 48px; align-items: center; }
.intl-slot.is-filled { background: var(--paper-alt); }
.intl-slot-n { font-family: var(--cond); font-weight: 700; font-size: 18px; color: var(--ink-soft); grid-row: span 2; }
.intl-slot-team { font-weight: 600; }
.intl-slot-team .clinch { margin-left: 6px; }
.intl-slot-route, .intl-slot-empty { font-size: 13px; color: var(--ink-soft); }
.intl-counters { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.intl-counter { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule); font-size: 14.5px; }
.intl-counter b { font-family: var(--cond); font-size: 18px; }
.intl-finalists { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); font-size: 14.5px; }
.intl-finalists .intl-slot-n { font-size: 14px; margin-right: 6px; }
.intl-finals-top { margin-bottom: 16px; }
.intl-pick-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.intl-pick { min-height: 48px; text-align: left; }
.intl-pick[disabled] { opacity: 0.45; cursor: not-allowed; }
.intl-pick-note { font-size: 12px; text-transform: uppercase; margin-left: 4px; }
.intl-bracket { margin-top: 18px; }
.intl-bracket > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.intl-bracket-grid { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.intl-bracket ul { list-style: none; padding: 0; margin: 6px 0; }
.intl-bracket li { padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.intl-br-label { display: inline-block; min-width: 40px; font-weight: 700; color: var(--ink-soft); }
.intl-podium { margin: 4px 0 16px; color: var(--chalk-soft); }
.intl-foot { margin-top: 26px; }
.intl-foot .playmethod { background: var(--paper); border-radius: var(--r-lg); margin-bottom: 14px; }
.intl-danger { margin-top: 22px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.intl-history-list { padding-left: 18px; }
.intl-history-rest { display: block; font-size: 13.5px; color: var(--ink-soft); }
.intl-history { margin-top: 18px; }
.intl .wiz-nav span:empty { flex: 1; }
.intl > .comp-title { padding-top: 26px; margin-bottom: 10px; }
.intl > .playmethod { background: var(--paper); border-radius: var(--r-lg); margin-bottom: 14px; }
.intl-match .team-home .team-name { justify-content: flex-end; }
@media (max-width: 560px) { .intl-match .team-home .team-name { justify-content: flex-start; } }

/* =====================================================================
   Build 1_61 — World Shield: one group per row, live table beside the
   fixtures. Only position and scrolling change; the table, fixtures, dice
   and score boxes keep their existing styles. The table sticks just below
   the top bar (--topbar-h is measured by the page) while its own group's
   fixtures scroll past, and stops at the end of that group's row, where the
   next group's table takes over. Ordinary page scrolling throughout.
   ===================================================================== */
.intl-group-flow { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.intl-split { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.intl-split-side, .intl-split-main { min-width: 0; }
.intl-group-row .intl-fixtures { margin-top: 0; }
@media (min-width: 900px) {
  .intl-split {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
    grid-template-areas: "main side";
    gap: 18px; align-items: stretch;
  }
  .intl-split-side { grid-area: side; }
  .intl-split-main { grid-area: main; }
}
/* Sticky only where the table can fit on screen with room to spare; on a
   short screen it simply sits at the top of its row. */
@media (min-width: 900px) and (min-height: 560px) {
  .intl-sticky { position: sticky; top: calc(var(--topbar-h, 64px) + 10px); }
}
.intl .die.is-locked { cursor: default; }
.intl .die.is-locked:hover,
.intl .die.is-locked:active { transform: rotate(0deg); background: var(--ink); box-shadow: 2px 3px 0 rgba(22, 34, 46, 0.10); }
.intl > .playmethod .pulse-sound { margin-left: auto; }
.intl-legacy { margin: 0 0 14px; }

/* Build 1_61 — Back to top. Fixed to the bottom of the viewport only once
   the page has been scrolled well down; small, round and in the corner so it
   does not sit over fixtures, tables or score boxes, and clear of the phone's
   home indicator. */
.to-top {
  position: fixed; z-index: 30;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pitch-deep); color: var(--chalk);
  border: 1px solid var(--rule-dark);
  box-shadow: 0 6px 18px rgba(4, 14, 24, 0.35);
  font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  cursor: pointer; opacity: 0.92;
  transition: opacity 160ms ease, transform 160ms ease;
}
.to-top:hover { opacity: 1; transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--floodlight, #F2C14E); outline-offset: 3px; opacity: 1; }
.to-top[hidden] { display: none; }
.to-top svg { width: 20px; height: 20px; }
/* The page can always scroll far enough that the button never has to cover
   the last row of anything. */
body.has-to-top .footer { padding-bottom: 76px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } .to-top:hover { transform: none; } }
main[tabindex="-1"]:focus { outline: none; }
/* Which group's table is pinned, once the group heading has scrolled away. */
.intl-sticky { background: var(--paper); }
.intl-sticky-label { display: none; margin: 0 0 4px; }
@media (min-width: 900px) { .intl-sticky-label { display: block; padding-top: 6px; } }

/* Build 1_62 — World Shield / Euro Shield switch at the top of International. */
.intl-comp { margin: 22px 0 0; flex-wrap: wrap; }
.intl-comp + .page-head, .intl-comp + .comp-title { padding-top: 14px; }
.intl > .intl-comp + .comp-title { padding-top: 14px; }
.intl-compare.is-provisional .week-chip { margin-left: 8px; vertical-align: middle; }

/* Build 1_63 — the form guide in International qualifying group tables. The
   domestic boxes, colours and letters; only spacing tightened to fit the
   narrower group table. On a phone the boxes are a touch smaller so the whole
   table still fits its card without sideways scrolling. */
table.league.cup-group-table.has-form tbody td.col-form { padding-right: 6px; padding-left: 6px; }
table.league.cup-group-table.has-form thead th.col-form { padding-right: 6px; }
@media (max-width: 520px) {
  table.league.cup-group-table.has-form tbody td.col-form { padding-left: 3px; padding-right: 3px; }
  /* Two rows of three, read like a line of text: oldest top-left, newest
     bottom-right. Keeps a long single-word name (Liechtenstein) from pushing
     the table wider than a phone. */
  table.league.cup-group-table.has-form .form-guide { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 1px; }
  table.league.cup-group-table.has-form .form-box { width: 11px; height: 12px; font-size: 9px; }
  table.league.cup-group-table.has-form tbody td.col-form, table.league.cup-group-table.has-form thead th.col-form { padding-left: 2px; padding-right: 2px; }
}

/* =====================================================================
   Build 1_66 — International cycle seasons
   The mode switch, the run/cycle bar, the cycle's competition tabs (the
   Champion Shield greyed with a lock until earned), the Roll of Honour,
   and view-only finished cycles. Everything else is the Shields' own look.
   ===================================================================== */
.cyc-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin: 14px 0 0; padding: 14px 16px; }
.cyc-pick { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); min-width: 0; flex: 1 1 200px; }
.cyc-pick select { font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); padding: 8px 10px; border-radius: 8px; border: 1px solid #c9d2da; background: #fff; max-width: 100%; min-height: 44px; }
.cyc-bar .btn { min-height: 44px; }
.cyc-lock { font-size: 12px; margin-left: 4px; }
.cyc-banner { margin: 6px 0 16px; }
.cyc-banner .cup-note { margin: 6px 0; }
.cyc-banner.is-complete { border-left: 4px solid var(--grass); }
.cyc-locked h2 { display: flex; gap: 8px; align-items: center; }
.cyc-needs { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.cyc-need { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(22, 34, 46, 0.05); }
.cyc-need-name { font-weight: 600; min-width: 220px; }
.cyc-honours { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.cyc-hon { margin: 0; }
.cyc-hon-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.cyc-hon-top h2 { margin: 0; font-size: 20px; }
.cyc-hon-list { margin: 0; }
.cyc-hon-row { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(22, 34, 46, 0.08); }
.cyc-hon-row dt { color: var(--ink-soft); font-size: 14px; }
.cyc-hon-row dd { margin: 0; }
.cyc-hon[data-status="on-hold"] { border-left: 4px solid var(--danger); }
.cyc-name { display: block; margin-top: 16px; max-width: 420px; }
.cyc-name input { width: 100%; font-size: 16px; padding: 10px 12px; min-height: 44px; }
.csf-from { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 12px 0; }
.csf-from h3 { font-size: 16px; margin: 0 0 6px; }
.intl.is-readonly [data-act="intl-auto"],
.intl.is-readonly [data-act="intl-draw"],
.intl.is-readonly [data-act="intl-reset-finals"],
.intl.is-readonly [data-act="intl-pens"],
.intl.is-readonly [data-act="intl-clear"],
.intl.is-readonly .intl-danger,
.intl.is-readonly .intl-ratings,
.intl.is-readonly .playmethod { display: none; }
@media (max-width: 560px) {
  .cyc-hon-row { grid-template-columns: 1fr; gap: 2px; }
  .cyc-need-name { min-width: 0; width: 100%; }
}

/* =====================================================================
   Build 1_67 — International usability: clear touch-friendly navigation,
   larger readable text, prominent next steps. Scoped to .intl so the rest
   of DiceFooty is unchanged. Dice are deliberately not touched.
   Contrast (checked in tests/usability.mjs): white on every Shield colour or
   charcoal on the light ones, at least 4.5:1.
   ===================================================================== */
.intl { --ink-soft: #3C4955; --chalk-soft: #F2F6F9; }

/* --- One-off Tournaments | Cycle Seasons ----------------------------- */
.mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; max-width: 620px; }
.mode-btn {
  min-height: 52px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  font-family: var(--sans); font-size: 19px; font-weight: 700; line-height: 1.15;
  background: rgba(255, 255, 255, 0.10); color: #FFFFFF; border: 2px solid rgba(255, 255, 255, 0.55);
}
.mode-btn:hover { background: rgba(255, 255, 255, 0.18); }
.mode-btn[aria-selected="true"] { background: #FFFFFF; color: var(--ink); border-color: var(--floodlight); box-shadow: 0 0 0 3px var(--floodlight); }
.mode-btn[aria-selected="true"]::before { content: '\2713\00a0'; }
.mode-btn:focus-visible, .shield-btn:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 3px; }

/* --- the run / cycle bar: compact ------------------------------------- */
.cyc-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px 14px; align-items: end; margin: 14px 0 0; padding: 12px 14px; }
.cyc-pick { gap: 3px; font-size: 15px; font-weight: 700; color: var(--ink); flex: none; }
.cyc-pick select { font-size: 17px; min-height: 46px; padding: 6px 10px; color: var(--ink); border-color: #8A97A3; }

/* --- the Shield buttons ------------------------------------------------ */
.shield-grid { display: grid; gap: 12px; margin: 16px 0 18px; grid-auto-rows: 1fr; }
.shield-grid-cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shield-grid-cycle [data-comp="honours"] { grid-column: 1 / -1; }
.shield-grid-oneoff { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shield-btn {
  min-height: 56px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.15; text-align: center;
  border: 2px solid rgba(0, 0, 0, 0.18); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; gap: 6px; overflow-wrap: anywhere;
}
.shield-btn[data-comp="euro"]     { background: #1D4ED8; }
.shield-btn[data-comp="african"]  { background: #F59E0B; color: #16222E; }
.shield-btn[data-comp="asian"]    { background: #0F766E; }
.shield-btn[data-comp="american"] { background: #B91C1C; }
.shield-btn[data-comp="combined"] { background: #6D28D9; }
.shield-btn[data-comp="world"]    { background: #E3B92C; color: #16222E; }
.shield-btn[data-comp="honours"]  { background: #FAFAF7; color: #16222E; }
.shield-btn:hover { filter: brightness(1.08); }
.shield-btn[aria-selected="true"] { box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 7px var(--floodlight); }
.shield-btn[aria-selected="true"]::before { content: '\2713'; }
.shield-btn.is-locked { background: #5C6670; color: #E6EAEE; border-style: dashed; filter: none; }
.shield-btn.is-locked .cyc-lock { font-size: 15px; }

/* --- readable text ---------------------------------------------------- */
.intl .page-head p, .intl .intl-intro, .intl .how-it-works:not(.how-on-paper) li { color: #FFFFFF; font-size: 18px; line-height: 1.55; }
.intl .comp-meta { color: #FFFFFF; font-size: 17px; }
.intl .panel .explain, .intl .panel .explain-list li, .intl .panel .how-it-works li { color: var(--ink); font-size: 18px; line-height: 1.55; }
.intl .cup-note { color: var(--ink-soft); font-size: 16.5px; line-height: 1.55; }
.intl-note-ink { color: var(--ink); font-size: 18px; line-height: 1.5; margin: 0 0 12px; }
.intl-note { color: var(--ink); font-size: 17px; margin: 10px 0 0; }
.intl .panel > h2, .intl .cup-round-head h2 { font-size: 26px; }
.intl .cup-group-card-head h3 { font-size: 22px; }
.intl .notice { font-size: 17px; line-height: 1.5; }
.intl-next {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.22); border-left: 5px solid var(--floodlight);
  color: #FFFFFF; font-size: 20px; font-weight: 700; line-height: 1.35;
}
.intl-start .intl-next-line { font-size: 20px; color: var(--ink); margin: 0 0 14px; }
.intl-start .hero-cta { margin: 0 0 12px; }

/* "How it works": the long format explanations, tucked away but findable. */
.how-it-works { margin: 0 0 16px; }
.how-it-works > summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font-size: 17px; font-weight: 700; color: #FFFFFF; border: 2px solid rgba(255, 255, 255, 0.6); list-style: none;
}
.how-it-works > summary::-webkit-details-marker { display: none; }
.how-it-works > summary::before { content: '\25B8\00a0'; }
.how-it-works[open] > summary::before { content: '\25BE\00a0'; }
.how-it-works > :not(summary) { margin-top: 10px; }
.panel .how-it-works > summary, .how-on-paper > summary { color: var(--ink); border-color: #8A97A3; }
.how-on-paper { margin: 0 0 12px; }

/* Team names, scores and tables. Structure unchanged; dice unchanged. */
.intl .cup-fixture .team-name { font-size: 17px; }
.intl .intl-score { font-size: 19px; min-height: 44px; }
.intl table.league.cup-group-table { font-size: 16px; }
.intl table.league tbody td.col-pts { font-size: 17px; }
.intl .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.intl .intl-subtabs .viewtab, .intl .intl-tabs .divtab { min-height: 46px; font-size: 17px; }
.intl .viewtab { color: #F2F6F9; }
.intl .divtab { color: #E8EEF3; }
.intl .btn { min-height: 44px; }
.intl .btn-sm { font-size: 15px; padding: 9px 14px; }
.tab-count { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--floodlight); color: var(--ink); font-size: 13px; font-weight: 700; vertical-align: middle; }
.tab-count.is-done { background: rgba(255, 255, 255, 0.85); }
.intl-next-list { margin: 8px 0 0; padding-left: 20px; font-size: 17px; color: var(--ink); line-height: 1.6; }

/* New-campaign actions: solid, contrasting, apart from the red reset. */
.btn-new {
  background: var(--floodlight); color: var(--ink); border: 2px solid rgba(22, 34, 46, 0.25);
  font-size: 18px; font-weight: 700; min-height: 48px; padding: 10px 22px;
}
.btn-new:hover { background: #D9A404; }
.intl-new-wrap { margin: 36px 0 18px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.intl-danger { margin-top: 26px; }

/* Champion Shield entrants: code column, then the name, which wraps. */
.csf-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 16px; color: var(--ink); margin: 0 0 12px; }
.csf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.csf-entrant { display: grid; grid-template-columns: 3em minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(22, 34, 46, 0.05); }
.csf-code { display: inline-block; min-width: 2.6em; text-align: center; padding: 2px 6px; border-radius: 6px; background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.5; }
.csf-name { font-size: 17px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.35; padding-top: 2px; }

@media (max-width: 1000px) {
  .shield-grid-oneoff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shield-grid-oneoff [data-comp="world"] { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .shield-grid-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cyc-bar { grid-template-columns: 1fr; }
  .shield-btn { font-size: 16.5px; min-height: 52px; }
  .mode-btn { font-size: 17px; }
  .intl-next { font-size: 18px; }
  .intl table.league.cup-group-table { font-size: 15px; }
}
.intl .playmethod-hint { font-size: 15px; color: var(--ink-soft); }
.intl .playmethod-label { color: var(--ink-soft); }
@media (max-width: 380px) {
  .intl table.league.cup-group-table { font-size: 14.5px; }
  .intl table.league tbody td.col-pts { font-size: 15px; }
}
.intl .btn-new, .cyc .btn-new { min-height: 48px; }
.intl .viewtab[aria-selected="true"] { color: var(--ink); }
@media (max-width: 900px) and (min-width: 641px) {
  .cyc-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cyc-bar .btn-new { grid-column: 1 / -1; }
}
/* Build 1_67: the dialog's No / Cancel is clearly visible on the white box,
   and its words are easy to read. Applies to every DiceFooty question. */
#dialog-cancel { color: var(--ink); border: 2px solid #8A97A3; background: transparent; min-height: 44px; min-width: 88px; }
#dialog-cancel:hover { background: var(--paper-alt); }
#dialog-confirm { min-height: 44px; min-width: 88px; }
#dialog-body { font-size: 17px; line-height: 1.5; color: var(--ink); }

/* ---------------------------------------------------------------------------
   Build 1_68 — Custom International Leagues. The playing page, tables, dice
   and play-offs are the domestic league's own; these are the new screens:
   the list of leagues, the setup with its nation picker, the preview of next
   season and the history. Green page, soft white panels, dark text.
   --------------------------------------------------------------------------- */
.mode-switch.intl-mode-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
.panel .mode-switch { margin: 8px 0 6px; }
.panel .mode-btn { color: var(--ink); background: #FFFFFF; border-color: #8A97A3; }
.panel .mode-btn:hover { background: var(--paper-alt); }
.panel .mode-btn[aria-selected="true"] { background: #E6F2EA; border-color: var(--floodlight); }

.nl .nl-field { display: block; margin: 0 0 16px; }
.nl .nl-field > span { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.nl input[type="text"], .nl input[type="search"], .nl input[type="number"] {
  font-size: 18px; min-height: 48px; padding: 8px 12px; border: 2px solid #8A97A3; border-radius: 10px;
  background: #FFFFFF; color: var(--ink); width: 100%; max-width: 420px;
}
.nl input[type="number"] { max-width: 140px; }
.nl input:focus-visible, .nl select:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.nl .explain { font-size: 17px; line-height: 1.5; color: var(--ink-soft); margin: 6px 0 0; }
.nl .nl-chip { min-height: 46px; min-width: 52px; font-size: 17px; }
.nl .division-rank { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: 0 0 10px; }
.nl-div-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr); gap: 4px 18px; align-items: start; }
.nl-count { font-size: 17px; color: var(--ink); margin: 4px 0 12px; }
.nl-warn { color: var(--danger); font-weight: 700; }
.nl .nl-rules { margin: 0 0 12px; }
.nl .rule-note, .nl .rules-preview { font-size: 15.5px; }
.nl-picked { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nl-picked-item { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px 4px 12px; border-radius: 999px; background: #E6F2EA; color: var(--ink); font-size: 17px; }
.nl-picked-empty { font-size: 16px; color: var(--ink-soft); }
.nl-picked-name { font-weight: 600; }
.nl-rating { font-size: 16px; min-height: 40px; border-radius: 8px; border: 1px solid #8A97A3; background: #FFFFFF; color: var(--ink); padding: 2px 6px; }
.nl-remove { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(22, 34, 46, 0.1); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.nl-remove:hover { background: var(--danger); color: #FFFFFF; }
.nl .seed-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin: 0; }
.nl-pick-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.nl-picker { margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--rule); }
.nl-regions { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-picker-help { margin-bottom: 10px; }
.nl-list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; font-size: 16.5px; color: var(--ink); }
.nl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 60vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 4px; }
.nl-nation {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name state" "region state";
  width: 100%; min-height: 56px; padding: 8px 12px; text-align: left; cursor: pointer;
  border: 2px solid #C5CED6; border-radius: 10px; background: #FFFFFF; color: var(--ink); font: inherit;
}
.nl-nation:hover:not(:disabled) { border-color: var(--grass); }
.nl-nation.is-in { background: #E6F2EA; border-color: var(--grass); }
.nl-nation:disabled { cursor: not-allowed; background: var(--paper-alt); color: #4A5763; }
.nl-nation-name { grid-area: name; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.nl-nation-region { grid-area: region; font-size: 14.5px; color: var(--ink-soft); }
.nl-nation-state { grid-area: state; align-self: center; font-size: 15px; font-weight: 700; padding-left: 10px; }
.nl-nation.is-in .nl-nation-state { color: #17512F; }
.nl-empty { font-size: 17px; color: var(--ink); background: var(--paper); border-radius: 10px; padding: 14px 16px; }
.nl-ready { font-size: 18px; font-weight: 700; color: #FFFFFF; margin: 0 0 14px; }
.nl-foot { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 30px; }

.nl-leagues { display: grid; gap: 14px; }
.nl-card h2 { font-size: 24px; margin: 0 0 6px; }
.nl-card-meta { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 12px; }
.nl-card.is-unreadable { border-left: 6px solid var(--danger); }

.nl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 20px; margin: 14px 0 12px; }
.nl-bar-line { font-size: 18px; margin: 0; color: var(--ink); }
.nl-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nl-bar-note { font-size: 16.5px; color: var(--ink); }
.nl-bar .btn { min-height: 44px; }

.nl-preview-div h2 { margin: 0 0 4px; }
.nl-preview-list { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.nl-preview-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 44px; padding: 6px 12px; border-radius: 10px; background: var(--paper-alt); font-size: 17px; color: var(--ink); }
.nl-preview-list li.is-promoted { background: #E3F3E8; }
.nl-preview-list li.is-relegated { background: #FCEDEB; }
.nl-tag { font-size: 14.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.nl-tag-up { background: #17512F; color: #FFFFFF; }
.nl-tag-down { background: #962D23; color: #FFFFFF; }
.nl-leaving { font-size: 16.5px; color: var(--ink); }
.nl-season h2, .nl-honours h2 { margin: 0 0 8px; }
.nl-season-list, .nl-roll { margin: 0 0 12px; padding-left: 20px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.nl-old h3 { margin: 18px 0 6px; }
.nl-old .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 760px) {
  .nl-div-head { grid-template-columns: 1fr; }
  .mode-switch.intl-mode-3 { grid-template-columns: 1fr; }
  .nl-list { grid-template-columns: 1fr; max-height: 55vh; }
  .nl-bar { flex-direction: column; align-items: stretch; }
}
.nl .rule > span:first-child { font-size: 16px; font-weight: 700; color: var(--ink); }

/* =====================================================================
   Build 1_69 — national flags and one-digit score boxes.
   ===================================================================== */

/* A flag is about the height of the name beside it, never stretched: the
   height follows the text, the width follows the flag's own 4:3 shape. A
   hairline keeps white-edged flags (Japan, England) visible on paper. */
.flag {
  display: inline-block; flex: none;
  height: 0.95em; width: auto; aspect-ratio: 4 / 3;
  vertical-align: middle; position: relative; top: -0.06em;
  border-radius: 2px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(22, 34, 46, 0.18);
}
/* A team with no confirmed flag keeps the same space, so names line up. */
.flag-none { box-shadow: none; background: none; }
/* Inside the fixture rows the row's own gap spaces the flag; elsewhere a
   small, consistent gap follows it. */
.nat { white-space: nowrap; }
.nat .flag,
.col-team > .flag,
.intl-colour-name > .flag,
.nl-nation-name > .flag,
.season-name > .flag { margin-right: 0.4em; }
.fixture .flag, .cup-fixture .flag { top: 0; }
.nat + .nat { margin-left: 0; }

/* A refused score: a brief red outline (and a small shake where motion is
   welcome). The box keeps what it had. */
input.score-reject { outline: 2px solid var(--danger); outline-offset: 1px; }
@media (prefers-reduced-motion: no-preference) {
  input.score-reject { animation: score-reject 0.28s ease-in-out; }
}
@keyframes score-reject {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
/* Phones stack each match on two lines with the scores on the right, so the
   flag leads the name on both lines, as it does in the tables. Build 1_70:
   the rating token is last on both lines, beside its score, and the
   "your team" marker sits between the name and the token. */
@media (max-width: 560px) {
  .fixture .flag,
  .cup-fixture .flag { order: -1; }
  .fixture .pref-tag,
  .cup-fixture .pref-tag { order: 1; }
  .fixture .seed-dot, .fixture .intl-blank,
  .cup-fixture .seed-dot, .cup-fixture .intl-blank { order: 2; }
}

/* =====================================================================
   Build 1_70 — fixture order and one-line team cells.
   ===================================================================== */

/* Fixture rows, wide screens: Name → Flag → Token → Score on the home side
   and Score → Token → Flag → Name on the away side. The flag sits beside
   the name and the token closest to the score. Markup gives that order;
   these rules only keep the token and flag from shrinking. */
.fixture .flag, .cup-fixture .flag,
.fixture .seed-dot, .cup-fixture .seed-dot,
.cup-fixture .intl-blank { flex: none; }

/* League and group tables: flag, full name and token stay together on one
   line for every team, however long the name. The table grows instead and
   its card scrolls sideways on a narrow screen; row heights stay even. */
table.league tbody td.col-team { white-space: nowrap; }
table.league tbody td.col-team > * { vertical-align: middle; }
table.league tbody td.col-team .team-name { white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* A token never makes its row taller than the rows without one. */
table.league tbody td.col-team .clinch,
table.league tbody td.col-team .pref-tag { margin-top: -3px; margin-bottom: -3px; }
/* International group rows on wide screens: the table column grows to the
   table's own full width (names, tokens and form all on show), and the
   fixtures keep at least 440px. Only where the two cannot both fit does the
   table scroll inside its own card. */
/* Build 1_77: the two columns now keep the SAME proportions at a given
   screen width whatever the group's state — unplayed, part-played or
   finished — so entering, editing or clearing a result can never make
   either column jump. The table column sits between the old narrow
   (part-played) and wide (unplayed) widths; a table wider than its column
   scrolls inside its own card, as before. */
@media (min-width: 900px) {
  .intl-split { grid-template-columns: minmax(470px, 1fr) minmax(0, 0.9fr); }
}
@media (min-width: 1100px) {
  .intl-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* =====================================================================
   Build 1_71 — the signed-in account on the private site.
   ===================================================================== */
.acct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 10px; }
.acct-who { margin: 0; color: var(--chalk); font-size: 14.5px; }
.acct-who strong { font-weight: 600; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--rule-dark); background: rgba(232, 238, 243, 0.08);
  color: var(--chalk); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.acct-btn:hover { background: rgba(232, 238, 243, 0.16); }
.acct-btn:focus-visible { outline: 2px solid var(--floodlight); outline-offset: 2px; }
.footer .acct-local { margin-top: 6px; }
.acct-dialog .dialog { max-width: 520px; }
.acct-dialog .dialog-actions { flex-wrap: wrap; }
/* The owner's access page. */
.owner { padding: 28px 0 40px; }
.owner-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.owner-title { font-size: 40px; margin-bottom: 8px; }
.owner-lede { color: var(--chalk-soft); max-width: 70ch; }
.owner-card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 20px; margin-top: 18px; }
.owner-card h2 { font-size: 26px; margin-bottom: 12px; }
.owner-card input[type="text"] { width: 100%; max-width: 420px; min-height: 44px; font-size: 16px; }
.owner-row { display: flex; gap: 10px; flex-wrap: wrap; }
.owner-hint { font-size: 14px; color: var(--ink-soft); margin-bottom: 0; }
.owner-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.owner-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.owner-table th, .owner-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; }
.owner-actions { display: flex; gap: 6px; flex-wrap: wrap; white-space: normal; }
.owner-on { color: var(--grass-dark); font-weight: 600; }
.owner-off { color: var(--danger); font-weight: 600; }
.owner .msg { padding: 10px 12px; border-radius: 6px; max-width: 70ch; }
.owner .msg[hidden] { display: none; }
.owner .msg-ok { background: #E1F1E7; color: #145530; }
.owner .msg-bad { background: #F7E3E0; color: #7A2219; }
/* On a phone each account is a small card, so every action stays on screen. */
@media (max-width: 640px) {
  .owner-table thead { position: absolute; left: -9999px; }
  .owner-table, .owner-table tbody, .owner-table tr, .owner-table td { display: block; width: 100%; }
  .owner-table tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .owner-table td { border: 0; padding: 3px 0; white-space: normal; }
  .owner-table td.owner-name { font-size: 18px; font-weight: 600; }
  .owner-table td:nth-child(2)::before { content: 'Role: '; color: var(--ink-soft); }
  .owner-table td:nth-child(3)::before { content: 'Status: '; color: var(--ink-soft); font-weight: 400; }
  .owner-table td:nth-child(4)::before { content: 'Last sign-in: '; color: var(--ink-soft); }
  .owner-table td.owner-actions { display: flex; padding-top: 8px; }
}

/* =====================================================================
   Build 1_72 — the public site: padlocks, the free league, previews, Rules.
   ===================================================================== */
.padlock { width: 0.9em; height: 0.9em; flex: none; vertical-align: -0.08em; margin-right: 0.35em; }
.lock-note { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* A locked card: on show, greyed, and saying why. */
.choice.is-locked { background: #D9DDD6; color: #4B5560; cursor: not-allowed; border: 2px dashed #8A949D; }
.choice.is-locked:hover { transform: none; box-shadow: none; border-color: #8A949D; }
.choice.is-locked .choice-name { display: inline-flex; align-items: center; color: #4B5560; }
.choice.is-locked .choice-note { color: #4B5560; }
.choice.is-locked .lock-note { color: #2D3740; margin-top: 2px; }
.choice-included { cursor: default; border: 2px solid var(--grass); }
.choice-included:hover { transform: none; box-shadow: none; }
.choice-included .choice-go { font-size: 14px; color: var(--grass-dark); font-weight: 600; }
.free-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 9px; border-radius: 999px;
  background: var(--floodlight); color: var(--ink); font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em;
}
.paid-inline { display: inline-flex; align-items: center; color: var(--ink-soft); font-size: 14px; }

/* International: locked modes and Shields. */
.mode-btn.is-locked { background: rgba(255, 255, 255, 0.04); color: #C9D2DA; border-style: dashed; border-color: rgba(255, 255, 255, 0.4); cursor: not-allowed; }
.mode-btn.is-locked:hover { background: rgba(255, 255, 255, 0.04); }
.mode-btn .lock-note { display: inline; font-size: 12px; margin-right: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.shield-btn.is-locked { flex-direction: column; gap: 2px; cursor: not-allowed; }
.shield-btn.is-locked .padlock { margin: 0; }
.shield-btn.is-locked .lock-note { font-size: 12px; font-weight: 600; opacity: 0.95; }
.paid-strip {
  display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); color: #FFFFFF; font-size: 15px; line-height: 1.45;
}
.paid-strip .padlock { margin-top: 3px; }

/* The free league: sizes and typed teams. */
.free-size-input {
  width: 64px; min-height: 44px; text-align: center; font-size: 18px; font-weight: 600;
  border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.free-size-row .quick-name { min-width: 0; overflow-wrap: anywhere; }
.free-total { font-size: 16px; margin: 6px 0 14px; }
.free-div { margin-bottom: 16px; }
.free-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; }
.free-head h3 { font-size: 24px; }
.free-count { font-weight: 600; color: var(--zone-playoff-text); }
.free-count.is-full { color: var(--grass-dark); }
.free-slots {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.free-slots li { display: flex; align-items: center; gap: 8px; }
.free-n { flex: none; width: 2.2em; text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.free-team { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; }
.free-team.is-duplicate { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(179, 55, 43, 0.25); }
.free-paste { margin-top: 12px; }
.free-paste summary { cursor: pointer; font-weight: 600; color: var(--grass-dark); min-height: 32px; }
.free-paste textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px; border: 1px solid var(--rule); border-radius: var(--r-sm); }

/* The owner's preview: a clear strip across the top of every preview page. */
.preview-banner {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: var(--floodlight); color: var(--ink);
}
.preview-text { margin: 0; font-size: 14.5px; line-height: 1.4; max-width: 70ch; }
.preview-links { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-banner .acct-btn { color: var(--ink); border-color: rgba(22, 34, 46, 0.35); background: rgba(255, 255, 255, 0.55); min-height: 38px; }
.preview-banner .acct-btn.is-on { background: var(--ink); color: #fff; }
.has-preview .topbar { position: relative; }

/* Public footer. */
.footer-links { margin-top: 10px !important; }
.footer-links a { color: var(--chalk-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer [data-part="guest-bar"] { margin-bottom: 10px; }

/* Rules. */
.rules-page { padding-bottom: 30px; }
.rules-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.rules-toc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  background: rgba(232, 238, 243, 0.08); border: 1px solid var(--rule-dark); color: var(--chalk); text-decoration: none; font-weight: 600; font-size: 14.5px;
}
.rules-sec { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 16px; scroll-margin-top: calc(var(--topbar-h, 64px) + 12px); }
.rules-sec h2 { font-size: 28px; margin-bottom: 10px; }
.rules-sec p, .rules-sec li { font-size: 16px; line-height: 1.6; max-width: 72ch; }
.rules-sec ol, .rules-sec ul { padding-left: 22px; }
.rules-example { background: var(--paper-alt); padding: 10px 14px; border-radius: var(--r-sm); }
.rules-wrap { margin: 12px 0; border: 1px solid var(--rule); }
.rules-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.rules-table caption { caption-side: top; text-align: left; padding: 10px 12px 6px; color: var(--ink-soft); font-size: 14px; }
.rules-table th, .rules-table td { padding: 9px 10px; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.rules-table thead th { border-bottom: 2px solid var(--ink); }
.rules-table .seed-dot { margin-right: 4px; }
.free-size-card { padding: 12px 16px; margin-bottom: 12px; }
.free-size-card .quick-row { border: 0; padding: 0; }
.free-meetings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.free-meetings-label { font-weight: 600; font-size: 14.5px; }

/* =====================================================================
   Build 1_73 — fixture names never split inside a word.
   Liechtenstein and Kazakhstan stay whole; "North Macedonia" may wrap at
   its space. A name column is never narrower than its longest word: the
   fixture columns give way first, then the fixture list scrolls sideways
   inside its own card rather than clipping or breaking a name.
   ===================================================================== */
.fixture .team-name, .fixture .tn, .cup-fixture .team-name, .cup-fixture .tn,
.intl-match .team-home, .intl-match .team-away, .seed-row-name {
  overflow-wrap: normal; word-break: normal; hyphens: manual;
}
.fixture .team-name, .fixture .tn, .cup-fixture .tn { min-width: auto; }
.fixture,
.cup-fixture { --fx-cols: var(--tick-w) minmax(min-content, 1fr) auto minmax(min-content, 1fr) 32px; }
@media (max-width: 560px) {
  .fixture,
  .cup-fixture { --fx-cols: var(--tick-w) minmax(min-content, 1fr) auto 36px; }
}
/* the list scrolls sideways inside its card if a phone is narrower than a
   fixture's longest words; the page itself never does */
.fixtures, .cup-ties { overflow-x: auto; overflow-y: visible; }
/* beside a table, the fixtures keep the width their names need; the table
   (which already scrolls inside its own card) gives way instead */
.scorebook, .week-grid { grid-template-columns: minmax(min-content, 0.86fr) minmax(0, 1.14fr); }
@media (max-width: 1000px) { .scorebook { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .week-grid { grid-template-columns: minmax(0, 1fr); } }

/* Build 1_73 — team records. */
.rec-pick { padding: 16px 20px; }
.rec-pick select, .cyc-records select, .nl-records select { min-height: 46px; font-size: 16px; max-width: 100%; }
.rec-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 16px 0; }
.rec-tile { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rec-tile strong { font-family: var(--cond); font-size: 30px; line-height: 1; }
.rec-tile span { font-size: 14px; color: var(--ink-soft); }
.rec-note { color: var(--chalk-soft); }
.rec-wrap { margin-top: 12px; }
.rec-table td, .rec-table th { white-space: nowrap; }
.rec-table tr.is-live td { color: var(--ink-soft); }
.rec-table th:nth-child(-n+2), .rec-table td:nth-child(-n+2) { text-align: left; }
.rec-table th:nth-last-child(-n+2), .rec-table td:nth-last-child(-n+2) { text-align: left; }
.rec-of { color: var(--ink-soft); font-size: 13px; }
.rec-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin: 1px 0; }
.rec-champ { background: var(--grass-dark); color: #fff; }
.rec-second { background: #E3E7EA; color: var(--ink); }
.rec-up { background: #DDF0E4; color: var(--zone-promotion-text); }
.rec-down { background: #F6DEDA; color: var(--zone-relegation-text); }
.rec-live, .rec-unknown { background: var(--paper-alt); color: var(--ink-soft); }
.cyc-records, .nl-records { margin-top: 16px; }
.cyc-rec-sum, .nl-rec-sum { font-size: 16px; }
.cyc-rec-champion { font-weight: 700; color: var(--grass-dark); }
.cyc-rec-runner-up, .cyc-rec-semi { font-weight: 600; }
.cyc-rec-na, .cyc-rec-out, .cyc-rec-pending, .cyc-rec-none { color: var(--ink-soft); }

/* Build 1_74: Longest runs on the Team records pages */
.rec-runs { margin-top: 18px; }
.rec-runs h3 { margin: 0 0 4px; }
.runs-table th[scope="row"] { text-align: left; white-space: nowrap; }
.runs-table td { white-space: nowrap; vertical-align: top; }
.runs-table .run-where { display: block; font-size: 13px; color: var(--ink-soft); white-space: normal; min-width: 9em; }
.rec-runs-panel { margin-top: 16px; }
.rec-runs-panel .rec-runs { margin-top: 0; }

/* Build 1_76: private Domestic's two options, and International's link to
   the custom international leagues. */
.choice-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .choice-grid-2 { grid-template-columns: 1fr; } }
.intl-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 12px 0 0; max-width: 620px; color: var(--chalk-soft); font-size: 14px; }
.intl-more-link { appearance: none; background: none; border: 0; padding: 6px 0; min-height: 48px; font: inherit; font-size: 16px; font-weight: 700; color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.intl-more-link::after { content: ' \2192'; }
.intl-more-link.is-current { color: var(--floodlight); }
.intl-more-link:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }

/* =====================================================================
   Build 1_77 — interface improvements
   ===================================================================== */

/* 2. Euro Shield progression: the same button at the top and the bottom of a
   stage. Waiting buttons stay readable and explain themselves. */
.intl-progress {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin: 0 0 16px; padding: 14px 16px;
  background: var(--pitch-deep); border: 2px solid var(--floodlight); border-radius: var(--r-lg);
}
.intl-progress[data-pos="bottom"] { margin: 16px 0 6px; }
.intl-progress .btn-progress {
  background: var(--floodlight); color: var(--ink); border-color: rgba(22, 34, 46, 0.3);
  min-height: 52px; font-size: 18px; font-weight: 700;
}
.intl-progress .btn-progress:hover { background: #FFC71F; }
.intl-progress .btn-progress:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.intl-progress.is-waiting { border-color: rgba(232, 238, 243, 0.45); border-style: dashed; }
.intl-progress.is-waiting .btn-progress { background: #C9D2DA; color: #26313B; border-color: #8A949D; cursor: not-allowed; }
.intl-progress.is-waiting .btn-progress:hover { background: #C9D2DA; }
.intl-progress-note { margin: 0; flex: 1 1 260px; min-width: 0; color: var(--chalk); font-size: 15px; line-height: 1.4; }
.intl-progress-note strong { color: var(--floodlight); }
@media (max-width: 600px) {
  .intl-progress .btn-progress { width: 100%; }
}

/* 3. The play-off rounds' bulk roll: a full-size, high-contrast button. */
.intl-auto-strong { margin: 10px 0 16px; }
.btn-roll-all {
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  min-height: 50px; padding: 12px 22px; font-size: 17px; font-weight: 700;
}
.btn-roll-all:hover { background: #24384A; }
.btn-roll-all:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
@media (max-width: 600px) { .btn-roll-all { width: 100%; } }

/* 4. Play-off outcome summaries: one fact per line, wrapping at spaces. */
.intl .tie-status .tie-outcome-agg,
.intl .tie-status .tie-outcome-winner,
.intl .tie-status .tie-outcome-pens { display: block; flex: 0 0 100%; white-space: normal; overflow-wrap: break-word; }
.intl .tie-status .tie-outcome-agg { color: var(--ink); }
.intl .tie-status .tie-outcome-label { font-weight: 700; }
.intl .tie-status .tie-outcome-winner { color: var(--grass-dark); font-weight: 600; }
.intl .tie-status .tie-outcome-winner strong { font-weight: 700; }
.intl .tie-status .tie-outcome-pens { color: var(--ink); font-weight: 600; font-size: inherit; }
@media (min-width: 721px) {
  .intl .tie:not(.tie-bye):not(.tie-locked) > .tie-status > .tie-outcome-agg,
  .intl .tie:not(.tie-bye):not(.tie-locked) > .tie-status > .tie-outcome-winner,
  .intl .tie:not(.tie-bye):not(.tie-locked) > .tie-status > .tie-outcome-pens { line-height: 19px; font-size: 14px; }
}

/* 5. Euro Shield's three stage tabs: large, coloured, and an unmistakable
   selected state (yellow with a thick outline and a tick). */
.intl-euro .intl-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  border-bottom: 0; margin: 18px 0 20px; overflow: visible;
}
.intl-euro .intl-tabs .divtab {
  min-height: 60px; padding: 10px 12px; border-radius: var(--r-lg);
  font-family: var(--cond); font-size: 21px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  color: #fff; border: 3px solid transparent; line-height: 1.1; white-space: normal; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}
.intl-euro .intl-tabs .divtab[data-tab="europe"] { background: #17703D; }
.intl-euro .intl-tabs .divtab[data-tab="qualified"] { background: #1D5FA3; }
.intl-euro .intl-tabs .divtab[data-tab="finals"] { background: #5A3E9E; }
.intl-euro .intl-tabs .divtab:hover { filter: brightness(1.12); color: #fff; }
.intl-euro .intl-tabs .divtab[aria-selected="true"] {
  background: var(--floodlight); color: var(--ink); border-color: #fff;
  box-shadow: 0 0 0 3px var(--ink), 0 4px 0 rgba(0, 0, 0, 0.3);
}
.intl-euro .intl-tabs .divtab[aria-selected="true"]::before { content: '\2713'; font-size: 0.9em; }
.intl-euro .intl-tabs .divtab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.intl-euro .intl-tabs .divtab.is-locked,
.intl-euro .intl-tabs .divtab[disabled] {
  opacity: 1; background: #5C6670; color: #E6EAEE; border: 3px dashed #AEB7BF; box-shadow: none; filter: none;
}
.intl-euro .intl-tabs .divtab .intl-lock { font-size: 13px; text-transform: none; font-family: var(--sans); font-weight: 600; }
@media (max-width: 520px) {
  .intl-euro .intl-tabs { gap: 6px; }
  .intl-euro .intl-tabs .divtab { font-size: 17px; min-height: 58px; padding: 8px 6px; flex-direction: column; gap: 2px; }
}

/* 7. The main navigation: bigger, bolder, better spaced, and every tab
   visibly a button, selected or not. */
.site-nav { gap: 8px; }
.nav-tab {
  font-size: 19px; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; padding: 10px 18px; min-height: 48px;
  border: 2px solid rgba(232, 238, 243, 0.35); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06);
}
.nav-tab:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(232, 238, 243, 0.7); }
.nav-tab[aria-current="page"] {
  color: var(--ink); background: var(--floodlight); border-color: var(--floodlight);
  box-shadow: inset 0 -4px 0 rgba(22, 34, 46, 0.35);
}
.nav-tab:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.nav-toggle { width: auto; min-width: 48px; height: 48px; }
@media (min-width: 761px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; width: auto; flex: 1 1 auto; order: 0; flex-direction: row; align-items: center; padding-top: 0; margin-top: 0; border-top: 0; }
  .nav-tab { text-align: center; }
}
@media (min-width: 761px) and (max-width: 1120px) {
  .site-nav { flex: 1 1 100%; order: 3; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .site-nav.is-open { gap: 8px; }
  .site-nav .nav-tab { min-height: 54px; font-size: 20px; padding: 12px 16px; }
}

/* 6. International home: the free cards side by side, stacked (Euro Shield
   first) on a phone by the shared .choice-grid-2 rule. */
.intl-free-grid .choice-lead { min-height: 220px; }
.intl-free-grid .free-badge { vertical-align: middle; }
@media (max-width: 700px) { .intl-free-grid .choice-lead { min-height: 0; } }

/* 9. Custom International League builder. */
.nl-seedings .nl-seed-q { font-size: 17px; margin: 4px 0 6px; }
.nl-seed-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 12px; font-size: 15px; }
.nl-seed-count { display: inline-flex; align-items: center; gap: 6px; }
.nl-seed-choice { gap: 10px; }
.nl-seed-choice .btn { min-height: 48px; }
.nl-rating-word { font-size: 14px; color: var(--ink-soft); margin-left: auto; }
.nl-paid-boundary { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.nl-paid-boundary .padlock { width: 14px; height: 14px; flex: none; align-self: center; }
p.notice.nl-paid-boundary { display: flex; margin: 0; flex: 1 1 100%; }

/* =====================================================================
   Build 1_78 — the approved dicefooty.com logo in the top bar. The image
   keeps its own aspect ratio (height set, width auto) and is never
   squeezed: on a narrow screen it simply gets smaller.
   ===================================================================== */
.wordmark { padding: 2px 0; flex: none; min-height: 44px; }
.wordmark-logo { display: block; height: 46px; width: auto; max-width: none; }
.wordmark:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 1120px) { .wordmark-logo { height: 42px; } }
@media (max-width: 420px) { .wordmark-logo { height: 36px; } }
.footer-credit { margin-top: 6px; font-size: 13px; color: var(--chalk-soft); }
.footer-links a + a { margin-left: 16px; }

/* ---- Build 1_78: a Shield's own screen ------------------------------- */
.btn-back {
  background: transparent; color: #fff; border: 2px solid var(--floodlight);
  min-height: 46px; padding: 9px 16px; font-size: 16px; font-weight: 700; border-radius: var(--r-lg);
}
.btn-back:hover { background: rgba(242, 183, 5, 0.16); }
.btn-back:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Manual dice / Digital dice: two big, obvious choices. */
.intl .intl-method-chip {
  min-height: 50px; padding: 10px 22px; font-size: 17px; font-weight: 700;
  border: 2px solid var(--ink); border-radius: var(--r-lg); background: #fff; color: var(--ink);
}
.intl .intl-method-chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: inset 0 -4px 0 var(--floodlight); }
.intl .intl-method-chip[aria-pressed="true"]::before { content: '\2713\00a0'; }
.intl > .playmethod .playmethod-label { font-size: 15px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 520px) {
  .intl > .playmethod .chipset { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
}

/* Every Shield's stage tabs as large buttons (Euro Shield keeps its own
   three colours). Selected: yellow with a tick. Done: a green "done" tag.
   Locked: grey and dashed. */
.intl .intl-stage-tabs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
  border-bottom: 0; margin: 18px 0 20px; overflow: visible;
}
:where(.intl) :where(.intl-stage-tabs) .divtab {
  min-height: 60px; padding: 10px 12px; border-radius: var(--r-lg);
  font-family: var(--cond); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  color: #fff; background: #17703D; border: 3px solid transparent; line-height: 1.1; white-space: normal; text-align: center;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}
:where(.intl) :where(.intl-stage-tabs) .divtab:hover { filter: brightness(1.12); color: #fff; }
:where(.intl) :where(.intl-stage-tabs) .divtab[aria-selected="true"] {
  background: var(--floodlight); color: var(--ink); border-color: #fff;
  box-shadow: 0 0 0 3px var(--ink), 0 4px 0 rgba(0, 0, 0, 0.3);
}
:where(.intl) :where(.intl-stage-tabs) .divtab[aria-selected="true"]::before { content: '\2713'; font-size: 0.9em; }
:where(.intl) :where(.intl-stage-tabs) .divtab.is-locked,
:where(.intl) :where(.intl-stage-tabs) .divtab[disabled] { opacity: 1; background: #5C6670; color: #E6EAEE; border: 3px dashed #AEB7BF; box-shadow: none; filter: none; cursor: not-allowed; }
.intl .intl-done {
  display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 999px; background: #fff; color: var(--grass-dark);
}
.intl .intl-done::before { content: '\2713\00a0'; }
.intl .intl-stage-tabs .intl-lock { font-size: 13px; text-transform: none; font-family: var(--sans); font-weight: 600; }
@media (max-width: 520px) {
  .intl .intl-stage-tabs { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  :where(.intl) :where(.intl-stage-tabs) .divtab { font-size: 16px; min-height: 56px; padding: 8px 6px; flex-direction: column; gap: 2px; }
}

/* Round tabs (Groups, Play-offs, …): bigger, with the same states. */
.intl .intl-subtabs { gap: 10px; margin-bottom: 18px; }
.intl .intl-subtabs .viewtab { min-height: 50px; padding: 10px 20px; font-size: 18px; font-weight: 700; border-width: 2px; }
.intl .intl-subtabs .viewtab[aria-selected="true"] { box-shadow: inset 0 -4px 0 var(--floodlight); }
.intl .intl-subtabs .viewtab.is-done:not([aria-selected="true"]) { border-color: rgba(255, 255, 255, 0.55); }

/* Where you are: four steps from setting up to the finals. */
.intl-journey { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; counter-reset: none; }
.intl-journey li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.22); color: var(--chalk); font-size: 15px; font-weight: 600;
}
.intl-journey-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 13px; font-weight: 700; }
.intl-journey li.is-done .intl-journey-n { background: var(--grass); color: #fff; }
.intl-journey li.is-current { background: var(--floodlight); color: var(--ink); }
.intl-journey li.is-current .intl-journey-n { background: var(--ink); color: #fff; }

/* Intercontinental play-offs: two short lines, and both legs shown even
   while a team is still to come. */
.intl-ic-line { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.intl-ic-line + .how-it-works { margin-top: 8px; }
.intl-ph-match .intl-ph { color: var(--ink-soft); font-style: italic; }
.intl-ph-match .score-pair { color: var(--ink-soft); font-weight: 600; }

/* The private International home. */
.intl-pick-card .choice-go { font-size: 14px; color: var(--grass-dark); font-weight: 700; }
.intl-euro .intl-stage-tabs, .intl-african .intl-stage-tabs, .intl-asian .intl-stage-tabs,
.intl-american .intl-stage-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intl-combined .intl-stage-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) {
  .intl-euro .intl-stage-tabs, .intl-african .intl-stage-tabs, .intl-asian .intl-stage-tabs,
  .intl-american .intl-stage-tabs, .intl-combined .intl-stage-tabs { gap: 6px; }
}

.footer-credit a { color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; }

/* Build 1_79: the creator credit on the home page, under the introduction
   and above the play buttons. Secondary to the buttons, plainly a link. */
.hero-credit { margin: -6px 0 22px; font-size: 16px; line-height: 1.4; color: var(--chalk); }
.hero-credit a {
  color: var(--floodlight); font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 3px;
  display: inline-block; padding: 6px 2px; margin: -6px 0;
}
.hero-credit a:hover { color: #FFD24D; }
.hero-credit a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 3px; }
@media (max-width: 600px) { .hero-credit { font-size: 15px; margin: -4px 0 20px; } }

/* ======================================================= build 1_80 ===
 * Matt's 12 October brief. Everything below is new or overrides earlier rules
 * on purpose, and is kept together so it can be read as one piece. */

/* --- the season-end button: filled floodlight yellow, dark ink, readable in
   every state, wrapping cleanly on a narrow screen. Dark ink on #F2B705 is
   about 11:1; the hover and pressed yellows stay above 9:1. */
.btn-honours, .btn-next {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; max-width: 100%;
  padding: 13px 24px; border-radius: 10px;
  font-size: 17.5px; font-weight: 800; line-height: 1.25; text-align: center;
  white-space: normal; overflow-wrap: anywhere;
  background: var(--floodlight); color: var(--ink);
  border: 2px solid #C99700;
  box-shadow: 0 3px 0 #A87D00;
}
.btn-honours:hover, .btn-next:hover { background: #FFC933; color: var(--ink); border-color: #A87D00; }
.btn-honours:active, .btn-next:active { background: #E0A800; color: var(--ink); box-shadow: 0 1px 0 #A87D00; transform: translateY(2px); }
.btn-honours:focus-visible, .btn-next:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
.panel .btn-honours:focus-visible, .panel .btn-next:focus-visible { outline-color: var(--ink); box-shadow: none; }
.btn-arrow { font-size: 1.15em; line-height: 1; }
.btn-next { background: var(--grass); color: #fff; border-color: #135C32; box-shadow: 0 3px 0 #0E4A27; }
.btn-next:hover { background: #24A05A; color: #fff; border-color: #0E4A27; }
.btn-next:active { background: var(--grass-dark); color: #fff; }
@media (max-width: 520px) {
  .btn-honours, .btn-next { width: 100%; font-size: 17px; padding: 13px 16px; }
}
.season-bar { gap: 12px; align-items: center; }
.season-bar-note { color: var(--chalk); font-size: 15px; }

/* --- "Do teams go up and down?" */
.movement-none { margin: 12px 0 16px; font-weight: 600; }

/* --- Domestic: one-off or continuous, side by side (stacked on a phone) */
.dom-entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 760px) { .dom-entry { grid-template-columns: 1fr; } }
.dom-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dom-card { width: 100%; }
.dom-lede { font-weight: 700; font-size: 17px; color: var(--ink); }
.choice.is-locked .dom-lede { color: inherit; }
.paid-badge { background: var(--super); color: #fff; }
.dom-subs { display: grid; gap: 8px; }
.dom-sub {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name go" "note go";
  align-items: center; gap: 2px 14px; text-align: left; width: 100%;
  min-height: 56px; padding: 12px 16px; border-radius: 10px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 2px solid var(--rule);
  font-family: var(--sans);
}
.dom-sub:hover { border-color: var(--grass); background: #fff; }
.dom-sub:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.dom-sub-name { grid-area: name; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.dom-sub-note { grid-area: note; font-size: 14px; color: var(--ink-soft); }
.dom-sub-go { grid-area: go; font-size: 22px; font-weight: 700; color: var(--grass-dark); }
.dom-sub.is-locked { background: rgba(250, 250, 247, 0.55); cursor: not-allowed; }
.dom-sub.is-locked .dom-sub-go { color: var(--ink-soft); }
.dom-pick { margin: 0; color: var(--chalk); }
.dom-pick select { width: 100%; min-height: 44px; }
.build-bar .nl-bar-actions { flex-wrap: wrap; gap: 10px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--grass-dark); text-decoration: underline; cursor: pointer; }
.build-empty h2 { margin-top: 0; }
.build-season-chips { margin: 4px 0 12px; flex-wrap: wrap; }
.season-two { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.season-two-line { margin: 0; font-size: 17px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; flex: 1 1 320px; }
.season-two-line .padlock { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.season-two.is-locked { border-left: 5px solid var(--super); }
.dom-card .choice-name { font-size: clamp(24px, 3vw, 32px); }
.dom-sub.is-locked { background: #D9DDD5; border-color: #C3C9BF; }
.dom-sub.is-locked .dom-sub-note { color: #3F4C58; }

/* ======================================== build 1_81: the Shield header ===
 * Items 4, 5 and 8 of the 12 October brief. Order: where you are, the
 * finals rounds (during the finals), the next thing to do, then the dice. */
.nav-arrow { list-style: none; display: flex; align-items: center; color: var(--floodlight); font-size: 26px; font-weight: 800; padding: 0 2px; }
.nav-tick { color: var(--grass); font-weight: 900; }

/* stage nav: Qualifying → Qualified teams → Shield finals */
.snav { margin: 16px 0 14px; }
.snav-list { display: flex; align-items: stretch; gap: 6px; list-style: none; margin: 0; padding: 0; }
.snav-item { flex: 1 1 0; min-width: 0; display: flex; }
.snav-step {
  flex: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px;
  min-height: 62px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  font-family: var(--cond); font-size: 21px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.1;
  color: #fff; background: #1B6B3E; border: 3px solid rgba(255, 255, 255, 0.18); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}
.snav-step:hover { filter: brightness(1.1); }
.snav-step:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.snav-n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-family: var(--sans); font-size: 15px; font-weight: 800; background: rgba(255, 255, 255, 0.92); color: var(--ink);
}
.snav-step.is-done .snav-n { background: #fff; color: var(--grass-dark); }
.snav-step.is-current { background: var(--floodlight); color: var(--ink); border-color: #fff; box-shadow: 0 0 0 3px var(--ink), 0 4px 0 rgba(0, 0, 0, 0.3); }
.snav-step.is-current .snav-n { background: var(--ink); color: #fff; }
.snav-step.is-current .intl-done { background: var(--grass-dark); color: #fff; }
.snav-step.is-locked, .snav-step[disabled] { background: #5C6670; color: #E6EAEE; border: 3px dashed #AEB7BF; box-shadow: none; filter: none; cursor: not-allowed; }
.snav-step .intl-lock { font-size: 13px; text-transform: none; font-family: var(--sans); font-weight: 600; }
.snav.is-compact .snav-step { min-height: 42px; font-size: 16px; padding: 6px 10px; box-shadow: none; }
.snav.is-compact .snav-n { width: 22px; height: 22px; font-size: 12px; }
.snav.is-compact .nav-arrow { font-size: 18px; }
@media (max-width: 600px) {
  .snav-list { gap: 2px; }
  .snav-step { font-size: 15px; min-height: 64px; padding: 8px 4px; flex-direction: column; gap: 3px; }
  .snav-n { width: 24px; height: 24px; font-size: 13px; }
  .nav-arrow { font-size: 18px; padding: 0; }
  .snav.is-compact .snav-step { font-size: 13px; min-height: 44px; }
}

/* finals rounds: Groups → Last 16 → Quarter-finals → Semi-finals → Final */
.rnav { margin: 4px 0 14px; padding: 14px; border-radius: 14px; background: var(--paper); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.rnav-head { margin: 0 0 10px; font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.rnav-list { display: flex; align-items: stretch; gap: 4px; list-style: none; margin: 0; padding: 0; }
.rnav .nav-arrow { color: var(--ink-soft); font-size: 20px; }
.rnav-item { flex: 1 1 0; min-width: 0; display: flex; }
.rnav-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 70px; padding: 8px 6px; border-radius: 10px; cursor: pointer; text-align: center;
  font-family: var(--sans); font-size: 18px; font-weight: 800; line-height: 1.15;
  background: #fff; color: var(--ink); border: 3px solid var(--rule);
}
.rnav-step:hover:not([disabled]) { border-color: var(--grass); }
.rnav-step:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.rnav-step.is-done { background: #E7F3EA; border-color: #8CC7A1; }
.rnav .intl-done { background: var(--grass-dark); color: #fff; }
.rnav-step.is-next { border-color: var(--grass); box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.25); }
.rnav-step.is-current { background: var(--floodlight); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 #A87D00; }
.rnav-step.is-locked, .rnav-step[disabled] { background: #ECEDEA; color: #6B7680; border-style: dashed; cursor: not-allowed; }
.rnav-tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; background: var(--grass); color: #fff; }
.rnav-tag-wait { background: transparent; color: #6B7680; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  .rnav-step.is-next:not(.is-current) { animation: rnav-glow 1.8s ease-in-out infinite; }
  @keyframes rnav-glow { 50% { box-shadow: 0 0 0 6px rgba(31, 138, 76, 0.18); } }
}
@media (max-width: 700px) {
  .rnav { padding: 10px 8px; }
  .rnav-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .rnav .nav-arrow { display: none; }
  .rnav-step { font-size: 15px; min-height: 60px; }
}

/* the next thing to do */
.intl-task {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 0 0 12px; padding: 14px 18px; border-radius: 12px;
  background: var(--paper); color: var(--ink); border-left: 6px solid var(--floodlight);
}
.intl .intl-task.intl-next { font-size: 18px; }
.intl-task-line, .intl-task-done { margin: 0; flex: 1 1 280px; font-size: 18px; font-weight: 700; color: var(--ink); }
.intl-task-help { margin: 0; flex: 1 1 100%; font-size: 15px; color: var(--ink-soft); }
.intl-task .btn-next { flex: none; }

/* the dice: small and secondary */
.intl > .dice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; margin: 0 0 16px; background: rgba(250, 250, 247, 0.92); border-radius: 10px; }
.intl > .dice-row .dice-row-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.intl > .dice-row .chipset { display: inline-flex; gap: 4px; width: auto; }
.intl .dice-row .intl-method-chip { min-height: 40px; padding: 6px 12px; font-size: 14.5px; }
.intl > .dice-row .dice-row-hint { flex: 1 1 180px; font-size: 14px; color: var(--ink-soft); }
.intl > .dice-row .pulse-sound { margin-left: 0; }
.dice-help { font-size: 14px; color: var(--ink-soft); }
.dice-help summary { cursor: pointer; text-decoration: underline; min-height: 32px; display: inline-flex; align-items: center; }
.dice-help p { margin: 4px 0 0; }
@media (max-width: 520px) {
  .intl > .dice-row .chipset { display: inline-flex; width: auto; }
}

/* World Shield continents: parallel sections, each with its own colour */
.cnav { margin: 16px 0 14px; }
.cnav-head { margin: 0 0 8px; font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chalk); }
.cnav-head span { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 500; color: var(--chalk-soft); }
.cnav-head-after { margin-top: 14px; }
.cnav-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.cnav-grid li, .cnav-after li { display: flex; }
.cnav-tile {
  --c: #2563EB;
  flex: 1; display: grid; grid-template-columns: 64px 1fr; grid-template-areas: "map name" "map status";
  align-items: center; column-gap: 12px; row-gap: 2px; text-align: left;
  min-height: 72px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 3px solid transparent; border-top: 7px solid var(--c);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); font-family: var(--sans);
}
.cnav-tile:hover { border-color: var(--c); border-top-width: 7px; }
.cnav-tile:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cnav-map { grid-area: map; width: 64px; height: 32px; }
.cnav-map .is-dim { fill: #C9CEC6; }
.cnav-map .is-lit { fill: var(--c); }
.cnav-name { grid-area: name; font-size: 18px; font-weight: 800; line-height: 1.15; }
.cnav-status, .cnav-tile .intl-done { grid-area: status; justify-self: start; }
.cnav-status { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.cnav-status-draw { color: #A85B0B; }
.cnav-status-play { color: var(--ink); }
.cnav .intl-done { background: var(--grass-dark); color: #fff; }
.cnav-tile.is-current { background: color-mix(in srgb, var(--c) 14%, #fff); border-color: var(--c); border-top-width: 7px; box-shadow: 0 0 0 3px var(--ink), 0 4px 0 rgba(0, 0, 0, 0.3); }
.cnav-tile.is-current .cnav-name::after { content: ' \2190 you are here'; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.cnav-europe { --c: #2563EB; }
.cnav-asia { --c: #D9283E; }
.cnav-africa { --c: #D97706; }
.cnav-north-america { --c: #7C3AED; }
.cnav-south-america { --c: #15803D; }
.cnav-oceania { --c: #0E7490; }
.cnav-after { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.cnav-after-btn {
  flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px;
  min-height: 52px; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: center;
  background: transparent; color: var(--chalk); border: 2px solid rgba(232, 238, 243, 0.55);
  font-family: var(--sans); font-size: 16px; font-weight: 700;
}
.cnav-after-btn:hover { background: rgba(232, 238, 243, 0.1); }
.cnav-after-btn.is-current { background: var(--floodlight); color: var(--ink); border-color: #fff; }
.cnav-after-btn.is-locked, .cnav-after-btn[disabled] { border-style: dashed; color: #B9C3CC; cursor: not-allowed; }
.cnav-after-btn .intl-lock { font-size: 13px; font-weight: 600; }
.cnav.is-compact .cnav-tile { min-height: 48px; grid-template-columns: 40px 1fr; padding: 6px 8px; border-top-width: 5px; }
.cnav.is-compact .cnav-map { width: 40px; height: 20px; }
.cnav.is-compact .cnav-name { font-size: 15px; }
@media (max-width: 760px) {
  .cnav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cnav-tile { grid-template-columns: 1fr; grid-template-areas: "map" "name" "status"; min-height: 92px; padding: 8px 10px; }
  .cnav-map { width: 56px; height: 28px; }
  .cnav-name { font-size: 16px; }
  .cnav-tile.is-current .cnav-name::after { content: ''; }
  .cnav-after { grid-template-columns: 1fr; gap: 6px; }
}
.cnav-tile { grid-template-columns: 84px 1fr; }
.cnav-map { width: 84px; height: 42px; }
.cnav-map .is-dim { fill: #D3D8D0; }
@media (max-width: 760px) { .cnav-tile { grid-template-columns: 1fr; } .cnav-map { width: 76px; height: 38px; } }

/* ===================== build 1_82: fuller celebrations ===================
 * Fairy swirls around the winner, and the Sound / Skip controls. */
.cs-fairy {
  position: absolute; display: block; width: 0; height: 0;
  transform: rotate(var(--start));
  animation: cs-swirl var(--dur) cubic-bezier(0.45, 0.05, 0.4, 0.95) var(--delay) 2 both;
}
.cs-fairy-dot {
  position: absolute; left: -4px; top: -4px; display: block; width: 8px; height: 8px; border-radius: 50%;
  background: #FFF6C9;
  box-shadow: 0 0 10px 3px rgba(255, 226, 120, 0.95), 0 0 22px 6px rgba(242, 183, 5, 0.45);
  opacity: 0;
  transform: translateX(var(--r)) scale(var(--s));
  animation: cs-twinkle var(--dur) ease-in-out calc(var(--delay) + var(--lag)) 2 both;
}
@keyframes cs-swirl {
  0%   { transform: rotate(var(--start)) scale(0.35); }
  50%  { transform: rotate(calc(var(--start) + var(--turn) / 2)) scale(1); }
  100% { transform: rotate(calc(var(--start) + var(--turn))) scale(0.55); }
}
@keyframes cs-twinkle {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  40%  { opacity: 0.55; }
  60%  { opacity: 1; }
  100% { opacity: 0; }
}
.cs-controls {
  position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; gap: 8px; pointer-events: auto;
}
.cs-ctl {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 700 15px var(--sans); color: var(--ink); background: rgba(250, 250, 247, 0.95);
  border: 2px solid var(--ink); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.cs-ctl:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.champion-show { contain: layout paint; }
.cup-champion .cup-champion-verdict { display: block; }
@media (prefers-reduced-motion: reduce) {
  .champion-show .cs-fairy, .champion-show .cs-fairy-dot { animation: none; opacity: 0; }
}

/* ====== build 1_82: international finals — result first, celebration second */
.intl-reveal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 16px 0; padding: 16px 18px; border-radius: 12px;
  background: #FFF8DB; color: var(--ink); border: 3px solid var(--floodlight);
}
.intl-reveal p { margin: 0; flex: 1 1 280px; font-size: 18px; font-weight: 700; }
.intl-reveal .intl-reveal-help { flex-basis: 100%; font-size: 15px; font-weight: 500; color: var(--ink-soft); }

/* ============================ build 1_83: international group tables ===
 * The Form column was clipped on an iPad (Matt, IMG_0675–0678). Compact
 * names do most of it; the rest is layout: between 900 and 1099px wide the
 * table now sits above its group's fixtures (as on a tablet in portrait),
 * and from 1100px the table column is given the room a full table needs. */
@media (min-width: 900px) and (max-width: 1099px) {
  .intl-split { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
}
@media (min-width: 1100px) {
  .intl-split { grid-template-columns: minmax(0, 1fr) minmax(540px, 1fr); }
}
@media (min-width: 521px) {
  table.league.cup-group-table.has-form th.col-form { min-width: 92px; white-space: nowrap; }
}
table.league.cup-group-table.has-form td.col-form { white-space: nowrap; }
table.league.cup-group-table .col-team .team-name { white-space: nowrap; }
@media (max-width: 520px) {
  /* On a phone a two-word compact name may take two lines, so all six form
     boxes and every number stay in the card without sideways scrolling. */
  table.league.cup-group-table .col-team .team-name { white-space: normal; overflow-wrap: normal; }
  table.league.cup-group-table td.col-team { min-width: 0; }
  table.league.cup-group-table .col-team .flag { margin-right: 3px; }
}

/* ============================== build 1_83: International Roll of Honour === */
.rec { --rec-ink: var(--ink); }
.rec-search { padding: 20px; }
.rec-search-label { display: block; font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.rec-search-label.rec-small { font-size: 16px; }
.rec-q, .rec-opp-q {
  width: 100%; min-height: 58px; padding: 12px 16px; border-radius: 12px;
  font: 600 20px var(--sans); color: var(--ink); background: #fff;
  border: 3px solid var(--grass); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}
.rec-opp-q { min-height: 50px; font-size: 18px; }
.rec-q:focus, .rec-opp-q:focus { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.rec-help { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.rec-sugg { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.rec-opt {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px;
  border-radius: 10px; border: 2px solid var(--rule); background: #fff; color: var(--ink);
  font: 700 18px var(--sans); text-align: left; cursor: pointer;
}
.rec-opt:hover, .rec-opt:focus-visible { border-color: var(--grass); background: #EAF5EE; outline: none; }
.rec-opt.is-first { border-color: var(--grass); }
.rec-nomatch { margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; background: #FFF4E5; color: var(--ink); font-weight: 600; }
.rec-overview-link { margin: 12px 0 16px; }
.rec-muted { color: var(--ink-soft); font-weight: 500; }
.rec-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; flex: none; }
.rec-dot-open { background: #fff; border: 2px dashed #8A96A0; width: 12px; height: 12px; box-sizing: border-box; }
.rec-table th, .rec-table td { vertical-align: top; }
.rec-ed-in-progress, .rec-ed-on-hold, .rec-ed-not-started, .rec-ed-unreadable { color: var(--ink-soft); font-style: italic; }

.rec-country-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rec-country-top h2 { margin: 0; font-size: 28px; }
.rec-sub { margin: 2px 0 0; color: var(--ink-soft); }
.rec-flag .flag, .rec-flag img, .rec-flag svg { width: 48px; height: auto; }
.rec-change { margin-left: auto; min-height: 44px; }
.rec-elig h3 { margin: 16px 0 8px; font-size: 18px; }
.rec-elig-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rec-elig-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 2px solid var(--c); font-size: 15px; }
.rec-elig-chip .rec-muted { flex-basis: 100%; font-size: 13.5px; }

.rec-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 16px 0; }
.rec-cat {
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  font: 800 17px var(--sans); text-align: left; color: var(--ink); background: var(--paper); border: 3px solid transparent;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}
.rec-cat:hover { border-color: var(--grass); }
.rec-cat:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rec-cat.is-current { background: var(--floodlight); border-color: var(--ink); }
.rec-cat-icon { font-size: 22px; width: 28px; text-align: center; }
.rec-cat-go { margin-left: auto; font-size: 24px; color: var(--grass-dark); }
.rec-cat.is-current .rec-cat-go { color: var(--ink); }
.rec-body-head { margin: 0 0 12px; font-size: 22px; }
.rec-subhead { margin: 20px 0 8px; font-size: 17px; }
.rec-empty { padding: 12px 14px; border-radius: 10px; background: var(--paper-alt); font-weight: 600; color: var(--ink); }

.rec-honours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rec-honour { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: #fff; border: 2px solid var(--rule); border-top: 6px solid var(--c); }
.rec-honour-name { font-weight: 700; }
.rec-honour-n { font-size: 26px; }
.rec-honour.has-titles { background: #FFF9E0; }

.rec-hist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rec-hist { padding: 14px; border-radius: 12px; background: #fff; border: 2px solid var(--rule); border-top: 6px solid var(--c); }
.rec-hist h4 { margin: 0 0 6px; font-size: 18px; }
.rec-hist-sum { margin: 0 0 8px; }
.rec-outcomes { margin: 0; display: grid; gap: 2px; }
.rec-outcomes div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.rec-outcomes dt { font-weight: 600; }
.rec-outcomes dd { margin: 0; font-weight: 800; min-width: 2ch; text-align: right; }
.rec-outcomes .is-dnq { border-bottom: 0; }
.rec-exits { margin: 8px 0 0; font-size: 14.5px; }

.rec-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.rec-seg-btn { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--rule); background: #fff; color: var(--ink); font: 700 15.5px var(--sans); cursor: pointer; display: inline-flex; align-items: center; }
.rec-seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.rec-seg-btn:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.rec-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.rec-chart { margin: 0; padding: 14px; border-radius: 12px; background: #fff; border: 2px solid var(--rule); }
.rec-chart figcaption { font-weight: 800; margin-bottom: 10px; }
.rec-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin: 0 0 12px; }
.rec-tiles > div { padding: 10px; border-radius: 10px; background: var(--paper-alt); text-align: center; }
.rec-tiles strong { display: block; font-size: 26px; line-height: 1.1; }
.rec-tiles span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.rec-tiles .is-w strong { color: #17703D; } .rec-tiles .is-l strong { color: #A83024; } .rec-tiles .is-d strong { color: #4F5B65; }
.rec-tiles .is-gf strong { color: #1D4ED8; } .rec-tiles .is-ga strong { color: #B45309; }
.rec-pie { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rec-pie svg { width: 150px; height: 150px; flex: none; }
.rec-pie-label { font: 800 11px var(--sans); fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, 0.35); stroke-width: 2px; }
.rec-pie.is-empty .rec-empty { flex: 1 1 160px; margin: 0; }
.rec-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15.5px; }
.rec-legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; }

.rec-streaks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rec-streak { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: #fff; border: 2px solid var(--rule); }
.rec-streak > span:first-child { font-weight: 700; }
.rec-streak strong { font-size: 26px; }
.rec-streak.is-won { border-left: 6px solid #1F8A4C; } .rec-streak.is-unbeaten { border-left: 6px solid #2563EB; } .rec-streak.is-lost { border-left: 6px solid #C0392B; }

.rec-h2h { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; margin: 0 0 14px; }
.rec-h2h-side { padding: 14px; border-radius: 12px; background: #fff; border: 2px solid var(--rule); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rec-h2h-side strong { font-size: 20px; }
.rec-vs { align-self: center; font: 800 22px var(--cond); color: var(--ink-soft); }
.rec-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rec-meetings { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 600px) {
  .rec-h2h { grid-template-columns: 1fr; }
  .rec-vs { justify-self: center; }
  .rec-tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-cats { grid-template-columns: 1fr; }
  .rec-search-label { font-size: 20px; }
}

.rec-chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.rec-bars { display: block; min-width: 100%; font-family: var(--sans); }
.rec-axis { font-size: 12px; fill: var(--ink-soft); font-weight: 600; }
.rec-grid { stroke: #E3E6DF; stroke-width: 1; }
.rec-base { stroke: #8A96A0; stroke-width: 1.5; }
.rec-bar { cursor: pointer; outline: none; }
.rec-bar:hover rect, .rec-bar:focus rect { stroke: var(--ink); stroke-width: 2; }
.rec-bar.is-on rect { stroke: var(--ink); stroke-width: 3; }
.rec-bar-star { font-size: 14px; fill: #B7791F; }
.rec-bar-open { font: 800 11px var(--sans); fill: var(--ink-soft); }
/* Build 1_99: the progress chart at its real size, never stretched. */
.rec-bars.rec-bars-compact { min-width: 0; width: auto; max-width: none; height: auto; }
.rec-axis-future { fill: #8C958B; font-weight: 500; }
.rec-picked { min-height: 26px; margin: 8px 0; font-size: 16px; }
@media (max-width: 600px) {
  .rec-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-pie svg { width: 130px; height: 130px; }
}

/* ---------------------------------------------------------------------------
   Build 1_84 — private online saving: status pill, panels that pause play.
   --------------------------------------------------------------------------- */
.cloud-status {
  position: fixed; z-index: 60;
  left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  font: 600 0.9rem/1.2 var(--sans);
}
.cloud-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chalk-soft); flex: none; }
.cloud-status[data-state="saved"] .cloud-dot { background: var(--grass); }
.cloud-status[data-state="saving"] .cloud-dot,
.cloud-status[data-state="loading"] .cloud-dot { background: var(--floodlight); }
.cloud-status[data-state="failed"] .cloud-dot,
.cloud-status[data-state="offline"] .cloud-dot,
.cloud-status[data-state="conflict"] .cloud-dot { background: var(--danger); }
.cloud-loading .panel { padding: 22px 24px; }
.cloud-loading-line { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; }
.cloud-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--rule); border-top-color: var(--grass);
  animation: cloud-spin 0.9s linear infinite;
}
@keyframes cloud-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cloud-spinner { animation: none; } }
.cloud-block {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(6, 26, 14, 0.72);
  overflow-y: auto;
}
.cloud-panel {
  width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto;
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-lg); padding: 22px 22px 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  font-size: 1.02rem; line-height: 1.45;
}
.cloud-panel.is-wide { max-width: 640px; }
.cloud-panel h2 { margin: 0 0 10px; font: 700 1.45rem/1.15 var(--cond); color: var(--pitch); }
.cloud-panel p { margin: 0 0 12px; }
.cloud-list { margin: 0 0 14px; padding-left: 20px; }
.cloud-list li { margin: 0 0 6px; }
.cloud-steps { margin: 0 0 14px; padding-left: 22px; }
.cloud-steps li { margin: 0 0 12px; }
.cloud-steps .btn { margin: 0 8px 6px 0; }
.cloud-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.cloud-actions .btn, .cloud-steps .btn { min-height: 44px; }
.cloud-muted { color: var(--ink-soft); font-size: 0.92rem; }
.cloud-clash { display: block; color: var(--zone-playoff-text); font-size: 0.92rem; }
.cloud-bad { color: var(--danger); font-weight: 600; }
.cloud-good { color: var(--zone-promotion-text); font-weight: 600; }
.cloud-panel .btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Build 1_113: account dialogs (Import Backup) scroll on small screens, so the buttons are always reachable */
.acct-dialog { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.acct-dialog .dialog { max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.acct-list { margin: 0 0 12px; padding-left: 20px; font-size: 15px; color: var(--ink-soft); }
.acct-list li { margin: 0 0 6px; }
/* Build 1_113: two versions of one game, side by side (stacked on phones) */
.cloud-game { margin: 0 0 14px; }
.cloud-game-name { margin: 0 0 8px !important; }
.cloud-versions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cloud-ver { border: 2px solid var(--rule, #C9CFC4); border-radius: 10px; padding: 10px 12px; background: var(--paper-alt, #F4F1E8); }
.cloud-ver h3 { margin: 0 0 6px; font: 700 1.1rem/1.2 var(--cond); color: var(--pitch); }
.cloud-ver p { margin: 0 0 6px !important; }
.cloud-ver.is-newer { border-color: var(--grass, #1F8A4C); }
.cloud-newer { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--grass, #1F8A4C); color: #fff; font-weight: 700; font-size: 0.85rem; }
html.cloud-blocked body { overflow: hidden; }
.cloud-notice {
  position: fixed; z-index: 70;
  left: 50%; transform: translateX(-50%);
  top: max(12px, env(safe-area-inset-top));
  width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-lg);
  background: var(--paper); color: var(--ink); border-left: 5px solid var(--grass);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.cloud-notice p { margin: 0; flex: 1; }

/* ---------------------------------------------------------------------------
   Build 1_85 — My Games: choose games and delete them (private online saving).
   --------------------------------------------------------------------------- */
.mg-account { margin-top: 4px; font-size: 0.95rem; color: var(--chalk-soft); }
.mg-tools {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  margin: 0 0 14px; padding: 10px 12px 10px 16px;
  background: rgba(250, 250, 247, 0.08); border: 1px solid var(--rule-dark); border-radius: var(--r-lg);
}
.mg-hint { margin: 0; color: var(--chalk); font-size: 1rem; }
.mg-delete { min-height: 44px; padding-inline: 18px; }
.mg-delete:disabled { opacity: 0.45; cursor: not-allowed; }
.mg-card { position: relative; display: flex; }
.mg-card > .resume-card { padding-right: 64px; }
.mg-card.is-picked > .resume-card { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger); }
.mg-pick {
  position: absolute; top: 4px; right: 4px; z-index: 1;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}
.mg-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mg-box {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--ink-soft); color: transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.mg-box svg { width: 22px; height: 22px; }
.mg-pick:hover .mg-box { border-color: var(--ink); }
.mg-pick input:checked + .mg-box { background: var(--danger); border-color: var(--danger); color: #fff; }
.mg-pick input:focus-visible + .mg-box { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.mg-pick input:disabled + .mg-box { opacity: 0.5; }
.mg-notice {
  margin: 0 0 14px; padding: 12px 16px; border-radius: var(--r-lg);
  background: var(--paper); color: var(--ink); border-left: 5px solid var(--grass); font-size: 1rem;
}
.mg-notice.is-bad { border-left-color: var(--danger); }
.mg-notice p { margin: 0 0 6px; }
.mg-notice ul { margin: 4px 0 6px; padding-left: 20px; }
.dialog-list { margin: 4px 0 10px; padding-left: 20px; font-size: 17px; color: var(--ink); font-weight: 600; max-height: 40vh; overflow-y: auto; }
.dialog-list li { margin: 0 0 4px; }
.dialog-list[hidden] { display: none; }
.mg-card > .resume-card:hover { transform: none; }
/* the online-saving pill never sits over the footer's buttons */
.has-cloud-status .footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.cloud-status { pointer-events: none; }   /* taps go through to whatever is underneath */

/* ---------------------------------------------------------------------------
   Build 1_86 — International menus. Free page: the locked cards in a row of
   four Shields and a row of three. Paid page: one set of matching competition
   cards in reading order (it stays in that order when the rows stack).
   --------------------------------------------------------------------------- */
.intl-paid-row { margin-bottom: 16px; }
.intl-paid-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.intl-paid-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intl-menu-top { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.intl-menu-shields { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.intl-menu-wcl { grid-template-columns: 1fr; }
.intl-menu-major { min-height: 150px; border-left: 5px solid var(--grass); }
.intl-menu-major .choice-name { font-size: clamp(24px, 3vw, 30px); }
.intl-menu-wide { border-left: 5px solid var(--floodlight); }
@media (max-width: 1050px) {
  .intl-paid-row-4, .intl-menu-shields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .intl-paid-row-4, .intl-paid-row-3, .intl-menu-top, .intl-menu-shields { grid-template-columns: 1fr; }
  .intl-menu-major { min-height: 0; }
}

/* ---------------------------------------------------------------------------
   Build 1_86 — the optional cup of a continuous custom league.
   --------------------------------------------------------------------------- */
.build-cup-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px; margin: 0 0 12px; border-left: 5px solid var(--floodlight); }
.build-cup-panel.is-quiet { border-left-color: var(--rule); }
.build-cup-panel .btn { min-height: 44px; }
.build-cup-line { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 17px; color: var(--ink); flex: 1 1 320px; }
.build-cup-line .cup-trophy { width: 34px; height: 34px; flex: none; color: var(--floodlight); }
.build-cup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bc-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; counter-reset: bc; }
.bc-steps li { counter-increment: bc; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(250, 250, 247, 0.12); color: var(--chalk); }
.bc-steps li::before { content: counter(bc) ". "; }
.bc-steps li.is-done { background: rgba(31, 138, 76, 0.55); color: #fff; }
.bc-steps li.is-now { background: var(--floodlight); color: var(--ink); }
.bc-body { padding: 22px 24px; }
.bc-body h2 { margin: 0 0 10px; }
.bc-body p { font-size: 17px; line-height: 1.5; }
.bc-count { font-size: 18px; }
.bc-divs { margin: 8px 0 16px; padding-left: 20px; }
.bc-divs li { margin: 0 0 10px; font-size: 16px; }
.bc-names { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.bc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.bc-option { border: 2px solid var(--rule); min-height: 120px; }
.bc-option:hover { border-color: var(--grass); }
.bc-rounds { margin: 10px 0 14px; padding-left: 22px; font-size: 16px; }
.bc-rounds li { margin: 0 0 6px; }
.bc-typed { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; margin: 12px 0 14px; padding-left: 26px; }
.bc-input { width: 100%; min-height: 46px; font-size: 17px; padding: 8px 12px; border: 2px solid var(--rule); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.bc-input:focus { outline: 3px solid var(--floodlight); outline-offset: 1px; border-color: var(--grass); }
.bc-counter { font-size: 17px; margin: 6px 0; }
.bc-name input { min-height: 46px; font-size: 17px; }
.bc-format { margin: 12px 0; background: var(--paper-alt); }
.bc-format ul { margin: 6px 0 0; padding-left: 20px; }
.bc-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.bc-foot .btn { min-height: 46px; }
@media (max-width: 700px) {
  .bc-options { grid-template-columns: 1fr; }
  .bc-body { padding: 18px 16px; }
}

/* =====================================================================
   Build 1_87 — the public Home page: a large logo in the body, the two
   free games as equal green panels (stacked, league first, on a phone),
   then a short, light introduction. The header is not changed.
   ===================================================================== */
.home { padding-top: 40px; padding-bottom: 24px; }
.home-hero { text-align: center; max-width: 820px; margin: 0 auto 36px; }
.home-logo-wrap { margin: 0 auto 22px; line-height: 0; }
.home-logo {
  display: block; margin: 0 auto; width: min(680px, 100%); height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}
.home-tagline {
  margin: 0 0 14px; font-family: var(--cond); font-weight: 700; color: #fff;
  font-size: clamp(28px, 4.4vw, 46px); line-height: 1.08; letter-spacing: 0.005em;
}
.home-lede { margin: 0 auto 16px; max-width: 60ch; font-size: clamp(17px, 1.9vw, 19.5px); line-height: 1.5; color: var(--chalk); }
.home-credit { margin: 0 0 4px; }

.home-games { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 48px; }
.home-game {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 30px 30px 28px; border-radius: 16px; color: #fff;
  background: linear-gradient(160deg, #26A35A 0%, var(--grass) 48%, var(--grass-dark) 100%);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 34px rgba(3, 18, 10, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.home-game h2 {
  font-size: clamp(28px, 3.3vw, 38px); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.015em; line-height: 1.04; color: #fff; margin: 0;
}
.home-game p { margin: 0; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.94); max-width: 52ch; flex: 1 1 auto; }
.home-game-badge { align-self: flex-start; }
.home-play {
  margin-top: 8px; min-height: 58px; padding: 12px 34px; border-radius: 12px;
  background: var(--floodlight); color: var(--ink); border: 2px solid #fff;
  font-family: var(--cond); font-size: 24px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}
.home-play:hover { background: #FFD24D; color: var(--ink); }
.home-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.home-play:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }

.home-intro {
  max-width: 980px; margin: 0 auto; padding: 30px 32px 26px; border-radius: 16px;
  background: rgba(6, 26, 15, 0.55); border: 1px solid var(--rule-dark);
}
.home-intro > h2 { font-size: clamp(26px, 3vw, 34px); color: #fff; margin: 0 0 18px; text-align: center; }
.home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.home-step { display: flex; gap: 14px; align-items: flex-start; }
.home-step-foot { padding-top: 18px; border-top: 1px solid var(--rule-dark); }
.home-step-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}
.home-step-icon svg { width: 28px; height: 28px; }
.home-step-icon-teams { color: #fff; background: var(--grass); }
.home-step-icon-dice { color: #fff; background: #2B6CB0; }
.home-step-icon-seeds { background: rgba(255, 255, 255, 0.92); }
.home-step-icon-shield { color: var(--floodlight); background: #183F7A; }
.home-step-icon-more { color: var(--floodlight); background: #5B34B0; }
.home-step-icon-online { color: #fff; background: #1F7F8C; }
.home-step h3 {
  font-size: 22px; color: #fff; margin: 2px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
}
.home-step p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--chalk); }
.home-tag { font-family: var(--sans); font-size: 12px; }
.home-rules-link { margin: 22px 0 0; text-align: center; }
.home-rules-link .btn { min-height: 48px; }

@media (max-width: 860px) {
  .home-steps { grid-template-columns: 1fr; gap: 18px; }
  }
@media (max-width: 760px) {
  .home { padding-top: 26px; }
  .home-hero { margin-bottom: 26px; }
  .home-games { grid-template-columns: 1fr; gap: 18px; margin-bottom: 34px; }
  .home-game { padding: 24px 20px 22px; }
  .home-play { width: 100%; justify-content: center; }
  .home-intro { padding: 24px 18px 20px; }
}
.home-game-badge, .home-tag { margin-left: 0; }
.home-game-badge { font-size: 13px; font-weight: 700; text-transform: uppercase; }
.home-play { display: inline-flex; align-items: center; gap: 10px; }
.home-step p + p { margin-top: 6px; }
/* Build 1_87's portrait-tablet squeeze removed in build 1_104 (see the end). */

/* ======================== build 1_88: international groups on an iPad ===
 * From 1_83 the group table sat ABOVE its fixtures between 900 and 1099px
 * (iPad landscape) and, as since 1_61, below 900px (iPad portrait). From
 * 700px the fixtures are on the left and the table on the right again.
 * Nothing is hidden: the table is made to fit with tighter cell padding and,
 * below 1000px (iPad portrait), the form guide in two rows of three (as on a
 * phone) and each match on two scoreboard lines. Phones (below 700px) keep the stacked
 * layout, and 1100px and wider (desktop) is unchanged. */
@media (min-width: 700px) and (max-width: 1099px) {
  .intl-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "main side";
    gap: 12px; align-items: stretch;
  }
  .intl-split-side { grid-area: side; }
  .intl-split-main { grid-area: main; }
  .intl-sticky-label { display: block; padding-top: 6px; }
  .intl .cup-group-card.intl-group-row { padding-left: 10px; padding-right: 10px; }
  .intl table.league.cup-group-table { font-size: 15px; min-width: 0; }
  .intl table.league.cup-group-table thead th,
  .intl table.league.cup-group-table tbody td { padding-left: 3px; padding-right: 3px; }
  .intl table.league.cup-group-table thead th.col-pos,
  .intl table.league.cup-group-table tbody td.col-pos { width: 20px; padding-left: 4px; }
  .intl table.league.cup-group-table.has-form th.col-form { min-width: 0; }
  .intl table.league.cup-group-table.has-form tbody td.col-form,
  .intl table.league.cup-group-table.has-form thead th.col-form { padding-left: 3px; padding-right: 4px; }
  .intl table.league.cup-group-table .col-team .flag { margin-right: 4px; }
  .intl-split-main .cup-fixture { column-gap: 7px; }
}
@media (min-width: 700px) and (max-width: 1099px) and (min-height: 560px) {
  .intl-sticky { position: sticky; top: calc(var(--topbar-h, 64px) + 10px); }
}
/* Portrait (and any window up to 999px): the narrower columns. The fixtures
   need less room on two lines, so the table is given the larger share. */
@media (min-width: 700px) and (max-width: 999px) {
  .intl-split { grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr); }
  .intl table.league.cup-group-table.has-form .form-guide { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 2px; }
  .intl table.league.cup-group-table .col-team .team-name { white-space: normal; overflow-wrap: normal; }
  .intl table.league.cup-group-table td.col-team { min-width: 0; }
  /* Each match on two scoreboard lines (home and its score, away and its
     score), exactly as on a phone, so long names never squeeze the scores. */
  .intl-split-main .cup-fixture {
    --fx-cols: var(--tick-w) minmax(0, 1fr) auto 36px;
    grid-template-areas:
      "leg  leg  leg  leg"
      "tick home hs   clear"
      "tick away as   clear";
    column-gap: 10px; row-gap: 6px;
    padding-left: 0; padding-right: 0;
  }
  .intl-split-main .cup-fixture > .score-pair:not(.score-pair-locked) { display: contents; }
  .intl-split-main .cup-fixture > .score-pair .dash { display: none; }
  .intl-split-main .cup-fixture .die[data-side="home"],
  .intl-split-main .cup-fixture .score-home { grid-area: hs; justify-self: end; }
  .intl-split-main .cup-fixture .die[data-side="away"],
  .intl-split-main .cup-fixture .score-away { grid-area: as; justify-self: end; }
  .intl-split-main .score-pair-locked { grid-area: hs / hs / as / as; align-self: center; }
  .intl-split-main .cup-fixture > .team-home,
  .intl-split-main .cup-fixture > .team-away { justify-content: flex-start; text-align: left; font-weight: 600; }
  .intl-split-main .cup-fixture > .team-away .seed-dot { order: 2; }
  .intl-split-main .intl-match .team-home .team-name { justify-content: flex-start; }
  .intl-split-main .cup-fixture > .btn-clear { align-self: center; width: 36px; height: 36px; }
  .intl-split-main .cup-fixture .score-pair,
  .intl-split-main .cup-fixture .team-home,
  .intl-split-main .cup-fixture .team-away,
  .intl-split-main .cup-fixture .btn-clear { grid-area: auto; }
  .intl-split-main .cup-fixture > .team-home { grid-area: home; }
  .intl-split-main .cup-fixture > .team-away { grid-area: away; }
  .intl-split-main .cup-fixture > .btn-clear { grid-area: clear; }
  .intl-split-main .score-pair-dice { min-height: 0; }
  /* As on a phone: the flag leads the name on both lines, the token last. */
  .intl-split-main .cup-fixture .flag { order: -1; }
  .intl-split-main .cup-fixture .pref-tag { order: 1; }
  .intl-split-main .cup-fixture .seed-dot, .intl-split-main .cup-fixture .intl-blank { order: 2; }
}

/* Build 1_88: the third free game, full width beneath the other two. */
.home-game-wide { grid-column: 1 / -1; }
.home-game-wide p { max-width: 72ch; }

/* =====================================================================
   Build 1_89 — dice choice, the dice footer, roll buttons, "Play your way"
   and the Euro Shield emblem. Made for young players: big targets, the
   chosen option in green, short words.
   ===================================================================== */
.dice-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }

/* Set-up: Digital dice first, the chosen option solid green with a tick. */
.dice-choice .dice-choice-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px; font-size: 16px; border-width: 2px; }
.dice-choice .dice-choice-opt[aria-pressed="true"] { background: var(--grass); border-color: var(--grass-dark); color: #fff; }
.dice-choice .dice-choice-opt[aria-pressed="true"]::after { content: '\2713'; font-weight: 700; }
.dice-choice .dice-choice-opt:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.wiz-big.dice-choice-big.is-on { background: var(--grass); border-color: var(--grass-dark); color: #fff; }
.wiz-big.dice-choice-big.is-on::after { color: #fff; }

/* The dice footer: one compact row under the game, wrapping on a phone. */
.dice-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 18px 0 8px; padding: 12px 16px; border-radius: var(--r-lg, 14px);
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}
.panel .dice-footer { margin: 18px 0 0; background: var(--paper-alt); box-shadow: none; }
.dice-footer-label { font-family: var(--cond); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.dice-seg { display: inline-flex; border: 2px solid var(--grass-dark); border-radius: 12px; overflow: hidden; background: #fff; }
.dice-opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px;
  font: 700 16px var(--sans); color: var(--ink); background: #fff; border: 0; cursor: pointer;
}
.dice-opt + .dice-opt { border-left: 2px solid var(--grass-dark); }
.dice-opt[aria-pressed="true"] { background: var(--grass); color: #fff; }
.dice-opt[aria-pressed="true"]::after { content: '\2713'; }
@media (hover: hover) { .dice-opt:hover:not([aria-pressed="true"]) { background: #E7F4EC; } }
.dice-opt:focus-visible { outline: 3px solid var(--floodlight); outline-offset: -3px; }
.dice-footer .pulse-sound { min-height: 44px; }
.dice-help { margin-left: auto; }
.dice-help > summary {
  cursor: pointer; list-style: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--grass-dark); text-decoration: underline; text-underline-offset: 3px;
}
.dice-help > summary::-webkit-details-marker { display: none; }
.dice-help > summary::before { content: '?'; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grass-dark); color: #fff; font-size: 14px; text-decoration: none; }
.dice-help > summary:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; border-radius: 6px; }
.dice-help[open] { flex-basis: 100%; margin-left: 0; }
.dice-help-body { margin-top: 6px; }
.dice-help-body p { margin: 0 0 8px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.dice-help-link { background: none; border: 0; padding: 6px 0; min-height: 40px; font: 700 16px var(--sans); color: var(--grass-dark); text-decoration: underline; cursor: pointer; }
.dice-help-link:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
@media (max-width: 560px) {
  .dice-footer { padding: 10px 12px; gap: 8px 10px; }
  .dice-seg { flex: 1 1 100%; }
  .dice-opt { flex: 1 1 50%; justify-content: center; padding: 8px 10px; font-size: 15.5px; }
  .dice-help { margin-left: 0; }
}
/* The old dice rows' places stay quiet now that they hold the footer. */
.play-method-bar, .week-playmethod { margin: 0; padding: 0; border: 0; background: transparent; }

/* Roll buttons: green, white words, dice icon and arrow. */
.btn.btn-roll {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 13px 22px;
  background: var(--grass); color: #fff; border: 2px solid var(--grass-dark); border-radius: 12px;
  font-family: var(--sans); font-size: 17px; font-weight: 700; line-height: 1.2; text-align: left;
  box-shadow: 0 3px 0 var(--grass-dark);
  transition: background 120ms ease, transform 80ms ease, box-shadow 80ms ease;
}
.btn.btn-roll .dice-icon { width: 24px; height: 24px; }
.btn-roll-arrow { font-size: 20px; line-height: 1; }
@media (hover: hover) { .btn.btn-roll:hover:not([disabled]) { background: #239A55; } }
.btn.btn-roll:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 1px 0 var(--grass-dark); background: var(--grass-dark); }
.btn.btn-roll:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 3px; }
.btn.btn-roll[disabled] { background: #9AA5AF; border-color: #87929C; box-shadow: none; color: #fff; cursor: not-allowed; }
.btn.btn-roll.is-example { pointer-events: none; cursor: default; user-select: none; }
.autobar .btn.btn-roll { min-height: 48px; padding: 10px 18px; font-size: 16px; }
@media (max-width: 600px) { .intl-auto .btn.btn-roll { width: 100%; justify-content: center; } }

/* "Play your way": compact, closable, at the top of the matches. */
.play-guide {
  margin: 0 0 16px; padding: 10px 16px; border-radius: var(--r-lg, 14px);
  background: #FFF8DB; color: var(--ink); border: 2px solid var(--floodlight);
}
.play-guide > summary {
  cursor: pointer; list-style: none; min-height: 40px; display: flex; align-items: center; gap: 8px;
}
.play-guide > summary::-webkit-details-marker { display: none; }
.play-guide > summary::after { content: 'Hide'; margin-left: auto; font: 700 14px var(--sans); color: var(--ink-soft); text-decoration: underline; }
.play-guide:not([open]) > summary::after { content: 'Show'; }
.play-guide > summary:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; border-radius: 6px; }
.play-guide-title { font-family: var(--cond); font-weight: 700; font-size: 22px; color: var(--ink); }
.play-guide-body { padding: 2px 0 6px; }
.play-guide-lede { margin: 0 0 8px; font-size: 16.5px; line-height: 1.45; }
.play-guide-head { margin: 0 0 6px; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.play-guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.play-guide-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.play-guide-eg { font: 700 11.5px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); border: 1px dashed #8A97A3; border-radius: 6px; padding: 2px 6px; }
.play-guide-item .btn-roll { min-height: 44px; padding: 9px 16px; font-size: 16px; }
.play-guide-what { font-size: 16px; line-height: 1.4; }
@media (max-width: 560px) { .play-guide-what { flex-basis: 100%; } }

/* The Euro Shield emblem beside its heading; the progress line keeps its row. */
.comp-title.has-emblem { align-items: center; }
.comp-emblem { flex: none; display: inline-flex; }
.euro-emblem { width: 58px; height: 70px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
.comp-title.has-emblem .comp-meta { flex-basis: 100%; }
@media (min-width: 761px) { .comp-title.has-emblem { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 2px; } .comp-title.has-emblem .comp-emblem { grid-row: 1 / span 2; } }
@media (max-width: 560px) { .euro-emblem { width: 46px; height: 56px; } }

/* Build 1_89: finals green/red pick buttons — flag | compact name | status | tick. */
.intl-pick-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.wiz-big.intl-pick {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto 18px; align-items: center; column-gap: 8px;
  min-height: 52px; padding: 8px 12px; font-size: 16.5px; line-height: 1.2;
}
.wiz-big.intl-pick.is-on::after { content: none; }
.intl-pick-flag { display: inline-flex; }
.intl-pick-flag .flag { margin: 0; }
.intl-pick-name { min-width: 0; overflow-wrap: normal; word-break: normal; }
.intl-pick-status:empty { display: none; }
.intl-pick-status {
  grid-column: 3; font: 700 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px; color: #fff; white-space: nowrap;
}
.intl-pick-status.is-green { background: var(--grass); }
.intl-pick-status.is-red { background: #C0392B; }
.intl-pick-tick { grid-column: 4; font-weight: 800; color: var(--grass-dark); text-align: center; }
.wiz-big.intl-pick.is-on.is-green { border-color: var(--grass); background: rgba(31, 138, 76, 0.12); }
.wiz-big.intl-pick.is-on.is-red { border-color: #C0392B; background: rgba(192, 57, 43, 0.10); }
.wiz-big.intl-pick.is-on.is-red .intl-pick-tick { color: #A93226; }
@media (max-width: 560px) { .intl-pick-grid { grid-template-columns: 1fr; } }

.play-guide-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.play-guide-head .play-guide-eg { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
@media (max-width: 560px) {
  .play-guide { padding: 8px 12px; }
  .play-guide-lede, .play-guide-what { font-size: 15.5px; }
  .play-guide-list { gap: 8px; }
  .play-guide-item { gap: 4px; }
}

/* =====================================================================
   Build 1_90 — Euro Shield screens, play-off draw, the final, Home emblem.
   ===================================================================== */
/* Groups → Play-offs: a yellow arrow between the two tabs (a picture only). */
.intl-subtabs.has-arrows { align-items: center; }
.intl-sub-arrow { display: inline-flex; align-items: center; color: var(--floodlight); font-size: 30px; font-weight: 800; line-height: 1; padding: 0 2px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }

/* The play-off draw: the one job on the screen. */
.draw-feature { text-align: center; padding: 28px 24px 26px; }
.intl .panel.draw-feature > h2.draw-feature-title { font-size: clamp(32px, 4.6vw, 46px); margin: 0 0 8px; }
.draw-feature-sub { font-size: clamp(17px, 2vw, 20px); font-weight: 600; color: var(--ink); margin: 0 auto 20px; max-width: 46ch; }
.draw-teams { list-style: none; margin: 0 auto 22px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); max-width: 1040px; }
.draw-team { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 12px; border-radius: 14px; background: #fff; border: 2px solid var(--rule); min-width: 0; }
.draw-team-flag .flag { width: 40px; height: auto; margin: 0; }
.draw-team-name { font-family: var(--cond); font-size: 24px; font-weight: 700; color: var(--ink); min-width: 0; overflow-wrap: normal; word-break: normal; line-height: 1.15; }
.draw-feature-go { margin: 0 0 14px; }
.btn.btn-draw-big { min-height: 64px; padding: 16px 44px; font-size: 22px; font-weight: 800; border-radius: 14px; background: var(--floodlight); color: var(--ink); border: 2px solid #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28); }
.btn.btn-draw-big:focus-visible { outline: 3px solid var(--grass-dark); outline-offset: 3px; }
@media (hover: hover) { .btn.btn-draw-big:hover:not([disabled]) { background: #FFD24D; } }
.btn.btn-draw-big:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }
.draw-feature-note { font-size: 15.5px; color: var(--ink-soft); margin: 0 auto; max-width: 60ch; }
@media (max-width: 560px) {
  .draw-feature { padding: 20px 14px; }
  .draw-teams { grid-template-columns: 1fr 1fr; gap: 8px; }
  .draw-team { flex-direction: column; gap: 6px; padding: 10px 6px; }
  .draw-team-name { font-size: 19px; text-align: center; }
  .btn.btn-draw-big { width: 100%; padding: 14px 16px; }
}

/* The final: the main event. */
.intl-final-stage { text-align: center; padding-top: 26px; }
.intl-final-stage .cup-round-head { justify-content: center; }
.intl .intl-final-stage .cup-round-head h2 { font-size: clamp(36px, 5vw, 52px); letter-spacing: 0.02em; }
.intl-final-stage .cup-round-head .cup-progress:empty { display: none; }
.intl-final-stage > .cup-note { font-size: 17px; margin: 0 0 16px; }
.intl-final-stage .intl-ties { max-width: 920px; margin: 0 auto; }
.intl-final-stage .tie:not(.tie-bye):not(.tie-locked) { display: block; padding: 18px 16px; }
.intl-final-stage .tie:not(.tie-bye):not(.tie-locked) > .tie-status, .intl-final-stage .tie > .tie-status { grid-column: auto; grid-row: auto; border-left: 0; border-top: 1px solid var(--rule); margin-top: 12px; padding: 12px 0 0; text-align: center; justify-content: center; font-size: 17px; }
@media (min-width: 561px) { .intl-final-stage .intl-match { --fx-cols: var(--tick-w) minmax(0, 1fr) auto minmax(0, 1fr) 36px; column-gap: 18px; padding: 10px 0; } }
.intl-final-stage .intl-match .team-name { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; gap: 10px; }
.intl-final-stage .intl-match .flag { width: 44px; height: auto; }
.intl-final-stage .intl-match .seed-dot { font-size: 13px; }
.intl-final-stage .intl-score { width: 72px; min-height: 64px; font-size: 32px; }
.intl-final-stage .die { width: 60px; height: 60px; font-size: 26px; border-radius: 12px; margin: 0 6px; }
.intl-final-stage .score-pair { gap: 12px; }
@media (max-width: 560px) {
  .intl-final-stage .intl-match .team-name { font-size: 22px; }
  .intl-final-stage .intl-match .flag { width: 34px; }
  .intl-final-stage .intl-score { width: 60px; min-height: 56px; font-size: 26px; }
  .intl-final-stage .die { width: 50px; height: 50px; font-size: 22px; margin: 2px; }
}

/* Home: the Euro Shield emblem beside the card's heading. */
.home-game-title { display: flex; align-items: center; gap: 14px; }
.home-game-emblem { flex: none; display: inline-flex; }
.home-game-emblem svg { width: 62px; height: 74px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
.home-new-link { background: none; border: 0; padding: 6px 2px; min-height: 40px; color: #fff; font: 700 16px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.home-new-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .home-game-emblem svg { width: 50px; height: 60px; } }
/* Build 1_91: the same emblem beside the two league cards' headings. */
.home-game-title h2 { min-width: 0; }

/* Build 1_90: set-up section status, top right. */
.has-status { position: relative; }
.setup-status { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px; margin: 0 0 8px; text-align: right; }
.setup-status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; font: 800 14px var(--sans); letter-spacing: 0.02em; white-space: nowrap; }
.setup-status.is-done .setup-status-pill { background: var(--grass); color: #fff; }
.setup-status.is-todo .setup-status-pill { background: #FFF1C2; color: #6B4A00; border: 2px solid var(--floodlight); }
.setup-status-todo { font: 600 15px var(--sans); color: #6B4A00; }
@media (min-width: 761px) { .setup-status { float: right; margin: 0 0 8px 16px; max-width: 46%; } .has-status::after { content: ''; display: block; clear: both; } }
@media (max-width: 760px) { .setup-status { justify-content: flex-start; text-align: left; } }
.nl-follow-pick select { min-height: 48px; font-size: 17px; max-width: 420px; }
.nl-follow-now { margin: 10px 0 0; font-weight: 700; display: flex; align-items: center; gap: 8px; }

/* Build 1_90: round navigation — big, clear, Next strongest. */
.round-nav .btn.round-btn { min-height: 50px; padding: 10px 20px; font-size: 18px; font-weight: 800; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; }
.round-nav .btn.round-btn-prev { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.round-nav .btn.round-btn-next { background: var(--floodlight); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(22, 34, 46, 0.35); padding-left: 26px; padding-right: 26px; }
@media (hover: hover) {
  .round-nav .btn.round-btn-prev:hover:not([disabled]) { background: #EEF2F5; }
  .round-nav .btn.round-btn-next:hover:not([disabled]) { background: #FFD24D; }
}
.round-nav .btn.round-btn-next:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(22, 34, 46, 0.35); }
.round-nav .btn.round-btn:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; }
.round-nav .btn.round-btn[disabled] { background: #E4E8EC; color: #8C97A1; border-color: #C9D0D6; box-shadow: none; cursor: not-allowed; opacity: 1; }
@media (max-width: 560px) {
  .round-nav { gap: 8px; }
  .round-nav h3 { flex-basis: 100%; }
  .round-nav .btn.round-btn { flex: 1 1 0; justify-content: center; padding: 10px 8px; font-size: 17px; }
  .round-nav select { order: 3; flex-basis: 100%; max-width: none; }
}

/* Build 1_90: the Season 2 panel — big and high-contrast. */
.season-two-big { text-align: center; padding: 24px 22px; border: 4px solid var(--floodlight); background: #FFF8DB; color: var(--ink); }
.season-two-big.is-open { border-color: var(--grass); background: #EAF6EE; }
.season-two-big .season-two-title, .intl .panel.season-two-big > h2.season-two-title { font-size: clamp(30px, 4.2vw, 42px); margin: 0 0 10px; color: var(--ink); }
.season-two-text { font-size: 18px; line-height: 1.45; margin: 0 auto 12px; max-width: 52ch; color: var(--ink); }
.season-two-strong { font-size: 21px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; }
.season-two-strong .padlock { width: 22px; height: 22px; flex: none; }
.season-two-soon { font-weight: 700; color: #6B4A00; }
.nl-bar .season-two-big { margin: 10px 0 12px; }

/* Build 1_95: the paid and private International landing page, in the Home
   page's style — centred heading, full-width introduction, emblem cards. */
.intl-landing { padding-top: 34px; }
.intl-landing-head { text-align: center; margin: 0 0 30px; }
.intl-landing-head h1 {
  font-size: clamp(40px, 5.6vw, 64px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  line-height: 1.02; color: #fff; margin: 0 0 14px;
}
.intl-landing-head p { margin: 0; max-width: none; font-size: clamp(17px, 1.9vw, 19.5px); line-height: 1.5; color: var(--chalk); }
.intl-landing-cards { display: grid; gap: 24px; margin: 0 0 48px; }
.intl-row { display: grid; gap: 24px; }
.intl-row-2 { grid-template-columns: 1fr 1fr; }
.intl-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.intl-row-1 { grid-template-columns: 1fr; }
.intl-card { min-width: 0; }
.intl-card .intl-card-title { min-width: 0; }
.intl-card h2 { overflow-wrap: break-word; hyphens: manual; }
.intl-card-full p { max-width: 72ch; }
.intl-card-quarter { padding: 24px 20px 22px; }
.intl-card-quarter .intl-card-title { flex-direction: column; align-items: flex-start; gap: 12px; }
.intl-card-quarter h2 { font-size: clamp(22px, 2vw, 26px); line-height: 1.08; }
.intl-card-quarter p { font-size: 16px; }
.intl-card-quarter .home-play { width: 100%; justify-content: center; padding: 12px 16px; }
@media (max-width: 1100px) {
  .intl-row-4 { grid-template-columns: 1fr 1fr; }
  .intl-card-quarter .intl-card-title { flex-direction: row; align-items: center; gap: 14px; }
  .intl-card h2, .intl-card-quarter h2 { font-size: clamp(24px, 3.2vw, 30px); }
}
@media (max-width: 760px) {
  .intl-landing { padding-top: 26px; }
  .intl-landing-head { margin-bottom: 22px; }
  .intl-landing-cards, .intl-row { gap: 18px; }
  .intl-landing-cards { margin-bottom: 34px; }
}
@media (max-width: 640px) {
  .intl-row-2, .intl-row-4 { grid-template-columns: 1fr; }
  .intl-card-quarter { padding: 24px 20px 22px; }
  .intl-card h2, .intl-card-quarter h2 { font-size: 26px; }
}

/* ================================ build 1_96: the paid Domestic page ===
 * Emblems on the two creation cards (same size as the Home emblems) and
 * small icons on the continuous league's two features. */
.dom-paid .dom-entry { gap: 10px 18px; align-items: stretch; }
.dom-paid .dom-col { display: contents; }
.dom-paid [data-part="entry-oneoff"] { grid-column: 1; grid-row: 1; }
.dom-paid [data-part="entry-continuous"] { grid-column: 2; grid-row: 1; }
.dom-paid .dom-pick, .dom-paid .dom-subs { grid-column: 2; }
.dom-paid .dom-card .choice-go { margin-top: auto; padding-top: 6px; }
.dom-paid .dom-card { gap: 8px; }
@media (max-width: 760px) {
  .dom-paid [data-part="entry-oneoff"], .dom-paid [data-part="entry-continuous"], .dom-paid .dom-pick, .dom-paid .dom-subs { grid-column: 1; grid-row: auto; }
  .dom-paid [data-part="entry-continuous"] { margin-top: 8px; }
}
.dom-card-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dom-card-title .choice-name { min-width: 0; overflow-wrap: break-word; }
.dom-emblem { flex: none; display: inline-flex; }
.dom-emblem svg { width: 62px; height: 74px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
@media (max-width: 560px) { .dom-emblem svg { width: 50px; height: 60px; } }
.dom-sub.dom-sub-ico { grid-template-columns: auto 1fr auto; grid-template-areas: "icon name go" "icon note go"; }
.dom-sub-icon { grid-area: icon; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--rule); }
.dom-ico { width: 24px; height: 24px; display: block; }
/* the "Your league" chooser (two or more continuous leagues): readable on the green, full width */
.dom-paid .dom-pick { margin: 4px 0 2px; }
.dom-paid .dom-pick > span { color: var(--chalk); font-weight: 700; }
.dom-paid .dom-pick select { max-width: none; }

/* ===================================== build 1_97: paid International ===
 * One-Off Tournaments heading, the One-Off / Cycle mode bars, the World
 * Shield stages, the Cycle Seasons overview and the custom league screens. */
.mode-tag {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
  font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2;
  white-space: nowrap; vertical-align: middle;
}
.mode-tag-oneoff { background: var(--floodlight); color: var(--ink); }
.mode-tag-cycle { background: #7A1F62; color: #fff; }

/* the One-Off Tournaments group on the International page */
.intl-group-oneoff {
  display: grid; gap: 24px; padding: 22px 22px 24px; border-radius: 18px;
  border: 2px solid rgba(242, 183, 5, 0.65); background: rgba(0, 0, 0, 0.16);
}
.intl-group-head h2 {
  margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: clamp(26px, 3.4vw, 34px); color: #fff; letter-spacing: 0.01em;
}
.intl-group-head p { margin: 0; font-size: clamp(16px, 1.8vw, 18px); color: var(--chalk); max-width: 70ch; }
@media (max-width: 640px) { .intl-group-oneoff { padding: 16px 12px 18px; gap: 18px; } }

/* the bar at the top of a Shield: One-Off Tournament or Cycle Seasons */
.mode-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 14px 0 18px; padding: 14px 18px; border-radius: 16px;
  background: var(--paper); color: var(--ink); border-left: 8px solid var(--floodlight);
}
.mode-bar-cycle { border-left-color: #A0357F; }
.mode-bar-emblem { flex: none; display: inline-flex; }
.mode-bar-emblem svg { width: 56px; height: 67px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3)); }
.mode-bar-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1 1 220px; }
.mode-bar-name { font-family: var(--cond); font-size: clamp(24px, 3vw, 30px); font-weight: 800; text-transform: uppercase; line-height: 1.05; letter-spacing: 0.02em; }
.mode-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.mode-crumb-dot { color: var(--ink-soft); }
.mode-bar-game { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }
.mode-bar-back.btn-back { color: var(--ink); border-color: #A0357F; background: #FBF1F8; min-height: 48px; }
.mode-bar-back.btn-back:hover { background: #F4DDEC; }
@media (max-width: 560px) {
  .mode-bar { padding: 12px; gap: 12px; }
  .mode-bar-emblem svg { width: 46px; height: 55px; }
  .mode-bar-back { width: 100%; justify-content: center; }
}

/* World Shield: two numbered stages */
.wsnav { display: grid; gap: 0; }
.ws-stage { padding: 16px 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.18); }
.ws-stage-head { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; font-size: clamp(22px, 2.6vw, 28px); color: #fff; }
.ws-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--floodlight); color: var(--ink); font-size: 20px; font-weight: 900;
}
.ws-stage-sub { margin: 0 0 12px 50px; font-size: 16px; color: var(--chalk); }
.wsnav .cnav-tile { position: relative; min-height: 84px; }
.wsnav .cnav-tile.is-current .cnav-name::after { content: none; }
.wsnav .cnav-tile.is-current { border-width: 5px; border-top-width: 10px; box-shadow: 0 0 0 4px #fff, 0 6px 0 rgba(0, 0, 0, 0.3); }
.wsnav .cnav-tile.is-current .cnav-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ws-here {
  display: inline-block; justify-self: start; margin-top: 4px; padding: 3px 9px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.wsnav .cnav-tile .ws-here { grid-column: 1 / -1; }
.ws-join { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; font-size: 15px; font-weight: 700; color: var(--chalk); }
.ws-join-arrow { font-size: 30px; line-height: 1; color: var(--floodlight); font-weight: 900; }
.ws-flow { list-style: none; margin: 10px 0 0; padding: 0; display: flex; align-items: stretch; gap: 10px; }
.ws-flow-item { flex: 1 1 0; display: flex; min-width: 0; }
.ws-arrow { display: flex; align-items: center; justify-content: center; color: var(--floodlight); font-size: 30px; font-weight: 900; list-style: none; }
.ws-arrow-d { display: none; }
.ws-after-btn {
  width: 100%; min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  font-size: 18px; font-weight: 800; padding: 10px 14px;
}
.wsnav .ws-after-btn.is-current { background: #fff; color: var(--ink); border: 4px solid var(--floodlight); box-shadow: 0 0 0 3px var(--ink); }
.wsnav .ws-after-btn.is-current .cnav-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ws-views { margin-top: 12px; display: flex; }
.ws-views .ws-after-btn { min-height: 52px; font-size: 16px; width: auto; flex: 0 1 auto; border-style: dashed; }
.ws-views .ws-after-btn.is-current { border-style: solid; }
@media (max-width: 640px) {
  .ws-stage { padding: 12px 10px 14px; }
  .ws-stage-sub { margin-left: 0; }
  .ws-flow { flex-direction: column; gap: 4px; }
  .ws-arrow-r { display: none; }
  .ws-arrow-d { display: inline; }
  .ws-views .ws-after-btn { width: 100%; }
}

/* the rounds inside one continent: numbered, in order, joined by arrows */
.ws-rounds { margin: 0 0 16px; padding: 14px 16px 16px; border-radius: 14px; background: var(--paper); color: var(--ink); border-left: 8px solid var(--c, var(--grass)); }
.ws-rounds-head { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.ws-rounds-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
.ws-round-item { display: flex; flex: 1 1 0; min-width: 0; }
.ws-rounds .viewtab.ws-round { width: 100%; text-align: left; }
.ws-rounds .ws-arrow { color: var(--c, var(--grass)); font-size: 26px; }
.ws-rounds .viewtab.ws-round {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 56px; padding: 8px 14px;
  border-radius: 12px; background: #fff; color: var(--ink); border: 2px solid #B8C1C9; font-size: 17px; font-weight: 700;
}
.ws-rounds .viewtab.ws-round:hover { border-color: var(--c, var(--grass)); }
.ws-round-n {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c, var(--grass)); color: #fff; font-size: 15px; font-weight: 900;
}
.ws-rounds .viewtab.ws-round.is-current { background: color-mix(in srgb, var(--c, var(--grass)) 14%, #fff); border: 4px solid var(--c, var(--grass)); box-shadow: 0 0 0 2px var(--ink); }
.ws-rounds .viewtab.ws-round.is-current .ws-round-label { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ws-rounds .viewtab.ws-round.is-done .ws-round-n { background: var(--grass-dark); }
.ws-rounds .ws-here { margin-top: 0; }
@media (max-width: 640px) {
  .ws-rounds-list { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .ws-round-item, .ws-rounds .viewtab.ws-round { width: 100%; }
}

/* Cycle Seasons overview */
.cyc-hero { display: flex; align-items: center; gap: 22px; margin: 6px 0 22px; }
.cyc-hero-emblem { flex: none; display: inline-flex; }
.cyc-hero-emblem svg { width: 96px; height: 115px; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4)); }
.cyc-hero h1 { margin: 0 0 6px; font-size: clamp(38px, 5.4vw, 56px); line-height: 1; color: #fff; }
.cyc-hero-season { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: clamp(19px, 2.4vw, 24px); color: #fff; }
.cyc-hero-season strong { font-weight: 800; }
.cyc-hero-game { font-size: 16px; color: var(--chalk); font-weight: 600; }
.cyc-season-tag { padding: 4px 11px; border-radius: 999px; background: var(--floodlight); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.cyc-season-tag.is-earlier { background: #fff; color: #7A1F62; }
.cyc-hero-help { margin: 0; font-size: 17px; color: var(--chalk); max-width: 62ch; }
@media (max-width: 560px) {
  .cyc-hero { gap: 14px; align-items: flex-start; }
  .cyc-hero-emblem svg { width: 64px; height: 77px; }
}
.cyc-sec { margin: 30px 0 0; }
.cyc-sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); color: #fff; }
.cyc-sec-help { margin: 0 0 14px; font-size: 16.5px; color: var(--chalk); max-width: 72ch; }
.cyc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .cyc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.cyc-card {
  position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 12px; border-radius: 18px; border: 3px solid transparent; cursor: pointer; text-align: center;
  background: var(--paper); color: var(--ink); font-family: var(--sans);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); transition: transform 120ms ease, box-shadow 120ms ease;
}
.cyc-card:hover { transform: translateY(-2px); border-color: var(--grass); }
.cyc-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cyc-card-emblem { display: inline-flex; }
.cyc-card-emblem svg { width: 92px; height: 110px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); }
.cyc-card-name { font-family: var(--cond); font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; text-transform: uppercase; line-height: 1.05; letter-spacing: 0.02em; overflow-wrap: break-word; max-width: 100%; }
.cyc-card-status { padding: 4px 11px; border-radius: 999px; background: #E3E8EC; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.cyc-card-status.is-complete { background: #DCF0E2; color: #0F5130; }
.cyc-card-status.is-in-progress, .cyc-card-status.is-on-hold { background: #FFF1C7; color: #6B4A00; }
.cyc-card.is-locked { background: #DCE1DA; }
.cyc-card.is-locked .cyc-card-emblem { filter: grayscale(0.7); opacity: 0.75; }
.cyc-card.is-current { border: 5px solid var(--floodlight); background: #FFF9E1; box-shadow: 0 0 0 3px var(--ink), 0 6px 0 rgba(0, 0, 0, 0.3); }
.cyc-card-last { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 560px) {
  .cyc-card { padding: 26px 6px 10px; gap: 5px; }
  .cyc-card-emblem svg { width: 54px; height: 65px; }
  .cyc-card-name { font-size: 18px; }
  .cyc-card-status { font-size: 12.5px; padding: 3px 8px; }
}
.cyc-earlier { margin-top: 0; }

/* the Roll of Honour */
.cyc-roll { padding: 20px; border-radius: 18px; background: rgba(0, 0, 0, 0.2); border: 2px solid rgba(242, 183, 5, 0.55); }
.trophy-icon { width: 44px; height: 44px; flex: none; }
.roh-seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.roh-season { padding: 14px 16px; border-radius: 14px; background: var(--paper); color: var(--ink); }
.roh-season.is-live { box-shadow: 0 0 0 3px var(--floodlight); }
.roh-season h3 { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 20px; }
.roh-now { padding: 2px 9px; border-radius: 999px; background: var(--floodlight); color: var(--ink); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.roh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.roh-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "em comp" "em win"; column-gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--rule); }
.roh-row:first-child { border-top: 0; }
.roh-emblem { grid-area: em; display: inline-flex; }
.roh-emblem svg { width: 30px; height: 36px; }
.roh-comp { grid-area: comp; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.roh-winner { grid-area: win; font-size: 16.5px; min-width: 0; overflow-wrap: anywhere; }
.roh-lookup { margin-top: 20px; }
.roh-lookup-head { margin: 0 0 10px; font-size: 21px; color: #fff; }
@media (max-width: 560px) { .cyc-roll { padding: 14px 10px; } }

/* Browse Previous Seasons */
.cyc-browse-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.cyc-browse-bar .cyc-pick { flex: 1 1 240px; min-width: 0; }
.cyc-browse-bar select { width: 100%; min-height: 48px; font-size: 16px; }
.cyc-browse-bar .btn-new { min-height: 48px; }
@media (max-width: 560px) { .cyc-browse-bar .btn-new { width: 100%; } }

/* Custom International Leagues (paid) */
.nl-head { display: flex; align-items: center; gap: 18px; }
.nl-head-emblem { flex: none; display: inline-flex; }
.nl-head-emblem svg { width: 72px; height: 86px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
@media (max-width: 560px) { .nl-head { align-items: flex-start; gap: 12px; } .nl-head-emblem svg { width: 52px; height: 62px; } }
.nl-kind { display: inline-flex; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.nl-kind-oneoff { background: var(--floodlight); color: var(--ink); }
.nl-kind-ongoing { background: #DCE6FA; color: #0C215C; }
.nl-sec-head { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 28px); }
.nl-paid > .nl-sec-head { color: #fff; margin-top: 8px; }
.nl-paid .panel .nl-sec-head { color: var(--ink); }
.nl-card-paid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.nl-card-paid h2 { margin: 6px 0 2px; }
.nl-card-emblem { display: inline-flex; }
.nl-card-emblem svg { width: 54px; height: 65px; }
@media (max-width: 640px) { .nl-card-paid { grid-template-columns: auto minmax(0, 1fr); } .nl-card-paid .btn { grid-column: 1 / -1; width: 100%; } }
.nl-paid .nl-mode { gap: 12px; flex-wrap: wrap; }
.nl-paid .mode-btn.nl-mode-card { display: inline-flex; align-items: center; gap: 12px; text-align: left; padding: 10px 16px 10px 12px; min-height: 72px; flex: 1 1 240px; border-width: 3px; }
.nl-paid .mode-btn.nl-mode-card::before { content: none; }
.nl-mode-icon { display: inline-flex; flex: none; }
.nl-mode-icon svg { width: 40px; height: 48px; }
.nl-mode-words { display: flex; flex-direction: column; gap: 2px; }
.nl-mode-name { font-size: 18px; font-weight: 800; }
.nl-mode-note { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.nl-paid .panel .mode-btn.nl-mode-card[aria-selected="true"] { border-color: var(--grass); background: #E6F2EA; box-shadow: 0 0 0 3px var(--grass); }
.nl-paid .panel .mode-btn.nl-mode-card[aria-selected="true"] .nl-mode-name::before { content: '\2713\00a0'; color: var(--grass-dark); }
.nl-paid .division-rank { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: 0.02em; }
.nl-paid .setting-head { font-size: 22px; }
.nl-paid .nl-field > span { font-size: 15.5px; font-weight: 700; }
.nl-paid .chip[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--floodlight); }
.nl-saved .btn { min-height: 52px; }
/* small phones: the group's frame must not squeeze the long Shield titles */
@media (max-width: 400px) {
  .intl-group-oneoff { padding: 14px 4px 16px; }
  .intl-group-head { padding: 0 8px; }
  .intl-group-oneoff .intl-card { padding-left: 14px; padding-right: 14px; }
}

/* =====================================================================
   Build 1_100 — locked options on the free public Domestic and
   International pages: the paid design, with a soft grey card, the
   full-colour emblem kept, and a padlock saying "Locked" where Open is.
   ===================================================================== */
.home-game.is-locked {
  color: #24313C;
  background: linear-gradient(160deg, #EEF0EC 0%, #DFE3DC 100%);
  border: 2px dashed #7E8A94;
  box-shadow: 0 10px 26px rgba(3, 18, 10, 0.30);
}
.home-game.is-locked h2 { color: #1E2A33; }
.home-game.is-locked p { color: #33414D; }
.home-play.home-locked {
  background: #fff; color: #24313C; border: 2px solid #4B5560; box-shadow: none; cursor: not-allowed;
}
.home-play.home-locked:hover { background: #fff; color: #24313C; }
.home-play.home-locked:active { transform: none; box-shadow: none; }
.home-play.home-locked .padlock { width: 0.95em; height: 0.95em; margin: 0; vertical-align: 0; }

.dom-paid .dom-card.is-locked {
  background: linear-gradient(160deg, #EEF0EC 0%, #DFE3DC 100%);
  color: #24313C; border: 2px dashed #7E8A94; box-shadow: none;
}
.dom-paid .dom-card.is-locked .choice-name { color: #1E2A33; }
.dom-paid .dom-card.is-locked .choice-note { color: #33414D; }
.dom-lock-go { display: inline-flex; align-items: center; gap: 8px; color: #24313C; font-weight: 800; }
.dom-paid .dom-card.is-locked .choice-go.dom-lock-go {
  align-self: flex-start; padding: 8px 16px; border-radius: 10px; background: #fff; border: 2px solid #4B5560; color: #24313C;
}
.dom-lock-go .padlock { width: 1em; height: 1em; margin: 0; }
.dom-sub.dom-sub-ico.is-locked { background: #E4E7E1; border-color: #9AA4AC; }
.dom-sub.dom-sub-ico.is-locked .dom-sub-name { color: #1E2A33; }
.dom-sub.dom-sub-ico.is-locked .dom-sub-note { color: #33414D; }
.dom-sub.dom-sub-ico.is-locked .dom-sub-go.dom-lock-go { font-size: 15px; color: #24313C; }

/* =====================================================================
   Build 1_101 — How to Play, My Games and Online Games headings: an emblem
   in the shield style beside a big heading, the same on every edition.
   ===================================================================== */
.page-head.emblem-head { display: flex; align-items: center; gap: 20px; padding: 34px 0 24px; }
.emblem-head-emblem { flex: none; display: inline-flex; }
.emblem-head-emblem svg { width: 72px; height: 86px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
.emblem-head-words { min-width: 0; }
.emblem-head-words h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.05; margin: 0 0 8px; overflow-wrap: break-word; }
.emblem-head-words p { margin: 0; max-width: 62ch; font-size: 18px; line-height: 1.5; color: var(--chalk-soft); }
.emblem-head-words p + p { margin-top: 6px; }
@media (max-width: 560px) {
  .page-head.emblem-head { align-items: flex-start; gap: 14px; padding: 24px 0 18px; }
  .emblem-head-emblem svg { width: 54px; height: 64px; }
  .emblem-head-words p { font-size: 17px; }
}
.rules-page .emblem-head + .rules-toc { margin-top: 2px; }

/* Online Games: the coming-soon message. */
.online-soon { padding: 28px 26px; text-align: left; }
.online-soon-line { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--ink); }


/* =====================================================================
   Build 1_102 — private One-Off Competitions and League choice; the
   Continuous Season start buttons. Small emblems and flags, one size.
   ===================================================================== */
.oo-sec-head { font-size: clamp(22px, 2.6vw, 28px); margin: 6px 0 12px; color: #fff; text-transform: uppercase; letter-spacing: 0.03em; }
.oo-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.oo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 150px; }
.oo-card-lead { max-width: 560px; }
.oo-card .choice-name { font-size: clamp(20px, 1.9vw, 23px); }
.oo-card .choice-go { margin-top: auto; padding-top: 4px; font-weight: 700; color: var(--grass-dark); }
.oo-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.oo-title .choice-name { min-width: 0; overflow-wrap: break-word; line-height: 1.1; }
.oo-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.oo-emblem { display: inline-flex; }
.oo-emblem svg { width: 40px; height: 48px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
.oo-flag { width: 28px; height: 21px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(11, 30, 16, 0.35); object-fit: cover; }
.oo-note { margin: 14px 0 0; color: var(--chalk-soft); font-size: 16px; }
.dom-emblem-pair { display: inline-flex; align-items: center; gap: 4px; }
.dom-emblem-pair svg { width: 50px; height: 60px; }
.dom-emblem-plus { font: 800 26px var(--sans); color: var(--floodlight); }
@media (max-width: 560px) { .dom-emblem-pair svg { width: 40px; height: 48px; } }

/* Continuous Season: the start card's emblem, and "Start a New Continuous
   Season" clearly a yellow button on the dark page (it was dark text on
   the dark background). */
.c-start-card .dom-card-title { margin-bottom: 4px; }
.btn.c-new-btn { background: var(--floodlight); color: var(--ink); border: 2px solid #fff; font-size: 19px; min-height: 52px; padding: 12px 24px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28); }
.btn.c-new-btn:hover { background: #FFD24D; color: var(--ink); }
.btn.c-new-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn.c-new-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }
.c-new-note { margin: 10px 0 0; color: var(--chalk-soft); font-size: 15px; }

/* =====================================================================
   Build 1_103 — Plans & Pricing: three rounded cards, side by side on wide
   screens, stacked on phones; small feature icons; Coming Soon is a label,
   not a button.
   ===================================================================== */
.plans-notice { margin: 0 0 22px; padding: 14px 18px; border-radius: 12px; background: #FFF4CC; color: var(--ink); border: 2px solid var(--floodlight); font-size: 17px; line-height: 1.5; }
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; max-width: 620px; } }
.plan-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px 22px 22px; border-radius: 18px; background: var(--paper, #F8F8F3); color: var(--ink); border: 3px solid transparent; box-shadow: 0 12px 30px rgba(3, 18, 10, 0.35); }
.plan-card.plan-free { border-top: 10px solid #1F8A4C; }
.plan-card.plan-standard { border-top: 10px solid #2E62D9; }
.plan-card.plan-plus { border-top: 10px solid #7A3FC2; }
.plan-card.is-previewing { box-shadow: 0 0 0 4px var(--floodlight), 0 12px 30px rgba(3, 18, 10, 0.35); }
.plan-top h2 { margin: 0; font-size: clamp(26px, 2.6vw, 32px); text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); }
.plan-price { margin: 4px 0 0; font-size: clamp(28px, 3vw, 36px); font-weight: 800; color: var(--ink); line-height: 1.1; }
.plan-preview-tag { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--floodlight); color: var(--ink); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.plan-lede { margin: 0; font-size: 17px; line-height: 1.5; color: #2D3740; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-item { display: flex; align-items: flex-start; gap: 10px; font-size: 16.5px; line-height: 1.4; }
.plan-item.is-not { color: #4B5560; }
.plan-ico { flex: none; width: 24px; height: 24px; margin-top: -1px; }
.plan-online { margin: 2px 0 0; padding: 10px 14px; border-radius: 10px; background: #EEE6FA; color: #3B1F66; font-weight: 800; font-size: 16.5px; }
.plan-action { margin-top: auto; padding-top: 8px; }
.btn.plan-play { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border-radius: 12px; background: var(--floodlight); color: var(--ink); border: 2px solid #0B1E10; font: 700 20px var(--cond, var(--sans)); letter-spacing: 0.04em; text-transform: uppercase; }
.btn.plan-play:hover { background: #FFD24D; color: var(--ink); }
.btn.plan-play:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.plan-soon { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border-radius: 12px; background: #E4E7E1; color: #2D3740; border: 2px dashed #7E8A94; font: 700 20px var(--cond, var(--sans)); letter-spacing: 0.04em; text-transform: uppercase; cursor: default; user-select: none; }
.plans-billing { margin: 20px 0 0; color: var(--chalk-soft); font-size: 16px; line-height: 1.5; max-width: 80ch; }

/* =====================================================================
   Build 1_104 — the top navigation spread across the site's width.
   From tablet width up, the tabs have a row of their own under the
   wordmark (and any back button), using the full content width: each tab
   grows to share the row, at the normal readable size. Where one row is too
   narrow for every tab, they wrap onto a second row that is spread out the
   same way — the text is never shrunk to force one row. Phones keep the
   menu button. Same on Free, Standard, Plus and Private.
   ===================================================================== */
@media (min-width: 761px) {
  .topbar-inner { row-gap: 10px; }
  .topbar-actions { order: 2; margin-left: auto; }
  .site-nav, .site-nav[data-tabs] {
    order: 3; flex: 1 1 100%; width: 100%;
    display: flex; flex-wrap: wrap; justify-content: stretch; align-items: stretch;
    gap: 8px; padding: 0; margin: 0; border: 0;
  }
  .site-nav .nav-tab, .site-nav[data-tabs] .nav-tab {
    flex: 1 1 auto; min-width: max-content; text-align: center;
    font-size: 18px; letter-spacing: 0.04em; padding: 10px 16px; min-height: 48px;
  }
}
/* When one row is too narrow: an even grid instead of a lone tab on a row. */
@media (min-width: 761px) and (max-width: 1120px) {
  /* four on the first row, three sharing the second: both rows full width */
  .site-nav[data-tabs="7"] { display: flex; flex-wrap: wrap; }
  .site-nav[data-tabs="7"] .nav-tab { flex: 1 1 calc(25% - 8px); min-width: 0; white-space: normal; line-height: 1.15; padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 761px) and (max-width: 999px) {
  .site-nav[data-tabs="6"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav[data-tabs="6"] .nav-tab { min-width: 0; white-space: normal; line-height: 1.15; padding-left: 10px; padding-right: 10px; }
}

/* Build 1_104: Manage access — customer test accounts and invitations */
.owner-code { margin: 10px 0 16px; padding: 12px 14px; border-radius: 10px; background: #FFF4CC; border: 2px solid var(--floodlight); color: var(--ink); font-weight: 700; word-break: break-word; }
.owner-plan-how { font-size: 13px; color: var(--ink-soft); }
.owner-plan-select { min-height: 40px; margin-right: 6px; font: inherit; border-radius: 6px; border: 1px solid var(--rule); padding: 4px 8px; }
.owner input[type="number"] { width: 100%; min-height: 44px; font: inherit; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; }
.owner-table td.owner-plan { white-space: normal; min-width: 180px; }
.owner-plan-select { width: auto; max-width: 160px; }
@media (max-width: 640px) { .owner-table td.owner-plan:nth-child(2)::before { content: 'Plan: '; } }

/* Build 1_105: owner page — account emails status */
.owner-email-state { margin: 8px 0 14px; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--rule, #D9DCD4); background: var(--paper-alt, #F0F1EC); color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.owner-email-state[data-ready="true"] { border-color: var(--grass, #1F8A4C); }
.owner-email-state[data-ready="false"] { border-color: var(--floodlight, #F2B705); background: #FFF4CC; }
.owner-card input[type="email"] { width: 100%; max-width: 420px; min-height: 44px; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); }

/* Build 1_106: centred cards — Cycle Seasons on the International page and the
   free International League card on Home. Heading, words and button centred;
   width, colours and the Free badge's place unchanged. */
.home-game-centred { align-items: center; text-align: center; }
.home-game-centred .home-game-title { justify-content: center; max-width: 100%; }
.home-game-centred > p { margin-left: auto; margin-right: auto; }
.home-game-centred .home-game-badge { align-self: flex-start; }

/* ---------------- Build 1_108: European Rankings & Seedings (Cycle Seasons) --- */
.er { padding: 20px; border-radius: 18px; background: rgba(0, 0, 0, 0.2); border: 2px solid rgba(37, 99, 235, 0.6); }
.er-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #2563EB; color: #fff; font-size: 18px; flex: none; }
.er-panel { margin-top: 12px; padding: 16px; border-radius: 14px; background: var(--paper); color: var(--ink); min-width: 0; }
.er-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; }
.er-head > div { flex: 1 1 320px; min-width: 0; }
.er-applies { margin: 0 0 4px; font-size: 19px; line-height: 1.35; }
.er-when { color: var(--ink-soft); font-size: 16px; }
.er-sources { margin: 0; font-size: 15.5px; color: var(--ink); }
.er-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }
.er-tag.is-now { background: var(--grass); color: #fff; }
.er-tag.is-next { background: var(--floodlight); color: var(--ink); }
.er-tag.is-past { background: #E3E8EC; color: var(--ink); }
.er-pick { display: flex; flex-direction: column; gap: 4px; flex: 0 1 340px; min-width: 0; font-size: 14px; font-weight: 700; }
.er-pick select { width: 100%; min-height: 48px; font-size: 16px; }
.er-bands { margin: 12px 0 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; }
.er-band-pos { margin-right: 6px; color: var(--ink-soft); font-weight: 700; }
.er-seed { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: 13.5px; font-weight: 800; line-height: 1.4; white-space: nowrap; border: 1px solid rgba(0, 0, 0, 0.08); }
.er-seed-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.er-seed-purple { background: #EFE7F8; color: #4A2775; } .er-seed-purple .er-seed-dot { background: var(--super); }
.er-seed-green { background: #DCF0E2; color: #0F5130; } .er-seed-green .er-seed-dot { background: var(--grass); }
.er-seed-amber { background: #FFF1C7; color: #6B4A00; } .er-seed-amber .er-seed-dot { background: var(--floodlight); }
.er-seed-red { background: #F8DEDA; color: #7E2118; } .er-seed-red .er-seed-dot { background: var(--danger); }
.er-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.er-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.er-table th, .er-table td { padding: 8px 8px; border-top: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.er-table thead th { border-top: 0; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); }
.er-table abbr { text-decoration: none; }
.er-c-pos { width: 3.2em; font-weight: 800; }
.er-c-nat { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.er-c-num { text-align: right !important; width: 1%; white-space: nowrap; }
.er-c-pts { text-align: right !important; width: 1%; white-space: nowrap; font-weight: 800; font-size: 18px; }
.er-table thead .er-c-pts { font-size: 13.5px; }
.er-row-purple .er-c-pos { box-shadow: inset 5px 0 0 var(--super); }
.er-row-green .er-c-pos { box-shadow: inset 5px 0 0 var(--grass); }
.er-row-amber .er-c-pos { box-shadow: inset 5px 0 0 var(--floodlight); }
.er-row-red .er-c-pos { box-shadow: inset 5px 0 0 var(--danger); }
.er-band-edge td, .er-band-edge th { border-top: 3px solid var(--ink); }
.er-band-row th { padding-top: 14px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; border-top: 0; }
.er-narrow { display: none; }
@media (max-width: 700px) {
  .er { padding: 14px 10px; }
  .er-panel { padding: 12px 8px; }
  .er-wide { display: none; }
  .er-narrow { display: inline; }
  .er-table { font-size: 14.5px; }
  .er-table th, .er-table td { padding: 7px 4px; }
  .er-c-pts { font-size: 16px; }
  .er-table .nat .flag { width: 16px; height: 12px; }
  .er-seed { font-size: 12px; padding: 1px 6px 1px 4px; gap: 4px; }
  .er-seed-dot { width: 9px; height: 9px; }
}
.er-ready { margin: 6px 0 4px; padding: 18px; border-radius: 14px; background: linear-gradient(135deg, #1E3A8A, #2563EB); color: #fff; text-align: center; box-shadow: 0 0 0 3px var(--floodlight); }
.er-ready-head { margin: 0 0 6px; font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; }
.er-ready-sub { margin: 0 0 14px; font-size: 16px; color: #E8EEF3; }
.er-reveal-btn { background: var(--floodlight); color: var(--ink); border-color: #C79400; min-height: 52px; }
.er-wait { margin: 0 0 6px; color: var(--chalk); font-size: 16px; }
.er-gaps ul { margin: 8px 0 0 18px; }
.er-note { margin: 8px 0; }
.er-small { font-size: 14px; }
.er-replay { margin: 12px 0 0; }
.er-usage { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--paper-alt); font-size: 15.5px; }
.er-usage-head { margin: 0 0 4px; font-weight: 800; }
.er-usage ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.er-usage .er-dep { color: var(--zone-relegation-text); }
.er-how { margin-top: 14px; }
.er-reveal { padding: 4px 0; }
.er-reveal-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.er-reveal-title { margin: 0; font-size: 18px; font-weight: 800; }
.er-reveal-say { min-height: 1.6em; margin: 10px 0; font-size: 20px; font-weight: 800; color: #1E3A8A; }
.er-reveal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.er-reveal-row { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--rule); animation: er-in 420ms ease-out; }
.er-reveal-row.is-top { padding: 14px 12px; font-size: 19px; border: 3px solid var(--floodlight); background: #FFF9E1; }
.er-reveal-row.er-row-purple { box-shadow: inset 6px 0 0 var(--super); }
.er-reveal-row.er-row-green { box-shadow: inset 6px 0 0 var(--grass); }
.er-reveal-row.er-row-amber { box-shadow: inset 6px 0 0 var(--floodlight); }
.er-reveal-row.er-row-red { box-shadow: inset 6px 0 0 var(--danger); }
.er-r-pos { font-weight: 800; }
.er-r-nat { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.er-r-pts { white-space: nowrap; }
.er-r-pts strong { font-size: 1.2em; }
.er-reveal-band { padding: 8px 10px; border-radius: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px; animation: er-in 420ms ease-out; }
.er-reveal-band.er-band-purple { background: var(--super); color: #fff; }
.er-reveal-band.er-band-green { background: var(--grass); color: #fff; }
.er-reveal-band.er-band-amber { background: var(--floodlight); color: var(--ink); }
.er-reveal-band.er-band-red { background: var(--danger); color: #fff; }
@keyframes er-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .er-reveal-row { grid-template-columns: 2.8em minmax(0, 1fr) auto; grid-template-areas: "pos nat pts" "pos seed pts"; row-gap: 4px; }
  .er-r-pos { grid-area: pos; } .er-r-nat { grid-area: nat; } .er-r-seed { grid-area: seed; } .er-r-pts { grid-area: pts; }
}
@media (prefers-reduced-motion: reduce) { .er-reveal-row, .er-reveal-band { animation: none; } }
.intl-rank-note { padding: 8px 10px; border-radius: 8px; background: #DCE6FA; }

.er-how summary { color: var(--ink); }
.er-how .explain-list { color: var(--ink); }
.er-table thead th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
.er-seed-inline { display: none; }
@media (max-width: 560px) {
  .er { padding: 12px 6px; }
  .er-panel { padding: 10px 6px; }
  .er-table .er-c-seed { display: none; }
  .er-seed-inline { display: block; margin-top: 3px; }
  .er-table th, .er-table td { padding: 7px 3px; }
  .er-c-pos { width: 2.2em; }
}
.er-table .nat { white-space: normal; }

/* ---------------- Build 1_109: continents, movement, split African markers --- */
.er-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.er-tab { min-height: 48px; padding: 8px 16px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.25); color: #fff; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.er-tab.is-on { background: var(--paper); color: var(--ink); border-color: var(--floodlight); box-shadow: 0 0 0 2px var(--floodlight); }
.er-tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.er-tab[disabled] { cursor: default; opacity: 0.75; }
.er-tab-badge { padding: 2px 9px; border-radius: 999px; background: var(--floodlight); color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.er-panel-head { margin: 0 0 4px; font-size: clamp(20px, 2.4vw, 24px); }
.er-panel-help { margin: 0 0 10px; font-size: 15.5px; color: var(--ink); max-width: 80ch; }
.er-panel .er-ready { margin-bottom: 12px; }
.er-panel .er-wait { color: var(--ink-soft); }
/* split markers: left half = continental Shield, right half = World Shield */
.er-split { position: relative; display: inline-flex; overflow: hidden; width: 14px !important; height: 14px !important; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); background: none !important; }
.er-half { display: block; width: 50%; height: 100%; }
.er-half-purple { background: var(--super); } .er-half-green { background: var(--grass); } .er-half-amber { background: var(--floodlight); } .er-half-red { background: var(--danger); }
.er-seed-split { background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04)), #F3F1EA; color: var(--ink); }
.er-legend-split { margin: -4px 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.er-legend-split .er-legend-key { display: inline-flex; vertical-align: middle; margin-right: 4px; }
.er-legend-key { padding: 3px; }
/* movement: arrows, never seed pills */
.er-move { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; font-weight: 800; font-size: 14.5px; }
.er-move-arrow { font-size: 12px; }
.er-move-words { font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.er-move.is-up { color: #12703A; } .er-move.is-up .er-move-arrow { color: #12703A; }
.er-move.is-down { color: #B42318; } .er-move.is-down .er-move-arrow { color: #B42318; }
.er-move.is-same, .er-move.is-none { color: var(--ink-soft); }
.er-c-move { width: 1%; }
.er-inline { display: none; }
.er-r-move { white-space: nowrap; }
.er-reveal-row { grid-template-columns: 3.4em minmax(0, 1fr) auto auto auto; }
.er-reveal-band.er-band-split { background: linear-gradient(90deg, var(--l, var(--floodlight)) 0 50%, var(--r, var(--grass)) 50% 100%); }
.er-reveal-band.er-band-split.er-band-amber { --l: var(--floodlight); color: var(--ink); }
.er-reveal-band.er-band-split.er-band-red { --l: var(--danger); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.er-reveal-band.er-band-r-green { --r: var(--grass); } .er-reveal-band.er-band-r-amber { --r: var(--floodlight); } .er-reveal-band.er-band-r-red { --r: var(--danger); }
@media (max-width: 1000px) { .er-c-move .er-move-words { display: none; } }
@media (max-width: 760px) {
  .er-table .er-c-move, .er-table .er-c-seed { display: none; }
  .er-inline { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 3px; }
  .er-inline .er-seed-inline { display: inline-flex; margin: 0; }
}
@media (max-width: 560px) {
  .er-reveal-row { grid-template-columns: 2.8em minmax(0, 1fr) auto; grid-template-areas: "pos nat pts" "pos move pts" "pos seed pts"; }
  .er-r-move { grid-area: move; }
  .er-move-words { font-size: 12px; }
  .er-tab { flex: 1 1 100%; justify-content: center; }
}
/* Build 1_109: all-time streak records and Seedings History */
.roh-records { margin-top: 22px; }
.roh-records .rec-streak { color: var(--ink); }
.roh-holders { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.roh-holders .nat { font-weight: 700; }
.rec-seed-svg .rec-seed-line { fill: none; stroke: #2563EB; stroke-width: 2.5; }
.rec-seed-lbl { font-size: 11px; font-weight: 700; fill: var(--ink); }
.rec-seed-pt:focus-visible { outline: 2px solid #2563EB; }
.rec-seed-table td, .rec-seed-table th { vertical-align: middle; }
.rec-seed-used { display: table-cell; }
.rec-seed-used .er-seed { margin: 0 6px 2px 2px; }
.roh-records > .cup-note { color: var(--chalk); }
.roh-records .rec-streak { align-content: start; }
.er-tab-badge.is-alert { background: #B42318; color: #fff; }
/* Build 1_110: the Americas */
.er-seed-auto { background: #E9EDF0; color: #3C4955; } .er-seed-auto .er-seed-dot { background: #8A97A3; }
.er-row-auto .er-c-pos { box-shadow: inset 5px 0 0 #8A97A3; }
.er-reveal-row.er-row-auto { box-shadow: inset 6px 0 0 #8A97A3; }
.er-band-row.er-band-auto th { color: #3C4955; }
.rec-seed-block + .rec-seed-block { margin-top: 22px; padding-top: 14px; border-top: 2px solid var(--rule); }
@media (max-width: 560px) {
  .er-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .er-tab { flex: none; font-size: 15.5px; padding: 8px 10px; flex-direction: column; gap: 4px; }
  .er-tab-badge { font-size: 11px; }
}
/* Build 1_111: Asia and Oceania */
.er-seed-prelim { background: #F3E3E0; color: #7E2118; } .er-seed-prelim .er-seed-dot { background: repeating-linear-gradient(45deg, var(--danger) 0 3px, #F3E3E0 3px 5px); }
.er-row-prelim .er-c-pos { box-shadow: inset 5px 0 0 var(--danger); }
.er-reveal-row.er-row-prelim { box-shadow: inset 6px 0 0 var(--danger); }

/* ------------------------------------------------ Online Play (build 1_114) --- */
.ol-page .panel { margin-bottom: 14px; }
.ol-page h2 { margin: 0 0 8px; }
.ol-page h3 { margin: 14px 0 6px; }
.ol-back { margin: 0 0 10px; }
.ol-msg { max-width: 760px; }
.ol-muted { color: var(--ink-soft); font-size: 0.95rem; }
.ol-bad { color: var(--danger); font-weight: 600; }
.ol-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ol-two .panel { margin-bottom: 0; }
.ol-form { display: grid; gap: 10px; max-width: 460px; }
.ol-form .field { display: grid; gap: 4px; }
.ol-form input:not([type="checkbox"]), .ol-form select { min-height: 46px; font-size: 16px; }
.ol-rule { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.ol-check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; }
.ol-check input { width: 22px; height: 22px; }
.ol-leagues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ol-league-btn { width: 100%; text-align: left; display: grid; gap: 2px; padding: 12px 14px; min-height: 52px; border: 2px solid var(--rule); border-radius: 10px; background: var(--paper-alt, #F4F1E8); color: var(--ink); cursor: pointer; font: inherit; }
.ol-league-btn:hover, .ol-league-btn:focus-visible { border-color: var(--grass); }
.ol-league-name { font-weight: 700; font-size: 1.05rem; }
.ol-league-meta { color: var(--ink-soft); font-size: 0.92rem; }
.ol-code { font-size: 1.3rem; letter-spacing: 0.08em; }
.ol-link-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ol-link { flex: 1 1 240px; min-height: 40px; font-size: 15px; }
.ol-members, .ol-quizzes, .ol-list { list-style: none; margin: 0 0 10px; padding: 0; }
.ol-members li, .ol-quizzes li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.ol-members li.is-you { background: var(--pref-soft); box-shadow: inset 4px 0 0 var(--pref); padding-left: 10px; }
.ol-members .ol-quiz-done { margin-left: auto; color: var(--ink-soft); font-size: 0.92rem; }
.ol-quizzes li span:first-child { font-weight: 600; min-width: 80px; }
.ol-done { color: var(--zone-promotion-text, #1F6B3A); font-weight: 700; }
.ol-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--paper-alt, #EEE); border: 1px solid var(--rule); font-size: 0.82rem; font-weight: 600; }
.ol-list li { padding: 4px 0; }
.ol-excluded li { color: var(--ink-soft); }
.ol-seed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.ol-seed { display: grid; gap: 3px; font-size: 0.92rem; font-weight: 600; }
.ol-seed select { min-height: 42px; font-size: 15px; }
.ol-confirm { border: 2px solid var(--floodlight); background: #FFF8DB; border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.ol-warning { border-left: 6px solid var(--floodlight); }
/* the quiz: big, readable, thumb-sized choices */
.ol-quiz { max-width: 680px; }
.ol-q-count { margin: 0 0 6px; font-weight: 700; color: var(--ink-soft); }
.ol-q-text { font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.25; margin: 10px 0 14px; }
.ol-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ol-choice { min-height: 56px; justify-content: flex-start; text-align: left; font-size: 1.05rem; white-space: normal; display: flex; gap: 10px; align-items: center; }
.ol-choice.is-chosen { outline: 3px solid var(--floodlight); }
.ol-letter { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.25); font-weight: 700; flex: none; }
.ol-timer { height: 10px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.ol-timer-bar { display: block; height: 100%; width: 100%; background: var(--grass); transform-origin: left center; animation-name: ol-shrink; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes ol-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); background: var(--danger); } }
@media (prefers-reduced-motion: reduce) { .ol-timer-bar { animation-timing-function: steps(6, end); } }
/* the season */
.ol-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.ol-controls .ol-muted { flex: 1 0 100%; margin: 0; }
.ol-fixture .ol-score { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.ol-fixture .ol-unrevealed { color: var(--ink-soft); font-weight: 500; }
.ol-rolling { animation: ol-pulse 0.6s ease-in-out infinite alternate; }
@keyframes ol-pulse { from { opacity: 0.35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ol-rolling { animation: none; } }
.ol-fixture.is-cancelled .team-name { color: var(--ink-soft); }
.ol-fixture .team-name.is-removed { text-decoration: line-through; }
.ol-cancelled { color: var(--ink-soft); font-size: 0.9rem; }
.ol-pick { width: 22px; height: 22px; }
.ol-roll-own { min-height: 40px; }
.seed-dot.seed-unknown { background: #2B3440; color: #fff; }
table.league tr.ol-removed td { color: var(--ink-soft); }
.ol-msg { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 10px 14px; border-left: 6px solid var(--grass); }
.ol-msg.msg-bad { border-left-color: var(--danger); color: var(--danger); font-weight: 600; }

/* Build 1_117: Online Play uses the main game's fixture rows, dice, automation bar
   and scorebook; only these small additions are its own. */
.cpu-mark { display: inline-block; margin-left: 3px; font-size: 0.78em; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.01em; white-space: nowrap; }
.fixture .home .cpu-mark, .fixture .away .cpu-mark { margin-left: -3px; }
.ol-fixture .ol-row-end { display: block; }
.ol-fixture .score-pair.ol-cancelled { color: var(--ink-soft); font-size: 0.9rem; justify-content: center; min-width: 90px; }
.ol-fixture.is-cancelled .team-name { color: var(--ink-soft); }
.ol-fixture .team-name.is-removed { text-decoration: line-through; }
.die.is-hidden-die:not(.is-rolled):not(.is-pulsing):not(.is-rolling) .die-face { font-size: 18px; }
.ol-autobar { margin: 0; border-radius: 0; }
.ol-autobar .autobar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ol-autobar .autobar-note { display: block; margin-top: 6px; }
.ol-scorebook { margin-bottom: 14px; }
.ol-scorebook .scorebook-side .ol-key { padding: 8px 12px 0; margin: 0; color: var(--paper); opacity: 0.9; }
.ol-cpu { border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px 10px; margin: 0; display: grid; gap: 6px; min-width: 0; }
.ol-cpu legend { font-weight: 700; padding: 0 4px; font-size: 0.92rem; }
.ol-cpu input { min-height: 44px; font-size: 16px; width: 100%; box-sizing: border-box; }
.ol-cpu select { width: 100%; }
.ol-cpu-form { max-width: none; }
/* Build 1_119: Gold Guest Pass */
.ol-guest { border-left: 6px solid var(--floodlight); }
.ol-guest-note { background: #FFF8DB; border-radius: 8px; padding: 8px 12px; }
.ol-code-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ol-invite-mail { margin-top: 10px; }
.owner-check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; }
.owner-check input { width: 22px; height: 22px; }
.owner-warnings { margin: 8px 0; padding-left: 20px; color: var(--danger); font-weight: 600; }
.owner-warnings:empty { display: none; }
/* Build 1_120: the Dashboard's centred heading and tabs */
.owner-head { text-align: center; margin: 6px auto 14px; max-width: 720px; }
.owner-head .owner-title { margin-bottom: 6px; }
.owner-head .owner-lede { margin: 0 auto; }
.owner-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 18px; padding: 6px; max-width: 980px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.owner-tab { flex: 1 1 140px; min-height: 48px; padding: 10px 16px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.owner-tab:hover { border-color: var(--floodlight); }
.owner-tab:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.owner-tab[aria-selected="true"] { background: var(--floodlight); border-color: var(--floodlight); color: var(--ink); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
@media (max-width: 560px) { .owner-tab { flex: 1 1 45%; font-size: 16px; padding: 8px 10px; } }
.owner-panel-note { text-align: center; }
.owner-future-badge { display: inline-block; margin: 0 0 12px; padding: 8px 14px; border-radius: 999px; background: #FFF4CC; border: 2px dashed var(--floodlight); color: var(--ink); font-weight: 700; }
/* Build 1_120: Online Play set-up steps — one task at a time, big controls */
.btn-big { min-height: 56px; padding: 12px 26px; font-size: 1.15rem; }
.ol-wizard { max-width: none; }
.ol-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 18px; padding: 0; counter-reset: none; }
.ol-step .ol-step-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 0; background: none; font: inherit; color: var(--ink-soft); cursor: default; min-height: 64px; }
.ol-step button.ol-step-btn { cursor: pointer; }
.ol-step button.ol-step-btn:hover .ol-step-no, .ol-step button.ol-step-btn:focus-visible .ol-step-no { box-shadow: 0 0 0 3px var(--floodlight); }
.ol-step-no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--rule); background: var(--paper); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.ol-step-name { font-size: 0.82rem; font-weight: 600; text-align: center; line-height: 1.15; }
.ol-step.is-current .ol-step-no { background: var(--floodlight); border-color: #C79400; }
.ol-step.is-current .ol-step-name { color: var(--ink); font-weight: 800; }
.ol-step.is-done .ol-step-no { background: var(--grass); border-color: var(--grass); color: #fff; }
.ol-wiz-q { font-size: clamp(1.4rem, 4.2vw, 1.9rem); line-height: 1.2; margin: 4px 0 14px; }
.ol-wiz-sum { font-size: 1.12rem; font-weight: 600; }
.ol-wiz-big { font-size: 1.6rem; margin: 6px 0; }
.ol-wiz-form { max-width: 520px; margin-top: 14px; }
.ol-wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.ol-wiz-nav .btn { flex: 0 1 220px; }
.ol-stepper { display: inline-flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.ol-stepper-btn { width: 64px; height: 64px; min-height: 64px; padding: 0; font-size: 2rem; line-height: 1; border-radius: 14px; justify-content: center; }
.ol-stepper-val { min-width: 84px; text-align: center; font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ol-share { background: var(--paper-alt, #F4F1E8); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.ol-share .btn { min-height: 48px; }
.ol-invite-rows { max-width: none; gap: 12px; }
.ol-invite-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ol-invite-label { font-weight: 800; font-size: 1.05rem; }
.ol-invite-row input { min-height: 50px; font-size: 16px; width: 100%; box-sizing: border-box; }
.ol-invite-row .btn { min-height: 50px; }
.ol-row-note { grid-column: 2 / -1; margin: 0; font-size: 0.95rem; font-weight: 600; }
.ol-row-note.is-good { color: var(--zone-promotion-text, #1F6B3A); }
.ol-row-note.is-bad { color: var(--danger); }
@media (max-width: 560px) {
  .ol-step-name { font-size: 0.7rem; }
  .ol-step-no { width: 32px; height: 32px; font-size: 0.95rem; }
  .ol-invite-row { grid-template-columns: minmax(0, 1fr); }
  .ol-row-note { grid-column: 1; }
  .ol-wiz-nav .btn { flex: 1 1 0; }
}
.ol-extra-cpu { margin: 12px 0; }
.ol-extra-cpu summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.ol-create-start .btn-big { margin-top: 4px; }
/* quiz cards: which games each quiz decides */
.ol-quizzes-panel.is-big { border-left: 6px solid var(--floodlight); }
.ol-quiz-cards { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ol-quiz-card { position: relative; display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--rule); background: var(--paper); }
.ol-qc-title { font-weight: 800; font-size: 1.15rem; }
.ol-qc-block { font-weight: 600; }
.ol-qc-state { font-size: 0.95rem; color: var(--ink-soft); font-weight: 700; }
.ol-quiz-card.is-done { border-color: var(--grass); }
.ol-quiz-card.is-done .ol-qc-state { color: var(--zone-promotion-text, #1F6B3A); }
.ol-quiz-card.is-started { border-color: var(--floodlight); }
.ol-quiz-card .ol-done { position: absolute; top: 10px; right: 12px; font-size: 1.3rem; }
.ol-quiz-go { display: flex; flex-wrap: wrap; gap: 10px; }
.ol-start-quiz { min-width: min(100%, 280px); }
/* the quiz itself: big, steady, everything on one screen */
.ol-page.is-compact { padding-top: 8px; }
.ol-qstage { max-width: 760px; margin: 0 auto; padding: 16px 18px 18px; }
.ol-q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ol-qstage .ol-q-count { margin: 0; font-size: 1.05rem; }
.ol-q-clock { margin: 0; display: inline-flex; align-items: baseline; gap: 3px; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; }
.ol-q-secs { font-size: 2rem; font-weight: 800; line-height: 1.1; min-width: 1.2ch; text-align: center; }
.ol-q-unit { font-size: 0.9rem; font-weight: 700; opacity: 0.85; }
.ol-q-clock.is-low { background: var(--danger); }
.ol-qstage .ol-timer { height: 14px; margin: 10px 0 4px; }
.ol-qstage .ol-q-text { font-size: clamp(1.35rem, 4.6vw, 2rem); line-height: 1.25; margin: 10px 0 14px; min-height: 3.75em; display: flex; align-items: center; }
.ol-qstage .ol-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ol-qstage .ol-choice { min-height: 72px; font-size: clamp(1.1rem, 3.4vw, 1.3rem); font-weight: 700; padding: 10px 14px; line-height: 1.2; }
.ol-qstage .ol-letter { width: 38px; height: 38px; font-size: 1.1rem; }
.ol-choice-text { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .ol-qstage { padding: 12px 12px 14px; }
  .ol-qstage .ol-choices { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ol-qstage .ol-choice { min-height: 62px; }
  .ol-qstage .ol-q-text { min-height: 3.75em; margin: 8px 0 12px; }
}

/* =====================================================================
   Build 1_121 — Log In / Register (My Account once signed in) at the end
   of the public header's tabs, beside Plans & Pricing.
   Desktop: one row (tabs a little tighter, text the same readable size
   class). Tablet: two even rows of four. Phone: the menu button, with the
   account button kept in sight beside it. Text is never shrunk below
   readable, every target is at least 48px tall, and user zoom is untouched.
   ===================================================================== */
.nav-account { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink) !important; background: #FFFFFF; border-color: #FFFFFF; }
.nav-account:hover { background: #FFF4CC; border-color: var(--floodlight); }
.nav-account.is-signed-in { background: transparent; color: #fff !important; border-color: var(--floodlight); }
.nav-account.is-signed-in:hover { background: rgba(242, 183, 5, 0.16); }
.nav-account-plan { font-size: 13px; letter-spacing: 0.06em; padding: 3px 7px; border-radius: 999px; background: var(--floodlight); color: var(--ink); line-height: 1; }
#account-mini, .account-mini { display: none !important; }
@media (min-width: 1241px) {
  .site-nav[data-tabs="8"] { flex-wrap: nowrap; gap: 6px; }
  .site-nav[data-tabs="8"] .nav-tab { font-size: 17px; letter-spacing: 0.03em; padding: 10px 11px; min-width: max-content; }
}
@media (min-width: 761px) and (max-width: 1240px) {
  .site-nav[data-tabs="8"] { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .site-nav[data-tabs="8"] .nav-tab { min-width: 0; white-space: normal; line-height: 1.15; padding-left: 8px; padding-right: 8px; font-size: 18px; }
}
@media (max-width: 760px) {
  /* Build 1_125: inside the open menu, the last item, full width like the other tabs */
  .site-nav .nav-account { display: flex; justify-content: flex-start; text-align: left; min-height: 54px; font-size: 20px; padding: 12px 16px; }
  .site-nav .nav-account .nav-account-plan { margin-left: 4px; }
}
@media (max-width: 350px) { .wordmark-logo { height: 30px; } }

/* Build 1_121: "Want to continue to Season 2?" — the free season's continuation prompt */
.season-two-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.season-two-cta .btn { min-height: 52px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.season-two-cta-note { font-size: 15px; margin: 6px 0 0; }

/* Build 1_121: Dashboard — Users & Accounts and Email Campaigns */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ua-totals { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.ua-chip { display: inline-flex; align-items: baseline; gap: 4px; min-height: 40px; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--rule, #D9DCD4); background: #fff; color: var(--ink); font: 600 15px var(--sans); cursor: pointer; }
.ua-chip strong { font-size: 17px; }
.ua-chip.is-static { cursor: default; background: var(--paper-alt, #F0F1EC); }
button.ua-chip:hover { border-color: var(--grass, #1F8A4C); }
.ua-filters { display: grid; grid-template-columns: 2fr repeat(4, minmax(120px, 1fr)); gap: 10px; align-items: end; margin-bottom: 8px; }
.ua-filters select, .owner textarea, .owner input[type="search"] { width: 100%; min-height: 44px; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); }
.owner textarea { min-height: 180px; line-height: 1.5; }
#cp-filters { grid-template-columns: minmax(180px, 1fr) 2fr; }
@media (max-width: 900px) { .ua-filters, #cp-filters { grid-template-columns: 1fr 1fr; } .ua-q { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ua-filters, #cp-filters { grid-template-columns: 1fr; } }
.ua-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ua-table td small { color: var(--ink-soft); }
.ua-table input[type="checkbox"] { width: 22px; height: 22px; }
.ua-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.ua-pager .btn { min-height: 44px; }
.ua-record:focus { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.ua-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; color: var(--ink); }
.ua-facts dt { font-weight: 700; }
.ua-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .ua-facts { grid-template-columns: 1fr; } .ua-facts dd { margin-bottom: 6px; } }
.ua-group { border: 2px solid var(--rule, #D9DCD4); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.ua-group h3 { margin: 0 0 4px; font-size: 20px; }
.ua-group .btn { margin: 4px 8px 4px 0; min-height: 44px; }
.ua-access { border-left: 8px solid #2E62D9; }
.ua-status { border-left: 8px solid #C25A00; }
.ua-delete { border-left: 8px solid #7C8790; background: var(--paper-alt, #F0F1EC); }
.ua-consent, .ua-audit { border-left: 8px solid #1F8A4C; }
.cp-preview { margin: 10px 0; }
.cp-mail { max-width: 560px; border: 1px solid #D9DCD4; border-radius: 10px; overflow: hidden; background: #FAFAF7; color: #16222E; }
.cp-mail-top { background: #0A2C19; color: #FAFAF7; padding: 12px 18px; border-bottom: 4px solid #F2B705; font: 700 20px var(--cond); }
.cp-mail-body { padding: 16px 18px; }
.cp-mail-body h4 { font-size: 22px; margin: 6px 0 12px; color: #0F3D23; }
.cp-mail-subject { font-size: 13px; color: #5A6B7A; margin: 0; }
.cp-mail-btn { display: inline-block; background: #F2B705; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.cp-mail-foot { border-top: 1px solid #D9DCD4; padding: 12px 18px; font-size: 12px; color: #5A6B7A; }
.cp-card { border: 2px solid var(--rule, #D9DCD4); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; color: var(--ink); }
.cp-card h4 { margin: 0 0 4px; font-size: 18px; overflow-wrap: anywhere; }
.cp-counts { font-weight: 600; }
#cp-send { min-height: 52px; font-size: 18px; }
.owner [hidden] { display: none !important; }

/* Build 1_122: the in-website Back button — at the top of every screen but Home, the site's
   own button style, 48px tall for touch, clear of the round Back to top button. */
.page-back-row { max-width: var(--shell); width: 100%; box-sizing: border-box; margin: 0 auto; padding: 14px 20px 0; position: relative; z-index: 2; text-align: left; display: block; }
.page-back-row[hidden] { display: none; }
.page-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px 8px 14px;
  font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 2px solid var(--floodlight); border-radius: var(--r-lg); cursor: pointer;
}
.page-back span { font-size: 26px; line-height: 0.8; margin-top: -2px; }
.page-back:hover { background: rgba(242, 183, 5, 0.18); }
.page-back:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.page-back:disabled { opacity: 0.45; cursor: not-allowed; border-color: rgba(232, 238, 243, 0.4); }
@media (max-width: 760px) { .page-back-row { padding: 10px 14px 0; } }

/* =====================================================================
   Build 1_122 — Dashboard: six tabs, plain-English intros, nothing cut off.
   Wide tables scroll inside their own box (with a visible bar and a note
   saying so); on phones every row becomes a labelled card.
   ===================================================================== */
.owner .shell { min-width: 0; }
.owner-card { min-width: 0; overflow-wrap: anywhere; }
.owner-intro { font-size: 16px; line-height: 1.5; color: var(--ink); margin: 0 0 12px; max-width: 80ch; }
.owner-panel-note.owner-intro { color: var(--chalk); text-align: center; margin: 0 auto 6px; }
.owner-help { margin: 0 0 12px; }
.owner-help summary, .owner-older summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--grass-dark, #145530); }
.owner-help[open] { background: var(--paper-alt, #F0F1EC); border-radius: 10px; padding: 0 12px 10px; }
.owner-tabs { max-width: 1100px; }
.owner-tab { flex: 1 1 150px; }
@media (max-width: 700px) { .owner-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .owner-tab { font-size: 16px; padding: 8px 10px; } }
.owner-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.owner-subtab { flex: 1 1 220px; min-height: 48px; padding: 10px 16px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.2); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.owner-subtab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; box-shadow: inset 0 -4px 0 var(--floodlight); }
.owner-subtab:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
#mail-ready { margin: 10px 0 0; }
.owner-protected { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.owner-owner { border-left: 8px solid var(--floodlight); }
/* tables: wrap where sensible, scroll inside the box where not */
.owner-table-wrap { overflow-x: auto; max-width: 100%; scrollbar-width: auto; scrollbar-color: #7C8790 #E4E7E1;
  background: linear-gradient(to right, var(--paper) 30%, rgba(250, 250, 247, 0)), linear-gradient(to left, var(--paper) 30%, rgba(250, 250, 247, 0)) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.22), transparent), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.22), transparent) 100% 0;
  background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.owner-table-wrap::-webkit-scrollbar { height: 12px; }
.owner-table-wrap::-webkit-scrollbar-track { background: #E4E7E1; border-radius: 6px; }
.owner-table-wrap::-webkit-scrollbar-thumb { background: #7C8790; border-radius: 6px; }
.scroll-hint { margin: 8px 0 4px; font-size: 14px; font-weight: 600; color: #8A5A00; }
.scroll-hint[hidden] { display: none; }
.owner-table td { white-space: normal; }
.owner-table td.owner-name { min-width: 170px; }
.ua-table td { min-width: 70px; }
.ua-table td:first-child, .ua-table td:nth-child(2) { min-width: 0; width: 1%; }
@media (max-width: 640px) {
  .owner-table td:nth-child(n)::before { content: none; }
  .owner-table td[data-label]:not(.owner-name):not(.owner-actions)::before { content: attr(data-label) ': '; color: var(--ink-soft); font-weight: 400; }
  .owner-table td.owner-name { min-width: 0; }
  .ua-table td, .ua-table td:first-child, .ua-table td:nth-child(2) { width: 100%; min-width: 0; }
  .ua-table tr { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; align-items: center; }
  .ua-table td:nth-child(n+3) { grid-column: 1 / -1; }
  .ua-table td:nth-child(3) { grid-column: 3; font-weight: 600; }
}
.ua-help { border-left: 8px solid #2E8C6A; }

/* Build 1_122: Online Play — compact league cards, and deleting your own leagues */
.ol-leagues { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.ol-league-card { display: flex; align-items: stretch; gap: 8px; border: 2px solid var(--rule); border-radius: 10px; background: var(--paper-alt, #F4F1E8); padding: 4px; }
.ol-league-card .ol-league-btn { border: 0; background: transparent; flex: 1 1 auto; min-width: 0; padding: 8px 10px; overflow-wrap: anywhere; }
.ol-league-card:hover, .ol-league-card:focus-within { border-color: var(--grass); }
.ol-del-tick { display: flex; align-items: center; padding: 0 2px 0 8px; cursor: pointer; }
.ol-del-tick input { width: 24px; height: 24px; accent-color: #B3261E; }
.ol-del-one { align-self: center; min-height: 44px; flex: none; margin-right: 4px; }
.ol-del-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.ol-del-bar .btn { min-height: 44px; }
.ol-del-confirm { border: 3px solid #B3261E; margin: 0 0 12px; max-width: 640px; }
.ol-del-confirm h3 { margin: 0 0 8px; color: #7A2219; }
.ol-del-list { margin: 0 0 10px; padding-left: 20px; }
.ol-del-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ol-del-actions .btn { min-height: 48px; }
.owner-table td { overflow-wrap: normal; word-break: normal; }
.owner-table td.owner-name { overflow-wrap: anywhere; }
.ua-table td:nth-child(2) .btn { white-space: nowrap; }
.ua-table td:nth-child(3) { min-width: 200px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .ua-table td:nth-child(3) { min-width: 0; } }

/* =====================================================================
   Build 1_123 — Dashboard Overview: big numbers, a package pie chart and
   simple bar charts. Numbers and names are always printed beside colours.
   ===================================================================== */
.ov-periods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px auto 6px; }
.ov-period { min-height: 48px; padding: 8px 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.45); background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.ov-period[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; box-shadow: inset 0 -4px 0 var(--floodlight); }
.ov-period:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.ov-period-note { text-align: center; color: var(--chalk); margin: 0 auto 4px; font-size: 15px; }
.ov-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .ov-split { grid-template-columns: 1fr; } }
.ov-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ov-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .ov-tiles-3 { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .ov-tiles { grid-template-columns: 1fr; } }
.ov-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--rule, #D9DCD4); background: #fff; color: var(--ink); font: inherit; min-width: 0; }
.ov-tile.is-big { grid-column: 1 / -1; }
.ov-tiles-3 .ov-tile.is-big { grid-column: auto; }
.ov-tile.is-link { cursor: pointer; }
.ov-tile.is-link:hover { border-color: var(--grass, #1F8A4C); }
.ov-tile.is-link:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.ov-num { font-family: var(--cond); font-weight: 700; font-size: 44px; line-height: 1; }
.ov-tile.is-big .ov-num { font-size: 56px; }
.ov-label { font-weight: 700; font-size: 17px; }
.ov-note { font-size: 13.5px; color: var(--ink-soft); }
.ov-go { font-size: 13.5px; font-weight: 700; color: var(--grass-dark, #145530); margin-top: 4px; }
.ov-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; flex: none; }
.ov-tile .ov-swatch { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; }
.ov-pie { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ov-pie figcaption, .ov-chart figcaption { font-weight: 700; font-size: 17px; color: var(--ink); }
.ov-pie-svg { width: min(100%, 260px); height: auto; }
.ov-pie-text { fill: #fff; font: 700 15px var(--sans); }
.ov-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; }
.ov-legend-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--rule); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.ov-legend-pc { color: var(--ink-soft); }
.ov-empty { padding: 20px; text-align: center; border: 2px dashed var(--rule); border-radius: 12px; color: var(--ink-soft); width: 100%; box-sizing: border-box; }
.ov-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
@media (max-width: 860px) { .ov-charts { grid-template-columns: 1fr; } }
.ov-chart { margin: 0; min-width: 0; border: 1px solid var(--rule); border-radius: 12px; padding: 12px; background: #fff; }
.ov-bars { width: 100%; height: auto; display: block; margin-top: 6px; }
.ov-axis { font: 600 11px var(--sans); fill: #5A6B7A; }
.ov-val { font: 700 11px var(--sans); fill: #16222E; }
.ov-others { margin-top: 12px; }
.ov-attention { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ov-att { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--rule); background: #fff; color: var(--ink); }
.ov-att.is-warn { border-color: #C27C0E; background: #FFF4CC; }
.ov-att.is-ok { border-color: #1F8A4C; }
.ov-att-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; flex: none; }
.ov-att.is-warn .ov-att-icon { background: #8A5A00; }
.ov-att.is-ok .ov-att-icon { background: #1F8A4C; }
.ov-att-text { flex: 1 1 260px; min-width: 0; }
.ov-att .btn { min-height: 44px; }
.ov-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ov-actions .btn, .ov-tester-choice .btn { min-height: 52px; font-size: 17px; }
.ov-tester-choice { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--paper-alt, #F0F1EC); }
.ov-tester-choice p { margin: 0; font-weight: 700; color: var(--ink); }
.ov-tester-choice .btn { white-space: normal; text-align: left; }
.owner-tabs { max-width: 1180px; }
.owner-tab { flex: 1 1 130px; }
@media (min-width: 701px) and (max-width: 1100px) { .owner-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ua-filters { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ua-filters .ua-q { grid-column: 1 / -1; }
.ov-tile, .ov-label { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* Build 1_124: Online Play only — Automate Scores is the main (green, left) control; copy fallback; guest refresh */
.ol-autobar .ol-automate { background: var(--grass, #1F8A4C); color: #fff; border-color: var(--grass, #1F8A4C); min-height: 52px; padding: 10px 22px; font-size: 18px; font-weight: 700; }
.ol-autobar .ol-automate:hover:not([disabled]) { background: #17703D; }
.ol-autobar .ol-automate[disabled] { opacity: 0.5; }
.ol-sound-hint { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.ol-copy-fallback { margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: #FFF4CC; border: 2px solid var(--floodlight); color: var(--ink); font-size: 15px; }
.ol-copy-fallback[hidden] { display: none; }
.ol-copy-fallback input { display: block; width: 100%; margin-top: 6px; min-height: 44px; font: 700 20px var(--cond); letter-spacing: 0.06em; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); -webkit-user-select: all; user-select: all; }
.btn.is-copied { background: var(--grass, #1F8A4C) !important; color: #fff !important; border-color: var(--grass, #1F8A4C) !important; }
.ol-waiting { border-left: 8px solid var(--floodlight); }
.ol-refresh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ol-refresh { min-height: 52px; }
.ol-quiz-done.is-complete { color: var(--grass-dark, #145530); font-weight: 700; }
.ol-started { border: 3px solid var(--grass, #1F8A4C); text-align: center; }
.ol-enter { min-height: 56px; font-size: 20px; padding: 12px 28px; }
.ol-hide-one { align-self: center; min-height: 44px; flex: none; margin-right: 4px; white-space: normal; max-width: 9em; line-height: 1.15; }
.ol-hide-confirm { border: 3px solid var(--floodlight); margin: 0 0 12px; max-width: 640px; }
.ol-hidden-row { margin: 12px 0 4px; }
.ol-hidden-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ol-hidden-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px dashed var(--rule); border-radius: 8px; }
.owner-table .owner-delete { border-color: #B3261E !important; color: #7A2219 !important; }

/* ===================== Build 1_125 — Online Play: Automate Scores holds the page still ===================== */
/* the note keeps one size: every message it can show is stacked, invisibly, in the same cell */
.ol-autobar .ol-note-stack { display: grid; margin-right: 0; }
.ol-autobar .ol-note-stack > span { grid-area: 1 / 1; }
.ol-autobar .ol-note-ghost { visibility: hidden; }
.ol-autobar.is-busy .ol-note-stack { font-weight: 400; }
/* nothing in a fixture row changes size as a die shows its score */
.ol-fixture .die { flex: 0 0 auto; }

/* ------------------------------------------------------------------------------------------------
 * Build 1_126 — Online Play guided league set-up, personal invitations, deadlines, ready list.
 * Online Play only. Big touch targets; nothing wider than the screen; user zoom untouched.
 * ---------------------------------------------------------------------------------------------- */
.ol-gstep-count { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink-soft); }
.ol-gstep-count strong { color: var(--ink); }
.ol-gsteps { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ol-gsteps .ol-step-name { font-size: 0.74rem; }
.ol-gform { max-width: 680px; }
.ol-gform .field { display: block; margin: 0 0 6px; }
.ol-gform .field > span { display: block; font-weight: 700; margin-bottom: 4px; }
.ol-gform .field input { width: 100%; box-sizing: border-box; min-height: 52px; font-size: 18px; }
.ol-gform .ol-check { display: flex; gap: 10px; align-items: center; min-height: 48px; font-weight: 600; }
.ol-gform .ol-check input { width: 26px; height: 26px; }
.ol-field-err { margin: 2px 0 12px; padding: 8px 12px; border-left: 4px solid var(--danger); background: #FCEDEB; color: #7A1F16; font-weight: 700; border-radius: 4px; }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 2px rgba(179, 55, 43, 0.25); }
.ol-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 10px 0 12px; }
.ol-options-two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ol-option { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 16px 54px; min-height: 72px; border: 2px solid var(--rule); border-radius: 14px; background: #fff; cursor: pointer; }
.ol-option input { position: absolute; left: 16px; top: 18px; width: 26px; height: 26px; margin: 0; accent-color: var(--grass); }
.ol-option-title { font-size: 1.2rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.ol-option-words { color: var(--ink-soft); line-height: 1.35; }
.ol-option.is-chosen { border-color: var(--grass); background: #EEF8F1; box-shadow: 0 0 0 2px var(--grass); }
.ol-option:focus-within { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.ol-custom-time { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 4px 0 10px; }
.ol-custom-time[hidden] { display: none; }
.ol-custom-time .ol-num { width: 130px; }
.ol-custom-time p { flex-basis: 100%; margin: 0; }
.ol-note-box { margin: 14px 0 4px; padding: 12px 14px; border-radius: 10px; background: #FFF8DB; border: 1px solid #E8CF6A; }
.ol-glabels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; margin: 8px 0 6px; }
.ol-review { margin: 6px 0 12px; display: grid; gap: 0; }
.ol-review > div { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ol-review dt { font-weight: 800; color: var(--ink-soft); }
.ol-review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ol-gsum { margin-top: 10px; }
.ol-deadline { border-left: 6px solid var(--floodlight); }
.ol-deadline.is-none { border-left-color: var(--grass); }
.ol-deadline.is-up { border-left-color: var(--danger); }
.ol-countdown { margin: 4px 0 8px; font: 800 clamp(2rem, 7vw, 2.8rem)/1.05 var(--cond, inherit); font-variant-numeric: tabular-nums; color: var(--ink); }
.ol-place-list, .ol-inv-list { list-style: none; margin: 8px 0; padding: 0; }
.ol-place { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ol-place-who { overflow-wrap: anywhere; }
.ol-place-team { color: var(--ink-soft); }
.ol-place-quiz { grid-column: 1 / -1; font-size: 0.95rem; }
.ol-status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.ol-status-ready { background: var(--grass); color: #fff; }
.ol-status-incomplete { background: #FFF1C2; color: #6B4E00; border: 1px solid #E8CF6A; }
.ol-status-not-joined { background: #EEF0EC; color: #3E4A55; border: 1px solid var(--rule); }
.ol-inv { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ol-inv-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.ol-inv-label { font-size: 1.15rem; overflow-wrap: anywhere; }
.ol-inv-code-row { margin: 2px 0 8px; }
.ol-inv-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ol-inv-btns .btn { min-height: 52px; min-width: 150px; flex: 1 1 150px; max-width: 260px; justify-content: center; }
.ol-inv-btns .btn.is-copied { background: var(--grass); color: #fff; }
.ol-inv-mail { margin-top: 8px; }
.ol-inv-mail summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink-soft); font-weight: 600; }
.ol-inv-mail-form .field input { width: 100%; box-sizing: border-box; min-height: 48px; font-size: 16px; }
.ol-todo { margin: 4px 0 0; padding-left: 1.4em; font-size: 1.08rem; line-height: 1.5; }
.ol-todo li { margin: 6px 0; }
.ol-todo li.is-done { color: var(--grass); }
.ol-stuck { border-left: 6px solid var(--danger); }
.ol-stuck-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ol-missed { border-left: 6px solid var(--danger); }
.ol-outcome { border-left: 6px solid var(--grass); }
.ol-settings-box summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 760px) {
  .ol-gsteps { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
  .ol-gsteps .ol-step-name { display: none; }
  .ol-gsteps .ol-step-no { width: 30px; height: 30px; font-size: 0.9rem; }
  .ol-gsteps .ol-step .ol-step-btn { min-height: 44px; padding: 4px 0; }
  .ol-review > div { grid-template-columns: 1fr; gap: 2px; }
  .ol-inv-btns .btn { max-width: none; }
  .ol-option { padding-left: 50px; }
}

/* Build 1_127 — invited player's journey; the die waiting for its score. Online Play only. */
.ol-jsteps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ol-inv-card { margin: 6px 0 14px; padding: 16px 18px; border-radius: 14px; background: #EEF8F1; border: 2px solid var(--grass); }
.ol-inv-card p { margin: 4px 0; }
.ol-inv-kicker { color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.ol-inv-league { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.ol-jquiz-list { list-style: none; margin: 10px 0; padding: 0; }
.ol-jquiz { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ol-jquiz-title { font-weight: 800; font-size: 1.1rem; }
.ol-jquiz-block { color: var(--ink-soft); }
.ol-alldone { display: inline-block; margin: 0 0 8px; padding: 8px 14px; border-radius: 999px; background: var(--grass); color: #fff; font-weight: 800; font-size: 1.1rem; }
.ol-journey .ol-quiz-go .btn-big, .ol-quiz .ol-quiz-go .btn-big { min-height: 60px; font-size: 1.2rem; }
.ol-journey .ol-refresh { min-height: 60px; }
.ol-choice { min-height: 64px; }
.die.is-waiting { opacity: 0.85; animation: none; }
.die.is-waiting .die-face { letter-spacing: 0.05em; }
.ol-rolllog ul { margin: 6px 0 0; padding-left: 1.2em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .ol-jsteps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ol-jsteps .ol-step-name { font-size: 0.68rem; }
  .ol-jquiz { grid-template-columns: auto 1fr; }
  .ol-jquiz .ol-status { grid-column: 1 / -1; justify-self: start; }
}

/* Build 1_128 — Players' Lounge, Open Leagues, Coming soon pages, "You're all set!". Online Play only. */
.ol-lounge { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ol-lounge-card { margin: 0; }
.ol-lounge-btn { width: 100%; height: 100%; min-height: 150px; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr; gap: 6px 14px; align-items: start; text-align: left; padding: 18px; border-radius: 16px; border: 2px solid var(--rule); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.ol-lounge-btn:hover { border-color: var(--grass); }
.ol-lounge-btn:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 3px; }
.ol-lounge-ico { grid-row: 1 / 3; width: 56px; height: 56px; }
.ol-lounge-ico svg, .ol-soon-ico svg { width: 100%; height: 100%; display: block; }
.ol-lounge-title { font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.ol-lounge-words { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.35; }
.ol-lounge-card.is-soon .ol-lounge-btn { background: #F1F3EE; }
.ol-lounge-card.is-locked .ol-lounge-btn { background: #F1F3EE; }
.ol-soon-tag { display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: #1A93C4; color: #fff; font-size: 0.78rem; font-weight: 800; vertical-align: middle; }
.ol-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--grass); color: #fff; font-size: 0.9rem; vertical-align: middle; }
.ol-soon { text-align: center; }
.ol-soon-ico { display: block; width: 84px; height: 84px; margin: 4px auto 10px; }
.ol-soon .ol-wiz-sum { max-width: 620px; margin-left: auto; margin-right: auto; }
.ol-open-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.ol-open-card { padding: 16px 18px; border: 2px solid var(--rule); border-radius: 14px; background: #fff; }
.ol-open-card p { margin: 4px 0; }
.ol-open-name { margin: 0 0 4px; font-size: 1.35rem; overflow-wrap: anywhere; }
.ol-open-closes { font-weight: 800; color: #6B4E00; }
.ol-open-card .btn-big { width: 100%; justify-content: center; min-height: 56px; margin-top: 6px; }
.ol-allset { border: 3px solid var(--grass); background: #EEF8F1; text-align: center; }
.ol-allset-title { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; color: var(--grass); margin: 4px 0 8px; }
.ol-allset .btn-big { min-height: 60px; min-width: 220px; justify-content: center; }
.ol-gsteps { grid-template-columns: repeat(9, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .ol-gsteps { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .ol-gsteps .ol-step-no { width: 28px; height: 28px; font-size: 0.85rem; }
  .ol-lounge-btn { min-height: 0; grid-template-columns: 48px 1fr; padding: 14px; }
  .ol-lounge-ico { width: 48px; height: 48px; }
}

/* Build 1_129 — Players' Lounge in the Home/International card style. Six coloured cards with their own
   shield emblems; 3 + 3 on a computer, 2 per row on a tablet, 1 per row on a phone (order kept). */
.ol-lounge-grid { list-style: none; margin: 8px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ol-lc-item { display: flex; min-width: 0; }
.ol-lc { width: 100%; min-width: 0; padding: 26px 24px 24px; }
.ol-lc .ol-lc-title { gap: 14px; }
.ol-lc h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; overflow-wrap: break-word; }
.ol-lc .ol-lc-words { font-size: 17px; line-height: 1.45; }
.ol-lc .home-play { width: 100%; justify-content: center; margin-top: auto; font-size: 21px; padding: 12px 16px; text-decoration: none; }
.ol-lc .home-play .padlock { width: 0.9em; height: 0.9em; }
.ol-lc-create { background: linear-gradient(160deg, #2FB868 0%, #1F8A4C 50%, #0B4F28 100%); }
.ol-lc-open { background: linear-gradient(160deg, #4F82F0 0%, #2E62D9 50%, #132C78 100%); }
.ol-lc-code { background: linear-gradient(160deg, #9A5FE0 0%, #7A3FC2 50%, #3A1670 100%); }
.ol-lc-quiz { background: linear-gradient(160deg, #28B3DF 0%, #1A93C4 50%, #08465F 100%); }
.ol-lc-nation { background: linear-gradient(160deg, #E0533F 0%, #B3372B 50%, #6E1410 100%); }
.ol-lc-saved { background: linear-gradient(160deg, #5B6FB0 0%, #3B4A82 50%, #1A2350 100%); }
.ol-lc-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; flex: none !important; }
.ol-lc-badge-soon { background: #FFFFFF; color: #0B1E10; }
.ol-lc-badge-gold { background: var(--floodlight); color: #0B1E10; }
.ol-lc-badge .padlock { width: 0.95em; height: 0.95em; }
.ol-lc.is-gold-locked { box-shadow: 0 14px 34px rgba(3, 18, 10, 0.42), inset 0 0 0 3px rgba(242, 183, 5, 0.75); }
.ol-lc.is-gold-locked .home-locked { background: rgba(255, 255, 255, 0.95); }
.ol-lc .ol-lc-soonbtn { background: rgba(255, 255, 255, 0.92); }
.ol-lc .ol-count { background: var(--floodlight); color: #0B1E10; }
.ol-gold-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 4px 0 24px; padding: 20px 24px; border-radius: 16px;
  background: linear-gradient(135deg, #3A1670 0%, #7A3FC2 60%, #9A5FE0 100%); color: #fff; border: 2px solid rgba(255, 224, 138, 0.7); box-shadow: 0 10px 26px rgba(3, 18, 10, 0.35); }
.ol-gold-words { flex: 1 1 380px; min-width: 0; }
.ol-gold-banner p { margin: 0 0 6px; font-size: 17px; line-height: 1.45; color: #fff; }
.ol-gold-lead { font-size: 20px !important; }
.ol-gold-small { font-size: 15px !important; opacity: 0.92; }
.ol-gold-banner .ol-gold-btn { margin: 0; flex: none; }
.ol-option.is-disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 1060px) { .ol-lounge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ol-lounge-grid { grid-template-columns: 1fr; gap: 16px; }
  .ol-lc { padding: 20px 18px; }
  .ol-lc .home-game-emblem svg { width: 52px; height: 62px; }
  .ol-gold-banner { padding: 18px; }
  .ol-gold-banner .ol-gold-btn { width: 100%; justify-content: center; }
}
.home-game.ol-lc p.ol-lc-badge-soon { color: #0B1E10; background: #FFFFFF; max-width: none; }
.home-game.ol-lc p.ol-lc-badge-gold { color: #0B1E10; background: var(--floodlight); max-width: none; }

/* Build 1_129 — Dashboard → Question Bank */
.qb-steps { margin: 6px 0 14px; padding-left: 1.4em; font-weight: 600; line-height: 1.6; }
.qb-warn { margin: 10px 0; padding: 10px 14px; border-left: 5px solid var(--floodlight); background: #FFF8DB; border-radius: 6px; color: var(--ink); }
.qb-upload .field input[type="file"] { min-height: 48px; padding: 8px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; width: 100%; box-sizing: border-box; }
.qb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.qb-tile.is-good .ov-num { color: var(--grass); }
.qb-prob-error td:nth-child(2) { color: #7A1F16; font-weight: 700; }
.qb-prob-exact-dup td:nth-child(2), .qb-prob-possible-dup td:nth-child(2), .qb-prob-unresolved td:nth-child(2) { color: #6B4E00; font-weight: 700; }
.qb-warnline { color: #6B4E00; }
.qb-decisions { list-style: none; padding: 0; margin: 6px 0 12px; }
.qb-decide { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 8px; background: #fff; }
.qb-ack { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; }
.qb-ack input { width: 22px; height: 22px; }
.qb-table td { vertical-align: top; }
.qb-open { text-align: left; font: inherit; }
.qb-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; white-space: nowrap; }
.qb-flag { display: inline-block; padding: 1px 6px; border-radius: 6px; background: #FFF1C2; color: #6B4E00; font-size: 0.8em; font-weight: 700; }
.qb-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 0.9em; }
.qb-status-draft { background: #EEF0EC; color: #3E4A55; }
.qb-status-published { background: var(--grass); color: #fff; }
.qb-status-disabled { background: #FCEDEB; color: #7A1F16; }
.qb-bulk { flex-wrap: wrap; gap: 8px; align-items: center; }
.qb-confirm { margin: 10px 0; padding: 14px; border: 2px solid var(--floodlight); border-radius: 10px; background: #FFF8DB; }
.qb-editor { margin-top: 16px; padding: 16px; border: 2px solid var(--rule); border-radius: 12px; background: #fff; }
.qb-edit textarea, .qb-edit input, .qb-edit select { width: 100%; box-sizing: border-box; min-height: 44px; font-size: 16px; }
.qb-answers, .qb-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 14px; }
.qb-cat-tree, .qb-cat-tree ul { list-style: none; padding-left: 0; }
.qb-cat-tree > li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.qb-cat-tree ul { padding-left: 22px; margin-top: 6px; }
.qb-cat-tree ul li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 4px 0; }
.qb-cat-name { font-weight: 700; }
.qb-count-table caption { text-align: left; font-weight: 700; padding: 4px 0; }
.qb-sub-row th { font-weight: 500; }

/* Build 1_130 — "Unlock the Players' Lounge with Gold." (Free, Silver and visitors): the six Lounge
   cards in muted versions of their colours (grey-green, grey-blue, grey-purple, grey-teal, grey-red,
   grey-indigo), each with a padlock; white text stays at 4.5:1 contrast or better. */
.ol-unlock-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin: 4px 0 20px; padding: 22px 26px; border-radius: 16px;
  background: linear-gradient(135deg, #3A1670 0%, #7A3FC2 60%, #9A5FE0 100%); color: #fff; border: 2px solid rgba(255, 224, 138, 0.8); box-shadow: 0 10px 26px rgba(3, 18, 10, 0.35); }
.ol-unlock-words { flex: 1 1 420px; min-width: 0; }
.ol-unlock-banner p, .ol-unlock-banner li { color: #fff; font-size: 17px; line-height: 1.45; }
.ol-unlock-banner p { margin: 0 0 6px; }
.ol-unlock-lead { font-size: 20px !important; }
.ol-unlock-list { margin: 0 0 8px; padding-left: 1.25em; }
.ol-unlock-list li { margin: 0 0 4px; }
.ol-unlock-banner .ol-unlock-btn { margin: 0; flex: none; font-size: 22px; padding: 14px 26px; min-height: 52px; background: var(--floodlight); color: #0B1E10; border-color: var(--floodlight); }
.ol-unlock-guest { margin: 0 0 18px; font-size: 17px; line-height: 1.45; }
.ol-guest-leagues { margin: 4px 0 32px; }
.ol-lc.is-muted { box-shadow: 0 8px 22px rgba(3, 18, 10, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.22); }
.ol-lc-create.is-muted { background: linear-gradient(160deg, #557361 0%, #46604F 50%, #2C3D32 100%); }
.ol-lc-open.is-muted { background: linear-gradient(160deg, #5E6F93 0%, #4B5A7C 50%, #2B3449 100%); }
.ol-lc-code.is-muted { background: linear-gradient(160deg, #6E6183 0%, #594D6E 50%, #332B40 100%); }
.ol-lc-quiz.is-muted { background: linear-gradient(160deg, #557A89 0%, #456471 50%, #263A42 100%); }
.ol-lc-nation.is-muted { background: linear-gradient(160deg, #8A5A56 0%, #714744 50%, #422927 100%); }
.ol-lc-saved.is-muted { background: linear-gradient(160deg, #61668A 0%, #4D5272 50%, #2B2E44 100%); }
.ol-lc.is-muted .home-game-emblem svg { filter: saturate(0.45); }
.home-game.ol-lc p.ol-lc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; max-width: none; }
.ol-lc.is-muted .home-locked { background: rgba(255, 255, 255, 0.95); color: #0B1E10; }
@media (max-width: 640px) {
  .ol-unlock-banner { padding: 18px; }
  .ol-unlock-banner .ol-unlock-btn { width: 100%; justify-content: center; }
}
/* Build 1_130 — Question Bank: progress, the upload filter chip, act-on-all, delete */
.qb-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 14px; font-size: 16px; }
.qb-progress progress { width: min(360px, 100%); height: 14px; }
.qb-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: #FFF6D6; border: 1px solid #E6C35C; }
.qb-allmatch { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 4px; }
.qb-allmatch input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.qb-del-btn { color: var(--danger); border-color: var(--danger); }
#qb-club-confirm details { margin: 6px 0; }
#panel-questions .btn, #panel-questions select, #panel-questions input[type="search"], #panel-questions input[type="text"] { min-height: 44px; }

/* ===== Build 1_131 — Online Play: Edit League, colour seeding buttons, Review League and the start warning ===== */
.ol-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 0; }
.ol-edit-btn { min-height: 48px; font-size: 1.05rem; font-weight: 700; }
.ol-edit-head { border-left: 6px solid var(--floodlight); }
.ol-edit-head h2 { margin-top: 0; }
/* seeding: four big colour buttons per computer team */
.ol-cpu-row { display: grid; gap: 10px; }
.ol-seedbtns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ol-gwizard .ol-seed-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.ol-seedbtn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; min-width: 0; padding: 8px 4px; border-radius: 12px; border: 2px solid; cursor: pointer; text-align: center; color: var(--ink); font-weight: 800; line-height: 1.15; transition: transform 0.12s, box-shadow 0.12s; }
.ol-seedbtn input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ol-seedbtn-purple { background: #EFE7F8; border-color: var(--super); }
.ol-seedbtn-green { background: #E3F3E9; border-color: var(--grass); }
.ol-seedbtn-amber { background: #FFF3C9; border-color: #C79400; }
.ol-seedbtn-red { background: #F8E1DE; border-color: var(--danger); }
.ol-seedbtn-word { font-size: 1.02rem; }
.ol-seedbtn-sub { font-size: 0.82rem; font-weight: 600; }
.ol-seedbtn-tick { position: absolute; top: -9px; right: -7px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; line-height: 24px; display: none; }
.ol-seedbtn:hover { box-shadow: 0 0 0 2px currentColor inset; }
.ol-seedbtn.is-on { color: #fff; box-shadow: 0 0 0 3px var(--ink), 0 3px 8px rgba(22, 34, 46, 0.3); transform: translateY(-1px); }
.ol-seedbtn-purple.is-on { background: var(--super); }
.ol-seedbtn-green.is-on { background: var(--grass); }
.ol-seedbtn-amber.is-on { background: var(--floodlight); color: var(--ink); }
.ol-seedbtn-red.is-on { background: var(--danger); }
.ol-seedbtn.is-on .ol-seedbtn-tick { display: block; }
.ol-seedbtn:focus-within { outline: 3px solid var(--floodlight); outline-offset: 3px; }
@media (max-width: 520px) { .ol-seedbtns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* friends in an open league being edited */
.ol-glabel-state { margin: 4px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-soft); }
.ol-glabel-drop { min-height: 44px; }
.ol-status-new { background: #E6F0FB; color: #1F4C7A; border: 1px solid #9DBDE0; }
/* warnings that need a second, deliberate press */
.ol-warn-box { margin: 14px 0 4px; padding: 14px 16px; border-radius: 12px; background: #FFF1EE; border: 3px solid var(--danger); }
.ol-warn-box h3 { margin: 0 0 6px; color: var(--danger); font-size: 1.25rem; }
.ol-warn-list li { margin: 6px 0; font-weight: 600; }
.ol-warn-actions, .ol-dialog-actions, .ol-choice-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.ol-warn-actions .btn, .ol-dialog-actions .btn, .ol-choice-row .btn { flex: 1 1 220px; }
/* the review screen */
.ol-review-screen h2 { margin-top: 0; font-size: 1.6rem; }
.ol-start-zone { margin-top: 22px; padding-top: 16px; border-top: 2px dashed var(--rule); }
.ol-start-zone h3 { margin-top: 0; }
.ol-btn-caution { border: 2px solid var(--danger); color: var(--danger); }
/* the start confirmation: a dialog over the page */
.ol-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px)); background: rgba(14, 22, 30, 0.62); overflow-y: auto; }
.ol-dialog { width: 100%; max-width: 640px; max-height: 100%; overflow-y: auto; background: #fff; color: var(--ink); border-radius: 16px; padding: 20px 20px 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); border-top: 8px solid var(--grass); }
.ol-dialog.is-warning { border-top-color: var(--danger); }
.ol-dialog h2 { margin: 0 0 10px; font-size: 1.5rem; line-height: 1.25; }
.ol-dialog-warn-h { color: var(--danger); }
.ol-dialog-missing { padding-left: 1.2em; }
.ol-dialog-missing li { margin: 8px 0; font-size: 1.08rem; line-height: 1.4; }
.ol-dialog-final { padding: 10px 12px; border-radius: 10px; background: #FFF8DB; border: 1px solid #E8CF6A; }
.ol-dialog-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-weight: 700; font-size: 1.05rem; }
.ol-dialog-check input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--danger); }
.ol-dialog-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #E6F0FB; border: 1px solid #9DBDE0; font-weight: 700; }
.ol-dialog .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
/* a guest the season started without */
.ol-excluded-screen h2 { margin-top: 0; font-size: 1.5rem; }
body.ol-modal-open { overflow: hidden; }

/* ===== Build 1_132 — the online quiz: read → tap → see your answer → move on ===== */
.ol-qstage { max-width: 780px; margin: 0 auto; padding: 18px 20px 20px; border-top: 6px solid var(--grass); }
.ol-qstage .ol-q-top { min-height: 52px; }
.ol-q-kicker { display: block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grass-dark, #176b3a); }
.ol-qstage .ol-q-count strong { font-size: 1.15rem; color: var(--ink); }
.ol-qstage .ol-q-text { font-size: clamp(1.4rem, 4.4vw, 2.05rem); font-weight: 800; line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); margin: 14px 0 18px; min-height: 3.7em; }
.ol-qstage .ol-choices { gap: 12px; }
.ol-qstage .ol-choice { position: relative; min-height: 76px; background: #fff; color: var(--ink); border: 2px solid var(--rule); border-radius: 14px; box-shadow: 0 2px 0 rgba(22, 34, 46, 0.08); transition: border-color 0.12s, background 0.12s, transform 0.12s, box-shadow 0.12s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ol-qstage .ol-choice:hover { background: #F3FAF5; border-color: var(--grass); }
.ol-qstage .ol-choice .ol-letter { background: var(--grass); color: #fff; }
.ol-qstage .ol-choice:active:not(.is-locked) { transform: translateY(1px); }
.ol-qstage .ol-choice.is-locked { cursor: default; }
.ol-qstage .ol-choice.is-locked:hover { background: #fff; border-color: var(--rule); }
/* the chosen answer: one highlight for every answer, right or wrong (nothing says which is right) */
.ol-qstage .ol-choice.is-picked, .ol-qstage .ol-choice.is-picked:hover { background: #FFF4C4; border-color: var(--ink); box-shadow: 0 0 0 3px var(--floodlight), 0 4px 10px rgba(22, 34, 46, 0.18); transform: translateY(-1px); }
.ol-qstage .ol-choice.is-picked .ol-letter { background: var(--ink); }
.ol-picked-tag { margin-left: auto; flex: none; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.ol-q-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 16px; min-height: 56px; }
.ol-q-status { margin: 0; flex: 1 1 220px; font-weight: 700; color: var(--ink-soft); min-height: 1.4em; }
.ol-q-status.is-bad { color: var(--danger); }
.ol-q-next { flex: 0 0 auto; min-width: 220px; }
.ol-q-next.is-idle { visibility: hidden; }
.ol-qstage.is-expired .ol-q-clock { background: var(--danger); }
.ol-qstage .ol-timer-bar { will-change: transform; }
@media (max-width: 560px) {
  .ol-qstage { padding: 14px 14px 16px; }
  .ol-qstage .ol-choice { min-height: 64px; }
  .ol-q-next { flex: 1 1 100%; min-width: 0; }
}
/* Build 1_132 — quiz theme labels, Player Progress, smoother dice */
.ol-theme { margin: 6px 0 0; font-size: 1rem; }
.ol-theme-k { color: var(--ink-soft); font-weight: 600; }
.ol-theme strong { color: var(--grass-dark, #176b3a); }
.ol-league-theme { display: block; font-size: 0.9rem; color: var(--ink-soft); }
.ol-league-theme strong { color: var(--grass-dark, #176b3a); }
.ol-progress { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; color: var(--ink); }
.ol-progress h3, .ol-prog-name, .ol-prog-name .team-name { color: var(--ink); }
.ol-progress h3 { margin: 0 0 8px; font-size: 1.05rem; }
.ol-prog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ol-prog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name words" "bar bar"; gap: 3px 10px; align-items: center; }
.ol-prog-name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ol-prog-words { grid-area: words; font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.ol-prog-bar { grid-area: bar; display: block; height: 10px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.ol-prog-fill { display: block; height: 100%; background: var(--grass); border-radius: 999px; transition: width 0.4s ease; }
.ol-prog-row.is-done .ol-prog-words { color: var(--grass-dark, #176b3a); font-weight: 800; }
.ol-prog-row.is-none .ol-prog-words { font-style: italic; }
.ol-prog-row.is-you .ol-prog-fill { background: var(--preferred, #2563eb); }
.ol-prog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 10px 0 0; font-size: 0.85rem; }
@media (max-width: 420px) { .ol-prog-row { grid-template-areas: "name name" "bar bar" "words words"; } .ol-prog-words { white-space: normal; } }
.die.is-revealing .die-face { animation: ol-reveal-wait 0.9s ease-in-out infinite; }
@keyframes ol-reveal-wait { 50% { opacity: 0.45; } }
.ol-fixture.just-revealed .score-pair { animation: ol-pop 0.35s ease-out; }
@keyframes ol-pop { from { transform: scale(0.9); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
.ol-automate.is-working { position: relative; }
@media (prefers-reduced-motion: reduce) { .ol-fixture.just-revealed .score-pair, .die.is-revealing .die-face { animation: none; } }

/* ===== Build 1_133 — Online Play navigation, Football Quiz, season summary ===== */
.ol-page > .page-head { padding: 18px 0 10px; }
.ol-navrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.ol-navbtn { min-height: 50px; padding: 10px 20px; font-size: 1.05rem; font-weight: 800; background: rgba(255, 255, 255, 0.08); color: #fff; border: 2px solid var(--floodlight); border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; }
.ol-navbtn:hover { background: var(--floodlight); color: var(--ink); }
.ol-navbtn.is-here { background: var(--floodlight); color: var(--ink); }
.ol-navbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .ol-navrow { gap: 8px; } .ol-navbtn { flex: 1 1 0; justify-content: center; padding: 10px 10px; font-size: 1rem; } }
/* Football Quiz */
.ol-fq-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.ol-fq-ico svg { width: 64px; height: 64px; display: block; }
.ol-fq-head .ol-wiz-q { margin: 0 0 4px; }
.ol-fq-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.ol-fq-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 2px solid var(--rule); border-top: 6px solid var(--grass); border-radius: 14px; background: #fff; }
.ol-fq-card.is-short { border-top-color: var(--rule); opacity: 0.85; }
.ol-fq-name { margin: 0; font-size: 1.2rem; }
.ol-fq-parent { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.ol-fq-count { margin: 2px 0 8px; color: var(--ink-soft); font-weight: 600; }
.ol-fq-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }
.ol-fq-btns .btn { min-height: 48px; }
.ol-fq-soon { font-weight: 700; color: var(--ink-soft); }
.ol-fq-more { margin-top: 16px; }
.ol-fq-more summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.ol-fq-done { text-align: left; max-width: 640px; margin: 0 auto; }
.ol-fq-score { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 6px 0 16px; color: var(--ink); }
.ol-fq-form .field input { min-height: 48px; font-size: 1.1rem; }
.ol-fq-board { max-width: 680px; margin: 0 auto; }
.ol-fq-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 1.05rem; }
.ol-fq-table th { text-align: left; font-size: 0.85rem; color: var(--ink-soft); padding: 6px 8px; border-bottom: 2px solid var(--rule); }
.ol-fq-table td { padding: 10px 8px; border-bottom: 1px solid var(--rule); }
.ol-fq-pos { width: 3.2em; font-weight: 800; }
.ol-fq-pts { width: 5em; text-align: right; font-weight: 800; }
.ol-fq-of { color: var(--ink-soft); font-weight: 600; }
.ol-fq-table tr.is-you td { background: #FFF4C4; }
.ol-fq-yours { padding: 10px 12px; border-radius: 10px; background: #FFF4C4; border: 1px solid #E8CF6A; }
/* season complete */
.ol-summary { border-top: 6px solid var(--grass); }
.ol-summary.is-champ, .ol-summary.is-human-champ { border-top-color: var(--floodlight); background: linear-gradient(180deg, #FFF8DB 0, #fff 120px); }
.ol-sum-kicker { margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grass-dark); }
.ol-sum-head { margin: 4px 0 8px; font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 1.2; color: var(--ink); }
.ol-sum-lead { font-size: 1.2rem; margin: 0 0 8px; }
.ol-sum-comment { margin: 8px 0 10px; padding: 10px 14px; border-left: 5px solid var(--floodlight); background: #FFFBEA; font-size: 1.1rem; font-style: italic; border-radius: 0 10px 10px 0; }
.ol-sum-friends { margin: 6px 0; padding-left: 1.2em; }
.ol-sum-friends li { margin: 4px 0; }
.ol-sum-compare { font-weight: 800; font-size: 1.1rem; color: var(--grass-dark); }
.ol-sum-best { padding: 10px 12px; border-radius: 10px; background: #EEF8F1; border: 1px solid #BFE3CC; }
.ol-sum-actions { margin: 10px 0 0; }
.ol-celebrate { z-index: 450; }
.ol-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.ol-celebrate-box { position: relative; z-index: 2; border-top-color: var(--floodlight); }
.ol-celebrate-card { padding: 0; }
.ol-celebrate-card { border-top: 0; background: none; }

/* ===== Build 1_134 — difficulty choices and the Football Quiz leaderboard ===== */
.ol-options-diff { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ol-fq-group { margin: 22px 0 0; font-size: 1.1rem; }
.ol-fq-setup { max-width: 860px; margin: 0 auto; }
.ol-fq-diffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 6px; }
.ol-fq-diff { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 112px; padding: 14px; text-align: left; border-radius: 14px; border: 3px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer; font: inherit; }
.ol-fq-diff:hover { border-color: var(--grass); }
.ol-fq-diff-name { font-size: 1.35rem; font-weight: 800; }
.ol-fq-diff-words { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.3; }
.ol-fq-diff-easy { border-top: 8px solid var(--grass); }
.ol-fq-diff-moderate { border-top: 8px solid var(--floodlight); }
.ol-fq-diff-hard { border-top: 8px solid var(--danger); }
.ol-fq-diff-mixed { border-top: 8px solid var(--super); }
.ol-fq-diff.is-on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--floodlight); background: #FFFBEA; }
.ol-fq-diff.is-short { opacity: 0.6; }
.ol-fq-diff:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.ol-fq-actions { margin-top: 18px; }
@media (max-width: 760px) { .ol-fq-diffs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the leaderboard */
.ol-fq-board { max-width: 900px; margin: 0 auto; padding: 0; overflow: hidden; border-top: 0; }
.ol-lb-head { display: flex; gap: 18px; align-items: center; padding: 18px 22px; background: linear-gradient(135deg, #121A3A 0%, #3B4A82 100%); color: #fff; }
.ol-lb-emblem svg { width: 74px; height: auto; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35)); }
.ol-lb-titles { min-width: 0; }
.ol-lb-head .ol-q-kicker { color: var(--floodlight); }
.ol-lb-title { margin: 2px 0 4px; font-size: clamp(1.5rem, 4.6vw, 2.2rem); line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.ol-lb-entered { margin: 0; color: #FFE08A; font-weight: 700; }
.ol-lb-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #E9EEF2; border-bottom: 2px solid var(--rule); }
.ol-lb-tab { min-height: 54px; border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--ink-soft); cursor: pointer; border-bottom: 4px solid transparent; }
.ol-lb-tab:hover { color: var(--ink); background: #F5F7F9; }
.ol-lb-tab.is-on { color: var(--ink); background: #fff; border-bottom-color: var(--floodlight); }
.ol-lb-tab:focus-visible { outline: 3px solid var(--floodlight); outline-offset: -3px; }
.ol-lb-cols { display: grid; grid-template-columns: 64px minmax(0, 1fr) 96px; padding: 12px 22px 4px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.ol-lb-cols span:last-child { text-align: right; }
.ol-lb-list { list-style: none; margin: 0; padding: 4px 16px 8px; display: grid; gap: 8px; }
.ol-lb-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 96px; align-items: center; gap: 0 8px; min-height: 56px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); }
.ol-lb-pos { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #EEF1F4; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.ol-lb-name { min-width: 0; font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; color: var(--ink); }
.ol-lb-score { text-align: right; font-size: 1.15rem; color: var(--ink); }
.ol-lb-score strong { font-size: 1.4rem; }
.ol-lb-of { color: var(--ink-soft); font-weight: 600; }
.ol-lb-row.is-gold { background: linear-gradient(90deg, #FFF4C4, #fff 70%); border-color: #E8CF6A; }
.ol-lb-row.is-gold .ol-lb-pos { background: #F2B705; color: var(--ink); box-shadow: 0 0 0 3px #FFE08A; }
.ol-lb-row.is-silver { background: linear-gradient(90deg, #EEF1F5, #fff 70%); border-color: #C9D1DA; }
.ol-lb-row.is-silver .ol-lb-pos { background: #B8C2CC; color: var(--ink); box-shadow: 0 0 0 3px #E2E7EC; }
.ol-lb-row.is-bronze { background: linear-gradient(90deg, #F8E7D8, #fff 70%); border-color: #E2BE9C; }
.ol-lb-row.is-bronze .ol-lb-pos { background: #C9824A; color: #fff; box-shadow: 0 0 0 3px #EED2B8; }
.ol-lb-row.is-you { outline: 3px solid var(--preferred, #2563EB); outline-offset: -1px; }
.ol-lb-you { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--preferred, #2563EB); color: #fff; font-size: 0.75rem; font-weight: 800; vertical-align: middle; }
.ol-lb-yours { margin: 4px 16px 0; padding: 8px 0 0; border-top: 2px dashed var(--rule); }
.ol-lb-yours .ol-lb-list { padding: 6px 0 0; }
.ol-lb-yours-k { font-weight: 800; color: var(--ink-soft); padding-left: 6px; }
.ol-lb-empty { text-align: center; padding: 26px 20px 10px; }
.ol-lb-empty-ico svg { width: 72px; height: auto; opacity: 0.85; }
.ol-lb-foot { margin: 6px 22px 0; font-size: 0.9rem; color: var(--ink-soft); }
.ol-lb-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 22px 22px; }
.ol-lb-actions .btn-big { flex: 1 1 200px; }
.ol-lb-refresh { min-height: 48px; }
@media (max-width: 560px) {
  .ol-lb-head { padding: 14px 16px; gap: 12px; }
  .ol-lb-emblem svg { width: 54px; }
  .ol-lb-tab { font-size: 0.95rem; min-height: 50px; }
  .ol-lb-cols { grid-template-columns: 48px minmax(0, 1fr) 76px; padding: 10px 16px 2px; }
  .ol-lb-list { padding: 4px 10px 8px; }
  .ol-lb-row { grid-template-columns: 44px minmax(0, 1fr) 72px; }
  .ol-lb-pos { width: 34px; height: 34px; font-size: 1rem; }
  .ol-lb-name { font-size: 1rem; }
  .ol-lb-actions { padding: 14px 16px 18px; }
}

/* Build 1_135 — Question Bank: Remove Duplicates */
.qb-dups { margin: 16px 0; padding: 14px 16px; border: 2px solid var(--line, #d9d3c3); border-radius: 12px; background: #fff; }
.qb-dups h3 { margin: 0 0 4px; }
.qb-dup-box { margin-top: 10px; padding: 14px; border: 2px solid var(--floodlight); border-radius: 10px; background: #FFF8DB; color: var(--ink); }
.qb-dup-summary { font-size: 1.1rem; margin: 0 0 8px; }
.qb-dup-none { font-size: 1.1rem; margin: 0 0 8px; }
.qb-dup-list { margin: 8px 0; padding-left: 20px; max-height: 360px; overflow: auto; overflow-wrap: anywhere; }
.qb-dup-list li { margin: 6px 0; }
.qb-dup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.qb-dup-actions .btn-big { flex: 1 1 220px; justify-content: center; }
.qb-dup-conflicts, .qb-skipped { margin: 10px 0; }
.qb-dup-conflicts summary, .qb-skipped summary, .qb-dup-box details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
#panel-questions .qb-dups .btn-big, #panel-questions .qb-dup-box .btn-big { min-height: 56px; padding: 12px 26px; font-size: 1.15rem; }
@media (max-width: 560px) { .qb-dup-actions .btn-big, .qb-dups > .owner-row .btn-big { flex: 1 1 100%; width: 100%; justify-content: center; } }

/* ================================================ build 1_139: Nation Challenge ===
 * The Lounge pages (choose a nation, the challenge, the quiz's end) and the bits the Euro Shield screens
 * add in a challenge: the "You are …" bar, the player's nation in blue, its "?" dice, the out-of-it choice. */
.nc-page { display: grid; gap: 14px; }
.nc-head { display: flex; align-items: center; gap: 14px; }
.nc-head-ico { flex: none; display: inline-flex; }
.nc-head-ico svg { width: 64px; height: 64px; }
.nc-head .ol-wiz-q { margin: 0; }
.nc-head .ol-wiz-sum { margin: 4px 0 0; }
.nc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nc-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--paper-alt); color: var(--ink-soft); font-weight: 700; font-size: 15px; line-height: 1.2; min-width: 0; }
.nc-steps li.is-current { background: var(--pref); color: #fff; }
.nc-steps li.is-done { background: #E2F2E8; color: var(--zone-promotion-text); }
.nc-step-n { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); color: var(--ink); font-weight: 800; }
.nc-steps li.is-current .nc-step-n { color: var(--pref); }
@media (max-width: 640px) { .nc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nc-steps li { font-size: 14px; } }
.nc-sub { margin: 6px 0 0; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.04em; font-size: 20px; }
.nc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.nc-grid-soon { grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 8px; }
.nc-nation {
  width: 100%; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px; border: 3px solid var(--pref); border-radius: 16px; background: #fff; color: var(--ink);
  font: inherit; font-size: 18px; font-weight: 800; text-align: center; cursor: pointer; touch-action: manipulation;
  box-shadow: 0 3px 0 rgba(18, 63, 115, 0.35);
}
.nc-nation:hover { background: var(--pref-soft); }
.nc-nation:focus-visible { outline: 4px solid var(--floodlight); outline-offset: 2px; }
.nc-nation:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(18, 63, 115, 0.35); }
.nc-nation.is-soon { min-height: 112px; border: 2px solid var(--rule); background: var(--paper-alt); color: var(--ink-soft); font-size: 15px; box-shadow: none; cursor: not-allowed; }
.nc-nation.is-soon .nc-flag { filter: grayscale(1); opacity: 0.7; }
.nc-nation-name { line-height: 1.15; overflow-wrap: anywhere; }
.nc-soon { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 2px 9px; }
.nc-flag { display: block; width: 72px; height: 54px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.18); background: #fff; }
.nc-flag-card { width: 84px; height: 63px; }
.nc-nation.is-soon .nc-flag-card { width: 56px; height: 42px; }
.nc-flag-xl { width: 120px; height: 90px; border-radius: 10px; }
.nc-flag-sm { display: inline-block; width: 32px; height: 24px; vertical-align: middle; border-radius: 4px; }
.nc-diff { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: var(--ink-soft); white-space: nowrap; }
.nc-diff-purple { background: var(--super); }
.nc-diff-green { background: var(--grass); }
.nc-diff-amber { background: var(--floodlight); color: var(--ink); }
.nc-diff-red { background: var(--danger); }
.nc-current, .nc-chosen { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nc-current-words p, .nc-chosen p { margin: 4px 0; }
.nc-current-name { font-size: clamp(22px, 3vw, 28px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nc-chosen-diff { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nc-rules { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: 8px; font-size: 18px; line-height: 1.4; }
.nc-actions { margin: 0; }
.nc-actions .btn-big { min-width: min(100%, 300px); }
.nc-warn { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FFF4D6; border: 2px solid var(--floodlight); color: var(--ink); }
.nc-done-flag { display: inline-flex; }
/* the challenge's Euro Shield */
.nc-bar { border-left-color: var(--pref); }
.nc-bar-flag { flex: none; display: inline-flex; }
.nc-tag { background: var(--pref); color: #fff; }
.nc-bar-name { font-family: var(--cond); font-size: clamp(22px, 3vw, 28px); font-weight: 800; line-height: 1.05; }
.nc-bar-meta { font-size: 15px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nc-bar-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.nc-bar-back { min-height: 44px; }
.nc-save { font-size: 14px; font-weight: 700; color: var(--zone-promotion-text); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-save.is-saving { color: var(--ink-soft); }
.nc-save.is-retry, .nc-save.is-conflict { color: var(--danger); }
@media (max-width: 560px) { .nc-bar-side { width: 100%; align-items: stretch; } .nc-bar-back { width: 100%; justify-content: center; } .nc-bar .nc-flag { width: 56px; height: 42px; } }
.nc-panel { margin: 0 0 16px; border-left: 8px solid var(--pref); }
.nc-panel p { margin: 6px 0; }
.nc-panel-lead { font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nc-good { border-left-color: var(--grass); }
.nc-champ { border-left-color: var(--floodlight); }
.nc-out { border-left-color: var(--danger); }
.nc-out-h { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.nc-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 10px 0; }
.nc-choice { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 14px; background: var(--paper-alt); }
.nc-choice .btn-big { width: 100%; }
.nc-prepop { background: var(--floodlight); color: var(--ink); border-color: #C79400; }
.nc-prepop:hover { background: #E0A800; }
.cup-fixture.intl-match.is-preferred { background: var(--pref-soft); box-shadow: inset 4px 0 0 var(--pref); }
.cup-fixture.intl-match.is-preferred .tn { color: var(--pref-ink); font-weight: 700; }
.die.die-hidden:not(.is-rolled) .die-face { font-weight: 800; }
.intl-finalists li.is-you { color: var(--pref-ink); font-weight: 700; }
.nc-finals-note { padding: 8px 12px; border-radius: 10px; background: var(--pref-soft); color: var(--ink); }
.nc-footer .dice-opt:disabled { opacity: 1; cursor: default; }

/* ================================================ build 1_140: Nation Challenge polish ===
 * Clear contrast everywhere (no green-on-green, no white-on-white), large touch targets, the outcome and
 * completion summary, the counter and the personal Roll of Honour. Scoped to .is-nc / .nc-* / .ncr-* so
 * nothing else on the site changes. */
.nc-btn-blue { background: var(--pref); color: #fff; border: 2px solid var(--pref-ink); }
.nc-btn-blue:hover { background: var(--pref-ink); }
.nc-btn-gold { background: var(--floodlight); color: var(--ink); border: 2px solid #A87D00; }
.nc-btn-gold:hover { background: #FFC71F; }
.nc-btn-dark { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.nc-btn-dark:hover { background: #24384B; }
.nc-btn-outline { background: #fff; color: var(--pref-ink); border: 2px solid var(--pref); }
.nc-btn-outline:hover { background: var(--pref-soft); }
.nc-btn-blue, .nc-btn-gold, .nc-btn-dark, .nc-btn-outline { font-weight: 800; min-height: 48px; }
.nc-btn-blue:focus-visible, .nc-btn-gold:focus-visible, .nc-btn-dark:focus-visible, .nc-btn-outline:focus-visible, .nc-claim:focus-visible { outline: 4px solid var(--floodlight); outline-offset: 2px; }
.nc-actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nc-current-result { margin: 0; font-size: 18px; }
/* the bar */
.nc-bar-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.nc-bar .btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15px; }
@media (max-width: 560px) { .nc-bar-btns { width: 100%; } .nc-bar-btns .btn { flex: 1 1 100%; justify-content: center; } }
/* stage navigation in a challenge: paper cards on the pitch, the current one blue, the next one marked */
.intl.is-nc .snav-step { background: var(--paper); color: var(--ink); border: 3px solid var(--paper); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.intl.is-nc .snav-step .snav-n { background: var(--ink); color: #fff; }
.intl.is-nc .snav-step.is-done { background: #E2F2E8; border-color: #8CC7A1; color: var(--zone-promotion-text); }
.intl.is-nc .snav-step.is-done .snav-n { background: var(--grass); color: #fff; }
.intl.is-nc .snav-step.is-current { background: var(--pref); color: #fff; border-color: #fff; box-shadow: 0 0 0 3px var(--floodlight), 0 4px 0 rgba(0, 0, 0, 0.3); }
.intl.is-nc .snav-step.is-current .snav-n { background: #fff; color: var(--pref-ink); }
.intl.is-nc .snav-step.is-current .intl-done { background: #fff; color: var(--zone-promotion-text); }
.intl.is-nc .snav-step.is-locked, .intl.is-nc .snav-step[disabled] { background: #DDE1E5; color: #46525E; border: 3px dashed #8A949D; box-shadow: none; }
.intl.is-nc .snav-step.is-locked .snav-n { background: #8A949D; }
.snav-here, .snav-nexttag { font-family: var(--sans); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; }
.snav-here { background: #fff; color: var(--pref-ink); }
.snav-nexttag { background: var(--floodlight); color: var(--ink); }
.intl.is-nc .rnav-step.is-current { background: var(--pref); color: #fff; border-color: var(--pref-ink); box-shadow: 0 4px 0 var(--pref-ink); }
/* "Proceed to Play-offs" / "Proceed to the Euro Shield finals": the obvious next step */
.intl.is-nc .intl-progress.is-ready { background: var(--paper); border: 3px solid var(--floodlight); }
.intl.is-nc .intl-progress.is-ready .intl-progress-note { color: var(--ink); }
.intl.is-nc .intl-progress.is-ready .btn-progress { min-height: 60px; font-size: 21px; padding: 10px 26px; box-shadow: 0 4px 0 #A87D00; }
.intl.is-nc .intl-progress.is-waiting { background: rgba(0, 0, 0, 0.28); }
.intl.is-nc .dice-footer { background: var(--paper); color: var(--ink); }
.nc-draw-only { font-size: 12px; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 999px; padding: 1px 7px; }
.nc-wait { border-left-color: var(--floodlight); }
/* the outcome / completion summary */
.nc-outcome { margin: 0 0 18px; padding: 22px; border-radius: 18px; background: var(--paper); color: var(--ink); border-top: 10px solid var(--pref); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25); display: grid; gap: 16px; }
.nc-outcome.is-out { border-top-color: var(--danger); }
.nc-outcome.is-champion { border-top-color: var(--floodlight); background: linear-gradient(180deg, #FFF7DA 0%, var(--paper) 55%); }
.nc-oc-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nc-oc-title { flex: 1 1 260px; min-width: 0; }
.nc-oc-kicker { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.nc-oc-title h2 { margin: 2px 0 6px; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.05; }
.nc-oc-ach { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nc-ach-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 17px; }
.nc-ach-pill.is-gold { background: var(--floodlight); color: var(--ink); }
.nc-ach-pill .nc-trophy { width: 22px; height: 22px; }
.nc-oc-pos { font-weight: 700; color: var(--ink-soft); }
.nc-oc-words { margin: 8px 0 0; font-size: 18px; }
.nc-oc-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: 12px; background: #FFF4D6; border: 2px solid var(--floodlight); }
.nc-oc-wait p { margin: 0; flex: 1 1 260px; font-weight: 600; }
.nc-oc-champ { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; }
.nc-oc-champ .nc-trophy { width: 52px; height: 52px; flex: none; }
.nc-oc-champ div { display: grid; gap: 2px; }
.nc-oc-champ .nc-oc-k { color: var(--floodlight); }
.nc-oc-champ strong { font-size: 24px; display: flex; align-items: center; gap: 8px; }
.nc-oc-champ small { color: var(--chalk); font-size: 15px; }
.nc-oc-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nc-oc-points.is-wait { display: block; padding: 12px 16px; border-radius: 12px; background: var(--paper-alt); }
.nc-oc-points.is-wait p { margin: 0; }
.nc-oc-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--paper-alt); border: 2px solid var(--rule); }
.nc-oc-stat strong { font-family: var(--cond); font-size: 36px; line-height: 1; }
.nc-oc-stat small { color: var(--ink-soft); font-size: 14px; }
.nc-oc-stat.is-gain { background: var(--pref-soft); border-color: var(--pref); }
.nc-oc-stat.is-gain strong { color: var(--pref-ink); }
.nc-oc-k { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
@media (max-width: 560px) { .nc-oc-points { grid-template-columns: 1fr; } .nc-outcome { padding: 16px; } }
.nc-oc-claim { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.nc-claim { background: var(--floodlight); color: var(--ink); border: 3px solid #A87D00; font-weight: 800; font-size: 20px; min-height: 58px; box-shadow: 0 4px 0 #A87D00; animation: nc-claim-glow 1.8s ease-in-out infinite; }
.nc-claim:hover { background: #FFC71F; }
@keyframes nc-claim-glow { 0%, 100% { box-shadow: 0 4px 0 #A87D00, 0 0 0 0 rgba(242, 183, 5, 0.6); } 50% { box-shadow: 0 4px 0 #A87D00, 0 0 0 8px rgba(242, 183, 5, 0); } }
@media (prefers-reduced-motion: reduce) { .nc-claim { animation: none; } }
.nc-oc-none, .nc-oc-done { margin: 0; font-weight: 700; padding: 10px 14px; border-radius: 10px; background: var(--paper-alt); }
.nc-oc-done { background: #E2F2E8; color: var(--zone-promotion-text); }
.nc-oc-total { margin: 0 0 0 auto; font-size: 17px; font-weight: 700; }
.nc-counter { font-family: var(--cond); font-size: 34px; color: var(--pref-ink); font-variant-numeric: tabular-nums; display: inline-block; min-width: 2.5ch; }
.nc-counter.is-counting { color: #A87D00; }
.nc-counter.is-landed { animation: nc-land 420ms ease-out 1; }
@keyframes nc-land { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
.nc-oc-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.nc-oc-actions .btn { width: 100%; justify-content: center; text-align: center; }
.nc-oc-note { margin: 0; color: var(--ink-soft); font-size: 15px; }
.nc-oc-close { margin: 0; text-align: center; }
.nc-trophy { width: 1.4em; height: 1.4em; vertical-align: middle; }
/* the outcome box over the page, the first time */
.nc-modal { position: fixed; inset: 0; z-index: 900; background: rgba(5, 20, 12, 0.72); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); }
.nc-modal[hidden] { display: none; }
.nc-modal-box { width: min(760px, 100%); margin: auto 0; }
.nc-modal-box .nc-outcome { margin: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
body.nc-modal-open { overflow: hidden; }
/* the Roll of Honour */
.ncr-total { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--ink); color: #fff; }
.ncr-total-main { display: grid; gap: 6px; flex: 1 1 280px; }
.ncr-total-k { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--floodlight); }
.ncr-total-n strong.nc-counter { font-size: clamp(44px, 7vw, 64px); color: #fff; line-height: 1; }
.ncr-total-n .nc-counter.is-counting { color: var(--floodlight); }
.ncr-total-of { font-size: 20px; color: var(--chalk); font-weight: 700; }
.ncr-bar { display: block; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.ncr-bar span { display: block; height: 100%; background: var(--floodlight); border-radius: 999px; }
.ncr-total-side { display: grid; gap: 6px; color: var(--chalk); font-weight: 600; }
.ncr-cups { display: flex; align-items: center; gap: 8px; color: #fff; }
.ncr-cups .nc-trophy { width: 30px; height: 30px; }
.ncr-pending-box { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #FFF4D6; border: 2px solid var(--floodlight); }
.ncr-pend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ncr-pend-row > span { flex: 1 1 220px; }
.ncr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ncr-stream { margin: 0 0 14px; border-radius: 14px; border: 2px solid var(--rule); overflow: hidden; background: #fff; }
.ncr-stream-h { margin: 0; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 18px; background: var(--paper-alt); border-bottom: 2px solid var(--rule); }
.ncr-stream-sum { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.ncr-purple { border-color: rgba(107, 63, 160, 0.45); }
.ncr-green { border-color: rgba(31, 138, 76, 0.45); }
.ncr-amber { border-color: rgba(199, 148, 0, 0.55); }
.ncr-red { border-color: rgba(179, 55, 43, 0.45); }
.ncr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ncr-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ncr-table th, .ncr-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ncr-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); background: #fff; }
.ncr-nation { font-weight: 700; white-space: nowrap; }
.ncr-nation span { margin-left: 8px; }
.ncr-table tr.is-none td, .ncr-table tr.is-none th { color: var(--ink-soft); font-weight: 500; }
.ncr-table tr.is-winner { background: #FFF7DA; }
.ncr-ach-label.is-gold { font-weight: 800; color: #7A5B00; }
.ncr-pts strong { font-size: 18px; }
.ncr-of { color: var(--ink-soft); margin-left: 4px; font-size: 14px; }
.ncr-cup .nc-trophy { width: 28px; height: 28px; }
.ncr-soon { margin-left: 6px; }
.ncr-plus { font-weight: 800; color: var(--zone-promotion-text); }
.ncr-pending { font-weight: 800; color: #A85B0B; }
.ncr-points td, .ncr-points th { text-align: center; }
.ncr-points tbody th { text-align: left; }
.ncr-points .ncr-sub th { background: var(--paper-alt); text-align: left; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.ncr-points .ncr-max { font-weight: 800; background: var(--pref-soft); }
@media (max-width: 640px) {
  .ncr-table { font-size: 14.5px; }
  .ncr-table th, .ncr-table td { padding: 8px 8px; }
  .ncr-stream-sum { margin-left: 0; width: 100%; }
}
/* build 1_140: on a phone the Roll of Honour's nation and attempt tables become simple cards */
@media (max-width: 640px) {
  .ncr-stream .ncr-table thead, .ncr-history thead { display: none; }
  .ncr-stream .ncr-table, .ncr-stream .ncr-table tbody, .ncr-history, .ncr-history tbody { display: block; }
  .ncr-stream .ncr-table tr, .ncr-history tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
  .ncr-stream .ncr-table th, .ncr-stream .ncr-table td, .ncr-history th, .ncr-history td { border: 0; padding: 0; }
  .ncr-stream .ncr-nation, .ncr-history .ncr-nation { grid-column: 1 / -1; white-space: normal; font-size: 16px; }
  .ncr-stream .ncr-pts { grid-column: 2; grid-row: 2 / span 2; align-self: center; text-align: right; }
  .ncr-stream .ncr-trophy { grid-column: 2; grid-row: 1; }
  .ncr-stream .ncr-trophy:empty { display: none; }
  .ncr-stream td[data-label="Best qualifying place"]::before, .ncr-history td[data-label]::before { content: attr(data-label) ': '; font-weight: 700; color: var(--ink-soft); }
  .ncr-history td { grid-column: 1 / -1; font-size: 14.5px; }
  .ncr-history tr { grid-template-columns: 1fr; }
  .ncr-history .ncr-nation { order: -1; }
  .ncr-history td[data-label="Date"] { order: -2; font-size: 13px; color: var(--ink-soft); }
}
/* build 1_140: in a challenge the round sub-tabs and "How it works" read clearly on the pitch */
.intl.is-nc .intl-subtabs .viewtab:not([aria-selected="true"]) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.intl.is-nc .intl-subtabs .viewtab.is-done:not([aria-selected="true"]) { background: #E2F2E8; color: var(--zone-promotion-text); }
.intl.is-nc .intl-subtabs .viewtab[aria-selected="true"] { background: var(--pref); color: #fff; border-color: #fff; }
/* build 1_141: the deciding result at the top of the Nation Challenge outcome */
.nc-oc-deciding { margin: 8px 0 0; display: grid; gap: 4px; padding: 10px 14px; border-radius: 12px; background: var(--paper-alt); border: 2px solid var(--rule); }
.nc-dm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 18px; font-weight: 700; }
.nc-dm-team { display: inline-flex; align-items: center; gap: 6px; }
.nc-dm-team.is-you { color: var(--pref-ink); }
.nc-dm-score { font-family: var(--cond); font-size: 30px; line-height: 1; padding: 2px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; }
.nc-dm-pens { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
/* build 1_141: Next bar after the player's deciding result, and the simple outcome */
.nc-nextbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 880; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--ink); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35); }
.nc-nextbar[hidden] { display: none; }
.nc-nextbar-in { max-width: var(--shell); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.nc-nextbar-in p { margin: 0; color: #fff; font-size: 18px; font-weight: 700; flex: 1 1 220px; }
.nc-next { min-width: 180px; font-size: 21px; min-height: 56px; }
body.nc-nextbar-open main { padding-bottom: 110px; }
@media (max-width: 560px) { .nc-next { width: 100%; } }
.nc-outcome-simple { gap: 18px; }
.nc-outcome-simple .nc-oc-title h2 { margin: 0 0 6px; }
.nc-oc-cup .nc-trophy { width: 72px; height: 72px; }
.nc-oc-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nc-oc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .nc-oc-three, .nc-oc-two { grid-template-columns: 1fr; } }
.nc-outcome-simple .btn-big { min-height: 64px; font-size: 18px; }
.ncr-pend-sub { font-size: 15px; color: var(--ink-soft); }
/* build 1_141: points added on arrival at the Roll of Honour */
.ncr-adding { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--paper-alt); font-weight: 700; }
.ncr-earned { padding: 16px 18px; border-radius: 14px; background: #FFF4D6; border: 3px solid var(--floodlight); animation: nc-land 420ms ease-out 1; }
.ncr-earned-h { margin: 0 0 6px; font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; }
.ncr-earned-h strong { color: var(--pref-ink); }
.ncr-earned-row { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; }
.ncr-tick { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 6px; border-radius: 50%; background: var(--grass); color: #fff; font-size: 15px; font-weight: 800; vertical-align: middle; }
.ncr-key { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.ncr-key .ncr-tick { margin-left: 0; }
.ncr-pending-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ncr-pend-h { margin: 0; flex: 1 1 240px; font-size: 20px; font-weight: 800; }
.ncr-earned { animation: ncr-earned-in 380ms ease-out 1; }
@keyframes ncr-earned-in { 0% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
/* build 1_142: the Nation Challenge home */
.nc-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .nc-home-grid { grid-template-columns: 1fr; } }
.nc-home-card { display: grid; justify-items: center; align-content: start; gap: 10px; padding: 22px 18px; border-radius: 18px; text-align: center; background: #fff; border: 3px solid var(--pref); box-shadow: 0 4px 0 rgba(18, 63, 115, 0.3); }
.nc-home-roll { border-color: #C79400; box-shadow: 0 4px 0 rgba(168, 125, 0, 0.35); background: #FFFBEC; }
.nc-home-card h3 { margin: 0; font-size: clamp(24px, 3vw, 30px); }
.nc-home-card p { margin: 0; font-size: 17px; color: var(--ink-soft); max-width: 34ch; }
.nc-home-card .btn-big { width: 100%; max-width: 320px; justify-content: center; }
.nc-home-ico svg { width: 84px; height: 84px; }
.nc-home-cup .nc-trophy { width: 84px; height: 84px; }
.nc-home-current { padding: 14px 16px; border-radius: 14px; background: var(--paper-alt); border: 2px solid var(--rule); }
.nc-home-current .nc-sub { margin: 0 0 8px; }
.nc-home-current .nc-current { align-items: center; }
.nc-home-current .nc-current-words { flex: 1 1 220px; }
.nc-home-current .nc-current-name { font-size: 22px; }
.nc-current-go { margin-left: auto; }
@media (max-width: 640px) { .nc-current-go { width: 100%; justify-content: center; } }
/* build 1_142: a smaller, quieter tick */
.ncr-tick { width: 16px; height: 16px; margin-left: 5px; font-size: 10px; line-height: 1; }
/* build 1_143: achievement colours on the Roll of Honour */
.ncr-ach-label { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 14.5px; line-height: 1.3; border: 2px solid transparent; }
.ncr-ach-none { padding-left: 0; padding-right: 0; font-weight: 600; color: var(--ink-soft); }
.ncr-ach-w { background: #F2B705; color: #3A2A00; border-color: #A87D00; }
.ncr-ach-ru { background: #DDE3EA; color: #26323E; border-color: #9AA6B2; }
.ncr-ach-sf { background: #E9C3A0; color: #4A2A0E; border-color: #B07A4A; }
.ncr-ach-qf { background: #D6E6FA; color: #123F73; border-color: #6E9BD3; }
.ncr-ach-r16 { background: #DCF1E3; color: #176B3A; border-color: #86C59C; }
.ncr-ach-group { background: #EADFF6; color: #4E2A7A; border-color: #B49BD6; }
.ncr-ach-fail { background: #F7E1DE; color: #8A2A20; border-color: #D9A39C; }
.ncr-table tr.is-winner .ncr-ach-label.is-gold { color: inherit; }
.ncr-ach-label { white-space: nowrap; }

/* ===== Build 1_144: Dashboard → Question Bank — two separate banks (Football Quiz / Nation Challenge) ===== */
.qbk-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 6px; }
.qbk-tab { display: flex; align-items: flex-start; gap: 12px; min-height: 84px; padding: 14px 16px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.2); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.qbk-tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; box-shadow: inset 0 -5px 0 var(--floodlight); }
.qbk-tab-nc[aria-selected="true"] { box-shadow: inset 0 -5px 0 var(--super); }
.qbk-tab:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 2px; }
.qbk-tab-icon { font-size: 30px; line-height: 1; flex: none; }
.qbk-tab-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qbk-tab-name { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.1; }
.qbk-tab-desc { font-size: 14px; line-height: 1.35; opacity: 0.9; }
@media (max-width: 640px) { .qbk-tabs { grid-template-columns: 1fr; } .qbk-tab { min-height: 64px; } }
.qbk-badge { display: inline-block; margin: 0 0 6px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; }
.qbk-badge-fq { background: var(--grass); }
.qbk-badge-nc { background: var(--super); }
.ncq-card { border-top: 6px solid var(--super); }
.ncq-nation { display: inline-flex; align-items: center; gap: 8px; }
.ncq-flag { width: 24px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); flex: none; }
.ncq-code { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.ncq-stream { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-soft); }
.ncq-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.ncq-pill-on { background: #DDF3E4; color: #13542F; }
.ncq-pill-off { background: #ECECEC; color: #555; }
.ncq-off td { opacity: 0.6; }
.ncq-bad { color: var(--danger); }
.ncq-replace { color: #6A2C91; }
.ncq-actions { white-space: nowrap; }
.ncq-e-correct { border: 0; padding: 0; margin: 10px 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 17px; }
.ncq-e-correct legend { font-weight: 700; margin-bottom: 6px; }
.ncq-e-correct input { width: 22px; height: 22px; vertical-align: middle; }
.ncq-builtin-list { line-height: 1.6; }
.ncq-result { margin-top: 10px; }
.qb-tile.is-bad .ov-num { color: var(--danger); }
.ncr-split { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); white-space: nowrap; } /* Build 1_145 */

/* ===== Build 1_147: club badges beside club names (owner-private only; see club-badges.js) =====
   The badge uses the flag's place and spacing rules; a square box keeps every badge the same size whatever
   its shape, with nothing stretched, and an empty box of the same size if a badge cannot be shown. */
.flag.club-badge { height: 1.25em; width: 1.25em; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 0; box-shadow: none; top: -0.08em; background: none; }
.flag.club-badge.is-missing { background: rgba(22, 34, 46, 0.08); border-radius: 50%; content-visibility: hidden; }
img.club-badge.is-missing { visibility: hidden; }
.opt > .club-badge, .invite-option > .club-badge, .picked-list .club-badge, .chosen-name > .club-badge, .seed-row-name > .club-badge, .honours-name > .club-badge { margin-right: 0.4em; }
.tie-through .club-badge, .cup-champion .club-badge { margin-right: 0.3em; }
.opt-label > .club-badge, .opt > label > .club-badge { margin-right: 0.4em; }

/* Build 1_150 — Nation Challenge quiz: the pressed answer lights up while the finger is still on it, and once an
   answer is in, the other three fade so it is obvious which one counted (the six-second clock is unchanged). */
.ol-qstage.is-nc .ol-choice:active:not(.is-locked) { background: #FFF4C4; border-color: var(--ink); }
.ol-qstage.is-nc .ol-choice.is-locked:not(.is-picked) { opacity: 0.5; }

/* ======================================================== Build 1_151: World Shield Nation Challenge ===
   The tournament choice on "You chose …", the competition tag on the current challenge, and the
   Euro Shield / World Shield switch on the Roll of Honour. */
.nc-comp-choice { margin: 14px 0 6px; }
.nc-comp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (max-width: 560px) { .nc-comp-opts { grid-template-columns: 1fr; } }
.nc-comp-opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 14px; text-align: left;
  border: 3px solid var(--rule); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; touch-action: manipulation;
}
.nc-comp-opt:hover { background: var(--pref-soft); }
.nc-comp-opt:focus-visible { outline: 4px solid var(--floodlight); outline-offset: 2px; }
.nc-comp-opt.is-on { border-color: var(--pref); background: var(--pref-soft); box-shadow: 0 3px 0 rgba(18, 63, 115, 0.35); }
.nc-comp-radio { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 3px solid var(--pref); background: #fff; }
.nc-comp-opt.is-on .nc-comp-radio { background: radial-gradient(circle, var(--pref) 0 45%, #fff 50%); }
.nc-comp-words { display: flex; flex-direction: column; gap: 4px; }
.nc-comp-words strong { font-family: var(--cond); font-size: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.nc-comp-words span { font-size: 15px; color: var(--ink-soft); line-height: 1.35; }
.nc-comp-tag { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; background: var(--ink); color: #fff; white-space: nowrap; }
.ncr-comp-tabs { display: flex; gap: 8px; margin: 18px 0 4px; flex-wrap: wrap; }
.ncr-comp-tab {
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--pref); background: #fff; color: var(--pref-ink);
  font: inherit; font-family: var(--cond); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
}
.ncr-comp-tab.is-on { background: var(--pref); color: #fff; }
.ncr-comp-tab:focus-visible { outline: 4px solid var(--floodlight); outline-offset: 2px; }
.ncr-split-totals { font-size: 14px; }
.ncr-split-totals strong { font-size: 16px; }
/* Build 1_151: the combined Roll of Honour — each nation's Euro Shield and World Shield side by side, then the total */
.ncr-combined .ncr-comp-cell { vertical-align: top; }
.ncr-comp-cell { min-width: 190px; }
.ncr-comp-cell > .ncr-ach-label { margin-bottom: 4px; }
.ncr-comp-cell .ncr-cup { display: inline-block; vertical-align: middle; margin-left: 6px; }
.ncr-comp-cell .ncr-cup .nc-trophy { width: 22px; height: 22px; }
.ncr-cc-line { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.ncr-cc-line strong { color: var(--ink); }
.ncr-cc-pts strong { font-size: 16px; }
.ncr-cc-pts .ncr-split { margin-left: 6px; }
.ncr-comp-cell.is-none .ncr-cc-line { opacity: 0.75; }
.ncr-total-cell { text-align: right; white-space: nowrap; }
.ncr-total-cell strong { font-size: 22px; }
.ncr-pt-h { margin: 14px 0 6px; font-family: var(--cond); font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .ncr-stream .ncr-combined tr { grid-template-columns: 1fr 1fr; }
  .ncr-stream .ncr-combined .ncr-comp-cell { grid-column: auto; grid-row: auto; min-width: 0; padding: 6px 0; }
  .ncr-stream .ncr-combined .ncr-comp-cell::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 2px; }
  .ncr-stream .ncr-combined .ncr-total-cell { grid-column: 1 / -1; grid-row: auto; text-align: left; border-top: 1px dashed var(--rule); padding-top: 6px; }
  .ncr-stream .ncr-combined .ncr-total-cell::before { content: 'Total: '; font-weight: 700; color: var(--ink-soft); }
}
.ncr-comp-cell .ncr-ach-label { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
/* Build 1_152: the Nation Challenge cycle (Euro Shield, then World Shield) */
.nc-cycle-box { margin: 14px 0 6px; padding: 12px 16px; border: 3px solid var(--pref); border-radius: 14px; background: var(--pref-soft); }
.nc-cycle-steps { margin: 8px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.5; }
.nc-cycle-steps li + li { margin-top: 4px; }
.nc-oc-cycle { margin: 12px 0; padding: 12px 14px; border: 3px solid var(--pref); border-radius: 14px; background: var(--pref-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.nc-oc-cycle p { margin: 0; flex: 1 1 260px; font-weight: 700; color: var(--ink); }
.nc-cycle-next { white-space: normal; }
.nc-current-btns { display: flex; flex-direction: column; gap: 8px; }

/* ======================================================= Build 1_153: Roll of Honour redesign ===
   Matt (14 Nov 2026): wider, clearer, one tidy line per nation. Euro Shield = blue, World Shield = green,
   the combined total = floodlight gold. */
:root { --ncr-euro: #1D5FB4; --ncr-euro-soft: #E7F0FB; --ncr-world: #0E7C4A; --ncr-world-soft: #E3F4EA; --ncr-gold: #F2B705; }
.ol-page[data-ol-view="ncroll"] { max-width: 1440px; }

/* the summary: the combined total, then a tile for each tournament */
.ncr-total { display: grid; grid-template-columns: minmax(260px, 1.3fr) minmax(0, 2fr); gap: 16px 24px; align-items: stretch; }
.ncr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ncr-tile { display: grid; gap: 6px; align-content: start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border-top: 5px solid var(--ncr-euro); }
.ncr-tile.is-world { border-top-color: #2FB673; }
.ncr-tile-k { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chalk); }
.ncr-tile-n strong { font-size: 32px; line-height: 1; color: #fff; }
.ncr-tile-n span { font-size: 15px; color: var(--chalk); font-weight: 700; }
.ncr-tile-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--chalk); }
.ncr-tile-meta .nc-trophy { width: 18px; height: 18px; flex: 0 0 auto; }
.ncr-tile .ncr-mbar { width: 100%; max-width: none; height: 8px; background: rgba(255, 255, 255, 0.18); }
@media (max-width: 760px) { .ncr-total { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ncr-tiles { grid-template-columns: 1fr; } }

/* small progress bars */
.ncr-mbar { display: block; width: 100%; max-width: 110px; height: 5px; margin-top: 5px; border-radius: 999px; background: var(--paper-alt); overflow: hidden; }
.ncr-mbar > span { display: block; height: 100%; border-radius: 999px; background: var(--ncr-euro); }
.ncr-mbar.is-world > span { background: var(--ncr-world); }
.ncr-mbar.is-total > span, .ncr-mbar.is-stream > span { background: var(--ncr-gold); }
.ncr-mbar.is-stream { display: inline-block; width: 90px; vertical-align: middle; margin: 0 0 0 10px; height: 7px; background: #fff; border: 1px solid var(--rule); }

/* the combined table: grouped columns */
.ncr-table.ncr-combined { table-layout: fixed; min-width: 900px; }
.ncr-combined col, .ncr-combined th, .ncr-combined td { box-sizing: border-box; }
.ncr-combined .ncr-gh th { font-family: var(--cond); font-size: 16px; letter-spacing: 0.06em; text-align: center; padding: 8px 10px; color: var(--ink); }
.ncr-combined .ncr-gh .ncr-gh-nation { width: 19%; text-align: left; vertical-align: bottom; }
.ncr-combined .ncr-gh .ncr-gh-euro { background: var(--ncr-euro-soft); border-top: 4px solid var(--ncr-euro); border-left: 3px solid #fff; color: var(--ncr-euro); }
.ncr-combined .ncr-gh .ncr-gh-world { background: var(--ncr-world-soft); border-top: 4px solid var(--ncr-world); border-left: 3px solid #fff; color: var(--ncr-world); }
.ncr-combined .ncr-gh .ncr-gh-total { width: 11%; text-align: right; vertical-align: bottom; background: #FFF7DA; border-top: 4px solid var(--ncr-gold); border-left: 3px solid #fff; }
.ncr-combined .ncr-sh th { font-size: 12px; padding: 6px 10px; }
.ncr-combined .ncr-sh th.is-euro { background: var(--ncr-euro-soft); }
.ncr-combined .ncr-sh th.is-world { background: var(--ncr-world-soft); }
.ncr-combined .ncr-sh th:nth-child(1), .ncr-combined .ncr-sh th:nth-child(4) { width: 16%; border-left: 3px solid #fff; }
.ncr-combined .ncr-sh th:nth-child(2), .ncr-combined .ncr-sh th:nth-child(5) { width: 9%; }
.ncr-combined .ncr-sh th:nth-child(3), .ncr-combined .ncr-sh th:nth-child(6) { width: 10%; }
.ncr-combined td.ncr-c { padding: 10px 10px; vertical-align: middle; }
.ncr-combined td.ncr-c-res { border-left: 3px solid var(--paper-alt); }
.ncr-combined td.ncr-c-res.is-euro { background: rgba(231, 240, 251, 0.35); }
.ncr-combined td.ncr-c-q.is-euro, .ncr-combined td.ncr-c-pts.is-euro { background: rgba(231, 240, 251, 0.35); }
.ncr-combined td.is-world { background: rgba(227, 244, 234, 0.35); }
.ncr-combined td.ncr-c-total { text-align: right; border-left: 3px solid var(--paper-alt); background: rgba(255, 247, 218, 0.5); }
.ncr-combined td.ncr-c-total .ncr-mbar { margin-left: auto; }
.ncr-combined tr.is-winner td, .ncr-combined tr.is-winner th { background: #FFF3C4; }
.ncr-combined tbody tr:hover td, .ncr-combined tbody tr:hover th { background: #FFFBEA; }
.ncr-combined .ncr-ach-label { font-size: 13px; padding: 2px 9px; white-space: normal; }
.ncr-combined .ncr-cup { display: inline-block; vertical-align: middle; margin-left: 6px; }
.ncr-combined .ncr-cup .nc-trophy { width: 22px; height: 22px; }
.ncr-pn { font-size: 18px; font-weight: 800; color: var(--ink); }
.ncr-tn { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1; }
.ncr-combined .ncr-of { margin-left: 3px; }
.ncr-combined td.is-empty { color: var(--ink-soft); }
.ncr-combined td.is-empty .ncr-pn { color: var(--ink-soft); font-weight: 600; font-size: 16px; }
.ncr-np { font-size: 14px; font-style: italic; color: var(--ink-soft); }
.ncr-combined tr.is-none .ncr-tn { color: var(--ink-soft); font-weight: 600; }
.ncr-combined .ncr-c-pts[title] { cursor: help; }

/* phone and tablet (Build 1_155: up to 1100px wide, so an upright tablet never cuts columns off): each nation becomes a card — the two tournaments side by side, then the total */
@media (max-width: 1100px) {
  .ncr-table.ncr-combined { min-width: 0; table-layout: auto; }
  .ncr-stream .ncr-combined thead { display: none; }
  .ncr-stream .ncr-combined tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 12px; }
  .ncr-stream .ncr-combined .ncr-nation { grid-column: 1 / -1; grid-row: 1; margin-bottom: 4px; }
  .ncr-stream .ncr-combined td.ncr-c { padding: 0; background: none; border: 0; }
  .ncr-stream .ncr-combined td.is-euro { grid-column: 1; }
  .ncr-stream .ncr-combined td.is-world { grid-column: 2; }
  .ncr-stream .ncr-combined td.ncr-c-res { grid-row: 2; }
  .ncr-stream .ncr-combined td.ncr-c-q { grid-row: 3; font-size: 14px; }
  .ncr-stream .ncr-combined td.ncr-c-pts { grid-row: 4; }
  .ncr-stream .ncr-combined td.ncr-c-res::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
  .ncr-stream .ncr-combined td.ncr-c-res.is-euro::before { color: var(--ncr-euro); }
  .ncr-stream .ncr-combined td.ncr-c-res.is-world::before { color: var(--ncr-world); }
  .ncr-stream .ncr-combined td.ncr-c-q::before { content: 'Qualifying: '; color: var(--ink-soft); }
  .ncr-stream .ncr-combined td.ncr-c-total { grid-column: 1 / -1; grid-row: 5; display: flex; align-items: baseline; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--rule); text-align: left; }
  .ncr-stream .ncr-combined td.ncr-c-total::before { content: 'Total'; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.05em; color: var(--ink-soft); margin-right: auto; }
  .ncr-stream .ncr-combined td.ncr-c-total .ncr-mbar { display: none; }
  .ncr-stream .ncr-combined tr.is-winner { background: #FFF3C4; }
}

/* Build 1_154: the perfect-run Winner badge — 1st in qualifying and the trophy, maximum points */
.ncr-perfect { display: inline-flex; align-items: center; gap: 0; vertical-align: middle; color: #B8860B; }
.ncr-laurel { width: 15px; height: 26px; flex: 0 0 auto; color: #C9970E; filter: drop-shadow(0 1px 0 rgba(122, 91, 0, 0.35)); }
.ncr-laurel.is-right { transform: scaleX(-1); }
.ncr-ach-label.is-perfect {
  position: relative; overflow: hidden; margin: 0 1px; padding: 3px 11px;
  color: #3D2C00; font-weight: 900; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #FFE27A 0%, #F2B705 55%, #D99A00 100%);
  border: 2px solid #8A6500; box-shadow: 0 0 0 2px #FFF3C4, 0 2px 6px rgba(138, 101, 0, 0.45);
}
.ncr-ach-label.is-perfect::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-18deg); animation: ncr-shine 3.6s ease-in-out infinite;
}
.ncr-perfect-star { margin-left: 5px; font-size: 0.95em; color: #7A5B00; }
@keyframes ncr-shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .ncr-ach-label.is-perfect::after { animation: none; display: none; } }
.ncr-combined .ncr-perfect .ncr-ach-label { font-size: 13px; }
/* Build 1_154 (Matt): Euro Shield wins in SILVER, World Shield wins in GOLD */
.ncr-ach-label.ncr-ach-w.is-silver { background: linear-gradient(180deg, #F4F6F9 0%, #D3D8DF 60%, #B7BEC8 100%); border-color: #7B8490; color: #2B3138; }
.ncr-cup.is-silver .nc-trophy path[fill="#F2B705"] { fill: #CDD3DB; }
.ncr-cup.is-silver .nc-trophy path[fill="#7A5B00"] { fill: #7B8490; }
.ncr-perfect.is-silver .ncr-laurel { color: #8E97A3; filter: drop-shadow(0 1px 0 rgba(60, 66, 75, 0.35)); }
.ncr-ach-label.is-perfect.is-silver { background: linear-gradient(180deg, #FFFFFF 0%, #DDE2E8 50%, #AEB6C1 100%); border-color: #5E6773; color: #1F252B; box-shadow: 0 0 0 2px #EEF1F5, 0 2px 6px rgba(60, 66, 75, 0.4); }
.ncr-ach-label.is-perfect.is-silver .ncr-perfect-star { color: #4A525C; }
.ncr-table tr.is-winner.is-silver-row, .ncr-combined tr.is-winner.is-silver-row td, .ncr-combined tr.is-winner.is-silver-row th { background: #F1F3F6; }
.ncr-table tr.is-winner.is-silver-row .ncr-ach-label.is-gold { color: inherit; }

/* Build 1_155: on tablets the nation cards sit two to a row */
@media (min-width: 700px) and (max-width: 1100px) {
  .ncr-stream .ncr-combined tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ncr-stream .ncr-combined tr { border-right: 1px solid var(--rule); }
}
@media (max-width: 1100px) {
  .ncr-stream .ncr-table.ncr-combined, .ncr-stream .ncr-combined tbody { display: block; width: 100%; }
  .ncr-stream .ncr-combined tr { border-bottom: 1px solid var(--rule); }
  .ncr-stream .ncr-combined .ncr-nation { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
}
@media (min-width: 700px) and (max-width: 1100px) {
  .ncr-stream .ncr-combined tbody { display: grid; }
}

/* =========================================================================
   Build 1_156 — THE NEW LOOK ("floodlit night")
   Matt, 14 Nov 2026: "less busy… look like I can sell it for £9.99 a year".
   Looks only. Nothing here changes what any button does or how the game
   plays. One layer, last in the file, so it wins over the older build-by-build
   rules without editing them, and it can be removed in one go if needed.

   The idea, in four lines:
   - The ground is a deep night-time pitch with one soft floodlight glow at the
     top, and the markings are barely there.
   - Surfaces are calm: dark "glass" cards on the green, clean white sheets for
     tables, thin hairlines instead of thick borders, no hard drop shadows.
   - Gold is the only loud colour, kept for the one thing to press.
   - Menus and step bars are quiet until they matter: the current one glows.
   ========================================================================= */

:root {
  --pitch:       #0A1F14;
  --pitch-deep:  #06140C;
  --pitch-soft:  #133323;
  --floodlight:  #F5BE1E;
  --paper:       #FFFFFF;
  --paper-alt:   #F3F5F1;
  --rule:        #E2E6DF;
  --rule-dark:   rgba(255, 255, 255, 0.10);
  --chalk:       #E9EFEA;
  --chalk-soft:  #A9BCB0;
  --r-lg: 16px;
  --r-sm: 10px;

  --glass:      rgba(255, 255, 255, 0.045);
  --glass-2:    rgba(255, 255, 255, 0.075);
  --glass-line: rgba(255, 255, 255, 0.10);
  --gold-grad:  linear-gradient(180deg, #FFD965 0%, #F5BE1E 58%, #E9AC0F 100%);
  --green-grad: linear-gradient(180deg, #27A55D 0%, #1C8447 100%);
  --lift:       0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 48px -30px rgba(0, 0, 0, 0.85);
  --sheet:      0 1px 2px rgba(3, 14, 8, 0.10), 0 22px 44px -28px rgba(3, 14, 8, 0.65);
  --ease:       cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------------- ground */
body {
  background:
    radial-gradient(1200px 520px at 50% -140px, rgba(255, 236, 170, 0.10), transparent 70%),
    radial-gradient(900px 600px at 50% 120%, rgba(0, 0, 0, 0.35), transparent 70%),
    linear-gradient(180deg, #0C2417 0%, var(--pitch) 38%, #081A10 100%);
  background-attachment: fixed;
  color: var(--chalk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.pitch { background-image: none; }
.pitch svg { opacity: 0.045; }
::selection { background: rgba(245, 190, 30, 0.35); }

/* ------------------------------------------------------------- top bar */
.topbar {
  background: rgba(6, 20, 12, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}
.has-preview .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--pitch-deep); }
.topbar-inner { padding-top: 10px; padding-bottom: 10px; }
.wordmark-logo { height: 40px; }
@media (max-width: 1120px) { .wordmark-logo { height: 38px; } }
@media (max-width: 420px)  { .wordmark-logo { height: 32px; } }

/* the sections: quiet words, not a row of boxes */
.site-nav .nav-tab, .site-nav[data-tabs] .nav-tab, .nav-tab {
  font-family: var(--cond); font-weight: 600; font-size: 16.5px; letter-spacing: 0.07em;
  color: rgba(233, 239, 234, 0.74);
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  box-shadow: none; min-height: 42px; padding: 8px 14px;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.nav-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: transparent; }
.nav-tab[aria-current="page"] {
  color: var(--floodlight); background: rgba(245, 190, 30, 0.10);
  border-color: rgba(245, 190, 30, 0.42); box-shadow: none;
}
/* the account button: the one gold thing in the bar */
.site-nav .nav-account, .nav-account {
  color: #1A1405 !important; background: var(--gold-grad); border-color: transparent;
  font-weight: 700; letter-spacing: 0.06em;
  box-shadow: 0 6px 18px -8px rgba(245, 190, 30, 0.7);
}
.nav-account:hover { background: var(--gold-grad); filter: brightness(1.06); border-color: transparent; }
.nav-account.is-signed-in {
  color: #fff !important; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); box-shadow: none;
}
.nav-account.is-signed-in:hover { background: rgba(255, 255, 255, 0.12); filter: none; }
.nav-account-plan { background: var(--floodlight); color: #1A1405; }

/* Wide screens: the logo and the sections share ONE row. */
@media (min-width: 1300px) {
  .topbar-inner { max-width: 1320px; flex-wrap: nowrap; }
  .site-nav, .site-nav[data-tabs], .site-nav[data-tabs="8"] {
    order: 0 !important; flex: 1 1 auto !important; width: auto !important;
    display: flex !important; flex-wrap: nowrap !important; justify-content: flex-end; gap: 2px !important;
  }
  .site-nav .nav-tab, .site-nav[data-tabs] .nav-tab, .site-nav[data-tabs="8"] .nav-tab {
    flex: 0 0 auto !important; min-width: 0 !important; font-size: 16px !important; padding: 8px 12px !important; white-space: nowrap !important;
  }
  .site-nav .nav-account { margin-left: 8px; }
  .topbar-actions { order: 1; margin-left: 10px; }
}
/* Tablets: one tidy row underneath, centred, never boxes. */
@media (min-width: 761px) and (max-width: 1299px) {
  .site-nav, .site-nav[data-tabs], .site-nav[data-tabs="6"], .site-nav[data-tabs="7"], .site-nav[data-tabs="8"] {
    display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 4px 2px !important;
    padding-top: 6px !important; border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .site-nav .nav-tab, .site-nav[data-tabs] .nav-tab, .site-nav[data-tabs="6"] .nav-tab, .site-nav[data-tabs="7"] .nav-tab, .site-nav[data-tabs="8"] .nav-tab {
    flex: 0 0 auto !important; min-width: 0 !important; white-space: nowrap !important;
    font-size: 15.5px !important; padding: 8px 12px !important; min-height: 42px !important; line-height: 1.1 !important;
  }
}
/* Phones: the menu opens as a clean list. */
.nav-toggle { border-radius: 12px; border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); }
@media (max-width: 760px) {
  .site-nav.is-open {
    gap: 2px; padding: 8px 0 6px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav .nav-tab, .site-nav .nav-account {
    justify-content: flex-start; text-align: left; min-height: 50px; font-size: 19px; padding: 12px 14px; border-radius: 12px;
  }
  .site-nav .nav-account { margin-top: 8px; justify-content: center; text-align: center; }
}

/* ------------------------------------------------------------- buttons */
.btn {
  border-radius: 12px; font-weight: 600; letter-spacing: 0.005em;
  background: var(--green-grad); border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 18px -12px rgba(0, 0, 0, 0.7);
  transition: transform 140ms var(--ease), filter 140ms var(--ease), background-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.btn:hover { background: var(--green-grad); filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn[disabled]:hover { background: var(--green-grad); filter: none; }

.btn-quiet {
  background: rgba(255, 255, 255, 0.04); color: var(--chalk); border-color: rgba(255, 255, 255, 0.18); box-shadow: none;
}
.btn-quiet:hover { background: rgba(255, 255, 255, 0.10); filter: none; }
.panel .btn-quiet, .dialog .btn-quiet { background: #fff; color: var(--ink); border-color: #CBD2CB; }
.panel .btn-quiet:hover, .dialog .btn-quiet:hover { background: var(--paper-alt); }
.btn-onpaper { background: #fff; color: var(--ink); border-color: #CBD2CB; box-shadow: none; }
.btn-onpaper:hover { background: var(--paper-alt); filter: none; }

.btn-accent, .btn.plan-play {
  background: var(--gold-grad); color: #1A1405; border-color: rgba(120, 80, 0, 0.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 22px -12px rgba(245, 190, 30, 0.75);
}
.btn-accent:hover, .btn-accent:active, .btn.plan-play:hover { background: var(--gold-grad); color: #1A1405; filter: brightness(1.05); }
.btn-accent[disabled]:hover { background: var(--gold-grad); }
.btn-danger { background: linear-gradient(180deg, #C8473A 0%, #A9362A 100%); }
.btn-danger:hover { background: linear-gradient(180deg, #C8473A 0%, #A9362A 100%); }

/* Back: a small, quiet pill */
.btn-back {
  border: 1px solid rgba(255, 255, 255, 0.20) !important; background: rgba(255, 255, 255, 0.05) !important;
  color: var(--chalk) !important; border-radius: 999px !important; box-shadow: none !important;
  font-weight: 600; letter-spacing: 0.04em;
}
.btn-back:hover { background: rgba(255, 255, 255, 0.12) !important; color: #fff !important; }
.mode-bar-back.btn-back { color: var(--ink) !important; background: #fff !important; border-color: #D5DBD4 !important; }
.mode-bar-back.btn-back:hover { background: var(--paper-alt) !important; color: var(--ink) !important; }

/* The big "Play" buttons on the cards */
.home-play {
  background: var(--gold-grad); color: #1A1405; border: 0; border-radius: 14px;
  font-size: 20px; letter-spacing: 0.08em; min-height: 54px; padding: 12px 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 28px -14px rgba(245, 190, 30, 0.8);
  transition: transform 160ms var(--ease), filter 160ms var(--ease), box-shadow 160ms var(--ease);
}
.home-play:hover { background: var(--gold-grad); color: #1A1405; filter: brightness(1.05); transform: translateY(-1px); }
.home-play:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 6px 14px -10px rgba(245, 190, 30, 0.8); }
.home-play svg, .home-play > span:last-child { transition: transform 160ms var(--ease); }
.home-play:hover > span:last-child { transform: translateX(3px); }

/* little "Free" labels */
.free-badge {
  background: rgba(245, 190, 30, 0.14); color: var(--floodlight);
  border: 1px solid rgba(245, 190, 30, 0.45); font-weight: 700; letter-spacing: 0.08em;
}
.panel .free-badge, .rnav .free-badge { background: #FFF3C4; color: #7A5600; border-color: #F0CF62; }

/* --------------------------------------------- white sheets (tables etc.) */
.panel {
  border-radius: 18px; box-shadow: var(--sheet); border: 0;
}
.panel > h2 { letter-spacing: 0.01em; }

/* ----------------------------------------------------------- home page */
.home { padding-top: 56px; }
.home-hero { margin-bottom: 52px; }
.home-logo { width: min(560px, 92%); filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45)); }
.home-logo-wrap { margin-bottom: 26px; }
.home-tagline { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: 0.005em; margin-bottom: 16px; }
.home-lede { color: rgba(233, 239, 234, 0.82); max-width: 56ch; }
.home-credit { opacity: 0.85; }

.home-games { gap: 22px; margin-bottom: 64px; }
.home-game {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(39, 165, 93, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--glass-line); border-radius: 22px;
  box-shadow: var(--lift);
  padding: 30px 30px 28px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.home-game:hover { transform: translateY(-3px); border-color: rgba(245, 190, 30, 0.35); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 34px 60px -32px rgba(0, 0, 0, 0.9); }
.home-game-euro { background:
    radial-gradient(120% 90% at 0% 0%, rgba(54, 104, 214, 0.26), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%); }
.home-game-wide { background:
    radial-gradient(90% 120% at 50% 0%, rgba(124, 58, 237, 0.20), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%); }
.home-game h2 { font-size: clamp(26px, 2.7vw, 32px); letter-spacing: 0.03em; }
.home-game p { color: rgba(233, 239, 234, 0.80); font-size: 16.5px; }
@media (prefers-reduced-motion: reduce) { .home-game, .home-game:hover, .home-play:hover { transform: none; } }

.home-intro { background: transparent; border: 0; padding: 0 0 8px; max-width: 1040px; }
.home-intro > h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 26px; }
.home-steps { gap: 14px 16px; }
.home-step {
  padding: 20px 20px 18px; border-radius: 18px; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.07);
}
.home-step-foot { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 20px; }
.home-step-icon, .home-step-icon-teams, .home-step-icon-dice, .home-step-icon-shield, .home-step-icon-more, .home-step-icon-online {
  width: 44px; height: 44px; border-radius: 12px; color: var(--floodlight);
  background: rgba(245, 190, 30, 0.10); border: 1px solid rgba(245, 190, 30, 0.25);
}
.home-step-icon-seeds { background: rgba(255, 255, 255, 0.92); border-color: transparent; }
.home-step h3 { font-size: 21px; }
.home-step p { color: rgba(233, 239, 234, 0.76); font-size: 15.5px; }
@media (max-width: 760px) {
  .home { padding-top: 30px; }
  .home-hero { margin-bottom: 30px; }
  .home-games { margin-bottom: 40px; gap: 16px; }
  .home-game { padding: 22px 18px 20px; border-radius: 18px; }
  .home-step { padding: 16px; }
}

/* ------------------------------------------------- section landing pages */
.page-head h1 { letter-spacing: 0.02em; }
.page-head p { color: rgba(233, 239, 234, 0.78); }
.choice-lead {
  border-radius: 22px !important; border: 1px solid var(--glass-line) !important; box-shadow: var(--lift) !important;
}

/* ----------------------------------------------------- Shield screens */
/* the One-Off / Cycle strip: a slim label, not a second header */
.mode-bar {
  background: var(--glass); color: var(--chalk); border: 1px solid var(--glass-line); border-left: 1px solid var(--glass-line);
  border-radius: 16px; padding: 10px 14px; margin: 14px 0 10px; box-shadow: none;
}
.mode-bar-cycle { border-color: rgba(214, 120, 190, 0.35); }
.mode-bar-emblem svg { width: 40px; height: 48px; }
.mode-bar-name { font-size: clamp(18px, 2vw, 21px); color: #fff; letter-spacing: 0.05em; }
.mode-crumb { color: var(--chalk); }
.mode-crumb-dot, .mode-bar-game { color: var(--chalk-soft); }

.comp-title h1 { letter-spacing: 0.01em; }
.intl .comp-meta { color: var(--chalk-soft); }

/* Qualifying → Qualified teams → Finals: a calm stepper */
.snav-list { gap: 6px; }
.snav-step {
  min-height: 54px; font-size: 18px; letter-spacing: 0.05em;
  background: var(--glass); color: var(--chalk); border: 1px solid var(--glass-line); border-radius: 14px; box-shadow: none;
}
.snav-step:hover { filter: none; background: var(--glass-2); }
.snav-n { background: rgba(255, 255, 255, 0.12); color: #fff; width: 26px; height: 26px; font-size: 13.5px; }
.snav-step.is-done { color: #fff; }
.snav-step.is-done .snav-n { background: var(--grass); color: #fff; }
.snav-step.is-current {
  background: rgba(245, 190, 30, 0.12); color: var(--floodlight); border-color: rgba(245, 190, 30, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 190, 30, 0.10);
}
.snav-step.is-current .snav-n { background: var(--floodlight); color: #1A1405; }
.snav-step.is-locked, .snav-step[disabled] {
  background: transparent; color: rgba(233, 239, 234, 0.45); border: 1px dashed rgba(255, 255, 255, 0.18);
}
.nav-arrow, .snav .nav-arrow { color: rgba(255, 255, 255, 0.28); font-size: 18px; font-weight: 400; }
.snav-here, .snav-nexttag { box-shadow: none; }

/* the finals rounds strip */
.rnav { box-shadow: var(--sheet); border-radius: 18px; padding: 14px 16px; }
.rnav-head { letter-spacing: 0.12em; font-size: 13px; }
.rnav .nav-arrow { color: #B5BEB6; font-size: 16px; }
.rnav-step {
  min-height: 62px; font-size: 16.5px; font-weight: 700; border-radius: 12px;
  background: #fff; border: 1px solid var(--rule); box-shadow: none;
}
.rnav-step:hover:not([disabled]) { border-color: #9FCDB0; }
.rnav-step.is-done { background: #F0F8F2; border-color: #CBE6D4; }
.rnav-step.is-next { border-color: var(--grass); box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.14); }
.rnav-step.is-current { background: #1B2A22; color: #fff; border-color: #1B2A22; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.rnav-step.is-current .rnav-tag { background: var(--floodlight); color: #1A1405; }
.rnav-step.is-locked, .rnav-step[disabled] { background: transparent; color: #8C968E; border: 1px dashed #D3D9D2; }
.rnav-tag { letter-spacing: 0.08em; font-size: 11px; }

/* "Next: …" — one clean line */
.intl-task {
  background: var(--glass); color: var(--chalk); border: 1px solid var(--glass-line); border-left: 0;
  border-radius: 14px; padding: 12px 16px; position: relative; overflow: hidden;
}
.intl-task::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--floodlight); }
.intl-task-line, .intl-task-done, .intl .intl-task.intl-next { color: #fff; font-weight: 600; font-size: 17px; }
.intl-task-help { color: var(--chalk-soft); }
.intl-next { border-radius: 14px; }

/* "Play your way": a soft hint, not a yellow alarm */
.play-guide {
  background: var(--glass); color: var(--chalk); border: 1px solid var(--glass-line); border-radius: 16px; padding: 10px 16px;
}
.play-guide-title { color: #fff; font-size: 19px; letter-spacing: 0.03em; }
.play-guide > summary::after { color: var(--chalk-soft); font-weight: 600; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.play-guide-lede, .play-guide-what { color: rgba(233, 239, 234, 0.82); font-size: 15.5px; }
.play-guide-head { color: var(--chalk-soft); font-size: 12.5px; letter-spacing: 0.1em; }
.play-guide-eg { color: var(--chalk-soft); border-color: rgba(255, 255, 255, 0.22); }
.play-guide-item .btn-roll { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.panel .play-guide { background: var(--paper-alt); color: var(--ink); border-color: var(--rule); }
.panel .play-guide-title { color: var(--ink); }
.panel .play-guide-lede, .panel .play-guide-what { color: var(--ink); }
.panel .play-guide-head, .panel .play-guide-eg, .panel .play-guide > summary::after { color: var(--ink-soft); border-color: #C9D0C8; }

/* "How it works": a small text link with a chevron */
.how-it-works > summary {
  border-radius: 999px !important; border-width: 1px !important; border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.04) !important; box-shadow: none !important; font-weight: 600;
}
.panel .how-it-works > summary, .how-on-paper > summary { border-color: #CBD2CB !important; background: #fff !important; }

/* tabs inside a stage */
.viewtab { border-radius: 999px; }

/* World Shield: the two numbered stages */
.ws-stage { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 20px; }
.ws-num { width: 32px; height: 32px; font-size: 16px; background: var(--gold-grad); color: #1A1405; }
.ws-stage-sub { color: var(--chalk-soft); font-size: 15px; margin-left: 44px; }
.ws-join { color: var(--chalk-soft); font-weight: 600; font-size: 14px; }
.ws-join-arrow, .ws-arrow { color: rgba(245, 190, 30, 0.75); font-size: 22px; font-weight: 400; }
.cnav-tile {
  border: 1px solid transparent; border-top: 0; border-radius: 14px;
  box-shadow: inset 0 3px 0 var(--c), 0 10px 22px -16px rgba(0, 0, 0, 0.7);
}
.cnav-tile:hover { border-color: var(--c); border-top-width: 1px; }
.cnav-tile.is-current, .wsnav .cnav-tile.is-current {
  border: 2px solid var(--c); border-top-width: 2px;
  box-shadow: inset 0 3px 0 var(--c), 0 0 0 4px rgba(255, 255, 255, 0.14);
}
.wsnav .cnav-tile.is-current .cnav-name { text-decoration: none; }
.cnav-after-btn { border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.cnav-after-btn.is-locked, .cnav-after-btn[disabled] { border-style: dashed; border-color: rgba(255, 255, 255, 0.18); }
.wsnav .ws-after-btn.is-current { border: 2px solid var(--floodlight); box-shadow: 0 0 0 4px rgba(245, 190, 30, 0.14); }
.wsnav .ws-after-btn.is-current .cnav-name { text-decoration: none; }
.ws-here { background: #1B2A22; letter-spacing: 0.08em; font-size: 11.5px; }
.ws-views .ws-after-btn { border-style: dashed; }

/* ------------------------------------------------------ footer & dialog */
.footer { color: rgba(233, 239, 234, 0.55); }
.footer-credit, .footer-links a { color: rgba(233, 239, 234, 0.62); }
.acct-btn { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
.acct-btn:hover { background: rgba(255, 255, 255, 0.10); }

.dialog-backdrop { background: rgba(3, 12, 7, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog { border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }

.toast { border-radius: 999px; }

/* 1_156 follow-ups: the current section and the account button need the same
   weight as the older `.site-nav[data-tabs] .nav-tab` rules to show. */
.site-nav .nav-tab[aria-current="page"], .site-nav[data-tabs] .nav-tab[aria-current="page"] {
  color: var(--floodlight); background: rgba(245, 190, 30, 0.10); border-color: rgba(245, 190, 30, 0.42);
}
.site-nav .nav-tab:hover, .site-nav[data-tabs] .nav-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.site-nav .nav-tab[aria-current="page"]:hover, .site-nav[data-tabs] .nav-tab[aria-current="page"]:hover { color: var(--floodlight); background: rgba(245, 190, 30, 0.14); }
.site-nav .nav-account, .site-nav[data-tabs] .nav-account { color: #1A1405 !important; background: var(--gold-grad); border-color: transparent; font-weight: 700; }
.site-nav .nav-account:hover, .site-nav[data-tabs] .nav-account:hover { background: var(--gold-grad); filter: brightness(1.06); }
.site-nav .nav-account.is-signed-in, .site-nav[data-tabs] .nav-account.is-signed-in { color: #fff !important; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }

/* Back: a small quiet pill */
.page-back {
  min-height: 40px; padding: 6px 16px 6px 12px; font-size: 15px; letter-spacing: 0.08em;
  color: var(--chalk); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.page-back span { font-size: 22px; }
.page-back:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* One-Off Tournaments: a soft enclosure, not a gold frame */
.intl-group-oneoff { border: 1px solid var(--glass-line); background: rgba(0, 0, 0, 0.14); border-radius: 26px; }
.mode-tag-oneoff { background: rgba(245, 190, 30, 0.14); color: var(--floodlight); box-shadow: inset 0 0 0 1px rgba(245, 190, 30, 0.45); }
.mode-tag-cycle { background: rgba(214, 120, 190, 0.16); color: #F2B6E1; box-shadow: inset 0 0 0 1px rgba(214, 120, 190, 0.45); }
.home-hero .home-tagline, .page-head h1, .intl-group-head h2 { text-wrap: balance; }
.home-game p, .home-lede, .page-head p { text-wrap: pretty; }

/* the "move on" box: a glowing card with the gold button, not a gold frame */
.intl-progress {
  background: linear-gradient(90deg, rgba(245, 190, 30, 0.10), rgba(245, 190, 30, 0.02) 60%);
  border: 1px solid rgba(245, 190, 30, 0.38); border-radius: 16px;
}
.intl-progress .btn-progress { background: var(--gold-grad); color: #1A1405; border-color: rgba(120, 80, 0, 0.25); border-radius: 12px; }
.intl-progress .btn-progress:hover { background: var(--gold-grad); }
.intl-progress.is-waiting { background: var(--glass); border: 1px dashed rgba(255, 255, 255, 0.2); }
.intl-progress.is-waiting .btn-progress { background: rgba(255, 255, 255, 0.12); color: rgba(233, 239, 234, 0.7); border-color: transparent; box-shadow: none; }
.intl-progress-note { color: rgba(233, 239, 234, 0.8); }
.intl-sub-arrow { color: rgba(255, 255, 255, 0.3); font-size: 20px; font-weight: 400; text-shadow: none; }

/* a continent's rounds: a clean white sheet with a thin colour line on top */
.ws-rounds { border-left: 0; border-radius: 18px; box-shadow: var(--sheet), inset 0 3px 0 var(--c, var(--grass)); }
.ws-rounds-head { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.ws-rounds .ws-arrow { font-size: 18px; color: #B5BEB6; }
.ws-rounds .viewtab.ws-round { border-radius: 12px; border: 1px solid var(--rule); }
.ws-rounds .viewtab.ws-round.is-current {
  background: color-mix(in srgb, var(--c, var(--grass)) 10%, #fff); border: 2px solid var(--c, var(--grass)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--grass)) 14%, transparent);
}
.ws-rounds .viewtab.ws-round.is-current .ws-round-label { text-decoration: none; }
.cnav-tile.is-current .cnav-name, .wsnav .cnav-tile.is-current .cnav-name { font-weight: 800; }

/* the big route cards (Domestic and elsewhere): the same glass as the home cards */
.choice-lead {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(39, 165, 93, 0.24), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}
.choice-lead:hover {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(39, 165, 93, 0.30), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(245, 190, 30, 0.40) !important; transform: translateY(-2px);
}
.choice-lead .choice-note { color: rgba(233, 239, 234, 0.80); }
.choice-lead .choice-go {
  display: inline-flex; align-self: flex-start; padding: 8px 16px; border-radius: 999px;
  background: rgba(245, 190, 30, 0.12); box-shadow: inset 0 0 0 1px rgba(245, 190, 30, 0.45);
}
@media (prefers-reduced-motion: reduce) { .choice-lead:hover { transform: none; } }

/* =========================================================================
   Build 1_157 — the home page as a shop window.
   Hero: words and buttons on the left, a picture of the game on the right
   (drawn in HTML). Then the three free games, three steps, the extras, and
   a membership panel. Every button keeps the action it had.
   ========================================================================= */
.home-v2 { padding-top: 48px; }
.home-eyebrow {
  margin: 0 0 12px; font-family: var(--cond); font-weight: 600; font-size: 15px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--floodlight);
}
.home-v2 .home-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 48px;
  max-width: none; text-align: left; margin: 0 0 88px;
}
.home-v2 .home-tagline {
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.005em; margin: 0 0 20px; color: #fff; text-wrap: balance;
}
.home-v2 .home-tagline span { display: block; color: var(--floodlight); }
.home-v2 .home-lede { margin: 0 0 28px; max-width: 48ch; font-size: clamp(17px, 1.5vw, 19px); }
.home-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.home-cta .home-cta-main { margin-top: 0; font-size: 20px; padding: 14px 28px; }
.home-cta .home-cta-alt { min-height: 54px; padding: 12px 24px; font-size: 16px; border-radius: 14px; }
.home-trust { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: rgba(233, 239, 234, 0.78); }
.home-trust li { display: inline-flex; align-items: center; gap: 8px; }
.home-trust li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: rgba(39, 165, 93, 0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%237BE0A4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.home-v2 .home-credit { margin: 0; font-size: 14px; }

/* the picture of the game */
.home-shot { position: relative; padding: 10px 0 46px; }
.home-shot::before {
  content: ''; position: absolute; inset: -10% -6% 0; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(39, 165, 93, 0.35), transparent 75%);
}
.hs-card { position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.2); }
.hs-table { padding: 16px 16px 10px; transform: rotate(-1.2deg); }
.hs-head { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 8px; }
.hs-kicker { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.hs-live { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #E8F5EC; color: #176B3A; }
.hs-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hs-table th { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8A958D; text-align: center; padding: 6px 4px; border-bottom: 1px solid var(--rule); }
.hs-table td { text-align: center; padding: 9px 4px; border-bottom: 1px solid #EEF1EC; }
.hs-table tr:last-child td { border-bottom: 0; }
.hs-table td:first-child { width: 26px; font-weight: 700; color: var(--ink-soft); }
.hs-table .hs-team { text-align: left; font-weight: 600; white-space: nowrap; }
.hs-flag { width: 20px; height: 15px; border-radius: 3px; vertical-align: -2px; margin-right: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); object-fit: cover; }
.hs-pts { font-weight: 800; }
.hs-table tr.is-q td:first-child { box-shadow: inset 3px 0 0 #1F8A4C; }
.hs-table tr.is-po td:first-child { box-shadow: inset 3px 0 0 #E07A1F; }
.hs-form { white-space: nowrap; }
.hs-form b { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 2px; border-radius: 4px; font-size: 10px; font-weight: 800; color: #fff; }
.hs-form .f-W { background: #1F8A4C; } .hs-form .f-D { background: #9AA59C; } .hs-form .f-L { background: #C0392B; }
.hs-match {
  position: absolute; right: -8px; bottom: 0; width: min(330px, 78%); padding: 14px 16px 16px; transform: rotate(2deg);
  background: #13281C; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12);
}
.hs-match .hs-kicker { color: var(--floodlight); }
.hs-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 8px; }
.hs-side { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.hs-side .hs-flag { margin: 0; width: 28px; height: 21px; }
.hs-dice { display: inline-flex; align-items: center; gap: 8px; }
.hs-dash { font-size: 22px; color: rgba(255, 255, 255, 0.5); }
.hs-die {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 7px; width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(180deg, #fff, #E9ECE7); box-shadow: 0 3px 0 #B9C0B8, 0 8px 14px -6px rgba(0, 0, 0, 0.6);
}
.hs-die i { border-radius: 50%; }
.hs-die i.on { background: #13281C; }
@media (prefers-reduced-motion: no-preference) {
  .hs-match { animation: hs-float 6s ease-in-out infinite; }
  @keyframes hs-float { 50% { transform: rotate(2deg) translateY(-6px); } }
}

/* section headings */
.home-section-head { text-align: center; margin: 0 0 26px; scroll-margin-top: 90px; }
.home-section-head h2 { font-size: clamp(30px, 3.4vw, 42px); color: #fff; margin: 0; text-wrap: balance; }
.home-section-head .home-eyebrow { margin-bottom: 8px; }

/* the three free games, three across */
.home-v2 .home-games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 96px; }
.home-v2 .home-game { padding: 26px 24px 24px; }
.home-v2 .home-game-title { flex-direction: column; align-items: flex-start; gap: 14px; }
.home-v2 .home-game-emblem svg { width: 54px; height: 64px; }
.home-v2 .home-game h2 { font-size: clamp(24px, 2.2vw, 29px); }
.home-v2 .home-game p { font-size: 16px; }
.home-v2 .home-game .home-play { margin-top: auto; width: 100%; justify-content: center; }
.home-v2 .home-game-badge { position: absolute; top: 22px; right: 22px; }
.home-game-intl { background:
    radial-gradient(120% 90% at 0% 0%, rgba(124, 58, 237, 0.24), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%); }

/* how it works */
.home-v2 .home-intro { max-width: none; margin: 0 0 96px; scroll-margin-top: 90px; }
.home-how { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.home-how li { position: relative; padding: 26px 24px 22px; border-radius: 20px; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.08); }
.home-how-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--gold-grad); color: #1A1405; font: 800 20px var(--cond);
}
.home-how h3 { font-size: 24px; color: #fff; margin: 0 0 6px; }
.home-how p { margin: 0; color: rgba(233, 239, 234, 0.78); font-size: 16px; }
.home-v2 .home-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-v2 .home-feats .home-step-foot { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 20px; }

/* membership */
.home-member {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 28px; align-items: center;
  padding: 36px 40px; margin: 0 0 24px; border-radius: 26px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(245, 190, 30, 0.20), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(245, 190, 30, 0.30); box-shadow: var(--lift);
}
.home-member h2 { font-size: clamp(30px, 3.2vw, 40px); color: #fff; margin: 0 0 16px; }
.home-member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.home-member-list li { position: relative; padding-left: 30px; font-size: 16.5px; color: rgba(233, 239, 234, 0.88); }
.home-member-list li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(245, 190, 30, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23F5BE1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.home-member-cta { display: grid; gap: 12px; }
.home-member-cta .home-play { margin-top: 0; width: 100%; justify-content: center; }
.home-member-cta .btn-quiet { min-height: 50px; border-radius: 14px; }

/* tablets */
@media (max-width: 1100px) {
  .home-v2 .home-hero { gap: 32px; }
  .home-v2 .home-games { grid-template-columns: 1fr 1fr; }
  .home-v2 .home-game-intl { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .home-v2 .home-hero { grid-template-columns: 1fr; text-align: center; margin-bottom: 64px; }
  .home-v2 .home-lede { margin-left: auto; margin-right: auto; }
  .home-cta, .home-trust { justify-content: center; }
  .home-shot { max-width: 560px; margin: 0 auto; width: 100%; text-align: left; }
  .home-how { grid-template-columns: 1fr; gap: 12px; }
  .home-how li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .home-how-n { grid-row: span 2; margin: 0; }
  .home-member { grid-template-columns: 1fr; padding: 28px 24px; }
}
/* phones */
@media (max-width: 760px) {
  .home-v2 { padding-top: 28px; }
  .home-v2 .home-games { grid-template-columns: 1fr; margin-bottom: 64px; }
  .home-v2 .home-intro { margin-bottom: 64px; }
  .home-v2 .home-feats { grid-template-columns: 1fr; }
  .home-v2 .home-game-title { flex-direction: row; align-items: center; padding-right: 64px; }
  .home-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hs-table { padding: 12px 10px 6px; }
  .hs-table table { font-size: 13.5px; }
  .hs-table .hs-form, .hs-table th.hs-form { display: none; }
  .hs-match { right: 0; width: 86%; }
}
.home-shot { padding-bottom: 72px; }
.hs-match { bottom: 0; }
.home-v2 { overflow-x: clip; }
@media (min-width: 761px) and (max-width: 1299px) {
  .site-nav, .site-nav[data-tabs], .site-nav[data-tabs="8"] { flex-wrap: nowrap !important; gap: 2px !important; }
  .site-nav .nav-tab, .site-nav[data-tabs] .nav-tab, .site-nav[data-tabs="8"] .nav-tab { font-size: 14.5px !important; padding: 8px 10px !important; letter-spacing: 0.05em !important; }
  .site-nav .nav-account, .site-nav[data-tabs] .nav-account { margin-left: 6px; }
}
@media (min-width: 761px) and (max-width: 860px) {
  .site-nav .nav-tab, .site-nav[data-tabs] .nav-tab, .site-nav[data-tabs="8"] .nav-tab { font-size: 13.5px !important; padding: 8px 7px !important; letter-spacing: 0.03em !important; }
}

/* =========================================================================
   Build 1_157 — one name and one Back button per game screen.
   - The One-Off Tournament strip repeated the Shield's name and emblem right
     above the big title. It is now just the small "One-Off Tournament" label
     sitting above the title.
   - The top bar's gold "Back to …" button is hidden whenever the page's own
     Back button is showing (the menu above still takes you to International,
     Domestic and so on). Nothing is removed from the page: only hidden.
   ========================================================================= */
.mode-bar.mode-bar-oneoff {
  background: none; border: 0; box-shadow: none; padding: 0; margin: 18px 0 8px; min-height: 0;
}
.mode-bar-oneoff .mode-bar-emblem, .mode-bar-oneoff .mode-bar-name { display: none; }
.mode-bar-oneoff .mode-bar-text { flex: 0 0 auto; }
body:has(.page-back-row:not([hidden])) .topbar-actions .btn-back { display: none; }
/* the cycle strip has its own "Cycle Seasons overview" button: no second one up top */
body:has(.mode-bar-back) .topbar-actions .btn-back { display: none; }

/* =========================================================================
   Build 1_158 — "matchday afternoon": the same new look, lightened.
   Matt, 14 Nov: "lighten up a bit so it's not all dark". A brighter pitch
   with broad mown stripes, lighter glass cards with clearer edges, softer
   text that is easier to read, and light cream sections on the home page so
   it is no longer one dark sweep. Looks only.
   ========================================================================= */
:root {
  --pitch:      #1A6440;
  --pitch-deep: #0F3F27;
  --pitch-soft: #237A4E;
  --chalk:      #F4F8F5;
  --chalk-soft: #D2E2D8;
  --glass:      rgba(255, 255, 255, 0.10);
  --glass-2:    rgba(255, 255, 255, 0.16);
  --glass-line: rgba(255, 255, 255, 0.20);
  --cream:      #FBF8F0;
  --lift:       0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 22px 44px -28px rgba(4, 30, 16, 0.75);
}
body {
  background:
    radial-gradient(1400px 620px at 50% -180px, rgba(255, 244, 196, 0.22), transparent 70%),
    radial-gradient(900px 700px at 100% 40%, rgba(64, 170, 108, 0.18), transparent 70%),
    linear-gradient(180deg, #227A4C 0%, #1A6440 42%, #145534 100%);
  background-attachment: fixed;
}
/* broad mown stripes, as on a real pitch */
.pitch {
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 9vw, rgba(0, 0, 0, 0.035) 9vw 18vw);
}
.pitch svg { opacity: 0.09; }

.topbar { background: rgba(14, 58, 35, 0.80); border-bottom-color: rgba(255, 255, 255, 0.12); box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.6); }
.has-preview .topbar { background: #0F3F27; }
.nav-tab, .site-nav .nav-tab, .site-nav[data-tabs] .nav-tab { color: rgba(255, 255, 255, 0.86); }
.site-nav .nav-tab[aria-current="page"], .site-nav[data-tabs] .nav-tab[aria-current="page"] {
  color: #1A1405; background: var(--gold-grad); border-color: transparent;
}
.site-nav .nav-tab[aria-current="page"]:hover, .site-nav[data-tabs] .nav-tab[aria-current="page"]:hover { color: #1A1405; background: var(--gold-grad); filter: brightness(1.05); }
.site-nav .nav-account.is-signed-in, .site-nav[data-tabs] .nav-account.is-signed-in { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }

/* glass cards: lighter, with a visible edge and a soft top highlight */
.home-game, .choice-lead {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(120, 230, 160, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.home-game-euro { background:
    radial-gradient(120% 90% at 0% 0%, rgba(110, 160, 255, 0.30), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%) !important; }
.home-game-intl, .home-game-wide { background:
    radial-gradient(120% 90% at 0% 0%, rgba(176, 130, 255, 0.30), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%) !important; }
.home-game:hover, .choice-lead:hover { border-color: rgba(255, 217, 101, 0.75) !important; }
.home-game p, .choice-lead .choice-note { color: rgba(255, 255, 255, 0.90); }
.free-badge { background: rgba(255, 217, 101, 0.20); color: #FFE08A; border-color: rgba(255, 217, 101, 0.60); }

/* readable soft text on the brighter green */
.home-lede, .page-head p, .home-trust, .intl-progress-note, .ws-stage-sub, .play-guide-lede, .play-guide-what { color: rgba(255, 255, 255, 0.90); }
.home-eyebrow { color: #FFD965; }
.footer, .footer-credit, .footer-links a { color: rgba(255, 255, 255, 0.72); }
.acct-btn { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.22); color: #fff; }

/* Back and quiet buttons on the green */
.page-back, .btn-quiet { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.30); color: #fff; }
.page-back:hover, .btn-quiet:hover { background: rgba(255, 255, 255, 0.20); }

/* Shield screens: lighter strips */
.snav-step { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.snav-step.is-current { background: var(--gold-grad); color: #1A1405; border-color: transparent; box-shadow: 0 10px 22px -12px rgba(245, 190, 30, 0.8); }
.snav-step.is-current .snav-n { background: #1A1405; color: #FFD965; }
.snav-step.is-current .intl-done { background: #1A1405; color: #fff; }
.snav-step.is-locked, .snav-step[disabled] { color: rgba(255, 255, 255, 0.62); border-color: rgba(255, 255, 255, 0.30); }
.nav-arrow, .snav .nav-arrow { color: rgba(255, 255, 255, 0.5); }
.intl-task { background: #fff; color: var(--ink); border-color: transparent; box-shadow: var(--sheet); }
.intl-task-line, .intl-task-done, .intl .intl-task.intl-next { color: var(--ink); }
.intl-task-help { color: var(--ink-soft); }
.play-guide { background: var(--cream); color: var(--ink); border-color: transparent; box-shadow: var(--sheet); }
.play-guide-title { color: var(--ink); }
.play-guide-lede, .play-guide-what { color: var(--ink); }
.play-guide-head, .play-guide-eg, .play-guide > summary::after { color: var(--ink-soft); border-color: #D6D2C2; }
.ws-stage { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.22); }
.cnav-after-btn { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.30); color: #fff; }
.mode-bar:not(.mode-bar-oneoff) { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.24); }
.intl-group-oneoff { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.20); }
.intl-progress { background: linear-gradient(90deg, rgba(255, 217, 101, 0.22), rgba(255, 255, 255, 0.08) 70%); border-color: rgba(255, 217, 101, 0.60); }
.how-it-works > summary { background: rgba(255, 255, 255, 0.12) !important; border-color: rgba(255, 255, 255, 0.30) !important; color: #fff; }
.panel .how-it-works > summary, .how-on-paper > summary { color: var(--ink); }

/* ---------------------------------------------- home: light sections */
/* "How it works" sits on a full-width cream band */
.home-v2 .home-intro {
  position: relative; padding: 64px 0 60px; margin-bottom: 0; color: var(--ink);
  isolation: isolate;
}
.home-v2 .home-intro::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background:
    radial-gradient(800px 300px at 15% 0%, rgba(255, 217, 101, 0.20), transparent 70%),
    linear-gradient(180deg, #FCFAF3 0%, #F4F1E6 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.4), 0 30px 60px -40px rgba(0, 0, 0, 0.5);
}
.home-v2 .home-intro .home-section-head h2 { color: #10261A; }
.home-v2 .home-intro .home-eyebrow { color: #A0710A; }
.home-v2 .home-how li { background: #fff; border: 1px solid #ECE6D3; box-shadow: 0 18px 36px -26px rgba(60, 45, 10, 0.45); }
.home-v2 .home-how h3 { color: #10261A; }
.home-v2 .home-how p { color: #46544B; }
.home-v2 .home-feats .home-step { background: rgba(255, 255, 255, 0.7); border: 1px solid #ECE6D3; }
.home-v2 .home-feats .home-step-foot { border-top: 1px solid #ECE6D3; }
.home-v2 .home-feats .home-step h3 { color: #10261A; }
.home-v2 .home-feats .home-step p { color: #46544B; }
.home-v2 .home-feats .home-step-icon { color: #8A5E00; background: #FFF1C2; border-color: #F3D77A; }
.home-v2 .home-feats .home-step-icon-seeds { background: #fff; border-color: #ECE6D3; }
.home-v2 .home-feats .free-badge { background: #FFF1C2; color: #7A5600; border-color: #F0CF62; }

/* membership: a bright gold-edged white card on the green */
.home-member {
  margin-top: 72px; color: var(--ink);
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(255, 217, 101, 0.35), transparent 60%),
    linear-gradient(135deg, #FFFFFF 0%, #FBF6E6 100%);
  border: 1px solid #F0D27A; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.home-member h2 { color: #10261A; }
.home-member .home-eyebrow { color: #A0710A; }
.home-member-list li { color: #2E3B33; }
.home-member-list li::before { background-color: #FFF1C2; }
.home-member-cta .btn-quiet { background: #fff; color: var(--ink); border-color: #D9D2BC; }
.home-member-cta .btn-quiet:hover { background: #FBF6E6; }

.home-v2 .home-games { margin-bottom: 80px; }
.home-shot::before { background: radial-gradient(closest-side, rgba(255, 244, 196, 0.35), transparent 75%); }

@media (max-width: 900px) { .home-v2 .home-intro { padding: 48px 0 44px; } }
@media (max-width: 760px) { .home-member { margin-top: 52px; } .home-v2 .home-intro { padding: 40px 0 36px; } }
/* the cream band runs edge to edge, so the clip moves from the home section to the page */
.home-v2 { overflow-x: visible; }
body { overflow-x: clip; }
body { overflow-x: visible; }
main { overflow-x: clip; }

/* =========================================================================
   Build 1_159 — the home page comes alive.
   The dice roll by themselves when the page opens, the mini table re-sorts
   and its rows slide to their new places, the trophies strip shows what
   there is to win, and sections glide in as you scroll. All decoration:
   none of it touches a saved game. Movement stops for anyone whose device
   asks for reduced motion.
   ========================================================================= */

/* the try-it-now match */
.hs-demo {
  width: min(380px, 84%); right: -10px; bottom: 0; padding: 16px 18px 18px; animation: none !important; transform: rotate(1.5deg);
  background: linear-gradient(180deg, #17301F 0%, #102318 100%);
  box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 217, 101, 0.25);
}
.hs-demo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hs-demo-tag { font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.hs-demo .hs-score { margin: 12px 0 10px; }
.hs-die-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #F2B705; color: #1A1405; }
.hs-die-kind.is-strong { background: #2FB062; color: #fff; }
.hs-num {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 14px;
  font: 800 32px/1 var(--cond); color: #10261A;
  background: linear-gradient(180deg, #FFFFFF, #E6EAE4); box-shadow: 0 4px 0 #B9C0B8, 0 12px 18px -8px rgba(0, 0, 0, 0.6);
}
.hs-num.is-rolling { animation: hs-tumble 260ms linear infinite; }
.hs-num.is-landed { animation: hs-land 420ms cubic-bezier(.2, 1.6, .4, 1); }
@keyframes hs-tumble {
  0% { transform: rotate(0deg) translateY(0); } 25% { transform: rotate(-14deg) translateY(-6px); }
  50% { transform: rotate(10deg) translateY(0); } 75% { transform: rotate(-6deg) translateY(-3px); } 100% { transform: rotate(0deg) translateY(0); }
}
@keyframes hs-land { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.hs-demo-line { margin: 0 0 12px; text-align: center; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, 0.9); min-height: 1.5em; }
.hs-demo[data-result="away"] .hs-demo-line { color: #FFD965; }
.hs-roll { width: 100%; justify-content: center; margin-top: 0; min-height: 50px; font-size: 19px; }
.hs-roll:not([data-auto]) { animation: hs-pulse 2.2s ease-in-out infinite; }
@keyframes hs-pulse { 50% { box-shadow: 0 0 0 8px rgba(245, 190, 30, 0.18), 0 14px 28px -14px rgba(245, 190, 30, 0.8); } }
.hs-demo-more {
  display: block; width: 100%; margin-top: 10px; padding: 6px; background: none; border: 0; cursor: pointer;
  color: #FFD965; font: 600 14.5px var(--sans); text-decoration: underline; text-underline-offset: 3px;
}
.hs-demo-more[hidden] { display: none; }

/* the table that moves */
.hs-table tbody { position: relative; }
.hs-table tr { will-change: transform; }
.hs-table tr.is-moved td { animation: hs-flash 1.6s ease-out; }
@keyframes hs-flash { 0%, 30% { background: #FFF2C2; } 100% { background: transparent; } }
.hs-move { display: inline-block; margin-left: 6px; font-size: 10px; vertical-align: 1px; }
.hs-move.is-up { color: #1F8A4C; } .hs-move.is-down { color: #C0392B; }
.hs-live { position: relative; padding-left: 20px; }
.hs-live::before {
  content: ''; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #1F8A4C;
  animation: hs-blink 1.4s ease-in-out infinite;
}
@keyframes hs-blink { 50% { opacity: 0.25; } }

/* trophies strip */
.home-v2 .home-trophies { margin: 0 0 96px; }
.home-section-lede { margin: 12px auto 0; max-width: 60ch; color: rgba(255, 255, 255, 0.88); font-size: 17px; }
.home-shields { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.home-shield {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 22px 12px 18px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}
.home-shield:hover { transform: translateY(-4px); border-color: rgba(255, 217, 101, 0.7); }
.home-shield-emblem svg { width: 64px; height: 76px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); transition: transform 400ms var(--ease); }
.home-shield:hover .home-shield-emblem svg { transform: rotate(-6deg) scale(1.06); }
.home-shield strong { font: 700 19px/1.1 var(--cond); letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.home-shield-line { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.home-shield-tag { margin-top: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.home-shield-tag.is-free { background: var(--gold-grad); color: #1A1405; }

.home-honours {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center;
  padding: 26px 30px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.6);
}
.home-honours .home-eyebrow { color: #A0710A; margin-bottom: 6px; }
.home-honours h3 { font-size: clamp(22px, 2.2vw, 28px); color: #10261A; margin: 0 0 8px; }
.home-honours-text p:last-child { margin: 0; color: #46544B; font-size: 15.5px; }
.home-honours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.home-honours-list li { display: grid; grid-template-columns: 22px 22px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #F6F7F3; }
.home-honours-list .hs-flag { margin: 0; }
.hh-pos { font-weight: 800; color: var(--ink-soft); }
.hh-name { font-weight: 700; }
.hh-badge { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #E6EAE4; color: #3B4740; white-space: nowrap; }
.hh-badge.is-silver { background: linear-gradient(180deg, #F4F6F8, #C9D1D8); color: #2B3540; box-shadow: inset 0 0 0 1px #AEB8C2; }
.hh-badge.is-gold { background: var(--gold-grad); color: #1A1405; box-shadow: 0 0 0 2px #FFF1C2, 0 0 0 3px #E9AC0F; }
.hh-badge.is-perfect { position: relative; overflow: hidden; }
.hh-badge.is-perfect::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent); animation: hh-shine 3.2s ease-in-out infinite;
}
@keyframes hh-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.hh-pts { font: 800 18px var(--cond); }
.hh-pts small { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.home-honours-list li:first-child { background: #FFF8DF; box-shadow: inset 0 0 0 1px #F0D27A; }

/* the price, front and centre */
.home-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0; color: #10261A; }
.home-price-from { font-size: 15px; font-weight: 600; color: #6B5A2A; }
.home-price-num { font: 800 clamp(48px, 5vw, 62px)/1 var(--cond); letter-spacing: -0.01em; }
.home-price-per { font-size: 17px; font-weight: 600; color: #46544B; }
.home-price-note { margin: -2px 0 6px; text-align: center; font-size: 14.5px; color: #6B5A2A; }

/* glide in on scroll */
.home-reveal.is-waiting { opacity: 0; transform: translateY(26px); }
.home-reveal.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.home-games.is-in .home-game { animation: hs-rise 700ms var(--ease) both; }
.home-games.is-in .home-game:nth-child(2) { animation-delay: 120ms; }
.home-games.is-in .home-game:nth-child(3) { animation-delay: 240ms; }
@keyframes hs-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* the hero arrives on load */
.home-v2 .home-hero-text > * { animation: hs-rise 700ms var(--ease) both; }
.home-v2 .home-hero-text > :nth-child(2) { animation-delay: 80ms; }
.home-v2 .home-hero-text > :nth-child(3) { animation-delay: 160ms; }
.home-v2 .home-hero-text > :nth-child(n+4) { animation-delay: 240ms; }
.home-v2 .hs-table { animation: hs-drop 800ms 150ms var(--ease) both; }
.home-v2 .hs-demo { animation: hs-drop2 800ms 380ms var(--ease) both !important; }
@keyframes hs-drop { from { opacity: 0; transform: rotate(-1.2deg) translateY(30px); } to { opacity: 1; transform: rotate(-1.2deg); } }
@keyframes hs-drop2 { from { opacity: 0; transform: rotate(1.5deg) translateY(40px); } to { opacity: 1; transform: rotate(1.5deg); } }

@media (prefers-reduced-motion: reduce) {
  .home-reveal.is-waiting { opacity: 1; transform: none; }
  .home-v2 .home-hero-text > *, .home-v2 .hs-table, .home-v2 .hs-demo, .home-games.is-in .home-game,
  .hs-num.is-rolling, .hs-num.is-landed, .hs-roll, .hh-badge.is-perfect::after, .hs-live::before { animation: none !important; }
}

@media (max-width: 1100px) {
  .home-shields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-honours { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hs-demo { position: relative; right: auto; width: 100%; margin-top: -26px; transform: none; }
  @keyframes hs-drop2 { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  .home-shot { padding-bottom: 0; }
  .home-shields { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-shield:last-child { grid-column: 1 / -1; }
  .home-shield-emblem svg { width: 52px; height: 62px; }
  .home-honours { padding: 20px 16px; }
  .home-honours-list li { grid-template-columns: 18px 22px minmax(0, 1fr) auto; padding: 10px; }
  .home-honours-list .hh-pts { display: none; }
  .home-v2 .home-trophies { margin-bottom: 64px; }
}
/* the match card sits under the table, overlapping only its edge, so the table's movement is visible */
.home-shot { padding-bottom: 0; }
.hs-demo { position: relative; right: auto; bottom: auto; margin: -22px -8px 0 auto; width: min(400px, 90%); }
@media (max-width: 760px) { .hs-demo { margin: -18px 0 0; width: 100%; } }
@media (max-width: 760px) {
  .hs-demo { margin-top: 12px; }
  .hs-die-kind { font-size: 10px; white-space: nowrap; padding: 2px 6px; }
  .hs-num { width: 50px; height: 50px; font-size: 28px; }
  .hs-demo .hs-score { gap: 6px; }
}
/* the hero is never invisible: it slides in, but is always drawn */
@keyframes hs-slide { from { transform: translateY(16px); } to { transform: none; } }
@keyframes hs-slide-l { from { transform: rotate(-1.2deg) translateY(24px); } to { transform: rotate(-1.2deg); } }
@keyframes hs-slide-r { from { transform: rotate(1.5deg) translateY(30px); } to { transform: rotate(1.5deg); } }
.home-v2 .home-hero-text > * { animation-name: hs-slide; }
.home-v2 .hs-table { animation-name: hs-slide-l; }
.home-v2 .hs-demo { animation-name: hs-slide-r !important; }
@media (max-width: 760px) { .home-v2 .hs-demo { animation-name: hs-slide !important; } }

/* Build 1_160 — the home demo uses the game's own dice (.die), just bigger.
   Same tilt, gold tumble, flicker, landing pop and dark rolled face. */
.hs-demo .die.hs-gamedie {
  width: 60px; height: 60px; border-radius: 13px; font-size: 22px; cursor: default;
  border-color: #fff; box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
}
.hs-demo .die.hs-gamedie:hover { transform: rotate(-11deg); background: var(--paper); }
.hs-demo .die.hs-gamedie.is-rolled { font-size: 32px; background: #0B1A12; color: #fff; border-color: #fff; }
.hs-demo .die.hs-gamedie.is-rolled:hover { transform: rotate(0deg); background: #0B1A12; }
.hs-demo .die.hs-gamedie.is-rolling { border-color: #C79400; }
.hs-demo .hs-dice { gap: 12px; }
@media (max-width: 760px) {
  .hs-demo .die.hs-gamedie { width: 52px; height: 52px; font-size: 19px; }
  .hs-demo .die.hs-gamedie.is-rolled { font-size: 28px; }
}

/* =========================================================================
   Build 1_161 — the home page in 3D.
   Behind the headline: a floodlit pitch laid out in perspective, its stripes
   gliding towards you, two light beams sweeping, specks of light rising, and
   real 3D dice tumbling. The pointer adds depth (desktop): the stage, the dice
   and the table shift and tilt; game cards and Shields lean towards it. The
   Shields spin in like coins; sections rise out of the page. Decoration only,
   transforms only (smooth on phones), and all of it stops for reduced motion.
   ========================================================================= */
.home-v2 .home-hero { position: relative; --mx: 0; --my: 0; }
.home-v2 .home-hero > .home-hero-text, .home-v2 .home-hero > .home-shot { position: relative; z-index: 2; }

/* the stage spans the full window width behind the hero */
.home-stage {
  position: absolute; z-index: 0; pointer-events: none;
  top: -60px; bottom: -70px; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}
.stage-pitch-wrap {
  position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 0%;
  transform: translate3d(calc(var(--mx) * -26px), calc(var(--my) * -14px), 0);
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}
.stage-pitch {
  position: absolute; left: 50%; bottom: -46%; width: min(1500px, 150vw); height: 150%;
  transform: translateX(-50%) rotateX(66deg); transform-origin: 50% 100%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 70px, rgba(0, 0, 0, 0.05) 70px 140px),
    radial-gradient(60% 50% at 50% 60%, rgba(120, 220, 150, 0.25), transparent 70%);
  background-size: 100% 140px, 100% 100%;
  animation: stage-dolly 6s linear infinite;
  -webkit-mask-image: linear-gradient(0deg, #000 35%, transparent 92%);
          mask-image: linear-gradient(0deg, #000 35%, transparent 92%);
}
.stage-pitch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes stage-dolly { to { background-position: 0 140px, 0 0; } }

.stage-beam {
  position: absolute; top: -8%; width: 46vw; height: 125%; transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(255, 249, 214, 0.30), rgba(255, 249, 214, 0.06) 55%, transparent 80%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(6px); mix-blend-mode: screen; opacity: 0.85;
}
.stage-beam-l { left: -6vw; animation: beam-l 11s ease-in-out infinite alternate; }
.stage-beam-r { right: -6vw; animation: beam-r 13s ease-in-out infinite alternate; }
@keyframes beam-l { from { transform: rotate(-26deg); } to { transform: rotate(-12deg); } }
@keyframes beam-r { from { transform: rotate(24deg); } to { transform: rotate(10deg); } }

.stage-dust i {
  position: absolute; left: var(--x); bottom: -10px; width: calc(var(--z) * 2px); height: calc(var(--z) * 2px); border-radius: 50%;
  background: rgba(255, 246, 200, 0.85); box-shadow: 0 0 8px rgba(255, 236, 150, 0.9);
  animation: dust-rise var(--t) linear var(--d) infinite; opacity: 0;
}
@keyframes dust-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: 0.9; }
  80% { opacity: 0.5; } 100% { transform: translate3d(30px, -560px, 0); opacity: 0; }
}

/* real 3D dice */
.home-cubes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cube-wrap {
  --s: 62px; position: absolute; width: var(--s); height: var(--s); perspective: 700px;
  transform: translate3d(calc(var(--mx) * var(--px, 40px)), calc(var(--my) * var(--px, 40px)), 0);
  transition: transform 400ms cubic-bezier(.2, .7, .2, 1);
}
.cube-wrap::after { /* soft shadow on the pitch */
  content: ''; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.35), transparent); animation: cube-shadow 5s ease-in-out infinite;
}
.cube { position: absolute; inset: 0; transform-style: preserve-3d; animation: cube-tumble 16s linear infinite, cube-bob 5s ease-in-out infinite; }
.cube-face {
  position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 15%; gap: 4%;
  border-radius: 20%; backface-visibility: hidden;
  background: linear-gradient(145deg, #FFFFFF 0%, #EEF1EC 60%, #D9DED6 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), inset -5px -7px 12px rgba(0, 0, 0, 0.10), inset 4px 4px 8px rgba(255, 255, 255, 0.9);
}
.cube-face i { border-radius: 50%; }
.cube-face i.on { background: radial-gradient(circle at 35% 30%, #2C4A38, #0B1A12 70%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25); }
.cube-face.f1 { transform: translateZ(calc(var(--s) / 2)); }
.cube-face.f2 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube-face.f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube-face.f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube-face.f5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube-face.f6 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube-wrap.is-gold .cube-face { background: linear-gradient(145deg, #FFE48A 0%, #F5BE1E 55%, #D99A06 100%); box-shadow: inset 0 0 0 1px rgba(120, 80, 0, 0.25), inset -5px -7px 12px rgba(120, 80, 0, 0.22), inset 4px 4px 8px rgba(255, 245, 200, 0.8); }
.cube-wrap.is-gold .cube-face i.on { background: radial-gradient(circle at 35% 30%, #4A3505, #1A1405 70%); }
@keyframes cube-tumble {
  0% { transform: rotateX(-24deg) rotateY(20deg) rotateZ(0deg); }
  100% { transform: rotateX(336deg) rotateY(380deg) rotateZ(360deg); }
}
@keyframes cube-bob { 50% { translate: 0 -14px; } }
@keyframes cube-shadow { 50% { transform: scale(0.8); opacity: 0.6; } }
.cube-a { --s: 64px; --px: 46px; left: 47%; top: 4%; }
.cube-b { --s: 52px; --px: 70px; left: 41%; bottom: 10%; }
.cube-b .cube { animation-duration: 12s, 4.2s; animation-direction: reverse, normal; }
.cube-c { --s: 34px; --px: 18px; right: 1%; top: -4%; filter: blur(0.6px); opacity: 0.85; }
.cube-c .cube { animation-duration: 20s, 6s; }

/* the table and the match card tilt with the pointer, like a hologram */
.home-v2 .home-shot {
  transform-style: preserve-3d;
  transform: perspective(1300px) rotateY(calc(var(--mx) * -9deg)) rotateX(calc(var(--my) * 7deg));
  transition: transform 450ms cubic-bezier(.2, .7, .2, 1);
}
.home-v2 .hs-table, .home-v2 .hs-demo { animation-fill-mode: backwards !important; }
.home-v2 .hs-table { transform: rotate(-1.2deg) translateZ(0); }
.home-v2 .hs-demo { transform: rotate(1.5deg) translateZ(50px); }

/* game cards and Shields lean towards the pointer, with a sheen */
.home-games.is-in .home-game { animation-fill-mode: backwards; }
.home-v2 .home-game, .home-v2 .home-shield { transform-style: preserve-3d; will-change: transform; }
.home-v2 .home-game.is-tilting {
  transform: perspective(900px) rotateX(calc(var(--ty, 0) * -9deg)) rotateY(calc(var(--tx, 0) * 11deg)) translateY(-6px);
  transition: transform 120ms linear, border-color 220ms;
}
.home-v2 .home-shield.is-tilting {
  transform: perspective(600px) rotateX(calc(var(--ty, 0) * -14deg)) rotateY(calc(var(--tx, 0) * 16deg)) translateY(-6px);
  transition: transform 120ms linear, border-color 220ms;
}
.home-v2 .home-game::after, .home-v2 .home-shield::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 250ms;
  background: radial-gradient(420px circle at calc((var(--tx, 0) + 0.5) * 100%) calc((var(--ty, 0) + 0.5) * 100%), rgba(255, 255, 255, 0.22), transparent 45%);
}
.home-v2 .is-tilting::after { opacity: 1; }
.home-v2 .home-game-emblem svg, .home-v2 .home-game .home-play { transform: translateZ(30px); }

/* Shields spin in like coins, one after another */
.home-shield-emblem { perspective: 500px; }
.home-trophies.is-in .home-shield-emblem svg { animation: coin-in 1.3s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }
@keyframes coin-in { from { transform: rotateY(-540deg) scale(0.4); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
.home-shield:hover .home-shield-emblem svg { animation: coin-spin 900ms cubic-bezier(.2, .8, .2, 1); }
@keyframes coin-spin { to { transform: rotateY(360deg); } }

/* sections rise out of the page */
.home-reveal.is-waiting { opacity: 0; transform: perspective(1200px) rotateX(14deg) translateY(50px); transform-origin: 50% 100%; }
.home-reveal.is-in { transition: opacity 900ms cubic-bezier(.2, .7, .2, 1), transform 900ms cubic-bezier(.2, .7, .2, 1); }

/* tablets and phones: the stage stays, lighter */
@media (max-width: 900px) {
  .stage-pitch { width: 220vw; bottom: -30%; }
  .cube-a { left: auto; right: 6%; top: 2%; --s: 50px; }
  .cube-b { left: 4%; bottom: auto; top: 36%; --s: 40px; }
  .cube-c { display: none; }
  .home-v2 .hs-demo { transform: rotate(1.5deg); }
}
@media (max-width: 760px) {
  .cube-a { --s: 40px; top: 0; right: 2%; }
  .cube-b { --s: 34px; top: 30%; left: -2%; opacity: 0.9; }
  .stage-dust i:nth-child(n+12) { display: none; }
  .stage-beam { width: 80vw; }
  .home-v2 .hs-demo { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-pitch, .stage-beam, .stage-dust i, .cube, .cube-wrap::after,
  .home-trophies.is-in .home-shield-emblem svg, .home-shield:hover .home-shield-emblem svg { animation: none !important; }
  .stage-dust { display: none; }
  .home-v2 .home-shot, .cube-wrap, .stage-pitch-wrap { transform: none !important; }
  .cube { transform: rotateX(-24deg) rotateY(32deg); }
  .home-reveal.is-waiting { transform: none; }
}
@media (min-width: 901px) { .cube-b { left: 47%; bottom: -2%; } }
.home-reveal.is-waiting.is-in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .home-v2 .home-hero-text { padding-top: 62px; }
  .cube-a { --s: 40px; top: 4px; right: auto; left: calc(50% + 14px); }
  .cube-b { --s: 34px; top: 12px; left: calc(50% - 52px); bottom: auto; }
}

/* =========================================================================
   Build 1_162 — the stadium.
   Matt, 14 Nov: "remove the floating dice … it all wobbles … a spinning 3D
   stadium, two dice that bounce in the middle of the pitch and create a
   score". No more pointer wobble or floating dice. Beside the headline: a 3D
   stadium (pitch, goals, four stands of crowd, floodlight towers) turning
   slowly like a camera circling the ground. Two dice drop onto the centre
   circle, bounce, tumble and settle on the score; a TV-style scoreboard pops
   up. Built from page elements in 3D: no images, no libraries.
   ========================================================================= */
.cube-wrap, .home-cubes { display: none !important; }
.home-v2 .home-hero > .home-arena { position: relative; z-index: 2; }
/* calmer reveals: a simple fade-up, no 3D swing */
.home-reveal.is-waiting { transform: translateY(28px); }

.home-arena { --k: 1; display: flex; flex-direction: column; align-items: center; }
.arena-view {
  position: relative; width: 100%; height: 470px; perspective: 1500px; perspective-origin: 50% 18%;
}
.arena-view::after { /* floodlight glow over the ground */
  content: ''; position: absolute; inset: -10% -20% 0; pointer-events: none;
  background: radial-gradient(50% 45% at 50% 45%, rgba(255, 246, 210, 0.22), transparent 70%);
}
.arena-world {
  position: absolute; left: 50%; top: 54%; width: 0; height: 0; transform-style: preserve-3d;
  transform: scale(var(--k)) rotateX(58deg) rotateZ(-20deg);
  animation: arena-turn 90s linear infinite;
}
@keyframes arena-turn {
  from { transform: scale(var(--k)) rotateX(58deg) rotateZ(-20deg); }
  to   { transform: scale(var(--k)) rotateX(58deg) rotateZ(340deg); }
}
.arena-world > * { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }

.arena-ground {
  width: 760px; height: 940px; margin: -470px 0 0 -380px; border-radius: 90px;
  background: radial-gradient(60% 55% at 50% 50%, #1E5E3A 0%, #123A25 70%, #0B2618 100%);
  box-shadow: 0 0 0 10px #0E2E1D, 0 40px 90px rgba(0, 0, 0, 0.45);
}
.arena-pitch {
  width: 360px; height: 540px; margin: -270px 0 0 -180px; transform: translateZ(1px);
  background: repeating-linear-gradient(0deg, #2E9457 0 54px, #278650 54px 108px);
  box-shadow: 0 0 0 16px #278650, 0 0 70px rgba(255, 240, 180, 0.30);
}
.arena-pitch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.arena-goal {
  width: 52px; height: 18px; margin-left: -26px; transform-origin: 50% 100%;
  border: 2px solid #fff; border-bottom: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 1px, transparent 1px 6px);
}
.goal-n { margin-top: -288px; transform: translateZ(1px) rotateX(-90deg); }
.goal-s { margin-top: 270px; transform-origin: 50% 0; transform: translateZ(1px) rotateX(90deg); border-top: 0; border-bottom: 2px solid #fff; }

/* the crowd: tiers of colourful dots */
.arena-stand {
  background-color: #1B2F24;
  background-image:
    radial-gradient(circle, #F2E8D0 1.3px, transparent 1.8px),
    radial-gradient(circle, #D9493A 1.3px, transparent 1.8px),
    radial-gradient(circle, #3B6FD8 1.3px, transparent 1.8px),
    radial-gradient(circle, #F5BE1E 1.2px, transparent 1.7px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 14px);
  background-size: 7px 7px, 11px 9px, 13px 10px, 17px 12px, 100% 14px;
  background-position: 0 0, 3px 4px, 6px 2px, 9px 7px, 0 0;
  border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 6px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45);
}
.st-n, .st-s { width: 452px; height: 130px; margin-left: -226px; }
.st-n { margin-top: -440px; transform-origin: 50% 100%; transform: rotateX(-58deg); }
.st-s { margin-top: 310px;  transform-origin: 50% 0;    transform: rotateX(58deg); }
.st-w, .st-e { width: 130px; height: 592px; margin-top: -296px; }
.st-w { margin-left: -346px; transform-origin: 100% 50%; transform: rotateY(58deg); }
.st-e { margin-left: 216px;  transform-origin: 0 50%;    transform: rotateY(-58deg); }
.arena-stand::after { /* the roof edge */
  content: ''; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}

/* floodlight towers at the corners (two crossed planes, so they never vanish edge-on) */
.arena-tower { width: 0; height: 0; }
.tw-1 { margin: -330px 0 0 -250px; } .tw-2 { margin: -330px 0 0 250px; }
.tw-3 { margin: 330px 0 0 -250px; }  .tw-4 { margin: 330px 0 0 250px; }
.arena-tower i {
  position: absolute; left: -4px; bottom: 0; width: 8px; height: 210px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, #C9D2CC, #7E8C84);
}
.arena-tower i::before { /* the lamp head */
  content: ''; position: absolute; left: -18px; top: -14px; width: 44px; height: 22px; border-radius: 4px;
  background: linear-gradient(180deg, #FFFDF0, #FFE9A0); box-shadow: 0 0 22px 8px rgba(255, 240, 180, 0.75), 0 0 70px 20px rgba(255, 240, 180, 0.35);
}
.tw-a { transform: rotateX(-90deg); }
.tw-b { transform: rotateZ(90deg) rotateX(-90deg); }

/* the dice */
.ad { --s: 54px; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); }
.ad-home { left: -50px; } .ad-away { left: 50px; }
.ad-shadow {
  position: absolute; inset: 4px; border-radius: 30%; transform: translateZ(1.5px);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
}
.ad-body { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--s) / 2)); }
.ad-cube { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateZ(var(--rz, 0deg)); }
.ad-home .ad-cube { --rz: -14deg; } .ad-away .ad-cube { --rz: 22deg; }
.ad-face {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16%;
  font: 800 24px/1 var(--cond); color: #10261A; backface-visibility: hidden;
  background: linear-gradient(145deg, #FFFFFF 0%, #EEF1EC 60%, #D6DCD3 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), inset -4px -6px 10px rgba(0, 0, 0, 0.10);
}
.ad-face.f1 { transform: translateZ(calc(var(--s) / 2)); }
.ad-face.f2 { transform: rotateX(180deg) translateZ(calc(var(--s) / 2)); }
.ad-face.f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.ad-face.f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.ad-face.f5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.ad-face.f6 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.is-rolling .ad-face { background: linear-gradient(145deg, #FFE48A 0%, #F5BE1E 55%, #D99A06 100%); }
.is-landed .ad-face.f1 { background: linear-gradient(145deg, #183A27, #0B1A12); color: #FFD965; box-shadow: inset 0 0 0 2px #F5BE1E, 0 0 18px rgba(255, 217, 101, 0.6); }
.is-landed .ad-face { font-size: 30px; }

.is-rolling .ad-body { animation: ad-bounce 1.5s cubic-bezier(.3, 0, .7, 1) both; }
.is-rolling .ad-away .ad-body { animation-delay: 60ms; }
.is-rolling .ad-cube { animation: ad-tumble 1.5s cubic-bezier(.2, .6, .3, 1) both; }
.is-rolling .ad-away .ad-cube { animation-name: ad-tumble-b; }
.is-rolling .ad-shadow { animation: ad-shadow 1.5s cubic-bezier(.3, 0, .7, 1) both; }
@keyframes ad-bounce {
  0%   { transform: translateZ(330px); }
  34%  { transform: translateZ(27px); }
  50%  { transform: translateZ(120px); }
  64%  { transform: translateZ(27px); }
  75%  { transform: translateZ(55px); }
  84%  { transform: translateZ(27px); }
  91%  { transform: translateZ(36px); }
  100% { transform: translateZ(27px); }
}
@keyframes ad-tumble {
  0%   { transform: rotateX(-260deg) rotateY(180deg) rotateZ(90deg); }
  64%  { transform: rotateX(-30deg) rotateY(25deg) rotateZ(-20deg); }
  100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(var(--rz, 0deg)); }
}
@keyframes ad-tumble-b {
  0%   { transform: rotateX(240deg) rotateY(-200deg) rotateZ(-60deg); }
  64%  { transform: rotateX(28deg) rotateY(-30deg) rotateZ(40deg); }
  100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(var(--rz, 0deg)); }
}
@keyframes ad-shadow {
  0% { opacity: 0.1; transform: translateZ(1.5px) scale(0.4); } 34% { opacity: 1; transform: translateZ(1.5px) scale(1.05); }
  50% { opacity: 0.45; transform: translateZ(1.5px) scale(0.7); } 64%, 84%, 100% { opacity: 1; transform: translateZ(1.5px) scale(1); }
}

/* the TV-style scoreboard */
.arena-board {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 0; margin: 0 0 -16px;
  border-radius: 12px; overflow: hidden; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.8);
  font: 700 18px/1 var(--cond); letter-spacing: 0.06em; color: #fff;
}
.ab-team { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: #10261A; }
.ab-team .hs-flag { margin: 0; }
.ab-score { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--gold-grad); color: #1A1405; font-size: 26px; font-weight: 800; }
.ab-score i { font-style: normal; opacity: 0.6; }
.ab-tag {
  position: absolute; left: 50%; bottom: -1px; transform: translate(-50%, 100%); padding: 3px 10px 4px; border-radius: 0 0 8px 8px;
  background: #fff; color: #10261A; font: 700 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
}
.arena-board { overflow: visible; }
.arena-board .ab-team:first-child { border-radius: 12px 0 0 12px; }
.arena-board .ab-away { border-radius: 0 12px 12px 0; }
.arena-board.is-pop .ab-score { animation: ab-pop 520ms cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ab-pop { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }

.arena-ctrl { width: min(420px, 100%); margin-top: -18px; position: relative; z-index: 3; text-align: center; }
.arena-ctrl .hs-demo-line {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: rgba(10, 30, 20, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-weight: 600; font-size: 15.5px;
}
.home-arena[data-result="away"] .hs-demo-line { color: #FFD965; }
.arena-ctrl .hs-roll { width: 100%; }

/* the live table, below the hero */
.home-live {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; margin: 0 0 96px;
}
.home-live-text h2 { font-size: clamp(30px, 3.2vw, 40px); color: #fff; margin: 0 0 12px; }
.home-live-text p:last-child { color: rgba(255, 255, 255, 0.88); font-size: 17px; margin: 0; }
.home-live .hs-table { transform: none; animation: none !important; }

@media (max-width: 1100px) { .home-arena { --k: 0.85; } .arena-view { height: 420px; } }
@media (max-width: 900px) {
  .home-arena { --k: 0.78; } .arena-view { height: 400px; }
  .home-live { grid-template-columns: 1fr; gap: 20px; text-align: center; }
}
@media (max-width: 760px) {
  .home-v2 .home-hero-text { padding-top: 0; }
  .home-arena { --k: 0.52; } .arena-view { height: 300px; }
  .arena-board { font-size: 15px; } .ab-team { padding: 8px 10px; } .ab-score { font-size: 22px; padding: 7px 12px; }
  .home-live { margin-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .arena-world { animation: none; }
  .is-rolling .ad-body, .is-rolling .ad-cube, .is-rolling .ad-shadow, .arena-board.is-pop .ab-score { animation: none !important; }
}
.home-v2 .home-hero > .home-hero-text { z-index: 3; }
.home-arena { --k: 0.64; }
.arena-view { height: 430px; }
.arena-ground {
  width: 640px; height: 820px; margin: -410px 0 0 -320px; border-radius: 70px;
  background: radial-gradient(60% 55% at 50% 50%, #1E5E3A 0%, #15452B 75%, #103823 100%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06), 0 30px 70px rgba(0, 0, 0, 0.35);
}
.arena-board { margin-bottom: -6px; }
.arena-ctrl { margin-top: -6px; }
@media (max-width: 1100px) { .home-arena { --k: 0.56; } .arena-view { height: 380px; } }
@media (max-width: 900px)  { .home-arena { --k: 0.62; } .arena-view { height: 400px; } }
@media (max-width: 760px)  { .home-arena { --k: 0.44; } .arena-view { height: 290px; } }
.home-arena { --k: 0.7; }
.ad { --s: 70px; }
.ad-home { left: -62px; } .ad-away { left: 62px; }
.ad-face { font-size: 30px; } .is-landed .ad-face { font-size: 38px; }
.is-rolling .ad-body { animation-name: ad-bounce-l; }
@keyframes ad-bounce-l {
  0% { transform: translateZ(380px); } 34% { transform: translateZ(35px); } 50% { transform: translateZ(140px); }
  64% { transform: translateZ(35px); } 75% { transform: translateZ(68px); } 84% { transform: translateZ(35px); }
  91% { transform: translateZ(45px); } 100% { transform: translateZ(35px); }
}
@media (max-width: 1100px) { .home-arena { --k: 0.6; } }
@media (max-width: 900px)  { .home-arena { --k: 0.66; } }
@media (max-width: 760px)  { .home-arena { --k: 0.46; } }

/* =========================================================================
   Build 1_163 — the real 3D stadium (three.js) as the hero's backdrop.
   No pitch drawing behind the home page any more: a night sky that fades into
   the club green further down. The stadium fills the top of the page and
   turns slowly; the headline sits on the left, and the scoreboard, the dice
   landing and the league table sit on the right, all in one screen, so the
   table's movement is seen as the dice land.
   ========================================================================= */
body:has(.home-v2) .pitch { display: none; }
body:has(.home-v2) {
  background: linear-gradient(180deg, #050C16 0px, #0A1A2A 520px, #0E2E2A 900px, #165536 1400px, #1A6440 1900px, #145534 100%);
  background-attachment: scroll;
}
.home-stage, .home-cubes { display: none !important; }
.arena-view { display: none !important; }

.home-s3 { position: relative; }
.home-s3 .s3-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.s3-fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; gap: 14px; }
.home-s3.is-flat .s3-fallback { display: flex; }
.s3-fallback .die { width: 64px; height: 64px; font-size: 24px; border-radius: 14px; border-color: #fff; }
.s3-fallback .die.is-rolled { font-size: 34px; background: #0B1A12; color: #fff; }
.s3-fallback .hs-dash { color: rgba(255, 255, 255, 0.6); font-size: 28px; }

.arena-table { width: 100%; }
.arena-table.hs-table { transform: none !important; animation: none !important; padding: 12px 14px 8px; }

@media (min-width: 901px) {
  .home-v2 .home-hero { min-height: 700px; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; padding: 8px 0 30px; margin-bottom: 72px; }
  .home-v2 .home-hero > .home-hero-text { align-self: center; }
  .home-v2 .home-hero > .home-arena { position: static; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; }
  /* the stadium spans the whole window behind the hero */
  .home-s3 {
    position: absolute; z-index: 0; top: -48px; bottom: -40px; left: 50%; width: 100vw; transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  }
  .home-s3::after { /* a soft shade behind the headline so it always reads */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(4, 10, 18, 0.78) 0%, rgba(4, 10, 18, 0.45) 30%, rgba(4, 10, 18, 0) 52%);
  }
  .arena-board { position: relative; z-index: 3; margin: 6px 0 0; align-self: flex-end; }
  .arena-table { position: relative; z-index: 3; max-width: 470px; margin-top: auto; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .arena-ctrl { position: relative; z-index: 3; width: 470px; max-width: 100%; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; }
  .arena-ctrl .hs-demo-line { margin: 0; }
  .arena-ctrl .hs-roll { width: auto; padding-left: 26px; padding-right: 26px; }
  .arena-ctrl .hs-demo-more { grid-column: 1 / -1; text-align: right; margin-top: 0; }
  .s3-fallback { left: 55%; }
}
@media (max-width: 900px) {
  .home-v2 .home-hero { gap: 18px; }
  .home-arena { position: relative; width: 100%; }
  .home-s3 { height: 360px; width: calc(100% + 40px); margin: 0 -20px; border-radius: 0; }
  .arena-board { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; margin: 0; white-space: nowrap; }
  .arena-table { margin-top: -28px; position: relative; z-index: 3; }
  .arena-ctrl { margin-top: 12px; width: 100%; }
}
@media (max-width: 760px) {
  .home-s3 { height: 300px; width: calc(100% + 32px); margin: 0 -16px; }
  .arena-table .hs-form { display: none; }
}

/* =========================================================================
   Build 1_166 — the lower home page, made immersive.
   A living night-sky backdrop with drifting coloured light (gold, teal,
   purple, emerald) and fine grain; a turning trophy cabinet lit in the colour
   of the Shield at the front; a Roll of Honour that counts up; "How it works"
   as three live demos; and membership as a gold-foil season ticket.
   ========================================================================= */
@property --rot { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --cab-c { syntax: '<color>'; inherits: true; initial-value: #3B6FD8; }

body:has(.home-v2) {
  background: linear-gradient(180deg, #040A14 0px, #071427 700px, #0A1B30 1400px, #0B2230 2100px, #0A2A24 2900px, #061711 100%);
  background-attachment: scroll;
}
.home-v2 > :not(.home-aura) { position: relative; z-index: 1; }
.home-aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.home-aura i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.au1 { right: -20vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(245, 190, 30, 0.22), transparent 70%); animation: au-a 38s ease-in-out infinite alternate; }
.au2 { left: -25vmax; top: 20vh; background: radial-gradient(closest-side, rgba(24, 190, 170, 0.20), transparent 70%); animation: au-b 46s ease-in-out infinite alternate; }
.au3 { right: -15vmax; bottom: -25vmax; background: radial-gradient(closest-side, rgba(126, 87, 230, 0.20), transparent 70%); animation: au-c 52s ease-in-out infinite alternate; }
.au4 { left: 10vw; bottom: -35vmax; background: radial-gradient(closest-side, rgba(36, 180, 100, 0.22), transparent 70%); animation: au-a 60s ease-in-out infinite alternate-reverse; }
@keyframes au-a { to { transform: translate3d(-12vw, 14vh, 0) scale(1.15); } }
@keyframes au-b { to { transform: translate3d(18vw, -10vh, 0) scale(0.9); } }
@keyframes au-c { to { transform: translate3d(-20vw, -16vh, 0) scale(1.2); } }
.au-grain {
  position: absolute; inset: -50%; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the free game cards: dark glass on the night sky */
.home-v2 .home-game { background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)) !important; border-color: rgba(255, 255, 255, 0.16) !important; }
.home-v2 .home-game-euro { box-shadow: inset 0 3px 0 #3B6FD8, var(--lift); }
.home-v2 .home-game-intl { box-shadow: inset 0 3px 0 #8E5BD8, var(--lift); }
.home-v2 .home-game:first-child { box-shadow: inset 0 3px 0 #2FB062, var(--lift); }

/* ---------------------------------------------------- trophy cabinet --- */
.home-v2 .home-trophies { position: relative; }
.home-v2 .home-trophies::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 10%; width: 120vw; height: 900px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(40% 45% at 35% 40%, color-mix(in srgb, var(--cab-c) 30%, transparent), transparent 70%);
  transition: --cab-c 1.2s ease;
}
.cab { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 28px; align-items: center; margin: 0 0 56px; transition: --rot 1.1s cubic-bezier(.22, .8, .2, 1), --cab-c 1.2s ease; }
.cab-room { position: relative; height: 400px; perspective: 1200px; perspective-origin: 50% 28%; }
.cab-ring {
  position: absolute; left: 50%; top: 48%; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateX(-7deg) rotateY(calc(var(--rot) * -72deg));
}
.cab-item {
  position: absolute; width: 170px; height: 250px; margin: -125px 0 0 -85px; transform-style: preserve-3d; cursor: pointer;
  transform: rotateY(calc(var(--i) * 72deg)) translateZ(250px);
}
.cab-item > * { transform: rotateY(calc((var(--rot) - var(--i)) * 72deg)); }
.cab-emblem { position: absolute; left: 50%; top: 20px; margin-left: -60px; width: 120px; display: block; transition: filter 0.6s, scale 0.6s; filter: brightness(0.55) saturate(0.6); scale: 0.82; }
.cab-emblem svg { width: 120px; height: 144px; display: block; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.55)); animation: cab-bob 4.5s ease-in-out infinite; }
.cab-item:nth-child(2n) .cab-emblem svg { animation-delay: -2s; }
@keyframes cab-bob { 50% { translate: 0 -8px; } }
.cab-plinth {
  position: absolute; left: 50%; bottom: 0; margin-left: -70px; width: 140px; height: 54px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #2A3A40 0%, #142024 60%, #0B1418 100%);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--c) 70%, white), 0 20px 30px -12px rgba(0, 0, 0, 0.8);
  display: grid; place-items: center; transition: filter 0.6s;
  filter: brightness(0.6);
}
.cab-plinth b { font: 700 13px/1 var(--cond); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.cab-spot {
  position: absolute; left: 50%; top: -120px; margin-left: -90px; width: 180px; height: 330px; pointer-events: none; opacity: 0; transition: opacity 0.8s;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 0%, transparent), color-mix(in srgb, var(--c) 40%, transparent) 70%, transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); filter: blur(4px); mix-blend-mode: screen;
}
.cab-item.is-active .cab-emblem { filter: none; scale: 1.08; }
.cab-item.is-active .cab-plinth { filter: none; }
.cab-item.is-active .cab-spot { opacity: 1; }
.cab-floor {
  position: absolute; left: 50%; bottom: 18px; width: 640px; height: 120px; margin-left: -320px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cab-c) 32%, transparent), transparent 75%);
}
.cab-panel {
  padding: 26px 26px 22px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 3px 0 0 var(--cab-c), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cab-panel.is-fresh > :not(.cab-nav) { animation: cab-fresh 0.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cab-fresh { from { opacity: 0; transform: translateY(10px); } }
.cab-tag { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; font: 700 12px/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, 0.14); }
.cab-tag.is-free { background: var(--gold-grad); color: #1A1405; }
.cab-panel h3 { font-size: clamp(26px, 2.6vw, 34px); color: #fff; margin: 0 0 8px; }
.cab-line { color: rgba(255, 255, 255, 0.84); font-size: 15.5px; margin: 0 0 16px; min-height: 4.5em; }
.cab-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.cab-stats div { padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
.cab-stats dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.cab-stats dd { margin: 4px 0 0; font: 700 18px/1.15 var(--cond); color: #fff; }
.cab-nav { display: flex; align-items: center; gap: 8px; }
.cab-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.cab-arrow:hover { background: rgba(255, 255, 255, 0.16); }
.cab-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: width 0.4s, background 0.4s; }
.cab-dot[aria-current="true"] { width: 26px; background: var(--cab-c); }

/* ------------------------------------------------- live roll of honour --- */
.home-v2 .home-honours {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)); color: #fff;
  border: 1px solid rgba(255, 217, 101, 0.28); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.home-v2 .home-honours h3 { color: #fff; }
.home-v2 .home-honours .home-eyebrow { color: #FFD965; }
.home-v2 .home-honours-text p:not(.hh-total):last-of-type, .home-v2 .home-honours-text > p { color: rgba(255, 255, 255, 0.82); }
.hh-total { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 0 !important; }
.hh-total-num { font: 800 clamp(44px, 5vw, 60px)/1 var(--cond); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hh-total-of { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.home-v2 .home-honours-list li { background: rgba(0, 0, 0, 0.28); color: #fff; opacity: 0; transform: translateX(-24px); transition: opacity 0.7s, transform 0.7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d) * 140ms); }
.home-v2 .home-honours.is-live .home-honours-list li { opacity: 1; transform: none; }
.home-v2 .home-honours-list li:first-child { background: linear-gradient(90deg, rgba(245, 190, 30, 0.22), rgba(0, 0, 0, 0.2)); box-shadow: inset 0 0 0 1px rgba(255, 217, 101, 0.45); }
.home-v2 .hh-pos, .home-v2 .hh-pts small { color: rgba(255, 255, 255, 0.6); }

/* ------------------------------------------- how it works: live demos --- */
.home-v2 .home-how3 { padding: 40px 0 20px; margin-bottom: 72px; }
.home-v2 .home-how3::before {
  background: radial-gradient(60% 70% at 50% 40%, rgba(24, 190, 170, 0.16), transparent 70%) !important; box-shadow: none !important;
}
.home-v2 .home-how3 .home-section-head h2 { color: #fff; }
.home-v2 .home-how3 .home-eyebrow { color: #6FE3D2; }
.hw3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hw3-card {
  position: relative; padding: 22px 22px 22px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}
.hw3-card h3 { position: relative; font-size: 24px; color: #fff; margin: 6px 0 6px; }
.hw3-card p { position: relative; margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 15.5px; }
.hw3-n { position: absolute; right: 14px; top: 132px; font: 800 74px/1 var(--cond); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 217, 101, 0.45); }
.hw3-demo { position: relative; height: 128px; margin: 0 0 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* 1: teams pop in */
.hw3-teams { flex-wrap: wrap; align-content: center; gap: 6px; padding: 10px; }
.hw3-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fff; color: #10261A; font: 600 13px/1 var(--sans); animation: hw3-chip 6s cubic-bezier(.2, 1.4, .4, 1) infinite; animation-delay: calc(var(--k) * 0.28s); }
.hw3-chip .hs-flag { margin: 0; width: 16px; height: 12px; }
.hw3-chip i { width: 9px; height: 9px; border-radius: 50%; }
.hw3-chip .seed-g { background: #2FB062; } .hw3-chip .seed-a { background: #F2B705; } .hw3-chip .seed-r { background: #D9493A; }
@keyframes hw3-chip { 0% { opacity: 0; transform: scale(0.4) translateY(10px); } 8%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-6px); } }
/* 2: the game's own dice */
.hw3-dice { gap: 14px; }
.hw3-dice .die { width: 58px; height: 58px; font-size: 20px; border-radius: 13px; border-color: #fff; }
.hw3-dice .die.is-rolled { font-size: 30px; background: #0B1A12; color: #FFD965; border-color: #F5BE1E; }
.hw3-dash { color: rgba(255, 255, 255, 0.5); font-size: 26px; }
/* 3: a table that re-sorts itself */
.hw3-table { display: block; padding: 10px 12px; }
.hw3-row { position: absolute; left: 12px; right: 12px; top: calc(10px + var(--r) * 27px); height: 24px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 6px; background: #fff; color: #10261A; font: 600 13px/1 var(--sans); }
.hw3-row b { width: 12px; color: #8A958D; } .hw3-row .hs-flag { margin: 0; width: 16px; height: 12px; } .hw3-row em { margin-left: auto; font-style: normal; font-weight: 800; }
.hw3-up { animation: hw3-up 6s cubic-bezier(.3, 1.2, .4, 1) infinite; }
.hw3-down { animation: hw3-down 6s cubic-bezier(.3, 1.2, .4, 1) infinite; }
@keyframes hw3-up { 0%, 30% { transform: none; background: #fff; } 40%, 80% { transform: translateY(-27px); background: #E5F6EB; } 90%, 100% { transform: none; background: #fff; } }
@keyframes hw3-down { 0%, 30% { transform: none; background: #fff; } 40%, 80% { transform: translateY(27px); background: #FCE9E6; } 90%, 100% { transform: none; background: #fff; } }

/* ------------------------------------------------- the season ticket --- */
.home-ticket-wrap { position: relative; margin: 0 0 40px; padding: 30px 0; }
.home-ticket-wrap::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 110vw; height: 700px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(40% 50% at 55% 50%, rgba(245, 190, 30, 0.22), transparent 70%);
}
.home-ticket {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 217, 101, 0.5), 0 0 60px -20px rgba(245, 190, 30, 0.45);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.home-ticket:hover { transform: translateY(-4px); }
.home-ticket::after { /* the foil shimmer */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.28) 48%, rgba(255, 255, 255, 0.05) 54%, transparent 62%);
  background-size: 260% 100%; animation: tk-shine 6s ease-in-out infinite;
}
@keyframes tk-shine { 0%, 40% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.tk-main {
  padding: 34px 36px; color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 12px),
    radial-gradient(80% 120% at 0% 0%, rgba(36, 180, 100, 0.25), transparent 60%),
    linear-gradient(135deg, #10301F 0%, #0A1E15 100%);
}
.tk-kicker { margin: 0 0 10px; font: 700 13px/1 var(--cond); letter-spacing: 0.2em; text-transform: uppercase; color: #FFD965; }
.tk-main h2 { font-size: clamp(30px, 3.2vw, 42px); color: #fff; margin: 0 0 18px; max-width: 18ch; }
.tk-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.tk-list li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, 0.88); font-size: 16px; }
.tk-list li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E"); }
.tk-list li::after { content: ''; position: absolute; left: 6px; top: 7px; width: 7px; height: 4px; border-left: 2px solid #1A1405; border-bottom: 2px solid #1A1405; transform: rotate(-45deg); }
.tk-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.tk-cta .home-play { margin: 0; }
.tk-cta .btn-quiet { min-height: 54px; border-radius: 14px; }
.tk-stub {
  position: relative; padding: 30px 26px; color: #1A1405; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(115deg, #E2A20B 0%, #FFE38E 26%, #F5BE1E 44%, #C98F0A 62%, #FFE79A 82%, #E9AC0F 100%);
  border-left: 2px dashed rgba(26, 20, 5, 0.45);
}
.tk-stub::before, .tk-stub::after { content: ''; position: absolute; left: -14px; width: 26px; height: 26px; border-radius: 50%; background: #0A1B30; }
.tk-stub::before { top: -13px; } .tk-stub::after { bottom: -13px; }
.tk-season { margin: 0 0 10px; font: 700 13px/1 var(--cond); letter-spacing: 0.2em; text-transform: uppercase; }
.tk-price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.tk-from { font-size: 14px; font-weight: 600; } .tk-num { font: 800 56px/1 var(--cond); } .tk-per { font-size: 15px; font-weight: 600; }
.tk-note { margin: 4px 0 14px; font-size: 14px; }
.tk-seat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.tk-seat dt { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.tk-seat dd { margin: 2px 0 0; font: 700 16px/1.1 var(--cond); }
.tk-barcode { display: block; height: 44px; border-radius: 3px; background: repeating-linear-gradient(90deg, #1A1405 0 2px, transparent 2px 4px, #1A1405 4px 7px, transparent 7px 8px, #1A1405 8px 9px, transparent 9px 12px); }

/* tablets and phones */
@media (max-width: 1000px) {
  .cab { grid-template-columns: 1fr; }
  .cab-room { height: 340px; }
  .hw3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .cab-room { height: 290px; perspective: 900px; }
  .cab-item { width: 120px; height: 200px; margin: -100px 0 0 -60px; transform: rotateY(calc(var(--i) * 72deg)) translateZ(150px); }
  .cab-emblem { width: 90px; margin-left: -45px; } .cab-emblem svg { width: 90px; height: 108px; }
  .cab-plinth { width: 108px; margin-left: -54px; height: 46px; }
  .cab-floor { width: 380px; margin-left: -190px; }
  .cab-stats dd { font-size: 15px; }
  .home-ticket { grid-template-columns: 1fr; }
  .tk-main { padding: 26px 22px; }
  .tk-stub { border-left: 0; border-top: 2px dashed rgba(26, 20, 5, 0.45); }
  .tk-stub::before, .tk-stub::after { top: -14px; left: auto; bottom: auto; }
  .tk-stub::before { left: -13px; } .tk-stub::after { right: -13px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-aura i, .cab-emblem svg, .hw3-chip, .hw3-up, .hw3-down, .home-ticket::after { animation: none !important; }
  .cab { transition: none; }
}

/* ===== Build 1_167: grab-to-spin stadium ===== */
.home-s3 .s3-canvas { cursor: grab; }
.home-s3.is-grabbing .s3-canvas { cursor: grabbing; }
.s3-hint {
  position: absolute; z-index: 2; left: 12px; bottom: 12px; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px;
  font: 600 13px/1 "Barlow", Arial, sans-serif; letter-spacing: 0.02em; color: #fff;
  background: rgba(6, 14, 24, 0.62); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.s3-hint i { width: 22px; height: 14px; position: relative; }
.s3-hint i::before, .s3-hint i::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; border: solid #FFD965; border-width: 0 0 2px 2px; transform: translateY(-50%) rotate(45deg); }
.s3-hint i::before { left: 0; animation: s3-nudge 1.8s ease-in-out infinite; }
.s3-hint i::after { right: 0; transform: translateY(-50%) rotate(-135deg); animation: s3-nudge 1.8s ease-in-out infinite reverse; }
@keyframes s3-nudge { 0%, 100% { margin-left: 0; } 50% { margin-left: 3px; } }
.s3-hint.is-gone { opacity: 0; transform: translateY(6px); }
.home-s3.is-flat .s3-hint { display: none; }
@media (min-width: 901px) { .s3-hint { left: auto; right: calc(50% - min(50vw, 720px) + 520px); bottom: 26%; } }
@media (prefers-reduced-motion: reduce) { .s3-hint i::before, .s3-hint i::after { animation: none; } }

/* ===== Build 1_167: "build a league" demo and the Nation Challenge explained ===== */
.home-v2 .home-builder, .home-v2 .home-nc { position: relative; margin: 0 0 84px; }
.home-v2 .home-builder::before, .home-v2 .home-nc::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 0; width: 120vw; height: 100%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(45% 60% at 30% 55%, rgba(47, 176, 98, 0.18), transparent 70%);
}
.home-v2 .home-nc::before { background: radial-gradient(45% 60% at 70% 50%, rgba(217, 73, 58, 0.16), transparent 70%), radial-gradient(35% 50% at 20% 40%, rgba(126, 87, 230, 0.16), transparent 70%); }
.home-v2 .home-builder .home-eyebrow { color: #7BE3A4; }
.home-v2 .home-nc .home-eyebrow { color: #FF9C8C; }

/* --- the league builder --- */
.lb { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.lb-form, .lb-fix, .lb-table {
  border-radius: 20px; padding: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lb-k { margin: 0 0 8px; font: 700 12px/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); display: flex; justify-content: space-between; gap: 8px; }
.lb-k2, .lb-count { color: #FFD965; letter-spacing: 0.06em; }
.lb-input {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; margin: 0 0 8px; border-radius: 10px;
  background: #fff; color: #10261A; font: 600 15.5px/1.2 var(--sans); border: 2px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.lb-name { margin-bottom: 18px; font-weight: 700; }
.lb-input.is-typing { border-color: #F5BE1E; box-shadow: 0 0 0 4px rgba(245, 190, 30, 0.25); }
.lb-input.is-typing .lb-text::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: #10261A; animation: lb-caret 0.9s steps(1) infinite; }
@keyframes lb-caret { 50% { opacity: 0; } }
.lb-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-teams { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: lbt; }
.lb-team { min-height: 36px; padding: 6px 10px; font-size: 14.5px; margin-bottom: 6px; background: rgba(255, 255, 255, 0.86); }
.lb-team::before { counter-increment: lbt; content: counter(lbt); width: 14px; font-size: 12px; color: #8A958D; }
.lb-crest { flex: none; width: 18px; height: 20px; border-radius: 4px 4px 9px 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); transform: scale(0); transition: transform 0.45s cubic-bezier(.2, 1.6, .4, 1); }
.lb-team.is-filled .lb-crest, .lb-row .lb-crest { transform: none; }
.lb-btn {
  display: block; text-align: center; padding: 12px; border-radius: 12px; font: 800 16px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.55); transition: background 0.3s, color 0.3s, transform 0.2s;
}
.lb.is-going .lb-btn, .lb.is-built .lb-btn { background: var(--gold-grad); color: #1A1405; }
.lb.is-going:not(.is-built) .lb-btn { animation: lb-press 0.6s ease; }
@keyframes lb-press { 30% { transform: scale(0.94); } 60% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(245, 190, 30, 0.2); } }
.lb-out { display: grid; gap: 16px; }
.lb-fix ul { list-style: none; margin: 0; padding: 0; min-height: 132px; }
.lb-fix li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px; margin: 0 0 6px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.28); color: #fff; font: 600 14.5px/1.2 var(--sans);
  animation: lb-in 0.5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--k) * 160ms);
}
@keyframes lb-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
.lb-fh { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-fa { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sc { display: inline-flex; gap: 4px; min-width: 64px; justify-content: center; }
.lb-sc i { font: 800 18px/1 var(--cond); font-style: normal; min-width: 26px; padding: 5px 0; border-radius: 6px; text-align: center; color: rgba(255, 255, 255, 0.6); }
.lb-sc.is-rolling i { background: #fff; color: #10261A; animation: lb-shake 0.14s linear infinite; }
.lb-sc.is-done i { background: var(--gold-grad); color: #1A1405; animation: lb-pop 0.45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes lb-shake { 50% { transform: rotate(-8deg) translateY(-2px); } }
@keyframes lb-pop { from { transform: scale(1.5); } }
.lb-table { padding: 14px 16px 16px; }
.lb-th, .lb-row { display: grid; grid-template-columns: 18px 20px minmax(0, 1fr) 30px 38px 38px; gap: 8px; align-items: center; }
.lb-th { padding: 0 10px 8px; font: 700 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.lb-th span:nth-child(2) { grid-column: 2 / 4; } .lb-th span:nth-child(n+3) { text-align: center; }
.lb-th span:first-child { display: none; }
.lb-rows { position: relative; height: calc(6 * 38px); }
.lb-row {
  position: absolute; left: 0; right: 0; top: calc(var(--r) * 38px); height: 34px; padding: 0 10px; border-radius: 8px; background: #fff; color: #10261A; font: 600 14px/1 var(--sans);
  transition: top 0.7s cubic-bezier(.3, 1.2, .4, 1), opacity 0.4s, transform 0.5s cubic-bezier(.2, .9, .3, 1.2);
  opacity: 0; transform: translateX(30px);
}
.lb.is-built .lb-row { opacity: 1; transform: none; }
.lb.is-built .lb-row:nth-child(2) { transition-delay: 0s, 0.08s, 0.08s; } .lb.is-built .lb-row:nth-child(3) { transition-delay: 0s, 0.16s, 0.16s; }
.lb.is-built .lb-row:nth-child(4) { transition-delay: 0s, 0.24s, 0.24s; } .lb.is-built .lb-row:nth-child(5) { transition-delay: 0s, 0.32s, 0.32s; }
.lb.is-built .lb-row:nth-child(6) { transition-delay: 0s, 0.4s, 0.4s; }
.lb-row b { color: #8A958D; font-size: 12px; }
.lb-row .lb-crest { width: 16px; height: 18px; }
.lb-tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row [data-c] { text-align: center; }
.lb-pts { font-weight: 800; }
.lb-cta { text-align: center; margin-top: 22px; }

/* --- Nation Challenge: Germany v San Marino --- */
.ncd { --tone: #8E5BD8; border-radius: 24px; padding: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.9); transition: --nc-c 0.8s; }
.ncd[data-n="sm"] { --tone: #D9493A; }
.ncd-tabs { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 18px; }
.ncd-tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); color: #fff; font: 700 17px/1 var(--cond); letter-spacing: 0.05em; text-transform: uppercase;
  transition: background 0.4s, border-color 0.4s, transform 0.3s;
}
.ncd-tab .hs-flag { width: 26px; height: 19px; margin: 0; border-radius: 3px; }
.ncd-tab[aria-selected="true"] { background: var(--tone); border-color: transparent; transform: scale(1.05); box-shadow: 0 10px 30px -10px var(--tone); }
.ncd-tab:focus-visible { outline: 3px solid #FFD965; outline-offset: 3px; }
.ncd-vs { font: 800 16px/1 var(--cond); color: rgba(255, 255, 255, 0.5); text-transform: uppercase; }
.ncd-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ncd-quiz { position: relative; padding: 18px; border-radius: 18px; background: #0B1A2A; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 3px 0 var(--tone); transition: box-shadow 0.6s; }
.ncd-quiz.is-in .ncd-q, .ncd-quiz.is-in .ncd-opts li { animation: cab-fresh 0.5s cubic-bezier(.2, .8, .2, 1) both; }
.ncd-quiz.is-in .ncd-opts li:nth-child(2) { animation-delay: 0.08s; } .ncd-quiz.is-in .ncd-opts li:nth-child(3) { animation-delay: 0.16s; }
.ncd-qhead { display: flex; align-items: center; gap: 10px; font: 700 13px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.ncd-qflag .hs-flag { width: 24px; height: 18px; margin: 0; border-radius: 3px; display: block; }
.ncd-timer { margin-left: auto; font: 800 20px/1 var(--cond); color: #FFD965; }
.ncd-timer i { font-style: normal; }
.ncd-bar { height: 6px; margin: 12px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.ncd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #F5BE1E, #FFD965); transform-origin: left; }
.ncd-q { margin: 0 0 14px; min-height: 2.6em; font: 700 21px/1.25 var(--sans); color: #fff; }
.ncd-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ncd-opts li { padding: 11px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font: 600 15.5px/1.2 var(--sans); transition: background 0.3s, border-color 0.3s; }
.ncd-opts li.is-right { background: rgba(47, 176, 98, 0.32); border-color: #2FB062; }
.ncd-opts li.is-right::after { content: ' \2713'; color: #7BE3A4; font-weight: 800; }
.ncd-eg { margin: 12px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.45); text-align: right; }
.ncd-facts { padding: 6px 4px; color: #fff; }
.ncd-k { margin: 0 0 8px; font: 700 12px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.ncd-lock { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); letter-spacing: 0.04em; text-transform: none; font-weight: 600; }
.ncd-meter { --lv: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 0 0 8px; }
.ncd-meter i { height: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); transition: background 0.5s; transition-delay: calc(var(--n) * 70ms); }
.ncd-meter i:nth-child(1) { --on: #8E5BD8; } .ncd-meter i:nth-child(2) { --on: #8E5BD8; } .ncd-meter i:nth-child(3) { --on: #2FB062; }
.ncd-meter i:nth-child(4) { --on: #F2B705; } .ncd-meter i:nth-child(5) { --on: #D9493A; } .ncd-meter i:nth-child(6) { --on: #D9493A; }
.ncd[data-n="de"] .ncd-meter i:nth-child(-n+1), .ncd[data-n="sm"] .ncd-meter i { background: var(--on); }
.ncd-diff { margin: 0 0 8px; font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.ncd-diff strong { font: 800 24px/1.1 var(--cond); color: #fff; letter-spacing: 0.02em; }
.ncd-line { margin: 0 0 18px; color: rgba(255, 255, 255, 0.85); font-size: 15.5px; min-height: 4.4em; }
.ncd-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 18px; }
.ncd-ladder span { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.4s, transform 0.4s, border-color 0.4s; }
.ncd-ladder b { font: 800 20px/1 var(--cond); color: #fff; }
.ncd-ladder small { font-size: 11px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.ncd-ladder span.is-on { background: var(--gold-grad); border-color: transparent; transform: translateY(-4px) scale(1.06); box-shadow: 0 12px 24px -10px rgba(245, 190, 30, 0.7); }
.ncd-ladder span.is-on b, .ncd-ladder span.is-on small { color: #1A1405; }
.ncd-pts { display: flex; align-items: center; gap: 14px; margin: 0; }
.ncd-pts-n { font: 800 clamp(46px, 5vw, 62px)/1 var(--cond); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 3ch; }
.ncd-pts-k { font-size: 13px; line-height: 1.35; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.72); }

@media (max-width: 700px) {
  .lb { grid-template-columns: minmax(0, 1fr); }
  .ncd-stage { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 701px) and (max-width: 900px) {
  .lb { gap: 14px; } .lb-form, .lb-fix, .lb-table { padding: 14px; }
  .lb-fix li { font-size: 13px; gap: 6px; } .lb-th, .lb-row { grid-template-columns: 14px 16px minmax(0, 1fr) 24px 32px 32px; gap: 6px; }
  .ncd-ladder small { font-size: 10px; }
}
@media (max-width: 520px) {
  .lb-form, .lb-fix, .lb-table { padding: 14px; }
  .lb-th, .lb-row { grid-template-columns: 14px 16px minmax(0, 1fr) 24px 32px 32px; gap: 6px; }
  .lb-fix li { font-size: 13px; gap: 6px; padding: 8px; }
  .lb-sc { min-width: 54px; } .lb-sc i { font-size: 16px; min-width: 22px; }
  .ncd { padding: 12px; } .ncd-tab { padding: 9px 13px; font-size: 15px; } .ncd-q { font-size: 18px; }
  .ncd-ladder small { font-size: 10px; } .ncd-ladder b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-input.is-typing .lb-text::after, .lb-sc.is-rolling i { animation: none; }
  .lb-row, .ncd-ladder span, .ncd-meter i { transition: none; }
}
.lb-fix ul:empty::before, .lb:not(.is-built) .lb-rows::before {
  content: 'Your fixtures appear here'; display: grid; place-items: center; height: 120px; border-radius: 12px;
  border: 1.5px dashed rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.4); font: 600 14px/1 var(--sans);
}
.lb:not(.is-built) .lb-rows::before { content: 'The table appears here'; height: 100%; }
.ncd-opts li.is-wrong { background: rgba(217, 73, 58, 0.3); border-color: #D9493A; }
.ncd-opts li.is-wrong::after { content: ' \2717'; color: #FF9C8C; font-weight: 800; }
@media (max-width: 900px) { .s3-hint { bottom: 40px; font-size: 12px; } }
@media (min-width: 901px) { .s3-hint { right: auto; bottom: auto; left: 47%; top: 76px; } }

/* ===== Build 1_169: the Nation Challenge Taster ===== */
.nct-cta { margin: 22px auto 0; text-align: center; max-width: 640px; }
.nct-cta p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.nct-shell { padding-top: 18px; padding-bottom: 40px; }
.nct-intro { max-width: 760px; margin: 0 auto; }
.nct-hero { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; }
.nct-hero h1 { margin: 4px 0 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; }
.nct-kicker { margin: 0; font: 700 13px/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #C0392B; }
.nct-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: nct; display: grid; gap: 10px; }
.nct-steps li { counter-increment: nct; position: relative; padding: 12px 14px 12px 52px; border-radius: 12px; background: rgba(16, 38, 26, 0.06); line-height: 1.45; }
.nct-steps li::before { content: counter(nct); position: absolute; left: 12px; top: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #10261A; color: #FFD965; font: 800 16px/1 var(--cond); }
.nct-steps strong { display: block; }
.nct-note { margin: 0 0 16px; font-size: 14px; opacity: 0.75; }
.nct-go { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nct-wait { max-width: 760px; margin: 0 auto; }
.nct-q { max-width: 760px; margin: 0 auto; }
.nct-q .ol-q-kicker { display: inline-flex; align-items: center; gap: 8px; }
.nct-q .ol-q-kicker .nc-flag-sm { width: 22px; height: 16px; }
.nct-reveal { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: rgba(245, 190, 30, 0.16); border: 1px solid rgba(245, 190, 30, 0.5); font-size: 16px; line-height: 1.45; }
.nct-gauntlet { margin-top: 16px; padding: 16px; border-radius: 16px; background: #0B1A2A; color: #fff; }
.nct-g-k { margin: 0 0 10px; font: 800 20px/1.2 var(--cond); letter-spacing: 0.02em; color: #FFD965; }
.nct-gauntlet ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.nct-gauntlet li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.nct-gauntlet li .nc-flag-sm { width: 30px; height: 22px; border-radius: 3px; }
.nct-gauntlet li strong { display: block; font-size: 15.5px; }
.nct-gauntlet li small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 13px; margin-top: 2px; }
.nct-lock { font-size: 18px; opacity: 0.8; }
.nct-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nct-actions .btn { flex: 1 1 240px; }
@media (max-width: 520px) {
  .nct-hero { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nct-go .btn { width: 100%; }
}
.btn.nct-join { background: var(--gold-grad); color: #1A1405; border-color: transparent; font-weight: 800; }
.btn.nct-join:hover { filter: brightness(1.05); }

/* ===== Build 1_170: stadium zoom and night/day switch ===== */
.s3-tools { position: absolute; z-index: 2; right: 12px; bottom: 40px; display: flex; gap: 8px; align-items: center; }
.s3-seg { display: inline-flex; border-radius: 999px; padding: 3px; background: rgba(6, 14, 24, 0.66); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.s3-btn { min-width: 34px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 700 14px/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.s3-btn:hover { background: rgba(255, 255, 255, 0.14); }
.s3-btn:focus-visible { outline: 2px solid #FFD965; outline-offset: 1px; }
.s3-btn[data-s3="in"], .s3-btn[data-s3="out"] { font-size: 19px; padding: 0; }
.s3-mode[aria-pressed="true"] { background: var(--gold-grad); color: #1A1405; }
.home-s3.is-flat .s3-tools { display: none; }
@media (min-width: 901px) {
  .s3-tools { right: auto; bottom: auto; left: 47%; top: 116px; }
  .home-s3.is-day::after { background: linear-gradient(90deg, rgba(4, 10, 18, 0.72) 0%, rgba(4, 10, 18, 0.38) 30%, rgba(4, 10, 18, 0) 52%); }
}
@media (max-width: 420px) { .s3-btn { height: 28px; min-width: 30px; padding: 0 8px; font-size: 12.5px; } .s3-hint { max-width: 46%; } }

/* ===== Build 1_170: the Taster banner (home games, Nation Challenge section, free International page) ===== */
.nct-banner {
  grid-column: 1 / -1; position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 20px 24px; border-radius: 22px; color: #fff; text-align: left;
  background: linear-gradient(120deg, #3A0F14 0%, #7A1B22 38%, #1F3F8A 100%);
  border: 1.5px solid rgba(255, 217, 101, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 190, 30, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.nct-banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, transparent 60%); background-size: 250% 100%;
  animation: nct-sheen 5.5s ease-in-out infinite;
}
@keyframes nct-sheen { 0%, 55% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.nct-b-flag .hs-flag { width: 86px; height: 64px; border-radius: 8px; margin: 0; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7); display: block; }
.nct-b-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px !important; }
.nct-b-tags span { padding: 3px 10px; border-radius: 999px; font: 800 11.5px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255, 255, 255, 0.16); color: #fff; }
.nct-b-tags .nct-b-new { background: var(--gold-grad); color: #1A1405; animation: nct-pulse 2.4s ease-in-out infinite; }
@keyframes nct-pulse { 50% { box-shadow: 0 0 0 6px rgba(245, 190, 30, 0.22); } }
.nct-banner h3 { margin: 0 0 4px; font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--cond); color: #fff; letter-spacing: 0.01em; }
.nct-banner p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 15.5px; line-height: 1.45; }
.nct-banner .nct-b-go { position: relative; z-index: 1; white-space: nowrap; font-size: 17px; padding-left: 26px; padding-right: 26px; }
.nct-cta { max-width: none; margin-top: 26px; }
.intl-landing > .nct-banner { margin: 0 0 26px; }
@media (max-width: 760px) {
  .nct-banner { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px; }
  .nct-b-flag .hs-flag { width: 60px; height: 45px; }
  .nct-banner .nct-b-go { grid-column: 1 / -1; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nct-banner::after, .nct-b-tags .nct-b-new { animation: none; } }

/* ===== Build 1_171: the Daily Challenge ===== */
.dc-shell { padding-top: 22px; padding-bottom: 48px; color: #fff; }
.dc-head { text-align: center; max-width: 820px; margin: 0 auto 18px; }
.dc-kicker { margin: 0 0 6px; font: 700 13px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #FFD965; }
.dc-head h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; color: #fff; text-wrap: balance; }
.dc-today { color: rgba(255, 255, 255, 0.6); }
.dc-sub { margin: 12px auto 0; max-width: 60ch; color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.dc-sub strong { color: #FFD965; font-variant-numeric: tabular-nums; }
.dc-champ { display: flex; align-items: center; gap: 14px; max-width: 720px; margin: 0 auto 22px; padding: 14px 18px; border-radius: 18px;
  background: linear-gradient(90deg, rgba(245, 190, 30, 0.22), rgba(245, 190, 30, 0.06)); border: 1px solid rgba(255, 217, 101, 0.5); }
.dc-cup { font-size: 34px; line-height: 1; }
.dc-champ small { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.dc-champ strong { color: #FFD965; font-size: 18px; }
.dc-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.dc-grid.is-playing { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.dc-card { padding: 22px; border-radius: 22px; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dc-card h2 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 28px); color: #fff; }
.dc-card p { color: rgba(255, 255, 255, 0.85); }
.dc-k { margin: 0 0 8px; font: 700 12px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65) !important; }
.dc-k strong { color: #fff; letter-spacing: 0.04em; }
.dc-link { border: 0; background: none; color: #FFD965; text-decoration: underline; cursor: pointer; font: inherit; text-transform: none; letter-spacing: 0; padding: 0 0 0 6px; }
.dc-rules { margin: 12px 0 18px; padding: 0; list-style: none; display: grid; gap: 6px; }
.dc-rules li { padding-left: 24px; position: relative; color: rgba(255, 255, 255, 0.86); }
.dc-rules li::before { content: '\2713'; position: absolute; left: 0; color: #7BE3A4; font-weight: 800; }
.dc-go { width: 100%; justify-content: center; font-size: 18px; }
.dc-join .btn { width: 100%; justify-content: center; margin: 6px 0 4px; }
.dc-streak { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 140, 50, 0.18); border: 1px solid rgba(255, 140, 50, 0.5); color: #FFC48A !important; font-weight: 700; }
.dc-score { display: flex; align-items: baseline; gap: 14px; margin: 0 0 6px; }
.dc-score strong { font: 800 clamp(52px, 7vw, 72px)/1 var(--cond); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dc-score span { font: 700 20px/1 var(--cond); color: #fff; letter-spacing: 0.04em; }
.dc-pos { font-size: 17px; }
.dc-pos strong { color: #FFD965; }
.dc-back { font-size: 14px; opacity: 0.8; }
.dc-field { display: grid; gap: 6px; margin: 10px 0 12px; }
.dc-field span { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.dc-field input { font: 600 18px/1.2 var(--sans); padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.2); background: #fff; color: #10261A; }
.dc-field input:focus { outline: none; border-color: #F5BE1E; box-shadow: 0 0 0 4px rgba(245, 190, 30, 0.25); }
.dc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dc-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dc-board-head span { color: rgba(255, 255, 255, 0.65); font-size: 14px; }
.dc-cols, .dc-row-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) 54px 64px auto; gap: 8px; align-items: center; }
.dc-cols { padding: 6px 12px; font: 700 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.dc-cols span:nth-child(n+3) { text-align: right; }
.dc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dc-row-item { padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.92); color: #10261A; font: 600 15px/1.2 var(--sans); animation: dc-in 0.5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes dc-in { from { opacity: 0; transform: translateX(24px); } }
.dc-row-item.is-first { background: var(--gold-grad); }
.dc-row-item.is-you { box-shadow: inset 0 0 0 2px #2FB062; }
.dc-row-item em { font-style: normal; font-weight: 500; color: #2F7A44; }
.dc-you-below { margin-top: 8px; }
.dc-p { font-weight: 800; text-align: center; }
.dc-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-c, .dc-pts { text-align: right; font-variant-numeric: tabular-nums; }
.dc-pts { font-weight: 800; }
.dc-hide { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid #C0392B; background: #fff; color: #C0392B; cursor: pointer; }
.dc-empty { padding: 18px; border-radius: 12px; border: 1.5px dashed rgba(255, 255, 255, 0.25); text-align: center; }
.dc-note { margin: 12px 0 0; font-size: 13px; opacity: 0.7; }
.dc-q { margin: 0 auto; }
@media (max-width: 860px) { .dc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .dc-card { padding: 16px; }
  .dc-cols, .dc-row-item { grid-template-columns: 34px minmax(0, 1fr) 44px 54px auto; gap: 6px; font-size: 14px; }
  .dc-champ { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .dc-row-item { animation: none; } }

/* ===== Build 1_171: Nation Challenge on the home page — Germany, quiz then group, and three levels ===== */
.ncx { border-radius: 24px; padding: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.9); color: #fff; }
.ncx-steps { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0 0 16px; font: 800 15px/1 var(--cond); letter-spacing: 0.06em; text-transform: uppercase; }
.ncx-steps span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.55); transition: background 0.5s, color 0.5s; }
.ncx-steps .ncx-arrow { background: none; padding: 0; }
.ncx[data-step="quiz"] .ncx-s1, .ncx[data-step="group"] .ncx-s2 { background: var(--gold-grad); color: #1A1405; }
.ncx-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ncx-quiz, .ncx-group { padding: 18px; border-radius: 18px; background: #0B1A2A; border: 1px solid rgba(255, 255, 255, 0.12); transition: opacity 0.6s, transform 0.6s, box-shadow 0.6s; }
.ncx[data-step="quiz"] .ncx-group, .ncx[data-step="group"] .ncx-quiz { opacity: 0.45; transform: scale(0.97); }
.ncx[data-step="quiz"] .ncx-quiz, .ncx[data-step="group"] .ncx-group { box-shadow: inset 0 3px 0 #F5BE1E, 0 20px 40px -24px rgba(245, 190, 30, 0.5); }
.ncx-quiz .ncd-qhead .hs-flag { width: 24px; height: 18px; margin: 0; border-radius: 3px; }
.ncx-quiz.is-in .ncd-q, .ncx-quiz.is-in .ncd-opts li { animation: cab-fresh 0.5s cubic-bezier(.2, .8, .2, 1) both; }
.ncx-quiz.is-in .ncd-opts li:nth-child(2) { animation-delay: 0.06s; } .ncx-quiz.is-in .ncd-opts li:nth-child(3) { animation-delay: 0.12s; } .ncx-quiz.is-in .ncd-opts li:nth-child(4) { animation-delay: 0.18s; }
.ncx-quiz .ncd-opts { grid-template-columns: 1fr 1fr; }
.ncx-tally { margin: 12px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.ncx-tally strong { color: #FFD965; }
.ncx-gk { margin: 0 0 10px; font: 700 12px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.ncx-gk span { color: #FFD965; }
.ncx-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; margin: 0 0 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font: 700 15px/1.2 var(--sans); min-height: 46px; opacity: 0.4; transition: opacity 0.4s; }
.ncx-match.is-on { opacity: 1; }
.ncx-mh { display: flex; align-items: center; justify-content: flex-end; gap: 8px; text-align: right; }
.ncx-ma { display: flex; align-items: center; gap: 8px; }
.ncx-match .hs-flag { width: 22px; height: 16px; margin: 0; border-radius: 2px; }
.ncx-ms { display: inline-flex; gap: 4px; }
.ncx-ms i { font: 800 18px/1 var(--cond); font-style: normal; min-width: 26px; padding: 5px 0; border-radius: 6px; text-align: center; background: rgba(255, 255, 255, 0.1); }
.ncx-ms.is-rolling i { background: #fff; color: #10261A; animation: lb-shake 0.14s linear infinite; }
.ncx-ms.is-done i { background: var(--gold-grad); color: #1A1405; animation: lb-pop 0.45s cubic-bezier(.2, 1.6, .4, 1); }
.ncx-th, .ncx-row { display: grid; grid-template-columns: 18px 22px minmax(0, 1fr) 28px 36px 36px; gap: 8px; align-items: center; }
.ncx-th { padding: 0 10px 6px; font: 700 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.ncx-th span:nth-child(2) { grid-column: 2 / 4; } .ncx-th span:nth-child(n+3) { text-align: center; }
.ncx-rows { position: relative; height: calc(4 * 40px); }
.ncx-row { position: absolute; left: 0; right: 0; top: calc(var(--r) * 40px); height: 35px; padding: 0 10px; border-radius: 8px; background: #fff; color: #10261A; font: 600 14.5px/1 var(--sans); transition: top 0.7s cubic-bezier(.3, 1.2, .4, 1), box-shadow 0.4s; }
.ncx-row .hs-flag { width: 20px; height: 15px; margin: 0; border-radius: 2px; }
.ncx-row b { font-size: 12px; color: #8A958D; }
.ncx-row [data-c] { text-align: center; }
.ncx-pts { font-weight: 800; }
.ncx-row.is-q { box-shadow: inset 4px 0 0 #2FB062; }
.ncx-row.is-po { box-shadow: inset 4px 0 0 #F2B705; }
.ncx-row[data-t="0"] { background: #FFF6D6; }
.ncx-row.is-up { animation: ncx-up 1.2s ease; } .ncx-row.is-down { animation: ncx-down 1.2s ease; }
@keyframes ncx-up { 30% { background: #CDEFD8; } }
@keyframes ncx-down { 30% { background: #F9D6D0; } }
.ncx-out { margin: 12px 0 0; min-height: 1.4em; font-weight: 700; color: #FFD965; }
.ncx-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.ncx-level { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.ncx-level h3 { margin: 0 0 10px; font: 800 20px/1.1 var(--cond); letter-spacing: 0.03em; text-transform: uppercase; }
.ncx-level.is-giant { box-shadow: inset 0 3px 0 #8E5BD8; } .ncx-level.is-giant h3 { color: #C9A9FF; }
.ncx-level.is-harder { box-shadow: inset 0 3px 0 #F2B705; } .ncx-level.is-harder h3 { color: #FFD965; }
.ncx-level.is-ultra { box-shadow: inset 0 3px 0 #D9493A; background: linear-gradient(180deg, rgba(217, 73, 58, 0.16), rgba(255, 255, 255, 0.04)); } .ncx-level.is-ultra h3 { color: #FF9C8C; }
.ncx-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ncx-flags span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font: 600 13px/1 var(--sans); }
.ncx-flags .hs-flag { width: 20px; height: 15px; margin: 0; border-radius: 2px; }
.ncx-level > p:last-child { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.8); line-height: 1.45; }
@media (max-width: 860px) {
  .ncx-stage { grid-template-columns: minmax(0, 1fr); }
  .ncx-levels { grid-template-columns: minmax(0, 1fr); }
  .ncx[data-step="quiz"] .ncx-group, .ncx[data-step="group"] .ncx-quiz { transform: none; }
}
@media (max-width: 520px) {
  .ncx { padding: 12px; } .ncx-steps { font-size: 12.5px; gap: 6px; } .ncx-steps span { padding: 7px 10px; }
  .ncx-quiz .ncd-opts { grid-template-columns: 1fr; }
  .ncx-match { font-size: 13px; gap: 6px; padding: 8px; } .ncx-ms i { min-width: 22px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ncx-row, .ncx-quiz, .ncx-group { transition: none; } .ncx-row.is-up, .ncx-row.is-down { animation: none; } }

/* ===== Build 1_172: section pages in the home page's look (Domestic first) ===== */
body:has(.v2-page) .pitch { display: none; }
body:has(.v2-page) { background: linear-gradient(180deg, #040A14 0px, #071427 700px, #0A1B30 1400px, #0B2230 2100px, #061711 100%); }
.v2-page { position: relative; padding-bottom: 56px; }
.v2-page > :not(.home-aura) { position: relative; z-index: 1; }
.v2-page h1, .v2-page h2, .v2-page h3 { color: #fff; }

/* hero: words on the left, a live picture on the right */
.dom-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; margin: 18px 0 40px; }
.dom-hero h1 { margin: 6px 0 14px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.dom-hero h1 span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dom-hero-lede { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, 0.85); font-size: 17px; line-height: 1.55; }
.dom-v2 .home-eyebrow { color: #7BE3A4; }

/* the league pyramid */
.dpy { --row: 34px; --gap: 42px; position: relative; height: calc(12 * var(--row) + 3 * var(--gap) - 10px); padding: 0; }
.dpy-div { position: absolute; left: 0; right: 0; top: calc(var(--d) * (4 * var(--row) + var(--gap))); height: calc(4 * var(--row) + var(--gap) - 10px); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14); }
.dpy-div span { position: absolute; left: 14px; top: 7px; font: 700 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.dpy-div:nth-child(1) { box-shadow: inset 0 3px 0 #F5BE1E; } .dpy-div:nth-child(2) { box-shadow: inset 0 3px 0 #9FB3C8; } .dpy-div:nth-child(3) { box-shadow: inset 0 3px 0 #B87333; }
.dpy-team {
  position: absolute; left: 12px; right: 12px; height: calc(var(--row) - 5px);
  top: calc(var(--p) * var(--row) + var(--dv) * var(--gap) + 24px);
  display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 9px; background: #fff; color: #10261A; font: 600 14.5px/1 var(--sans);
  transition: top 1.1s cubic-bezier(.45, 0, .2, 1), background 0.4s; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.6);
}
.dpy-team .lb-crest { transform: none; width: 16px; height: 18px; }
.dpy-n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpy-tag { font: 800 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.dpy-team.is-up { background: #DDF5E5; z-index: 2; } .dpy-team.is-up .dpy-tag { color: #1F8A4C; }
.dpy-team.is-up .dpy-tag::before { content: '\25B2 '; }
.dpy-team.is-down { background: #FBE2DE; z-index: 2; } .dpy-team.is-down .dpy-tag { color: #C0392B; }
.dpy-team.is-down .dpy-tag::before { content: '\25BC '; }

/* the two choices, as glass cards */
.dom-v2 .dom-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)) !important; border: 1px solid rgba(255, 255, 255, 0.16) !important; color: #fff;
  border-radius: 22px; padding: 24px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.dom-v2 .dom-col:first-child .dom-card { box-shadow: inset 0 3px 0 #2FB062, 0 30px 60px -36px rgba(0, 0, 0, 0.9); }
.dom-v2 .dom-col:last-child .dom-card { box-shadow: inset 0 3px 0 #3B6FD8, 0 30px 60px -36px rgba(0, 0, 0, 0.9); }
.dom-v2 .dom-card:not(.is-locked):hover { transform: translateY(-4px); border-color: rgba(255, 217, 101, 0.6) !important; }
.dom-v2 .dom-card .choice-name { color: #fff; }
.dom-v2 .dom-card .choice-note { color: rgba(255, 255, 255, 0.82); }
.dom-v2 .dom-card .dom-lede { color: #FFD965; font-weight: 700; }
.dom-v2 .dom-card .choice-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 22px; border-radius: 12px; background: var(--gold-grad); color: #1A1405; font: 800 15px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; border: 0; }
.dom-v2 .dom-card.is-locked { opacity: 1; filter: none; }
.dom-v2 .dom-card.is-locked .choice-note { color: rgba(255, 255, 255, 0.7); }
.dom-v2 .dom-card.is-locked .dom-lock-go { background: rgba(255, 255, 255, 0.12); color: #fff; }
.dom-v2 .dom-card.is-locked .dom-lock-go::after { content: 'Members'; margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: var(--gold-grad); color: #1A1405; font-size: 10.5px; }
.dom-v2 .dom-sub { background: rgba(255, 255, 255, 0.07) !important; border: 1px solid rgba(255, 255, 255, 0.14) !important; color: #fff; border-radius: 14px; }
.dom-v2 .dom-sub .dom-sub-name { color: #fff; }
.dom-v2 .dom-sub .dom-sub-note { color: rgba(255, 255, 255, 0.7); }
.dom-v2 .dom-sub .dom-sub-go, .dom-v2 .dom-sub .dom-lock-go { color: #FFD965; }
.dom-v2 .dom-sub:not(.is-locked):hover { background: rgba(255, 255, 255, 0.13) !important; }
.dom-v2 .dom-pick span { color: rgba(255, 255, 255, 0.8); }

/* what DiceFooty does for you */
.dom-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.dom-feat { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.dom-feat-i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(245, 190, 30, 0.16); font-size: 22px; margin-bottom: 10px; }
.dom-feat h3 { margin: 0 0 6px; font-size: 19px; }
.dom-feat p { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 14.5px; line-height: 1.45; }

@media (max-width: 900px) {
  .dom-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; text-align: center; }
  .dom-hero-lede { margin: 0 auto; }
  .dpy { max-width: 460px; margin: 0 auto; width: 100%; }
  .dom-feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .dpy { --row: 31px; --gap: 40px; }
  .dpy-team { font-size: 13.5px; }
  .dom-feats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .dpy-team { transition: none; } }
.dom-v2 .dom-card.is-locked .dom-card-title, .dom-v2 .dom-card.is-locked .choice-name, .dom-v2 .dom-card.is-locked .dom-emblem { opacity: 1; filter: none; color: #fff; }
.dom-v2 .dom-hero h1 { text-wrap: balance; }
.dom-v2 .dom-sub.is-locked { opacity: 1; filter: none; }
.dom-v2 .dom-sub.is-locked .dom-sub-name { color: #fff !important; opacity: 1; }
.dom-v2 .dom-sub.is-locked .dom-sub-note { color: rgba(255, 255, 255, 0.68) !important; opacity: 1; }
.dom-v2 .dom-sub.is-locked .dom-lock-go { color: rgba(255, 255, 255, 0.8) !important; opacity: 1; }
.dom-v2 .dom-sub.is-locked .dom-sub-icon { opacity: 1; filter: none; }
.dpy { text-align: left; }

/* ===== Build 1_173: the screens inside Domestic on the night-sky backdrop ===== */
#v2-aura { display: none; }
body.v2-night #v2-aura { display: block; }
body.v2-night .pitch { display: none; }
body.v2-night { background: linear-gradient(180deg, #040A14 0px, #071427 700px, #0A1B30 1400px, #0B2230 2100px, #061711 100%); }
body.v2-night main, body.v2-night .site-footer, body.v2-night footer { position: relative; z-index: 1; }
body.v2-night main .panel, body.v2-night main .card { box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.85); }
body.v2-night main > .shell > h1, body.v2-night main .page-head h1 { color: #fff; }
/* home-style touches on the season screens */
body.v2-night .play-section-head h2 { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
body.v2-night .play-section-head h2::before { content: ''; width: 6px; height: 0.9em; border-radius: 3px; background: var(--gold-grad); }
body.v2-night .division-strip { display: flex; flex-wrap: wrap; gap: 8px; }
body.v2-night .division-strip .stat { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.82); }
body.v2-night .division-strip .stat b { color: #FFD965; }
body.v2-night .comp-title h1 { color: #fff; }
body.v2-night .division-jump a, body.v2-night .division-jump button { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }

/* ===== Build 1_174: International in the home page look ===== */
.intl-v2 { padding-top: 10px; }
.intl-v2 .home-eyebrow { color: #8FB8FF; }
/* the live Shield draw */
.idr { --row: 52px; position: relative; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9); }
.idr-pots, .idr-groups { position: absolute; top: 16px; height: calc(4 * var(--row)); }
.idr-pots { left: 16px; width: calc((100% - 32px) * 0.44); }
.idr-groups { left: calc(16px + (100% - 32px) * 0.54); width: calc((100% - 32px) * 0.46); }
.idr-pot, .idr-group { position: absolute; left: 0; right: 0; top: calc(var(--y) * var(--row)); height: calc(var(--row) - 8px); border-radius: 12px; }
.idr-pot { background: rgba(255, 255, 255, 0.05); border-left: 4px solid var(--c); }
.idr-pot.is-purple { --c: #8E5BD8; } .idr-pot.is-green { --c: #2FB062; } .idr-pot.is-amber { --c: #F2B705; } .idr-pot.is-red { --c: #D9493A; }
.idr-group { background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(255, 255, 255, 0.22); }
.idr-pot, .idr-group { font: 700 10px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); padding: 3px 0 0 8px; }
.idr-field { position: relative; height: calc(4 * var(--row)); }
.idr-chip {
  position: absolute; width: calc(44% * 0.2); aspect-ratio: 4 / 3; top: calc(var(--y) * var(--row) + 13px);
  left: calc(var(--x) * 44% * 0.23 + 44% * 0.06); border-radius: 6px; overflow: hidden; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.8);
  transition: left 0.75s cubic-bezier(.45, 0, .2, 1), top 0.75s cubic-bezier(.45, 0, .2, 1), transform 0.4s;
}
.idr-chip[data-side="group"] { left: calc(54% + var(--x) * 46% * 0.23 + 46% * 0.05); }
.idr-chip .hs-flag { width: 100%; height: 100%; margin: 0; display: block; object-fit: cover; }
.idr-chip.is-drawn { animation: idr-pop 0.75s ease; }
@keyframes idr-pop { 50% { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(245, 190, 30, 0.6); } }
.idr-chip { max-width: 54px; }
.idr-status { margin: 14px 0 0; text-align: center; font: 700 15px/1.3 var(--sans); color: #FFD965; min-height: 1.3em; }
/* the competitions, as glass cards */
.intl-v2 .home-game { background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)) !important; border-color: rgba(255, 255, 255, 0.16) !important; color: #fff; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.intl-v2 .home-game h2 { color: #fff; }
.intl-v2 .home-game p { color: rgba(255, 255, 255, 0.8); }
.intl-v2 .home-game:not(.is-locked):hover { transform: translateY(-4px); border-color: rgba(255, 217, 101, 0.6) !important; }
.intl-v2 .home-game.is-locked { filter: none; opacity: 1; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)) !important; }
.intl-v2 .home-game.is-locked h2 { color: #fff !important; } .intl-v2 .home-game.is-locked p { color: rgba(255, 255, 255, 0.65) !important; }
.intl-v2 .home-game.is-locked .home-locked { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.intl-v2 .home-game.is-locked .home-locked::after { content: 'Members'; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--gold-grad); color: #1A1405; font: 800 10.5px/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.intl-v2 [data-part="intl-card-world"] { box-shadow: inset 0 3px 0 #F5BE1E, 0 30px 60px -36px rgba(0, 0, 0, 0.9); }
.intl-v2 [data-part="intl-card-cycles"] { box-shadow: inset 0 3px 0 #8E5BD8, 0 30px 60px -36px rgba(0, 0, 0, 0.9); }
.intl-v2 .intl-group-head h2 { color: #fff; }
.intl-v2 .intl-group-head p { color: rgba(255, 255, 255, 0.75); }
.intl-v2 .intl-group-oneoff { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
@media (max-width: 900px) { .idr { max-width: 520px; margin: 0 auto; width: 100%; } }
@media (max-width: 520px) { .idr { --row: 44px; padding: 12px; } .idr-chip { top: calc(var(--y) * var(--row) + 11px); } }
.idr-pot { font-size: 0; padding: 0; }
.idr-group { padding: 0 12px 0 0; display: flex; align-items: center; justify-content: flex-end; font: 800 22px/1 var(--cond); letter-spacing: 0; color: rgba(255, 255, 255, 0.22); }
body.v2-night .dom-card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)) !important; border: 1px solid rgba(255, 255, 255, 0.16) !important; color: #fff; border-radius: 22px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9); }
body.v2-night .dom-card .choice-name { color: #fff; }
body.v2-night .dom-card .choice-note { color: rgba(255, 255, 255, 0.82); }
body.v2-night .dom-card .choice-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 22px; border-radius: 12px; background: var(--gold-grad); color: #1A1405; font: 800 15px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; border: 0; }
body.v2-night .dom-card:not(.is-locked):hover { transform: translateY(-4px); border-color: rgba(255, 217, 101, 0.6) !important; }
body.v2-night .page-head h1, body.v2-night .page-head p { color: #fff; }

/* ===== Build 1_175: Online Play in the home page look ===== */
body.v2-night .ol-page .page-head h1, body.v2-night .ol-page .emblem-head h1 { color: #fff; }
body.v2-night .ol-page .page-head p { color: rgba(255, 255, 255, 0.82); }
body.v2-night .ol-unlock-banner {
  background: linear-gradient(120deg, rgba(126, 87, 230, 0.35), rgba(31, 63, 138, 0.35)) !important; border: 1.5px solid rgba(255, 217, 101, 0.6) !important;
  border-radius: 22px; color: #fff; box-shadow: 0 0 0 4px rgba(245, 190, 30, 0.1), 0 30px 60px -30px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.v2-night .ol-unlock-banner strong { color: #FFD965; }
body.v2-night .ol-lc, body.v2-night .ol-page .home-game {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)) !important; border: 1px solid rgba(255, 255, 255, 0.16) !important; color: #fff;
  border-radius: 22px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.v2-night .ol-lc h2, body.v2-night .ol-page .home-game h2 { color: #fff; }
body.v2-night .ol-lc p, body.v2-night .ol-page .home-game p { color: rgba(255, 255, 255, 0.8); }
body.v2-night .ol-lc.is-muted, body.v2-night .ol-lc.is-gold-locked { opacity: 1; filter: none; }
body.v2-night .ol-lc:not(.is-gold-locked):not(.is-muted):hover { transform: translateY(-4px); border-color: rgba(255, 217, 101, 0.6) !important; }
body.v2-night .ol-lc-nation { box-shadow: inset 0 3px 0 #D9493A, 0 30px 60px -36px rgba(0, 0, 0, 0.9); }
body.v2-night .ol-lc-quiz { box-shadow: inset 0 3px 0 #2FB062, 0 30px 60px -36px rgba(0, 0, 0, 0.9); }

/* ===== Build 1_176: Rules in the home page look ===== */
.rules-v2 > .page-head { display: none; }
.rules-v2 .home-eyebrow { color: #FFD965; }
.rules-v2 .rules-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 24px; }
.rules-v2 .rules-toc a { background: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.18) !important; color: #fff !important; border-radius: 999px; }
.rules-v2 .rules-toc a:hover { background: var(--gold-grad) !important; color: #1A1405 !important; border-color: transparent !important; }
.rules-v2 .rules-sec { border-radius: 20px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.85); }
.rules-v2 .rules-sec h2 { color: inherit; }
/* the match-up calculator */
.rmu { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 20px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9); color: #fff; }
.rmu-side { display: grid; gap: 8px; }
.rmu-k { font: 700 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.rmu-pick { display: grid; gap: 6px; }
.rmu-r { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: #fff; font: 600 14px/1 var(--sans); cursor: pointer; text-align: left; transition: background 0.3s, border-color 0.3s, transform 0.2s; }
.rmu-r b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font: 800 13px/1 var(--sans); color: #fff; }
.rmu-r.is-P b { background: #8E5BD8; } .rmu-r.is-S b { background: #2FB062; } .rmu-r.is-N b { background: #F2B705; color: #1A1405; } .rmu-r.is-W b { background: #D9493A; }
.rmu-r:hover { background: rgba(255, 255, 255, 0.14); }
.rmu-r[aria-pressed="true"] { background: rgba(245, 190, 30, 0.2); border-color: #F5BE1E; transform: scale(1.03); }
.rmu-r:focus-visible { outline: 2px solid #FFD965; outline-offset: 2px; }
.rmu-mid { display: grid; justify-items: center; gap: 6px; }
.rmu-die { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 16px; background: #fff; color: #10261A; font: 800 26px/1 var(--cond); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7); transition: background 0.3s, color 0.3s; }
.rmu-die.is-big { background: var(--gold-grad); color: #1A1405; }
.rmu-die.is-pop { animation: lb-pop 0.45s cubic-bezier(.2, 1.6, .4, 1); }
.rmu-v { font: 800 14px/1 var(--cond); color: rgba(255, 255, 255, 0.55); text-transform: uppercase; }
.rmu-bar { grid-column: 1 / -1; display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.rmu-bar i { display: block; height: 100%; transition: width 0.6s cubic-bezier(.3, 1, .4, 1); }
.rmu-bar i:nth-child(1) { background: #2FB062; } .rmu-bar i:nth-child(2) { background: #9FB3C8; } .rmu-bar i:nth-child(3) { background: #D9493A; }
.rmu-words { grid-column: 1 / -1; margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.88); line-height: 1.45; }
.rmu-words strong { color: #FFD965; }
.rmu-words b.w { color: #7BE3A4; } .rmu-words b.d { color: #C9D6E3; } .rmu-words b.l { color: #FF9C8C; }
@media (max-width: 520px) {
  .rmu { padding: 14px; gap: 10px; }
  .rmu-r span { display: none; } .rmu-r { justify-content: center; padding: 8px; }
  .rmu-pick { grid-template-columns: 1fr 1fr; }
  .rmu-die { width: 58px; height: 58px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .rmu-bar i, .rmu-die { transition: none; animation: none; } }

/* ===== Build 1_177: My Games in the home page look ===== */
.mg-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin: 14px 0 28px; }
.mg-hero-emblem svg { width: 84px; height: 100px; display: block; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.6)); }
.mg-hero h1 { margin: 4px 0 8px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; color: #fff; }
.mg-hero p { margin: 0; color: rgba(255, 255, 255, 0.8); max-width: 62ch; }
.mg-v2 .home-eyebrow { color: #7BE3A4; }
.mg-hero .mg-account { margin-top: 8px; } .mg-hero .mg-account strong { color: #FFD965; }
.mg-count { display: grid; justify-items: center; padding: 16px 22px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(255, 255, 255, 0.16); }
.mg-count b { font: 800 46px/1 var(--cond); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-count span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.mg-v2 .resume-list { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.mg-v2 .resume-card {
  --tone: #2FB062; position: relative; text-align: left; padding: 20px 22px 22px; border-radius: 18px; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)) !important; border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 3px 0 var(--tone), 0 24px 50px -30px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.25s, border-color 0.25s;
}
.mg-v2 .resume-card::after { content: 'Open \2192'; display: inline-block; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--gold-grad); color: #1A1405; font: 800 12.5px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; }
.mg-v2 .resume-card:hover { transform: translateY(-3px); border-color: rgba(255, 217, 101, 0.6) !important; }
.mg-v2 .resume-card .resume-kind { color: var(--tone); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.mg-v2 .resume-card .choice-name { color: #fff; font-size: 20px; }
.mg-v2 .resume-card .choice-note { color: rgba(255, 255, 255, 0.72); }
.mg-tone-league { --tone: #2FB062 !important; } .mg-tone-cont { --tone: #3B6FD8 !important; } .mg-tone-shield { --tone: #F5BE1E !important; }
.mg-tone-cycle { --tone: #8E5BD8 !important; } .mg-tone-intl { --tone: #18BEAA !important; } .mg-tone-cup { --tone: #E08A1F !important; }
.mg-v2 .mg-card.is-picked > .resume-card { box-shadow: inset 0 3px 0 var(--tone), 0 0 0 2px #D9493A !important; }
.mg-v2 .shell-block { background: none; border: 0; padding: 0; box-shadow: none; }
.mg-v2 .mg-tools { color: #fff; }
.mg-empty { padding: 26px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1.5px dashed rgba(255, 255, 255, 0.22); text-align: center; }
.mg-empty .shell-empty { color: rgba(255, 255, 255, 0.85); margin: 0 0 16px; }
.mg-empty-go { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 760px) {
  .mg-hero { grid-template-columns: auto minmax(0, 1fr); }
  .mg-count { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; padding: 10px 16px; }
  .mg-hero-emblem svg { width: 60px; height: 72px; }
}

/* ===== Build 1_178: Plans & Pricing — Free and the Season Ticket ===== */
.pl-hero { text-align: center; max-width: 760px; margin: 18px auto 30px; }
.pl-hero h1 { margin: 6px 0 12px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; color: #fff; }
.pl-hero h1 span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-hero p { color: rgba(255, 255, 255, 0.85); font-size: 17px; margin: 0; }
.pl-v2 .home-eyebrow { color: #FFD965; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 22px; align-items: stretch; }
.pl-v2 .plan-card { position: relative; margin: 0; border-radius: 24px; color: #fff; }
.pl-free { padding: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)) !important; border: 1px solid rgba(255, 255, 255, 0.16) !important; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9); display: flex; flex-direction: column; }
.pl-k { margin: 0 0 6px; font: 700 13px/1 var(--cond); letter-spacing: 0.2em; text-transform: uppercase; color: #FFD965; }
.pl-v2 .plan-card h2 { margin: 0 0 6px; font-size: clamp(30px, 3vw, 40px); color: #fff; }
.pl-price { margin: 0 0 12px; color: rgba(255, 255, 255, 0.75); } .pl-price span { font: 800 42px/1 var(--cond); color: #fff; margin-right: 6px; }
.pl-v2 .plan-lede { color: rgba(255, 255, 255, 0.85); }
.pl-v2 .plan-list { margin: 12px 0 18px; }
.pl-v2 .plan-item { color: rgba(255, 255, 255, 0.9); }
.pl-free .plan-action { margin-top: auto; }
.pl-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 260px; overflow: hidden; padding: 0 !important; border: 0 !important;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 217, 101, 0.5), 0 0 60px -20px rgba(245, 190, 30, 0.45) !important; }
.pl-ticket::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.24) 48%, rgba(255, 255, 255, 0.05) 54%, transparent 62%); background-size: 260% 100%; animation: tk-shine 6s ease-in-out infinite; }
.pl-tk-main { padding: 28px 30px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 12px), radial-gradient(80% 120% at 0% 0%, rgba(36, 180, 100, 0.25), transparent 60%), linear-gradient(135deg, #10301F 0%, #0A1E15 100%); }
.pl-tk-stub { position: relative; padding: 26px 22px; color: #1A1405; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  background: linear-gradient(115deg, #E2A20B 0%, #FFE38E 26%, #F5BE1E 44%, #C98F0A 62%, #FFE79A 82%, #E9AC0F 100%); border-left: 2px dashed rgba(26, 20, 5, 0.45); }
.pl-tk-stub .tk-num { font: 800 56px/1 var(--cond); }
.pl-soon { align-self: flex-start; margin: 10px 0; padding: 7px 14px; border-radius: 999px; background: #1A1405; color: #FFD965; font: 800 13px/1 var(--cond); letter-spacing: 0.1em; text-transform: uppercase; }
.pl-tk-stub .tk-barcode { margin-top: 8px; }
.pl-v2 .plans-notice { margin-top: 24px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 217, 101, 0.4); color: #fff; border-radius: 16px; }
.pl-v2 .plans-notice a { color: #FFD965; }
.pl-v2 .plans-billing { color: rgba(255, 255, 255, 0.65); text-align: center; }
.pl-v2 .plan-preview-tag { position: absolute; top: 12px; right: 12px; }
@media (max-width: 900px) {
  .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-free { order: 2; }
}
@media (max-width: 640px) {
  .pl-ticket { grid-template-columns: minmax(0, 1fr); }
  .pl-tk-stub { border-left: 0; border-top: 2px dashed rgba(26, 20, 5, 0.45); }
  .pl-tk-main { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pl-ticket::after { animation: none; } }

/* ===== Build 1_179: simpler tournament screens ===== */
.intl-gpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.intl-gpick-b { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 56px; padding: 8px 10px 7px; border-radius: 4px; border: 2px solid #D5DCD7; background: #fff; color: #10261A; cursor: pointer; transition: transform 0.15s, border-color 0.2s, background 0.2s; }
.intl-gpick-b b { font: 800 20px/1 var(--cond); }
.intl-gpick-b small { font: 600 11px/1 var(--sans); color: #6B7A70; }
.intl-gpick-b i { position: absolute; top: -9px; right: -6px; padding: 2px 6px; border-radius: 999px; background: var(--gold-grad); color: #1A1405; font: 800 9.5px/1.2 var(--sans); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; }
.intl-gpick-b:hover { transform: translateY(-2px); border-color: #F5BE1E; }
.intl-gpick-b.is-done { background: #E8F6EE; border-color: #9ED6B4; } .intl-gpick-b.is-done small { color: #1F8A4C; font-weight: 800; }
.intl-gpick-b.is-on { background: #10261A; border-color: #10261A; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.intl-gpick-b.is-on small { color: #FFD965; }
.intl-gpick-b:focus-visible { outline: 3px solid #F5BE1E; outline-offset: 2px; }
.intl-gpick-note { margin: 4px 0 14px; font-size: 14px; color: #4B5A50; }
.intl-rollall { margin: 10px 0 6px; padding: 14px 16px; border-radius: 14px; background: #F2F8F4; border: 1.5px solid #B9DFC7; }
.intl-rollall .intl-auto { margin: 0; }
.intl-rollall-help { margin: 8px 0 0; font-size: 14.5px; color: #2F4A3A; }
.intl-rollall .btn-roll { font-size: 17px; }
/* the challenge bar: its small words readable on the dark bar */
.nc-bar .nc-bar-meta { color: rgba(255, 255, 255, 0.82) !important; }
.nc-bar .nc-save { color: #7BE3A4; }
.comp-title[hidden] { display: none !important; }
@media (max-width: 600px) {
  .nc-bar .nc-tag { white-space: normal; max-width: 100%; font-size: 10.5px; line-height: 1.3; }
  .nc-bar .nc-bar-btns { display: flex !important; flex-direction: row !important; gap: 8px; }
  .nc-bar .nc-bar-btns .btn { flex: 1 1 0; width: auto !important; padding: 9px 10px; font-size: 13.5px; min-height: 0; }
  .nc-bar .nc-bar-side { gap: 8px; }
}
.nc-bar .nc-btn-outline { color: #fff !important; background: rgba(255, 255, 255, 0.1) !important; border: 1px solid rgba(255, 255, 255, 0.3) !important; }

/* ===== Build 1_180: the Nation Challenge "Next" strip becomes a clear pop-up card (Matt) ===== */
.nc-nextbar { background: linear-gradient(to top, rgba(6, 12, 22, 0.92) 55%, rgba(6, 12, 22, 0)); box-shadow: none; padding: 40px 16px max(16px, env(safe-area-inset-bottom)); pointer-events: none; }
.nc-nextbar .nc-nb-card { pointer-events: auto; max-width: 560px; margin: 0 auto; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 22px 22px 18px; border-radius: 22px; background: linear-gradient(160deg, #18263a, #0d1726); border: 2px solid #e8b84a; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(232, 184, 74, 0.14); animation: ncNbIn 0.45s cubic-bezier(.2, 1.3, .4, 1) both; }
.nc-nb-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #e8b84a; }
.nc-nb-head { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size: clamp(22px, 5vw, 30px); line-height: 1.15; }
.nc-nb-sub { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.nc-nb-score { margin: 2px 0 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; color: #fff; font-size: 17px; font-weight: 700; }
.nc-nb-score .nc-dm-team.is-you { color: #e8b84a; }
.nc-nb-score .nc-dm-score { background: #fff; color: #0d1726; }
.nc-nb-card .nc-next { width: 100%; max-width: 380px; min-height: 60px; font-size: 22px; animation: ncNbPulse 1.8s ease-in-out 0.6s infinite; }
.nc-nb-help { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.nc-nb-card.is-win { border-color: #ffd76a; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 215, 106, 0.35); }
body.nc-nextbar-open main { padding-bottom: 380px; }
@keyframes ncNbIn { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes ncNbPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 184, 74, 0.55); } 50% { box-shadow: 0 0 0 10px rgba(232, 184, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .nc-nextbar .nc-nb-card, .nc-nb-card .nc-next { animation: none; } }
@media (max-width: 560px) { .nc-nextbar .nc-nb-card { padding: 16px 14px 14px; gap: 8px; } .nc-nb-sub { font-size: 14px; } }
.nc-oc-place strong { font-size: 18px; line-height: 1.3; }
.nc-oc-place > span:last-child { font-size: 15px; color: var(--ink-soft); }
.cup-group-grid.is-one { grid-template-columns: 1fr; }
.nc-bar .nc-bar-why { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: #FFD965; }

/* ===== Build 1_181: team colours (two-colour shields) and easy paste-a-list (Matt) ===== */
.kit-shield { display: inline-block; flex: none; width: 15px; height: 17px; vertical-align: -3px; margin: 0 5px; background: linear-gradient(135deg, var(--k1) 0 50%, var(--k2) 50% 100%); clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); filter: drop-shadow(0 0 0.6px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 0.6px rgba(0, 0, 0, 0.75)); }
.kit-shield.is-empty { background: repeating-linear-gradient(135deg, #C9D1CC 0 3px, #EEF1EF 3px 6px); }
.kit-shield-lg { width: 26px; height: 30px; margin: 0; }
.kit-btn { flex: none; display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border-radius: 8px; border: 2px solid var(--rule); background: #fff; cursor: pointer; }
.kit-btn .kit-shield { width: 20px; height: 23px; margin: 0; }
.kit-btn:hover, .kit-btn.is-open { border-color: #F5BE1E; }
.kit-btn:focus-visible, .kit-sw:focus-visible, .kit-team:focus-visible { outline: 3px solid #F5BE1E; outline-offset: 2px; }
.free-slots .kit-li { grid-column: 1 / -1; display: block; }
.kit-picker { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 2px solid #F5BE1E; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.5); color: #10261A; }
.kit-picker-head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.kit-picker-head strong { font-size: 17px; }
.kit-picker-head span:last-child { font-size: 14px; color: #4B5A50; flex-basis: 100%; }
.kit-row { display: grid; gap: 6px; }
.kit-row-k { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7A70; }
.kit-swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.kit-sw { width: 34px; height: 34px; padding: 0; border-radius: 6px; border: 2px solid rgba(0, 0, 0, 0.18); background: var(--c); cursor: pointer; transition: transform 0.12s; }
.kit-sw:hover { transform: scale(1.08); }
.kit-sw.is-on { border-color: #10261A; box-shadow: 0 0 0 3px #F5BE1E; transform: scale(1.08); }
.kit-picker-foot, .kit-edit-foot { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.kit-done { background: #10261A; color: #fff; border-color: #10261A; min-width: 110px; }
.kit-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 2px solid var(--rule); color: #10261A; }
.kit-ask p { margin: 0; flex: 1 1 260px; } .kit-ask p span { color: #4B5A50; font-size: 15px; }
/* the paste card and its little demo */
.pl-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 22px; align-items: center; margin: 0 0 14px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(160deg, #18263a, #0d1726); border: 2px solid #e8b84a; color: #fff; }
.pl-words h3 { margin: 0 0 6px; font-size: 21px; color: #FFD965; }
.pl-words p { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.pl-demo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12px; }
.pl-k { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #e8b84a; }
.pl-src { display: grid; gap: 3px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(255, 255, 255, 0.35); }
.pl-src code { font: 600 11px/1.25 ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, 0.8); animation: plCopy 6s ease-in-out infinite; }
.pl-arrow { font-size: 22px; color: #FFD965; animation: plArrow 6s ease-in-out infinite; }
.pl-dst { list-style: none; margin: 0; padding: 8px; border-radius: 10px; background: #fff; color: #10261A; display: grid; gap: 4px; }
.pl-dst .pl-k { color: #1F8A4C; }
.pl-dst li { display: flex; align-items: center; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; animation: plDrop 6s ease-out infinite; animation-delay: calc(var(--i) * 0.25s); }
.pl-dst li .kit-shield { margin: 0 6px 0 0; }
@keyframes plCopy { 0%, 8% { background: transparent; } 14%, 30% { background: rgba(80, 140, 255, 0.45); } 40%, 100% { background: transparent; } }
@keyframes plArrow { 0%, 30% { opacity: 0.3; transform: none; } 38% { opacity: 1; transform: translateX(4px); } 100% { opacity: 0.3; } }
@keyframes plDrop { 0%, 38% { opacity: 0; transform: translateX(-10px); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pl-src code, .pl-arrow, .pl-dst li { animation: none; opacity: 1; } }
.free-paste.is-open { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.free-paste.is-open .field { width: 100%; }
.free-paste.is-open textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px; border: 1px solid var(--rule); border-radius: var(--r-sm); }
@media (max-width: 700px) { .pl-card { grid-template-columns: 1fr; padding: 14px; } .pl-demo { order: 2; } }
/* the Team colours editor on a league already under way */
.kit-edit-btn .kit-shield { margin: 0 4px 0 0; }
.kit-edit { display: grid; gap: 12px; margin: 12px 0 0; padding: 16px; background: #fff; color: #10261A; border: 2px solid #F5BE1E; border-radius: 16px; }
.kit-edit-lede { margin: 0; font-size: 15px; }
.kit-edit-div h3 { margin: 0 0 6px; font-size: 16px; }
.kit-edit-teams { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-team { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px 6px 8px; border-radius: 8px; border: 2px solid var(--rule); background: #F6F8F7; color: #10261A; font: 700 14px/1.2 var(--sans); cursor: pointer; }
.kit-team .kit-shield { margin: 0; }
.kit-team.is-on { border-color: #F5BE1E; background: #FFF8E1; }
@media (max-width: 700px) { .pl-demo { font-size: 11px; } .pl-src code { font-size: 10px; } .pl-words h3 { font-size: 19px; } }

/* ===== Build 1_182: team colour badges as proper crests (Matt) ===== */
svg.kit-shield { display: inline-block; flex: none; width: 19px; height: 22px; vertical-align: -5px; margin: 0 6px; background: none; clip-path: none; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35)); overflow: visible; }
svg.kit-shield.kit-shield-lg { width: 30px; height: 35px; margin: 0; }
.kit-btn svg.kit-shield { width: 24px; height: 28px; margin: 0; }
.kit-team svg.kit-shield, .pl-dst li svg.kit-shield { margin: 0 2px 0 0; }
.kit-edit-btn svg.kit-shield { width: 16px; height: 19px; margin: 0 4px 0 0; }
svg.kit-shield.is-empty { filter: none; }
/* the home page's own .home spacing must never reach a fixture's home team (it pushed home names lower) */
.fixture .home, .fixture .away { padding-top: 0; padding-bottom: 0; }
/* bigger, bolder crests in the tables and fixtures */
td.col-team svg.kit-shield { width: 22px; height: 26px; vertical-align: -7px; margin: 0 8px 0 2px; }
.fixture svg.kit-shield, .cup-fixture svg.kit-shield { width: 24px; height: 28px; margin: 0 2px; }
@media (max-width: 560px) {
  .fixture .home svg.kit-shield, .cup-fixture .team-home svg.kit-shield { order: -1; }
  .fixture .home .kit-shield, .fixture .away .kit-shield { margin: 0; }
}

/* ===== Build 1_183: domestic league tables in the 1980s TV-graphics look (Matt) =====
   Deep blue screen, each cell its own bevelled bar, bold italic white lettering with a drop shadow,
   yellow italic headings. Whole rows coloured by zone: promotion white, play-offs orange, relegation red. */
.table-wrap:has(> table.league.is-retro), .table-scroll:has(> table.league.is-retro) { background: radial-gradient(120% 90% at 50% 0%, #2546C8 0%, #14309E 45%, #0A1D72 100%); border-radius: 14px; }
table.league.is-retro {
  border-collapse: separate; border-spacing: 3px 3px; padding: 6px 8px 8px; font-size: 15.5px;
  background: radial-gradient(120% 90% at 50% 0%, #2546C8 0%, #14309E 45%, #0A1D72 100%);
  border-radius: 14px; position: relative;
}
table.league.is-retro thead th {
  border: 0; padding: 8px 6px 4px; background: none;
  font: italic 800 15px/1 var(--cond); letter-spacing: 0.02em; color: #FFE45C;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}
table.league.is-retro thead th.col-team { font-size: 17px; }
table.league.is-retro thead th.col-pos { padding-left: 6px; }
table.league.is-retro tbody tr, table.league.is-retro tbody tr:nth-child(even) { background: none; }
table.league.is-retro tbody td {
  border: 0; padding: 6px 8px; line-height: 1.15;
  font: italic 700 15.5px/1.15 var(--cond); letter-spacing: 0.02em; color: #fff;
  text-shadow: 1.5px 1.5px 0 rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, #A7B0CC 0%, #7E89AE 48%, #6B769B 52%, #5D6890 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 1px 0 rgba(0, 0, 0, 0.35);
}
table.league.is-retro tbody td.col-pos { text-align: right; width: 34px; padding-right: 9px; background: linear-gradient(180deg, #1B2F86, #13236A); }
table.league.is-retro tbody td.col-team { font-size: 16.5px; padding-left: 10px; }
table.league.is-retro tbody td.col-pts { font-size: 17px; font-weight: 800; padding-right: 10px; background: linear-gradient(180deg, #1B2F86, #13236A); }
table.league.is-retro tbody td.col-gd { color: #fff; }
table.league.is-retro tbody td.col-form { background: linear-gradient(180deg, #1B2F86, #13236A); }
table.league.is-retro tbody td.col-team.zone-promotion, table.league.is-retro tbody td.col-team.zone-playoff, table.league.is-retro tbody td.col-team.zone-relegation { color: inherit; }
table.league.is-retro tbody tr.unplayed-all td { color: #fff; }
table.league.is-retro tbody tr[class*="line-"] td { border-bottom: 0; }
table.league.is-retro tbody tr.leader td.col-pos { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); color: #FFE45C; }
/* promotion: white bars, dark lettering */
table.league.is-retro tbody tr.zone-promotion td { color: #0E1A4F; text-shadow: none; background: linear-gradient(180deg, #FFFFFF 0%, #EEF1F8 50%, #DCE1EE 100%); }
table.league.is-retro tbody tr.zone-promotion td.col-pos, table.league.is-retro tbody tr.zone-promotion td.col-pts, table.league.is-retro tbody tr.zone-promotion td.col-form { background: linear-gradient(180deg, #FFFFFF, #D5DBEA); }
/* play-offs: orange */
table.league.is-retro tbody tr.zone-playoff td { background: linear-gradient(180deg, #F7A35A 0%, #E8771F 48%, #D9650F 52%, #C9580B 100%); }
table.league.is-retro tbody tr.zone-playoff td.col-pos, table.league.is-retro tbody tr.zone-playoff td.col-pts, table.league.is-retro tbody tr.zone-playoff td.col-form { background: linear-gradient(180deg, #E8771F, #B54C08); }
/* relegation: red */
table.league.is-retro tbody tr.zone-relegation td { background: linear-gradient(180deg, #F0616A 0%, #D7262F 48%, #C41C25 52%, #A9141C 100%); }
table.league.is-retro tbody tr.zone-relegation td.col-pos, table.league.is-retro tbody tr.zone-relegation td.col-pts, table.league.is-retro tbody tr.zone-relegation td.col-form { background: linear-gradient(180deg, #D7262F, #95101A); }
/* the two teams in the picked fixture, and your followed club: a yellow frame */
table.league.is-retro tbody tr.is-selected td, table.league.is-retro tr.is-followed td { box-shadow: inset 0 2px 0 #FFE45C, inset 0 -2px 0 #FFE45C; }
table.league.is-retro tr.is-followed .team-name { color: inherit; }
table.league.is-retro .form-box { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); font-style: normal; text-shadow: none; }
table.league.is-retro svg.kit-shield { filter: drop-shadow(1px 1.5px 0 rgba(0, 0, 0, 0.45)); }
@media (max-width: 560px) {
  table.league.is-retro { border-spacing: 2px 2px; padding: 4px 4px 6px; font-size: 14px; }
  table.league.is-retro tbody td { padding: 5px 5px; font-size: 14px; }
  table.league.is-retro tbody td.col-team { font-size: 15px; padding-left: 6px; }
  table.league.is-retro tbody td.col-pos { width: 24px; padding-right: 6px; }
}
.table-wrap:has(> table.league.is-retro) { border: 2px solid #0A1660; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.table-wrap:has(> table.league.is-retro) .table-foot { color: #C9D3FF; border-top-color: rgba(255, 255, 255, 0.14); font-style: italic; }
.table-wrap:has(> table.league.is-retro) .final-banner { color: #FFE45C; }
.table-wrap:has(> table.league.is-retro) .table-key, .table-wrap:has(> table.league.is-retro) .clinch-key { color: #DDE3FF; border-top-color: rgba(255, 255, 255, 0.14); }
/* the key now shows the row colours themselves */
.table-key .key::before { width: 18px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.table-key .key-promotion::before { background: linear-gradient(180deg, #fff, #DCE1EE); }
.table-key .key-playoff::before { background: linear-gradient(180deg, #F7A35A, #C9580B); }
.table-key .key-relegation::before { background: linear-gradient(180deg, #F0616A, #A9141C); }

/* ===== Build 1_184: the 1980s TV league table, matched to Matt's photographs ===== */
.table-wrap:has(> .rt) { background: none; border: 0; box-shadow: none; overflow: visible; }
.rt {
  --rt-font: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  position: relative; padding: 16px 18px 10px; border-radius: 6px; overflow-x: auto;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
    radial-gradient(130% 110% at 50% 35%, #2A3FC2 0%, #1C2FA6 55%, #13207A 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 20, 0.45), 0 10px 28px -16px rgba(0, 0, 0, 0.7);
}
.rt-title { margin: 0 0 2px; padding-left: 44px; font: italic 700 22px/1.1 var(--rt-font); color: #F6E33C; text-shadow: 2px 2px 0 #000; letter-spacing: 0.01em; }
.rt-table { border-collapse: separate; border-spacing: 4px 3px; width: auto; min-width: 100%; margin: 0; font-family: var(--rt-font); background: none; }
.rt-table thead th { padding: 2px 4px 1px; border: 0; background: none; font: italic 700 14px/1.1 var(--rt-font); color: #F2E9A6; text-shadow: 1.5px 1.5px 0 #000; text-align: center; text-transform: none; }
.rt-table thead th.rt-team { text-align: left; padding-left: 6px; }
.rt-table tbody td { padding: 0; border: 0; background: none; }
.rt-table tbody tr, .rt-table tbody tr:nth-child(even) { background: none; }
.rt-table td > span {
  display: flex; align-items: center; min-height: 23px; padding: 2px 7px;
  font: italic 700 15px/1.1 var(--rt-font); color: #fff; text-shadow: 1.5px 1.5px 0 #000; letter-spacing: 0.015em; white-space: nowrap;
  background: linear-gradient(180deg, #8A94C0 0%, #707CAD 50%, #5E6A9C 100%);
  border-top: 1px solid #C6CDE6; border-left: 1px solid #A9B2D6; border-bottom: 1px solid #39437A; border-right: 1px solid #39437A;
}
.rt-table td.rt-pos { width: 30px; }
.rt-table td.rt-pos > span { justify-content: flex-end; padding-right: 6px; }
.rt-table td.rt-team > span { min-width: 0; }
.rt-table td.rt-team .team-name { overflow: hidden; text-overflow: ellipsis; }
.rt-table td.rt-n { width: 34px; }
.rt-table td.rt-n > span { justify-content: center; padding: 2px 4px; }
.rt-table svg.kit-shield { width: 14px; height: 16px; margin: 0 6px 0 0; vertical-align: 0; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.6)); }
.rt-table .clinch { margin-left: 6px; font-style: normal; text-shadow: none; }
/* promotion: white bars, blue lettering */
.rt-table tr.zone-promotion td > span { color: #17257A; text-shadow: none; background: linear-gradient(180deg, #FFFFFF 0%, #F1F3FA 55%, #DADFEE 100%); border-top-color: #fff; border-left-color: #fff; border-bottom-color: #8C95BE; border-right-color: #8C95BE; }
/* play-offs: orange */
.rt-table tr.zone-playoff td > span { background: linear-gradient(180deg, #F08B3A 0%, #DE6E1C 50%, #C95B10 100%); border-top-color: #F8B57C; border-left-color: #F2A060; border-bottom-color: #7E3505; border-right-color: #7E3505; }
/* relegation: red */
.rt-table tr.zone-relegation td > span { background: linear-gradient(180deg, #E8454C 0%, #CF2730 50%, #B31A22 100%); border-top-color: #F48A8F; border-left-color: #EE6B71; border-bottom-color: #6E0C11; border-right-color: #6E0C11; }
/* the two teams in the picked fixture, and a followed club: a yellow outline */
.rt-table tr.is-selected td > span, .rt-table tr.is-followed td > span { outline: 2px solid #F6E33C; outline-offset: -2px; }
.rt-table tr.is-followed .team-name { color: inherit; font-weight: 700; }
.rt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.rt-brand { font: italic 700 15px/1 var(--rt-font); color: #F6E33C; text-shadow: 1.5px 1.5px 0 #000; }
.rt-switch { padding: 4px 0; border: 0; background: none; cursor: pointer; font: italic 700 13px/1.2 var(--rt-font); color: #C9D2FF; text-decoration: underline; text-underline-offset: 3px; }
.rt-switch:hover { color: #fff; }
.rt-switch:focus-visible { outline: 2px solid #F6E33C; outline-offset: 2px; }
.rt-note { border-top: 0; padding: 8px 2px 0; }
@media (max-width: 560px) {
  .rt { padding: 12px 8px 8px; }
  .rt-title { font-size: 19px; padding-left: 34px; }
  .rt-table { border-spacing: 3px 3px; }
  .rt-table td > span { font-size: 14px; padding: 2px 5px; }
  .rt-table td.rt-pos { width: 24px; }
  .rt-table td.rt-n { width: 30px; }
  .rt.is-full .rt-table td.rt-n { width: 24px; }
  .rt.is-full .rt-table td > span { font-size: 13px; }
}
.rt-in { width: max-content; max-width: 100%; margin: 0 auto; }
.rt-table { width: auto; min-width: 0; }
.rt-table td.rt-team > span { min-width: 230px; }
.rt-table td.rt-n { width: 38px; }
.rt-table thead th { font-size: 15px; }
.rt-title { font-size: 24px; padding-left: 40px; }
@media (max-width: 560px) {
  .rt-in { width: 100%; }
  .rt-table { width: 100%; }
  .rt-table td.rt-team > span { min-width: 0; }
  .rt-table td.rt-n { width: 32px; }
  .rt-title { font-size: 20px; padding-left: 30px; }
}
.rt-table tbody tr, .rt-table tbody td, .rt-table thead th { border: 0 !important; box-shadow: none !important; }
.rt-table thead tr { border: 0 !important; }

/* ===== Build 1_185: the TV table matched exactly to the "League Division One" photograph ===== */
.rt {
  padding: 18px 26px 12px !important; border-radius: 4px !important;
  background:
    radial-gradient(140% 120% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 40, 0.35) 100%),
    linear-gradient(180deg, #2E40B8 0%, #2A3BB0 50%, #2535A6 100%) !important;
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.7) !important;
}
.rt-in { width: 100% !important; max-width: 560px !important; }
.rt-title { margin: 0 0 4px !important; padding-left: 52px !important; font: italic 700 26px/1.1 'Arial', 'Helvetica Neue', Helvetica, sans-serif !important; color: #FFF34D !important; text-shadow: 2px 2px 0 #000 !important; letter-spacing: 0 !important; }
.rt-table { width: 100% !important; border-collapse: separate !important; border-spacing: 6px 3px !important; }
.rt-table thead th { padding: 0 2px 2px !important; font: italic 700 16px/1.1 'Arial', Helvetica, sans-serif !important; color: #FFF7B8 !important; text-shadow: 1.5px 1.5px 0 #000 !important; }
.rt-table thead th.rt-team { padding-left: 4px !important; }
.rt-table tbody td { padding: 0 !important; height: auto !important; line-height: 1 !important; vertical-align: middle !important; }
.rt-table td > span {
  min-height: 0 !important; height: 26px; padding: 0 8px !important; border-radius: 0 !important;
  font: italic 700 19px/26px 'Arial', 'Helvetica Neue', Helvetica, sans-serif !important; letter-spacing: 0 !important;
  color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.75);
  background: linear-gradient(180deg, #5B6FDC 0%, #4559CC 45%, #3A4DBE 55%, #3446B4 100%);
  border-top: 1px solid #A5B2F2; border-left: 1px solid #8696E8; border-bottom: 1px solid #1B2380; border-right: 1px solid #1B2380;
  box-shadow: none !important;
}
.rt-table td.rt-pos { width: 40px !important; }
.rt-table td.rt-pos > span { justify-content: flex-end; padding-right: 7px !important; }
.rt-table td.rt-team > span { min-width: 0 !important; }
.rt-table td.rt-n { width: 44px !important; }
.rt-table td.rt-n > span { justify-content: center; padding: 0 4px !important; }
.rt-table svg.kit-shield { width: 15px !important; height: 18px !important; margin: 0 7px 0 0 !important; }
/* zones keep the Division Three photograph's colours */
.rt-table tr.zone-promotion td > span { color: #1B2A8C; text-shadow: none; background: linear-gradient(180deg, #FFFFFF 0%, #F2F4FB 55%, #DDE2F1 100%); border-top-color: #fff; border-left-color: #fff; border-bottom-color: #7E89BE; border-right-color: #7E89BE; }
.rt-table tr.zone-playoff td > span { background: linear-gradient(180deg, #F29445 0%, #E2731F 50%, #D06214 100%); border-top-color: #F9BE8A; border-left-color: #F4A766; border-bottom-color: #7E3505; border-right-color: #7E3505; }
.rt-table tr.zone-relegation td > span { background: linear-gradient(180deg, #EC4E55 0%, #D52D35 50%, #BB1E26 100%); border-top-color: #F6959A; border-left-color: #F0747A; border-bottom-color: #6E0C11; border-right-color: #6E0C11; }
.rt-foot { margin-top: 4px !important; }
.rt-brand { font: italic 700 17px/1 'Arial', Helvetica, sans-serif !important; color: #FFF34D !important; }
@media (max-width: 560px) {
  .rt { padding: 12px 8px 8px !important; }
  .rt-title { font-size: 20px !important; padding-left: 36px !important; }
  .rt-table { border-spacing: 3px 3px !important; }
  .rt-table thead th { font-size: 14px !important; }
  .rt-table td > span { height: 24px; font-size: 15.5px !important; line-height: 24px !important; padding: 0 5px !important; }
  .rt-table td.rt-pos { width: 30px !important; }
  .rt-table td.rt-n { width: 34px !important; }
  .rt.is-full .rt-table td.rt-n { width: 26px !important; }
  .rt.is-full .rt-table td > span { font-size: 13.5px !important; }
}

/* ===== Build 1_186: free games are not saved ===== */
.free-nosave { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; max-width: var(--shell); margin: 10px auto 0; padding: 10px 16px; border-radius: 12px; background: rgba(245, 190, 30, 0.12); border: 1.5px solid rgba(245, 190, 30, 0.55); color: #FFF3C4; }
.free-nosave p { margin: 0; font-size: 14.5px; flex: 1 1 280px; }
.free-nosave strong { color: #FFD965; }
.free-nosave span { display: inline; opacity: 0.85; }
.free-nosave-go { background: var(--gold-grad, #F5BE1E); color: #1A1405; border: 0; font-weight: 800; }
@media (max-width: 560px) { .free-nosave { margin: 8px 12px 0; } }

/* ===== Build 1_187: TV table colours measured from Matt's photographs =====
   Screen #2E3A73 (muted navy), bars #656980 (grey-lavender) with a soft bevel, white bold italic
   lettering with a dark drop shadow, pale yellow title. Zones from the Division Three photo. */
.rt {
  background:
    radial-gradient(130% 115% at 50% 40%, rgba(0, 0, 0, 0) 60%, rgba(5, 10, 40, 0.35) 100%),
    linear-gradient(180deg, #313D77 0%, #2E3A73 50%, #2B366D 100%) !important;
}
.rt-title { color: #F1E35C !important; text-shadow: 2px 2px 0 #11142A !important; }
.rt-table thead th { color: #F3EDB0 !important; text-shadow: 1.5px 1.5px 0 #11142A !important; }
.rt-brand { color: #F1E35C !important; text-shadow: 1.5px 1.5px 0 #11142A !important; }
.rt-table td > span {
  color: #F7F7FA;
  text-shadow: 2px 2px 0 #1C1F33;
  background: linear-gradient(180deg, #7C8098 0%, #6B6F87 18%, #656980 50%, #5E6279 82%, #54586E 100%);
  border-top: 1px solid #A9ADBE; border-left: 1px solid #8C90A4; border-bottom: 1px solid #3A3D52; border-right: 1px solid #3A3D52;
}
/* promotion: white bars with navy lettering (Division Three photo) */
.rt-table tr.zone-promotion td > span { color: #1E2763; text-shadow: none; background: linear-gradient(180deg, #F6F7FB 0%, #E8EAF2 50%, #D9DCE8 100%); border-top-color: #FFFFFF; border-left-color: #F2F3F8; border-bottom-color: #8A8EA6; border-right-color: #8A8EA6; }
/* play-offs: burnt orange (Division Three photo) */
.rt-table tr.zone-playoff td > span { color: #FFF6EC; text-shadow: 2px 2px 0 #4A1E05; background: linear-gradient(180deg, #D98A45 0%, #C9692A 22%, #BA571B 55%, #A84A14 100%); border-top-color: #EDB27C; border-left-color: #E29A5C; border-bottom-color: #5E2608; border-right-color: #5E2608; }
/* relegation: the same muted TV red */
.rt-table tr.zone-relegation td > span { color: #FFF1F1; text-shadow: 2px 2px 0 #430B0E; background: linear-gradient(180deg, #CC5A5E 0%, #B73D42 22%, #A6303A 55%, #932830 100%); border-top-color: #E39598; border-left-color: #D7787C; border-bottom-color: #4F0E12; border-right-color: #4F0E12; }
.rt-switch { color: #D3D6E6 !important; }
/* Build 1_187: the locked Daily Challenge card */
.dc-lock-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: rgba(245, 190, 30, 0.16); border: 1px solid rgba(245, 190, 30, 0.6); color: #FFD965; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dc-have { margin: 10px 0 0; font-size: 14px; }
.dc-have a { color: #FFD965; font-weight: 700; }

/* ===== Build 1_188: the "stage finished" card that carries the player on ===== */
.intl-stage-done { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; background: rgba(6, 12, 22, 0.72); backdrop-filter: blur(3px); }
.intl-stage-done[hidden] { display: none; }
.isd-card { width: min(520px, 100%); display: grid; justify-items: center; gap: 12px; text-align: center; padding: 28px 24px 20px; border-radius: 22px; background: linear-gradient(160deg, #18263a, #0d1726); border: 2px solid #e8b84a; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(232, 184, 74, 0.14); color: #fff; animation: ncNbIn 0.45s cubic-bezier(.2, 1.3, .4, 1) both; }
.isd-k { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #e8b84a; }
.isd-h { margin: 0; font-size: clamp(26px, 6vw, 34px); line-height: 1.1; }
.isd-p { margin: 0; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.isd-go { width: 100%; max-width: 400px; min-height: 60px; font-size: 21px; background: var(--gold-grad, #F5BE1E); color: #1A1405; border: 0; font-weight: 800; animation: ncNbPulse 1.8s ease-in-out 0.6s infinite; }
.isd-stay { border: 0; background: none; color: rgba(255, 255, 255, 0.7); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.isd-stay:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .isd-card, .isd-go { animation: none; } }

/* ===== Build 1_191: the two-page league set-up (Matt) ===== */
.qs-count { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 15px; color: #10261A; }
.qs-count strong { font-size: 17px; }
.qs-bar { flex: 1; height: 8px; border-radius: 999px; background: #E6EAE7; overflow: hidden; }
.qs-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1F8A4C, #3CBF6E); transition: width .4s; }
.qs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.qs-item { padding: 16px 18px; border-radius: 16px; border: 2px solid #E3E8E4; background: #fff; transition: border-color .3s, background .3s; }
.qs-item.is-done { border-color: #A9DDBD; background: linear-gradient(180deg, #F3FBF6, #fff 60%); }
.qs-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.qs-head h3 { margin: 2px 0 0; font-size: 21px; color: #10261A; }
.qs-head p { margin: 2px 0 0; font-size: 14.5px; color: #4B5A50; }
.qs-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #10261A; color: #fff; font: 800 15px/1 var(--cond); }
.qs-num.is-done { background: #1F8A4C; }
.qs-num svg { width: 20px; height: 20px; color: #fff; }
.qs-name { width: 100%; max-width: 460px; min-height: 48px; font-size: 18px; padding: 8px 14px; border: 2px solid #D5DCD7; border-radius: 12px; }
.qs-hint { margin: 8px 0 0; font-size: 14px; color: #5A6A60; }
.qs-hint-strong { color: #8A6400; font-weight: 700; }
.qs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qs-chip { min-height: 46px; padding: 8px 18px; border-radius: 12px; border: 2px solid #D5DCD7; background: #fff; color: #10261A; font: 700 16px/1.1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.qs-chip small { font-weight: 600; color: #6B7A70; }
.qs-chip:hover { border-color: #F5BE1E; }
.qs-chip.is-on { background: #10261A; border-color: #10261A; color: #fff; }
.qs-chip.is-on small { color: #FFD965; }
.qs-chip-num { min-width: 60px; justify-content: center; font: 800 22px/1 var(--cond); }
.qs-chip svg { width: 18px; height: 18px; }
.qs-divnames { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 12px; }
.qs-divname { border: 0; padding: 0; background: none; margin: 0; }
.qs-divname label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #4B5A50; }
.qs-divname input { min-height: 44px; font-size: 16px; padding: 6px 12px; border: 2px solid #D5DCD7; border-radius: 10px; }
.qs-div { margin: 12px 0 0; padding: 12px; border-radius: 14px; border: 1.5px solid #E3E8E4; background: #FAFBFA; }
.qs-divh { margin: 0 0 8px; font-size: 17px; display: flex; justify-content: space-between; gap: 8px; }
.qs-drop { display: grid; gap: 6px; padding: 14px; border-radius: 14px; border: 3px dashed #F5BE1E; background: #FFFBEA; cursor: text; }
.qs-drop-k { font: 800 18px/1.1 var(--cond); color: #8A6400; }
.qs-drop textarea { width: 100%; min-height: 110px; border: 0; background: transparent; font: 16px/1.4 var(--sans); resize: vertical; color: #10261A; }
.qs-drop textarea:focus { outline: none; }
.qs-drop:focus-within { border-style: solid; background: #FFF6D2; }
.qs-drop.is-small { padding: 8px 12px; border-width: 2px; }
.qs-drop.is-small .qs-drop-k { font-size: 14px; }
.qs-drop.is-small textarea { min-height: 36px; }
.qs-rows { margin-top: 12px !important; }
.qs-plusminus { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 15px; font-weight: 700; color: #10261A; }
.qs-plusminus span { margin-right: 4px; }
.qs-pm { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #10261A; background: #fff; font: 800 24px/1 var(--sans); cursor: pointer; color: #10261A; }
.qs-pm:hover:not(:disabled) { background: #10261A; color: #fff; }
.qs-pm:disabled { opacity: .35; cursor: default; }
.qs-type { margin-top: 10px; padding: 6px 0; border: 0; background: none; color: #1F6FB8; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; }
.qs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.qs-card { position: relative; display: grid; justify-items: center; gap: 6px; padding: 16px 12px 14px; border-radius: 16px; border: 2px solid #D5DCD7; background: #fff; cursor: pointer; text-align: center; color: #10261A; }
.qs-card strong { font: 800 19px/1.1 var(--cond); }
.qs-card > span:not(.qs-card-art):not(.qs-card-tick) { font-size: 14px; color: #4B5A50; }
.qs-card-art { display: flex; gap: 4px; justify-content: center; min-height: 40px; align-items: center; }
.qs-card:hover { border-color: #F5BE1E; transform: translateY(-2px); }
.qs-card.is-on { border-color: #1F8A4C; background: linear-gradient(180deg, #EAF7EF, #fff); box-shadow: 0 0 0 3px rgba(31, 138, 76, .18); }
.qs-card-tick { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1F8A4C; }
.qs-card-tick svg { width: 17px; height: 17px; color: #fff; }
.qs-die { filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.qs-sub { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #DDE3DF; display: grid; gap: 8px; }
.qs-sub > span { font-size: 15px; font-weight: 700; color: #10261A; }
.qs-k-s, .qs-k-n, .qs-k-w, .qs-k-p { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; font-size: 12px; }
.qs-k-s { background: #1F8A4C; } .qs-k-n { background: #E8A100; } .qs-k-w { background: #C0392B; } .qs-k-p { background: #6A3FA0; }
.qs-seeds { border: 0; background: none; padding: 0; margin: 0; }
.qs-seeds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 6px 14px; }
.qs-seeds li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #F6F8F7; }
.qs-seed-name { display: inline-flex; align-items: center; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-seed-btns { display: inline-flex; gap: 4px; flex: none; }
.qs-seed { width: 36px; height: 36px; border-radius: 9px; border: 2px solid #D5DCD7; background: #fff; font: 800 14px/1 var(--sans); cursor: pointer; color: #4B5A50; }
.qs-seed-green.is-on { background: #1F8A4C; border-color: #1F8A4C; color: #fff; }
.qs-seed-amber.is-on { background: #E8A100; border-color: #E8A100; color: #fff; }
.qs-seed-red.is-on { background: #C0392B; border-color: #C0392B; color: #fff; }
.qs-seed-purple.is-on { background: #6A3FA0; border-color: #6A3FA0; color: #fff; }
.qs-meetrow { border: 0; background: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.qs-meetrow b { font-size: 14px; color: #4B5A50; }
.qs-zones { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.qs-zones li { padding: 8px 12px; border-radius: 10px; background: #F6F8F7; }
.qs-zones strong { margin-right: 6px; }
.qs-rules { margin-top: 10px; }
.qs-follows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; margin-top: 12px; }
.qs-follow-pick { display: grid; gap: 4px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.qs-follow-pick select { min-height: 48px; font-size: 16px; padding: 6px 10px; border-radius: 10px; border: 2px solid #D5DCD7; text-transform: none; letter-spacing: 0; font-weight: 600; }
.qs-follow-1 span { color: #A87A00; } .qs-follow-1 select { border-color: #F5BE1E; }
.qs-follow-2 span { color: #1F6FB8; } .qs-follow-2 select { border-color: #5AA9E6; }
.qs-summary { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: #10261A; color: #fff; }
.qs-summary h3 { margin: 0 0 8px; font-size: 20px; color: #FFD965; }
.qs-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qs-summary li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.qs-summary li > svg { flex: none; width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: #1F8A4C; color: #fff; }
.qs-summary li > span:not(.qs-dot) { flex: 1; }
.qs-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.5); }
.qs-edit { border: 1.5px solid rgba(255,255,255,.5); background: none; color: #fff; border-radius: 8px; padding: 4px 12px; cursor: pointer; font-weight: 700; }
.qs-edit:hover { background: rgba(255,255,255,.12); }
/* followed teams: gold for the first, sky blue for the second — in fixtures and the TV table */
.fixture .home.is-pref-1 .team-name, .fixture .away.is-pref-1 .team-name { color: #9A6B00; font-weight: 800; }
.fixture .home.is-pref-2 .team-name, .fixture .away.is-pref-2 .team-name { color: #1F6FB8; font-weight: 800; }
.fixture:has(.is-pref-1) { background: #FFF6D6; box-shadow: inset 4px 0 0 #F5BE1E; }
.fixture:has(.is-pref-2) { background: #E6F2FC; box-shadow: inset 4px 0 0 #5AA9E6; }
.fixture:has(.is-pref-1):has(.is-pref-2) { background: linear-gradient(90deg, #FFF6D6, #E6F2FC); box-shadow: inset 4px 0 0 #F5BE1E, inset -4px 0 0 #5AA9E6; }
.rt-table tr.is-pref-1 td > span { outline: 3px solid #F6D23C; outline-offset: -3px; }
.rt-table tr.is-pref-2 td > span { outline: 3px solid #6CC4FF; outline-offset: -3px; }
@media (max-width: 560px) {
  .qs-item { padding: 14px 12px; }
  .qs-head h3 { font-size: 19px; }
  .qs-cards { grid-template-columns: 1fr; }
  .qs-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; column-gap: 12px; }
  .qs-card-art { grid-row: span 2; }
}
/* Build 1_191 (Matt): C, P and R stand out on the TV table — a white ring and a little more size */
.rt-table .clinch { width: 20px; height: 20px; min-width: 20px; font-size: 12px; margin-left: 8px; box-shadow: 0 0 0 2px #FFFFFF, 0 1px 3px rgba(0, 0, 0, 0.5) !important; text-shadow: none; font-style: normal; }
.rt-table .clinch-c { background: #138A43; }
.rt-table .clinch-p { background: #1FA35A; }
.rt-table .clinch-r { background: #D81E28; }

/* ===== Build 1_192: finals seeding in three bold steps (Matt) ===== */
.fsw { padding: 18px; }
.fsw-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.fsw-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #EEF1EF; color: #6B7A70; font: 800 14px/1 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.fsw-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #10261A; font-size: 13px; }
.fsw-steps li.is-on { background: #10261A; color: #fff; }
.fsw-steps li.is-on span { background: #F5BE1E; }
.fsw-steps li.is-done { background: #DDF2E5; color: #1F8A4C; }
.fsw-steps li.is-done span { background: #1F8A4C; color: #fff; }
.fsw-banner { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 16px 16px; border-radius: 18px; color: #fff; margin-bottom: 14px; }
.fsw-green .fsw-banner { background: linear-gradient(160deg, #23A35A, #146B38); }
.fsw-red .fsw-banner { background: linear-gradient(160deg, #E0434B, #9C1A21); }
.fsw-review .fsw-banner, .fsw-review-step .fsw-banner { background: linear-gradient(160deg, #18263a, #0d1726); }
.fsw:not(.fsw-green):not(.fsw-red) .fsw-banner { background: linear-gradient(160deg, #18263a, #0d1726); border: 2px solid #e8b84a; }
.fsw-q { margin: 0; font-size: clamp(26px, 5.5vw, 36px); line-height: 1.05; color: #fff; }
.fsw-count { margin: 0; font: 800 20px/1 var(--cond); letter-spacing: .02em; }
.fsw-count b { font-size: 44px; color: #FFE45C; margin-right: 4px; }
.fsw-pips { margin: 2px 0 0; display: flex; gap: 6px; }
.fsw-pips span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); }
.fsw-pips span.is-on { background: #FFE45C; border-color: #FFE45C; }
.fsw-sub { margin: 0; font-size: 15px; color: rgba(255,255,255,.9); }
.fsw-sub-dark { color: #4B5A50; text-align: center; margin-top: 12px; }
.fsw-grid { gap: 8px !important; }
.fsw-grid .intl-pick { min-height: 54px; border-width: 2px; font-weight: 700; transition: transform .12s, background .2s; }
.fsw-grid .intl-pick:hover:not(:disabled) { transform: translateY(-2px); }
.fsw-green .fsw-grid .intl-pick.is-on { background: #1F8A4C !important; border-color: #146B38 !important; color: #fff !important; box-shadow: 0 6px 14px -6px rgba(20, 107, 56, .7); }
.fsw-red .fsw-grid .intl-pick.is-on { background: #C8262E !important; border-color: #9C1A21 !important; color: #fff !important; box-shadow: 0 6px 14px -6px rgba(156, 26, 33, .7); }
.fsw-grid .intl-pick.is-on .intl-pick-status, .fsw-grid .intl-pick.is-on .intl-pick-tick { color: #fff !important; }
.fsw-grid .intl-pick:disabled { opacity: .45; }
.fsw-red .fsw-grid .intl-pick.is-green { background: #E6F5EC; border-color: #A9DDBD; opacity: .7; }
.fsw-next.is-ready:not(:disabled) { animation: ncNbPulse 1.8s ease-in-out infinite; }
.fsw-draw { background: var(--gold-grad, #F5BE1E) !important; color: #1A1405 !important; border: 0 !important; font-weight: 800; }
.fsw-review { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.fsw-col { padding: 12px 14px; border-radius: 14px; }
.fsw-col h3 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.fsw-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: #fff; font-weight: 700; }
.fsw-col.is-green { background: #1F8A4C; }
.fsw-col.is-red { background: #C8262E; }
@media (prefers-reduced-motion: reduce) { .fsw-next.is-ready { animation: none; } }
/* Build 1_192: season-end tables in the TV look */
.season-block-tv { margin: 10px 0 18px; }
.season-block-tv .clinch-key { color: #DDE3FF; margin-top: 8px; }
.season-po-wait { color: #FFE9A8; }
/* Build 1_193: the free Daily Challenge try */
.dc-lockline { margin: 12px 0 0; font-size: 14px; color: #FFD965; }
.dc-free-done h2 { margin-top: 10px; }

/* ===== Build 1_194: the trophy lift ===== */
.tl-overlay { position: fixed; inset: 0; z-index: 1000; background: #07111F; }
.tl-stage { position: absolute; inset: 0; }
.tl-canvas { display: block; width: 100%; height: 100%; }
.tl-words { position: absolute; left: 0; right: 0; top: 7%; text-align: center; color: #fff; opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .7s ease, transform .7s cubic-bezier(.2, 1.3, .4, 1); pointer-events: none; text-shadow: 0 4px 18px rgba(0,0,0,.7); }
.tl-overlay.is-lifted .tl-words { opacity: 1; transform: none; }
.tl-k { margin: 0 0 6px; font: 800 clamp(13px, 2.4vw, 17px)/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; color: #F5BE1E; }
.tl-name { margin: 0; display: inline-flex; align-items: center; gap: 14px; font: 800 clamp(40px, 9vw, 88px)/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.tl-name img { width: clamp(44px, 8vw, 84px); height: auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.tl-close { position: absolute; right: 16px; top: 16px; z-index: 2; padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.5); background: rgba(7,17,31,.6); color: #fff; font: 700 15px/1 var(--sans); cursor: pointer; }
.tl-close:hover { background: rgba(255,255,255,.15); }
body.tl-open { overflow: hidden; }
.tl-words { top: auto !important; bottom: 7%; }

/* ===== Build 1_198: Nation Challenge on the International page ===== */
.intl-nc-row { margin: 0 0 18px; }
.intl-nc-card .intl-nc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }
.intl-nc-card .intl-nc-btns .btn { margin: 0; }
.intl-nc-card .intl-nc-roll { background: transparent; border: 1.5px solid rgba(245,190,30,.75); color: #F5D978; }
.intl-nc-card .intl-nc-roll:hover { background: rgba(245,190,30,.14); }
.intl-v2 .nct-banner { margin-top: 0; }

/* ===== Build 1_199: the League Builder page ===== */
.lbx { display: grid; gap: 18px; }
.lbx-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.lbx-cont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.lbx-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; justify-content: center; }
.lbx .dom-card { gap: 8px; height: 100%; }
.lbx .dom-card .choice-go { margin-top: auto; padding-top: 6px; }
.lbx .dom-pick { margin: 0; }
.lbx .dom-pick > span { color: var(--chalk); font-weight: 700; }
.lbx .dom-pick select { max-width: none; }
@media (max-width: 760px) { .lbx-top, .lbx-cont { grid-template-columns: 1fr; } }

/* ===== Build 1_200: every International card its own identity ===== */
.intl-v2 .intl-card.has-ident {
  background: linear-gradient(155deg, color-mix(in srgb, var(--ic) 36%, #0c1424) 0%, color-mix(in srgb, var(--ic) 12%, #0a1120) 58%, #0a1120 100%) !important;
  border: 1.5px solid color-mix(in srgb, var(--ic) 62%, transparent) !important;
  box-shadow: inset 0 4px 0 var(--ic), 0 30px 60px -36px rgba(0, 0, 0, 0.9) !important;
}
.intl-v2 .intl-card.has-ident h2 { color: color-mix(in srgb, var(--ic) 30%, #ffffff); }
.intl-v2 .intl-card.has-ident .home-game-emblem { filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--ic) 55%, transparent)); }
.intl-v2 .intl-card.has-ident.is-locked { filter: saturate(0.8); }
.intl-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; padding: 0; list-style: none; }
.intl-card-centred .intl-facts, .home-game-centred .intl-facts { justify-content: center; }
.intl-facts li { font: 800 12px/1 var(--cond, sans-serif); letter-spacing: .07em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; color: #fff;
  background: color-mix(in srgb, var(--ic, #F5BE1E) 30%, transparent); border: 1px solid color-mix(in srgb, var(--ic, #F5BE1E) 65%, transparent); }
.intl-nc-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.intl-nc-flags .hs-flag { width: 30px; height: 22px; border-radius: 3px; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
@media (max-width: 560px) { .intl-nc-flags .hs-flag { width: 24px; height: 18px; } .intl-nc-flags .hs-flag:nth-child(n+11) { display: none; } }
/* Build 1_203: Nation Challenge centred like the other full-width cards */
.intl-nc-card.home-game-centred .intl-nc-flags, .intl-nc-card.home-game-centred .intl-nc-btns { justify-content: center; }
.intl-nc-card.home-game-centred > p { margin-left: auto; margin-right: auto; text-align: center; }
/* Build 1_203: the Daily Challenge says what today's subject means */
.dc-head .dc-about { margin: 4px auto 6px; max-width: 60ch; color: #F5D978; font-weight: 600; text-align: center; }
/* Build 1_204: the Daily Challenge table in the TV look */
.dc-board .dc-rt { margin: 4px 0 10px; }
.dc-board .dc-rt .dc-you { font-style: normal; font-weight: 700; margin-left: 6px; }
.dc-board .dc-rt .dc-you-below td.rt-pos > span::before { content: ''; }
.dc-board .dc-rt .dc-you-below td { padding-top: 10px; }
.dc-board .dc-rt .dc-hide { margin-left: 8px; font-size: 11px; padding: 2px 6px; }
/* Build 1_205: more room between a flag and the nation's name, and the flags on/off switch */
.rt-table td.rt-team .flag { margin-right: 9px; }
.rt.no-flags .rt-table td.rt-team .flag { display: none; }
.rt-switches { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }

/* ===== Build 1_205: the quick league-of-nations set-up (Matt) ===== */
.nlq { max-width: 1040px; }
.nlq-hero { display: flex; align-items: center; gap: 16px; margin: 4px 0 16px; color: #fff; }
.nlq-hero .nl-head-emblem svg { width: 62px; height: 62px; }
.nlq-hero h1 { margin: 0; font: 800 clamp(30px, 4.4vw, 44px)/1.02 var(--cond); text-transform: uppercase; letter-spacing: .01em; }
.nlq-hero p { margin: 4px 0 0; color: #F5D978; font-weight: 600; }
.nlq-top { position: sticky; top: 64px; z-index: 5; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 10px 28px -16px rgba(0,0,0,.6); }
.nlq-count { margin: 0 0 10px; }
.nlq-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nlq-step { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px 6px 7px; border-radius: 999px; border: 2px solid #E3D2D2; background: #FFF6F6; color: #7A2A2A; font: 700 14px/1 var(--sans); cursor: pointer; }
.nlq-step:disabled { cursor: default; opacity: .75; }
.nlq-step .nlq-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #D93A3A; color: #fff; }
.nlq-step .nlq-mark svg { width: 15px; height: 15px; }
.nlq-step.is-done { border-color: #A9DDBD; background: #F1FBF4; color: #145C33; }
.nlq-step.is-done .nlq-mark { background: #1F8A4C; }
.nlq-step.is-here { border-color: #F5BE1E; box-shadow: 0 0 0 3px rgba(245,190,30,.35); }
.nlq-card { padding: 20px 20px 22px; border-radius: 20px; background: #fff; color: #10261A; box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); margin: 0 0 14px; }
.nlq-card h3 { margin: 0 0 6px; font: 800 clamp(22px, 3vw, 28px)/1.1 var(--cond); text-transform: uppercase; letter-spacing: .01em; color: #10261A; }
.nlq-sub, .nlq-card > p { margin: 0 0 12px; color: #4B5A50; font-size: 15.5px; }
.nlq-auto { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #1B2C63, #2E3A73 55%, #3B2E73); color: #fff; border: 2px solid #F5BE1E; }
.nlq-auto h3 { color: #FFD45A; }
.nlq-auto p { margin: 0; color: #E6ECFF; max-width: 56ch; }
.nlq-auto-go { flex: none; }
.nlq-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; color: #C9D3E8; font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; }
.nlq-or::before, .nlq-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.25); }
.nlq-field { display: grid; gap: 8px; margin: 0 0 18px; }
.nlq-field > span { font: 800 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #4B5A50; }
.nlq-leaguename { width: 100%; max-width: 460px; min-height: 50px; font-size: 18px; padding: 8px 14px; border: 2px solid #D5DCD7; border-radius: 12px; }
.nlq-two, .nlq-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.nlq-choice { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 2px solid #D5DCD7; background: #fff; color: #10261A; cursor: pointer; font: inherit; }
.nlq-choice b { display: block; font: 800 17px/1.15 var(--sans); }
.nlq-choice small { display: block; margin-top: 3px; color: #5A6A60; font-size: 13.5px; }
.nlq-choice:hover { border-color: #F5BE1E; }
.nlq-choice.is-on { border-color: #1F8A4C; background: #EFFAF2; box-shadow: inset 0 0 0 1px #1F8A4C; }
.nlq-ico svg { width: 38px; height: 38px; }
.nlq-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.nlq-next[disabled], .nlq-start[disabled] { opacity: .5; cursor: not-allowed; }
.nlq-sticky { position: sticky; bottom: 10px; z-index: 4; padding: 8px; margin: 14px -8px -8px; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 -6px 20px -12px rgba(0,0,0,.4); }
.nlq-divhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.nlq-divhead p { margin: 0; color: #4B5A50; }
.nlq-tally { margin: 0; padding: 8px 14px; border-radius: 12px; background: #10261A; color: #fff; font: 700 15px/1 var(--sans); white-space: nowrap; }
.nlq-tally b { color: #FFD45A; font: 800 22px/1 var(--cond); margin-right: 4px; }
.nlq-regions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.nlq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 8px; margin-top: 14px; }
.nlq-tile { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 8px 10px; border-radius: 12px; border: 2px solid #E1E6E2; background: #FAFBFA; color: #10261A; cursor: pointer; text-align: left; font: 700 15px/1.15 var(--sans); transition: transform .12s, border-color .15s, background .15s; }
.nlq-tile:hover { border-color: #F5BE1E; transform: translateY(-1px); }
.nlq-tile:active { transform: scale(.97); }
.nlq-tile .nlq-flag .flag { width: 28px; height: 21px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.nlq-tile .nlq-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nlq-tile .nlq-state { flex: none; display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: #E9EDEA; color: #4B5A50; font: 800 16px/1 var(--sans); }
.nlq-tile .nlq-state svg { width: 16px; height: 16px; }
.nlq-tile.is-in { border-color: #1F8A4C; background: #EAF8EF; }
.nlq-tile.is-in .nlq-state { background: #1F8A4C; color: #fff; }
.nlq-tile:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.nlq-tile:disabled .nlq-state { width: auto; padding: 0 6px; border-radius: 8px; font-size: 11px; }
.nlq-confirm h3 b { color: #1F8A4C; }
.nlq-picked { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nlq-picked li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #F1F4F2; font: 600 14px/1 var(--sans); }
.nlq-picked .flag { width: 20px; height: 15px; border-radius: 2px; }
.nlq-sum { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 8px; max-width: 420px; }
.nlq-sum li { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: #F1F4F2; font-size: 17px; }
.nlq-sum li span { font-weight: 800; color: #1F8A4C; }
.nlq-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #FFF4E5; color: #8A4B00; font-weight: 600; }
.nlq-seedlist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.nlq-seedlist li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #F6F8F7; }
.nlq-seedlist li > span:not(.seed-dot) { flex: 1; min-width: 0; font-weight: 600; }
.nlq-seedlist select { min-height: 36px; border-radius: 8px; }
.nlq-cancel { text-align: center; margin: 6px 0 0; }
@media (max-width: 560px) {
  .nlq-top { top: 58px; padding: 10px; }
  .nlq-step { font-size: 12.5px; min-height: 34px; padding: 4px 10px 4px 5px; }
  .nlq-card { padding: 16px 14px 18px; }
  .nlq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nlq-tile { font-size: 13.5px; min-height: 46px; padding: 6px 8px; gap: 6px; }
  .nlq-tile .nlq-flag .flag { width: 24px; height: 18px; }
  .nlq-go .btn { width: 100%; justify-content: center; }
}
/* Build 1_205 (Matt): the gold buttons' words sit in the middle (the earlier padding-top rule left them high) */
.lbx .dom-card .choice-go, .dom-paid .dom-card .choice-go { padding: 12px 22px 11px; line-height: 1; align-self: flex-start; }
/* Build 1_206: Back sits beside Next in the quick set-up */
.nlq-go .nlq-back { order: -1; }

/* ===== Build 1_207 (Matt): the round controls tidied into one card ===== */
.rc { padding: 14px 14px 12px; border-bottom: 1px solid #E6EAE7; background: linear-gradient(180deg, #F7FAF8, #fff); }
.rc-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.rc-row > :last-child { justify-self: end; }
.rc-arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #10261A; color: #fff; font: 800 30px/1 var(--sans); cursor: pointer; box-shadow: 0 4px 10px -4px rgba(0,0,0,.45); transition: transform .12s, background .15s; }
.rc-arrow span { margin-top: -3px; }
.rc-arrow:hover:not(:disabled) { background: #1F8A4C; transform: translateY(-1px); }
.rc-arrow:active:not(:disabled) { transform: scale(.94); }
.rc-arrow:disabled { background: #D9DFDB; color: #fff; box-shadow: none; cursor: default; }
.rc-mid { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.rc-title { margin: 0; font: 800 15px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #4B5A50; }
.rc-title b { font-size: 30px; color: #10261A; margin: 0 2px; vertical-align: -3px; }
.rc-title span { color: #7A877F; }
.rc-jump select { min-height: 34px; max-width: 100%; padding: 4px 30px 4px 12px; border-radius: 999px; border: 1.5px solid #D5DCD7; background-color: #fff; font: 600 13.5px/1.2 var(--sans); color: #10261A; }
.rc-finish { min-height: 48px; padding: 0 20px; border-radius: 999px; }
.rc .autobar { margin: 12px 0 0; padding: 0; background: none; border: 0; display: grid; justify-items: stretch; gap: 6px; text-align: center; }
.rc .autobar .btn-auto-open { width: 100%; justify-content: center; min-height: 50px; }
.rc .autobar .autobar-note { margin: 0; font-size: 13px; }
.rc-bottom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid #E6EAE7; background: #F7FAF8; border-radius: 0 0 var(--r-md, 16px) var(--r-md, 16px); }
.rc-bottom .autobar { flex: 1 1 260px; margin: 0; padding: 0; background: none; border: 0; }
.rc-bottom .autobar .autobar-note { display: none; }
.rc-bottom .rc-next { flex: 0 0 auto; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--gold-grad, #F5BE1E); color: #1A1405; border: 0; font: 800 16px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.rc-bottom .rc-next:disabled { opacity: .45; }
@media (max-width: 560px) {
  .rc-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .rc-arrow { width: 44px; height: 44px; font-size: 26px; }
  .rc-bottom .autobar, .rc-bottom .rc-next { flex: 1 1 100%; }
  .rc-bottom .rc-next { justify-content: center; }
}
.rc-bottom .autobar .btn-auto-open { width: 100%; justify-content: center; min-height: 48px; }
/* Build 1_207: Auto set-up's region question */
.nlq-auto-ask { flex: 1 1 100%; }
.nlq-auto-ask p { margin: 0 0 10px; color: #E6ECFF; }
.nlq-auto-ask b { color: #FFD45A; }
.nlq-auto-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.nlq-auto-region { min-height: 50px; padding: 8px 12px; border-radius: 12px; border: 2px solid rgba(255,212,90,.65); background: rgba(255,255,255,.08); color: #fff; font: 800 16px/1.15 var(--cond); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.nlq-auto-region:hover { background: #F5BE1E; color: #1A1405; border-color: #F5BE1E; }
/* Build 1_207 (Matt): the International page says which games have a quiz and which are dice only */
.intl-kind { margin: 26px 0 12px; text-align: center; color: #fff; }
.intl-kind:first-child { margin-top: 6px; }
.intl-kind h2 { margin: 8px 0 4px; font: 800 clamp(24px, 3.4vw, 34px)/1.05 var(--cond); text-transform: uppercase; letter-spacing: .01em; }
.intl-kind p { margin: 0 auto; max-width: 62ch; color: #C9D3E8; }
.intl-kind-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: 800 13px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.intl-kind-tag.is-quiz { background: rgba(20,184,166,.18); border: 1.5px solid #14B8A6; color: #8FF0E2; }
.intl-kind-tag.is-dice { background: rgba(245,190,30,.16); border: 1.5px solid #F5BE1E; color: #FFD965; }
.intl-kind { display: flex; flex-direction: column; align-items: center; }
.intl-kind-tag { width: max-content; }

/* ===== Build 1_209: the Cycle Seasons card's moving rankings ===== */
.intl-v2 .intl-card.has-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); column-gap: 26px; align-items: center; text-align: left; }
.intl-v2 .intl-card.has-side > :not(.cyr) { grid-column: 1; }
.intl-v2 .intl-card.has-side .intl-card-title, .intl-v2 .intl-card.has-side .intl-facts { justify-content: flex-start; }
.intl-v2 .intl-card.has-side > p { margin-left: 0; text-align: left; }
.intl-v2 .intl-card.has-side .home-play { justify-self: start; }
.cyr { grid-column: 2; grid-row: 1 / span 5; align-self: center; padding: 12px 12px 10px; border-radius: 16px; background: linear-gradient(160deg, rgba(142,91,216,.28), rgba(20,14,40,.55)); border: 1px solid rgba(190,160,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.cyr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 800 13px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #E3D6FF; }
.cyr-head b { color: #FFD965; font-weight: 800; letter-spacing: .04em; text-transform: none; font-size: 13.5px; }
.cyr-list { position: relative; height: calc(8 * 30px); }
.cyr-row { position: absolute; left: 0; right: 0; top: calc(var(--p) * 30px); height: 26px; display: grid; grid-template-columns: 22px 22px minmax(0, 1fr) 34px 52px; align-items: center; gap: 6px; padding: 0 8px; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font: 700 13.5px/1 var(--sans); transition: top .9s cubic-bezier(.4, 1.3, .5, 1), background .6s; }
.cyr-row .hs-flag { width: 20px; height: 15px; border-radius: 2px; }
.cyr-pos { font: 800 15px/1 var(--cond); color: #C9B8FF; text-align: center; }
.cyr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cyr-pts { text-align: right; font: 800 14px/1 var(--cond); color: #FFD965; }
.cyr-move { font: 800 11px/1 var(--sans); text-align: right; }
.cyr-row.is-up { background: rgba(31,169,104,.4); }
.cyr-row.is-up .cyr-move { color: #7DF0B0; }
.cyr-row.is-down { background: rgba(217,40,62,.35); }
.cyr-row.is-down .cyr-move { color: #FFA3AE; }
@media (max-width: 760px) {
  .intl-v2 .intl-card.has-side { display: block; text-align: center; }
  .intl-v2 .intl-card.has-side .intl-card-title, .intl-v2 .intl-card.has-side .intl-facts { justify-content: center; }
  .intl-v2 .intl-card.has-side > p { text-align: center; margin-left: auto; }
  .cyr { margin: 14px auto 16px; max-width: 360px; text-align: left; }
}

/* ===== Build 1_210 (Matt): the Next round button shines, and pulses once the round is played ===== */
.nlq-hint { margin: 2px 0 0; font-size: 14px; color: #5A6A60; }
.rc-bottom .rc-next { position: relative; overflow: hidden; box-shadow: 0 6px 16px -8px rgba(160,110,0,.8); }
.rc-bottom .rc-next::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 100%); transform: skewX(-18deg); animation: rc-shine 2.8s ease-in-out infinite; pointer-events: none; }
.rc-bottom .rc-next:disabled::after { animation: none; display: none; }
.rc-bottom .rc-next.is-ready { animation: rc-pulse 1.4s ease-in-out infinite; }
.rc-bottom .rc-next.is-ready::after { animation-duration: 1.6s; }
.rc-bottom .rc-next:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
@keyframes rc-shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes rc-pulse { 0%, 100% { box-shadow: 0 6px 16px -8px rgba(160,110,0,.8), 0 0 0 0 rgba(245,190,30,.65); transform: scale(1); } 50% { box-shadow: 0 6px 16px -8px rgba(160,110,0,.8), 0 0 0 9px rgba(245,190,30,0); transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .rc-bottom .rc-next::after, .rc-bottom .rc-next.is-ready { animation: none; } }

/* ===== Build 1_211: the World Shield card's spinning globe ===== */
.intl-v2 .intl-card.has-side .wglobe { grid-column: 2; grid-row: 1 / span 5; align-self: center; justify-self: center; width: 240px; height: 240px; opacity: .8; filter: drop-shadow(0 10px 30px rgba(245,190,30,.18)); }
@media (max-width: 760px) { .intl-v2 .intl-card.has-side .wglobe { display: block; width: 190px; height: 190px; margin: 6px auto 12px; } }

/* Build 1_216 (Matt): Daily Challenge header — less text, more space */
.dc-head2 { margin: 6px auto 30px; }
.dc-head2 .dc-kicker { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 217, 101, .45); background: rgba(255, 217, 101, .08); font-size: 12px; }
.dc-head2 .dc-today2 { margin: 0; font: 700 14px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.dc-head2 h1 { margin: 4px 0 0; font-size: clamp(42px, 6.5vw, 72px); }
.dc-head2 .dc-about { margin: 12px auto 0; color: rgba(255, 255, 255, .78); font-weight: 500; font-size: 17px; }
.dc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px auto 0; padding: 0; list-style: none; }
.dc-chips li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font: 700 14px/1.1 var(--sans); }
.dc-chips .dc-chip-next { border-color: rgba(255, 217, 101, .55); color: #FFD965; }
.dc-chips .dc-chip-next strong { font-variant-numeric: tabular-nums; }
.dc-done .dc-score strong { font-variant-numeric: tabular-nums; }

/* Build 1_218 (Matt): Modern / Retro switch on the Shields' group tables */
.tbl-style-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.tbl-style-row .intl-sticky-label { margin: 0; }
.tbl-style { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: #E9EDF5; border: 1px solid #CDD5E4; }
.tbl-style-btn { min-height: 32px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: #3A4660; font: 700 13px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.tbl-style-btn.is-on { background: #2E3A73; color: #FFE45C; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tbl-style-btn[data-style="modern"].is-on { background: #fff; color: #17202F; }
.tbl-style-btn:focus-visible { outline: 2px solid #F5BE1E; outline-offset: 2px; }
.tbl-style-solo { justify-content: flex-end; padding: 10px 12px 0; margin-bottom: 6px; }

/* ===== Build 1_219 (Matt): FULL RETRO — with the Retro switch on, fixtures and results take the 1980s TV look
   too (blue screen, grey bevelled bars, white bold italic lettering), matching the retro tables. Looks only:
   the dice, buttons and scores work exactly as before. Modern leaves everything as it was. ===== */
body.look-retro .fixtures,
body.look-retro .intl-fixtures,
body.look-retro .intl-ko-list,
body.look-retro .cup-tie {
  --rt-font: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  background:
    radial-gradient(130% 115% at 50% 40%, rgba(0, 0, 0, 0) 60%, rgba(5, 10, 40, 0.35) 100%),
    linear-gradient(180deg, #313D77 0%, #2E3A73 50%, #2B366D 100%) !important;
  color: #F7F7FA;
}
body.look-retro .fixtures { padding: 12px 10px 14px; }
body.look-retro .intl-fixtures { padding: 10px 10px 12px; border-radius: 4px; }
body.look-retro .intl-fixtures > summary { color: #F1E35C; font: italic 700 18px/1.2 var(--rt-font); text-shadow: 2px 2px 0 #11142A; }
body.look-retro .cup-group-round-head,
body.look-retro .cup-tie-head, body.look-retro .cup-tie .cup-tie-label { color: #F1E35C !important; font: italic 700 16px/1.2 var(--rt-font) !important; text-shadow: 1.5px 1.5px 0 #11142A; letter-spacing: 0 !important; text-transform: none !important; }
body.look-retro .resting { background: none !important; color: #C9CCE0 !important; font: italic 700 13px/1.2 var(--rt-font); border: 0 !important; }
body.look-retro .resting .team-name { color: inherit; }

/* each match is one line of bars: home | score | away */
body.look-retro .fixture,
body.look-retro .cup-fixture { border-bottom: 0 !important; background: none !important; box-shadow: none !important; padding-top: 2px !important; padding-bottom: 2px !important; column-gap: 5px; }
body.look-retro .fixture .home, body.look-retro .fixture .away,
body.look-retro .cup-fixture > .team-home, body.look-retro .cup-fixture > .team-away {
  min-height: 30px; padding: 2px 9px !important;
  font: italic 700 16px/1.15 var(--rt-font); color: #F7F7FA !important; text-shadow: 2px 2px 0 #1C1F33;
  background: linear-gradient(180deg, #7C8098 0%, #6B6F87 18%, #656980 50%, #5E6279 82%, #54586E 100%);
  border-top: 1px solid #A9ADBE; border-left: 1px solid #8C90A4; border-bottom: 1px solid #3A3D52; border-right: 1px solid #3A3D52;
}
body.look-retro .fixture .team-name, body.look-retro .cup-fixture .team-name { color: inherit !important; font: inherit; }
body.look-retro .fixture .flag, body.look-retro .cup-fixture .flag { box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
/* the score box: a rolled die reads as the TV score; dice still to roll stay dice */
body.look-retro .score-pair .dash { color: #F1E35C; text-shadow: 1.5px 1.5px 0 #11142A; }
body.look-retro .die.is-rolled {
  background: linear-gradient(180deg, #7C8098 0%, #656980 50%, #54586E 100%) !important;
  border: 1px solid #3A3D52 !important; border-top-color: #A9ADBE !important; border-radius: 0 !important; box-shadow: none !important;
  color: #F7F7FA !important; transform: none !important;
}
body.look-retro .die.is-rolled .die-face { font: italic 700 18px/1 var(--rt-font) !important; color: #F7F7FA !important; text-shadow: 2px 2px 0 #1C1F33; }
body.look-retro .score-pair input { background: #656980 !important; color: #fff !important; border: 1px solid #3A3D52 !important; border-radius: 0 !important; font: italic 700 18px/1 var(--rt-font) !important; }
/* the player's team and followed teams: gold bars, as in the retro table */
body.look-retro .fixture .home.is-pref-1, body.look-retro .fixture .away.is-pref-1,
body.look-retro .cup-fixture.is-preferred > .team-home, body.look-retro .cup-fixture.is-preferred > .team-away {
  outline: 2px solid #F6E33C; outline-offset: -2px;
}
body.look-retro .fixture .home.is-pref-1 .team-name, body.look-retro .fixture .away.is-pref-1 .team-name { color: #FFF34D !important; }
body.look-retro .fixture .btn-clear, body.look-retro .cup-fixture .btn-clear, body.look-retro .fixture .tick-slot { color: #C9CCE0; }
body.look-retro .intl-ph-match, body.look-retro .cup-fixture .intl-wait { color: #C9CCE0; }
/* Build 1_219: knockout ties on the blue screen too */
body.look-retro .cup-ties .tie {
  --rt-font: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  background: linear-gradient(180deg, #313D77 0%, #2E3A73 50%, #2B366D 100%) !important;
  border-color: #1E2650 !important; border-radius: 4px !important; color: #F7F7FA;
}
body.look-retro .cup-ties .intl-tie-label { color: #F1E35C !important; font: italic 700 15px/1.2 var(--rt-font) !important; text-shadow: 1.5px 1.5px 0 #11142A; letter-spacing: 0 !important; text-transform: none !important; }
body.look-retro .cup-ties .tie-status, body.look-retro .cup-ties .tie-status * { color: #E4E6F2 !important; font-family: var(--rt-font); font-style: italic; font-weight: 700; text-shadow: 1px 1px 0 #11142A; }
body.look-retro .cup-ties .tie-status .tie-winner, body.look-retro .cup-ties .tie.is-decided .tie-status strong { color: #FFF34D !important; }

/* Build 1_219: Start a new Shield, once one is finished */
.intl-task .intl-again { margin: 10px 0 2px; animation: none; max-width: 420px; }

/* ===== Build 1_220 (Matt): retro fixtures as ONE continuous band per match (no break for the dice), the dice
   smaller and inside the band, every band the same width; neat seeding circles with centred letters ===== */
body.look-retro .fixture,
body.look-retro .cup-fixture {
  margin: 5px 0 !important; padding: 3px 10px !important; min-height: 38px; column-gap: 8px;
  background: linear-gradient(180deg, #7C8098 0%, #6B6F87 18%, #656980 50%, #5E6279 82%, #54586E 100%) !important;
  border: 0 !important; border-top: 1px solid #A9ADBE !important; border-left: 1px solid #8C90A4 !important;
  border-bottom: 1px solid #3A3D52 !important; border-right: 1px solid #3A3D52 !important; border-radius: 0 !important;
}
body.look-retro .cup-fixture + .cup-fixture { border-top: 1px solid #A9ADBE !important; margin-top: 5px !important; padding-top: 3px !important; }
/* the names sit straight on the band */
body.look-retro .fixture .home, body.look-retro .fixture .away,
body.look-retro .cup-fixture > .team-home, body.look-retro .cup-fixture > .team-away {
  background: none !important; border: 0 !important; padding: 0 !important; min-height: 0;
}
/* smaller dice, sitting in the band */
body.look-retro .fixture .score-pair, body.look-retro .cup-fixture .score-pair { gap: 4px; }
body.look-retro .fixture .die, body.look-retro .cup-fixture .die {
  width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important;
  border-radius: 5px !important; border-width: 1.5px !important;
}
body.look-retro .fixture .die .die-face, body.look-retro .cup-fixture .die .die-face { font-size: 12px !important; }
/* a rolled die is the TV score: a dark inset box in the band */
body.look-retro .die.is-rolled {
  background: linear-gradient(180deg, #3F4359 0%, #33374C 100%) !important;
  border: 1px solid #23263A !important; border-bottom-color: #8C90A4 !important; border-right-color: #8C90A4 !important; border-radius: 0 !important;
}
body.look-retro .fixture .die.is-rolled .die-face, body.look-retro .cup-fixture .die.is-rolled .die-face { font-size: 17px !important; }
body.look-retro .fixture .btn-clear, body.look-retro .cup-fixture .btn-clear { color: #E4E6F2 !important; background: none !important; border: 0 !important; }
/* the player's own matches: gold edge round the band */
body.look-retro .fixture:has(.is-pref-1), body.look-retro .cup-fixture.is-preferred { outline: 2px solid #F6E33C; outline-offset: -2px; }
body.look-retro .fixture .home.is-pref-1, body.look-retro .fixture .away.is-pref-1,
body.look-retro .cup-fixture.is-preferred > .team-home, body.look-retro .cup-fixture.is-preferred > .team-away { outline: 0; }
/* seeding circles: upright, centred, crisp */
body.look-retro .fixture .seed-dot, body.look-retro .cup-fixture .seed-dot {
  display: inline-grid !important; place-items: center; box-sizing: border-box;
  width: 18px !important; height: 18px !important; padding: 0 !important; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9); box-shadow: 1px 1px 0 #1C1F33;
  font: normal 800 10px/1 'Arial', Helvetica, sans-serif !important; letter-spacing: 0 !important; text-indent: 0;
  text-shadow: none !important; color: #fff !important;
}
body.look-retro .fixture .seed-dot.seed-amber, body.look-retro .cup-fixture .seed-dot.seed-amber { color: #2A2200 !important; }

/* ===== Build 1_221 (Matt): retro fixtures laid out like the BBC Grandstand "Division One" screen —
   three bars per match in lined-up columns (home | score | away), names left-aligned, no flags in the
   fixtures (tables keep theirs), the dice small inside the score bar. Replaces the 1_220 single band. ===== */
body.look-retro .fixture,
body.look-retro .cup-fixture {
  background: none !important; border: 0 !important; outline: 0; box-shadow: none !important;
  margin: 3px 0 !important; padding: 0 4px !important; min-height: 0; column-gap: 4px !important;
}
body.look-retro .cup-fixture + .cup-fixture { border-top: 0 !important; margin-top: 3px !important; padding-top: 0 !important; }
body.look-retro .fixture .flag, body.look-retro .cup-fixture .flag { display: none !important; }
/* the two name bars and the score bar share one look */
body.look-retro .fixture > .home, body.look-retro .fixture > .away,
body.look-retro .cup-fixture > .team-home, body.look-retro .cup-fixture > .team-away,
body.look-retro .fixture > .score-pair:not(.score-pair-locked), body.look-retro .cup-fixture > .score-pair:not(.score-pair-locked) {
  min-height: 32px !important; padding: 0 8px !important; box-sizing: border-box;
  background: linear-gradient(180deg, #7C8098 0%, #6B6F87 18%, #656980 50%, #5E6279 82%, #54586E 100%) !important;
  border: 0 !important; border-top: 1px solid #A9ADBE !important; border-left: 1px solid #8C90A4 !important;
  border-bottom: 1px solid #3A3D52 !important; border-right: 1px solid #3A3D52 !important; border-radius: 0 !important;
}
body.look-retro .fixture > .home, body.look-retro .fixture > .away,
body.look-retro .cup-fixture > .team-home, body.look-retro .cup-fixture > .team-away {
  display: flex !important; align-items: center; justify-content: flex-start !important; text-align: left !important; gap: 6px;
  font: italic 700 16px/1.15 var(--rt-font, Arial) !important;
}
body.look-retro .cup-fixture .team-home .team-name, body.look-retro .intl-match .team-home .team-name { justify-content: flex-start !important; text-align: left; }
/* seeding circles sit at the right-hand end of each name bar */
body.look-retro .fixture > .home .seed-dot, body.look-retro .fixture > .away .seed-dot,
body.look-retro .cup-fixture > .team-home .seed-dot, body.look-retro .cup-fixture > .team-away .seed-dot { order: 5; margin: 0 0 0 auto !important; }
/* the score bar: a fixed width so every row's columns line up */
body.look-retro .fixture > .score-pair:not(.score-pair-locked), body.look-retro .cup-fixture > .score-pair:not(.score-pair-locked) {
  display: flex !important; align-items: center; justify-content: center; gap: 4px; width: 96px; padding: 0 4px !important;
}
body.look-retro .fixture .die, body.look-retro .cup-fixture .die {
  width: 26px !important; height: 26px !important; min-width: 26px !important; min-height: 26px !important; border-radius: 4px !important;
}
body.look-retro .fixture .die .die-face, body.look-retro .cup-fixture .die .die-face { font-size: 11px !important; }
/* a rolled die simply reads as the score, as on the TV screen: 1-0 */
body.look-retro .die.is-rolled { background: none !important; border: 0 !important; box-shadow: none !important; }
body.look-retro .fixture .die.is-rolled .die-face, body.look-retro .cup-fixture .die.is-rolled .die-face { font: italic 700 18px/1 var(--rt-font, Arial) !important; color: #fff !important; text-shadow: 2px 2px 0 #1C1F33; }
body.look-retro .score-pair .dash { color: #fff !important; font: italic 700 18px/1 var(--rt-font, Arial); text-shadow: 2px 2px 0 #1C1F33; }
/* the player's own matches: gold edges on the bars */
body.look-retro .fixture:has(.is-pref-1), body.look-retro .cup-fixture.is-preferred { outline: 0 !important; }
body.look-retro .fixture > .home.is-pref-1, body.look-retro .fixture > .away.is-pref-1,
body.look-retro .cup-fixture.is-preferred > .team-home, body.look-retro .cup-fixture.is-preferred > .team-away { outline: 2px solid #F6E33C !important; outline-offset: -2px; }

/* phones: two lines per match (home, then away), each a bar, with the score at the right */
@media (max-width: 560px) {
  body.look-retro .fixture > .score-pair:not(.score-pair-locked), body.look-retro .cup-fixture > .score-pair:not(.score-pair-locked) {
    display: contents !important;
  }
  body.look-retro .fixture, body.look-retro .cup-fixture { row-gap: 3px !important; margin: 8px 0 !important; }
  body.look-retro .fixture .die, body.look-retro .cup-fixture .die {
    width: 40px !important; height: 32px !important; min-height: 32px !important;
    background: linear-gradient(180deg, #7C8098 0%, #656980 50%, #54586E 100%) !important; border-radius: 0 !important;
    border: 1px solid #3A3D52 !important; border-top-color: #A9ADBE !important; color: #fff !important;
  }
  body.look-retro .fixture .die:not(.is-rolled) .die-face, body.look-retro .cup-fixture .die:not(.is-rolled) .die-face { color: #fff !important; font: italic 700 13px/1 var(--rt-font, Arial) !important; }
}
/* Build 1_221: every row's columns line up — a long name shrinks to fit its bar rather than widening its row */
body.look-retro .fixture > .home, body.look-retro .fixture > .away,
body.look-retro .cup-fixture > .team-home, body.look-retro .cup-fixture > .team-away { min-width: 0 !important; overflow: hidden; font-size: 15px !important; padding: 0 6px 0 8px !important; }
body.look-retro .fixture .team-name, body.look-retro .cup-fixture .team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block !important; }
@media (min-width: 561px) {
  body.look-retro .fixture, body.look-retro .cup-fixture { grid-template-columns: var(--tick-w, 0px) minmax(0, 1fr) 96px minmax(0, 1fr) 32px !important; }
}
/* Build 1_221: when the fixture panel itself is narrow (whatever the screen size), each match takes two lines —
   home bar then away bar, each with its score box on the right — so names never get squashed */
body.look-retro .fixtures, body.look-retro .intl-fixtures, body.look-retro .cup-ties .tie { container: fx / inline-size; }
@container fx (max-width: 440px) {
  body.look-retro .fixture, body.look-retro .cup-fixture {
    grid-template-columns: var(--tick-w, 0px) minmax(0, 1fr) 44px 28px !important;
    grid-template-areas: "leg leg leg leg" "tick home hs clear" "tick away as clear" !important;
    row-gap: 3px !important; margin: 8px 0 !important;
  }
  body.look-retro .fixture > .score-pair:not(.score-pair-locked), body.look-retro .cup-fixture > .score-pair:not(.score-pair-locked) { display: contents !important; }
  body.look-retro .fixture > .score-pair .dash, body.look-retro .cup-fixture > .score-pair .dash { display: none !important; }
  body.look-retro .fixture > .home, body.look-retro .cup-fixture > .team-home { grid-area: home !important; }
  body.look-retro .fixture > .away, body.look-retro .cup-fixture > .team-away { grid-area: away !important; }
  body.look-retro .fixture .die[data-side="home"], body.look-retro .cup-fixture .die[data-side="home"],
  body.look-retro .fixture .score-home, body.look-retro .cup-fixture .score-home { grid-area: hs !important; justify-self: stretch; }
  body.look-retro .fixture .die[data-side="away"], body.look-retro .cup-fixture .die[data-side="away"],
  body.look-retro .fixture .score-away, body.look-retro .cup-fixture .score-away { grid-area: as !important; justify-self: stretch; }
  body.look-retro .fixture > .fixture-clear, body.look-retro .cup-fixture > .btn-clear { grid-area: clear !important; align-self: center; }
  body.look-retro .fixture .die, body.look-retro .cup-fixture .die {
    width: 44px !important; height: 32px !important; min-height: 32px !important; min-width: 0 !important;
    background: linear-gradient(180deg, #7C8098 0%, #656980 50%, #54586E 100%) !important; border-radius: 0 !important;
    border: 1px solid #3A3D52 !important; border-top-color: #A9ADBE !important; color: #fff !important;
  }
  body.look-retro .fixture .die:not(.is-rolled) .die-face, body.look-retro .cup-fixture .die:not(.is-rolled) .die-face { color: #fff !important; font: italic 700 13px/1 var(--rt-font, Arial) !important; }
}
/* Build 1_221: retro dice sit straight in their boxes (they still tumble while rolling) */
body.look-retro .fixture .die:not(.is-rolling), body.look-retro .cup-fixture .die:not(.is-rolling) { transform: none !important; box-shadow: none !important; }
/* Build 1_221: in the Shields the name, circle and flag share one wrapper — keep the circle at the right-hand end */
body.look-retro .cup-fixture .team-name { display: flex !important; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }
body.look-retro .cup-fixture .team-name .tn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.look-retro .cup-fixture .team-name .seed-dot { order: 5; margin: 0 0 0 auto !important; }

/* ===== Build 1_221b (Matt): a narrow Grandstand score bar ("1-0", numbers close together); dice to roll keep
   their normal size and may stand proud of the bar — once rolled, the score sits neatly inside it ===== */
@media (min-width: 561px) {
  body.look-retro .fixture, body.look-retro .cup-fixture { grid-template-columns: var(--tick-w, 0px) minmax(0, 1fr) 66px minmax(0, 1fr) 32px !important; }
}
body.look-retro .fixture > .score-pair:not(.score-pair-locked), body.look-retro .cup-fixture > .score-pair:not(.score-pair-locked) {
  width: 66px; gap: 0 !important; padding: 0 !important; overflow: visible !important; position: relative;
}
body.look-retro .score-pair .dash { margin: 0 1px !important; font-size: 17px !important; }
/* a rolled die is just the number */
body.look-retro .fixture .die.is-rolled, body.look-retro .cup-fixture .die.is-rolled {
  width: auto !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; padding: 0 2px !important;
}
/* dice still to roll: normal size, overhanging the bar */
body.look-retro .fixture .die:not(.is-rolled), body.look-retro .cup-fixture .die:not(.is-rolled) {
  width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important;
  margin: -4px -3px !important; position: relative; z-index: 1; border-radius: 7px !important;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.35) !important;
}
body.look-retro .fixture .die:not(.is-rolled) .die-face, body.look-retro .cup-fixture .die:not(.is-rolled) .die-face { font-size: 14px !important; }
/* narrow panels (two lines per match): one score box per line, the die overhanging it */
@container fx (max-width: 440px) {
  body.look-retro .fixture, body.look-retro .cup-fixture { grid-template-columns: var(--tick-w, 0px) minmax(0, 1fr) 40px 28px !important; }
  body.look-retro .fixture .die.is-rolled, body.look-retro .cup-fixture .die.is-rolled { width: 40px !important; height: 32px !important; }
  body.look-retro .fixture .die:not(.is-rolled), body.look-retro .cup-fixture .die:not(.is-rolled) {
    width: 34px !important; height: 34px !important; min-height: 34px !important; margin: 0 !important; justify-self: center;
    background: var(--paper, #fff) !important; border: 2px solid #17202F !important; border-radius: 7px !important;
  }
  body.look-retro .fixture .die:not(.is-rolled) .die-face, body.look-retro .cup-fixture .die:not(.is-rolled) .die-face { color: #17202F !important; font: 700 14px/1 var(--cond, sans-serif) !important; }
}
/* Build 1_221c (Matt): dice still to roll sit at the Modern tilt, and there is no dash between them —
   the dash appears with the score ("1-0") once the match is played */
body.look-retro .fixture .die:not(.is-rolled):not(.is-rolling), body.look-retro .cup-fixture .die:not(.is-rolled):not(.is-rolling) { transform: rotate(-11deg) !important; }
body.look-retro .score-pair:has(.die:not(.is-rolled)) .dash { display: none !important; }
body.look-retro .fixture > .score-pair:has(.die:not(.is-rolled)), body.look-retro .cup-fixture > .score-pair:has(.die:not(.is-rolled)) { gap: 2px !important; }

/* ===== Build 1_222 (Matt): retro fixtures on the same scale as the retro table — lettering the table's size,
   bars filling the blue panel, a wider score bar so the two dice never touch ===== */
body.look-retro .fixtures, body.look-retro .intl-fixtures { padding-left: 10px !important; padding-right: 6px !important; }
@media (min-width: 561px) {
  body.look-retro .fixture, body.look-retro .cup-fixture { grid-template-columns: var(--tick-w, 0px) minmax(0, 1fr) 86px minmax(0, 1fr) 20px !important; column-gap: 5px !important; padding: 0 !important; }
}
body.look-retro .fixture > .home, body.look-retro .fixture > .away,
body.look-retro .cup-fixture > .team-home, body.look-retro .cup-fixture > .team-away,
body.look-retro .fixture > .score-pair:not(.score-pair-locked), body.look-retro .cup-fixture > .score-pair:not(.score-pair-locked) { min-height: 36px !important; }
body.look-retro .fixture > .home, body.look-retro .fixture > .away,
body.look-retro .cup-fixture > .team-home, body.look-retro .cup-fixture > .team-away { font-size: 18px !important; padding: 0 8px 0 10px !important; }
body.look-retro .fixture > .score-pair:not(.score-pair-locked), body.look-retro .cup-fixture > .score-pair:not(.score-pair-locked) { width: 86px; }
body.look-retro .fixture > .score-pair:has(.die:not(.is-rolled)), body.look-retro .cup-fixture > .score-pair:has(.die:not(.is-rolled)) { gap: 8px !important; }
body.look-retro .fixture .die.is-rolled .die-face, body.look-retro .cup-fixture .die.is-rolled .die-face { font-size: 20px !important; }
body.look-retro .score-pair .dash { font-size: 20px !important; margin: 0 2px !important; }
body.look-retro .fixture .seed-dot, body.look-retro .cup-fixture .seed-dot { width: 20px !important; height: 20px !important; font-size: 11px !important; }
body.look-retro .fixture .btn-clear, body.look-retro .cup-fixture .btn-clear, body.look-retro .fixture > .fixture-clear { width: 20px !important; min-width: 20px !important; padding: 0 !important; font-size: 15px; }
body.look-retro .cup-group-round-head, body.look-retro .intl-fixtures > summary { font-size: 19px !important; }
@container fx (max-width: 440px) {
  body.look-retro .fixture, body.look-retro .cup-fixture { grid-template-columns: var(--tick-w, 0px) minmax(0, 1fr) 44px 20px !important; column-gap: 5px !important; }
  body.look-retro .fixture .die.is-rolled, body.look-retro .cup-fixture .die.is-rolled { width: 44px !important; height: 36px !important; }
}
body.look-retro .fixture .die:not(.is-rolled), body.look-retro .cup-fixture .die:not(.is-rolled) { margin: -4px 0 !important; }
@media (min-width: 561px) {
  body.look-retro .fixture, body.look-retro .cup-fixture { grid-template-columns: var(--tick-w, 0px) minmax(0, 1fr) 92px minmax(0, 1fr) 20px !important; }
}
body.look-retro .fixture > .score-pair:not(.score-pair-locked), body.look-retro .cup-fixture > .score-pair:not(.score-pair-locked) { width: 92px; }
body.look-retro .fixture > .score-pair:has(.die:not(.is-rolled)), body.look-retro .cup-fixture > .score-pair:has(.die:not(.is-rolled)) { gap: 14px !important; }
/* narrow panels keep the two-line layout (this must stay after every wide-layout column rule) */
@container fx (max-width: 440px) {
  body.look-retro .fixture, body.look-retro .cup-fixture { grid-template-columns: var(--tick-w, 0px) minmax(0, 1fr) 44px 20px !important; }
}

/* Build 1_222 (Matt): the best third-placed / runners-up table in Retro too — the group letter as a small yellow tag */
.rt-table .rt-grp { margin-left: auto; padding-left: 8px; font: italic 700 14px/1 Arial, Helvetica, sans-serif; color: #F1E35C; text-shadow: 1.5px 1.5px 0 #11142A; }
.rt-table tr.zone-promotion .rt-grp { color: #1E2763; text-shadow: none; }

/* ===== Build 1_222 (Matt): ALL Retro — any remaining white league-style table (Players' Lounge leagues,
   season-by-season records, domestic cup groups, compact summaries) takes the TV look when Retro is on ===== */
body.look-retro table.league:not(.rt-table) {
  border-collapse: separate !important; border-spacing: 4px 3px !important; padding: 10px 8px !important; border-radius: 4px;
  background: radial-gradient(130% 115% at 50% 40%, rgba(0,0,0,0) 60%, rgba(5,10,40,.35) 100%), linear-gradient(180deg, #313D77 0%, #2E3A73 50%, #2B366D 100%) !important;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important; box-shadow: 0 10px 28px -16px rgba(0,0,0,.7);
}
body.look-retro table.league:not(.rt-table) thead th {
  background: none !important; border: 0 !important; color: #F3EDB0 !important; text-shadow: 1.5px 1.5px 0 #11142A;
  font: italic 700 14px/1.1 Arial, Helvetica, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; padding: 2px 4px !important;
}
body.look-retro table.league:not(.rt-table) tbody tr, body.look-retro table.league:not(.rt-table) tbody tr:nth-child(even) { background: none !important; }
body.look-retro table.league:not(.rt-table) tbody td {
  padding: 4px 7px !important; height: 26px; color: #F7F7FA !important; text-shadow: 2px 2px 0 #1C1F33;
  font: italic 700 15px/1.15 Arial, Helvetica, sans-serif !important;
  background: linear-gradient(180deg, #7C8098 0%, #6B6F87 18%, #656980 50%, #5E6279 82%, #54586E 100%) !important;
  border: 0 !important; border-top: 1px solid #A9ADBE !important; border-left: 1px solid #8C90A4 !important;
  border-bottom: 1px solid #3A3D52 !important; border-right: 1px solid #3A3D52 !important; box-shadow: none !important;
}
body.look-retro table.league:not(.rt-table) tbody td .team-name, body.look-retro table.league:not(.rt-table) tbody td strong { color: inherit !important; font: inherit !important; }
body.look-retro table.league:not(.rt-table) tbody td .rec-of { color: #D9DCEB !important; }
body.look-retro table.league:not(.rt-table) tr.is-qualified td, body.look-retro table.league:not(.rt-table) tr[class*="zone-promotion"] td {
  color: #1E2763 !important; text-shadow: none; background: linear-gradient(180deg, #F6F7FB 0%, #E8EAF2 50%, #D9DCE8 100%) !important;
}
body.look-retro table.league:not(.rt-table) tr.is-followed td, body.look-retro table.league:not(.rt-table) tr.is-live td { outline: 2px solid #F6E33C; outline-offset: -2px; }
body.look-retro table.league:not(.rt-table) .col-form .form-pill, body.look-retro table.league:not(.rt-table) .clinch { text-shadow: none; font-style: normal; }

/* Build 1_223 (Matt): Retro keeps flags off the fixtures that sit beside a table (groups, leagues), but the
   knockout rounds and play-offs have the room, so their flags come back (before each name) */
body.look-retro .cup-ties .cup-fixture .flag { display: inline-block !important; flex: none; }
body.look-retro .cup-ties .cup-fixture .team-name .flag { order: -1; }
body.look-retro .cup-ties .leg-label { color: #F1E35C !important; font: italic 700 13px/1.2 Arial, Helvetica, sans-serif !important; text-shadow: 1.5px 1.5px 0 #11142A; letter-spacing: 0 !important; text-transform: none !important; }

/* Build 1_224 (Matt): a clean foot to the Shield screens — just one big, bold "Start a new <Shield>" */
.intl-foot .intl-new-wrap { margin: 26px 0 8px; }
.intl-foot .intl-new-big { animation: none; max-width: 460px; min-height: 62px; font-size: 22px; font-weight: 800; }

/* Build 1_225 (Matt): the Modern / Retro switch on every stage — on knockout and play-off rounds it sits on the right, just above the fixtures */
.tbl-style-ko { justify-content: flex-end; margin: 10px 0 8px; }

/* Build 1_227 (Matt): "Start a new <Shield>" is a secondary button — clear, but it never outshines the game */
.intl-foot .intl-new-quiet { min-height: 44px; padding: 0 20px; border-radius: 999px; background: transparent; color: #FFD965;
  border: 2px solid rgba(245, 190, 30, 0.75); font: 700 16px/1 var(--sans); box-shadow: none; }
.intl-foot .intl-new-quiet:hover { background: rgba(245, 190, 30, 0.14); color: #FFE88A; }
.intl-foot .intl-new-quiet:focus-visible { outline: 2px solid #F5BE1E; outline-offset: 2px; }

/* Build 1_228 (Matt): a level tie must be impossible to miss — a big gold, gently pulsing "Take the penalties" button
   with a plain instruction above it, in both Modern and Retro */
.tie-pending-pens { display: block; font-weight: 700; color: #8A2A0B; }
.btn-pens-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0;
  background: linear-gradient(180deg, #FFD965 0%, #F5BE1E 60%, #E0A40A 100%) !important; color: #1A1405 !important;
  font: 800 17px/1 var(--sans) !important; text-shadow: none !important; letter-spacing: .01em;
  box-shadow: 0 0 0 3px rgba(245, 190, 30, .35), 0 6px 16px -6px rgba(0, 0, 0, .45);
  animation: pensPulse 1.6s ease-in-out infinite;
}
.btn-pens-go:hover { filter: brightness(1.05); }
@keyframes pensPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(245, 190, 30, .35), 0 6px 16px -6px rgba(0,0,0,.45); } 50% { box-shadow: 0 0 0 9px rgba(245, 190, 30, .12), 0 6px 16px -6px rgba(0,0,0,.45); } }
@media (prefers-reduced-motion: reduce) { .btn-pens-go { animation: none; } }
body.look-retro .tie-pending-pens { color: #FFF34D !important; font: italic 700 15px/1.25 Arial, Helvetica, sans-serif !important; text-shadow: 1.5px 1.5px 0 #11142A; }
body.look-retro .btn-pens-go { font-style: normal !important; }
body.look-retro .cup-ties .tie-status .btn-pens-go, body.look-retro .cup-ties .tie-status .btn-pens-go * { color: #1A1405 !important; text-shadow: none !important; font: 800 17px/1 var(--sans, sans-serif) !important; }
body.look-retro .cup-ties .tie-status .tie-pending-pens { color: #FFF34D !important; font: italic 700 15px/1.25 Arial, Helvetica, sans-serif !important; }

/* Build 1_229 (Matt): the finals seeding "Ready! Draw the groups" step — the outer panel shares the class
   fsw-review with the inner Strongest/Weakest pair, so the two-column rule was splitting the whole panel into
   columns (tall step pills, a stretched dark banner). The panel stays a normal stack; only the pair sits side by side. */
.fsw.fsw-review { display: block !important; }
.fsw.fsw-review .fsw-banner { display: grid; }
.fsw .wiz-body .fsw-review { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }

/* Build 1_230 (Matt): the Football Quiz box under the Daily Challenge score */
.dc-quizpromo { margin-top: 16px; border: 1px solid rgba(245, 190, 30, .45) !important; background: linear-gradient(160deg, rgba(245,190,30,.10), rgba(255,255,255,.04)) !important; }
.dc-quizpromo h3 { margin: 2px 0 6px; font: 800 26px/1.05 var(--cond); color: #fff; text-transform: uppercase; letter-spacing: .01em; }
.dc-quizpromo p:not(.dc-k) { margin: 0 0 14px; color: rgba(255,255,255,.82); }
.dc-quizpromo-go { min-height: 46px; padding: 0 18px; border-radius: 12px; border: 0; background: linear-gradient(180deg, #FFD965, #F5BE1E 60%, #E0A40A); color: #1A1405; font: 800 16px/1 var(--sans); }
.dc-quizpromo-go:hover { filter: brightness(1.05); }

/* Build 1_231 (Matt): in Retro, the player's own team and their opponent in their matches read in bright yellow
   (dark blue on the blue bars was unreadable); the player's row in any TV table is yellow too */
body.look-retro .cup-fixture.is-preferred > .team-home, body.look-retro .cup-fixture.is-preferred > .team-away,
body.look-retro .cup-fixture.is-preferred .team-name, body.look-retro .cup-fixture.is-preferred .tn,
body.look-retro .fixture:has(.is-pref-1) > .home, body.look-retro .fixture:has(.is-pref-1) > .away,
body.look-retro .fixture:has(.is-pref-1) .team-name {
  color: #FFF34D !important; text-shadow: 2px 2px 0 #11142A !important;
}
.rt-table tr.is-pref-1 td > span, .rt-table tr.is-followed td > span,
.rt-table tr.is-pref-1 .team-name, .rt-table tr.is-followed .team-name { color: #FFF34D !important; text-shadow: 2px 2px 0 #11142A !important; }
.rt-table tr.is-pref-1 .pref-tag, .rt-table tr.is-followed .pref-tag { text-shadow: none !important; }
.rt-table tr.zone-promotion.is-pref-1 td > span, .rt-table tr.zone-promotion.is-followed td > span,
.rt-table tr.zone-promotion.is-pref-1 .team-name, .rt-table tr.zone-promotion.is-followed .team-name { color: #1E2763 !important; text-shadow: none !important; }

/* Build 1_232 (Matt): the Nation Challenge result pop-up — bold and steady: the page dims right behind it, the card
   sits mid-screen, a gold Next button; it enters once and never replays its entrance */
.nc-nextbar { top: 0; display: grid; place-items: center; background: rgba(4, 8, 18, 0.78) !important; padding: 16px !important; pointer-events: auto !important; }
.nc-nextbar[hidden] { display: none !important; }
.nc-nextbar .nc-nb-card { width: min(560px, 100%); }
.nc-nextbar.is-steady .nc-nb-card { animation: none !important; }
.nc-nb-card .nc-nb-head { font-size: clamp(24px, 4vw, 32px); }
.nc-nb-card .nc-next { background: linear-gradient(180deg, #FFD965 0%, #F5BE1E 60%, #E0A40A 100%) !important; color: #1A1405 !important; border: 0 !important; font-weight: 800 !important; animation: none !important; box-shadow: 0 0 0 3px rgba(245, 190, 30, .3), 0 8px 18px -8px rgba(0,0,0,.6); }
body.nc-nextbar-open main { padding-bottom: 0 !important; }

/* Build 1_233 (Matt): the set-up's team-colour box is a pop-up that stays put in the middle of the screen */
.kit-li:has(.kit-picker-pop) { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; background: rgba(4, 8, 18, .62); list-style: none; }
.kit-picker-pop { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border: 2px solid #F5BE1E; border-radius: 18px; padding: 18px 18px 14px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.kit-pop-count { margin: 0 0 6px; font: 800 13px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #9A6B00; }
.kit-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.kit-pop-right { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.kit-pop-next { min-height: 46px; padding: 0 20px; border-radius: 12px; border: 0; background: linear-gradient(180deg, #FFD965, #F5BE1E 60%, #E0A40A); color: #1A1405; font: 800 16px/1 var(--sans); }
.kit-pop-back { min-height: 40px; }
.kit-pop-close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; background: none; font-size: 24px; line-height: 1; color: #6B7A70; cursor: pointer; }
.kit-pop-foot { flex-wrap: nowrap; }
.kit-picker-pop .kit-pop-back, .kit-picker-pop .kit-clear { background: #fff !important; color: #17202F !important; border: 1.5px solid #CDD5E4 !important; box-shadow: none !important; min-height: 40px; padding: 0 12px; font-weight: 700; }
@media (max-width: 420px) { .kit-pop-next { padding: 0 14px; font-size: 15px; } .kit-picker-pop .kit-pop-back, .kit-picker-pop .kit-clear { padding: 0 10px; font-size: 13px; } .kit-pop-right { gap: 6px; } }

/* Build 1_234 (Matt): retro fixture bars stay on one line — no "Your team" label inside them (your team is yellow) */
body.look-retro .fixture .pref-tag, body.look-retro .cup-fixture .pref-tag { display: none !important; }
body.look-retro .fixture > .home, body.look-retro .fixture > .away,
body.look-retro .cup-fixture > .team-home, body.look-retro .cup-fixture > .team-away { flex-wrap: nowrap !important; white-space: nowrap; }
body.look-retro .fixture .kit-badge, body.look-retro .fixture .kit-shield, body.look-retro .fixture svg { flex: none; }

/* Build 1_236 (Matt): Retro leaves the club colour shields off the fixtures and results that sit beside a table
   (as it does the flags) — more room for the names; the table keeps its shields, and Modern is unchanged */
body.look-retro .fixtures .fixture .kit-shield, body.look-retro .intl-fixtures .cup-fixture .kit-shield { display: none !important; }

/* Build 1_237 (Matt): signed in with a Season Ticket the top bar has nine items (My Games and the account pill),
   which no longer fitted beside the logo — the menu spilled left over the DiceFooty wordmark. Now: tighter
   spacing for nine items, the menu can never run back over the logo, and on narrower desktops it takes its own row. */
@media (min-width: 1121px) {
  .site-nav { justify-content: safe flex-end; min-width: 0; }
  .site-nav[data-tabs="9"] .nav-tab { padding-left: 7px; padding-right: 7px; letter-spacing: 0.03em; }
  .site-nav[data-tabs="9"] { gap: 2px; }
}
@media (min-width: 1121px) and (max-width: 1439px) {
  .topbar-inner:has(.site-nav[data-tabs="9"]) { flex-wrap: wrap; }
  .site-nav[data-tabs="9"] { flex: 1 1 100%; order: 3; justify-content: center; padding-bottom: 6px; }
}
@media (min-width: 1121px) {
  .topbar .site-nav { justify-content: flex-start !important; }
  .topbar .site-nav > :first-child { margin-left: auto; }
  .topbar .site-nav[data-tabs="9"] .nav-tab { padding-left: 7px !important; padding-right: 7px !important; letter-spacing: 0.03em !important; font-size: 15px !important; }
}
@media (min-width: 1121px) and (max-width: 1439px) {
  .topbar .site-nav[data-tabs="9"] > :first-child { margin-left: 0; }
  .topbar .site-nav[data-tabs="9"] { justify-content: center !important; }
}
@media (min-width: 761px) and (max-width: 1120px) {
  .topbar .site-nav[data-tabs="9"] { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; row-gap: 4px; }
  .topbar .site-nav[data-tabs="9"] > :first-child { margin-left: 0; }
}

/* ===== Build 1_238 (Matt): a premium Players' Lounge — each card its own colour — and a Football Quiz page with
   every subject and club in colour (no white on white; clubs in their own colours, no badges) ===== */
.ol-lc-create { --lc: #22A35A; } .ol-lc-open { --lc: #3B82F6; } .ol-lc-code { --lc: #8B5CF6; } .ol-lc-quiz { --lc: #14B8A6; } .ol-lc-saved { --lc: #F5BE1E; }
body .ol-lc.home-game[class*="ol-lc-"] {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--lc) 34%, transparent) 0%, transparent 60%),
              linear-gradient(160deg, rgba(20, 30, 50, .92), rgba(10, 16, 30, .94)) !important;
  border: 1px solid color-mix(in srgb, var(--lc) 45%, rgba(255,255,255,.08)) !important;
  border-top: 4px solid var(--lc) !important;
  box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--lc) 80%, #000), inset 0 1px 0 rgba(255,255,255,.06) !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
body .ol-lc.home-game[class*="ol-lc-"]:hover { transform: translateY(-3px); box-shadow: 0 28px 52px -24px color-mix(in srgb, var(--lc) 90%, #000), inset 0 1px 0 rgba(255,255,255,.08) !important; }
body .ol-lc.home-game[class*="ol-lc-"]::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lc) 30%, transparent), transparent 70%); pointer-events: none; }
body .ol-lc.home-game[class*="ol-lc-"] .home-game-emblem { filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--lc) 70%, transparent)); }
body .ol-lc.home-game[class*="ol-lc-"] h2 { color: #fff; }
body .ol-lc.home-game[class*="ol-lc-"] .ol-lc-words { color: rgba(255,255,255,.82); }
@media (prefers-reduced-motion: reduce) { body .ol-lc.home-game[class*="ol-lc-"] { transition: none; } body .ol-lc.home-game[class*="ol-lc-"]:hover { transform: none; } }

/* the Football Quiz page: a dark premium panel */
body .panel.ol-fq { background: radial-gradient(120% 70% at 0% 0%, rgba(20, 184, 166, .16), transparent 60%), linear-gradient(160deg, #16233A, #0C1424) !important;
  border: 1px solid rgba(255,255,255,.10) !important; color: #fff; box-shadow: 0 24px 60px -30px rgba(0,0,0,.8) !important; }
body .panel.ol-fq .ol-wiz-q { color: #fff; }
body .panel.ol-fq .ol-wiz-sum { color: rgba(255,255,255,.82); }
body .panel.ol-fq .ol-wiz-sum strong { color: #FFD965; }
body .panel.ol-fq .ol-fq-group { color: #FFD965; font: 800 15px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; margin-top: 26px; }
body .panel.ol-fq .ol-fq-more summary { color: rgba(255,255,255,.75); }
.ol-fq-grid { gap: 14px; }
/* each card in its colours */
body .ol-fq-card.has-kit {
  position: relative; overflow: hidden; min-height: 150px; padding: 16px 16px 14px;
  background: linear-gradient(150deg, var(--fq1) 0%, color-mix(in srgb, var(--fq1) 72%, #000) 100%);
  border: 0; border-top: 6px solid var(--fq2); border-radius: 16px; color: var(--fqt);
  box-shadow: 0 16px 30px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .16s ease, box-shadow .16s ease;
}
body .ol-fq-card.has-kit::before { content: ''; position: absolute; top: -20%; right: -18%; width: 46%; height: 150%; transform: rotate(18deg); background: var(--fq2); opacity: .16; pointer-events: none; }
body .ol-fq-card.has-kit:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -20px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.22); }
body .ol-fq-card.has-kit > * { position: relative; }
body .ol-fq-card.has-kit .ol-fq-name { color: var(--fqt); font: 800 22px/1.05 var(--cond); text-transform: uppercase; letter-spacing: .01em; }
body .ol-fq-card.has-kit .ol-fq-parent { color: var(--fqt); opacity: .75; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
body .ol-fq-card.has-kit .ol-fq-count { color: var(--fqt); opacity: .9; font-size: 14px; }
body .ol-fq-card.has-kit .ol-fq-btns { margin-top: auto; }
body .ol-fq-card.has-kit .btn { background: var(--fq2) !important; color: var(--fqbt) !important; border: 0 !important; box-shadow: 0 6px 14px -8px rgba(0,0,0,.7) !important; font-weight: 800; }
body .ol-fq-card.has-kit .btn:hover { filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) { body .ol-fq-card.has-kit { transition: none; } body .ol-fq-card.has-kit:hover { transform: none; } }
