/* ==========================================================================
   Albion Lottery - editorial results publication
   Visual language: official British document. Ink navy, ivory stock,
   engraved gold rules. Sharp corners, generous margins, no floating cards.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --ink-950: #030d16;
  --ink-900: #061420;
  --ink-850: #0a1e2f;
  --ink-800: #0e2537;
  --ink-700: #153449;
  --ink-600: #1e455c;
  --ink-500: #2b5872;

  --paper-50: #fcf8f0;
  --paper-100: #f7f1e5;
  --paper-200: #efe7d5;
  --paper-300: #e3d8c2;
  --paper-400: #d3c5a9;

  --gold-100: #f3e2b6;
  --gold-300: #e2c580;
  --gold-500: #c6a35b;
  --gold-700: #9a7a38;
  --gold-900: #6b5322;

  --crimson: #8c2f39;
  --crimson-soft: #b04a54;
  --sea: #1f4a5e;

  --text: #0f1e2c;
  --text-soft: #40556a;
  --text-mute: #6d7d8d;
  --text-invert: #eef2f6;
  --text-invert-soft: #a9bccb;

  --font-display: "Playfair Display", "Didot", "Bodoni MT", "Songti TC", "Microsoft JhengHei",
    "Malgun Gothic", "Noto Naskh Arabic", "Segoe UI", Georgia, serif;
  --font-body: "Libre Franklin", "Segoe UI", "Microsoft JhengHei", "PingFang TC",
    "Malgun Gothic", "Apple SD Gothic Neo", "Noto Naskh Arabic", system-ui, -apple-system,
    sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(6, 20, 32, 0.07), 0 6px 14px -9px rgba(6, 20, 32, 0.22);
  --shadow-md: 0 2px 6px rgba(6, 20, 32, 0.06), 0 22px 44px -26px rgba(6, 20, 32, 0.4);
  --shadow-lg: 0 40px 80px -50px rgba(6, 20, 32, 0.72);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shell: 1240px;
  --gut: 40px;
}

/* --- Reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--paper-100);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(198, 163, 91, 0.1), transparent 46%),
    radial-gradient(circle at 88% 4%, rgba(31, 74, 94, 0.07), transparent 40%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  color: var(--ink-900);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink-700);
  text-decoration-color: var(--gold-500);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--gold-700); }

img, svg { max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: -0.01em;
  direction: ltr;
  unicode-bidi: embed;
}

/* Arabic is a joined script: wide tracking breaks the letterforms, and the
   uppercase transforms do nothing useful there. */
html[dir="rtl"] .nav a,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .brand__sub,
html[dir="rtl"] .next-draw__label,
html[dir="rtl"] .section-head__aside,
html[dir="rtl"] .footer__col h3,
html[dir="rtl"] .step__no,
html[dir="rtl"] table.data thead th,
html[dir="rtl"] .field label,
html[dir="rtl"] .fact__label,
html[dir="rtl"] .tool-output__label,
html[dir="rtl"] .sidebet__key,
html[dir="rtl"] .mini-stat dt,
html[dir="rtl"] .verify-block h3,
html[dir="rtl"] .result-card__meta,
html[dir="rtl"] .result-card__no,
html[dir="rtl"] .countdown__name,
html[dir="rtl"] .hero__reg,
html[dir="rtl"] .notice-bar__inner p {
  letter-spacing: 0.01em;
}

::selection {
  background: var(--gold-300);
  color: var(--ink-900);
}

