/* ============================================================
   WORLD CUP 2026 — NEON / HUD EDITION
   Dark mode cyberpunk broadcast aesthetic
   ============================================================ */

/* === DESIGN TOKENS ============================================ */
:root {
  /* Color · base */
  --bg:           #030208;
  --bg-deep:      #000000;
  --surface:      rgba(12, 10, 28, 0.6);
  --surface-2:    rgba(20, 16, 42, 0.7);
  --surface-3:    rgba(30, 22, 60, 0.8);
  --line:         rgba(120, 134, 230, 0.14);
  --line-bright:  rgba(0, 240, 255, 0.3);
  --line-hot:     rgba(255, 43, 214, 0.4);

  /* Color · text */
  --text:         #d8e2ff;
  --text-strong:  #ffffff;
  --text-muted:   #6c7191;
  --text-faint:   #2c2e44;

  /* Neon palette */
  --cyan:         #00f0ff;
  --cyan-soft:    #4ff5ff;
  --pink:         #ff2bd6;
  --pink-soft:    #ff7be3;
  --lime:         #adff00;
  --lime-soft:    #c9ff5a;
  --purple:       #b85bff;
  --orange:       #ff7b2b;
  --red:          #ff2b6b;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans:    'Space Grotesk', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Geist Mono', 'Menlo', monospace;

  /* Spacing scale */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;

  /* Layout */
  --max-w:        1480px;
  --rail:         clamp(1.25rem, 4vw, 3rem);

  /* Effects */
  --r-sm:         2px;
  --r:            4px;
  --r-lg:         8px;

  --glow-cyan:    0 0 24px rgba(0, 240, 255, 0.45),
                  0 0 48px rgba(0, 240, 255, 0.18);
  --glow-pink:    0 0 24px rgba(255, 43, 214, 0.45),
                  0 0 48px rgba(255, 43, 214, 0.18);
  --glow-lime:    0 0 24px rgba(173, 255, 0, 0.4),
                  0 0 48px rgba(173, 255, 0, 0.15);
  --glow-purple:  0 0 24px rgba(184, 91, 255, 0.4),
                  0 0 48px rgba(184, 91, 255, 0.15);

  /* Motion */
  --ease:         cubic-bezier(.2,.7,.2,1);
  --ease-out:     cubic-bezier(.16,1,.3,1);
  --dur-1:        .15s;
  --dur-2:        .35s;
  --dur-3:        .6s;
}

/* === RESET ====================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, select { font: inherit; color: inherit; }

/* === BASE ======================================================= */
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background — animated cosmic */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(800px 600px at 15% 10%, rgba(0, 240, 255, 0.12), transparent 60%),
    radial-gradient(900px 700px at 85% 90%, rgba(255, 43, 214, 0.10), transparent 60%),
    radial-gradient(1200px 800px at 50% 50%, rgba(184, 91, 255, 0.06), transparent 60%);
  animation: drift 30s linear infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-2%, 2%) scale(1.05); }
  66% { transform: translate(2%, -1%) scale(0.98); }
}

/* Grid overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(120, 134, 230, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 134, 230, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Scanlines overlay */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 3px
  );
  mix-blend-mode: multiply;
}

/* CRT vignette */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}

/* === TYPOGRAPHY ================================================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.kicker::before {
  content: '◢';
  color: var(--cyan);
  font-size: 0.6rem;
  text-shadow: 0 0 8px var(--cyan);
}

.kicker--pink { color: var(--pink); }
.kicker--pink::before { color: var(--pink); text-shadow: 0 0 8px var(--pink); }
.kicker--lime { color: var(--lime); }
.kicker--lime::before { color: var(--lime); text-shadow: 0 0 8px var(--lime); }
.kicker--purple { color: var(--purple); }
.kicker--purple::before { color: var(--purple); text-shadow: 0 0 8px var(--purple); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--text-strong);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--text-strong);
  text-transform: uppercase;
}

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

/* City intro paragraph on city-*.html hero — clean lead text,
   same family as the rest of the body, no italic, no decoration. */
.city-quote {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 60ch;
}

.body { font-size: 0.9375rem; line-height: 1.55; color: var(--text-muted); max-width: 62ch; }
.body-sm { font-size: 0.8125rem; line-height: 1.55; color: var(--text-muted); }

.num {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Glow text utilities */
.glow-cyan {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.6),
               0 0 38px rgba(0, 240, 255, 0.25);
}
.glow-pink {
  color: var(--pink);
  text-shadow: 0 0 18px rgba(255, 43, 214, 0.6),
               0 0 38px rgba(255, 43, 214, 0.25);
}
.glow-lime {
  color: var(--lime);
  text-shadow: 0 0 18px rgba(173, 255, 0, 0.5),
               0 0 38px rgba(173, 255, 0, 0.18);
}
.glow-white {
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.45),
               0 0 50px rgba(0, 240, 255, 0.18);
}

/* === LAYOUT ===================================================== */
.shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--rail);
  position: relative;
}

.section { padding: var(--s-9) 0; position: relative; }
.section--tight { padding: var(--s-7) 0; }

/* Section label — top-left bracket */
.section-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: var(--surface);
  backdrop-filter: blur(10px);
  line-height: 1.35;
}

.section-tag span { color: var(--cyan); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: end;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head__meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 44ch;
}

/* Узкие экраны: сворачиваем в одну колонку, чтобы заголовок не налезал на meta-абзац */
@media (max-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .section-head__meta { text-align: left; }
}

/* Bracket-cornered cell */
.cell {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-5);
  transition: all var(--dur-2) var(--ease);
}

.cell::before,
.cell::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--cyan);
  pointer-events: none;
  transition: all var(--dur-2) var(--ease);
}

.cell::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cell::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.cell:hover {
  border-color: var(--line-bright);
  background: var(--surface-2);
}

.cell:hover::before,
.cell:hover::after {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 12px var(--cyan);
}

.cell--pink::before, .cell--pink::after { border-color: var(--pink); }
.cell--pink:hover::before, .cell--pink:hover::after { box-shadow: 0 0 12px var(--pink); }

.cell--lime::before, .cell--lime::after { border-color: var(--lime); }
.cell--lime:hover::before, .cell--lime:hover::after { box-shadow: 0 0 12px var(--lime); }

/* === NAVIGATION ================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: linear-gradient(180deg, rgba(3, 2, 8, 0.92), rgba(3, 2, 8, 0.7));
  border-bottom: 1px solid var(--line-bright);
  box-shadow: 0 0 0 0 var(--cyan), 0 0 24px rgba(0, 240, 255, 0.08);
}

.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-3) var(--rail);
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-strong);
  text-transform: uppercase;
  font-weight: 500;
}

.brand__mark {
  width: 28px;
  height: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand__26 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
  padding: 1px 6px;
  border: 1px solid var(--cyan);
  border-radius: var(--r-sm);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
  margin-left: 0.4rem;
}

.nav__links {
  display: flex;
  gap: 0.1rem;
  justify-content: center;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color var(--dur-1) var(--ease);
}

.nav__link:hover { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }

.nav__link.is-active { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.nav__link.is-active::before {
  content: '';
  position: absolute;
  left: 0.85rem; right: 0.85rem;
  top: 0.05rem;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
  transition: all var(--dur-1) var(--ease);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.nav__cta:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: var(--glow-cyan);
}

.live-dot {
  width: 6px; height: 6px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red), 0 0 16px var(--red);
  animation: blink 1.4s var(--ease) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* === HERO ======================================================= */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 50%, rgba(0, 240, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.hero__crosshair {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.15), transparent);
  pointer-events: none;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__top-left {
  display: flex;
  gap: var(--s-4);
  align-items: center;
}

.hero__top-right {
  display: flex;
  gap: var(--s-4);
  align-items: center;
}

.hero__top em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-strong);
  text-shadow: 0 0 60px rgba(0, 240, 255, 0.15);
  margin-bottom: var(--s-5);
}

.hero__title .pink { color: var(--pink); text-shadow: 0 0 30px rgba(255, 43, 214, 0.4); }
.hero__title .cyan { color: var(--cyan); text-shadow: 0 0 30px rgba(0, 240, 255, 0.4); }
.hero__title .lime { color: var(--lime); text-shadow: 0 0 30px rgba(173, 255, 0, 0.35); }

.hero__title .small {
  font-size: 0.18em;
  vertical-align: super;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-shadow: none;
  margin-left: 0.3em;
}

.hero__sub {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--s-7);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.hero__sub p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.5;
  max-width: 38ch;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.hero__meta-item {
  padding: var(--s-4);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__meta-item:nth-child(2n) { border-right: 0; }
.hero__meta-item:nth-last-child(-n+2) { border-bottom: 0; }

.hero__meta-item .lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero__meta-item .val {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.2;
}

.hero__meta-item .val small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 400;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--s-7);
  border: 1px solid var(--line-bright);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  background: rgba(0, 240, 255, 0.02);
}

.countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.05), transparent);
  animation: sweep 4s var(--ease) infinite;
  pointer-events: none;
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.countdown__cell {
  padding: var(--s-5) var(--s-3);
  border-right: 1px solid var(--line);
  text-align: center;
  position: relative;
}

.countdown__cell:last-child { border-right: 0; }

.countdown__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5),
               0 0 40px rgba(0, 240, 255, 0.2);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.countdown__lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* === TICKER (pulse) ============================================= */
.ticker {
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
  background: rgba(0, 240, 255, 0.02);
  padding: var(--s-3) 0;
  overflow: hidden;
  position: relative;
}

.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.ticker__inner {
  display: flex;
  gap: var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  width: max-content;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.ticker__item strong { color: var(--text); font-weight: 500; }
.ticker__sep { color: var(--cyan); }
.ticker__cyan { color: var(--cyan); }
.ticker__pink { color: var(--pink); }
.ticker__lime { color: var(--lime); }

/* === ATLAS ====================================================== */
.atlas {
  padding: var(--s-9) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.atlas__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}

.atlas__head h2 {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.atlas__map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.04), rgba(255, 43, 214, 0.04)),
    rgba(5, 4, 16, 0.7);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 240, 255, 0.06);
}

.atlas__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.atlas__legend {
  position: absolute;
  bottom: var(--s-4);
  left: var(--s-4);
  display: flex;
  gap: var(--s-4);
  padding: 0.6rem 1rem;
  background: rgba(3, 2, 8, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.atlas__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.atlas__legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.atlas__index {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: right;
  padding: 0.5rem 0.8rem;
  background: rgba(3, 2, 8, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.atlas__index strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 0.4rem;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.atlas__corner {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.atlas__corner--tl { top: -1px; left: -1px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.atlas__corner--tr { top: -1px; right: -1px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.atlas__corner--bl { bottom: -1px; left: -1px; border-bottom: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.atlas__corner--br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }

.atlas-big { margin-top: var(--s-7); height: 75vh; min-height: 600px; max-height: 820px; aspect-ratio: auto; }

.city-node { cursor: pointer; }
.city-node circle:first-child { transition: r var(--dur-2) var(--ease), filter var(--dur-2) var(--ease); }
.city-node:hover circle:first-child { r: 9; }

.atlas__pop {
  position: absolute;
  z-index: 5;
  width: 240px;
  background: rgba(5, 4, 16, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-bright);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--cyan);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) scale(.96);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.atlas__pop[data-placement="above"] { transform: translate(-50%, calc(-100% - 4px)) scale(.96); }
.atlas__pop.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.atlas__pop[data-placement="above"].is-visible { transform: translate(-50%, -100%) scale(1); }
.atlas__pop[data-color="cyan"] { color: var(--cyan); border-color: rgba(0, 240, 255, 0.5); }
.atlas__pop[data-color="pink"] { color: var(--pink); border-color: rgba(255, 43, 214, 0.5); }
.atlas__pop[data-color="lime"] { color: var(--lime); border-color: rgba(173, 255, 0, 0.5); }
.atlas__pop[data-color="cyan"]:hover { box-shadow: 0 0 32px rgba(0, 240, 255, 0.35); }
.atlas__pop[data-color="pink"]:hover { box-shadow: 0 0 32px rgba(255, 43, 214, 0.35); }
.atlas__pop[data-color="lime"]:hover { box-shadow: 0 0 32px rgba(173, 255, 0, 0.35); }

.atlas__pop__img {
  position: relative;
  height: 110px;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.05) 0%, rgba(5, 4, 16, 0) 60%),
    linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 43, 214, 0.06));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.atlas__pop[data-color="pink"] .atlas__pop__img {
  background: linear-gradient(180deg, rgba(255, 43, 214, 0.08) 0%, rgba(5, 4, 16, 0) 60%), linear-gradient(135deg, rgba(255, 43, 214, 0.10), rgba(0, 240, 255, 0.05));
}
.atlas__pop[data-color="lime"] .atlas__pop__img {
  background: linear-gradient(180deg, rgba(173, 255, 0, 0.08) 0%, rgba(5, 4, 16, 0) 60%), linear-gradient(135deg, rgba(173, 255, 0, 0.10), rgba(255, 43, 214, 0.04));
}
.atlas__pop__img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas__pop__img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(.92) contrast(1.05) saturate(.85);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.atlas__pop__img.has-photo > img { opacity: 1; }
.atlas__pop__img.has-photo > svg { display: none; }
.atlas__pop__img.has-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,4,16,0) 45%, rgba(5,4,16,.55) 100%),
    linear-gradient(135deg, rgba(0,240,255,.12), rgba(255,43,214,.08));
  pointer-events: none;
  z-index: 2;
}
.atlas__pop[data-color="pink"] .atlas__pop__img.has-photo::after {
  background:
    linear-gradient(180deg, rgba(5,4,16,0) 45%, rgba(5,4,16,.55) 100%),
    linear-gradient(135deg, rgba(255,43,214,.14), rgba(0,240,255,.06));
}
.atlas__pop[data-color="lime"] .atlas__pop__img.has-photo::after {
  background:
    linear-gradient(180deg, rgba(5,4,16,0) 45%, rgba(5,4,16,.55) 100%),
    linear-gradient(135deg, rgba(173,255,0,.14), rgba(255,43,214,.06));
}
.atlas__pop__role {
  position: absolute; top: 8px; left: 10px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 3px 7px; background: rgba(3, 2, 8, 0.8); border-radius: 3px;
  border: 1px solid var(--line);
}
.atlas__pop[data-color="cyan"] .atlas__pop__role { color: var(--cyan); border-color: rgba(0,240,255,.4); }
.atlas__pop[data-color="pink"] .atlas__pop__role { color: var(--pink); border-color: rgba(255,43,214,.4); }
.atlas__pop[data-color="lime"] .atlas__pop__role { color: var(--lime); border-color: rgba(173,255,0,.4); }

