:root {
  color-scheme: dark;
  --ink: #f9f7ee;
  --muted: #b7c4bd;
  --bg-a: #18252c;
  --bg-b: #26312b;
  --accent: #ff4f69;
  --gold: #ffd166;
  --cyan: #46d6c4;
  --panel: rgba(11, 18, 22, 0.72);
  --border: rgba(255, 255, 255, 0.16);
  --card: rgba(20, 30, 34, 0.86);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.site-body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 209, 102, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(70, 214, 196, 0.18), transparent 24rem),
    linear-gradient(135deg, var(--bg-a), var(--bg-b) 60%, #191723);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 4vw, 32px);
  background: rgba(10, 16, 20, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.25);
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  outline: none;
}

.site-nav__links a.is-active {
  color: #141a1d;
  background: var(--gold);
  border-color: transparent;
  font-weight: 600;
}


.site-nav--home {
  justify-content: flex-end;
}

.site-main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 64px;
}

.hero {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.hero__eyebrow {
  margin: 0;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.portal-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
  outline: none;
}

.portal-card__badge {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-card__badge--play {
  background: rgba(70, 214, 196, 0.18);
  color: var(--cyan);
}

.portal-card__badge--soon {
  background: rgba(255, 209, 102, 0.16);
  color: var(--gold);
}

.portal-card__badge--about {
  background: rgba(255, 79, 105, 0.16);
  color: #ff8aa0;
}

.portal-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.portal-card__cta {
  margin-top: 6px;
  font-weight: 700;
  color: var(--gold);
}

.page-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
}

.page-panel h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-panel .lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 42rem;
}

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

.video-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 209, 102, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.video-slot strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.video-slot--live {
  padding: 0;
  border-style: solid;
  overflow: hidden;
  background: #000;
}

.video-slot video,
.video-slot .video-embed {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border: 0;
  border-radius: inherit;
}


.video-grid--single {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin-inline: auto;
  width: 100%;
}

.video-slot--large {
  aspect-ratio: 16 / 9;
  min-height: clamp(280px, 48vw, 520px);
  width: 100%;
}

.soon-lockup {
  text-align: center;
  padding: clamp(40px, 10vw, 80px) 16px;
}

.soon-lockup .pill {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.16);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.soon-lockup h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.soon-lockup p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Compact nav overlay for the fullscreen game page */
body.game-page {
  margin: 0;
}

body.game-page .site-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}

body.game-page .game-shell {
  padding-top: 72px;
}


.bio-card {
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.28);
}

.bio-card__eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.bio-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 10px;
  color: var(--ink);
  line-height: 1.45;
}

.bio-list strong {
  color: var(--gold);
}

.section-title {
  margin: 8px 0 6px;
  font-size: 1.25rem;
}

.muted-note {
  margin: 0 0 16px;
  color: var(--muted);
}

.math-sample {
  margin: 0 0 28px;
  max-width: 900px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.math-sample img {
  display: block;
  width: 100%;
  height: auto;
}


/* Plain home hero */
body.home-plain {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.home-plain .home-hero {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  display: grid;
  place-items: end start;
}

.home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 20, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(10, 16, 20, 0.42), transparent 48%),
    linear-gradient(0deg, rgba(10, 16, 20, 0.55), transparent 38%);
  pointer-events: none;
}

.home-hero__copy {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 6vw, 56px);
  max-width: 28rem;
}

.home-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.home-hero__copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.site-footer--home {
  margin-top: 0;
  background: rgba(10, 16, 20, 0.85);
}