/* Hidden with clip rather than a negative offset: a -9999px shift widens the
   document scroll box in RTL and collapses captured layouts. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  z-index: 200;
  background: var(--ink-900);
  color: var(--paper-50);
}
.skip-link:focus {
  position: fixed;
  inset-inline-start: 12px;
  top: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 20px;
  overflow: visible;
  clip: auto;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* --- Type utilities ------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin: 0 0 14px;
}

.eyebrow--invert { color: var(--gold-300); }

.lede {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 60ch;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}

.btn--solid {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--ink-950);
}
.btn--solid:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  color: var(--ink-950);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(198, 163, 91, 0.5);
  color: var(--gold-300);
}
.btn--ghost:hover {
  border-color: var(--gold-300);
  background: rgba(198, 163, 91, 0.1);
  color: var(--gold-100);
}

.btn--ink {
  border-color: var(--ink-700);
  color: var(--ink-800);
}
.btn--ink:hover {
  background: var(--ink-800);
  color: var(--paper-50);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.68rem;
}

/* --- Notice bar ----------------------------------------------------------- */

.notice-bar {
  background: var(--ink-950);
  color: var(--text-invert-soft);
  border-bottom: 1px solid rgba(198, 163, 91, 0.24);
}

.notice-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.notice-bar__inner p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.notice-bar__inner strong { color: var(--gold-300); font-weight: 600; }

.notice-bar__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(198, 163, 91, 0.16);
}

.notice-bar__flag {
  margin-inline-start: auto;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-950);
  background: var(--gold-300);
  padding: 3px 8px;
}

/* --- Masthead ------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 241, 229, 0.94);
  backdrop-filter: blur(14px) saturate(1.2);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink-900);
  flex: 0 1 auto;
  min-width: 0;
}
.brand:hover { color: var(--ink-900); }

.brand__crest {
  width: 42px;
  height: 42px;
  color: var(--gold-700);
  flex: 0 0 auto;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  position: relative;
  padding: 10px 12px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.28s var(--ease);
}
.nav a:hover { color: var(--ink-900); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink-900); }
.nav a.is-active::after { transform: scaleX(1); }

.masthead__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--paper-300);
}

.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;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-mute);
}

.lang-switch__globe {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: 0.75;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  background-color: transparent;
  border: 1px solid var(--paper-300);
  padding: 6px 24px 6px 9px;
  width: 112px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 54%, calc(100% - 8px) 54%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-select:hover { color: var(--ink-900); border-color: var(--paper-400); }
.lang-select:focus-visible {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(198, 163, 91, 0.18);
}

html[dir="rtl"] .lang-select {
  padding: 6px 9px 6px 24px;
  background-position: 12px 54%, 8px 54%;
}

.masthead__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1360px) {
  .masthead__date { display: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--paper-300);
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink-800);
  transition: transform 0.24s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--paper-300);
  background: var(--paper-50);
}
.mobile-nav a {
  padding: 15px var(--gut);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-soft);
  border-bottom: 1px solid var(--paper-200);
}
.mobile-nav a.is-active { color: var(--ink-900); background: var(--paper-200); }

.masthead__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--paper-400) 12%, var(--gold-500) 50%, var(--paper-400) 88%, transparent);
  opacity: 0.55;
}

/* --- Main / views --------------------------------------------------------- */

.main { padding-bottom: 96px; }

.view {
  animation: viewIn 0.5s var(--ease) both;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.boot {
  min-height: 56vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  color: var(--text-mute);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.boot__seal {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold-500);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.section {
  padding: 64px 0 0;
}

.section--tight { padding-top: 44px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--paper-300);
  position: relative;
}
.section-head::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: var(--gold-500);
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin: 0;
}

.section-head__aside {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}
.section-head__aside a { text-decoration: none; color: var(--ink-700); }
.section-head__aside a:hover { color: var(--gold-700); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 130% at 84% -14%, rgba(198, 163, 91, 0.2), transparent 58%),
    radial-gradient(ellipse 70% 90% at 6% 108%, rgba(31, 74, 94, 0.5), transparent 62%),
    linear-gradient(168deg, var(--ink-850) 0%, var(--ink-900) 46%, var(--ink-950) 100%);
  color: var(--text-invert);
  margin-bottom: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(198, 163, 91, 0.055) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(0deg, rgba(198, 163, 91, 0.045) 0 1px, transparent 1px 68px);
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 92px;
}

.hero__reg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 28px;
}
.hero__reg::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-500);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.15rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--paper-50);
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-300);
}