.atlas__pop__body { padding: 0.7rem 0.9rem 0.85rem; }
.atlas__pop__city {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.35rem;
}
.atlas__pop__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--text-strong); letter-spacing: -0.01em; line-height: 1.1;
  margin-bottom: 0.5rem;
}
.atlas__pop__cap {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: baseline;
}
.atlas__pop__cap small {
  font-size: 0.6rem; letter-spacing: 0.16em; color: var(--text-muted);
  text-transform: uppercase;
}
.atlas__pop__cap strong {
  font-weight: 500; color: var(--cyan); text-shadow: 0 0 8px rgba(0,240,255,.5);
}
.atlas__pop[data-color="pink"] .atlas__pop__cap strong { color: var(--pink); text-shadow: 0 0 8px rgba(255,43,214,.5); }
.atlas__pop[data-color="lime"] .atlas__pop__cap strong { color: var(--lime); text-shadow: 0 0 8px rgba(173,255,0,.5); }

.atlas__pop__head {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-2) var(--ease);
}
.atlas__pop__head:hover { background: rgba(0,240,255,.04); }
.atlas__pop[data-color="pink"] .atlas__pop__head:hover { background: rgba(255,43,214,.04); }
.atlas__pop[data-color="lime"] .atlas__pop__head:hover { background: rgba(173,255,0,.04); }

.atlas__pop__matches {
  border-top: 1px solid var(--line);
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}
.atlas__pop__matches:empty { display: none; }
.atlas__pop__matches::-webkit-scrollbar { width: 4px; }
.atlas__pop__matches::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 2px; }
.atlas__pop__matches__title {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.55rem 0.9rem 0.35rem;
}

.atlas__pop__match {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  border-top: 1px solid var(--line);
  color: var(--text);
  align-items: center;
  transition: background var(--dur-2) var(--ease);
}
.atlas__pop__match:hover { background: rgba(0,240,255,.05); }
.atlas__pop[data-color="pink"] .atlas__pop__match:hover { background: rgba(255,43,214,.05); }
.atlas__pop[data-color="lime"] .atlas__pop__match:hover { background: rgba(173,255,0,.05); }

.atlas__pop__match__date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-strong);
  line-height: 1.1;
}
.atlas__pop__match__date small {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 0.18rem;
  text-transform: uppercase;
  font-weight: 400;
}
.atlas__pop__match__teams {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.005em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atlas__pop__match__teams small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atlas__pop__match__tag {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-muted);
  white-space: nowrap;
  align-self: center;
}
.atlas__pop__match__tag--star  { color: var(--lime); border-color: rgba(173,255,0,.4); text-shadow: 0 0 6px rgba(173,255,0,.5); }
.atlas__pop__match__tag--final { color: var(--pink); border-color: rgba(255,43,214,.4); text-shadow: 0 0 6px rgba(255,43,214,.5); }
.atlas__pop__match__tag--ko    { color: var(--cyan); border-color: rgba(0,240,255,.4); text-shadow: 0 0 6px rgba(0,240,255,.5); }

.atlas__pop__more {
  display: block;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.atlas__pop__more:hover { color: var(--cyan); background: rgba(0,240,255,.05); }
.atlas__pop[data-color="pink"] .atlas__pop__more:hover { color: var(--pink); background: rgba(255,43,214,.05); }
.atlas__pop[data-color="lime"] .atlas__pop__more:hover { color: var(--lime); background: rgba(173,255,0,.05); }

/* === BUTTONS ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  transition: all var(--dur-2) var(--ease);
  cursor: pointer;
  position: relative;
  border-radius: var(--r-sm);
}

.btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: var(--glow-cyan);
  text-shadow: 0 0 8px var(--cyan);
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-color: var(--cyan);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4),
              inset 0 0 20px rgba(255, 255, 255, 0.1);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--cyan-soft), var(--pink));
  color: #000;
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.6),
              0 0 60px rgba(255, 43, 214, 0.3);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: transparent;
  color: var(--text-muted);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--cyan);
  box-shadow: none;
}

.btn .arr {
  width: 14px; height: 14px;
  transition: transform var(--dur-2) var(--ease);
}
.btn:hover .arr { transform: translateX(3px); }

/* === JOURNEY / TIMELINE ========================================= */
.journey {
  border-top: 1px solid var(--line);
  padding: var(--s-9) 0;
  position: relative;
}

.journey__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}

.journey__head h2 {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  text-transform: uppercase;
  line-height: 0.85;
}

.journey__rail {
  position: relative;
  padding: var(--s-6) 0 var(--s-3);
}

.journey__rail::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 25px;
  height: 1px;
  background: linear-gradient(90deg, var(--text-faint), var(--cyan), var(--purple), var(--pink), var(--text-faint));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.journey__phases {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  z-index: 2;
}

.phase {
  position: relative;
  padding: 0 var(--s-3);
  text-align: center;
}

.phase__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--text-muted);
  margin: 14px auto 1rem;
  position: relative;
  z-index: 2;
}

.phase--current .phase__dot {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.18),
              0 0 20px var(--cyan);
}

.phase--current .phase__dot::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: ring 2s var(--ease) infinite;
}

@keyframes ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.phase--done .phase__dot {
  background: var(--text-muted);
  border-color: var(--text-muted);
}

.phase__date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.phase__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.phase--current .phase__name {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.phase__sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Featured day card */
.featured {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 0% 100%, rgba(0, 240, 255, 0.10), transparent 60%);
  pointer-events: none;
}

.featured-day {
  grid-column: span 4;
  position: relative;
  z-index: 2;
}

.featured-day__day {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
  color: var(--text-strong);
  letter-spacing: -0.04em;
}

.featured-day__day em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.6);
}

.featured-day__lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.featured-stories {
  grid-column: span 8;
  display: grid;
  gap: 0;
  position: relative;
  z-index: 2;
}

.featured-story {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: all var(--dur-1) var(--ease);
}
.featured-story:last-child { border-bottom: 0; }
.featured-story:hover {
  background: rgba(0, 240, 255, 0.02);
  padding-left: 0.5rem;
}

.featured-story__time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.featured-story__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.featured-story__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.featured-story__tag--cyan { color: var(--cyan); border-color: rgba(0, 240, 255, 0.3); }
.featured-story__tag--pink { color: var(--pink); border-color: rgba(255, 43, 214, 0.3); }
.featured-story__tag--lime { color: var(--lime); border-color: rgba(173, 255, 0, 0.3); }
.featured-story__tag--purple { color: var(--purple); border-color: rgba(184, 91, 255, 0.3); }

/* === STAGES (BUILD-UP CARDS) ==================================== */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}

.stage {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
  transition: all var(--dur-2) var(--ease);
}

.stage::before, .stage::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--cyan);
  pointer-events: none;
  transition: all var(--dur-2) var(--ease);
  opacity: 0.5;
}
.stage::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.stage::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.stage:hover {
  border-color: var(--line-bright);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.stage:hover::before, .stage:hover::after {
  opacity: 1;
  width: 22px; height: 22px;
  box-shadow: 0 0 8px var(--cyan);
}

.stage--lg { grid-column: span 6; min-height: 360px; }
.stage--md { grid-column: span 4; min-height: 260px; }
.stage--sm { grid-column: span 3; min-height: 200px; }

.stage__day {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stage__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

.stage--lg .stage__title { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.stage__title em { font-style: normal; color: var(--cyan); text-shadow: 0 0 12px rgba(0, 240, 255, 0.4); }

.stage__excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: auto;
}

.stage__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.25rem 0.55rem;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--r-sm);
  align-self: flex-start;
}

.stage__tag--pink { color: var(--pink); background: rgba(255, 43, 214, 0.06); border-color: rgba(255, 43, 214, 0.25); }
.stage__tag--lime { color: var(--lime); background: rgba(173, 255, 0, 0.06); border-color: rgba(173, 255, 0, 0.25); }
.stage__tag--purple { color: var(--purple); background: rgba(184, 91, 255, 0.06); border-color: rgba(184, 91, 255, 0.25); }
.stage__tag--red { color: var(--red); background: rgba(255, 43, 107, 0.06); border-color: rgba(255, 43, 107, 0.25); }

.stage__big {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  margin-top: auto;
}
.stage__big em { font-style: normal; color: var(--cyan); text-shadow: 0 0 20px var(--cyan); }

/* === GROUPS ===================================================== */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.group {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-4);
  position: relative;
  transition: all var(--dur-2) var(--ease);
  display: flex;
  flex-direction: column;
}

.group:hover {
  border-color: var(--line-bright);
  background: var(--surface-2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.group__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-3);
}

.group__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}

.group__name em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.group__cities {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* === GROUP TABLE (gtbl) ========================================== */
.gtbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  margin-bottom: var(--s-4);
}
.gtbl thead th {
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  padding: 0 0 0.4rem;
  border-bottom: 1px solid var(--line);
}
.gtbl thead th:nth-child(1),
.gtbl thead th:nth-child(2) { text-align: left; }
.gtbl tbody td {
  padding: 0.45rem 0.2rem;
  text-align: center;
  border-bottom: 1px solid rgba(120,134,230,0.06);
  color: var(--text);
}
.gtbl tbody tr:last-child td { border-bottom: 0; }
.gtbl tbody tr:nth-child(-n+2) td { background: rgba(0,240,255,0.02); }
.gtbl tbody tr:nth-child(-n+2) td.gtbl__seed { color: var(--cyan); }
.gtbl tbody tr:nth-child(3) td.gtbl__seed { color: var(--lime); }
.gtbl__seed {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: left;
  padding-left: 0;
  width: 28px;
}
.gtbl__team {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}
.gtbl__team a {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gtbl__team a:hover { color: var(--cyan); }
.gtbl__flag {
  width: 22px; height: 14px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  display: inline-block;
}
.gtbl__flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gtbl__gd { color: var(--text-muted); }
.gtbl__pts {
  font-weight: 600;
  color: var(--text-strong);
}

/* === GROUP SCHEDULE (gsch) ======================================= */
.gsch {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.gsch__tour {
  border-top: 1px solid var(--line);
  padding-top: var(--s-3);
}
.gsch__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gsch__tour-no { color: var(--cyan); }
.gsch__tour-date { color: var(--text-muted); }
.gsch__row {
  display: grid;
  grid-template-columns: auto auto 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.2rem 0.5rem;
  padding: 0.4rem 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(120,134,230,0.06);
  transition: color var(--dur-1) var(--ease);
}
.gsch__row:last-child { border-bottom: 0; }
.gsch__row:hover { color: var(--cyan); }
.gsch__row:hover .gsch__teamA,
.gsch__row:hover .gsch__teamB { color: var(--text-strong); }
.gsch__date {
  grid-row: 1; grid-column: 1;
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}
.gsch__time {
  grid-row: 1; grid-column: 2;
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.gsch__teamA {
  grid-row: 1; grid-column: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
  text-align: right;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gsch__teamA img,
.gsch__teamB img {
  width: 18px; height: 12px;
  object-fit: cover;
  border-radius: 1px;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.gsch__score {
  grid-row: 1; grid-column: 4;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.gsch__teamB {
  grid-row: 1; grid-column: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gsch__venue {
  grid-row: 2;
  grid-column: 1 / -1;
  font-size: 0.58rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 0.1rem;
}

/* === BRACKET (br) ================================================ */
.br {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-3);
  align-items: stretch;
}
.br__round {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 2px solid var(--br-color, var(--cyan));
  border-radius: var(--r);
  padding: var(--s-4);
  background: var(--surface);
  min-width: 0;
}
.br__rh {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
}
.br__rh-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--br-color, var(--cyan));
  text-shadow: 0 0 12px var(--br-color, var(--cyan));
}
.br__rh-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.br__matches {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.bm {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.6rem;
  background: rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-mono);
  transition: all var(--dur-1) var(--ease);
}
.bm:hover {
  border-color: var(--br-color, var(--cyan));
  background: rgba(0,240,255,0.03);
  box-shadow: 0 0 12px color-mix(in srgb, var(--br-color, var(--cyan)) 25%, transparent);
}
.bm__hd {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bm__no {
  color: var(--br-color, var(--cyan));
  font-weight: 600;
}
.bm__when { color: var(--text-muted); }
.bm__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
}
.bm__t {
  font-size: 0.7rem;
  color: var(--text);
  letter-spacing: 0.01em;
  font-weight: 500;
  line-height: 1.25;
}
.bm__t:first-child { text-align: right; }
.bm__t:last-child  { text-align: left; }
.bm__vs {
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.bm__venue {
  font-size: 0.55rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(120,134,230,0.06);
}

.bm--final {
  border: 1px solid var(--pink);
  background: linear-gradient(180deg, rgba(255,43,214,0.08), rgba(0,0,0,0.18));
  box-shadow: 0 0 16px rgba(255,43,214,0.18);
}
.bm--final .bm__t {
  font-size: 0.78rem;
  color: var(--text-strong);
}
.bm--final .bm__no { color: var(--pink); }

/* === TEAMS GRID ================================================= */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

.team-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: all var(--dur-2) var(--ease);
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(0, 240, 255, 0.06));
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
  pointer-events: none;
}

.team-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
              0 0 32px rgba(0, 240, 255, 0.15);
}

.team-card:hover::before { opacity: 1; }

.team-card__hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--s-4);
  position: relative;
  z-index: 2;
}

.team-card__group-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.team-card__rank {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.team-card__flag {
  width: 56px;
  height: 36px;
  border-radius: 3px;
  margin-bottom: var(--s-4);
  background: var(--surface-3);
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
}
.team-card__flag img { display: block; width: 100%; height: 100%; object-fit: cover; }

.team-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 2;
}

.team-card__form {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--s-4);
  position: relative;
  z-index: 2;
  letter-spacing: 0.05em;
}

.team-card__form .w { color: var(--lime); }
.team-card__form .l { color: var(--red); }
.team-card__form .d { color: var(--text-muted); }

.team-card__bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  position: relative;
  z-index: 2;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.team-card__star { font-size: 0.78rem; }
.team-card__star strong { color: var(--text); display: block; font-weight: 600; letter-spacing: -0.01em; }
.team-card__star span { color: var(--text-muted); font-size: 0.7rem; font-family: var(--font-mono); }

.team-card__odds { text-align: right; }
.team-card__odds .num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  letter-spacing: -0.02em;
}
.team-card__odds .lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* === CITIES GRID ================================================ */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}

.city-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-5);
  transition: all var(--dur-2) var(--ease);
}

.city-card--lg { grid-column: span 6; min-height: 420px; }
.city-card--md { grid-column: span 6; min-height: 340px; }
.city-card--sm { grid-column: span 4; min-height: 260px; }

.city-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.15);
}

.city-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.city-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(3, 2, 8, 0.95));
}

.city-card__top {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.city-card__country {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.3rem 0.6rem;
  background: rgba(3, 2, 8, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-sm);
}

.city-card__flag {
  width: 14px; height: 9px;
  border-radius: 1px;
  overflow: hidden;
  display: inline-block;
}
.city-card__flag img { display: block; width: 100%; height: 100%; object-fit: cover; }

.city-card__role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.3rem 0.6rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--cyan);
  border-radius: var(--r-sm);
  backdrop-filter: blur(12px);
  text-shadow: 0 0 8px var(--cyan);
}

