/* WPulse Player Hub - styles.css
   Colours are set once in :root below. Change them there. */

:root {
  --bg: #060b14;
  --bg-2: #0b1424;
  --card: #0f1b2f;
  --line: #1c2f4a;
  --text: #dce6f2;
  --muted: #8da2bb;
  --accent: #19d3c5;
  --accent-2: #22b8ee;
  --warn: #f5b942;
  --head-font: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse at top, #0c2036 0%, var(--bg) 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: #6ff0e5; }

h1, h2, h3 {
  font-family: var(--head-font);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: #fff;
}
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 6vw, 2.6rem); color: var(--accent); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }

section { padding: 56px 0 24px; }
.section-head { border-left: 4px solid var(--accent); padding-left: 14px; margin-bottom: 22px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Sticky menu ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 11, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(25, 211, 197, 0.22), 0 8px 18px -10px rgba(25, 211, 197, 0.25);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; position: relative; }
.brand {
  font-family: var(--head-font); font-weight: 700; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: #fff;
  text-decoration: none; white-space: nowrap; padding: 12px 0;
}
.brand span { color: var(--accent); }
.nav {
  display: flex; gap: 4px; overflow-x: auto; margin-left: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: 14px 10px; font-size: 0.9rem; font-weight: 500;
  border-bottom: 2px solid transparent; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.nav a:hover, .nav a:focus-visible { color: #fff; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a; font-weight: 700; text-decoration: none;
  font-family: var(--head-font); font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  position: relative; overflow: hidden;
}
.btn:hover { color: #04121a; filter: brightness(1.1); }
.btn .ic { width: 1.1em; height: 1.1em; vertical-align: -0.16em; margin-right: 0.45em; }
.btn-sm { padding: 3px 12px; font-size: 1rem; border-radius: 999px; }
.btn-big { padding: 18px 34px; font-size: 1.5rem; }
.btn-ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-ghost:hover { color: #fff; background: rgba(25, 211, 197, 0.12); }

/* ---------- Header ---------- */
.hero { padding: 64px 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; margin-bottom: 14px; padding: 4px 14px;
  font-family: var(--body-font); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #38bdf8; background: rgba(6, 182, 212, 0.08); border: 1px solid rgba(6, 182, 212, 0.25); border-radius: 9999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

/* ---------- Cards / schedule ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 20px; margin-bottom: 18px;
}
.next-duel { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(25, 211, 197, 0.25), 0 8px 30px rgba(25, 211, 197, 0.08); }
.next-duel .label { font-family: var(--head-font); color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; }
.next-duel .players { font-family: var(--head-font); font-size: 2rem; text-transform: uppercase; color: #fff; line-height: 1.1; }

.duel-details { display: grid; grid-template-columns: 1fr; gap: 10px 24px; margin: 10px 0 16px; }
.duel-details .duel-wide { grid-column: 1 / -1; }
.duel-details .duel-wide dd { font-size: 1.25rem; font-weight: 600; }
.duel-details .duel-tz { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.match-details strong { color: var(--accent); font-weight: 600; }
.duel-details dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.duel-details dd { margin: 0; font-size: 0.95rem; }
@media (min-width: 720px) { .duel-details { grid-template-columns: 1fr 1fr; } }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--card); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--head-font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: var(--bg-2); font-size: 1.05rem; }
tr:last-child td { border-bottom: 0; }

/* ---------- Setup steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px 20px 20px; margin-bottom: 18px;
}
.step h3 { display: flex; align-items: center; gap: 12px; }
.step h3::before {
  content: counter(step); flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #04121a; font-size: 1.4rem; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(25, 211, 197, 0.16);
}
.step code, .faq code, .box code {
  background: #0a1626; border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 6px; font-size: 0.92em; color: #9ff3ec; overflow-wrap: anywhere;
}
.version-line { color: var(--muted); font-size: 0.95rem; margin: 10px 0 0; }
.version-line strong { color: var(--text); }
.note { border-left: 3px solid var(--warn); background: rgba(245, 185, 66, 0.07); padding: 10px 14px; border-radius: 0 6px 6px 0; }

/* Screenshot placeholder: aspect-ratio reserves space so layout never jumps.
   When you add a real <img>, give it class="shot" and keep width/height attributes. */
.shot-ph, img.shot {
  display: block; width: 100%; max-width: 640px; aspect-ratio: 16 / 9;
  margin: 14px 0 0; border-radius: 8px; object-fit: cover; height: auto;
}
img.shot { object-fit: contain; border: 1px solid var(--line); background: var(--bg-2); }
.shot-ph.shot-wide { max-width: 960px; margin-top: 0; }
.shot-ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 12px; color: var(--muted); font-size: 0.95rem;
  background: repeating-linear-gradient(45deg, #0a1626, #0a1626 12px, #0d1a2e 12px, #0d1a2e 24px);
  border: 2px dashed var(--line);
}

/* ---------- Placeholder text blocks ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.box h3 { color: var(--accent); }
.box > :last-child { margin-bottom: 0; }
.todo { color: var(--warn); }
.rules-list { margin: 0; padding-left: 1.2em; }
.rules-list li { margin-bottom: 0.5em; }
.rules-list li::marker { color: var(--accent); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 1.8em; margin-bottom: 0.5em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.15em; height: 1.15em;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details[open] { border-left: 3px solid var(--accent); }
.faq summary:hover { background: rgba(25, 211, 197, 0.07); border-radius: 9px; }
.faq details[open] summary:hover { border-radius: 9px 9px 0 0; }
.faq summary:focus-visible { outline-offset: -2px; border-radius: 9px; }
.faq .answer { padding: 14px 18px 4px; }

/* ---------- Footer ---------- */
footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 32px 0 40px; color: var(--muted); }
footer h2 { font-size: 1.8rem; }
footer p { margin-bottom: 0.5em; }
.small { font-size: 0.85rem; }

.contact-list { list-style: none; margin: 0 0 1em; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 8px; padding: 3px 0; flex-wrap: wrap; }
.ci-sm { flex: none; width: 1.25rem; height: 1.25rem; color: var(--accent); }
.handle {
  background: #0a1626; border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 6px; font-weight: 600; color: #9ff3ec;
}


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

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  body { font-size: 1.05rem; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 18px 5px; font-size: 0.8rem; }
  .nav { gap: 2px; }
}

/* ======================= Design upgrade (static styles) ======================= */
:root {
  --ok: #34d399; --bad: #fb7185;
  --ok-bg: rgba(52, 211, 153, 0.07); --bad-bg: rgba(251, 113, 133, 0.07);
  --warn-bg: rgba(245, 185, 66, 0.07); --info-bg: rgba(25, 211, 197, 0.06);
}

/* Icons (sprite symbols, decorative) */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
h3 .ic { width: 1.1em; height: 1.1em; margin-right: 0.45em; vertical-align: -0.14em; color: var(--acc, var(--accent)); }

/* Semantic accents: thin left border, tinted icon, faint background */
.acc-ok { --acc: var(--ok); --acc-bg: var(--ok-bg); }
.acc-warn { --acc: var(--warn); --acc-bg: var(--warn-bg); }
.acc-bad { --acc: var(--bad); --acc-bg: var(--bad-bg); }
.acc-info { --acc: var(--accent); --acc-bg: var(--info-bg); }
.box[class*="acc-"] { border-left: 3px solid var(--acc); background-image: linear-gradient(var(--acc-bg), var(--acc-bg)); }
.box[class*="acc-"] h3 { color: var(--acc); }

/* Section dividers and hero */
main > section:not(.hero) { position: relative; }
main > section:not(.hero)::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(960px, calc(100% - 32px)); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(25, 211, 197, 0.4), transparent);
}
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%, rgba(25, 211, 197, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 92% 10%, rgba(34, 184, 238, 0.10), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 211, 197, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 211, 197, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(#000 25%, transparent);
  mask-image: linear-gradient(#000 25%, transparent);
}
.hero .wrap { position: relative; z-index: 1; }


/* Button sheen */
.btn:not(.btn-ghost):not(.btn-off)::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-130%) skewX(-20deg);
}

/* Next duel: animated border ring (a spinning gradient behind a 1.5px inset card face) */
.next-duel { position: relative; overflow: hidden; border-color: transparent; }
.next-duel::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--accent) 78%, var(--accent-2) 90%, transparent 100%);
}
.next-duel::after { content: ""; position: absolute; inset: 1.5px; border-radius: 8.5px; background: var(--card); z-index: 0; }
.next-duel > * { position: relative; z-index: 1; }
.duel-details dt { display: flex; align-items: center; gap: 0.4em; }
.duel-details dt .ic { width: 1.2em; height: 1.2em; vertical-align: 0; }
.next-duel .players { font-size: 2.6rem; }

