:root {
  --bg: #14101f;
  --bg-2: #1c1730;
  --card: #231c3a;
  --line: #372d57;
  --text: #ece8f7;
  --muted: #b3a9cf;
  --accent: #a970ff;
  --accent-2: #ffc857;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(169, 112, 255, .22), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, rgba(255, 200, 87, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent-2); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(20, 16, 31, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.die {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--accent); color: #14101f; font-size: .8rem; font-weight: 900;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.top nav { display: flex; gap: 18px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--text); text-decoration: none; font-weight: 700;
  transition: transform .12s ease, border-color .12s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #14101f; }
.btn-small { padding: 8px 14px; font-size: .9rem; }

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: -.02em; max-width: 14ch; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: 1.9rem; }
h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--accent); }
h3 { font-size: 1.15rem; }

.hero { padding: 88px 0 40px; }
.eyebrow { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin: 0 0 16px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { color: var(--muted); }

/* Player */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; margin-top: 24px; }
.player, .chat { background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.player { aspect-ratio: 16 / 9; position: relative; }
.player iframe, .chat iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; }
.chat:empty { display: none; }
.stage:has(.chat:empty) { grid-template-columns: 1fr; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }

/* Schedule */
.schedule { background: linear-gradient(135deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.schedule p { margin: 0 0 .6em; }
.schedule p:last-child { margin: 0; }
.when { font-size: 1.25rem; font-weight: 700; }
.big { font-size: 2.8rem; color: var(--accent-2); margin-right: 8px; }
.big small { font-size: 1.2rem; }

/* Rules */
.rules { padding-left: 1.3em; display: grid; gap: 10px; max-width: 70ch; }
.rules li::marker { color: var(--accent); font-weight: 800; }

/* Links */
.links { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.links a { display: block; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .12s ease, transform .12s ease; }
.links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.links strong { display: block; font-size: 1.1rem; }
.links span { color: var(--muted); font-size: .92rem; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 20px; text-align: center; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .chat { height: 420px; }
}
@media (max-width: 700px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  section { padding: 40px 0; }
  .hero { padding-top: 56px; }
}