.city-card__role--pink {
  color: var(--pink);
  background: rgba(255, 43, 214, 0.08);
  border-color: var(--pink);
  text-shadow: 0 0 8px var(--pink);
}

.city-card__content {
  position: relative;
  z-index: 2;
}

.city-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--text-strong);
  margin-bottom: var(--s-2);
}

.city-card__name em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.5);
}

.city-card__name em.pink { color: var(--pink); text-shadow: 0 0 24px rgba(255, 43, 214, 0.5); }

.city-card__meta {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: var(--s-2);
  text-transform: uppercase;
}

/* === FOOTER ===================================================== */
.foot {
  border-top: 1px solid var(--line-bright);
  padding: var(--s-9) 0 var(--s-5);
  background: var(--bg-deep);
  position: relative;
}

.foot::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), var(--pink), transparent);
  box-shadow: 0 0 12px var(--cyan);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-6);
}

.foot__brand { grid-column: span 4; }
.foot__brand h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--text-strong);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.foot__brand h3 .cyan { color: var(--cyan); text-shadow: 0 0 24px rgba(0, 240, 255, 0.4); }

.foot__brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 30ch;
}

.foot-col { grid-column: span 2; }

.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--s-3);
  font-weight: 500;
}

.foot-col ul li { margin-bottom: 0.4rem; }

.foot-col a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color var(--dur-1) var(--ease);
}

.foot-col a:hover { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }

.foot__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s-5);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.foot__bottom-center { text-align: center; color: var(--text); }
.foot__bottom-right { text-align: right; color: var(--cyan); }

/* === HELPERS ==================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
}

.tag--cyan { color: var(--cyan); border-color: rgba(0, 240, 255, 0.3); background: rgba(0, 240, 255, 0.06); }
.tag--pink { color: var(--pink); border-color: rgba(255, 43, 214, 0.3); background: rgba(255, 43, 214, 0.06); }
.tag--lime { color: var(--lime); border-color: rgba(173, 255, 0, 0.3); background: rgba(173, 255, 0, 0.06); }
.tag--purple { color: var(--purple); border-color: rgba(184, 91, 255, 0.3); background: rgba(184, 91, 255, 0.06); }
.tag--live {
  color: var(--red);
  border-color: rgba(255, 43, 107, 0.3);
  background: rgba(255, 43, 107, 0.06);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: .07s; }
[data-reveal][data-delay="2"] { transition-delay: .14s; }
[data-reveal][data-delay="3"] { transition-delay: .21s; }
[data-reveal][data-delay="4"] { transition-delay: .28s; }
[data-reveal][data-delay="5"] { transition-delay: .35s; }

/* === RESPONSIVE ================================================ */
@media (max-width: 1100px) {
  .stage--lg { grid-column: span 12; }
  .stage--md { grid-column: span 6; }
  .stage--sm { grid-column: span 6; }
  .city-card--lg, .city-card--md { grid-column: span 12; }
  .city-card--sm { grid-column: span 6; }
  .teams-grid { grid-template-columns: repeat(2, 1fr); }
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
  .br { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-day, .featured-stories { grid-column: span 12; }
  .foot__brand { grid-column: span 12; }
  .foot-col { grid-column: span 4; }
  .journey__phases { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-6); }
  .journey__rail::before { display: none; }
  .hero__sub { grid-template-columns: 1fr; gap: var(--s-5); }
  .atlas__head, .journey__head { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --rail: 1.25rem; }
  .nav__links { display: none; }
  .stage--md, .stage--sm { grid-column: span 12; }
  .city-card--sm { grid-column: span 12; }
  .teams-grid { grid-template-columns: 1fr; }
  .groups-grid { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .countdown__cell:nth-child(2) { border-right: 0; }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta-item { border-right: 0; }
  .hero__meta-item:last-child { border-bottom: 0; }
  .foot-col { grid-column: span 6; }
  .foot__bottom { grid-template-columns: 1fr; gap: 0.5rem; text-align: center; }
  .foot__bottom-right, .foot__bottom-center { text-align: center; }
  .br { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === PAGE-SPECIFIC: Team / City / Match ======================== */
.page-hero {
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  filter: blur(80px);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: end;
}
.page-hero__inner > div + div { padding-top: var(--s-7); }

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-strong);
  text-shadow: 0 0 60px rgba(0, 240, 255, 0.15);
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  max-width: 100%;
}

.page-hero__title span {
  display: inline-block;
  font-size: 0.7em;
  max-width: 100%;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  position: relative;
}
.page-hero__title span[data-tip] { cursor: help; }
.page-hero__title span[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.6rem;
  z-index: 20;
  width: max-content;
  max-width: 460px;
  padding: 0.7rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: none;
  white-space: normal;
  color: var(--text);
  text-shadow: none;
  background: rgba(5, 4, 16, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-sm);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  pointer-events: none;
}
.page-hero__title span[data-tip]:hover::after,
.page-hero__title span[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.page-hero__title .cyan { color: var(--cyan); text-shadow: 0 0 30px rgba(0, 240, 255, 0.5); }
.page-hero__title .pink { color: var(--pink); text-shadow: 0 0 30px rgba(255, 43, 214, 0.5); }
.page-hero__title .lime { color: var(--lime); text-shadow: 0 0 30px rgba(173, 255, 0, 0.5); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--line-bright);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(0, 240, 255, 0.02);
}

.stat-block {
  padding: var(--s-5);
  border-right: 1px solid var(--line);
  text-align: center;
}

.stat-block:last-child { border-right: 0; }

.stat-block .v {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.04em;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.stat-block .v small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-top: 0.4rem;
  text-shadow: none;
}

.stat-block .l {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

@media (max-width: 1100px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2) { border-right: 0; }
  .stat-block:nth-child(1), .stat-block:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* === TEAM PAGE =================================================== */
.team-hero__crest { display: flex; align-items: center; gap: var(--s-5); margin-bottom: var(--s-5); flex-wrap: wrap; }
.team-hero__flag-big {
  width: 96px; height: 64px;
  border-radius: 4px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.team-hero__flag-big img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-hero__route { display: flex; flex-direction: column; gap: 0; padding-bottom: 0.5rem; }

.route-row {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 0.15rem var(--s-3);
  padding: 0.7rem 0; border-bottom: 1px solid var(--line); align-items: center;
  font-family: var(--font-mono); font-size: 0.85rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: background var(--dur-2) var(--ease), padding-left var(--dur-2) var(--ease);
}
.route-row__day { grid-row: 1 / span 2; align-self: center; }
.route-row__match { grid-column: 2; grid-row: 1; align-self: end; }
.route-row__loc { grid-column: 2; grid-row: 2; align-self: start; padding-top: 0.15rem; }
.route-row:last-child { border-bottom: 0; }
a.route-row:hover {
  background: rgba(0, 240, 255, 0.04);
  padding-left: 0.6rem;
}
a.route-row:hover .route-row__day {
  text-shadow: 0 0 10px var(--cyan);
}
.route-row__day { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--cyan); text-transform: uppercase; }
.route-row__match { color: var(--text); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; font-size: clamp(0.82rem, 0.5vw + 0.65rem, 0.95rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.route-row__match strong { font-weight: 700; }
.route-row__loc { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.05em; }

.legacy { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
.legacy__big {
  grid-column: span 5;
  background: var(--surface); backdrop-filter: blur(20px);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative; overflow: hidden;
}
.legacy__big::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% -20%, rgba(255,43,214,.08), transparent 60%);
}
.legacy__big h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  letter-spacing: -0.04em; line-height: 0.9;
  text-transform: uppercase;
  color: var(--text-strong); position: relative;
}
.legacy__big h3 em { font-style: normal; color: var(--pink); text-shadow: 0 0 20px var(--pink); }
.legacy__big .body { margin-top: var(--s-4); position: relative; }

.legacy-list { grid-column: span 7; }
.legacy-row {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: var(--s-4); padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line); align-items: center;
}
.legacy-row__year { font-family: var(--font-mono); font-weight: 500; font-size: 1.2rem; color: var(--text); letter-spacing: -0.02em; }
.legacy-row__year.win { color: var(--pink); text-shadow: 0 0 12px var(--pink); }
.legacy-row__title { font-size: 0.9rem; color: var(--text); }
.legacy-row__title strong { font-family: var(--font-display); font-weight: 700; font-size: 1rem; display: block; text-transform: uppercase; letter-spacing: -0.01em; }
.legacy-row__title span { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }
.legacy-row__result { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; color: var(--text-muted); text-transform: uppercase; }

.star-tile {
  display: grid; grid-template-columns: 90px 1fr; gap: var(--s-4);
  padding: var(--s-5); background: var(--surface); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: all var(--dur-2) var(--ease);
  position: relative;
}
.star-tile::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 12px; height: 12px; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); opacity: 0.5; transition: all var(--dur-2) var(--ease); }
.star-tile:hover { border-color: var(--cyan); transform: translateY(-2px); }
.star-tile:hover::after { opacity: 1; width: 18px; height: 18px; box-shadow: 0 0 8px var(--cyan); }
.star-tile__avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,240,255,.15), rgba(184,91,255,.15));
  border: 1px solid var(--line-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--cyan);
  text-shadow: 0 0 16px var(--cyan);
  letter-spacing: -0.03em;
  overflow: hidden;
}
.star-tile__avatar--photo {
  background: rgba(255,255,255,.04);
  padding: 0;
}
.star-tile__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.star-tile h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: 0.2rem; letter-spacing: -0.02em; text-transform: uppercase; }
.star-tile .tag-row { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.star-tile p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.stars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-5); }

.coach-card {
  margin-top: var(--s-5);
  display: grid; grid-template-columns: minmax(0,140px) minmax(0,1fr);
  gap: var(--s-5); padding: var(--s-5);
  background: var(--surface); backdrop-filter: blur(20px);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.coach-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 0%, rgba(0,240,255,.08), transparent 60%); pointer-events: none; }
.coach-card__avatar {
  width: 140px; aspect-ratio: 1;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255,43,214,.1), rgba(0,240,255,.1));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 700;
  color: var(--cyan); text-shadow: 0 0 20px var(--cyan);
  border: 1px solid var(--line-bright);
  letter-spacing: -0.04em;
  overflow: hidden;
}
.coach-card__avatar--photo {
  background: rgba(255,255,255,.04);
  padding: 0;
}
.coach-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.coach-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin-bottom: 0.3rem; letter-spacing: -0.02em; text-transform: uppercase; }
.coach-card .role { font-family: var(--font-mono); font-size: 0.7rem; color: var(--cyan); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.6rem; text-shadow: 0 0 8px var(--cyan); }
.coach-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; max-width: 60ch; }

.squad { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-top: var(--s-5); }
.squad-col h4,
.squad__col-title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--cyan); text-shadow: 0 0 8px var(--cyan); font-weight: 500; }
.player { display: grid; grid-template-columns: 32px 1fr; gap: 0.7rem; padding: 0.5rem 0; align-items: center; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,.03); }
.player__num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); text-align: center; letter-spacing: 0.05em; }
.player__name { font-family: var(--font-display); color: var(--text); font-weight: 500; letter-spacing: -0.01em; }
.player__name strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.player__name span {
  display: block;
  font-size: 0.8rem;
  color: rgba(140, 215, 230, 0.85);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-top: 0.15rem;
}
.player__name em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  opacity: 0.55;
  margin-top: 0.2rem;
}
.player.captain .player__name strong::after { content: ' C'; font-family: var(--font-mono); font-size: 0.6rem; background: var(--pink); color: #000; padding: 1px 4px; border-radius: 2px; margin-left: 0.3rem; letter-spacing: 0; font-weight: 600; box-shadow: 0 0 8px var(--pink); }
.player { padding: 0.65rem 0; }
.player--photo { grid-template-columns: 24px 44px 1fr; gap: 0.65rem; }
.player__photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.player__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,240,255,.12), rgba(184,91,255,.12));
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,240,255,.5);
  letter-spacing: -0.02em;
}

@media (max-width: 1100px) {
  .squad { grid-template-columns: repeat(2, 1fr); }
  .legacy__big, .legacy-list { grid-column: span 12; }
  .stars-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .squad { grid-template-columns: 1fr; }
  .route-row { grid-template-columns: 60px minmax(0, 1fr); }
}

/* =========================================
   Расширенный состав: мини-карточки (build-squad.py + render-team-squad.py)
   ========================================= */
.squad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-top: var(--s-5); align-items: start; }
.squad-col__title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--cyan); text-shadow: 0 0 8px var(--cyan); font-weight: 500; display: flex; align-items: baseline; justify-content: space-between; }
.squad-col__count { font-size: 0.62rem; opacity: 0.55; letter-spacing: 0; }
.squad-col__list { display: flex; flex-direction: column; gap: 0.45rem; }

.player-mini { display: grid; grid-template-columns: 44px 1fr; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,.04); align-items: start; }
.player-mini:last-child { border-bottom: none; }

.player-mini__avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, rgba(0,240,255,.10), rgba(184,91,255,.10)); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.player-mini__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-mini__avatar--silhouette { color: var(--cyan); opacity: 0.55; }
.player-mini__avatar--silhouette svg { width: 70%; height: 70%; }

.player-mini__body { min-width: 0; display: flex; flex-direction: column; gap: 0.18rem; }
.player-mini__head { display: flex; align-items: center; gap: 0.4rem; min-height: 0.85rem; }
.player-mini__num { font-family: var(--font-mono); font-size: 0.62rem; color: var(--cyan); letter-spacing: 0.04em; opacity: 0.75; flex-shrink: 0; }
.player-mini__num:not(:empty)::before { content: "№"; opacity: 0.6; margin-right: 0.05em; }
.player-mini__namebox { display: flex; flex-direction: column; gap: 0.05rem; }
.player-mini__name { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; color: var(--text-strong); line-height: 1.2; letter-spacing: -0.015em; display: block; }
.player-mini__captain { font-family: var(--font-mono); font-size: 0.55rem; background: var(--pink); color: #000; padding: 1px 5px; border-radius: 2px; font-weight: 700; box-shadow: 0 0 8px var(--pink); align-self: center; }
.player-mini__club { font-family: var(--font-display); font-size: 0.78rem; color: rgba(140,215,230,.85); display: block; }
.player-mini__stats { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.03em; opacity: 0.7; margin-top: 0.1rem; font-style: normal; display: block; }
.player-mini__bio { font-size: 0.74rem; color: var(--text-muted); line-height: 1.4; margin-top: 0.25rem; opacity: 0.85; }

.player-mini { cursor: pointer; border-radius: 6px; transition: background .15s; padding-left: 0.4rem; padding-right: 0.4rem; margin-left: -0.4rem; margin-right: -0.4rem; }
.player-mini:hover, .player-mini:focus-visible { background: rgba(0,240,255,.04); outline: none; }
.player-mini:focus-visible { box-shadow: inset 0 0 0 1px rgba(0,240,255,.4); }

.squad-sources { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; }
.squad-sources a { color: var(--cyan); text-decoration: none; border-bottom: 1px dashed rgba(0,240,255,.4); }
.squad-sources a:hover { border-bottom-style: solid; }

@media (max-width: 1100px) {
  .squad-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .squad-grid { grid-template-columns: 1fr; }
}

/* =========================================
   API-driven blocks: injuries + news
   ========================================= */

.injuries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.injury-card {
  padding: var(--s-4);
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-left: 2px solid var(--pink);
  border-radius: var(--r-sm);
  position: relative;
  transition: all var(--dur-2) var(--ease);
}
.injury-card:hover {
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.15);
  transform: translateY(-2px);
}
.injury-card__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-strong);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.injury-card__unsure {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 50%;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  text-shadow: 0 0 6px var(--cyan);
}
.injury-card__reason {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(255, 43, 214, 0.3);
  margin-bottom: 0.3rem;
}
.injury-card__chance {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-item a {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: all var(--dur-2) var(--ease);
}
.news-item:last-child a { border-bottom: 0; }
.news-item a:hover {
  background: rgba(0, 240, 255, 0.04);
  padding-left: 0.6rem;
}
.news-item__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
  text-transform: uppercase;
}
.news-item__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.news-item a:hover .news-item__title { color: var(--text-strong); }

