/* 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 cards ---------- */
.contact-cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 20px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; color: var(--text); text-decoration: none; min-width: 0;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
a.contact-card:hover, a.contact-card:focus-visible {
  border-color: var(--accent); color: var(--text); transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(25, 211, 197, 0.14);
}
.contact-card .ci { flex: none; width: 2.6rem; height: 2.6rem; color: var(--accent); }
.cc-text { display: flex; flex-direction: column; min-width: 0; }
.cc-name { font-family: var(--head-font); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.15rem; color: var(--muted); line-height: 1.2; }
.cc-handle { font-weight: 600; font-size: 0.95rem; color: #fff; overflow-wrap: anywhere; }
.contact-card.is-static { cursor: default; }

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

@media (min-width: 720px) {
  .contact-cards { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
}

: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;
}
.contact-item { position: relative; min-width: 0; display: flex; }
.contact-item > .contact-card { flex: 1; }
.has-copy .contact-card { padding-right: 64px; }
.copy-btn {
  position: absolute; right: 10px; top: 50%; width: 40px; height: 40px; margin-top: -20px; padding: 0;
  display: grid; place-items: center; cursor: pointer; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(25, 211, 197, 0.08); color: var(--accent);
}
.copy-btn:hover { border-color: var(--accent); background: rgba(25, 211, 197, 0.16); }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-btn .ic { width: 1.2rem; height: 1.2rem; vertical-align: 0; }
.copy-msg {
  position: absolute; right: 56px; top: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--accent); color: #04121a; font-size: 0.8rem; font-weight: 700; pointer-events: none;
}
.copy-msg:empty { display: none; }

/* 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, .contact-card: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; }

  .contact-cards { gap: 8px; }
  .contact-card { padding: 10px 12px; gap: 10px; }
  .contact-card .ci { width: 1.8rem; height: 1.8rem; }
  .cc-name { font-size: 0.85rem; }
  .cc-handle { font-size: 0.9rem; }
  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.4rem; height: 1.4rem; }
  .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; }
  .contact-cards { grid-template-columns: 1fr; }
  .countdown { font-size: 0.8rem; padding: 2px 10px; }
  .has-copy .contact-card { padding-right: 58px; }
  .copy-btn { right: 8px; }
  .copy-msg { right: 52px; }
}

/* ===================== 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: "\2022"; 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; } }
