/* ==========================================================================
   ArenaPulse — base layer
   Tokens, reset, typography, layout primitives, header, footer, search,
   navigation drawer, toast and form controls.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #06080a;
  --bg-deep: #040507;
  --bg-soft: #090c11;
  --surface: #0d1117;
  --surface-2: #121821;
  --surface-3: #18202b;
  --surface-hover: #151d27;

  --text: #f1f5f2;
  --text-soft: #c4ced7;
  --muted: #8f9dab;
  --dim: #64717f;

  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);

  --accent: #cbf94a;
  --accent-bright: #ddff70;
  --accent-ink: #0a0f04;
  --accent-soft: rgba(203, 249, 74, 0.12);
  --accent-line: rgba(203, 249, 74, 0.32);

  --violet: #9d7bff;
  --cyan: #4cc2ff;
  --live: #ff4d5e;
  --live-soft: rgba(255, 77, 94, 0.14);
  --win: #49d9a0;

  --font-display: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SFMono-Regular', 'JetBrains Mono', Consolas, monospace;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px -18px rgba(0, 0, 0, 0.9);
  --shadow-md: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 40px 100px -40px rgba(0, 0, 0, 0.95);
  --glow: 0 0 0 1px rgba(203, 249, 74, 0.25), 0 16px 50px -18px rgba(203, 249, 74, 0.35);

  --header-h: 70px;
  --container: 1260px;
  --gutter: clamp(18px, 4vw, 40px);
  --tabbar-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--surface-3) var(--bg-deep);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(157, 123, 255, 0.14), transparent 62%),
    radial-gradient(760px 520px at 8% 4%, rgba(203, 249, 74, 0.09), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(76, 194, 255, 0.06), transparent 65%),
    var(--bg);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #222b36;
  border: 2px solid var(--bg-deep);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #313d4a;
}

/* ── Layout primitives ──────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 6vw, 76px);
}

.section-tight {
  padding-block: clamp(26px, 4vw, 44px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 32px);
}

.section-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  max-width: 56ch;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  padding: 8px 0;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.section-link:hover {
  color: var(--accent);
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.eyebrow.live {
  color: #ff8994;
}

.eyebrow.live .dot {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.5);
  animation: pulse-ring 2.2s infinite;
}

.muted {
  color: var(--muted);
}

.dim {
  color: var(--dim);
}

.text-accent {
  color: var(--accent);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--r-xs);
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-full);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--surface-3);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-border: transparent;
  box-shadow: 0 10px 30px -14px rgba(203, 249, 74, 0.65);
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: transparent;
  box-shadow: 0 14px 36px -14px rgba(203, 249, 74, 0.75);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.03);
  --btn-border: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn-soft {
  --btn-bg: var(--accent-soft);
  --btn-fg: var(--accent);
  --btn-border: rgba(203, 249, 74, 0.2);
}

.btn-soft:hover {
  background: rgba(203, 249, 74, 0.18);
  border-color: var(--accent-line);
}

.btn-live {
  --btn-bg: var(--live);
  --btn-fg: #fff;
  --btn-border: transparent;
  box-shadow: 0 10px 28px -14px rgba(255, 77, 94, 0.7);
}

.btn-live:hover {
  background: #ff6372;
  border-color: transparent;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 14.5px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  transition: all 0.2s var(--ease);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--line-strong);
}

.icon-btn.is-on {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.is-stuck,
.site-header[data-solid='true'] {
  background: rgba(6, 8, 10, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
  max-width: var(--container);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, #7fe36b 48%, #35c4c9 100%);
  box-shadow: 0 0 26px -8px rgba(203, 249, 74, 0.7);
  color: #08110a;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--text);
  line-height: 1;
}

.brand-word em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.nav-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s var(--ease);
}

.nav-tag {
  margin-left: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid rgba(203, 249, 74, 0.18);
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
}

.nav-item[data-open='true'] .nav-toggle svg {
  transform: rotate(180deg);
}

.nav-item[data-open='true'] .nav-toggle {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 11px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12.5px;
  transition: all 0.2s var(--ease);
}

.search-btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.search-btn svg {
  width: 15px;
  height: 15px;
}

.search-btn kbd {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 5px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  background: rgba(0, 0, 0, 0.25);
}

.tz-menu {
  position: relative;
}

.tz-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.tz-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.tz-btn svg {
  width: 15px;
  height: 15px;
}

.tz-btn svg.chev {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.tz-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 288px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s var(--ease);
}

.tz-menu[data-open='true'] .tz-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* On a phone the 288px panel hung 92px off the left edge of the screen, because it is anchored to
   the globe button's right edge and the button sits near the middle of the header. Below 560px it
   is pinned under the header and spans the viewport instead. */
