/* Landing v8 — KICKOFF BROADCAST (pre-release) */
:root {
  --w8-bg: #070504;
  --w8-surface: #12100c;
  --w8-line: rgba(255, 255, 255, 0.09);
  --w8-text: #faf7f2;
  --w8-muted: #a8a29e;
  --w8-green: #4ade80;
  --w8-green-dim: rgba(74, 222, 128, 0.28);
  --w8-gold: #fbbf24;
  --w8-gold-dim: rgba(251, 191, 36, 0.35);
  --w8-red: #ef4444;
  --w8-font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --w8-display: "Oswald", "Segoe UI", sans-serif;
  --w8-mega: "Bebas Neue", "Oswald", sans-serif;
  --w8-mono: "JetBrains Mono", ui-monospace, monospace;
}

html.page-wmm8 {
  scroll-behavior: smooth;
  background: var(--w8-bg) !important;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(251, 191, 36, 0.09), transparent),
    radial-gradient(ellipse 50% 40% at 100% 60%, rgba(74, 222, 128, 0.05), transparent) !important;
  background-size: 100% 100% !important;
}

html.theme-cyber.page-wmm8 body.manualfc-body.page-home::before {
  opacity: 0.32;
}

body.page-wmm8 {
  margin: 0;
  color: var(--w8-text);
  font-family: var(--w8-font);
}

body.page-wmm8::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.35;
}

.w8 {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 88px;
}

.w8-kicker,
.w8-tag {
  display: inline-block;
  margin: 0 0 10px;
  font-family: var(--w8-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w8-gold);
}

/* Signal boot */
.w8-signal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.w8-signal.w8-signal--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.w8-signal-inner {
  width: min(92vw, 420px);
  padding: 28px 24px;
  border: 1px solid var(--w8-gold-dim);
  background: rgba(12, 8, 4, 0.94);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.1);
}

.w8-signal-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--w8-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--w8-red);
}

.w8-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--w8-red);
  animation: w8-pulse 1.2s ease infinite;
}

@keyframes w8-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.w8-signal-line {
  margin: 0 0 10px;
  font-family: var(--w8-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--w8-gold);
}

.w8-signal-bar {
  height: 3px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.w8-signal-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--w8-gold), var(--w8-green));
  transition: width 0.35s ease;
}

.w8-signal-log {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  min-height: 100px;
  font-family: var(--w8-mono);
  font-size: 0.65rem;
  line-height: 1.85;
  letter-spacing: 0.05em;
}

.w8-signal-log .ok { color: var(--w8-green); }
.w8-signal-log .warn { color: var(--w8-gold); }

.w8-signal-skip {
  display: none;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--w8-gold-dim);
  background: transparent;
  color: var(--w8-gold);
  font-family: var(--w8-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.w8-signal-skip.is-visible { display: block; }

/* Top broadcast bar */
.w8-broadcast-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid var(--w8-line);
  font-family: var(--w8-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.w8-bb-live { color: var(--w8-red); font-weight: 700; }
.w8-bb-title { flex: 1; color: var(--w8-gold); }
.w8-bb-viewers { color: var(--w8-muted); }

/* Hero */
.w8-hero {
  padding: 24px 0 40px;
}

.w8-hero-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid var(--w8-gold-dim);
  font-family: var(--w8-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--w8-gold);
  background: rgba(251, 191, 36, 0.06);
}

.w8-title {
  margin: 0 0 14px;
  line-height: 0.95;
}

.w8-title-pre {
  display: block;
  font-family: var(--w8-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--w8-muted);
}

.w8-title-main {
  display: block;
  font-family: var(--w8-mega);
  font-size: clamp(3.2rem, 14vw, 5.5rem);
  letter-spacing: 0.02em;
  color: var(--w8-gold);
  text-shadow: 0 0 40px rgba(251, 191, 36, 0.25);
}

.w8-lead {
  margin: 0 0 20px;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #d6d3d1;
}

.w8-lead strong { color: var(--w8-text); }

/* Scorebug */
.w8-scorebug {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--w8-line);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
}

.w8-scorebug-team { display: flex; flex-direction: column; gap: 2px; }
.w8-scorebug-team--away { text-align: right; }