/* Apply */
.apply-grid { list-style: none; margin: 0 0 1em; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apply-grid li { display: flex; gap: 10px; align-items: center; background: var(--info-bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.apply-grid .ic { width: 1.6rem; height: 1.6rem; color: var(--accent); }

/* Install steps: connecting line */
.step::after {
  content: ""; position: absolute; left: calc(20px + 1.25rem - 1px); top: 100%; width: 2px; height: 18px;
  background: linear-gradient(var(--accent), rgba(25, 211, 197, 0.1));
}
.step:last-child::after { display: none; }

/* Proctor lists, callouts, numbered lists */
.x-list { list-style: none; padding-left: 0; }
.x-list li { position: relative; padding-left: 1.8em; }
.x-list li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.15em; height: 1.15em; background: var(--bad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.callout { display: flex; gap: 10px; align-items: flex-start; border-left: 3px solid var(--warn); background: var(--warn-bg); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.callout .ic { width: 1.3rem; height: 1.3rem; margin-top: 1px; color: var(--warn); }
.num-list { list-style: none; padding-left: 0; counter-reset: n; }
.num-list li { counter-increment: n; position: relative; padding-left: 2.1rem; margin-bottom: 0.6em; }
.num-list li::before {
  content: counter(n); position: absolute; left: 0; top: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(25, 211, 197, 0.14); border: 1px solid var(--accent); color: var(--accent); font-size: 0.8rem; font-weight: 700; line-height: 1;
}

/* Screenshot placeholders as frames: window dots, image icon, shimmer */
.shot-ph {
  position: relative; overflow: hidden; flex-direction: column; gap: 8px; padding: 34px 12px 14px;
  background: linear-gradient(180deg, #0c1829, #0a1626); border: 1px solid var(--line);
}
.shot-ph::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14px 12px, #fb7185 0 4px, transparent 4.5px),
    radial-gradient(circle at 28px 12px, #f5b942 0 4px, transparent 4.5px),
    radial-gradient(circle at 42px 12px, #34d399 0 4px, transparent 4.5px),
    rgba(255, 255, 255, 0.03);
}
.shot-ph::after {
  content: ""; position: absolute; top: 24px; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-130%);
}
.shot-ph .ph-ic { width: 2.2rem; height: 2.2rem; color: #4a6a8f; }

/* Recording: points */
.point { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.point > .ic { width: 2rem; height: 2rem; padding: 6px; border-radius: 8px; background: var(--info-bg); color: var(--accent); margin-top: 2px; }
.point p { margin: 0; }
.point-rec { background: var(--info-bg); border: 1px solid rgba(25, 211, 197, 0.35); border-radius: 10px; padding: 12px 14px; }

/* Footer polish */
footer { position: relative; }
footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.6; }

/* Script-enhanced bits (all inert without script.js) */
.nav a.is-active { color: #fff; }
.nav a.is-active::after { transform: scaleX(1); }
.countdown {
  display: inline-block; margin: 6px 0 2px; padding: 2px 12px; border-radius: 999px;
  background: var(--info-bg); border: 1px solid rgba(25, 211, 197, 0.35);
  color: var(--accent); font-size: 0.9rem; font-weight: 600;
}


/* About the stream: labelled facts, cards that fill their row evenly, button pinned to the bottom */
.about-cards .box { display: flex; flex-direction: column; border-top: 2px solid rgba(25, 211, 197, 0.5); }
.about-cards .box > .btn { align-self: flex-start; margin-top: auto; padding: 9px 18px; font-size: 1.05rem; white-space: nowrap; }
.about-cards .box > .btn .ic { margin-right: 0.4em; }
.about-note { margin: 12px 0 0; color: var(--muted); }
.facts { margin: 0 0 14px; display: grid; gap: 12px; }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.facts dd { margin: 2px 0 0; }

/* Stream preview: wide images and CSS-only dark/light tabs */
img.shot.shot-wide { max-width: 960px; }
.theme-tabs { position: relative; }
.theme-tabs > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tab-labels { display: flex; gap: 8px; }
.tab-labels label {
  cursor: pointer; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--muted); font-family: var(--head-font); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.tab-labels label:hover { color: #fff; border-color: var(--accent); }
/* Generic: first radio + first label + first panel, second radio + second label + second panel */
.theme-tabs > input:nth-of-type(1):checked ~ .tab-labels label:nth-child(1),
.theme-tabs > input:nth-of-type(2):checked ~ .tab-labels label:nth-child(2) { background: rgba(25, 211, 197, 0.14); border-color: var(--accent); color: #fff; }
.theme-tabs > input:nth-of-type(1):focus-visible ~ .tab-labels label:nth-child(1),
.theme-tabs > input:nth-of-type(2):focus-visible ~ .tab-labels label:nth-child(2) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-panels > :nth-child(2) { display: none; }
.theme-tabs > input:nth-of-type(2):checked ~ .tab-panels > :nth-child(1) { display: none; }
.theme-tabs > input:nth-of-type(2):checked ~ .tab-panels > :nth-child(2) { display: block; }
.theme-tabs + .theme-tabs, .cards-gap { margin-top: 22px; }

/* Collapsible secondary rules (details/summary, works without script) */
.rule-stack { display: grid; gap: 10px; margin-top: 18px; }
.box.rule-details { padding: 0; }
.rule-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.rule-details > summary::-webkit-details-marker { display: none; }
.rule-details > summary h3 { margin: 0; }
.rule-details > summary::after { content: "+"; color: var(--acc); font-size: 1.5rem; line-height: 1; flex: none; }
.rule-details[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.rule-details[open] > summary::after { transform: rotate(45deg); }
.rule-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 9px; }
.rule-details .rule-body { padding: 0 18px 14px; }
.rule-details .rule-body p { margin: 0; }

/* Two-column prohibited list on desktop */
@media (min-width: 720px) {
  .x-cols { columns: 2; column-gap: 28px; }
  .x-cols li { break-inside: avoid; }
}

/* Visitor's local time (added by script.js) */
.duel-local { display: block; margin-top: 2px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* Sticky table of contents: wide desktop screens only */
.toc { display: none; }
@media (min-width: 1400px) {
  .toc {
    display: block; position: fixed; z-index: 40; top: 88px; left: calc(50% - 672px); width: 176px;
    max-height: calc(100vh - 110px); overflow-y: auto; padding: 6px 0; border-left: 1px solid var(--line);
  }
  .toc-title { margin: 0 0 6px 12px; font-family: var(--head-font); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
  .toc a { display: block; padding: 5px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 0.85rem; line-height: 1.35; }
  .toc a:hover { color: #fff; }
  .toc a.is-active { color: #fff; border-left-color: var(--accent); }
  .toc a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
}

/* Focus */
.btn:focus-visible, .nav a:focus-visible, .faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq summary:focus-visible { outline-offset: -2px; }

@media (min-width: 720px) {
  #stream-preview .grid.three > .box:last-child { grid-column: 1 / -1; }
}

/* ---------- Desktop sizing (720px and up only): calmer type scale and spacing ---------- */
@media (min-width: 720px) {
  body { font-size: 1rem; }
  h1 { font-size: clamp(2.6rem, 5vw, 3.4rem); }
  h2 { font-size: 2.1rem; }
  .hero { padding: 44px 0 28px; }
  .hero p.lead { font-size: 1.05rem; }
  section { padding-top: 44px; padding-bottom: 20px; }
  .next-duel .players { font-size: 2.2rem; }
  .btn-big { padding: 15px 28px; font-size: 1.35rem; }
  .section-head { margin-bottom: 18px; }
}

/* ---------- Phones: compact layout (below the 720px desktop breakpoint) ---------- */
@media (max-width: 719px) {
  html { zoom: 0.85; scroll-padding-top: 48px; }
  body { font-size: 0.8125rem; line-height: 1.5; }
  h1 { font-size: clamp(1.6rem, 7vw, 1.9rem); }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  p { margin-bottom: 0.7em; }
  .small { font-size: 0.78rem; }

  .wrap { padding: 0 12px; }
  section { padding: 28px 0 12px; }
  .hero { padding: 28px 0 20px; }
  .eyebrow { font-size: 0.75rem; margin-bottom: 6px; }
  .hero p.lead { font-size: 0.875rem; }
  .section-head { border-left-width: 3px; padding-left: 10px; margin-bottom: 12px; }

  .topbar .wrap { gap: 8px; }
  .brand { font-size: 1rem; padding: 8px 0; }
  .nav { gap: 0; }
  .nav a { padding: 10px 6px; font-size: 0.78rem; }

  .btn { padding: 10px 16px; font-size: 0.85rem; }
  .btn-big { padding: 11px 18px; font-size: 0.95rem; }

  .card, .box, .step { padding: 11px; margin-bottom: 10px; }
  .grid { gap: 10px; }
  .step h3 { gap: 8px; }
  .step h3::before { width: 1.5rem; height: 1.5rem; font-size: 0.85rem; }
  .note { padding: 7px 10px; }
  .rules-list li, .check-list li { margin-bottom: 0.35em; }
  .version-line { font-size: 0.78rem; }

  .next-duel .players { font-size: 1.35rem; }
  .next-duel .label { font-size: 0.8rem; }
  .duel-details { gap: 7px 14px; margin: 7px 0 10px; }
  .duel-details dt { font-size: 0.75rem; }
  .duel-details .duel-wide dd { font-size: 0.95rem; }
  .duel-details dd { font-size: 0.8125rem; }
  .duel-details .duel-tz { font-size: 0.78rem; }

  .shot-ph, img.shot { margin-top: 8px; }
  .shot-ph { padding: 6px; font-size: 0.78rem; }

  .faq summary { padding: 10px 12px; }
  .faq summary::after { font-size: 1.25rem; }
  .faq .answer { padding: 10px 12px 2px; }
  .faq details { margin-bottom: 8px; }

  footer { margin-top: 26px; padding: 20px 0 24px; }
  footer h2 { font-size: 1.3rem; }

  /* Schedule table: each row becomes a compact card, so nothing scrolls sideways.
     Column labels come from CSS; the header row stays available to screen readers. */
  .table-scroll { overflow: visible; border: 0; border-radius: 0; }
  table, tbody, tr, td { display: block; }
  table { min-width: 0; background: none; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tr { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px; margin-bottom: 10px; }
  td, tr:last-child td { border-bottom: 0; padding: 5px 0; font-size: 0.8125rem; }
  td::before {
    display: block; font-family: var(--head-font); text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--accent); font-size: 0.75rem; line-height: 1.2;
  }
  td:nth-child(1)::before { content: "Date"; }
  td:nth-child(2)::before { content: "Time (WAT, UTC+1)"; }
  td:nth-child(3)::before { content: "Players"; }
  td:nth-child(4)::before { content: "Format / rules"; }
  td:nth-child(5)::before { content: "Stream"; }
}

/* Phones: sizes for the design-upgrade elements (after the compact block above) */
@media (max-width: 719px) {
  .next-duel .players { font-size: 1.45rem; }
  .next-duel::before { width: 900px; height: 900px; margin: -450px 0 0 -450px; }
  .apply-grid { gap: 8px; }
  .apply-grid li { padding: 8px 10px; gap: 8px; }
  .apply-grid .ic { width: 1.3rem; height: 1.3rem; }
  .step::after { left: calc(11px + 0.85rem - 1px); height: 10px; }
  .step h3::before { width: 1.7rem; height: 1.7rem; font-size: 0.95rem; }
  .shot-ph { padding: 26px 6px 8px; }
  .shot-ph::before { height: 20px; }
  .shot-ph::after { top: 20px; }
  .shot-ph .ph-ic { width: 1.8rem; height: 1.8rem; }
  .num-list li { margin-bottom: 0.6em; min-height: 1.5rem; padding-left: 2rem; }
  .point { gap: 10px; }
  .point > .ic { width: 1.8rem; height: 1.8rem; padding: 5px; }
  .point-rec { padding: 9px 11px; }
  .callout { padding: 8px 10px; }
  .nav { padding-right: 30px; }
  .topbar .wrap::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 36px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(6, 11, 20, 0.96));
  }
  .tab-labels label { padding: 7px 14px; font-size: 0.9rem; }
  .facts { gap: 9px; margin-bottom: 10px; }
  .facts dd { font-size: 0.8125rem; }
  .about-cards .box > .btn { padding: 8px 14px; font-size: 0.85rem; }
  .about-note { margin-top: 10px; }
  .box.rule-details > summary { padding: 10px 12px; }
  .rule-details[open] > summary { margin-bottom: 8px; }
  .rule-details .rule-body { padding: 0 12px 10px; }
  .rule-stack { gap: 8px; margin-top: 12px; }
  .duel-local { font-size: 0.78rem; }
  .countdown { font-size: 0.8rem; padding: 2px 10px; }
}

/* ===================== Hero: broadcast command-center look ===================== */
.hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(6, 182, 212, 0.12), transparent 75%),
    radial-gradient(ellipse 60% 70% at 15% 0%, rgba(25, 211, 197, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 92% 10%, rgba(34, 184, 238, 0.10), transparent 70%);
}
.hero h1 {
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF 40%, #BAE6FD 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.spec-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 18px;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; opacity: 0.85;
}
.spec-strip span:not(:last-child)::after { content: "\00B7"; margin-left: 12px; color: rgba(6, 182, 212, 0.7); }
.hero p.lead { color: #94a3b8; line-height: 1.6; max-width: 620px; }
.hero p.lead:first-of-type { color: #cbd5e1; }
.hero-cta { margin-top: 20px; }
@media (min-width: 720px) {
  .hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
}

/* ===================== Hero CTA row and Next duel card refresh ===================== */

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cta .btn { margin: 0; }
.btn.btn-primary { background: #06b6d4; color: #0f172a; font-weight: 600; }
.btn.btn-primary:hover { color: #0f172a; filter: none; background: #22d3ee; }
.btn.btn-outline { background: transparent; border: 2px solid #06b6d4; color: #06b6d4; font-weight: 600; }
.btn.btn-outline:hover { background: rgba(6, 182, 212, 0.1); color: #67e8f9; border-color: #22d3ee; box-shadow: 0 0 16px rgba(6, 182, 212, 0.5); }

/* Sidebar: active anchor gets a cyan track */
@media (min-width: 1400px) {
  .toc a.is-active { border-left: 2px solid #06b6d4; background: linear-gradient(90deg, rgba(6, 182, 212, 0.14), transparent); }
}

/* Next duel: versus header */
.next-duel .players {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: 1.7rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.15; text-transform: uppercase;
}
.next-duel .players .vs {
  flex: none; padding: 2px 12px; border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.18em;
  color: #67e8f9; background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

/* Countdown badge: glowing status dot */
.countdown { display: inline-flex; align-items: center; gap: 0.55em; }
.countdown::before {
  content: ""; flex: none; width: 0.55em; height: 0.55em; border-radius: 50%;
  background: #22d3ee; box-shadow: 0 0 8px #22d3ee;
}

/* Next duel: label / value hierarchy (icons keep their original colour) */
.duel-details dt { color: rgba(103, 232, 249, 0.75); letter-spacing: 0.05em; }
.duel-details dt .ic { color: var(--accent); }
.duel-details dd { color: #f8fafc; font-weight: 500; }
.duel-details .duel-wide dd { font-weight: 600; }
.duel-details dd .duel-tz { color: var(--muted); font-weight: 400; }
.duel-details dd .duel-local { color: var(--accent); font-weight: 600; }

/* Next duel: card shadow and inner top highlight (the highlight sits on the card face layer, which covers the card's own inset shadow) */
.next-duel { box-shadow: inset 0 1px 0 rgba(6, 182, 212, 0.3), 0 10px 30px rgba(0, 0, 0, 0.45); }
.next-duel::after { box-shadow: inset 0 1px 0 rgba(6, 182, 212, 0.3); }

/* Below 768px: single columns */
@media (max-width: 767px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .next-duel .players { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 1.5rem; }
  .duel-details { grid-template-columns: 1fr; }
}

/* ===================== Motion: transform and opacity only ===================== */
@media (prefers-reduced-motion: no-preference) {
  .btn, .box, .card, .step { transition: transform 0.2s ease, border-color 0.2s ease; }
  .btn:not(.btn-ghost):not(.btn-off)::after { transition: transform 0.6s ease; }
  .nav a::after { transition: transform 0.2s ease; }
  .faq summary::after, .rule-details > summary::after { transition: transform 0.2s ease; }
  .rule-details[open] .rule-body { animation: ans-in 0.25s ease; }
  .btn:active { transform: translateY(0) scale(0.98); }

  .countdown::before { animation: dot-pulse 1.8s ease-in-out infinite; }
  @keyframes dot-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }


  .next-duel::before { animation: ring-spin 7s linear infinite; }
  @keyframes ring-spin { to { transform: rotate(360deg); } }

  .shot-ph::after { animation: shimmer 3.8s ease-in-out infinite; }
  @keyframes shimmer { 0% { transform: translateX(-130%); } 60%, 100% { transform: translateX(330%); } }

  /* Scroll reveal: elements are only hidden after script.js adds the "js" class to <html> */
  .js .reveal { opacity: 0; transform: translateY(16px); }
  .js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

  .faq details[open] .answer { animation: ans-in 0.25s ease; }
  @keyframes ans-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .box:hover, .card:hover, .step:hover { transform: translateY(-2px); border-color: rgba(25, 211, 197, 0.5); }
  .box[class*="acc-"]:hover { border-left-color: var(--acc); }
  .next-duel:hover { border-color: transparent; }
  .btn:not(.btn-off):hover { transform: translateY(-2px); }
  .btn.btn-primary:hover { transform: scale(1.04); }
  .btn:not(.btn-ghost):not(.btn-off):hover::after { transform: translateX(420%) skewX(-20deg); }
}

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

/* ===================== Viewer-facing sections (added with the welcome page) ===================== */

/* Next duel: card(s) beside the schedule flyer (desktop), stacked on phones */
.duel-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.duel-list { min-width: 0; }
.duel-flyer { margin: 0 0 18px; min-width: 0; }
.duel-flyer a { display: block; }
.duel-flyer img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.duel-flyer figcaption { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
@media (min-width: 860px) {
  .duel-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .duel-layout.no-flyer { grid-template-columns: minmax(0, 1fr); }
}

/* About: how a match works */
.how-it-works { margin-top: 18px; }

/* What's new: feature cards */
.feature-grid .box p { color: var(--text); }
@media (min-width: 480px) and (max-width: 719px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Commentary: photo slot with an initials fallback (the <img> removes itself if the file is missing) */
.commentators { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; }
@media (min-width: 720px) { .commentators { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.commentator { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 0; }
.commentator h3 { margin-bottom: 0.2em; }
.commentator .role { margin: 0; color: var(--muted); }
.avatar {
  position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(25, 211, 197, 0.18), rgba(34, 184, 238, 0.12)); border: 2px solid var(--accent);
}
.avatar::before { content: attr(data-initials); font-family: var(--head-font); font-size: 2.4rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Commentary: the telestrator feature block */
.telestrator { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.telestrator-shot { margin: 0; min-width: 0; }
.telestrator-shot img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); }
@media (min-width: 860px) {
  .telestrator { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .telestrator.no-img { grid-template-columns: minmax(0, 1fr); }
}

/* For players divider */
.players-divider {
  margin-top: 40px; padding: 40px 0 32px;
  background: linear-gradient(180deg, rgba(25, 211, 197, 0.12), rgba(25, 211, 197, 0.04));
  border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line);
}
.players-divider h2 { margin-bottom: 0.3em; }
.players-divider p { max-width: 40em; margin: 0; color: var(--muted); }



/* Brand logos: the header brand is the "WPulse Gaming" wordmark (vector paths, as on the stream); hero emblem (wide screens only); small icon in the footer line */
.brand { display: inline-flex; align-items: center; min-height: 58px; } /* min-height keeps the header height the same as before */
.brand img { display: block; flex: none; height: 26px; width: auto; }
/* Hero emblem: animated icon (its own soft glow layer is inside the SVG). A small one sits above the headline
   on phones; from 900px it is the larger emblem beside the text. */
.hero-logo { display: block; width: 80px; height: 80px; margin: 0 0 6px; pointer-events: none; }
/* Each sentence of the headline stays whole; the line breaks between the two sentences */
.hero h1 span { white-space: nowrap; }
@media (min-width: 900px) {
  .hero { --emb-w: clamp(160px, 18vw, 240px); --emb-r: clamp(-80px, calc(504px - 50vw), 24px); }
  /* Decorative emblem, centred against the hero text block; no tile (the soft teal glow is drawn inside the SVG).
     --emb-r is 24px up to a 960px viewport, then eases into the side margin (max 80px). */
  .hero-logo {
    position: absolute; right: var(--emb-r); top: 50%; transform: translateY(-50%);
    width: var(--emb-w); height: auto; margin: 0; pointer-events: none;
  }
  /* The headline wraps before it reaches the emblem (its right edge stays 40px clear of the emblem's box) */
  .hero h1 { max-width: calc(100% - 16px - var(--emb-r) - var(--emb-w)); }
}
@media (max-width: 719px) {
  .brand { min-height: 44px; }
  .brand img { height: 15px; }
}
/* Commentary directly follows the Next duel block: no divider line and a tight gap, so the two read as one block */
#schedule { padding-bottom: 0; }
#commentary { padding-top: 4px; }
#commentary::before { display: none; }

/* Next duel footnote and the "want to play" line after Commentary */
.duel-note { margin: 0 0 18px; color: var(--muted); }
.play-line { padding-top: 28px; padding-bottom: 4px; }
.play-line p { margin: 0; color: var(--muted); }

/* Very narrow phones (about 360px): squeeze the nav a little more so the pill stays whole */
@media (max-width: 379px) {
  .nav a { font-size: 0.72rem; padding-left: 3px; padding-right: 3px; }
}

/* Phones: compact commentator rows (extra rules only; the phone block above is untouched) */
@media (max-width: 719px) {
  .topbar .wrap { gap: 6px; }
  .nav { padding-right: 14px; }
  .nav a { padding-left: 4px; padding-right: 4px; }
  .players-divider { margin-top: 24px; padding: 26px 0 20px; }
  .duel-note { margin-bottom: 10px; }
  .play-line { padding-top: 18px; }
  .commentator { flex-direction: row; text-align: left; gap: 12px; }
  .avatar { width: 64px; height: 64px; }
  .avatar::before { font-size: 1.4rem; }
  .duel-layout { gap: 10px; }
  .duel-flyer { margin-bottom: 10px; }
  .commentators { gap: 10px; margin-bottom: 10px; }
  .how-it-works { margin-top: 10px; }
}

/* Very narrow phones: a slightly smaller wordmark so it fits beside the nav links (placed last so it wins over the 719px rule) */
@media (max-width: 379px) {
  .brand img { height: 13px; }
}

/* The WPulse Telestrator: featured panel (existing colours only) */
.ts-panel {
  padding: 30px 26px; border-radius: 12px; border: 2px solid var(--accent); align-items: start;
  background-color: var(--card);
  background-image: radial-gradient(ellipse 60% 90% at 0% 0%, rgba(25, 211, 197, 0.16), transparent 70%), linear-gradient(var(--info-bg), var(--info-bg));
  box-shadow: 0 0 0 1px rgba(25, 211, 197, 0.25), 0 10px 40px rgba(25, 211, 197, 0.14);
}
.ts-panel .eyebrow { margin-bottom: 10px; }
.ts-title { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.02; margin: 0 0 0.3em; color: #fff; }
.ts-tagline { color: var(--accent); font-weight: 600; font-size: 1.1rem; line-height: 1.45; }
.ts-panel .telestrator-text > :last-child { margin-bottom: 0; }
.ts-features { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.ts-feature { background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; padding: 14px 16px; }
.ts-feature h4 { font-family: var(--head-font); text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.3rem; line-height: 1.1; color: var(--accent); margin: 0 0 0.35em; }
.ts-feature p { margin: 0; }
@media (min-width: 720px) {
  .ts-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .ts-panel { padding: 16px 14px; gap: 14px; }
  .ts-tagline { font-size: 0.95rem; }
  .ts-feature { padding: 10px 12px; }
  .ts-feature h4 { font-size: 1.1rem; }
}

/* Next duel card: local-time line, parameter pills, calendar buttons */
.duel-details dd .duel-local { display: block; font-size: 0.85rem; }
.duel-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.pill {
  padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; line-height: 1.4;
  color: var(--text); background: var(--info-bg); border: 1px solid rgba(25, 211, 197, 0.35);
}
.duel-cal { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 12px; }
.duel-cal .btn { padding: 5px 14px; font-size: 0.95rem; }
@media (max-width: 719px) {
  .duel-details dd .duel-local { font-size: 0.78rem; }
  .pill { font-size: 0.75rem; }
  .duel-cal .btn { padding: 5px 12px; font-size: 0.85rem; }
}
/* ===== Next duel card: visual polish (layout only; text, links and script hooks unchanged) ===== */
.next-duel { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 10px; padding: 28px 30px; }
.next-duel > * { flex: 1 1 100%; min-width: 0; margin: 0; }
.next-duel::after {
  background:
    linear-gradient(90deg, transparent, var(--accent) 28%, var(--accent-2) 72%, transparent) top / 100% 2px no-repeat,
    var(--card);
}
.next-duel { box-shadow: inset 0 1px 0 rgba(6, 182, 212, 0.3), 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 44px rgba(25, 211, 197, 0.1); }

.next-duel .players .vs {
  padding: 3px 15px; line-height: 1.35; font-weight: 700;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.26), rgba(25, 211, 197, 0.1));
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Countdown: same element, more presence */
.next-duel > .countdown {
  flex: 0 0 auto; margin: 0; padding: 5px 16px; font-size: 1.05rem; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em; background: rgba(25, 211, 197, 0.12);
  border-color: rgba(25, 211, 197, 0.55); box-shadow: 0 0 18px rgba(25, 211, 197, 0.14);
}
.countdown::before { width: 0.6em; height: 0.6em; box-shadow: 0 0 10px #22d3ee; }
@media (prefers-reduced-motion: no-preference) {
  .countdown::before { animation: duel-dot 2.2s ease-in-out infinite; }
  @keyframes duel-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.22); } }
}

/* Date/time: inset panel, with Platform folded in as a compact inline detail */
.next-duel .duel-details {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px;
  background: rgba(148, 180, 220, 0.05); border: 1px solid rgba(148, 180, 220, 0.16); border-radius: 10px;
}
.next-duel .duel-details .duel-tz { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.next-duel .duel-details dd .duel-local { font-size: 0.78rem; margin-top: 1px; }
.next-duel .duel-details > div:not(.duel-wide) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 10px;
  border-top: 1px solid rgba(148, 180, 220, 0.14);
}
.next-duel .duel-details > div:not(.duel-wide) dt { font-size: 0.7rem; }
.next-duel .duel-details > div:not(.duel-wide) dd { font-size: 0.85rem; font-weight: 600; }

.next-duel .duel-pills { gap: 8px; }
.next-duel .pill { padding: 4px 12px; }

/* Actions: calendar buttons join the card's own row (display: contents); YouTube first and primary */
.duel-cal { display: contents; }
.next-duel > a.btn, .duel-cal > .btn {
  flex: 0 0 auto; width: auto; padding: 6px 16px; font-size: 0.95rem; line-height: 1.3;
  border: 2px solid var(--accent); border-radius: 999px; text-align: center;
}
.next-duel > a.btn { order: 1; }
.duel-cal > .btn { order: 2; }
.next-duel > a.btn.btn-ghost {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a; border-color: transparent;
}
.next-duel > a.btn.btn-ghost:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a; filter: brightness(1.1); }

@media (max-width: 719px) {
  .next-duel { padding: 20px 16px; gap: 13px 8px; }
  .next-duel > .countdown { font-size: 0.92rem; padding: 4px 13px; }
  .next-duel .duel-details { padding: 11px 12px; }
  .next-duel > a.btn, .duel-cal > .btn { padding: 6px 13px; font-size: 0.85rem; }
}
/* ===== Rules: one accordion group (native details), with an at-a-glance summary above ===== */
.rule-summary { display: grid; gap: 10px; margin: 0 0 18px; }
.rule-sum { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; line-height: 1.5; color: var(--text); background: var(--acc-bg); border: 1px solid var(--line); border-left: 3px solid var(--acc); }
.rule-sum-ok { --acc: var(--ok); --acc-bg: var(--ok-bg); }
.rule-sum-bad { --acc: var(--bad); --acc-bg: var(--bad-bg); }
.status-badge {
  flex: none; min-width: 6.4em; text-align: center; padding: 2px 10px; border-radius: 999px;
  font-family: var(--head-font); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5;
  color: var(--acc); background: var(--acc-bg); border: 1px solid var(--acc);
}
.rule-groups { margin-top: 0; }
.rule-groups .rule-sub { margin: 18px 0 6px; font-family: var(--head-font); font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc); }
.rule-groups .rule-body > .rule-sub:first-child { margin-top: 2px; }
.rule-groups .rule-body > p, .rule-groups .rule-body > ul { margin: 0 0 8px; }
.rule-groups .rule-body > .callout { margin: 12px 0 0; }
.rule-groups .rule-body .point:last-of-type { margin-bottom: 4px; }
/* Summary: chevron that rotates, tap target, focus (replaces the old "+") */
.rule-details > summary { min-height: 48px; }
.rule-details > summary::after {
  content: ""; width: 0.6em; height: 0.6em; margin: 0 0.3em 0.25em 0; flex: none; font-size: 1rem;
  border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(45deg);
}
.rule-details[open] > summary::after { transform: rotate(-135deg); margin-bottom: -0.15em; }
@media (prefers-reduced-motion: no-preference) { .rule-details > summary::after { transition: transform 0.2s ease; } }
.rule-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 719px) {
  .rule-sum { flex-direction: column; gap: 6px; padding: 10px 12px; font-size: 0.8125rem; }
  .status-badge { min-width: 0; font-size: 0.78rem; align-self: flex-start; }
  .rule-details > summary { min-height: 52px; }
  .rule-groups .rule-sub { font-size: 0.95rem; margin-top: 14px; }
}
.rule-sum-info { --acc: var(--accent); --acc-bg: var(--info-bg); }

/* ===== Unrevealed players: "mystery matchup" banner =====
   One wide banner split by a 60-degree seam. Left: obsidian + electric blue. Right: dark crimson + red rim.
   Static by default (complete look); slow loops (4-8 s; transform / opacity / background-position / box-shadow only) run when motion is allowed. */
.next-duel .players-teaser {
  --h: 264px; --t: 123px; --dx: calc(var(--h) * 0.2887); /* seam half-width: 60deg from horizontal */
  position: relative; isolation: isolate; display: block; height: var(--h); padding: 0; margin: 0; overflow: hidden; border-radius: 14px;
  font-size: 1rem; line-height: 1.2; text-transform: none; letter-spacing: normal; background: #05070f;
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.6), 0 0 26px rgba(25, 211, 197, 0.28), -10px 0 28px rgba(79, 179, 255, 0.16), 10px 0 28px rgba(255, 107, 107, 0.16);
}
.players-teaser::before { /* faint, wide blue-to-red halo that bridges both halves */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 22% 55% at 38% 50%, rgba(79, 179, 255, 0.1), transparent 100%),
    radial-gradient(ellipse 22% 55% at 62% 50%, rgba(255, 107, 107, 0.1), transparent 100%),
    radial-gradient(ellipse 30% 60% at 50% 50%, rgba(170, 160, 210, 0.06), transparent 100%);
}
.players-teaser::after { /* slow diagonal light sweep */
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 28%; z-index: 4; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 55%, transparent);
  transform: translateX(120%) skewX(-24deg);
}

.tz-side { position: absolute; inset: 0; z-index: 1; display: block; }
.tz-side::before { /* faint grid behind each half */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background: repeating-linear-gradient(0deg, rgba(var(--c), 0.09) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(var(--c), 0.09) 0 1px, transparent 1px 22px);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 55%, #000, transparent 85%); mask-image: radial-gradient(ellipse 70% 80% at 50% 55%, #000, transparent 85%);
}
.tz-left {
  --c: 79, 179, 255; --tilt: perspective(560px) rotateY(-32deg) rotateX(10deg);
  clip-path: polygon(0 0, calc(50% + var(--dx)) 0, calc(50% - var(--dx)) 100%, 0 100%);
  background: radial-gradient(ellipse 60% 90% at 20% 45%, rgba(79, 179, 255, 0.2), transparent 70%), linear-gradient(135deg, #03050b, #0a1226 70%);
  box-shadow: inset 3px 0 0 rgba(var(--c), 0.9), inset 0 0 46px rgba(var(--c), 0.22);
}
.tz-right {
  --c: 255, 107, 107; --tilt: perspective(560px) rotateY(32deg) rotateX(10deg);
  clip-path: polygon(calc(50% + var(--dx)) 0, 100% 0, 100% 100%, calc(50% - var(--dx)) 100%);
  background: radial-gradient(ellipse 60% 90% at 80% 45%, rgba(255, 70, 90, 0.22), transparent 70%), linear-gradient(225deg, #1f050b, #0b0306 75%);
  box-shadow: inset -3px 0 0 rgba(var(--c), 0.9), inset 0 0 46px rgba(var(--c), 0.24);
}
.tz-col { position: absolute; top: 0; bottom: 0; width: calc(50% - var(--dx)); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tz-left .tz-col { left: 0; }
.tz-right .tz-col { right: 0; }
.tz-col::before { /* spotlight cone above the tile */
  content: ""; position: absolute; top: 0; left: 50%; width: 70%; height: 66%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--c), 0.36), transparent); clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
}


/* Tile + platform: blank Scrabble tile on a glowing floor, with a faint reflection */
.tz-stage { position: relative; z-index: 1; flex: none; width: var(--t); height: calc(var(--t) + 8px); }
.tz-floor {
  position: absolute; left: 50%; bottom: -3px; width: 150%; height: calc(var(--t) * 0.22); transform: translateX(-50%); border-radius: 50%;
  border: 1px solid rgba(var(--c), 0.8);
  background: radial-gradient(ellipse at center, rgba(var(--c), 0.4), rgba(0, 0, 0, 0.55) 58%, transparent 72%);
  box-shadow: 0 0 18px rgba(var(--c), 0.6), inset 0 0 12px rgba(var(--c), 0.35);
}
.tz-tile, .tz-refl {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: var(--t); height: var(--t); border-radius: calc(var(--t) * 0.12);
  background: linear-gradient(145deg, #1b2238, #070a14 80%); border: 2px solid rgba(var(--c), 0.95);
}
.tz-tile {
  z-index: 2; transform: var(--tilt);
  box-shadow: 0 0 calc(var(--t) * 0.3) rgba(var(--c), 0.65), inset 0 0 22px rgba(var(--c), 0.3), 9px 12px 0 -2px rgba(var(--c), 0.2), 0 26px 22px -18px rgba(0, 0, 0, 0.95);
}
.tz-refl { /* mirrored, fading out below the tile */
  z-index: 1; top: calc(var(--t) * 1.02); opacity: 0.3; transform: scaleY(-1) var(--tilt);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 36%); mask-image: linear-gradient(180deg, #000, transparent 36%);
}
.tz-q, .tz-refl::before {
  font-family: var(--head-font); font-weight: 700; font-size: calc(var(--t) * 0.64); line-height: 1; color: rgb(var(--c));
  text-shadow: 0 0 10px rgb(var(--c)), 0 0 28px rgba(var(--c), 0.85), 0 -1px 0 rgba(255, 255, 255, 0.5);
}
.tz-refl::before { content: "?"; }
.tz-pt { position: absolute; right: calc(var(--t) * 0.09); bottom: calc(var(--t) * 0.05); font-family: var(--head-font); font-size: calc(var(--t) * 0.17); font-weight: 700; line-height: 1; color: rgba(var(--c), 0.9); text-shadow: 0 0 8px rgba(var(--c), 0.8); }

/* Redaction bar: solid near-black, side-coloured edge, scanline texture. Same arbitrary length on both sides. */
.tz-bar {
  position: relative; z-index: 1; display: block; width: 64%; height: 15px; margin-top: calc(var(--t) * 0.3); overflow: hidden; border-radius: 4px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px), #04050a;
  border: 1px solid rgba(var(--c), 0.7); box-shadow: 0 0 10px rgba(var(--c), 0.25), inset 0 0 6px rgba(0, 0, 0, 0.9);
}
.tz-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; opacity: 0; background: linear-gradient(90deg, transparent, rgba(var(--c), 0.55), rgba(255, 255, 255, 0.6), transparent); transform: translateX(-120%); }

.tz-seam { /* bright 60-degree seam */
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  clip-path: polygon(calc(50% + var(--dx) - 1.5px) 0, calc(50% + var(--dx) + 1.5px) 0, calc(50% - var(--dx) + 1.5px) 100%, calc(50% - var(--dx) - 1.5px) 100%);
  background: linear-gradient(180deg, #fff, #9fe9f5);
}
.tz-embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tz-spark { position: absolute; bottom: 14%; width: 3px; height: 3px; border-radius: 50%; opacity: 0.55; background: rgb(79, 179, 255); box-shadow: 0 0 6px 1px rgba(79, 179, 255, 0.9); }
.tz-spark-r { background: rgb(255, 107, 107); box-shadow: 0 0 6px 1px rgba(255, 107, 107, 0.9); }
.tz-spark.s1 { left: 8%; bottom: 22%; } .tz-spark.s2 { left: 19%; bottom: 62%; } .tz-spark.s3 { left: 30%; bottom: 30%; } .tz-spark.s4 { left: 38%; bottom: 70%; }
.tz-spark.s5 { left: 62%; bottom: 66%; } .tz-spark.s6 { left: 71%; bottom: 26%; } .tz-spark.s7 { left: 82%; bottom: 58%; } .tz-spark.s8 { left: 92%; bottom: 34%; }

/* Angled HUD corner brackets at the outer corners */
.tz-hudset { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.tz-hud {
  position: absolute; width: 24px; height: 24px; background: rgb(79, 179, 255); filter: drop-shadow(0 0 4px rgba(79, 179, 255, 0.9));
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 2px, 2px 2px, 2px calc(100% - 5px), 0 100%);
}
.tz-hud-tl { top: 8px; left: 8px; }
.tz-hud-bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.tz-hud-tr { top: 8px; right: 8px; transform: scaleX(-1); background: rgb(255, 107, 107); filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.9)); }
.tz-hud-br { bottom: 8px; right: 8px; transform: scale(-1, -1); background: rgb(255, 107, 107); filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.9)); }

/* VS: a dark glass disc on the seam, ringed blue -> neutral -> red (same blue and red as the halves) */
.tz-vs {
  position: absolute; left: 50%; top: 50%; z-index: 5; isolation: isolate; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--head-font); font-size: 2rem; font-weight: 700; letter-spacing: 0.03em; color: #e8ecf2; text-shadow: 0 0 8px rgba(170, 195, 225, 0.35);
  background: linear-gradient(90deg, #4fb3ff, #aeb6c6 50%, #ff6b6b);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.55), 0 0 16px rgba(150, 165, 200, 0.14);
}
.tz-vs::before { /* glass face: near-black navy, faint top highlight */
  content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 46%), radial-gradient(circle at 50% 30%, #131c30, #060a14 80%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -6px 10px rgba(0, 0, 0, 0.5);
}
.tz-vs::after { /* very faint thin ring (static hint when motion is off) */
  content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: 50%; border: 1px solid rgba(190, 210, 235, 0.5); opacity: 0.12; transform: scale(1.3);
}
.next-duel .teaser-line {
  text-align: center; font-family: var(--head-font); font-size: clamp(1.15rem, 5.2vw, 1.7rem); font-weight: 700; letter-spacing: 0.2em; line-height: 1.2;
  text-transform: uppercase; color: #dff6f8; text-shadow: 0 0 18px rgba(25, 211, 197, 0.35);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .next-duel .teaser-line {
    background: linear-gradient(100deg, #bfe8ee 0 38%, #fff 50%, #bfe8ee 62% 100%) 0 0 / 100% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none;
  }
}

@media (max-width: 719px) {
  .next-duel .players-teaser { --h: 212px; --t: 90px; }
  .tz-bar { height: 12px; }
  .tz-vs { width: 54px; height: 54px; font-size: 1.4rem; }
  .tz-hud { width: 17px; height: 17px; clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 2px, 2px 2px, 2px calc(100% - 4px), 0 100%); }
  .tz-hud-tl, .tz-hud-tr { top: 6px; } .tz-hud-bl, .tz-hud-br { bottom: 6px; }
  .tz-hud-tl, .tz-hud-bl { left: 6px; } .tz-hud-tr, .tz-hud-br { right: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .players-teaser::after { animation: tz-sweep 8s ease-in-out infinite; }
  .tz-tile { animation: tz-float 6s ease-in-out infinite; }
  .tz-refl { animation: tz-float-r 6s ease-in-out infinite; }
  .tz-right .tz-tile, .tz-right .tz-refl { animation-delay: -3s; }
  .tz-floor { animation: tz-floor 6s ease-in-out infinite; }
  .tz-vs { animation: tz-breathe 4.5s ease-in-out infinite; }
  .players-teaser::before { animation: tz-halo 4.5s ease-in-out infinite; }
  .tz-vs::after { animation: tz-ring 7s ease-out infinite; }
  .tz-spark { animation: tz-drift 6s ease-in-out infinite; }
  .tz-spark.s2, .tz-spark.s6 { animation-delay: -1.5s; } .tz-spark.s3, .tz-spark.s7 { animation-delay: -3s; } .tz-spark.s4, .tz-spark.s8 { animation-delay: -4.5s; }
  .tz-bar::after { animation: tz-glitch 7s linear infinite; }
  .tz-right .tz-bar::after { animation-delay: 0.25s; }
  .tz-q { animation: tz-q 5s ease-in-out infinite; }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .next-duel .teaser-line { background-size: 250% 100%; background-repeat: repeat-x; background-position: 120% 0; animation: pm-shimmer 6s ease-in-out infinite; }
  }
  @keyframes tz-sweep { 0% { transform: translateX(-130%) skewX(-24deg); } 60%, 100% { transform: translateX(480%) skewX(-24deg); } }
  @keyframes tz-float { 0%, 100% { transform: var(--tilt) translateY(0); } 50% { transform: var(--tilt) translateY(-4px); } }
  @keyframes tz-float-r { 0%, 100% { transform: scaleY(-1) var(--tilt) translateY(0); } 50% { transform: scaleY(-1) var(--tilt) translateY(-4px); } }
  @keyframes tz-floor { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
  @keyframes tz-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.04); } }
  @keyframes tz-halo { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
  @keyframes tz-ring { 0% { opacity: 0; transform: scale(1); } 4% { opacity: 0.25; } 48%, 100% { opacity: 0; transform: scale(1.9); } }
  @keyframes tz-drift { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-70px); } }
  @keyframes tz-glitch { 0%, 86% { opacity: 0; transform: translateX(-120%); } 88% { opacity: 1; } 95% { opacity: 1; transform: translateX(300%); } 96%, 100% { opacity: 0; transform: translateX(300%); } }
  @keyframes tz-q { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }
  @keyframes pm-shimmer { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }
}
/* ===== Hero subscribe button ===== */
.btn-subscribe { box-shadow: 0 0 22px rgba(6, 182, 212, 0.35); }

/* ===== Commentators: bio cards (photo, name, role tag, bio; social icon top-right) ===== */
.commentator-text { min-width: 0; }
.commentator { position: relative; padding: 26px 22px 24px; }
.commentator h3 { font-size: 1.55rem; line-height: 1.1; margin: 0 0 10px; color: #fff; }
.commentator .role { margin: 0 0 14px; }
.commentator .role-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(25, 211, 197, 0.12); border: 1px solid rgba(25, 211, 197, 0.5);
  font-family: var(--body-font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase;
  color: var(--accent);
}
.commentator .role-time {
  display: block; margin-top: 7px; white-space: nowrap; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; line-height: 1.3;
  text-transform: uppercase; color: var(--muted);
}
.commentator-featured { border-color: rgba(25, 211, 197, 0.55); box-shadow: inset 0 3px 0 var(--accent), 0 0 30px rgba(25, 211, 197, 0.16); }
.commentator-featured .role-tag { background: rgba(25, 211, 197, 0.18); border-color: rgba(25, 211, 197, 0.7); }
.commentator .bio { margin: 0; font-size: 0.9rem; line-height: 1.65; color: var(--muted); cursor: default; }

/* Photo: gradient ring (drawn over the image so face crops can zoom freely), same for the initials placeholder */
.commentator .avatar { width: 128px; height: 128px; border: 0; background: none; box-shadow: 0 0 26px rgba(25, 211, 197, 0.3), 0 6px 18px rgba(0, 0, 0, 0.4); }
.commentator .avatar::before {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem;
  background: radial-gradient(circle at 30% 25%, rgba(25, 211, 197, 0.38), #0b1626 72%);
}
.commentator .avatar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, rgba(25, 211, 197, 0.35));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.commentator .avatar img { object-fit: cover; }
/* Face-centred crops (nearly square photos: zoom about the face, nudge it to the middle) */
.commentator .avatar img[src*="excel"] { transform-origin: 48% 36%; transform: translate(2%, 8%) scale(1.25); }
.commentator .avatar img[src*="kareem"] { transform-origin: 50% 40%; transform: translate(0, 8%) scale(1.25); }

/* Social: compact circular icon, top-right (not a text button) */
.social-icon {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--accent); background: rgba(25, 211, 197, 0.08); border: 1px solid rgba(25, 211, 197, 0.45); text-decoration: none;
}
.social-icon .ic { width: 1.15rem; height: 1.15rem; margin: 0; vertical-align: 0; }
.social-icon:hover { background: rgba(25, 211, 197, 0.2); border-color: var(--accent); color: #fff; }
.social-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 720px) {
  .commentators { row-gap: 0; }
  @supports (grid-template-rows: subgrid) {
    /* names, role tags and bios line up across the three cards */
    .commentator { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; justify-items: center; align-items: start; }
    .commentator .avatar { margin-bottom: 16px; }
    .commentator-text { display: contents; }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .commentator { transition: transform 0.2s ease, border-color 0.2s ease; }
  .commentator:hover { transform: translateY(-3px); border-color: rgba(25, 211, 197, 0.7); }
}

/* Phones: compact horizontal cards (photo left, text right, icon top-right) */
@media (max-width: 719px) {
  .commentator { flex-direction: row; align-items: flex-start; text-align: left; gap: 14px; padding: 14px; }
  .commentator .avatar { width: 72px; height: 72px; }
  .commentator .avatar::before { font-size: 1.5rem; }
  .commentator-text { flex: 1; }
  .commentator h3 { font-size: 1.2rem; margin-bottom: 6px; padding-right: 40px; }
  .commentator .role { margin-bottom: 8px; }
  .commentator .role-tag { padding: 3px 9px; font-size: 0.62rem; letter-spacing: 0.1em; }
  .commentator .role-time { margin-top: 5px; font-size: 0.6rem; letter-spacing: 0.12em; }
  .commentator .bio { font-size: 0.8125rem; line-height: 1.55; }
  .social-icon { top: 8px; right: 8px; width: 44px; height: 44px; }
}
/* Telestrator: icons */
.ts-panel .eyebrow .ic { flex: none; width: 1em; height: 1em; margin-right: 0.5em; }
.ts-feature h4 { display: flex; align-items: center; gap: 0.6em; }
.ts-feature h4 .ic {
  flex: none; width: 2rem; height: 2rem; margin: 0; padding: 6px; border-radius: 8px; vertical-align: 0;
  color: var(--accent); background: var(--info-bg); border: 1px solid rgba(25, 211, 197, 0.4);
}
@media (max-width: 719px) { .ts-feature h4 .ic { width: 1.7rem; height: 1.7rem; padding: 5px; } }
/* ===== About the stream: match flow, Where-to-watch banner, tile watermarks ===== */
#about { overflow-x: clip; }
/* Four-step match flow: Scrabble-style tiles joined by thin teal connectors */
.match-flow { --gap: 26px; --tile: 72px; list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.flow-step { position: relative; padding: 0 2px; text-align: center; }
.flow-tile {
  position: relative; display: grid; place-items: center; width: var(--tile); height: var(--tile); margin: 0 auto 12px; border-radius: 12px;
  background: linear-gradient(145deg, #162640, #0a1424 85%); border: 2px solid var(--accent);
  box-shadow: 0 5px 0 rgba(25, 211, 197, 0.28), 0 0 22px rgba(25, 211, 197, 0.2), inset 0 0 14px rgba(25, 211, 197, 0.12); color: var(--accent);
}
.flow-tile .ic { width: 2.1rem; height: 2.1rem; margin: 0; vertical-align: 0; }
.flow-num { position: absolute; right: 7px; bottom: 4px; font-family: var(--head-font); font-size: 0.95rem; font-weight: 700; line-height: 1; color: rgba(25, 211, 197, 0.85); }
.flow-step h4 { margin: 0 0 12px; font-family: var(--head-font); font-size: 1.55rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.flow-step p { margin: 0; font-size: 15px; line-height: 1.5; color: #9fb2c8; }
/* connector: line + arrowhead from this tile to the next */
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: calc(var(--tile) / 2 - 1px); left: calc(50% + var(--tile) / 2 + 10px); width: calc(100% + var(--gap) - var(--tile) - 26px); height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent) -60% 0 / 40% 100% no-repeat, rgba(25, 211, 197, 0.45);
}
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; top: calc(var(--tile) / 2 - 5px); left: calc(150% + var(--gap) - var(--tile) / 2 - 16px); width: 0; height: 0;
  border-left: 8px solid rgba(25, 211, 197, 0.8); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .flow-step:not(:last-child)::after { animation: flow-glint 7s ease-in-out infinite; }
  .flow-step:nth-child(2)::after { animation-delay: 0.7s; }
  .flow-step:nth-child(3)::after { animation-delay: 1.4s; }
  @keyframes flow-glint { 0% { background-position: -60% 0, 0 0; } 30%, 100% { background-position: 160% 0, 0 0; } }
  @keyframes flow-glint-v { 0% { background-position: 0 -60%, 0 0; } 30%, 100% { background-position: 0 160%, 0 0; } }
}
@media (max-width: 600px) {
  .match-flow { --gap: 26px; --tile: 64px; grid-template-columns: minmax(0, 1fr); }
  .flow-step { display: grid; grid-template-columns: var(--tile) minmax(0, 1fr); column-gap: 14px; align-items: start; text-align: left; padding: 0; }
  .flow-tile { grid-row: 1 / span 3; margin: 0; }
  .flow-tile .ic { width: 1.8rem; height: 1.8rem; }
  .flow-step h4 { margin: 2px 0 4px; font-size: 1.3rem; }
  .flow-step p { font-size: 0.9375rem; }
  .flow-art { justify-content: flex-start; margin-bottom: 8px; }
  .flow-step:not(:last-child)::after {
    top: calc(var(--tile) + 6px); left: calc(var(--tile) / 2 - 1px); width: 2px; height: calc(100% - var(--tile) - 6px + var(--gap) - 14px);
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.85), transparent) 0 -60% / 100% 40% no-repeat, rgba(25, 211, 197, 0.45);
  }
  .flow-step:not(:last-child)::before {
    top: calc(100% + var(--gap) - 20px); left: calc(var(--tile) / 2 - 6px); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid rgba(25, 211, 197, 0.8); border-bottom: 0;
  }
  @media (prefers-reduced-motion: no-preference) { .flow-step:not(:last-child)::after { animation-name: flow-glint-v; } }
}

/* Micro-illustrations (decorative; same height in every step) */
.flow-art { display: flex; align-items: center; justify-content: center; height: 62px; margin: 0 0 10px; }
@media (max-width: 600px) { .flow-art { justify-content: flex-start; height: 56px; margin-bottom: 8px; } }
.mini-tiles { position: relative; display: inline-flex; gap: 4px; }
.mt {
  position: relative; display: inline-grid; place-items: center; width: 28px; height: 30px; border-radius: 5px;
  font-family: var(--head-font); font-size: 1.1rem; font-weight: 700; line-height: 1; color: var(--accent);
  background: linear-gradient(145deg, #162640, #0a1424 85%); border: 1px solid rgba(25, 211, 197, 0.7); box-shadow: 0 2px 0 rgba(25, 211, 197, 0.25);
}
.mt sub { position: absolute; right: 2px; bottom: 1px; font-size: 0.5rem; line-height: 1; color: rgba(25, 211, 197, 0.85); vertical-align: baseline; }
.mini-call { margin-top: 16px; }
.mini-q {
  position: absolute; left: 50%; top: -17px; transform: translateX(-50%); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-family: var(--head-font); font-size: 0.95rem; font-weight: 700; line-height: 1; color: #04121a; background: var(--accent); box-shadow: 0 0 12px rgba(25, 211, 197, 0.85);
}
.mini-clock { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.mini-clock b { font-family: var(--head-font); font-size: 1.55rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1; color: #fff; }
.mini-clock em { font-family: var(--head-font); font-size: 1rem; font-style: normal; font-weight: 700; letter-spacing: 0.08em; line-height: 1; color: var(--warn); }
.mini-pips { display: inline-flex; gap: 7px; }
.mini-pips i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(25, 211, 197, 0.5); }
.mini-pips i.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px rgba(25, 211, 197, 0.6); }
@media (prefers-reduced-motion: no-preference) {
  .mini-clock em { animation: mini-ot 3.2s ease-in-out infinite; }
  .mini-q { animation: mini-bob 4s ease-in-out infinite; }
  @keyframes mini-ot { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
  @keyframes mini-bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-3px); } }
}

/* "Where to watch": follow-the-stream panel */
.follow-panel { margin-top: 18px; }
.follow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: stretch; margin-top: 12px; }
.channel-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 14px; padding: 16px;
  border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(25, 211, 197, 0.14), rgba(25, 211, 197, 0.03) 60%), var(--card);
}
.channel-logo { display: block; width: 64px; height: 64px; border-radius: 12px; }
.channel-meta { display: flex; flex-direction: column; min-width: 0; }
.channel-name { font-family: var(--head-font); font-size: 1.5rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; color: #fff; }
.channel-handle { color: var(--muted); }
.channel-sub { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 0; padding: 0 18px; font-size: 1rem; white-space: nowrap; }
.channel-open { grid-column: 1 / -1; display: inline-flex; align-items: center; min-height: 44px; margin-top: -6px; color: var(--accent); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.channel-open:hover { color: #fff; }
.follow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: center; }
.follow-steps li { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.fs-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--accent); background: var(--info-bg); border: 1px solid rgba(25, 211, 197, 0.4); }
.fs-ic .ic { width: 1.2rem; height: 1.2rem; margin: 0; vertical-align: 0; }
.fs-text { display: flex; flex-direction: column; color: var(--text); font-weight: 500; }
.fs-text a { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; font-size: 0.85rem; font-weight: 400; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fs-text a:hover { color: #fff; }
@media (max-width: 719px) { .follow-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .channel-card { padding: 12px; }
  .channel-logo { width: 52px; height: 52px; }
  .channel-name { font-size: 1.25rem; }
  .channel-sub { justify-self: stretch; justify-content: center; }
}
/* Decorative Scrabble tile watermarks: always whole (never clipped), kept off the text where there is room */
#about .wrap { position: relative; isolation: isolate; }
.tile-wms { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tile-wm {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 9px; opacity: 0.07;
  border: 2px solid var(--accent); background: rgba(25, 211, 197, 0.35); color: var(--accent);
}
.tile-wm b { font-family: var(--head-font); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.tile-wm i { position: absolute; right: 5px; bottom: 2px; font-family: var(--head-font); font-size: 0.8rem; font-style: normal; font-weight: 700; line-height: 1; }
.tile-wm-q { top: 2px; right: 6px; transform: rotate(10deg); }
.tile-wm-w { top: 6px; right: 66px; transform: rotate(-8deg); }
.tile-wm-z, .tile-wm-p { display: none; }
@media (min-width: 1200px) {
  /* four tiles down the empty right margin */
  .tile-wm { width: 72px; height: 72px; border-radius: 12px; border-width: 3px; }
  .tile-wm b { font-size: 3rem; }
  .tile-wm i { right: 7px; bottom: 3px; font-size: 1.1rem; }
  .tile-wm-z, .tile-wm-p { display: grid; }
  .tile-wm-q { top: 40px; left: calc(100% + 12px); right: auto; }
  .tile-wm-z { top: 24%; left: calc(100% + 18px); transform: rotate(-9deg); }
  .tile-wm-w { top: 50%; left: calc(100% + 10px); right: auto; transform: rotate(7deg); }
  .tile-wm-p { top: 76%; left: calc(100% + 18px); transform: rotate(-11deg); }
}
@media (max-width: 600px) {
  .tile-wm { width: 40px; height: 40px; }
  .tile-wm b { font-size: 1.6rem; }
  .tile-wm i { font-size: 0.65rem; right: 4px; bottom: 2px; }
  .tile-wm-w { right: 52px; }
}
/* ===== Header: one size scale. Links 15px/500; Subscribe (the only solid element) and the outlined "For players" pill 14px/600, 35px tall ===== */
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.brand img { height: 30px; } /* wordmark +15% (was 26px); phones below */
.nav a { color: #b9c8da; }
.nav a.nav-sub, .nav a.nav-pill {
  position: relative; align-self: center; display: inline-flex; align-items: center; justify-content: center;
  margin-left: 6px; padding: 4px 13px; border-bottom: 0; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap;
}
.nav a.nav-sub::after, .nav a.nav-pill::after { display: none; }
.nav a.nav-sub { background: var(--accent); border: 1px solid var(--accent); color: #04121a; }
.nav a.nav-sub:hover, .nav a.nav-sub:focus-visible { color: #04121a; filter: brightness(1.1); }
.nav a.nav-pill { background: transparent; border: 1px solid rgba(25, 211, 197, 0.6); color: var(--accent); }
.nav a.nav-pill:hover, .nav a.nav-pill:focus-visible { background: rgba(25, 211, 197, 0.1); border-color: var(--accent); color: var(--accent); }
.nav a.nav-pill.is-active { background: rgba(25, 211, 197, 0.14); color: var(--accent); }
.nav a.nav-pill::before { content: ""; position: absolute; inset: -9px -3px; } /* larger tap area than the small pill */

@media (min-width: 720px) {
  .topbar .wrap { height: 64px; }
  .brand { min-height: 0; height: 100%; }
  .nav { align-items: center; gap: 0; padding-right: 0; }
  .nav a { margin-left: 24px; padding: 6px 0; border-bottom: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: #b9c8da; }
  .nav a:first-child { margin-left: 0; }
  .nav a::after { left: 0; right: 0; bottom: 0; }
  .nav a:hover, .nav a:focus-visible, .nav a.is-active { color: #fff; }
  .nav a.nav-sub, .nav a.nav-pill { height: 35px; padding: 0 16px; font-size: 14px; font-weight: 600; line-height: 1; }
  .nav a.nav-sub { margin-left: 20px; color: #04121a; }
  .nav a.nav-pill { margin-left: 10px; color: var(--accent); }
  .nav a.nav-sub:hover, .nav a.nav-sub:focus-visible { color: #04121a; }
  .nav a.nav-pill:hover, .nav a.nav-pill:focus-visible, .nav a.nav-pill.is-active { color: var(--accent); }
}

/* Phones keep the previous behaviour: compact single row, 44px tap targets, Subscribe hidden at 600px and below */
@media (max-width: 719px) {
  .brand { min-height: 50px; }
  .brand img { height: 17px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding-top: 0; padding-bottom: 0; }
  .nav a.nav-pill { min-height: 0; font-size: 0.75rem; padding: 3px 10px; margin-left: 2px; }
}
@media (max-width: 600px) { .nav a.nav-sub { display: none; } }
@media (max-width: 379px) { .brand img { height: 14.5px; } .nav a.nav-pill { font-size: 0.7rem; padding: 3px 8px; } }

/* ===== Footer: thanks line, contact cards, legal row ===== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-rule { height: 1px; margin: 26px 0; border: 0; background: var(--line); opacity: 0.6; }
.footer-thanks { text-align: center; }
.ft-label { margin: 0 0 4px; font-family: var(--head-font); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.ft-line { margin: 0 0 6px; font-size: 0.85rem; color: var(--muted); }
.ft-names { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; line-height: 1.7; color: var(--muted); }
.ft-names li { display: inline; white-space: nowrap; }
.ft-names li:not(:last-child)::after { content: "\00B7"; margin: 0 0.7em; opacity: 0.55; }

.contact-cards { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.contact-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.contact-card.is-static { cursor: default; }
.contact-card.copy-ready { cursor: pointer; }
.contact-card:hover, .contact-card:focus-visible { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.contact-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc-top { display: flex; align-items: center; gap: 10px; }
.contact-card .ci { flex: none; width: 1.8rem; height: 1.8rem; color: var(--accent); }
.cc-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cc-handle { font-weight: 600; font-size: 1rem; color: #fff; overflow-wrap: anywhere; }
.cc-action { display: none; align-items: center; gap: 6px; min-height: 28px; margin-top: auto; padding-top: 6px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.cc-action.cc-action-on { display: inline-flex; }
.cc-action .ic { flex: none; width: 1rem; height: 1rem; margin: 0; vertical-align: 0; }

.legal-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: center; }
.legal-left { display: flex; align-items: center; gap: 12px; }
.legal-left img { display: block; flex: none; width: 40px; height: 40px; }
.legal-text p { margin: 0; }
.legal-copy { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.legal-note { margin-top: 2px !important; font-size: 0.85rem; }
.credit-box { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(25, 211, 197, 0.04); }
.credit-label { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 4px; border: 1px solid rgba(25, 211, 197, 0.45); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.credit-text { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.credit-text a { color: var(--accent); }
.credit-text a::after { content: "\2197"; margin-left: 0.2em; font-size: 0.85em; }

@media (max-width: 719px) {
  .contact-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .contact-card { min-height: 44px; padding: 14px; }
  .cc-action { min-height: 44px; margin-top: 0; }
  .legal-row { grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; text-align: center; }
  .legal-left { flex-direction: column; gap: 8px; }
  .credit-box { text-align: center; }
  .footer-rule { margin: 20px 0; }
}
@media (prefers-reduced-motion: reduce) { .contact-card:hover, .contact-card:focus-visible { transform: none; } }
/* ===== Footer: compact pass (sizes, spacing and layout only) ===== */
footer { margin-top: 28px; padding: 14px 0 16px; }
footer h2 { margin: 0 0 6px; font-size: 1.08rem; line-height: 1.2; }
.footer-rule { margin: 12px 0; }
.ft-label { margin: 0 0 2px; font-size: 0.72rem; }
.ft-line { margin: 0 0 3px; font-size: 13px; line-height: 1.4; }
.ft-names { font-size: 13px; line-height: 1.45; }
.ft-names li:not(:last-child)::after { margin: 0 0.55em; }

/* contact cards: one compact row each (icon | label over handle | action) */
.contact-cards { gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 7px; row-gap: 0;
  min-height: 62px; padding: 12px 10px 12px 12px;
}
.cc-top { display: contents; }
.contact-card .ci { grid-column: 1; grid-row: 1 / span 2; width: 1.3rem; height: 1.3rem; }
.cc-label { grid-column: 2; grid-row: 1; align-self: end; font-size: 0.65rem; line-height: 1.2; }
.cc-handle { grid-column: 2; grid-row: 2; align-self: start; font-size: 15px; font-weight: 500; line-height: 1.3; overflow-wrap: normal; }
.cc-action { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; padding: 0; min-height: 0; font-size: 0.72rem; gap: 3px; white-space: nowrap; }

/* legal row */
.legal-row { gap: 16px; }
.legal-left { gap: 10px; }
.legal-left img { width: 28px; height: 28px; }
.legal-copy { font-size: 13px; line-height: 1.35; }
.legal-note { margin-top: 0 !important; font-size: 13px; line-height: 1.35; }
.credit-box { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; }
.credit-label { flex: none; margin: 1px 0 0; padding: 0 7px; font-size: 0.65rem; line-height: 1.6; }
.credit-text { font-size: 12.5px; line-height: 1.4; }

@media (max-width: 719px) {
  footer { margin-top: 22px; padding: 14px 0 16px; }
  .footer-rule { margin: 12px 0; }
  .contact-cards { gap: 8px; }
  .contact-card { min-height: 56px; padding: 10px 14px; }
  .legal-row { gap: 10px; }
  .legal-left { flex-direction: row; gap: 10px; text-align: left; }
  .credit-box { text-align: left; }
}
/* ===== Install area: "What the extension does" explainer ===== */
.ext-explainer { margin-bottom: 22px; }
.ext-intro { margin: 0 0 4px; font-size: 0.95rem; line-height: 1.55; color: var(--text); }
.ext-flow { --gap: 26px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 6px; }
.ext-flow .flow-step h4 { margin: 0; font-size: 1.2rem; }
.ext-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ext-cols > div { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); }
.ext-cols h4 { margin: 0 0 4px; font-family: var(--head-font); font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.ext-cols p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #9fb2c8; }
.ext-ready { margin: 14px 0 0; font-weight: 600; }
.ext-ready a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 719px) {
  .ext-cols { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 600px) {
  .ext-flow { --gap: 22px; grid-template-columns: minmax(0, 1fr); margin: 12px 0 2px; }
  .ext-flow .flow-step { align-items: center; }
  .ext-flow .flow-tile { grid-row: auto; }
  .ext-flow .flow-step h4 { font-size: 1.1rem; }
  .ext-ready a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* ===== Apply to play: "What to send" tiles, actions and a 3-step "What happens next" flow ===== */
.apply-panel { border-top: 2px solid var(--accent); }
.apply-panel h3 { margin-bottom: 8px; }
.apply-grid { gap: 8px; margin: 4px 0 0; }
.apply-grid li { gap: 10px; padding: 7px 10px; }
.ap-tile {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--accent);
  background: linear-gradient(145deg, #162640, #0a1424 85%); border: 2px solid var(--accent); box-shadow: 0 3px 0 rgba(25, 211, 197, 0.25), inset 0 0 10px rgba(25, 211, 197, 0.1);
}
.ap-tile .ic { width: 1.35rem; height: 1.35rem; margin: 0; vertical-align: 0; }
.apply-note { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.apply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; }
.apply-actions .btn { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 0 18px; font-size: 1rem; }
.apply-actions .btn-ghost { padding: 0 14px; font-size: 0.9rem; }
.apply-actions .btn .ic { margin-right: 0.4em; }
.apply-next-title { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.apply-flow { --gap: 24px; --tile: 48px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.apply-flow .flow-tile { margin-bottom: 8px; border-radius: 10px; }
.apply-flow .flow-tile .ic { width: 1.5rem; height: 1.5rem; }
.apply-flow .flow-step h4 { font-size: 1.2rem; margin-bottom: 4px; }
.apply-flow .flow-step p { font-size: 14px; }
@media (max-width: 719px) { .apply-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .apply-flow { --gap: 18px; --tile: 48px; grid-template-columns: minmax(0, 1fr); }
  .apply-flow .flow-step { grid-template-columns: var(--tile) minmax(0, 1fr); }
  .apply-flow .flow-step h4 { font-size: 1.15rem; }
  .apply-actions .btn { min-height: 44px; }
}