.hero__lede {
  font-size: 1.03rem;
  line-height: 1.72;
  color: var(--text-invert-soft);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__seal {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--gold-300);
}

.hero__seal svg {
  width: min(100%, 412px);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.seal-ring { animation: spinSlow 90s linear infinite; transform-origin: 200px 200px; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* --- Tickertape / next draw ---------------------------------------------- */

.next-draw {
  position: relative;
  background: var(--ink-900);
  color: var(--text-invert);
  border-top: 1px solid rgba(198, 163, 91, 0.3);
  border-bottom: 1px solid rgba(198, 163, 91, 0.18);
}

.next-draw__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  divide: none;
}

.next-draw__cell {
  padding: 26px 30px;
  border-inline-start: 1px solid rgba(238, 242, 246, 0.1);
}
.next-draw__cell:first-child { border-inline-start: 0; padding-inline-start: 0; }

.next-draw__label {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 8px;
}

.next-draw__title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--paper-50);
  line-height: 1.2;
  margin: 0;
}
.next-draw__title span { color: var(--text-invert-soft); font-size: 1rem; font-family: var(--font-body); }

.next-draw__pool {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--gold-300);
  line-height: 1.15;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.countdown {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 46px;
}

.countdown__value {
  font-size: 1.55rem;
  line-height: 1;
  color: var(--paper-50);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.countdown__name {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-invert-soft);
}

.countdown--compact { align-items: flex-start; gap: 12px; }
.countdown--compact .countdown__value { font-size: 2.05rem; }
.countdown__sep {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-invert-soft);
  margin-top: 6px;
}

/* --- Ball ----------------------------------------------------------------- */

.ball {
  --ball-size: 58px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--ball-size);
  height: var(--ball-size);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: calc(var(--ball-size) * 0.42);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 34% 26%, #ffffff 0%, #f8f4ea 34%, #e6ddcb 68%, #cfc2a6 100%);
  box-shadow:
    inset -5px -7px 13px rgba(122, 105, 74, 0.3),
    inset 4px 5px 11px rgba(255, 255, 255, 0.92),
    0 9px 16px -8px rgba(6, 20, 32, 0.5),
    0 2px 3px rgba(6, 20, 32, 0.16);
  animation: ballIn 0.52s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 64ms);
  user-select: none;
}

.ball::after {
  content: "";
  position: absolute;
  top: 11%;
  left: 19%;
  width: 36%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
  transform: rotate(-26deg);
  pointer-events: none;
}

.ball--gold {
  color: var(--ink-950);
  background:
    radial-gradient(circle at 34% 26%, #fff4d4 0%, #eccd8b 36%, #cfa855 70%, #a8842f 100%);
  box-shadow:
    inset -5px -7px 13px rgba(94, 68, 16, 0.34),
    inset 4px 5px 11px rgba(255, 246, 214, 0.9),
    0 9px 18px -8px rgba(6, 20, 32, 0.55),
    0 2px 3px rgba(6, 20, 32, 0.2);
}

.ball--crimson {
  color: var(--paper-50);
  background:
    radial-gradient(circle at 34% 26%, #d8737c 0%, #a63c46 38%, #7e242d 74%, #591419 100%);
  box-shadow:
    inset -5px -7px 13px rgba(30, 4, 8, 0.42),
    inset 4px 5px 11px rgba(255, 190, 190, 0.42),
    0 9px 18px -8px rgba(6, 20, 32, 0.55),
    0 2px 3px rgba(6, 20, 32, 0.2);
}

.ball--sm { --ball-size: 44px; }
.ball--xs { --ball-size: 34px; font-size: 0.72rem; }

@keyframes ballIn {
  0% { opacity: 0; transform: translateY(-20px) scale(0.8); }
  62% { opacity: 1; transform: translateY(2px) scale(1.045); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ball-row__divider {
  width: 1px;
  height: 26px;
  background: var(--paper-400);
  margin: 0 4px;
}

.ball-row--invert .ball-row__divider { background: rgba(238, 242, 246, 0.22); }

/* --- Result cards --------------------------------------------------------- */

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--paper-300);
  border: 1px solid var(--paper-300);
}

.result-card {
  --pad: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--pad) var(--pad) 22px;
  background: var(--paper-50);
  text-decoration: none;
  color: inherit;
  transition: background 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.result-card:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--gold-300);
  z-index: 2;
}