@media (max-width: 560px) {
  .tz-panel {
    position: fixed;
    top: calc(var(--header-h) + 4px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
  }
}

.tz-panel h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.tz-panel .field + .field {
  margin-top: 14px;
}

.tz-panel .hint {
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 10px;
  line-height: 1.45;
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  place-items: center;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-soft);
  transition: transform 0.2s var(--ease);
}

.menu-btn span + span {
  width: 11px;
}

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: -40px;
  width: 700px;
  padding: 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: rgba(11, 14, 19, 0.97);
  backdrop-filter: blur(26px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.99);
  transform-origin: 20% top;
  transition: all 0.22s var(--ease);
}

.nav-item[data-open='true'] .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 236px;
  gap: 8px;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 10px;
}

.mega-label {
  grid-column: 1 / -1;
  padding: 2px 10px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  transition: background 0.16s var(--ease);
}

.mega-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mega-link .sport-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--sc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc) 24%, transparent);
  color: var(--sc);
  flex: 0 0 auto;
}

.mega-link .sport-ico svg {
  width: 17px;
  height: 17px;
}

.mega-link b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.2;
}

.mega-link span {
  font-size: 11px;
  color: var(--dim);
}

.mega-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(160px 120px at 80% 0%, rgba(157, 123, 255, 0.32), transparent 70%),
    radial-gradient(180px 160px at 10% 100%, rgba(203, 249, 74, 0.22), transparent 70%),
    linear-gradient(160deg, #131a22, #0b0e13);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.mega-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.035) 34px 35px);
  mask-image: linear-gradient(180deg, transparent, #000);
}

.mega-side > * {
  position: relative;
}

.mega-side .badge {
  align-self: flex-start;
}

.mega-side h5 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 12px 0 6px;
}

.mega-side p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Badges and pills ───────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge svg {
  width: 11px;
  height: 11px;
}

.badge-live {
  background: var(--live);
  border-color: transparent;
  color: #fff;
  padding-inline: 7px;
}

.badge-live .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.6s infinite;
}

.badge-accent {
  background: var(--accent-soft);
  border-color: rgba(203, 249, 74, 0.22);
  color: var(--accent);
}

.badge-ppv {
  background: linear-gradient(120deg, rgba(157, 123, 255, 0.2), rgba(255, 77, 94, 0.2));
  border-color: rgba(157, 123, 255, 0.35);
  color: #d8ccff;
}

.badge-ghost {
  background: transparent;
  color: var(--muted);
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex: 0 0 auto;
}

/* ── Crests ─────────────────────────────────────────────────────────────── */

.crest {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--crest, 36px);
  height: var(--crest, 36px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 6px 16px -8px rgba(0, 0, 0, 0.8);
}

.crest svg {
  width: 100%;
  height: 100%;
}

/* ── Navigation drawer ──────────────────────────────────────────────────── */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(3, 4, 6, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
}

.drawer-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: min(400px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.34s var(--ease-out), visibility 0.34s var(--ease-out);
  overflow: hidden;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px var(--gutter) 32px;
  overscroll-behavior: contain;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 26px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-soft);
}

.drawer-nav a span {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--dim);
}

.drawer-nav a:hover {
  color: var(--accent);
}

.drawer-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.drawer-sports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 26px;
}

.drawer-sports a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
}

.drawer-sports a svg {
  width: 15px;
  height: 15px;
  color: var(--sc, var(--accent));
}

.drawer-foot {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ── Search overlay ─────────────────────────────────────────────────────── */

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: min(10vh, 90px) var(--gutter) 24px;
}

.search-modal[hidden] {
  display: none;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 6, 0.72);
  backdrop-filter: blur(10px);
  animation: fade-in 0.2s var(--ease);
}

.search-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(72vh, 660px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: rgba(11, 15, 21, 0.98);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: search-in 0.26s var(--ease-out);
}

.search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.search-head svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex: 0 0 auto;
}

.search-head input {
  flex: 1;
  height: 28px;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  outline: none;
}

.search-head input::placeholder {
  color: var(--dim);
}