.w8-scorebug-name {
  font-family: var(--w8-mega);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.w8-scorebug-team--home .w8-scorebug-name { color: var(--w8-green); }
.w8-scorebug-team--away .w8-scorebug-name { color: var(--w8-red); }

.w8-scorebug-meta {
  font-family: var(--w8-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--w8-muted);
}

.w8-scorebug-mid { text-align: center; }

.w8-scorebug-clock {
  display: block;
  font-family: var(--w8-mono);
  font-size: 0.65rem;
  color: var(--w8-muted);
}

.w8-scorebug-score {
  display: block;
  font-family: var(--w8-mega);
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.w8-scorebug-phase {
  display: block;
  font-family: var(--w8-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--w8-gold);
}

/* Stage / pitch */
.w8-stage {
  position: relative;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.w8-pitch {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0b4d22;
}

.w8-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.w8-hud-tag {
  padding: 3px 8px;
  font-family: var(--w8-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--w8-green-dim);
  color: var(--w8-green);
}

.w8-hud-msg {
  margin: 0;
  flex: 1;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.w8-lower-third {
  position: absolute;
  bottom: 12px;
  left: 12px;
  max-width: min(90%, 340px);
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.92), rgba(251, 191, 36, 0.75));
  color: #1a1204;
  border-left: 4px solid var(--w8-red);
  animation: w8-l3-in 0.4s ease;
}

@keyframes w8-l3-in {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.w8-l3-role {
  display: block;
  font-family: var(--w8-mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.w8-l3-text {
  display: block;
  font-family: var(--w8-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Ticker */
.w8-ticker {
  overflow: hidden;
  margin-bottom: 20px;
  padding: 8px 0;
  border-block: 1px solid var(--w8-line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.w8-ticker-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: w8-ticker 28s linear infinite;
  font-family: var(--w8-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--w8-gold);
}

@keyframes w8-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Buttons */
.w8-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.w8-hero-actions--center { justify-content: center; }

.w8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--w8-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.w8-btn--gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1a1204;
  border: none;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
}

.w8-btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(251, 191, 36, 0.35);
}

.w8-btn--line {
  border: 1px solid var(--w8-line);
  color: var(--w8-text);
  background: rgba(255, 255, 255, 0.03);
}

.w8-btn--xl { padding: 16px 32px; font-size: 1.05rem; }

/* Feed sidebar */
.w8-feed {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: min(220px, 28vw);
  max-height: 50vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.w8-feed-item {
  padding: 8px 10px;
  font-family: var(--w8-mono);
  font-size: 0.58rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.78);
  border-left: 2px solid var(--w8-gold);
  color: #d6d3d1;
  animation: w8-feed-in 0.35s ease;
}

.w8-feed-item strong { color: var(--w8-gold); }

@keyframes w8-feed-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .w8-feed { display: none; }
}

/* Blocks */
.w8-block {
  margin: 56px 0;
  padding-top: 8px;
}

.w8-block h2 {
  margin: 0 0 10px;
  font-family: var(--w8-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.w8-block-lead {
  margin: 0 0 24px;
  max-width: 56ch;
  color: var(--w8-muted);
  line-height: 1.6;
}

/* XI grid */
.w8-xi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.w8-xi-card {
  padding: 16px 14px;
  border: 1px solid var(--w8-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, transform 0.2s;
}

.w8-xi-card:hover {
  border-color: var(--w8-gold-dim);
  transform: translateY(-2px);
}

.w8-xi-num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--w8-mega);
  font-size: 1.8rem;
  color: var(--w8-gold);
  opacity: 0.7;
}

.w8-xi-card h3 {
  margin: 0 0 6px;
  font-family: var(--w8-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.w8-xi-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--w8-muted);
}

.w8-xi-card--cap {
  border-color: var(--w8-green-dim);
  background: rgba(74, 222, 128, 0.05);
}

.w8-xi-card--cap .w8-xi-num { color: var(--w8-green); opacity: 1; }

.w8-xi-card--bench {
  opacity: 0.55;
  border-style: dashed;
}

/* Duel */
.w8-duel-stage {
  position: relative;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--w8-line);
}

.w8-duel-pane {
  position: absolute;
  inset: 0;
  padding: 24px 20px;
}

.w8-duel-pane ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.w8-duel-pane li {
  margin: 8px 0;
  padding-left: 14px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.45;
}

.w8-duel-pane li::before {
  content: "—";
  position: absolute;
  left: 0;
  opacity: 0.5;
}

.w8-duel-pane--auto {
  background: linear-gradient(135deg, #1a0a0a, #120808);
  clip-path: inset(0 50% 0 0);
}

.w8-duel-pane--manual {
  background: linear-gradient(135deg, #061208, #0a180c);
  clip-path: inset(0 0 0 50%);
}

.w8-duel-badge {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--w8-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.w8-duel-badge--bad { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.w8-duel-badge--good { background: rgba(74, 222, 128, 0.2); color: var(--w8-green); }

.w8-duel-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.w8-duel-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: var(--w8-gold);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.6);
  z-index: 2;
  pointer-events: none;
}

.w8-duel-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--w8-gold);
  font-family: var(--w8-mono);
  font-size: 0.55rem;
  color: var(--w8-gold);
  white-space: nowrap;
}

/* Strike list */
.w8-strike-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.w8-strike {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--w8-line);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.w8-strike.w8-struck {
  opacity: 1;
  transform: translateX(0);
}

.w8-strike.w8-struck strong {
  text-decoration: line-through;
  text-decoration-color: var(--w8-red);
  color: var(--w8-muted);
}

.w8-strike strong {
  font-family: var(--w8-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--w8-text);
}

.w8-strike span {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--w8-muted);
  line-height: 1.45;
}

.w8-quote {
  margin: 0;
  font-family: var(--w8-mega);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  letter-spacing: 0.04em;
  color: var(--w8-green);
  text-align: center;
}

/* Highlights */
.w8-hl-track {
  position: relative;
  min-height: 120px;
}

.w8-hl {
  display: none;
  padding: 20px;
  border: 1px solid var(--w8-line);
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.04);
}

.w8-hl.is-active { display: block; animation: w8-hl-fade 0.35s ease; }

@keyframes w8-hl-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.w8-hl-min {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  font-family: var(--w8-mono);
  font-size: 0.65rem;
  background: var(--w8-red);
  color: #fff;
  border-radius: 3px;
}

.w8-hl h3 {
  margin: 0 0 8px;
  font-family: var(--w8-display);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.w8-hl p { margin: 0; color: var(--w8-muted); line-height: 1.55; }

.w8-hl-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--w8-mono);
  font-size: 0.72rem;
  color: var(--w8-muted);
}

.w8-hl-btn {
  padding: 8px 14px;
  border: 1px solid var(--w8-line);
  background: transparent;
  color: var(--w8-gold);
  cursor: pointer;
  border-radius: 6px;
}

/* Eco */
.w8-eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.w8-eco-card {
  display: block;
  padding: 16px 14px;
  border: 1px solid var(--w8-line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.w8-eco-card:hover {
  border-color: var(--w8-green-dim);
  background: rgba(74, 222, 128, 0.04);
}

.w8-eco-card span { font-size: 1.4rem; }
.w8-eco-card h3 {
  margin: 8px 0 4px;
  font-family: var(--w8-display);
  font-size: 0.95rem;
  text-transform: uppercase;
}
.w8-eco-card p { margin: 0; font-size: 0.78rem; color: var(--w8-muted); }

/* Finale */
.w8-finale {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid var(--w8-gold-dim);
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(251, 191, 36, 0.08), transparent 60%);
}

.w8-whistle {
  font-size: 2rem;
  color: var(--w8-gold);
  margin-bottom: 12px;
  animation: w8-pulse 1.5s ease infinite;
}

.w8-finale h2 {
  font-family: var(--w8-mega);
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--w8-gold);
}

.w8-finale > p {
  margin: 0 0 24px;
  color: var(--w8-muted);
}

.w8-contract {
  list-style: none;
  margin: 0 auto 28px;
  padding: 0;
  max-width: 360px;
  text-align: left;
}

.w8-contract li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.w8-contract li.w8-checked {
  opacity: 1;
  transform: translateY(0);
}

.w8-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--w8-green);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
}

.w8-checked .w8-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--w8-green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.w8-vision {
  margin: 24px 0 0;
  font-size: 0.82rem;
  color: var(--w8-muted);
  max-width: 48ch;
  margin-inline: auto;
  line-height: 1.55;
}

.w8-versions {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--w8-line);
  font-family: var(--w8-mono);
  font-size: 0.65rem;
  color: var(--w8-muted);
}

.w8-versions a {
  color: var(--w8-green);
  margin-inline: 6px;
  text-decoration: none;
}

.w8-versions a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .w8-ticker-track { animation: none; }
  .w8-live-dot, .w8-whistle { animation: none; }
}