/* ============================================================
   DOSSIER — slide-in side drawer for in-depth player profile
   Triggered by clicking a .star-tile with [data-dossier].
   See js/dossier.js. CSS-only animation; no js for transition.
   ============================================================ */

/* Tile becomes interactive when it has a dossier attached */
.star-tile[data-dossier] {
  cursor: pointer;
}
.star-tile[data-dossier]:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
}
.star-tile__dossier-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.75;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.star-tile[data-dossier]:hover .star-tile__dossier-link,
.star-tile[data-dossier]:focus-visible .star-tile__dossier-link {
  opacity: 1;
  transform: translateX(2px);
}

/* Lock body scroll while drawer is open (set on <html>) */
.dossier-locked, .dossier-locked body { overflow: hidden; }

/* Drawer container */
.dossier-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}
.dossier-drawer.is-open { visibility: visible; pointer-events: auto; }

.dossier-drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--dur-3, .35s) var(--ease, ease-out);
}
.dossier-drawer.is-open .dossier-drawer__backdrop { opacity: 1; }

.dossier-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(560px, 100%);
  background: var(--bg, #07070b);
  border-left: 1px solid var(--cyan);
  box-shadow: -32px 0 80px rgba(0, 240, 255, 0.08);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--dur-3, .35s) var(--ease, cubic-bezier(.2,.8,.2,1));
}
.dossier-drawer.is-open .dossier-drawer__panel { transform: translateX(0); }

/* Top-right close button — small, neon */
.dossier-drawer__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 50%;
  color: var(--text-muted, #8e8e95);
  cursor: pointer;
  z-index: 2;
  margin-top: 1rem;
  margin-right: 1rem;
  transition: all var(--dur-2) var(--ease);
}
.dossier-drawer__close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0,240,255,.3);
}

.dossier-drawer__body {
  padding: 0 2rem 3rem;
}

/* === Dossier content === */
.dossier__head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  padding-top: 1rem;
  margin-bottom: 1.75rem;
  margin-top: -3rem; /* let close button sit alongside */
  align-items: end;
}
.dossier__avatar {
  width: 120px; aspect-ratio: 1;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(0,240,255,.15), rgba(184,91,255,.15));
  border: 1px solid var(--line-bright, rgba(255,255,255,.18));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 18px var(--cyan);
  letter-spacing: -0.04em;
  overflow: hidden;
}
.dossier__avatar--photo { background: rgba(255,255,255,.04); padding: 0; }
.dossier__photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.dossier__kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px var(--cyan);
}
.dossier__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  line-height: 1.05;
}
.dossier__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted, #8e8e95);
  margin-bottom: 0.85rem;
}
.dossier__tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}

.dossier__section {
  margin-bottom: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line, rgba(255,255,255,.08));
}
.dossier__section:first-of-type {
  border-top: none;
  padding-top: 0;
}
.dossier__h {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  text-shadow: 0 0 8px rgba(0,240,255,.4);
}
.dossier__section p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text, #e2e2e5);
}

/* Career timeline */
.dossier__timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.dossier__timeline li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line, rgba(255,255,255,.06));
}
.dossier__timeline li:last-child { border-bottom: none; }
.dossier__year {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
}
.dossier__timeline strong { color: var(--text-strong, #fff); margin-right: 0.4rem; }

/* Numbers grid */
.dossier__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.dossier__stat {
  text-align: center;
  padding: 0.85rem 0.4rem;
  background: var(--surface, rgba(255,255,255,.03));
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: var(--r, 4px);
}
.dossier__stat .v {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,240,255,.4);
  letter-spacing: -0.03em;
  line-height: 1;
}
.dossier__stat .l {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted, #8e8e95);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.dossier__quote {
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255,43,214,.06), rgba(0,240,255,.06));
  border-left: 2px solid var(--pink, #ff2bd6);
  border-radius: 0 4px 4px 0;
}
.dossier__quote p {
  margin: 0;
  font-style: italic;
  color: var(--text, #e2e2e5);
  line-height: 1.55;
}

@media (max-width: 600px) {
  .dossier-drawer__panel { width: 100%; border-left: none; }
  .dossier-drawer__body { padding: 0 1.25rem 2rem; }
  .dossier__head {
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    margin-top: -3rem;
  }
  .dossier__avatar { width: 90px; font-size: 2.2rem; }
  .dossier__stats { grid-template-columns: repeat(2, 1fr); }
}

/* Squad rows + star tiles are clickable when dossier.js is loaded */
.squad .player,
.star-tile {
  cursor: pointer;
}
.squad .player:focus-visible,
.star-tile:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.squad .player:hover .player__name strong {
  color: var(--text-strong, #fff);
}

/* ============================================================
   CITY MAP — Leaflet container + filter chips + facts list
   ============================================================ */

.city-map-section { padding-top: 2rem; }

#city-map {
  width: 100%;
  height: 600px;
  border-radius: var(--r, 4px);
  border: 1px solid var(--line-bright, rgba(255,255,255,.18));
  background: #07070b;
  position: relative;
  overflow: hidden;
}
#city-map .leaflet-container { background: #07070b; }
#city-map .leaflet-control-zoom a {
  background: rgba(7,7,11,.85);
  color: var(--cyan);
  border: 1px solid var(--line, rgba(255,255,255,.1));
}
#city-map .leaflet-control-zoom a:hover { background: rgba(0,240,255,.15); }

/* Custom POI pin */
.city-map__pin-wrap { background: transparent !important; border: 0 !important; }
.city-map__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(7,7,11,.9);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.city-map__pin:hover { transform: scale(1.4); }
.city-map__pin.is-wc {
  width: 22px; height: 22px;
  border-width: 2px;
  font-size: 12px; font-weight: 700;
  color: rgba(7,7,11,1);
  text-shadow: none;
}

/* Category filter chips */
.city-map__filters {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.city-map__chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line, rgba(255,255,255,.1));
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #8e8e95);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
}
.city-map__chip:hover { color: var(--text, #e2e2e5); border-color: var(--chip-color); }
.city-map__chip.is-on {
  color: var(--text-strong, #fff);
  border-color: var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 14%, transparent);
}
.city-map__chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--chip-color, #888);
  box-shadow: 0 0 6px var(--chip-color, #888);
}

/* City facts list */
.city-facts {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.city-facts__item {
  padding: 1rem 1.1rem;
  background: var(--surface, rgba(255,255,255,.03));
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: var(--r, 4px);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text, #e2e2e5);
  position: relative;
}
.city-facts__item::before {
  content: ''; position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  opacity: .5;
}

@media (max-width: 600px) {
  #city-map { height: 420px; }
}

/* POI drawer hero image — full image, never cropped */
.poi-hero {
  position: relative;
  width: calc(100% + 4rem);
  margin: -1rem -2rem 1.25rem;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.poi-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}
.poi-hero__tint {
  position: absolute; inset: 0;
  pointer-events: none;
}
@media (max-width: 600px) {
  .poi-hero {
    width: calc(100% + 2.5rem);
    margin: -1rem -1.25rem 1rem;
  }
}

/* Live weather strip above the map */
.city-weather {
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  position: relative;
  color: var(--text);
}
.city-weather.is-night {
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--surface) 80%, transparent),
    color-mix(in srgb, #1a1438 16%, transparent));
}
.city-weather__loading {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-muted); letter-spacing: 0.05em;
  grid-column: 1 / -1;
}
.city-weather__icon {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--cyan) 35%, transparent));
  display: flex; align-items: center; justify-content: center;
}
.city-weather.is-night .city-weather__icon {
  color: #b1a7ff;
  filter: drop-shadow(0 0 8px rgba(177,167,255,.4));
}
.city-weather__main {
  display: flex; align-items: center; gap: 0.9rem;
  min-width: 0;
}
.city-weather__temp {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-mono); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--text);
  text-shadow: 0 0 14px color-mix(in srgb, var(--cyan) 30%, transparent);
}
.city-weather__temp-num { font-size: 2.2rem; }
.city-weather__temp-unit { font-size: 1rem; color: var(--text-muted); margin-left: 0.15rem; }
.city-weather__desc {
  display: flex; flex-direction: column; gap: 0.15rem; min-width: 0;
}
.city-weather__kicker {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0,240,255,.35);
}
.city-weather__cond {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.95rem; letter-spacing: -0.005em; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.city-weather__clock {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0 1rem; min-width: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.city-weather__clock-kicker {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}
.city-weather__clock-time {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 1.4rem; letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 25%, transparent);
}
.city-weather.is-night .city-weather__clock-time {
  text-shadow: 0 0 12px rgba(177,167,255,.35);
}

.city-weather__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 0 1.4rem;
  margin: 0;
}
.city-weather__stats > div { min-width: 0; }
.city-weather__stats dt {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.2rem;
}
.city-weather__stats dd {
  margin: 0;
  font-family: var(--font-mono); font-size: 0.95rem;
  color: var(--text); letter-spacing: -0.01em;
}
.city-weather__updated {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; color: var(--text-muted);
  white-space: nowrap;
}
.city-weather__live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime, #adff00);
  box-shadow: 0 0 6px var(--lime, #adff00);
  animation: city-weather-pulse 2.4s ease-in-out infinite;
}
@keyframes city-weather-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.35; }
}
@media (max-width: 900px) {
  .city-weather {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    row-gap: 0.6rem;
  }
  .city-weather__icon  { grid-row: 1; grid-column: 1; }
  .city-weather__main  { grid-row: 1; grid-column: 2; }
  .city-weather__clock { grid-row: 1; grid-column: 3;
                         border-left: 0; border-right: 0;
                         padding-left: 0.6rem; padding-right: 0; text-align: right; }
  .city-weather__clock-time { font-size: 1.25rem; }
  .city-weather__stats { grid-row: 2; grid-column: 1 / -1;
                         grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem; }
  .city-weather__updated { grid-row: 3; grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .city-weather__temp-num { font-size: 1.8rem; }
  .city-weather__cond { font-size: 0.85rem; white-space: normal; }
}

/* POI list under the map (collapsible) */
.city-map__disclosure { list-style: none; }
.city-map__disclosure > summary { list-style: none; cursor: pointer; }
.city-map__disclosure > summary::-webkit-details-marker { display: none; }
.city-map__disclosure[open] > summary { margin-bottom: 1rem; }
.city-map__disclosure[open] .city-map__disclosure-chev { transform: rotate(180deg); }
.city-map__disclosure-chev {
  width: 9px; height: 9px;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--dur-1) var(--ease);
}
.city-map__list-head-right {
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.city-map__disclosure > summary:hover .city-map__list-tag { color: var(--text); }

.city-map__list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.city-map__list-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan);
  text-shadow: 0 0 6px rgba(0,240,255,.3);
}
.city-map__list-count {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); letter-spacing: 0.05em;
}
.city-map__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}
.city-poi-card {
  --card-color: var(--cyan);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  text-align: left;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  font: inherit; color: inherit;
  transition: transform var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease),
              box-shadow var(--dur-1) var(--ease);
}
.city-poi-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-color);
  box-shadow: 0 0 22px color-mix(in srgb, var(--card-color) 24%, transparent);
}
.city-poi-card.is-hidden { display: none; }
.city-poi-card__thumb {
  position: relative;
  width: 96px; height: 100%; min-height: 96px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.city-poi-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.city-poi-card__thumb--empty {
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.02) 0 6px,
      rgba(255,255,255,.05) 6px 12px);
}
.city-poi-card__wc {
  position: absolute; top: 4px; left: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.7); color: var(--lime, #adff00);
  display: grid; place-items: center;
  font-size: 11px; line-height: 1;
  text-shadow: 0 0 8px var(--lime, #adff00);
}
.city-poi-card__body {
  padding: 0.7rem 0.85rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  min-width: 0;
}
.city-poi-card__kicker {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--card-color);
  text-shadow: 0 0 6px color-mix(in srgb, var(--card-color) 35%, transparent);
}
.city-poi-card__dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--card-color);
  box-shadow: 0 0 6px var(--card-color);
}
.city-poi-card__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; line-height: 1.2; color: var(--text);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.city-poi-card__desc {
  font-size: 0.78rem; line-height: 1.4; color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 600px) {
  .city-map__list { grid-template-columns: 1fr; }
}

/* Toggle-all chip — sits first, neutral color, no dot */
.city-map__chip--all {
  --chip-color: var(--cyan);
  font-weight: 600;
  margin-right: 0.4rem;
  border-color: var(--line-bright, rgba(255,255,255,.18));
}
.city-map__chip--all.is-on {
  background: rgba(0,240,255,.1);
  color: var(--cyan);
}

/* === MATCH PREVIEW (lineups, pitch, duels, h2h, prediction-banner) ============ */
/* Used by all match-*.html preview pages (mirrors inline block from match-opening.html
   so generated previews can rely on a shared stylesheet). */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-5); margin-top: var(--s-5); position: relative; }
.versus__team { text-align: center; }
.versus__team:first-child { text-align: right; }
.versus__team:last-child { text-align: left; }
.versus__flag { width: 96px; height: 64px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; margin-bottom: var(--s-4); overflow: hidden; box-shadow: 0 0 24px rgba(0,240,255,.15); }
.versus__flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.versus__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 6rem); line-height: 0.85; letter-spacing: -0.04em; text-transform: uppercase; color: var(--text-strong); text-shadow: 0 0 30px rgba(0,240,255,.15); }
.versus__name .cyan { color: var(--cyan); text-shadow: 0 0 30px var(--cyan); display: block; }
.versus__name .pink { color: var(--pink); text-shadow: 0 0 30px var(--pink); display: block; }
.versus__seed { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--text-muted); text-transform: uppercase; margin-top: 1rem; }
.versus__center { text-align: center; padding: 0 var(--s-5); }
.versus__vs { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(2rem, 4vw, 3rem); color: var(--cyan); text-shadow: 0 0 24px var(--cyan); line-height: 1; }
.versus__when { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--text-muted); text-transform: uppercase; margin-top: 0.6rem; line-height: 1.6; }