.result-card--feature {
  grid-column: 1 / -1;
  --pad: 28px;
}

.result-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.result-card__name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.1;
}

.result-card__no {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.result-card__meta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.result-card__balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: calc(58px + 4px);
}

.result-card__balls { gap: 9px; }
.result-card__balls .ball { --ball-size: 44px; font-size: 0.94rem; }
.result-card__balls .ball--gold,
.result-card__balls .ball--crimson { --ball-size: 44px; }

/* Feature card: the interval game that leads the page */
.feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.feature-head .result-card__name {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
}
.feature-head .result-card__meta {
  display: block;
  margin-top: 6px;
}
.feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 40px;
  align-items: center;
  margin: 22px 0;
}
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 9px;
}
.bingo-grid .ball {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  font-size: clamp(0.66rem, 1.05vw, 0.9rem);
}
.sidebets {
  display: grid;
  gap: 1px;
  background: var(--paper-300);
  border: 1px solid var(--paper-300);
}
.sidebet {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  background: var(--paper-50);
}
.sidebet__key {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.sidebet__val {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.sidebet__val--super { color: var(--crimson); }

.override-flag {
  margin: 0 0 22px;
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #fff;
  background: var(--crimson);
  border-inline-start: 4px solid var(--gold-500);
}

.panel-sidebets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.panel-sidebets .sidebet {
  border: 1px solid var(--paper-300);
  background: var(--paper-100);
  padding: 8px 14px;
  gap: 10px;
}

/* --- Verification band ---------------------------------------------------- */

.method {
  background: var(--ink-900);
  color: var(--text-invert);
  margin-top: 76px;
  position: relative;
  overflow: hidden;
}

.method::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(circle at 50% 130%, rgba(198, 163, 91, 0.09) 0 1px, transparent 1px 34px);
  opacity: 0.7;
  pointer-events: none;
}

.method__inner {
  position: relative;
  padding: 70px 0 76px;
}

.method__head {
  max-width: 62ch;
  margin-bottom: 46px;
}

.method__head h2 {
  color: var(--paper-50);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.method__head p {
  color: var(--text-invert-soft);
  font-size: 1rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(238, 242, 246, 0.14);
}

.step {
  padding: 30px 28px 6px;
  border-inline-start: 1px solid rgba(238, 242, 246, 0.14);
}
.step:first-child { border-inline-start: 0; padding-inline-start: 0; }

.step__no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold-500);
  display: block;
  margin-bottom: 14px;
}

