:root {
  --primary: #00ff9d;
  --primary-soft: rgba(0, 255, 157, 0.14);
  --secondary: #00d5ff;
  --dark: #060707;
  --dark-2: #0d1010;
  --gray: #151a1a;
  --card: rgba(16, 22, 22, 0.84);
  --text: #ffffff;
  --muted: #aeb8b5;
  --line: rgba(255,255,255,0.1);
  --shadow: 0 24px 70px rgba(0,0,0,0.45);
}

[data-theme="light"] {
  --dark: #eef7f3;
  --dark-2: #ffffff;
  --gray: #ffffff;
  --card: rgba(255,255,255,0.9);
  --text: #07100d;
  --muted: #43504b;
  --line: rgba(0,0,0,0.12);
  --shadow: 0 24px 70px rgba(0,0,0,0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 30% 10%, rgba(0,255,157,0.16), transparent 30%), var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

#neonCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: .8;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-loader {
  position: fixed;
  inset: 0;
  background: #030504;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  transition: opacity .5s ease, visibility .5s ease;
}
.site-loader.hide { opacity: 0; visibility: hidden; }
.loader-mark, .brand-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #00120b;
  font-weight: 1000;
  box-shadow: 0 0 30px var(--primary-soft);
}
.loader-mark { width: 76px; height: 76px; border-radius: 24px; animation: pulse 1.5s infinite; }

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem clamp(1rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 7, .75);
  backdrop-filter: blur(18px);
}
[data-theme="light"] .navbar { background: rgba(255,255,255,.72); }

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a {
  color: var(--muted);
  font-weight: 700;
  transition: .25s ease;
}
.nav-links a:hover { color: var(--primary); text-shadow: 0 0 16px var(--primary); }

.theme-switch, .mobile-toggle {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--card);
  cursor: pointer;
}
.theme-switch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.mobile-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  min-height: 100vh;
  padding: 9rem clamp(1rem, 5vw, 5rem) 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: center;
  gap: 2rem;
  position: relative;
}
.hero-bg-glow {
  position: absolute;
  inset: 10% 5% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,157,.23), transparent 64%);
  filter: blur(10px);
}

.hero-card, .status-panel, .stream-card, .chat-card, .updates-card, .schedule-card, .clip-card, .discord-card, .rules-card, .about-card, .contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 34px;
  max-width: 920px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 900;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff3158;
  box-shadow: 0 0 0 6px rgba(255,49,88,.14), 0 0 25px #ff3158;
}
h1 {
  font-size: clamp(3.6rem, 10vw, 8rem);
  line-height: .88;
  letter-spacing: -.08em;
  margin: 1rem 0;
  text-shadow: 0 0 40px var(--primary-soft);
}
h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.06em;
  margin: .4rem 0 1rem;
}
h3 { font-size: 1.45rem; }
.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}
.hero-actions, .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.7rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: .95rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #00120b;
  box-shadow: 0 0 30px var(--primary-soft);
}
.btn.ghost {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.btn.twitch { background: #9146ff; color: #fff; }
.btn.youtube { background: #ff0033; color: #fff; }
.btn.discord { background: #5865f2; color: #fff; }
.btn.small { padding: .75rem 1rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-top: 2rem;
}
.hero-stats div {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255,255,255,.035);
}
.hero-stats strong { display: block; color: var(--primary); font-size: 1.15rem; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.status-panel {
  border-radius: 30px;
  padding: 1.5rem;
}
.panel-top, .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.status-pill, .tag {
  display: inline-flex;
  border-radius: 999px;
  padding: .35rem .7rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 900;
}
.tag.purple { color: #b990ff; background: rgba(145,70,255,.15); }
.tag.red { color: #ff6680; background: rgba(255,0,51,.15); }
.tag.blue { color: #99a7ff; background: rgba(88,101,242,.15); }

.now-playing {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}
.now-playing i {
  color: var(--primary);
  font-size: 2rem;
}
.now-playing p, .section-heading p, .updates-card p, .clip-card p, .schedule-card p, .rules-card li, .about-card p {
  color: var(--muted);
}

.secret-trigger {
  width: 100%;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 18px;
  padding: 1rem;
  cursor: pointer;
  font-weight: 900;
}

.section {
  padding: 6.5rem clamp(1rem, 5vw, 5rem);
}
.dark-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.06));
  border-block: 1px solid var(--line);
}
.section-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
code {
  color: var(--primary);
  background: rgba(255,255,255,.06);
  padding: .15rem .35rem;
  border-radius: .4rem;
}

.media-grid, .discord-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  gap: 1.25rem;
  max-width: 1220px;
  margin: 0 auto;
}
.stream-card, .chat-card, .updates-card, .discord-card, .rules-card, .contact-form {
  border-radius: 28px;
  padding: 1.25rem;
}
.card-header i {
  font-size: 2rem;
  color: var(--primary);
}
.embed-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  margin-top: 1rem;
  background: #000;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
}
.embed-shell iframe, .discord-widget iframe {
  width: 100%;
  height: 100%;
}
.chat-preview {
  min-height: 290px;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 22px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  overflow: auto;
}
.chat-preview p {
  margin-bottom: .85rem;
  color: var(--muted);
}
.mini-chat { display: flex; gap: .6rem; }
.mini-chat input, .contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: .95rem 1rem;
  outline: none;
}
.mini-chat button {
  border: 0;
  border-radius: 16px;
  padding: 0 1rem;
  font-weight: 900;
  cursor: pointer;
  background: var(--primary);
  color: #00120b;
}

.check-list { list-style: none; margin: 1.4rem 0; }
.check-list li {
  padding: .7rem 0 .7rem 2rem;
  position: relative;
  color: var(--muted);
}
.check-list li::before {
  content: "✓";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: 900;
}
.text-link { color: var(--primary); font-weight: 900; }

.schedule-grid, .clip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1220px;
  margin: 0 auto;
}
.schedule-card, .clip-card {
  padding: 1.35rem;
  border-radius: 26px;
  transition: .25s ease;
}
.schedule-card:hover, .clip-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,255,157,.55);
}
.schedule-card span {
  color: var(--primary);
  font-weight: 900;
}
.clip-art {
  height: 150px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0,255,157,.18), rgba(255,255,255,.035));
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.clip-art i { font-size: 3rem; color: var(--primary); }

