/* Airball. Dark, plain, numbers first. The only picture is the ball; the only colour is its green glow. */
:root {
  --bg: #070a0d;
  --panel: #0b1015;
  --panel-2: #10171e;
  --line: #1e2a34;
  --line-2: #34454f;
  --ink: #f2f6f9;
  --soft: #a9b8c4;
  --dim: #6f808d;
  --lime: #a8ff3e;
  --lime-ink: #071004;
  --red: #e4373e;
  --green: #1aa765;
  --gold: #e6c26a;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --text: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: clamp(20px, 3.4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
  background-size: 28px 28px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 2 * clamp(16px, 3vw, 32px)); margin: 0 auto; }

h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.88; }
h1 { font-size: clamp(58px, 7.4vw, 108px); }
h2 { font-size: clamp(40px, 5.6vw, 76px); max-width: 16ch; }
h3 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: 0.01em; line-height: 1; text-transform: uppercase; }

.label, .cell__k, .ca__k, .note, .tbl th, .ledger__head, .legend, .hero__tag, .hero__ball figcaption, .fine, .steps__n {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.label { color: var(--lime); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.live, .hero__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(168, 255, 62, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(168, 255, 62, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(168, 255, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 255, 62, 0); } }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, translate 0.15s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { translate: 0 1px; }
.btn--lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 700; }
.btn--lime:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--small { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn[aria-disabled="true"] { border-color: var(--line-2); background: transparent; color: var(--soft); cursor: default; }
.lnk { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); text-underline-offset: 4px; margin-left: 12px; }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(7, 10, 13, 0.92); border-bottom: 1px solid var(--line); }
.nav__in { width: min(1240px, 100% - 2 * clamp(16px, 3vw, 32px)); margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__mark { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border: 1px solid var(--line-2); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.nav__mark img { width: 30px; height: 30px; border-radius: 50%; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 28px); margin-right: auto; }
.nav__links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--soft); padding: 8px 0; transition: color 0.15s; }
.nav__links a:hover { color: var(--lime); }