.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-6); }
.lineup-card { padding: var(--s-5); background: var(--surface); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.lineup-card::before, .lineup-card::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--cyan); pointer-events: none; opacity: 0.5; }
.lineup-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.lineup-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.lineup-card--pink::before, .lineup-card--pink::after { border-color: var(--pink); }

.lineup-card__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); flex-wrap: wrap; gap: 0.4rem; }
.lineup-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; text-transform: uppercase; }
.lineup-card__formation { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--cyan); text-shadow: 0 0 6px var(--cyan); }
.lineup-card--pink .lineup-card__formation { color: var(--pink); text-shadow: 0 0 6px var(--pink); }
.lineup-card__coach { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; flex-basis: 100%; }

.pitch { aspect-ratio: 4/5; background: radial-gradient(ellipse at center, rgba(0,240,255,.05), rgba(0,0,0,.6)); border-radius: var(--r-sm); border: 1px solid var(--line-bright); margin: var(--s-4) 0; position: relative; overflow: hidden; }
.lineup-card--pink .pitch { background: radial-gradient(ellipse at center, rgba(255,43,214,.05), rgba(0,0,0,.6)); border-color: rgba(255,43,214,.3); }
.pitch-svg { width: 100%; height: 100%; }

.lineup-list { display: grid; gap: 0.2rem; }
.lineup-list__row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 0.7rem;
  padding: 0.5rem 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  border-radius: var(--r-sm);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.lineup-list__row[data-dossier] { cursor: pointer; }
.lineup-list__row[data-dossier]:hover {
  background: rgba(0,240,255,0.05);
  color: var(--text-strong);
}
.lineup-card--pink .lineup-list__row[data-dossier]:hover {
  background: rgba(255,43,214,0.05);
}
.lineup-list__row[data-dossier]:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: -1px;
}
.lineup-list__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  text-align: center;
  font-weight: 500;
}
.lineup-card--pink .lineup-list__num { color: var(--pink); }
.lineup-list__name {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.2;
  min-width: 0;
}
.lineup-list__name strong {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 0.92rem;
}
.lineup-list__name small {
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lineup-list__pos {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.03);
  padding: 0.2rem 0.45rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

/* SVG pitch player groups — clickable */
.pitch-svg g[data-dossier] {
  cursor: pointer;
  outline: none;
}
.pitch-svg g[data-dossier] circle { transition: stroke-width var(--dur-1) var(--ease), filter var(--dur-1) var(--ease); }
.pitch-svg g[data-dossier]:hover circle {
  stroke-width: 0.8;
  filter: drop-shadow(0 0 4px currentColor);
}
.pitch-svg g[data-dossier]:focus { outline: none; }
.pitch-svg g[data-dossier]:focus-visible circle {
  stroke: var(--cyan);
  stroke-width: 0.9;
}

/* Duel description (factual, no claims) */
.duel__desc {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.duel__desc em { color: var(--cyan); font-style: normal; font-weight: 500; }

.based-on {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.based-on strong { color: var(--text); font-weight: 500; }
.based-on ul { list-style: none; margin-top: 0.4rem; padding: 0; display: grid; gap: 0.25rem; }

.prediction-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,123,43,.08);
  border: 1px solid rgba(255,123,43,.4);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255,123,43,.4);
  margin-top: var(--s-2);
}
.prediction-banner::before {
  content: '◆';
  color: var(--orange);
  font-size: 0.7rem;
}

.duel { padding: var(--s-5); background: var(--surface); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-4); align-items: center; cursor: default; }
.duel__player {
  text-align: center;
  cursor: pointer;
  border-radius: var(--r);
  padding: var(--s-3);
  transition: background var(--dur-1) var(--ease);
}
.duel__player:hover { background: rgba(0,240,255,0.05); }
.duel__player.right:hover { background: rgba(255,43,214,0.05); }
.duel__player:focus-visible { outline: 1px solid var(--cyan); }
.duel__player.right:focus-visible { outline: 1px solid var(--pink); }
.duel__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,240,255,.15), rgba(184,91,255,.15));
  border: 2px solid var(--cyan);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
  letter-spacing: -0.02em;
  box-shadow: 0 0 20px rgba(0,240,255,0.25);
  overflow: hidden;
}
.duel__avatar--photo { color: transparent; text-shadow: none; box-shadow: 0 0 18px rgba(0,240,255,0.4); }
.duel__player.right .duel__avatar { border-color: var(--pink); color: var(--pink); text-shadow: 0 0 12px var(--pink); box-shadow: 0 0 20px rgba(255,43,214,0.25); }
.duel__player.right .duel__avatar--photo { color: transparent; text-shadow: none; box-shadow: 0 0 18px rgba(255,43,214,0.4); }
.duel__player h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: -0.01em; }
.duel__player p { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; letter-spacing: 0.05em; text-transform: uppercase; }
.duel__vs { font-family: var(--font-display); font-style: italic; color: var(--cyan); font-size: 1.5rem; text-shadow: 0 0 12px var(--cyan); }
.duel__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  background: rgba(0,240,255,.06);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.h2h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); margin-top: var(--s-6); }
.h2h-card { padding: var(--s-5); background: var(--surface); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: var(--r); }
.h2h-bar { display: grid; grid-template-columns: var(--mex-w, 60%) auto var(--nor-w, 20%); gap: 4px; margin: var(--s-4) 0; }
.h2h-bar__seg { height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; padding: 0 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: #fff; text-transform: uppercase; }
.h2h-stub {
  padding: var(--s-6);
  text-align: center;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border: 1px dashed var(--line);
  border-radius: var(--r);
}

@media (max-width: 1100px) {
  .lineups { grid-template-columns: 1fr; }
  .h2h { grid-template-columns: 1fr; }
}

/* === MATCHES INDEX LINK CARDS (on index.html) =================== */
.matches-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
.matches-link-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-6);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all var(--dur-2) var(--ease);
}
.matches-link-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,240,255,0.15);
  background: var(--surface-2);
}
.matches-link-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0,240,255,0.4);
}
.matches-link-card__lbl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}
.matches-link-card__sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* === MATCHES.HTML — full schedule (msch-*) ===================== */
.msch { display: grid; gap: var(--s-3); }
.msch-day {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.msch-day__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem var(--s-4);
  background: rgba(0,240,255,0.04);
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,240,255,0.3);
}
.msch-day__count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-shadow: none;
  letter-spacing: 0.1em;
  margin-left: 0.4rem;
}
.msch-day__rows { display: grid; }

.msch-row {
  display: grid;
  grid-template-columns: 60px 60px minmax(160px, auto) minmax(0, 1fr) minmax(180px, auto);
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem var(--s-4);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  transition: background var(--dur-1) var(--ease);
}
.msch-row:last-child { border-bottom: 0; }
.msch-row:hover {
  background: rgba(0,240,255,0.04);
  color: var(--text-strong);
}
.msch-row--noref { cursor: default; }
.msch-row--noref:hover { background: transparent; }

.msch-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.msch-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.msch-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  border: 1px solid var(--line);
}
.msch-tag--cyan {
  color: var(--cyan);
  background: rgba(0,240,255,0.05);
  border-color: rgba(0,240,255,0.2);
}
.msch-tag--pink {
  color: var(--pink);
  background: rgba(255,43,214,0.05);
  border-color: rgba(255,43,214,0.2);
}
.msch-teams {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.msch-teams strong { font-weight: 600; color: var(--text); }
.msch-venue {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-transform: uppercase;
  text-align: right;
}

@media (max-width: 1100px) {
  .matches-link-grid { grid-template-columns: 1fr; }
  .msch-row {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0.2rem;
  }
  .msch-time { grid-row: 1; grid-column: 2; }
  .msch-tag  { grid-column: 1 / -1; }
  .msch-teams { grid-column: 1 / -1; }
  .msch-venue { grid-column: 1 / -1; text-align: left; }
}

/* === SOUND OF THE CITY (city-music) ============================== */

/* Track-card stack: 10 tracks, each with own Spotify mini-player iframe */
.city-music__tracks {
  list-style: none;
  display: grid;
  gap: var(--s-3);
  padding: 0;
  margin: var(--s-5) 0 0;
  max-width: 880px;
}
.city-music__tracks > li {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-4);
  display: grid;
  gap: 0.6rem;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.city-music__tracks > li:hover {
  border-color: var(--line-bright);
  background: var(--surface-2);
}
.city-music__track-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
}
.city-music__track-head > div { min-width: 0; }
.city-music__rank {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,240,255,0.4);
  text-align: left;
  line-height: 1;
}
.city-music__track-head strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-strong);
  display: block;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.city-music__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.city-music__tracks > li > p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.city-music__player {
  width: 100%;
  border: 0;
  border-radius: 12px;
  display: block;
}

.city-music__genre {
  color: var(--pink);
  text-shadow: 0 0 8px rgba(255,43,214,0.4);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.city-music__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.city-music__embed {
  position: sticky;
  top: var(--s-5);
  align-self: start;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  overflow: hidden;
}
.city-music__embed iframe { display: block; }
.city-music__credit {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--s-2);
  text-align: center;
}

.city-music__highlights {
  list-style: none;
  display: grid;
  gap: var(--s-3);
  padding: 0;
  margin: 0;
}
.city-music__highlights li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s-3);
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-4);
  transition: all var(--dur-2) var(--ease);
}
.city-music__highlights li:hover {
  border-color: var(--line-bright);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.city-music__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,240,255,0.4);
  align-self: start;
  line-height: 1;
}
.city-music__highlights li > div { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.city-music__highlights strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-strong);
  line-height: 1.2;
}
.city-music__highlights p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.city-music__link {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  text-decoration: none;
  align-self: flex-start;
  padding-top: 0.3rem;
}
.city-music__link:hover { text-shadow: 0 0 8px var(--cyan); }

@media (max-width: 1100px) {
  .city-music__layout { grid-template-columns: 1fr; }
  .city-music__embed { position: static; }
}

/* === CITIES.HTML — big city cards =============================== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-5);
}

.city-bigcard {
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.city-bigcard:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 0 32px rgba(0,240,255,0.18);
}
.city-bigcard--pink:hover { border-color: var(--pink); box-shadow: 0 0 32px rgba(255,43,214,0.18); }
.city-bigcard--lime:hover { border-color: var(--lime); box-shadow: 0 0 32px rgba(173,255,0,0.18); }

.city-bigcard__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.85) brightness(0.78);
  transition: filter var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  z-index: 0;
}
.city-bigcard:hover .city-bigcard__photo {
  filter: saturate(1.05) brightness(0.95);
  transform: scale(1.06);
}

.city-bigcard__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,2,8,0.05) 0%, rgba(3,2,8,0.4) 50%, rgba(3,2,8,0.92) 100%),
    linear-gradient(120deg, rgba(0,240,255,0.08), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.city-bigcard--pink .city-bigcard__overlay {
  background:
    linear-gradient(180deg, rgba(3,2,8,0.05) 0%, rgba(3,2,8,0.4) 50%, rgba(3,2,8,0.92) 100%),
    linear-gradient(120deg, rgba(255,43,214,0.1), transparent 60%);
}
.city-bigcard--lime .city-bigcard__overlay {
  background:
    linear-gradient(180deg, rgba(3,2,8,0.05) 0%, rgba(3,2,8,0.4) 50%, rgba(3,2,8,0.92) 100%),
    linear-gradient(120deg, rgba(173,255,0,0.08), transparent 60%);
}

.city-bigcard__corners { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.city-bigcard__corners::before,
.city-bigcard__corners::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--cyan);
  opacity: 0.65;
  transition: width var(--dur-2) var(--ease), height var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
.city-bigcard__corners::before {
  top: 8px; left: 8px;
  border-right: 0; border-bottom: 0;
}
.city-bigcard__corners::after {
  bottom: 8px; right: 8px;
  border-left: 0; border-top: 0;
}
.city-bigcard:hover .city-bigcard__corners::before,
.city-bigcard:hover .city-bigcard__corners::after {
  width: 28px; height: 28px;
  opacity: 1;
}
.city-bigcard--pink .city-bigcard__corners::before,
.city-bigcard--pink .city-bigcard__corners::after { border-color: var(--pink); }
.city-bigcard--lime .city-bigcard__corners::before,
.city-bigcard--lime .city-bigcard__corners::after { border-color: var(--lime); }

.city-bigcard__head {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
}
.city-bigcard__country {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.3rem 0.6rem;
  background: rgba(3,2,8,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-sm);
}
.city-bigcard__flag {
  width: 16px; height: 11px;
  border-radius: 1px;
  overflow: hidden;
  display: inline-block;
}
.city-bigcard__flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.city-bigcard__role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: right;
  text-shadow: 0 0 8px rgba(0,240,255,0.4);
  background: rgba(3,2,8,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--cyan);
  border-radius: var(--r-sm);
  padding: 0.3rem 0.6rem;
  max-width: 60%;
  line-height: 1.25;
}
.city-bigcard--pink .city-bigcard__role { color: var(--pink); border-color: var(--pink); text-shadow: 0 0 8px rgba(255,43,214,0.4); }
.city-bigcard--lime .city-bigcard__role { color: var(--lime); border-color: var(--lime); text-shadow: 0 0 8px rgba(173,255,0,0.4); }

.city-bigcard__body {
  position: absolute;
  bottom: 64px;
  left: var(--s-4);
  right: var(--s-4);
  z-index: 2;
}
.city-bigcard__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-strong);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.city-bigcard__stadium {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  margin-bottom: 0.5rem;
}
.city-bigcard__cap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.city-bigcard__cap-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
  letter-spacing: 0.02em;
}
.city-bigcard--pink .city-bigcard__cap-num { color: var(--pink); text-shadow: 0 0 8px var(--pink); }
.city-bigcard--lime .city-bigcard__cap-num { color: var(--lime); text-shadow: 0 0 8px var(--lime); }
.city-bigcard__cap-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.city-bigcard__cta {
  position: absolute;
  bottom: var(--s-4);
  left: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--cyan);
  border-radius: var(--r-sm);
  background: rgba(3,2,8,0.55);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.city-bigcard:hover .city-bigcard__cta {
  background: var(--cyan);
  color: var(--bg-deep);
}
.city-bigcard--pink .city-bigcard__cta { color: var(--pink); border-color: var(--pink); }
.city-bigcard--pink:hover .city-bigcard__cta { background: var(--pink); color: var(--bg-deep); }
.city-bigcard--lime .city-bigcard__cta { color: var(--lime); border-color: var(--lime); }
.city-bigcard--lime:hover .city-bigcard__cta { background: var(--lime); color: var(--bg-deep); }

@media (max-width: 1100px) {
  .cities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .cities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cities-grid { grid-template-columns: 1fr; }
  .city-bigcard { aspect-ratio: 3/4; }
}

/* Yandex Music search link under each Spotify player */
.city-music__yandex {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255,204,0,0.04);
  transition: all var(--dur-1) var(--ease);
  align-self: flex-start;
  margin-top: 0.2rem;
}
.city-music__yandex:hover {
  color: #ffcc00;
  border-color: #ffcc00;
  background: rgba(255,204,0,0.08);
  text-shadow: 0 0 8px rgba(255,204,0,0.4);
}
.city-music__yandex svg {
  flex-shrink: 0;
}

