:root {
  --bg: #030503;
  --surface: rgba(8, 15, 9, 0.86);
  --surface-soft: rgba(16, 30, 18, 0.76);
  --text: #e9ffe9;
  --muted: #93b99a;
  --line: rgba(95, 255, 116, 0.28);
  --brand: #39ff4f;
  --brand-ink: #b6ffc0;
  --accent: #4fff67;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.46);
  --shadow-sm: 0 8px 26px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 16% 12%, rgba(57, 255, 79, 0.28), transparent 36%),
    radial-gradient(circle at 84% 7%, rgba(57, 255, 79, 0.14), transparent 28%),
    linear-gradient(180deg, #030503 0%, #050a05 48%, #071008 100%);
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(57, 255, 79, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 79, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 40%, transparent 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.1;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.4) 1px, transparent 0);
  background-size: 3px 3px;
}

a {
  color: var(--brand-ink);
}

a:hover {
  color: #d9ffe0;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 52px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  border: 1px solid rgba(57, 255, 79, 0.35);
  background: rgba(6, 12, 7, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 10px 14px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
  padding: 8px 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(57, 255, 79, 0.4));
}

.brand-text {
  white-space: nowrap;
}

.brand:hover {
  background: rgba(57, 255, 79, 0.12);
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 11px;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(57, 255, 79, 0.12);
}

.nav-link.active {
  color: #e4ffe8;
  border-color: rgba(57, 255, 79, 0.45);
  background: rgba(57, 255, 79, 0.22);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 79, 0.3);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.broadcast-strip {
  margin-top: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.broadcast-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(57, 255, 79, 0.25);
  border-radius: 12px;
  background: rgba(57, 255, 79, 0.07);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(57, 255, 79, 0.9);
}

.hero {
  margin-top: 14px;
  padding: clamp(26px, 4vw, 42px);
  animation: fade-up 500ms ease;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(57, 255, 79, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-home {
  background:
    radial-gradient(circle at 20% 18%, rgba(57, 255, 79, 0.18), transparent 35%),
    var(--surface);
}

.hero-discord {
  background:
    radial-gradient(circle at 84% 12%, rgba(114, 137, 218, 0.24), transparent 42%),
    var(--surface);
}

.hero-youtube {
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 77, 77, 0.24), transparent 42%),
    var(--surface);
}

.hero-twitch {
  background:
    radial-gradient(circle at 84% 12%, rgba(145, 70, 255, 0.24), transparent 42%),
    var(--surface);
}

.hero-github {
  background:
    radial-gradient(circle at 84% 12%, rgba(141, 221, 171, 0.22), transparent 42%),
    var(--surface);
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1,
.section h2 {
  font-family: "Archivo", "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5.2vw, 3.85rem);
  line-height: 1.02;
  text-shadow: 0 0 24px rgba(57, 255, 79, 0.24);
}

.lead {
  margin: 12px 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-rhythm {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-rhythm span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(57, 255, 79, 0.26);
  background: rgba(57, 255, 79, 0.1);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(57, 255, 79, 0.08);
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 700;
  padding: 11px 16px;
  transition: 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(57, 255, 79, 0.16);
}

.btn-primary {
  background: linear-gradient(130deg, #39ff4f, #20d636);
  border-color: #44ff59;
  color: #022806;
  box-shadow: 0 0 26px rgba(57, 255, 79, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(130deg, #60ff74, #2fdf45);
}

.status-grid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.status-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0;
}

.status-value {
  font-size: 1.14rem;
  font-weight: 700;
  margin-top: 6px;
}

.section {
  margin-top: 14px;
  padding: clamp(18px, 3vw, 28px);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.section p {
  margin: 8px 0 0;
  color: var(--muted);
}

.content-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.schedule-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.data-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  min-height: 144px;
  transition: 160ms ease;
}

.data-card:hover {
  border-color: rgba(95, 255, 116, 0.45);
  transform: translateY(-1px);
}

.data-card h3 {
  margin: 0;
  font-size: 1rem;
}

.data-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.media-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.media-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(57, 255, 79, 0.06);
  overflow: hidden;
  text-decoration: none;
}

.spotlight-card {
  margin-top: 12px;
}

.spotlight-card img {
  max-height: 340px;
}

.media-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.media-body {
  padding: 11px 12px 13px;
}

.media-body h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.list-clean {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.doc-body h2,
.doc-body h3 {
  margin-top: 20px;
}

.doc-body p,
.doc-body ul {
  margin-top: 10px;
}

.site-footer {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(7, 13, 8, 0.84);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(640px, 100%);
}

.small-note {
  color: var(--muted);
  font-size: 0.93rem;
}

.purpose-note {
  margin-top: 10px;
  color: #b6d8bc;
  font-size: 0.95rem;
  max-width: 70ch;
}

.meta-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-quiet {
  padding: 7px 12px;
  font-size: 0.86rem;
  border-radius: 10px;
  background: rgba(57, 255, 79, 0.05);
  color: var(--muted);
}

.btn-quiet:hover {
  color: var(--text);
  background: rgba(57, 255, 79, 0.14);
}

.skeleton {
  position: relative;
  color: transparent !important;
  user-select: none;
}

.skeleton-text {
  display: inline-block;
  min-width: 92px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(123, 171, 132, 0.18) 25%,
    rgba(123, 171, 132, 0.36) 45%,
    rgba(123, 171, 132, 0.18) 65%
  );
  background-size: 240% 100%;
  animation: skeleton-pulse 1.5s linear infinite;
}

@keyframes skeleton-pulse {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.insights-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.insights-table th,
.insights-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px 8px;
}

.insights-table th {
  color: var(--brand-ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mobile-cta {
  display: none;
  position: fixed;
  z-index: 45;
  left: 12px;
  right: 12px;
  bottom: 12px;
  justify-content: center;
}

.is-private-dashboard .mobile-cta {
  display: none !important;
}


@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(1120px, calc(100% - 20px));
  }

  .site-header {
    position: static;
  }

  .brand {
    width: 100%;
    margin: 0 0 4px;
    padding-left: 4px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .broadcast-strip {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: inline-flex;
  }

  .page-shell {
    padding-bottom: 74px;
  }

}