.step h3 {
  color: var(--paper-50);
  font-size: 1.24rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-invert-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.step code {
  color: var(--gold-300);
  background: rgba(198, 163, 91, 0.1);
  padding: 1px 6px;
  font-size: 0.8rem;
}

/* --- Page header ---------------------------------------------------------- */

.page-head {
  padding: 58px 0 30px;
  border-bottom: 1px solid var(--paper-300);
  position: relative;
}
.page-head::after {
  content: "";
  position: absolute;
  inset-inline-start: var(--gut);
  bottom: -1px;
  width: 90px;
  height: 2px;
  background: var(--gold-500);
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.page-head p {
  color: var(--text-soft);
  max-width: 66ch;
  margin: 0;
}

/* --- Tabs ----------------------------------------------------------------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--paper-300);
  margin-top: 34px;
}

.tab {
  padding: 12px 22px 12px 0;
  margin-inline-end: 26px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab:hover { color: var(--ink-900); }
.tab.is-active {
  color: var(--ink-900);
  border-bottom-color: var(--gold-500);
}

/* --- Tables --------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.data thead th {
  text-align: start;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--paper-400);
  white-space: nowrap;
}

table.data tbody td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--paper-200);
  vertical-align: middle;
}

table.data tbody tr:hover { background: rgba(198, 163, 91, 0.07); }

table.data .t-right { text-align: end; padding-inline-end: 0; }
table.data .t-odds { padding-inline-start: 34px; }
table.data .t-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.tier-name { font-weight: 500; color: var(--ink-900); }
.tier-note {
  display: block;
  font-size: 0.7rem;
  font-style: italic;
  color: var(--text-mute);
}

/* Compact combination typesetting for archive tables */
.combo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  color: var(--ink-800);
  white-space: nowrap;
}
.combo__main { font-variant-numeric: tabular-nums; }
.combo__sep {
  width: 1px;
  height: 15px;
  flex: 0 0 auto;
  background: var(--paper-400);
}
.combo__sp-group { display: inline-flex; gap: 8px; }
.combo__sp {
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.combo__sp--gold { color: var(--gold-700); }
.combo__sp--crimson { color: var(--crimson); }
.combo__more {
  font-style: normal;
  color: var(--text-mute);
  font-size: 0.92em;
  letter-spacing: 0.02em;
}

/* --- Draw detail ---------------------------------------------------------- */

.draw-panel {
  background: var(--paper-50);
  border: 1px solid var(--paper-300);
  padding: 34px 36px;
  position: relative;
}

.draw-panel::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-700));
}

.draw-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--paper-300);
}

.draw-panel__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
}

.draw-panel__sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.draw-panel__balls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}

.draw-panel__balls { gap: 8px; }
.draw-panel__balls .ball { --ball-size: 62px; }
/* 20 balls have to fit on one line at desktop width, so the size follows the viewport. */
.draw-panel__balls .ball--sm {
  --ball-size: clamp(28px, 2.75vw, 40px);
  font-size: clamp(0.66rem, 1vw, 0.82rem);
}

/* --- Game overview -------------------------------------------------------- */

.games-list {
  border-top: 1px solid var(--paper-300);
  margin-top: 34px;
}

.game-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--paper-300);
  text-decoration: none;
  color: inherit;
  transition: background 0.24s var(--ease), padding-inline-start 0.24s var(--ease);
}
.game-row:hover {
  background: rgba(198, 163, 91, 0.07);
  padding-inline-start: 14px;
}

.game-row__idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold-700);
}

.game-row__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 6px;
  color: var(--ink-900);
}

.game-row__strap {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
  max-width: 46ch;
}

.game-row__facts {
  display: flex;
  gap: 28px;
}

.fact__label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.fact__value {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink-800);
  white-space: nowrap;
}

.game-row__arrow {
  font-family: var(--font-mono);
  color: var(--gold-700);
  font-size: 1.1rem;
  transition: transform 0.24s var(--ease);
}
.game-row:hover .game-row__arrow { transform: translateX(5px); }

/* --- Tools ---------------------------------------------------------------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 38px;
}

.panel {
  background: var(--paper-50);
  border: 1px solid var(--paper-300);
  padding: 30px 32px 32px;
  box-shadow: var(--shadow-sm);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--paper-200);
}

.panel h2 {
  font-size: 1.42rem;
  margin: 0;
}

.panel__hint {
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.field__count {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-700);
}

select, input[type="text"], input[type="search"] {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--paper-300);
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
select:focus, input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(198, 163, 91, 0.18);
}

.num-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 7px;
  margin-bottom: 20px;
}

.num-pick {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--paper-400);
  border-radius: 50%;
  transition: all 0.16s var(--ease);
}
.num-pick:hover {
  border-color: var(--gold-500);
  color: var(--ink-900);
  transform: translateY(-1px);
}
.num-pick.is-on {
  background: var(--ink-850);
  border-color: var(--ink-850);
  color: var(--gold-300);
  font-weight: 600;
  box-shadow: 0 4px 10px -5px rgba(6, 20, 32, 0.6);
}
.num-pick.is-special {
  border-radius: 4px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tool-output {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--paper-300);
  min-height: 76px;
}

.tool-output__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 12px;
}

.verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border: 1px solid;
  margin-bottom: 12px;
}
.verdict--win { color: #1d6b40; border-color: rgba(29, 107, 64, 0.35); background: rgba(29, 107, 64, 0.07); }
.verdict--near { color: var(--gold-900); border-color: rgba(154, 122, 56, 0.4); background: rgba(198, 163, 91, 0.12); }
.verdict--lose { color: var(--text-mute); border-color: var(--paper-300); background: var(--paper-200); }

/* --- Statistics ----------------------------------------------------------- */