/* === DAILY DIGEST (index.html) ================================== */
.digest {
  background:
    radial-gradient(800px 400px at 15% 30%, rgba(0,240,255,0.06), transparent 60%),
    radial-gradient(700px 400px at 85% 70%, rgba(255,43,214,0.05), transparent 60%);
}

.dg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: var(--s-5);
  align-items: stretch;
}

/* Countdown panel */
.dg-countdown {
  position: relative;
  background: linear-gradient(180deg, rgba(0,240,255,0.04), rgba(255,43,214,0.04));
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  overflow: hidden;
  box-shadow: 0 0 32px rgba(0,240,255,0.08);
}
.dg-countdown::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: dgScan 3s ease-in-out infinite;
}
@keyframes dgScan {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.dg-countdown__hd {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--s-5);
  text-shadow: 0 0 8px rgba(0,240,255,0.4);
}
.dg-countdown__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: dgPulse 1.5s ease-in-out infinite;
}
@keyframes dgPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.dg-countdown__cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: var(--s-4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dg-cell {
  text-align: center;
  padding: var(--s-4) 0.4rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.dg-cell:last-child { border-right: 0; }

.dg-cell__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text-strong);
  text-shadow: 0 0 24px rgba(0,240,255,0.4), 0 0 48px rgba(0,240,255,0.2);
  font-variant-numeric: tabular-nums;
}

.dg-cell--secs .dg-cell__num {
  color: var(--cyan);
  text-shadow: 0 0 24px var(--cyan), 0 0 48px rgba(0,240,255,0.4);
}

.dg-cell__lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.dg-countdown__sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
}
.dg-countdown__sub .cyan { color: var(--cyan); text-shadow: 0 0 8px rgba(0,240,255,0.4); }

.dg-countdown__progress {
  margin-top: var(--s-4);
  height: 3px;
  background: rgba(120,134,230,0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.dg-countdown__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 12px rgba(0,240,255,0.5);
  animation: dgBar 4s ease-in-out infinite alternate;
}
@keyframes dgBar {
  0% { left: 0%; width: 30%; }
  100% { left: 70%; width: 30%; }
}

/* News zone */
.dg-news-zone {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}

.dg-news-block {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-5);
}

.dg-news-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dg-news-block__lbl {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0,240,255,0.3);
}

.dg-news-block__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-strong);
  line-height: 1;
}

.dg-news-block__list {
  display: grid;
  gap: var(--s-3);
}

.dg-news {
  padding: var(--s-4);
  border-left: 2px solid var(--cyan);
  background: rgba(0,240,255,0.03);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: all var(--dur-1) var(--ease);
}
.dg-news--cyan { border-left-color: var(--cyan); background: rgba(0,240,255,0.03); }
.dg-news--lime { border-left-color: var(--lime); background: rgba(173,255,0,0.03); }
.dg-news--pink { border-left-color: var(--pink); background: rgba(255,43,214,0.03); }
.dg-news:hover {
  background: rgba(0,240,255,0.06);
  transform: translateX(2px);
}
.dg-news--lime:hover { background: rgba(173,255,0,0.06); }
.dg-news--pink:hover { background: rgba(255,43,214,0.06); }

.dg-news header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.dg-news__cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,240,255,0.06);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(0,240,255,0.2);
}
.dg-news--lime .dg-news__cat { color: var(--lime); background: rgba(173,255,0,0.06); border-color: rgba(173,255,0,0.2); }
.dg-news--pink .dg-news__cat { color: var(--pink); background: rgba(255,43,214,0.06); border-color: rgba(255,43,214,0.2); }
.dg-news__team {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--dur-1) var(--ease);
}
.dg-news__team:hover { color: var(--cyan); }

.dg-news h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 0.4rem;
}

.dg-news p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.dg-news-empty {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: var(--s-5);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

@media (max-width: 1100px) {
  .dg-grid { grid-template-columns: 1fr; }
  .dg-countdown { padding: var(--s-5); }
}
@media (max-width: 520px) {
  .dg-countdown__cells { grid-template-columns: repeat(4, 1fr); }
  .dg-cell__num { font-size: clamp(1.8rem, 7vw, 2.5rem); }
}

/* === DAILY DIGEST — during-phase match cards =================== */
.dg-matches {
  display: grid;
  gap: var(--s-3);
}

.dg-match {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(0,240,255,0.03);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s-3) var(--s-4);
  transition: all var(--dur-1) var(--ease);
}
.dg-match:hover {
  background: rgba(0,240,255,0.06);
  border-color: var(--line-bright);
  transform: translateX(2px);
}

.dg-match__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dg-match__stage {
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0,240,255,0.3);
}
.dg-match__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red);
  font-weight: 700;
  text-shadow: 0 0 8px var(--red);
  animation: dgLivePulse 1.5s ease-in-out infinite;
}
.dg-match__live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
@keyframes dgLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.dg-match__finished {
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 0.15rem 0.4rem;
  border-radius: var(--r-sm);
  font-size: 0.55rem;
}

.dg-match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.7rem;
  align-items: center;
}

.dg-match__team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  min-width: 0;
}
.dg-match__team img {
  width: 22px;
  height: 14px;
  object-fit: cover;
  border-radius: 1px;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.dg-match__team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dg-match__team--away { justify-content: flex-end; flex-direction: row-reverse; }
.dg-match__team--away img { /* keep before name */ }

.dg-match__vs {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(0,240,255,0.3);
  white-space: nowrap;
}

.dg-match__time {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
}

.dg-match__score {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.05em;
}

.dg-match__venue {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* News card source link */
.dg-news footer {
  margin-top: 0.5rem;
  text-align: right;
}
.dg-news__source {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--dur-1) var(--ease);
}
.dg-news__source:hover { color: var(--cyan); }

/* === DAILY DIGEST — scrollable feed (pre-phase) ================ */
.dg-feed-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.dg-feed-hd__lbl {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0,240,255,0.3);
}
.dg-feed-hd__count {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dg-feed {
  max-height: 720px;
  overflow-y: auto;
  padding-right: 0.5rem;
  /* custom cyan scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(0,240,255,0.3) transparent;
}
.dg-feed::-webkit-scrollbar { width: 6px; }
.dg-feed::-webkit-scrollbar-track {
  background: transparent;
  border-left: 1px solid var(--line);
}
.dg-feed::-webkit-scrollbar-thumb {
  background: rgba(0,240,255,0.25);
  border-radius: 3px;
}
.dg-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(0,240,255,0.5);
  box-shadow: 0 0 6px rgba(0,240,255,0.4);
}

.dg-day-block {
  position: relative;
  padding-left: var(--s-4);
  margin-bottom: var(--s-5);
  border-left: 1px dashed var(--line);
}
.dg-day-block:last-child { margin-bottom: 0; }

.dg-day-block__head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: var(--s-3);
  padding-bottom: 0.4rem;
  position: relative;
}

.dg-day-block__dot {
  position: absolute;
  left: calc(var(--s-4) * -1 - 5px);
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0,240,255,0.6);
  border: 2px solid var(--bg-deep);
}

.dg-day-block__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-strong);
  line-height: 1;
}
.dg-day-block__count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(0,240,255,0.06);
  padding: 0.15rem 0.4rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(0,240,255,0.15);
  margin-left: auto;
}

.dg-day-block__list {
  display: grid;
  gap: var(--s-3);
}

/* Tighter news card padding inside the feed */
.dg-feed .dg-news {
  padding: var(--s-3);
}
.dg-feed .dg-news h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

/* === DAILY DIGEST — team filter ================================ */
.dg-feed-filter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.dg-feed-filter__lbl {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.dg-feed-filter__select {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%) calc(100% - 14px) calc(50% - 2px) / 6px 6px no-repeat,
    rgba(0,240,255,0.04);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 2rem 0.5rem 0.7rem;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.dg-feed-filter__select:hover,
.dg-feed-filter__select:focus {
  border-color: var(--cyan);
  background:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%) calc(100% - 14px) calc(50% - 2px) / 6px 6px no-repeat,
    rgba(0,240,255,0.08);
  outline: none;
  box-shadow: 0 0 12px rgba(0,240,255,0.15);
}
.dg-feed-filter__select option {
  background: var(--bg-deep);
  color: var(--text);
  padding: 0.4rem;
}

/* === CHAT WIDGET — bottom-right anchored ======================== */
.chat-widget {
  font-family: var(--font-display);
}

.chat-widget__fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(255,43,214,0.08));
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,240,255,0.4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,240,255,0.18), 0 0 0 1px rgba(0,240,255,0.1);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.chat-widget__fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,240,255,0.28), 0 0 0 1px var(--cyan);
}
.chat-widget__fab svg { flex-shrink: 0; }
.chat-widget__fab[hidden] { display: none !important; }

/* Anchored panel — bottom-right corner, slides up from FAB */
.chat-widget__panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  width: min(420px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 100px));
  background: linear-gradient(180deg, rgba(20,16,42,0.98), rgba(3,2,8,0.99));
  backdrop-filter: blur(24px);
  border: 1px solid var(--cyan);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 32px rgba(0,240,255,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlide 0.25s var(--ease-out);
}
.chat-widget__panel[hidden] { display: none !important; }
.chat-widget__panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: chatScan 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes chatScan {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes chatSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-widget__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(0,240,255,0.04);
}
.chat-widget__hd strong {
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0,240,255,0.4);
  font-weight: 600;
}
.chat-widget__pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  margin-right: 0.5rem;
  animation: chatPulse 1.5s ease-in-out infinite;
}
@keyframes chatPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}
.chat-widget__close {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--r-sm);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.chat-widget__close:hover { color: var(--cyan); background: rgba(0,240,255,0.1); }

.chat-widget__scope {
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}
.chat-widget__scope strong { color: var(--cyan); font-weight: 500; }

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,240,255,0.3) transparent;
}
.chat-widget__messages::-webkit-scrollbar { width: 5px; }
.chat-widget__messages::-webkit-scrollbar-thumb {
  background: rgba(0,240,255,0.25);
  border-radius: 3px;
}

.chat-msg {
  max-width: 85%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r);
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: 0.005em;
  word-wrap: break-word;
}
.chat-msg p { margin: 0; }

.chat-msg--bot {
  align-self: flex-start;
  background: rgba(0,240,255,0.06);
  border: 1px solid rgba(0,240,255,0.18);
  color: var(--text);
  border-top-left-radius: 2px;
}
.chat-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255,43,214,0.18), rgba(255,43,214,0.08));
  border: 1px solid rgba(255,43,214,0.4);
  color: var(--text-strong);
  border-top-right-radius: 2px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan);
  animation: chatBlink 1s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.chat-widget__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 var(--s-4) var(--s-3);
}
.chat-widget__quick-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(0,240,255,0.04);
  border: 1px solid rgba(0,240,255,0.2);
  padding: 0.35rem 0.6rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}
.chat-widget__quick-btn:hover {
  background: rgba(0,240,255,0.1);
  border-color: var(--cyan);
  text-shadow: 0 0 6px rgba(0,240,255,0.4);
}

.chat-widget__form {
  display: flex;
  gap: 0.5rem;
  padding: var(--s-3);
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
}
.chat-widget__input {
  flex: 1;
  background: rgba(0,240,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 0.55rem 0.8rem;
  outline: none;
  transition: border-color var(--dur-1) var(--ease);
}
.chat-widget__input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0,240,255,0.15);
}
.chat-widget__input:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-widget__send {
  background: var(--cyan);
  color: var(--bg-deep);
  border: 0;
  width: 38px;
  height: auto;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.chat-widget__send:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--cyan);
}

@media (max-width: 520px) {
  .chat-widget__fab { right: 12px; bottom: 12px; padding: 0.7rem; }
  .chat-widget__fab span { display: none; }
  .chat-widget__panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    height: calc(100vh - 100px);
  }
}

/* ─────────── ANTHEM PLAYER ─────────── */
.anthem-strip {
  border-top: 1px solid rgba(0, 240, 255, 0.08);
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  padding: 1.4rem 0;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.025), rgba(255, 43, 214, 0.02)),
    rgba(7, 14, 30, 0.55);
}
.anthem-player {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.85), rgba(7, 14, 30, 0.65));
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.04), 0 8px 28px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.anthem-player::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  opacity: 0.7;
}
.anthem-player.is-playing::before {
  animation: anthemPulse 1.2s ease-in-out infinite;
}
@keyframes anthemPulse {
  0%, 100% { opacity: 0.7; box-shadow: 0 0 6px var(--cyan); }
  50% { opacity: 1; box-shadow: 0 0 14px var(--cyan); }
}
.anthem-player__play {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-1) var(--ease);
}
.anthem-player__play:hover {
  background: rgba(0, 240, 255, 0.18);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
  transform: scale(1.04);
}
.anthem-player.is-playing .anthem-player__play {
  background: rgba(255, 43, 214, 0.15);
  color: var(--pink);
  border-color: rgba(255, 43, 214, 0.5);
}
.anthem-player__info {
  flex: 1 1 auto;
  min-width: 0;
}
.anthem-player__label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.75;
  margin-bottom: 0.2rem;
}
.anthem-player__title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anthem-player__bar {
  flex: 1.3 1 220px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 240, 255, 0.08);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.anthem-player__progress {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
  transition: width 0.1s linear;
}
.anthem-player__time {
  flex: 0 0 auto;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}
.anthem-player__source {
  flex: 0 0 auto;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid rgba(0, 240, 255, 0.18);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: all var(--dur-1) var(--ease);
  text-transform: uppercase;
}
.anthem-player__source:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

@media (max-width: 720px) {
  .anthem-player {
    flex-wrap: wrap;
    gap: 0.7rem;
  }
  .anthem-player__bar {
    flex-basis: 100%;
    order: 4;
  }
  .anthem-player__time {
    min-width: 0;
  }
  .anthem-player__source {
    display: none;
  }
}