.discord-widget {
  height: 500px;
  border-radius: 22px;
  overflow: hidden;
  background: #202225;
  border: 1px solid rgba(88,101,242,.55);
  margin-bottom: 1rem;
}
.rules-card ol { padding-left: 1.2rem; margin-top: 1rem; }
.rules-card li { margin-bottom: .75rem; }

.about-section { padding-top: 3rem; }
.about-card {
  max-width: 1220px;
  margin: 0 auto;
  border-radius: 34px;
  padding: clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr .5fr;
  gap: 2rem;
  align-items: center;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.about-badges span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 900;
}

.contact-form {
  max-width: 860px;
  margin: 0 auto;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 800;
}
.form-note { margin-top: .75rem; color: var(--muted); }

.footer {
  padding: 2rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand p, .copyright { color: var(--muted); }
.socials { display: flex; gap: .8rem; }
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  transition: .25s ease;
}
.socials a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.secret-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  place-items: center;
  z-index: 10000;
  padding: 1rem;
}
.secret-modal.show { display: grid; }
.secret-box {
  width: min(560px, 100%);
  border-radius: 30px;
  padding: 2rem;
  background: var(--dark-2);
  border: 1px solid var(--primary);
  box-shadow: 0 0 80px var(--primary-soft);
  position: relative;
}
.close-secret {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  50% { transform: scale(1.06); box-shadow: 0 0 50px var(--primary-soft); }
}

@media (max-width: 980px) {
  .hero, .media-grid, .discord-layout, .about-card { grid-template-columns: 1fr; }
  .schedule-grid, .clip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 76px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--dark-2);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1rem;
  }
  .nav-links.open { display: flex; }
  .hero-stats, .field-row, .schedule-grid, .clip-grid { grid-template-columns: 1fr; }
  h1 { font-size: 3.4rem; }
  .footer { justify-content: center; text-align: center; }
}

.discord-fallback {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2rem;
  border-radius: 22px;
  background: radial-gradient(circle at top, rgba(88, 101, 242, 0.32), rgba(5, 8, 12, 0.9));
}

.discord-fallback i {
  font-size: 4rem;
  color: #5865f2;
  filter: drop-shadow(0 0 18px rgba(88, 101, 242, 0.9));
}

.discord-fallback p { color: var(--muted); }