.search-head kbd {
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  color: var(--dim);
  line-height: 1;
}

.search-results {
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior: contain;
}

.search-group-label {
  padding: 12px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  text-align: left;
  transition: background 0.14s var(--ease);
}

.search-result:hover,
.search-result.is-active {
  background: rgba(255, 255, 255, 0.055);
}

.search-result.is-active {
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}

.search-result .res-crest {
  --crest: 32px;
}

.search-result .res-text {
  flex: 1;
  min-width: 0;
}

.search-result .res-text b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result .res-text span {
  display: block;
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result svg.go {
  width: 14px;
  height: 14px;
  color: var(--dim);
  flex: 0 0 auto;
}

.search-empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

.search-empty strong {
  display: block;
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 5px;
}

.search-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10.5px;
}

.recent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 12px 14px;
}

.recent-chip {
  padding: 6px 11px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  color: var(--muted);
}

.recent-chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

/* ── Toasts ─────────────────────────────────────────────────────────────── */

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 160;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 340px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  background: rgba(16, 21, 28, 0.97);
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  color: var(--text-soft);
  animation: toast-in 0.25s var(--ease-out);
  pointer-events: auto;
}

.toast svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: 0 0 auto;
}

.toast.is-out {
  animation: toast-out 0.2s var(--ease) forwards;
}

.toast.warn {
  border-left-color: #ffc65c;
}

.toast.warn svg {
  color: #ffc65c;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 90px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 12, 17, 0.5), rgba(5, 6, 9, 0.9));
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(38px, 5vw, 62px);
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 32ch;
  margin-bottom: 18px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

.footer-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 8px rgba(73, 217, 160, 0.8);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 15px;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.16s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a:hover {
  color: var(--text-soft);
}

.socials {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

.socials a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.socials svg {
  width: 14px;
  height: 14px;
}

/* ── Mobile tab bar ─────────────────────────────────────────────────────── */

.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  align-items: stretch;
  background: rgba(8, 11, 15, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.tabbar a {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tabbar a svg {
  width: 19px;
  height: 19px;
}

.tabbar a.is-active {
  color: var(--accent);
}

.tabbar a.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.tabbar .tab-live-dot {
  position: absolute;
  top: 10px;
  right: calc(50% - 14px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--live);
}

/* ── Forms ──────────────────────────────────────────────────────────────── */

.field {
  display: grid;
  gap: 6px;
}

.field > label,
.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.textarea {
  height: auto;
  min-height: 132px;
  padding: 12px 13px;
  line-height: 1.6;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238f9dab' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.select option {
  background: var(--surface-2);
  color: var(--text);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--dim);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(203, 249, 74, 0.08);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-soft);
}

.switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  transition: background 0.2s var(--ease);
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row input:checked + .switch {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.switch-row input:checked + .switch::after {
  transform: translateX(16px);
  background: var(--accent);
}

.switch-row input:focus-visible + .switch {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Utilities ──────────────────────────────────────────────────────────── */

.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay='1'] {
  transition-delay: 0.06s;
}

.reveal[data-delay='2'] {
  transition-delay: 0.12s;
}

.reveal[data-delay='3'] {
  transition-delay: 0.18s;
}

[hidden] {
  display: none !important;
}

/* ── Animations ─────────────────────────────────────────────────────────── */

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 77, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 94, 0);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes search-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -3%, 0) scale(1.06);
  }
}

/* ── Responsive shell ───────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  .search-btn span,
  .search-btn kbd {
    display: none;
  }

  .search-btn {
    width: 34px;
    padding: 0;
    justify-content: center;
    border-color: transparent;
    background: transparent;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .tz-btn span {
    display: none;
  }

  .tz-btn {
    width: 34px;
    justify-content: center;
    padding: 0;
  }

  .tz-btn svg.chev {
    display: none;
  }
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 60px;
    --gutter: 16px;
  }

  body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }

  .tabbar {
    display: flex;
  }

  .brand-word {
    font-size: 15.5px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .header-inner {
    gap: 10px;
  }

  .search-btn {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .toasts {
    left: 14px;
    right: 14px;
    bottom: calc(var(--tabbar-h) + 14px);
  }

  .toast {
    max-width: none;
    min-width: 0;
  }

  .search-modal {
    padding: 12px;
    align-items: flex-start;
  }

  .search-panel {
    max-height: calc(100vh - 24px);
    border-radius: var(--r-md);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