.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 36px;
}

.stats-layout .section-head h2 { font-size: 1.38rem; }
.stats-layout .section-head__aside { font-size: 0.66rem; }

.freq-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 190px;
  padding-top: 20px;
  border-bottom: 1px solid var(--paper-400);
}

.freq-bar {
  flex: 1 1 0;
  position: relative;
  min-width: 2px;
  background: linear-gradient(180deg, var(--ink-600), var(--ink-800));
  transition: background 0.2s var(--ease);
}
.freq-bar:hover { background: var(--gold-500); }
.freq-bar--hot { background: linear-gradient(180deg, var(--gold-300), var(--gold-700)); }

.freq-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-mute);
}

.hot-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hot-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  font-size: 0.82rem;
}

.hot-row__ball {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-900);
  background: var(--paper-200);
  border: 1px solid var(--paper-300);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.hot-row__track {
  height: 8px;
  background: var(--paper-300);
  position: relative;
  overflow: hidden;
}
.hot-row__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--gold-700), var(--gold-300));
}
.hot-row--cold .hot-row__fill { background: linear-gradient(90deg, var(--sea), #4b8ba3); }

.hot-row__count {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--paper-300);
  border: 1px solid var(--paper-300);
  margin-top: 26px;
}

.mini-stat {
  background: var(--paper-50);
  padding: 16px 18px;
}
.mini-stat dt {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.mini-stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

/* --- Verification block --------------------------------------------------- */

.verify-block {
  margin-top: 26px;
  background: var(--ink-900);
  color: var(--text-invert);
  padding: 26px 28px;
  font-size: 0.86rem;
}

.verify-block h3 {
  color: var(--gold-300);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.verify-grid {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.verify-grid dt { color: var(--text-invert-soft); }
.verify-grid dd {
  margin: 0;
  color: var(--paper-50);
  word-break: break-all;
  line-height: 1.5;
}

.verify-ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fd1a0;
}
.verify-ok::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fd1a0;
  box-shadow: 0 0 0 3px rgba(127, 209, 160, 0.18);
}

/* --- Prose / about -------------------------------------------------------- */

.prose {
  max-width: 72ch;
  margin-top: 34px;
  columns: 1;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--paper-300);
  position: relative;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 {
  font-size: 1.12rem;
  margin-top: 28px;
}

.prose p, .prose li {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

.prose ul { padding-inline-start: 20px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }

.callout {
  border-inline-start: 3px solid var(--gold-500);
  background: rgba(198, 163, 91, 0.09);
  padding: 20px 24px;
  margin: 26px 0;
}
.callout p { margin: 0; color: var(--ink-800); font-size: 0.92rem; }
.callout strong { color: var(--ink-900); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--paper-300);
  border: 1px solid var(--paper-300);
  margin: 34px 0 0;
}
.facts-grid > div {
  background: var(--paper-50);
  padding: 24px 22px;
}
.facts-grid dt {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.facts-grid dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  background: var(--ink-950);
  color: var(--text-invert-soft);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 30%, var(--gold-300) 50%, var(--gold-500) 70%, transparent);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 60px;
  padding: 66px 0 46px;
}

.footer__brand { display: flex; gap: 14px; align-items: flex-start; }

.footer__brand .brand__crest { color: var(--gold-500); width: 44px; height: 44px; }

.footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--paper-50);
  margin: 0 0 6px;
}

