:root {
  --bg: #070b0a;
  --surface: #0d1211;
  --surface-2: #111817;
  --surface-3: #151d1b;
  --text: #f5f7f6;
  --muted: #93a29d;
  --muted-2: #64716d;
  --line: rgba(255,255,255,.085);
  --mint: #22d9b1;
  --green: #5ed746;
  --cyan: #39cfe2;
  --purple: #7969ff;
  --live: #ff4c67;
  --radius: 24px;
  --shadow: 0 28px 90px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(38,217,177,.055), transparent 24rem),
    radial-gradient(circle at 92% 26%, rgba(94,215,70,.045), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0 60%, transparent 95%);
}

.section-shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }

.site-header {
  width: min(1220px, calc(100% - 30px));
  height: 72px;
  margin: 14px auto 0;
  padding: 0 16px;
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7,11,10,.82);
  box-shadow: 0 18px 60px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--mint) 55%, var(--green));
  color: #06100d;
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: -.05em;
}
.brand-copy { display: grid; line-height: 1; gap: 5px; }
.brand-copy strong { font-size: .79rem; letter-spacing: .12em; }
.brand-copy small { color: var(--muted-2); font-size: .48rem; letter-spacing: .22em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #aeb8b5; font-size: .73rem; font-weight: 700; transition: color .2s ease; }
.nav a:hover { color: var(--text); }
.header-live {
  justify-self: end;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd4d1;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.status-dot, .stream-state i, .live-pill i, .stream-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66736f;
}
.is-live .status-dot,
.is-live .stream-state i,
.is-live .live-pill i,
.is-live .stream-badge i {
  background: var(--live);
  box-shadow: 0 0 0 5px rgba(255,76,103,.11);
}
.nav-toggle { display: none; }

.hero {
  min-height: 690px;
  padding: 95px 0 72px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a5b1ad;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow i { width: 28px; height: 2px; background: linear-gradient(90deg, var(--mint), var(--green)); }
.hero-kicker { margin: 32px 0 0; color: var(--muted-2); font-size: .68rem; font-weight: 900; letter-spacing: .24em; }
.hero h1 {
  margin: 7px 0 22px;
  font-size: clamp(4rem, 8vw, 7.4rem);
  line-height: .83;
  letter-spacing: -.075em;
  font-weight: 950;
}
.hero h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(95deg, var(--cyan), var(--mint) 46%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-intro { max-width: 570px; margin: 0; color: #a9b4b0; line-height: 1.75; font-size: .98rem; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 900;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #07110e;
  background: linear-gradient(110deg, var(--cyan), var(--mint) 52%, var(--green));
  box-shadow: 0 12px 40px rgba(34,217,177,.12);
}
.button-ghost { border: 1px solid var(--line); color: #c9d1ce; background: rgba(255,255,255,.018); }
.button-ghost:hover { border-color: rgba(34,217,177,.24); }

.hero-visual {
  min-height: 480px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background:
    linear-gradient(118deg, rgba(121,105,255,.95) 0 18%, transparent 18% 100%),
    linear-gradient(145deg, var(--cyan) 0 23%, var(--mint) 23% 54%, var(--green) 54% 100%);
  box-shadow: var(--shadow);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 16%, rgba(255,242,163,.9) 0 4px, transparent 5px),
    radial-gradient(circle at 8% 30%, transparent 0 3px, rgba(255,255,255,.8) 4px 5px, transparent 6px),
    radial-gradient(circle at 26% 10%, transparent 0 3px, rgba(255,255,255,.75) 4px 5px, transparent 6px);
  opacity: .8;
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 66%;
  height: 34%;
  right: -8%;
  top: 30%;
  transform: rotate(-4deg);
  background: rgba(255,255,255,.94);
  box-shadow: 0 0 0 1px rgba(0,0,0,.03);
}
.shape { position: absolute; opacity: .92; }
.shape-a { left: -4%; top: 8%; width: 34%; height: 22%; background: rgba(19,190,210,.9); transform: skewX(31deg); }
.shape-b { right: -4%; bottom: 10%; width: 30%; height: 23%; background: #07965d; transform: skewX(-31deg); }
.shape-c { left: 12%; bottom: 19%; width: 23%; height: 13%; background: rgba(121,105,255,.82); transform: skewX(-24deg); }
.hero-wordmark {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 8%;
  font-size: clamp(2.3rem, 5.2vw, 4.8rem);
  font-weight: 400;
  letter-spacing: .18em;
  color: #141617;
  text-shadow: 0 1px 0 rgba(255,255,255,.22);
}
.hero-visual-bottom {
  position: absolute;
  z-index: 5;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.mini-profile { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-profile img, .mini-profile-fallback {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #101817;
  border: 2px solid rgba(255,255,255,.72);
}
.mini-profile-fallback { display: grid; place-items: center; color: var(--mint); font-size: .72rem; font-weight: 950; }
.mini-profile small, .mini-profile strong { display: block; color: #06110e; }
.mini-profile small { font-size: .48rem; font-weight: 900; letter-spacing: .15em; opacity: .62; }
.mini-profile strong { margin-top: 2px; font-size: .74rem; }
.live-pill {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #06110e;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.54);
  font-size: .59rem;
  letter-spacing: .1em;
  backdrop-filter: blur(8px);
}

.live-section, .games-section, .about-section, .community-section { padding-top: 84px; }
.section-heading {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.heading-title, .about-title { display: flex; align-items: baseline; gap: 14px; }
.section-index { color: var(--mint); font-size: .63rem; font-weight: 950; letter-spacing: .16em; }
.section-heading h2, .about-title h2, .community-panel h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.055em;
}
.section-heading p { max-width: 440px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; text-align: right; }

.live-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, .58fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stream-preview {
  aspect-ratio: 16 / 9;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  display: block;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(121,105,255,.22), transparent 36%),
    linear-gradient(145deg, #0b312c 0%, #0b1916 58%, #09100e 100%);
}
.stream-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(3,7,6,.72), transparent 45%);
  pointer-events: none;
}
.stream-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.stream-preview:hover img { transform: scale(1.012); }
.preview-offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background:
    linear-gradient(132deg, transparent 0 58%, rgba(34,217,177,.1) 58% 72%, transparent 72%),
    linear-gradient(28deg, transparent 0 68%, rgba(94,215,70,.08) 68% 82%, transparent 82%);
}
.preview-logo { font-size: clamp(4.8rem, 9vw, 8.6rem); font-weight: 1000; letter-spacing: -.1em; color: #5b8277; opacity: .58; }
.preview-line { width: 76px; height: 2px; background: linear-gradient(90deg, var(--purple), var(--mint), var(--green)); }
.preview-offline small { color: #668079; font-size: .58rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.preview-topline {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.stream-badge {
  min-height: 31px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(6,11,10,.72);
  backdrop-filter: blur(12px);
  font-size: .59rem;
  font-weight: 950;
  letter-spacing: .1em;
}
.preview-action { color: rgba(255,255,255,.78); font-size: .65rem; font-weight: 800; padding: 8px 10px; border-radius: 999px; background: rgba(6,11,10,.56); backdrop-filter: blur(12px); }
.stream-info-panel { padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.stream-profile-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.stream-avatar img, .stream-avatar-fallback { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #111a18; border: 1px solid var(--line); }
.stream-avatar-fallback { display: grid; place-items: center; color: var(--mint); font-size: .7rem; font-weight: 950; }
.stream-profile-row small { display: block; color: var(--muted-2); font-size: .58rem; margin-bottom: 2px; }
.stream-profile-row strong { display: block; font-size: .85rem; }
.stream-state { min-height: 29px; padding: 0 9px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; border: 1px solid var(--line); color: #9cabaa; font-size: .54rem; letter-spacing: .09em; }
.stream-copy { margin: auto 0; padding: 28px 0; }
.stream-category { color: var(--mint); font-size: .58rem; font-weight: 950; letter-spacing: .14em; }
.stream-copy h3 { margin: 9px 0 10px; font-size: clamp(1.45rem, 2.4vw, 2.15rem); line-height: 1.04; letter-spacing: -.045em; }
.stream-copy p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.stream-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.viewer-count { min-height: 18px; color: var(--muted-2); font-size: .68rem; }
.stream-cta { min-width: 155px; }

.games-list { border-top: 1px solid var(--line); }
.game-row {
  min-height: 62px;
  padding: 0 6px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) minmax(150px, .45fr) 24px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease, padding .18s ease;
}
.game-row:hover { padding-left: 12px; background: rgba(255,255,255,.015); }
.game-index { color: var(--muted-2); font-size: .58rem; font-weight: 900; letter-spacing: .09em; }
.game-row strong { font-size: .91rem; font-weight: 750; min-width: 0; }
.game-row small { color: #70807b; font-size: .68rem; text-align: right; }
.game-row b { color: var(--mint); font-size: .82rem; opacity: .55; }
.game-link:hover b { opacity: 1; }
.game-more .game-index, .game-more strong { color: var(--mint); }

.about-banner {
  min-height: 125px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(105deg, var(--purple), #8177f3 20%, var(--cyan) 58%, var(--mint) 78%, var(--green));
  color: #07110e;
}
.about-banner::before, .about-banner::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(7,17,14,.26);
  border-radius: 50%;
}
.about-banner::before { left: 6%; top: -70px; }
.about-banner::after { right: 10%; bottom: -110px; }
.about-pattern { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 20% 50%, transparent 0 11px, rgba(7,17,14,.12) 12px 13px, transparent 14px 18px); opacity: .38; }
.about-banner > span { position: relative; z-index: 2; font-size: clamp(2rem, 5vw, 4rem); font-weight: 950; letter-spacing: .1em; }
.about-body {
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 70px;
  align-items: end;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(135deg, #0e1413, #090e0d);
}
.about-title { align-items: flex-start; }
.about-title h2 em, .community-panel h2 em { color: var(--mint); font-style: normal; }
.about-copy p { margin: 0; color: #aeb9b5; line-height: 1.82; font-size: .95rem; }
.text-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--mint); font-size: .76rem; font-weight: 900; }

.community-panel {
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr minmax(310px, .55fr);
  align-items: center;
  gap: 60px;
  overflow: hidden;
  border-radius: 24px;
  color: #07110e;
  background:
    linear-gradient(118deg, rgba(121,105,255,.28) 0 14%, transparent 14%),
    linear-gradient(105deg, var(--cyan), var(--mint) 55%, var(--green));
}
.section-index-dark { color: rgba(7,17,14,.55); }
.community-panel h2 { margin-top: 10px; }
.community-panel h2 em { color: rgba(7,17,14,.72); }
.community-panel p { max-width: 600px; margin: 16px 0 0; color: rgba(7,17,14,.72); font-size: .84rem; line-height: 1.7; }
.discord-cta {
  min-height: 84px;
  padding: 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(7,17,14,.15);
  border-radius: 18px;
  background: rgba(7,17,14,.9);
  color: #f5f7f6;
  transition: transform .2s ease, background .2s ease;
}
.discord-cta:hover { transform: translateY(-2px); background: #07110e; }
.discord-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.07); color: var(--mint); font-size: 1.1rem; font-weight: 950; }
.discord-cta small, .discord-cta strong { display: block; }
.discord-cta small { margin-bottom: 4px; color: #75847f; font-size: .52rem; letter-spacing: .17em; }
.discord-cta strong { font-size: .86rem; }
.discord-cta b { color: var(--mint); }

.site-footer {
  min-height: 150px;
  margin-top: 90px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: .69rem;
}
.footer-brand { display: flex; align-items: center; gap: 9px; color: #cfd7d4; font-size: .7rem; letter-spacing: .08em; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: .65rem; }
.footer-links { justify-self: end; display: flex; gap: 20px; }
.footer-links a:hover { color: var(--mint); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .62s ease, transform .62s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .07s; }
.delay-2 { transition-delay: .13s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; justify-self: end; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--text); cursor: pointer; }
  .nav { display: none; position: absolute; top: 79px; left: 0; right: 0; padding: 16px; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; background: #0b100f; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .header-live { display: none; }
  .hero { min-height: auto; padding-top: 76px; grid-template-columns: 1fr; gap: 38px; }
  .hero-visual { min-height: 400px; }
  .live-panel { grid-template-columns: 1fr; }
  .stream-preview { border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading p { text-align: left; }
  .about-body, .community-panel { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 26px, 1180px); }
  .site-header { width: calc(100% - 18px); margin-top: 9px; top: 9px; height: 64px; border-radius: 15px; }
  .brand-copy { display: none; }
  .hero { padding: 66px 0 45px; }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 5.5rem); }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 320px; border-radius: 22px; }
  .hero-visual::after { width: 78%; height: 33%; right: -13%; }
  .hero-wordmark { font-size: clamp(1.8rem, 9vw, 3rem); }
  .mini-profile small { display: none; }
  .live-section, .games-section, .about-section, .community-section { padding-top: 66px; }
  .heading-title, .about-title { align-items: flex-start; }
  .section-heading h2, .about-title h2, .community-panel h2 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .live-panel, .about-banner, .community-panel { border-radius: 20px; }
  .stream-preview { min-height: 0; }
  .preview-action { display: none; }
  .stream-info-panel { padding: 18px; }
  .stream-profile-row { grid-template-columns: auto 1fr; }
  .stream-state { grid-column: 1 / -1; width: max-content; margin-top: 4px; }
  .stream-copy { padding: 24px 0; }
  .stream-footer { grid-template-columns: 1fr; }
  .stream-cta { width: 100%; }
  .game-row { min-height: 70px; grid-template-columns: 34px minmax(0,1fr) 20px; gap: 10px; }
  .game-row small { grid-column: 2 / 3; text-align: left; margin-top: -6px; }
  .game-row b { grid-column: 3; grid-row: 1 / span 2; }
  .about-banner { min-height: 96px; border-radius: 20px 20px 0 0; }
  .about-body { padding: 25px 20px; border-radius: 0 0 20px 20px; }
  .community-panel { padding: 28px 20px; }
  .discord-cta { min-width: 0; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; margin-top: 70px; }
  .footer-links { justify-self: start; }
}

/* V4: branded error page */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(34,217,177,.10), transparent 26rem),
    radial-gradient(circle at 88% 80%, rgba(121,105,255,.10), transparent 28rem),
    var(--bg);
}
.error-shell { width: min(100%, 900px); }
.error-brand { width: max-content; margin-bottom: 22px; }
.error-card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17,24,23,.97), rgba(7,11,10,.98));
  box-shadow: var(--shadow);
}
.error-card::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 220px;
  right: -100px;
  top: -70px;
  transform: rotate(-18deg);
  background: linear-gradient(120deg, rgba(121,105,255,.65), rgba(57,207,226,.55), rgba(34,217,177,.6), rgba(94,215,70,.55));
  filter: blur(4px);
  opacity: .45;
  pointer-events: none;
}
.error-code { display: block; color: var(--mint); font-size: .68rem; font-weight: 950; letter-spacing: .22em; }
.error-card h1 { position: relative; z-index: 1; margin: 12px 0 18px; font-size: clamp(3rem, 9vw, 6rem); line-height: .91; letter-spacing: -.065em; }
.error-card h1 em { color: var(--mint); font-style: normal; }
.error-card > p:not(.hero-kicker) { max-width: 550px; margin: 0 0 28px; color: var(--muted); line-height: 1.75; }

/* V5 footer/legal additions */
.footer-links{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.footer-links a{white-space:nowrap}@media(max-width:760px){.footer-links{justify-content:flex-start}}