/* ─────────── REACTIONS ─────────── */
.reactions {
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.7), rgba(7, 14, 30, 0.4));
  margin: 1.5rem 0;
}
.reactions__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.reactions__label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.reactions__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.reactions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.reactions__btn {
  flex: 1 1 80px;
  min-width: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  background: rgba(7, 14, 30, 0.6);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: all var(--dur-1) var(--ease);
  position: relative;
}
.reactions__btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-1px);
}
.reactions__btn.is-on {
  border-color: var(--pink);
  background: rgba(255, 43, 214, 0.15);
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.3);
}
.reactions__emoji {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
  transform-origin: center;
  transition: transform var(--dur-1) var(--ease);
}
.reactions__btn:hover .reactions__emoji {
  transform: scale(1.18) rotate(-6deg);
}
.reactions__btn.is-flying .reactions__emoji {
  animation: reactPop 0.55s var(--ease);
}
@keyframes reactPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.4) rotate(-12deg); }
  70%  { transform: scale(1.1) translateY(-6px); }
  100% { transform: scale(1) translateY(0); }
}
.reactions__count {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 14px;
  text-align: left;
}
.reactions__btn.is-on .reactions__count {
  color: var(--pink);
}
.reactions.is-offline {
  opacity: 0.5;
}
.reactions.is-offline::after {
  content: 'Сервер реакций оффлайн';
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ─────────── TEAM CALENDAR (Полный путь) ─────────── */
.team-calendar {
  padding: var(--s-7, 4rem) 0 var(--s-6, 3rem);
  border-top: 1px solid var(--line, rgba(0,240,255,0.08));
  background:
    radial-gradient(800px 320px at 80% 0%, rgba(0, 240, 255, 0.04), transparent 60%),
    rgba(7, 14, 30, 0.6);
}
.team-calendar__head {
  margin-bottom: 1.6rem;
}
.team-calendar__rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(140px, 1fr));
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan, #00f0ff) rgba(7, 14, 30, 0.5);
}
.team-calendar__rail::-webkit-scrollbar { height: 6px; }
.team-calendar__rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--cyan, #00f0ff), var(--pink, #ff2bd6));
  border-radius: 3px;
}
.cal-stage {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.85), rgba(7, 14, 30, 0.55));
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all var(--dur-1, 200ms) var(--ease, ease);
  min-height: 110px;
}
.cal-stage:hover {
  border-color: var(--cyan, #00f0ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.15);
}
.cal-stage--known {
  border-color: rgba(0, 240, 255, 0.35);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.06), rgba(7, 14, 30, 0.55));
}
.cal-stage--known::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan, #00f0ff), transparent);
}
.cal-stage--tbd {
  opacity: 0.78;
  border-style: dashed;
}
.cal-stage--tbd:hover {
  opacity: 1;
}
.cal-stage__num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan, #00f0ff);
}
.cal-stage--tbd .cal-stage__num {
  color: var(--text-muted, #8a9bb5);
}
.cal-stage__date {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-strong, #fff);
  letter-spacing: 0.04em;
}
.cal-stage__match {
  font-size: 0.85rem;
  line-height: 1.25;
  color: var(--text, #e8eef9);
}
.cal-stage__match strong {
  color: var(--text-strong, #fff);
}
.cal-stage__city {
  font-size: 0.72rem;
  color: var(--text-muted, #8a9bb5);
  line-height: 1.3;
  margin-top: auto;
}
.team-calendar__hint {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted, #8a9bb5);
  font-style: italic;
}

@media (max-width: 980px) {
  .team-calendar__rail {
    grid-template-columns: repeat(8, 180px);
  }
}

/* ─────────── COMPARE CITIES ─────────── */
.cmp-bar {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.7), rgba(7, 14, 30, 0.4));
  margin-bottom: 1.5rem;
}
.cmp-bar__sel {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cmp-bar__lbl {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan, #00f0ff);
}
.cmp-bar__select {
  background: rgba(7, 14, 30, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  color: var(--text, #e8eef9);
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2300f0ff' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
  transition: border-color var(--dur-1, 200ms) var(--ease, ease);
}
.cmp-bar__select:focus {
  outline: none;
  border-color: var(--cyan, #00f0ff);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}
.cmp-bar__vs {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--pink, #ff2bd6);
  text-shadow: 0 0 14px var(--pink, #ff2bd6);
  padding: 0 0.5rem 0.5rem;
}
.cmp-bar__shuffle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 43, 214, 0.12);
  border: 1px solid var(--pink, #ff2bd6);
  color: var(--pink, #ff2bd6);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--dur-1, 200ms) var(--ease, ease);
}
.cmp-bar__shuffle:hover {
  background: rgba(255, 43, 214, 0.22);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.35);
}

.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 980px) {
  .cmp-grid {
    grid-template-columns: 1fr;
  }
}

.cmp-card {
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 14px;
  background: rgba(7, 14, 30, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cmp-card__hero {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #112030;
  display: block;
  text-decoration: none;
  color: inherit;
}
.cmp-card__hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.2) 0%, rgba(7, 14, 30, 0.85) 100%);
}
.cmp-card__hero-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.2rem;
  z-index: 1;
}
.cmp-card__code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cyan, #00f0ff);
  margin-bottom: 0.2rem;
}
.cmp-card__hero-meta h2 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-strong, #fff);
  margin: 0;
}
.cmp-card__tag {
  font-style: italic;
  color: var(--text-muted, #8a9bb5);
  margin-top: 0.3rem;
  font-size: 0.85rem;
}
.cmp-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.cmp-card__stat {
  padding: 1rem 0.7rem;
  text-align: center;
  border-right: 1px solid rgba(0, 240, 255, 0.08);
}
.cmp-card__stat:last-child { border-right: 0; }
.cmp-card__stat .v {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.6rem;
  color: var(--cyan, #00f0ff);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
  line-height: 1;
}
.cmp-card__stat .l {
  font-size: 0.7rem;
  color: var(--text-muted, #8a9bb5);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}
.cmp-card__venue {
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted, #8a9bb5);
  border-top: 1px solid rgba(0, 240, 255, 0.08);
}
.cmp-card__venue strong {
  color: var(--text-strong, #fff);
}
.cmp-card__fact {
  margin: 0;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text, #e8eef9);
  border-top: 1px solid rgba(0, 240, 255, 0.08);
  background: rgba(255, 43, 214, 0.04);
  position: relative;
}
.cmp-card__fact::before {
  content: '“';
  position: absolute;
  top: 0;
  left: 0.4rem;
  font-size: 2.5rem;
  color: var(--pink, #ff2bd6);
  opacity: 0.45;
  line-height: 1;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
}

.cmp-bars {
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 14px;
  background: rgba(7, 14, 30, 0.6);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cmp-bars__head {
  margin-bottom: 0.6rem;
}
.cmp-bars__title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-strong, #fff);
}
.cmp-bars__sub {
  font-size: 0.8rem;
  color: var(--text-muted, #8a9bb5);
  margin-top: 0.3rem;
}
.cmp-bars__sub strong {
  color: var(--text, #e8eef9);
}
.cmp-bar-row {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 0.8rem;
  align-items: center;
}
.cmp-bar-row__lbl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text, #e8eef9);
}
.cmp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.cmp-bar-row__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.cmp-bar-row__side {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cmp-bar-row__side--a {
  flex-direction: row-reverse;
}
.cmp-bar-row__num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  color: var(--text, #e8eef9);
  min-width: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cmp-bar-row__track {
  flex: 1 1 auto;
  height: 6px;
  background: rgba(0, 240, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.cmp-bar-row__fill {
  height: 100%;
  background: var(--cyan, #00f0ff);
  border-radius: 3px;
  margin-left: auto;
  box-shadow: 0 0 6px currentColor;
  transition: width 0.6s var(--ease, ease);
}
.cmp-bar-row__fill--right {
  margin-left: 0;
  margin-right: auto;
}
.cmp-err {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted, #8a9bb5);
}

/* ─────────── CHANTS ─────────── */
.chants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.chant-card {
  border: 1px solid rgba(255, 43, 214, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.85), rgba(7, 14, 30, 0.5));
  padding: 1.15rem;
  position: relative;
  overflow: hidden;
}
.chant-card::before {
  content: '“';
  position: absolute;
  top: -10px;
  right: 10px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--pink, #ff2bd6);
  opacity: 0.18;
  line-height: 1;
}
.chant-card__head {
  margin-bottom: 0.7rem;
}
.chant-card__title {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink, #ff2bd6);
}
.chant-card__lyric {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--text-strong, #fff);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.chant-card__phon {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.86rem;
  color: var(--cyan, #00f0ff);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.chant-card__meaning {
  font-size: 0.92rem;
  color: var(--text, #e8eef9);
  font-style: italic;
  border-left: 2px solid rgba(0, 240, 255, 0.4);
  padding-left: 0.7rem;
  margin: 0.7rem 0;
}
.chant-card__ctx {
  font-size: 0.82rem;
  color: var(--text-muted, #8a9bb5);
  line-height: 1.5;
  margin: 0.7rem 0 0;
}

/* ─────────── DIARY ─────────── */
.diary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.diary-stat {
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 10px;
  background: rgba(7, 14, 30, 0.6);
  padding: 1rem;
  text-align: center;
}
.diary-stat .v {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.5rem;
  color: var(--cyan, #00f0ff);
  line-height: 1.1;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}
.diary-stat .l {
  font-size: 0.7rem;
  color: var(--text-muted, #8a9bb5);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

.diary-form {
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.85), rgba(7, 14, 30, 0.55));
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.diary-form__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.diary-form__row:nth-of-type(2) {
  grid-template-columns: 1fr;
}
.diary-form__title,
.diary-form__tag,
.diary-form__body,
.diary-form__mood {
  background: rgba(7, 14, 30, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  color: var(--text, #e8eef9);
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--dur-1, 200ms) var(--ease, ease);
}
.diary-form__body {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}
.diary-form__title:focus,
.diary-form__tag:focus,
.diary-form__body:focus,
.diary-form__mood:focus {
  outline: none;
  border-color: var(--cyan, #00f0ff);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}
.diary-form__mood {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2300f0ff' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  min-width: 160px;
}
.diary-form__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}
.diary-form__counter {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  color: var(--text-muted, #8a9bb5);
}
.diary-form__submit {
  background: var(--cyan, #00f0ff);
  border: 0;
  color: #001923;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--dur-1, 200ms) var(--ease, ease);
}
.diary-form__submit:hover {
  background: #62f7ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
  transform: translateY(-1px);
}

.diary-toolbar {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
  flex-wrap: wrap;
}
.diary-toolbar__btn {
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-muted, #8a9bb5);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--dur-1, 200ms) var(--ease, ease);
}
.diary-toolbar__btn:hover {
  border-color: var(--cyan, #00f0ff);
  color: var(--cyan, #00f0ff);
}
.diary-toolbar__btn--danger:hover {
  border-color: var(--pink, #ff2bd6);
  color: var(--pink, #ff2bd6);
}

.diary-feed {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.diary-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted, #8a9bb5);
}
.diary-empty__icon {
  font-size: 3rem;
  margin-bottom: 0.7rem;
  opacity: 0.5;
}

.diary-entry {
  border: 1px solid rgba(0, 240, 255, 0.13);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.7), rgba(7, 14, 30, 0.4));
  position: relative;
}
.diary-entry__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}
.diary-entry__mood {
  font-size: 1.6rem;
  line-height: 1;
  flex: 0 0 auto;
}
.diary-entry__meta {
  flex: 1 1 auto;
  min-width: 0;
}
.diary-entry__when {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted, #8a9bb5);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.diary-entry__title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
  color: var(--text-strong, #fff);
}
.diary-entry__tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--cyan, #00f0ff);
  text-decoration: none;
  background: rgba(0, 240, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
a.diary-entry__tag:hover {
  background: rgba(0, 240, 255, 0.18);
}
.diary-entry__del {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: var(--text-muted, #8a9bb5);
  font-size: 1.5rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  line-height: 1;
  transition: all var(--dur-1, 200ms) var(--ease, ease);
}
.diary-entry__del:hover {
  background: rgba(255, 43, 214, 0.15);
  color: var(--pink, #ff2bd6);
}
.diary-entry__body {
  margin: 0;
  color: var(--text, #e8eef9);
  line-height: 1.55;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .diary-form__row {
    grid-template-columns: 1fr;
  }
}

/* ─────────── PREDICTIONS ─────────── */
.pred-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.pred-stat {
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 10px;
  background: rgba(7, 14, 30, 0.6);
  padding: 1rem;
  text-align: center;
}
.pred-stat .v {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.5rem;
  color: var(--lime, #b6ff3a);
  line-height: 1.1;
  text-shadow: 0 0 8px rgba(173, 255, 58, 0.3);
}
.pred-stat .l {
  font-size: 0.7rem;
  color: var(--text-muted, #8a9bb5);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}
.pred-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  padding-bottom: 0.8rem;
}
.pred-tab {
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.18);
  color: var(--text-muted, #8a9bb5);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-1, 200ms) var(--ease, ease);
}
.pred-tab:hover {
  border-color: var(--cyan, #00f0ff);
  color: var(--cyan, #00f0ff);
}
.pred-tab.is-active {
  background: var(--cyan, #00f0ff);
  border-color: var(--cyan, #00f0ff);
  color: #001923;
}
.pred-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pred-row {
  display: grid;
  grid-template-columns: 200px 1fr 90px;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 10px;
  background: rgba(7, 14, 30, 0.55);
  transition: border-color 0.2s ease;
}
.pred-row:hover {
  border-color: rgba(0, 240, 255, 0.25);
}
.pred-row[data-tbd] {
  opacity: 0.55;
}
.pred-row__when {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.74rem;
}
.pred-row__when span:first-child {
  color: var(--text, #e8eef9);
  font-weight: 500;
}
.pred-row__when span:nth-child(2) {
  color: var(--cyan, #00f0ff);
}
.pred-row__when span:nth-child(3) {
  color: var(--text-muted, #8a9bb5);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}
.pred-row__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
}
.pred-row__team {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.pred-row__team--home { justify-content: flex-end; }
.pred-row__team--away { justify-content: flex-start; }
.pred-row__flag {
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  flex: 0 0 auto;
}
.pred-row__name {
  font-size: 0.92rem;
  color: var(--text, #e8eef9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s, text-shadow 0.2s;
}
.pred-row__team.is-winner .pred-row__name {
  color: var(--lime, #b6ff3a);
  text-shadow: 0 0 8px rgba(173, 255, 58, 0.4);
  font-weight: 600;
}
.pred-row__score {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.pred-row__num {
  width: 48px;
  background: rgba(7, 14, 30, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 6px;
  color: var(--text-strong, #fff);
  font: inherit;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 0.4rem;
  appearance: textfield;
  -moz-appearance: textfield;
}
.pred-row__num::-webkit-inner-spin-button,
.pred-row__num::-webkit-outer-spin-button { display: none; }
.pred-row__num:focus {
  outline: none;
  border-color: var(--cyan, #00f0ff);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}
.pred-row__num:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pred-row__colon {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 700;
  color: var(--cyan, #00f0ff);
}
.pred-row__open {
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-muted, #8a9bb5);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.pred-row__open:hover:not(:disabled) {
  border-color: var(--cyan, #00f0ff);
  color: var(--cyan, #00f0ff);
}
.pred-row__open:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pred-empty,
.pred-err {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted, #8a9bb5);
}
@media (max-width: 820px) {
  .pred-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .pred-row__when {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .pred-row__open { justify-self: end; }
}

/* ─────────── DREAM TEAM ─────────── */
.dream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.4rem;
}
@media (max-width: 980px) {
  .dream-layout {
    grid-template-columns: 1fr;
  }
}
.dream-pitch-wrap {
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.4), rgba(7, 14, 30, 0.85));
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.dream-pitch {
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
}
.dream-slot {
  cursor: pointer;
  transition: filter 0.2s ease;
}
.dream-slot:focus { outline: none; }
.dream-slot:focus-visible .dream-slot__bg {
  filter: drop-shadow(0 0 6px var(--cyan, #00f0ff));
}
.dream-slot:hover .dream-slot__bg {
  filter: drop-shadow(0 0 6px var(--cyan, #00f0ff));
}
.dream-slot.is-active .dream-slot__bg {
  fill: rgba(255, 43, 214, 0.3);
  stroke: var(--pink, #ff2bd6);
  filter: drop-shadow(0 0 8px var(--pink, #ff2bd6));
}
.dream-slot.is-filled .dream-slot__bg {
  stroke: var(--lime, #b6ff3a);
}
.dream-slot.is-filled.is-active .dream-slot__bg {
  stroke: var(--pink, #ff2bd6);
}

.dream-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.dream-meta__row {
  font-size: 0.9rem;
  color: var(--text, #e8eef9);
}
.dream-meta__row strong {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: var(--cyan, #00f0ff);
}
.dream-meta__actions {
  display: flex;
  gap: 0.5rem;
}
.dream-btn {
  background: var(--cyan, #00f0ff);
  border: 0;
  color: #001923;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dream-btn:hover {
  background: #62f7ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
}
.dream-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 43, 214, 0.4);
  color: var(--pink, #ff2bd6);
}
.dream-btn--ghost:hover {
  background: rgba(255, 43, 214, 0.12);
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.3);
}

.dream-pool {
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  background: rgba(7, 14, 30, 0.6);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}
.dream-pool__head {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dream-pool__slot {
  font-size: 0.85rem;
  color: var(--cyan, #00f0ff);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
.dream-pool__search,
.dream-pool__select {
  background: rgba(7, 14, 30, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  color: var(--text, #e8eef9);
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
}
.dream-pool__search:focus,
.dream-pool__select:focus {
  outline: none;
  border-color: var(--cyan, #00f0ff);
}
.dream-pool__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8' fill='none' stroke='%2300f0ff' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 1.8rem;
}
.dream-pool__list {
  overflow-y: auto;
  padding: 0.5rem;
  flex: 1 1 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan, #00f0ff) rgba(7, 14, 30, 0.5);
}
.dream-pool__hint {
  padding: 1rem;
  color: var(--text-muted, #8a9bb5);
  text-align: center;
  font-size: 0.85rem;
}

.dream-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.dream-card:hover {
  background: rgba(0, 240, 255, 0.06);
}
.dream-card[data-used] {
  opacity: 0.5;
}
.dream-card__photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 240, 255, 0.05);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 240, 255, 0.2);
  flex: 0 0 auto;
}
.dream-card__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dream-card__name strong {
  font-size: 0.92rem;
  color: var(--text-strong, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dream-card__name small {
  font-size: 0.72rem;
  color: var(--text-muted, #8a9bb5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dream-card__pos {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  color: var(--cyan, #00f0ff);
  letter-spacing: 0.04em;
  text-align: right;
  flex: 0 0 auto;
}

/* ─────────── TIME MACHINE ─────────── */
.tm-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan, #00f0ff) rgba(7, 14, 30, 0.5);
}
.tm-strip::-webkit-scrollbar { height: 6px; }
.tm-strip::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--cyan, #00f0ff), var(--pink, #ff2bd6));
  border-radius: 3px;
}
.tm-year {
  flex: 0 0 auto;
  background: rgba(7, 14, 30, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 10px;
  color: var(--text, #e8eef9);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: all 0.2s;
  min-width: 92px;
}
.tm-year:hover {
  border-color: var(--cyan, #00f0ff);
  transform: translateY(-1px);
}
.tm-year.is-active {
  border-color: var(--tm-color);
  background: color-mix(in oklab, var(--tm-color) 15%, rgba(7, 14, 30, 0.85));
  box-shadow: 0 0 12px var(--tm-color);
}
.tm-year__num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tm-color);
  line-height: 1;
}
.tm-year__champ {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted, #8a9bb5);
}
.tm-year__champ img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
}

.tm-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--tm-color);
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--tm-color) 10%, rgba(7, 14, 30, 0.85)), rgba(7, 14, 30, 0.7));
  box-shadow: 0 0 32px color-mix(in oklab, var(--tm-color) 18%, transparent);
}
@media (max-width: 720px) {
  .tm-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.tm-card__side {
  border-right: 1px solid color-mix(in oklab, var(--tm-color) 30%, transparent);
  padding-right: 1.2rem;
}
@media (max-width: 720px) {
  .tm-card__side { border-right: 0; border-bottom: 1px solid color-mix(in oklab, var(--tm-color) 30%, transparent); padding-right: 0; padding-bottom: 1rem; }
}
.tm-card__year {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--tm-color);
  text-shadow: 0 0 22px color-mix(in oklab, var(--tm-color) 40%, transparent);
}
.tm-card__host {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-size: 1rem;
  color: var(--text, #e8eef9);
}
.tm-card__host img {
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}
.tm-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tm-card__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
}
.tm-card__row:last-of-type {
  border-bottom: 0;
}
.tm-card__lbl {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #8a9bb5);
}
.tm-card__val {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text, #e8eef9);
  flex-wrap: wrap;
}
.tm-card__val strong {
  color: var(--text-strong, #fff);
}
.tm-card__flag {
  width: 22px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
}
.tm-card__score {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 600;
  color: var(--tm-color);
  background: color-mix(in oklab, var(--tm-color) 12%, rgba(7, 14, 30, 0.5));
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
}
.tm-card__moment {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--tm-color);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text, #e8eef9);
  line-height: 1.55;
}
.tm-card__moment-tag {
  display: inline-block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tm-color);
  margin-right: 0.5rem;
  font-style: normal;
}
.tm-err {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted, #8a9bb5);
}

/* ─────────── PLAYER DUEL ─────────── */
.duel-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 1rem;
  align-items: end;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.7), rgba(7, 14, 30, 0.4));
  margin-bottom: 1.5rem;
}
@media (max-width: 720px) {
  .duel-bar {
    grid-template-columns: 1fr;
  }
  .duel-bar__vs { text-align: center; }
}
.duel-bar__sel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.duel-bar__lbl {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan, #00f0ff);
}
.duel-bar__search {
  background: rgba(7, 14, 30, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  color: var(--text, #e8eef9);
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
}
.duel-bar__search:focus {
  outline: none;
  border-color: var(--cyan, #00f0ff);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}
.duel-bar__suggest {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(7, 14, 30, 0.96);
  border: 1px solid var(--cyan, #00f0ff);
  border-radius: 10px;
  margin-top: 4px;
  z-index: 10;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.duel-suggest__row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.duel-suggest__row:hover {
  background: rgba(0, 240, 255, 0.08);
}
.duel-suggest__photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 240, 255, 0.05);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 240, 255, 0.2);
}
.duel-suggest__name strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-strong, #fff);
}
.duel-suggest__name small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted, #8a9bb5);
}
.duel-suggest__pos {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  color: var(--cyan, #00f0ff);
}

.duel-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
@media (max-width: 980px) {
  .duel-grid {
    grid-template-columns: 1fr;
  }
}

.duel-card {
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.7), rgba(7, 14, 30, 0.4));
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.duel-card--a { border-color: rgba(0, 240, 255, 0.4); box-shadow: 0 0 22px rgba(0, 240, 255, 0.1); }
.duel-card--b { border-color: rgba(255, 43, 214, 0.4); box-shadow: 0 0 22px rgba(255, 43, 214, 0.1); }

.duel-card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-color: rgba(0, 240, 255, 0.05);
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(0, 240, 255, 0.3);
  margin-bottom: 0.8rem;
  text-decoration: none;
  color: var(--cyan, #00f0ff);
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 3rem;
}
.duel-card--b .duel-card__photo {
  border-color: rgba(255, 43, 214, 0.35);
}
.duel-card__name {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--text-strong, #fff);
  margin-bottom: 0.3rem;
}
.duel-card__team {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-muted, #8a9bb5);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.15);
  padding-bottom: 0.7rem;
  width: 100%;
  justify-content: center;
}
.duel-card__team img {
  width: 22px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}
.duel-card__team:hover {
  color: var(--text, #e8eef9);
}
.duel-card__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
}
.duel-card__stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
}
.duel-card__stat dt {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #8a9bb5);
}
.duel-card__stat dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text, #e8eef9);
  text-align: right;
}

.duel-center {
  border: 1px dashed rgba(0, 240, 255, 0.2);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7, 14, 30, 0.4);
}
.duel-center__vs {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(90deg, var(--cyan, #00f0ff), var(--pink, #ff2bd6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.duel-center__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.duel-center__list li {
  font-size: 0.88rem;
  color: var(--text, #e8eef9);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.duel-center__list strong {
  color: var(--cyan, #00f0ff);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 600;
}

/* ─────────── TACTICAL BOARD ─────────── */
.tact-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.7), rgba(7, 14, 30, 0.4));
  margin-bottom: 1rem;
}
.tact-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted, #8a9bb5);
}
.tact-toolbar select {
  background: rgba(7, 14, 30, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  color: var(--text, #e8eef9);
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.tact-btn {
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--text, #e8eef9);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tact-btn:hover {
  border-color: var(--cyan, #00f0ff);
  color: var(--cyan, #00f0ff);
}
.tact-btn.is-active {
  background: var(--cyan, #00f0ff);
  border-color: var(--cyan, #00f0ff);
  color: #001923;
  font-weight: 600;
}
.tact-btn--ghost {
  border-color: rgba(255, 43, 214, 0.3);
  color: var(--pink, #ff2bd6);
}
.tact-btn--ghost:hover {
  background: rgba(255, 43, 214, 0.1);
  color: var(--pink, #ff2bd6);
}

.tact-board {
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 14px;
  background: radial-gradient(ellipse at center, rgba(0, 60, 60, 0.4), rgba(7, 14, 30, 0.85));
  padding: 0.5rem;
  user-select: none;
}
.tact-svg {
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  touch-action: none;
}
.tact-token {
  cursor: grab;
  transition: filter 0.1s;
}
.tact-token:hover { filter: drop-shadow(0 0 4px currentColor); }
.tact-token.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 0 8px currentColor);
}
.tact-arrow {
  pointer-events: none;
}
.tact-hint {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted, #8a9bb5);
}

/* ─────────── SOUND CHECK ─────────── */
.sc-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  background: rgba(7, 14, 30, 0.6);
  margin-bottom: 1.2rem;
}
.sc-hud__beat {
  display: flex;
  gap: 0.4rem;
}
.sc-hud__beat span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
  transition: all 0.06s ease;
}
.sc-hud__beat span.is-on {
  background: var(--cyan, #00f0ff);
  box-shadow: 0 0 12px var(--cyan, #00f0ff);
  transform: scale(1.15);
}
.sc-hud__tempo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted, #8a9bb5);
}
.sc-hud__tempo input[type=range] {
  accent-color: var(--cyan, #00f0ff);
}
.sc-loop {
  background: var(--cyan, #00f0ff);
  border: 0;
  border-radius: 999px;
  color: #001923;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.sc-loop:hover { box-shadow: 0 0 14px rgba(0, 240, 255, 0.4); }
.sc-loop.is-on {
  background: var(--pink, #ff2bd6);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.4);
}

.sc-pads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  max-width: 600px;
  margin: 0 auto;
}
@media (max-width: 520px) {
  .sc-pads { grid-template-columns: repeat(2, 1fr); }
}
.sc-pad {
  position: relative;
  aspect-ratio: 1 / 0.92;
  background: linear-gradient(180deg, rgba(7,14,30,0.55), rgba(7,14,30,0.85));
  border: 1px solid var(--pad-color, var(--cyan, #00f0ff));
  border-radius: 14px;
  color: var(--text, #e8eef9);
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.8rem;
  overflow: hidden;
  transition: transform 0.06s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}
.sc-pad:hover {
  box-shadow: 0 0 18px color-mix(in oklab, var(--pad-color) 35%, transparent);
}
.sc-pad.is-hit {
  transform: scale(0.96);
  background: color-mix(in oklab, var(--pad-color) 25%, rgba(7,14,30,0.85));
  box-shadow: 0 0 26px color-mix(in oklab, var(--pad-color) 60%, transparent);
}
.sc-pad__hint {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--pad-color);
  position: absolute;
  top: 8px;
  left: 12px;
}
.sc-pad__label {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-strong, #fff);
}
.sc-pad__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, var(--pad-color), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.06s;
}
.sc-pad.is-hit .sc-pad__glow { opacity: 0.15; }

.sc-hint {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted, #8a9bb5);
  font-style: italic;
}

/* === Back-to-top floating button (общая для всех страниц) === */
.to-top {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.5rem);
  bottom: clamp(0.9rem, 2vw, 1.5rem);
  z-index: 50;
  width: 46px;
  height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.45);
  background: rgba(7, 14, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--cyan);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover {
  border-color: var(--cyan);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45),
              0 0 22px rgba(0, 240, 255, 0.35);
}
.to-top svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 0.15s; transform: none; }
}

/* Stadium slideshow — used on city-*.html pages */
.slideshow { position: absolute; inset: 0; outline: none; }
.slideshow__track { position: absolute; inset: 0; }
.slideshow__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; margin: 0; }
.slideshow__slide.is-active { opacity: 1; pointer-events: auto; }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow__slide figcaption { position: absolute; left: 14px; right: 70px; bottom: 14px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #e3eaf6; background: rgba(7, 14, 30, 0.78); backdrop-filter: blur(8px); padding: 0.45rem 0.7rem; border-radius: 6px; border: 1px solid rgba(0, 240, 255, 0.18); line-height: 1.4; }
.slideshow__slide figcaption a { color: var(--cyan); text-decoration: none; border-bottom: 1px dashed rgba(0,240,255,.4); }
.slideshow__slide figcaption a:hover { border-bottom-style: solid; }
.slideshow__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(0, 240, 255, 0.35); background: rgba(7, 14, 30, 0.78); backdrop-filter: blur(10px); color: var(--cyan); font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 0; cursor: pointer; transition: all var(--dur-1) var(--ease); z-index: 2; display: flex; align-items: center; justify-content: center; padding-bottom: 4px; }
.slideshow__nav:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(0, 240, 255, 0.45); }
.slideshow__nav--prev { left: 12px; }
.slideshow__nav--next { right: 12px; }
.slideshow__dots { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.slideshow__dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(0, 240, 255, 0.45); background: rgba(7, 14, 30, 0.5); padding: 0; cursor: pointer; transition: all var(--dur-1) var(--ease); }
.slideshow__dot.is-active { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); border-color: var(--cyan); }
.slideshow__dot:hover { border-color: var(--cyan); }