.footer__addr {
  font-size: 0.76rem;
  color: var(--text-invert-soft);
  margin: 0;
  max-width: 34ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 0.84rem;
  color: var(--text-invert-soft);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--gold-300); }

.footer__note {
  font-size: 0.78rem;
  color: var(--text-invert-soft);
  margin: 0 0 8px;
  opacity: 0.82;
}

.footer__responsibility {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px;
  border: 1px solid rgba(198, 163, 91, 0.22);
  background: rgba(198, 163, 91, 0.045);
}

.footer__badge {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-300);
}

.footer__responsibility p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-invert-soft);
}
.footer__responsibility strong { color: var(--gold-300); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 0 34px;
  margin-top: 30px;
  border-top: 1px solid rgba(238, 242, 246, 0.1);
  font-size: 0.72rem;
  color: rgba(169, 188, 203, 0.72);
}
.footer__bottom p { margin: 0; }
.footer__legal code { color: var(--gold-500); }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
  :root { --gut: 28px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 64px; }
  .hero__seal { justify-items: start; }
  .hero__seal svg { width: min(68vw, 280px); }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-body { grid-template-columns: 1fr; gap: 22px; }
  .bingo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .next-draw__inner { grid-template-columns: 1fr 1fr; }
  .next-draw__cell:first-child { grid-column: 1 / -1; border-bottom: 1px solid rgba(238, 242, 246, 0.1); padding-inline-start: 0; }
  .next-draw__cell:nth-child(2) { border-inline-start: 0; padding-inline-start: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid rgba(238, 242, 246, 0.14); }
  .step:first-child { border-top: 0; }
  .stats-layout { grid-template-columns: 1fr; gap: 44px; }
  .tool-grid { grid-template-columns: 1fr; }
  .game-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 20px; }
  .game-row__facts { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 520px) {
  .masthead__inner { gap: 12px; }
  .brand__crest { width: 32px; height: 32px; }
  .brand__name { font-size: 1.08rem; }
  .brand__sub { display: none; }
  .lang-switch__globe { display: none; }
  .lang-switch { gap: 0; }
  .lang-select {
    width: 82px;
    font-size: 0.66rem;
    padding: 6px 18px 6px 6px;
    background-position: calc(100% - 10px) 54%, calc(100% - 6px) 54%;
  }
  .masthead__meta { gap: 10px; padding-inline-start: 12px; }
  .nav-toggle { width: 36px; height: 36px; padding: 0 6px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .masthead__meta { margin-inline-start: auto; border-inline-start: 0; padding-inline-start: 0; }
  .masthead__date { display: none; }
  .mobile-nav:not([hidden]) { display: flex; }
  .masthead__inner { height: 70px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .notice-bar__more { display: none; }
  .notice-bar__inner p { font-size: 0.7rem; }

  .register-table th:nth-child(3),
  .register-table td:nth-child(3),
  .register-table th:nth-child(4),
  .register-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 640px) {
  :root { --gut: 18px; }
  body { font-size: 15px; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card { --pad: 20px; }
  .bingo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .feature-head .result-card__name { font-size: 1.32rem; }
  .result-card__balls { gap: 7px; }
  .result-card__balls .ball,
  .result-card__balls .ball--gold,
  .result-card__balls .ball--crimson {
    --ball-size: 38px;
    font-size: 0.84rem;
  }
  .hero h1 { font-size: 2.15rem; }
  .next-draw__inner { grid-template-columns: 1fr; }
  .next-draw__cell { border-inline-start: 0; padding: 20px 0; }
  .countdown { gap: 12px; }
  .draw-panel { padding: 24px 20px; }
  .draw-panel__balls .ball { --ball-size: 48px; }
  .panel { padding: 24px 20px; }
  .facts-grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .tier-table-mobile { font-size: 0.8rem; }
  .verify-grid { grid-template-columns: 1fr; }
  .verify-grid dt { margin-top: 6px; }
  .mini-stats { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
