:root {
  color-scheme: dark;
  --ink: #f6f2e8;
  --muted: #b8c0bf;
  --panel: rgba(13, 17, 19, 0.76);
  --panel-solid: #11171a;
  --line: rgba(255, 255, 255, 0.16);
  --green: #9cff38;
  --hot: #ff3569;
  --cyan: #28e0ff;
  --gold: #ffd166;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 10%, rgba(156, 255, 56, 0.16), transparent 24rem),
    radial-gradient(circle at 90% 20%, rgba(255, 53, 105, 0.15), transparent 22rem),
    #090d0f;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(5, 8, 9, 0.86), rgba(5, 8, 9, 0.28));
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(5, 8, 9, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.icon-button,
.hero-actions,
.community-actions,
.social-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--green);
  background: #2a0647;
  box-shadow: 0 0 22px rgba(156, 255, 56, 0.25);
}

.nav-links {
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 2rem);
}

.nav-links a,
.icon-button,
.primary-action,
.secondary-action,
.social-list a {
  text-decoration: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.nav-links a:hover {
  color: var(--ink);
}

.icon-button,
.primary-action,
.secondary-action {
  min-height: 2.75rem;
  gap: 0.55rem;
  border: 1px solid var(--line);
  font-weight: 850;
  white-space: nowrap;
}

.icon-button {
  padding: 0 0.95rem;
  background: rgba(255, 255, 255, 0.07);
}

.live-button {
  border-color: rgba(255, 53, 105, 0.45);
  color: #ffe8ee;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 8rem clamp(1rem, 5vw, 4rem) 4.5rem;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.92) 0%, rgba(5, 7, 8, 0.58) 45%, rgba(5, 7, 8, 0.18) 100%),
    linear-gradient(0deg, rgba(9, 13, 15, 0.94) 0%, rgba(9, 13, 15, 0.16) 48%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.kicker,
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  max-width: 10ch;
  font-size: clamp(4rem, 11vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 10px 0 rgba(255, 53, 105, 0.22), 0 0 50px rgba(40, 224, 255, 0.22);
}

.hero-copy {
  max-width: 650px;
  color: #efe9d9;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.community-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.1rem;
}

.primary-action {
  background: var(--green);
  border-color: var(--green);
  color: #071008;
  box-shadow: 0 16px 45px rgba(156, 255, 56, 0.18);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero-status {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0 1rem;
  background: rgba(9, 13, 15, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  font-weight: 850;
}

.pulse-dot {
  width: 0.7rem;
  aspect-ratio: 1;
  background: var(--hot);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 53, 105, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(255, 53, 105, 0);
  }
}

.ticker {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: #101719;
  border-block: 1px solid var(--line);
  scrollbar-width: none;
}

.ticker span {
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: #dce5df;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 1.65rem;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.stream-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1rem;
  align-items: stretch;
}

.stream-frame,
.chat-panel,
.feature-card,
.discord-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stream-frame {
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.stream-frame iframe,
.chat-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.chat-panel {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.panel-topline,
.discord-card-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 220px;
  padding: 1.2rem;
}

.feature-card svg {
  color: var(--cyan);
}

h3 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.25rem;
}

.section-lede,
.feature-card p,
.community-copy p,
.discord-small {
  color: var(--muted);
  line-height: 1.65;
}

.section-lede {
  max-width: 780px;
  margin-top: 1rem;
  font-size: 1.04rem;
}

.lore-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.lore-copy,
.quote-stack {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lore-copy {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background:
    linear-gradient(135deg, rgba(156, 255, 56, 0.12), transparent 48%),
    rgba(13, 17, 19, 0.78);
}

.lore-copy h3 {
  max-width: 780px;
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
  text-wrap: balance;
}

.lore-copy p:not(.eyebrow) {
  max-width: 860px;
  color: #d6dfd9;
  line-height: 1.7;
}

.quote-stack {
  display: grid;
  align-content: stretch;
  background:
    linear-gradient(160deg, rgba(255, 53, 105, 0.13), rgba(40, 224, 255, 0.08)),
    var(--panel-solid);
}

.quote-stack span {
  display: flex;
  align-items: center;
  min-height: 5.5rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 950;
  line-height: 1.1;
}

.quote-stack span:last-child {
  border-bottom: 0;
}

.community-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.55fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 53, 105, 0.12), transparent 42%),
    #0d1214;
  border-block: 1px solid var(--line);
}

.community-copy {
  max-width: 760px;
}

.community-copy code {
  color: var(--green);
}

.discord-card {
  min-height: 320px;
  display: grid;
  align-content: center;
  padding: 1.4rem;
  background:
    linear-gradient(135deg, rgba(40, 224, 255, 0.12), rgba(255, 209, 102, 0.08)),
    var(--panel-solid);
}

.discord-card .discord-card-top {
  margin: -1.4rem -1.4rem 1.4rem;
}

.discord-big {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.9;
  font-weight: 950;
  text-transform: uppercase;
}

.discord-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: max-content;
  max-width: 100%;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0 1rem;
  background: var(--green);
  border: 1px solid var(--green);
  color: #071008;
  font-weight: 900;
  text-decoration: none;
}

.social-list {
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 150px;
  min-height: 4rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-weight: 900;
}

.social-list a[aria-disabled="true"],
#discord-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.4;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .stream-shell,
  .community-section,
  .lore-spotlight,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .stream-frame {
    min-height: auto;
  }

  .chat-panel {
    min-height: 380px;
  }

  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    width: max-content;
    max-width: 100%;
    margin-top: 1.5rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0.75rem;
  }

  .brand span:last-child,
  .live-button span {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 6.6rem 1rem 2.5rem;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 7, 8, 0.45) 0%, rgba(5, 7, 8, 0.9) 65%, rgba(9, 13, 15, 0.98) 100%);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 0.9;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .chat-panel {
    min-height: 330px;
  }

  .site-footer {
    flex-direction: column;
  }
}
