:root {
  --bg: #09111f;
  --bg-alt: #111c30;
  --surface: rgba(11, 22, 40, 0.82);
  --surface-strong: rgba(18, 32, 55, 0.94);
  --line: rgba(137, 190, 255, 0.2);
  --text: #eff5ff;
  --muted: #aac0e8;
  --accent: #54f2c2;
  --accent-warm: #ffb347;
  --accent-hot: #ff6a88;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84, 242, 194, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 179, 71, 0.18), transparent 22%),
    linear-gradient(180deg, #08101b 0%, #0f1a2d 40%, #08111e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
}

body.embed-mode::before {
  display: none;
}

.page-shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero,
.portfolio-band,
.featured-section,
.roadmap-section {
  position: relative;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(12, 23, 42, 0.9), rgba(8, 15, 28, 0.86));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  padding: 40px;
}

.hero::after,
.featured-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 242, 194, 0.18), transparent 62%);
}

.hero-copy h1,
.section-header h2,
.roadmap-card h3 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.96;
  max-width: 10ch;
}

.eyebrow,
.signal-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.eyebrow::before,
.signal-label::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 18px rgba(84, 242, 194, 0.4);
}

.hero-text,
.section-text,
.signal-card p,
.meta-card p,
.roadmap-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-link {
  color: #08111e;
  background: linear-gradient(135deg, var(--accent), #8ffff1);
}

.secondary-link {
  color: var(--text);
  border: 1px solid rgba(239, 245, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
}

.hero-panel,
.roadmap-grid,
.game-grid,
.game-meta {
  display: grid;
  gap: 16px;
}

.hero-panel {
  align-content: center;
}

.signal-card,
.meta-card,
.roadmap-card,
.game-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 42, 70, 0.64), rgba(11, 21, 35, 0.92));
}

.portfolio-band,
.featured-section,
.roadmap-section {
  padding: 28px;
}

.section-header {
  margin-bottom: 22px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.game-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.game-card {
  min-height: 205px;
}

.game-card h3 {
  margin: 12px 0 8px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.35rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(84, 242, 194, 0.1);
  color: var(--text);
  font-size: 0.82rem;
}

.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

#game-canvas {
  width: 100%;
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #030812;
  aspect-ratio: 16 / 9;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.status-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.roadmap-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.embed-mode {
  background: #020611;
}

body.embed-mode .page-shell {
  width: 100vw;
  margin: 0;
  padding: 0;
}

body.embed-mode .hero,
body.embed-mode .portfolio-band,
body.embed-mode .roadmap-section {
  display: none;
}

body.embed-mode .featured-section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.embed-mode .featured-section::after,
body.embed-mode .section-header,
body.embed-mode .game-meta,
body.embed-mode .status-strip {
  display: none;
}

body.embed-mode .game-shell {
  display: block;
}

body.embed-mode #game-canvas {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
  .hero,
  .game-shell {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100vw - 20px, 1160px);
    padding-top: 20px;
  }

  .hero,
  .portfolio-band,
  .featured-section,
  .roadmap-section {
    padding: 20px;
    border-radius: 24px;
  }
}