/* ---------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); }
.hero__lead { margin-top: 24px; max-width: 46ch; font-size: 19px; color: var(--soft); }
.cells { display: grid; gap: 8px; margin-top: 32px; }
.cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { border: 1px solid var(--line); background: var(--panel); padding: 14px 16px 12px; min-width: 0; }
.cell__k { display: block; color: var(--dim); }
.cell__v { display: block; margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.6vw, 50px); line-height: 0.95; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell__v small, .mega small { font-size: 0.5em; font-weight: 600; color: var(--soft); letter-spacing: 0.04em; }
[data-clock] i { display: inline-block; width: 0.5em; text-align: center; font-style: normal; }
.bar { height: 3px; margin-top: 8px; background: var(--line); }
.bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width 0.5s linear; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line-2); background: var(--panel); }
.ca__k { color: var(--lime); flex: none; }
.ca__v { font-family: var(--mono); font-size: 14px; letter-spacing: 0.01em; overflow-wrap: anywhere; flex: 1 1 260px; }
.note { margin-top: 14px; color: var(--dim); letter-spacing: 0.08em; text-transform: none; }

.hero__ball { position: relative; border: 1px solid var(--line-2); background: #000; }
.hero__ball img { width: 100%; animation: bob 7s ease-in-out infinite; }
.hero__ball.is-bell img { animation: bell 0.9s var(--ease); }
.hero__tag { position: absolute; z-index: 1; top: 14px; left: 16px; display: flex; align-items: center; gap: 8px; color: var(--soft); }
.hero__ball figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--dim); }
.hero__ball figcaption a { color: var(--lime); text-underline-offset: 4px; }
@keyframes bob { 0%, 100% { transform: translateY(1.5%); } 50% { transform: translateY(-1.5%); } }
@keyframes bell { 0% { transform: rotate(0); } 20% { transform: rotate(-6deg) scale(1.03); } 45% { transform: rotate(5deg); } 70% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }

/* ---------- panels */
.panel { border: 1px solid var(--line); background: var(--panel); padding: var(--pad); margin-top: 16px; }
.panel > h2 + * { margin-top: 28px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; color: var(--soft); max-width: 1000px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; border-top: 1px solid var(--line); }
.steps li { padding: 22px 22px 6px 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps__n { display: block; color: var(--lime); margin-bottom: 14px; }
.steps p { margin-top: 10px; color: var(--soft); font-size: 16px; }

/* ---------- this round */
.round { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.round__pool { border: 1px solid var(--line-2); background: var(--panel-2); padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 280px; }
.round__pool p { color: var(--soft); max-width: 34ch; }
.mega { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(72px, 10vw, 150px); line-height: 0.84; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mega--lime { color: var(--lime); }
.round__side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell--wide { grid-column: 1 / -1; }
.dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 4px; margin-top: 14px; }
.dots i { aspect-ratio: 1; background: #dfe7ee; scale: 0; transition: scale 0.4s var(--ease); transition-delay: calc(var(--n) * 12ms); }
.in .dots i, .dots.in i { scale: 1; }
.dots .d-star { background: var(--lime); }
.dots .d-gold { background: var(--gold); }
.dots .d-red { background: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; color: var(--soft); }
.legend span::before, .dot { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: #dfe7ee; vertical-align: baseline; }
.legend .k-star::before, .dot.k-star { background: var(--lime); }
.legend .k-gold::before, .dot.k-gold { background: var(--gold); }
.legend .k-red::before, .dot.k-red { background: var(--red); }

/* ---------- odds */
.odds { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 8px; }
.odds__in > p { color: var(--soft); max-width: 52ch; }
.tabs { display: flex; flex-wrap: wrap; margin-top: 22px; }
.tabs button { min-height: 40px; padding: 0 14px; margin: 0 -1px -1px 0; border: 1px solid var(--line-2); background: transparent; color: var(--soft); cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; transition: background-color 0.15s, color 0.15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); position: relative; }
.field { display: block; margin-top: 20px; }
.field input { width: 100%; min-height: 52px; margin-top: 8px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 0; background: #05080b; color: var(--ink); font-family: var(--mono); font-size: 14px; }
.field input::placeholder { color: #4d5c68; }
.field input:focus-visible { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--lime); }
.odds__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.odds__error { margin-top: 14px; color: var(--red); font-family: var(--mono); font-size: 13px; }
.odds__out { border: 1px solid var(--line-2); background: var(--panel-2); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.check.is-pop .mega { animation: pop 0.38s var(--ease); }
@keyframes pop { 40% { transform: scale(1.06); } }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; border-top: 1px solid var(--line); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin-top: 4px; font-family: var(--mono); font-size: 15px; }

/* ---------- tables */
.tables { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 16px 40px; }
.tbl { width: 100%; margin-top: 16px; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.tbl th { text-align: left; font-weight: 400; color: var(--dim); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td:last-child, .tbl th:last-child { text-align: right; padding-right: 0; }
.tbl td:first-child { color: var(--ink); font-weight: 500; }
.tbl td:last-child { color: var(--lime); }
.fine { margin-top: 14px; color: var(--dim); letter-spacing: 0.04em; text-transform: none; line-height: 1.6; max-width: 62ch; }

/* ---------- ledger */
.drops__meta { font-family: var(--mono); font-size: 14px; color: var(--soft); }
.ledger { margin-top: 18px; border: 1px solid var(--line); background: #080c10; }
.ledger__head, .ledger__rows li { display: grid; grid-template-columns: 52px minmax(0, 1.4fr) 90px 80px 100px minmax(110px, 0.8fr); gap: 12px; align-items: center; padding: 11px 16px; }
.ledger__head { color: var(--dim); border-bottom: 1px solid var(--line-2); }
.ledger__head span:last-child, .ledger__rows li > :last-child { text-align: right; }
.ledger__rows li { font-family: var(--mono); font-size: 14px; border-bottom: 1px solid var(--line); transition: background-color 0.12s; }
.ledger__rows li:last-child { border-bottom: 0; }
.ledger__rows li:hover { background: var(--panel-2); }
.ledger__rows .n { color: var(--dim); }
.ledger__rows .w a { color: var(--ink); text-underline-offset: 4px; }
.ledger__rows .w a:hover { color: var(--lime); }
.ledger__rows .t { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.ledger__rows .t::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: #dfe7ee; }
.ledger__rows .t--star::before { background: var(--lime); }
.ledger__rows .t--gold::before { background: var(--gold); }
.ledger__rows .t--red::before { background: var(--red); }
.ledger__rows .dimmed { color: var(--soft); }
.ledger__rows b { font-weight: 700; color: var(--lime); }
.ledger__rows li.ledger__empty { display: block; color: var(--soft); font-family: var(--text); }
.ledger + .btn { margin-top: 12px; }

/* ---------- faq */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 18px 44px 18px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; transition: color 0.15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--lime); }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-family: var(--mono); font-size: 20px; color: var(--lime); }
.faq details[open] summary::after { content: "-"; }
.faq details p { max-width: 70ch; padding: 0 0 22px; color: var(--soft); }

/* ---------- footer */
.foot { margin-top: 16px; border-top: 1px solid var(--line); padding: 28px 0 36px; overflow: hidden; }
.foot__mark { font-family: var(--display); font-weight: 800; font-size: clamp(110px, 25vw, 340px); line-height: 0.8; letter-spacing: 0.01em; text-transform: uppercase; color: var(--panel-2); white-space: nowrap; margin: 0 0 -0.04em -0.04em; user-select: none; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.5fr) minmax(0, 0.9fr); gap: 20px 40px; align-items: start; margin-top: 28px; }
.ca--foot { margin-top: 0; }
.foot__links { display: grid; gap: 8px; }
.foot__links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--soft); }
.foot__links a:hover { color: var(--lime); }
.foot__note { font-size: 14px; color: var(--dim); }

/* ---------- the drop: 50 packets falling over the page */
.sky-drop { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.pkt { position: absolute; left: 0; top: 0; background: #dfe7ee; will-change: transform; }
.pkt--star { background: var(--lime); box-shadow: 0 0 24px rgba(168, 255, 62, 0.7); }
.pkt--gold { background: var(--gold); }
.pkt--red { background: var(--red); }

/* ---------- entrances */
.js [data-rise] { opacity: 0; translate: 0 18px; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-rise].in { opacity: 1; translate: 0 0; }

/* ---------- narrower */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__ball { max-width: 440px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .round, .odds, .tables, .two { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .ca--foot { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cells--4 { grid-template-columns: 1fr 1fr; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn, .odds__btns .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 18px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .dots { grid-template-columns: repeat(10, 1fr); }
  .tabs button { flex: 1 1 100%; }
  .hide-s { display: none; }
  .ledger__head, .ledger__rows li { grid-template-columns: 30px minmax(0, 1fr) 74px minmax(84px, auto); gap: 8px; padding: 10px 12px; font-size: 13px; }
  .tbl { font-size: 13px; }
  .tbl td, .tbl th { padding-right: 8px; white-space: normal; }
  .foot__grid { grid-template-columns: 1fr; }
  .nav__mark { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-rise] { opacity: 1; translate: 0 0; }
}
