:root {
  color-scheme: dark;
  --bg: #0d1022;
  --panel: #171b35;
  --panel-strong: #20264a;
  --text: #f6f7ff;
  --muted: #b9c0df;
  --accent: #83f7d3;
  --accent-2: #9d8cff;
  --danger: #ff8c9a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(131, 247, 211, 0.16), transparent 30rem), linear-gradient(180deg, #11142b 0%, var(--bg) 45%, #090b17 100%);
  color: var(--text);
}

a { color: inherit; }

.site-header, main, .site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  gap: 18px;
}

.brand {
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.03em;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-actions a, .secondary-button, .primary-button, .start-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
  padding: 42px 0 30px;
}

.hero-copy, .hero-card, .section {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(23, 27, 53, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.hero-copy {
  border-radius: 36px;
  padding: clamp(28px, 6vw, 58px);
}

.hero-card {
  border-radius: 30px;
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 270px;
}

.hero-card span, .hero-card strong {
  display: block;
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-card strong {
  color: #11142b;
  background: linear-gradient(135deg, var(--accent), #dfffee);
  font-size: 1.25rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; letter-spacing: -0.045em; }

h1 { font-size: clamp(3rem, 11vw, 7rem); line-height: 0.86; }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); }

.hero-lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.hero-buttons, .form-row, .row-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.primary-button, .start-button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #e8fff8);
  color: #101326;
  cursor: pointer;
}

main { padding-bottom: 26px; }

.section {
  border-radius: 30px;
  padding: clamp(20px, 4vw, 34px);
  margin: 24px 0;
}

.section-heading { margin-bottom: 18px; }
.row-heading { justify-content: space-between; }

.game-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
  background: #05060d;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.game-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle, rgba(157, 140, 255, 0.34), rgba(5, 6, 13, 0.94));
}

.game-overlay.hidden { display: none; }
.overlay-kicker { color: var(--muted); font-weight: 800; }

.fullscreen-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(8, 10, 24, 0.78);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.play-note, .seo-copy, .comment-form, .comment-card { color: var(--muted); }

.ad-section {
  min-height: 90px;
  margin: 20px 0;
  overflow: hidden;
  text-align: center;
}

.seo-copy {
  columns: 2 340px;
  column-gap: 34px;
  line-height: 1.78;
  font-size: 1rem;
}

.seo-copy p { margin-top: 0; break-inside: avoid; }

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #101326;
}

.screenshot-grid figcaption {
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel-strong);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, border-color 180ms ease;
}

.game-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #101326; }
.game-card span { display: block; padding: 12px; font-weight: 900; }

.comment-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.comment-form label { font-weight: 900; color: var(--text); }
.comment-form textarea {
  width: 100%;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 14px;
  font: inherit;
}

.form-row { justify-content: space-between; }
#commentStatus.error { color: var(--danger); }
.comment-list { display: grid; gap: 12px; }
.comment-card { border-radius: 18px; background: rgba(255, 255, 255, 0.07); padding: 14px; }
.comment-card time { display: block; color: rgba(255, 255, 255, 0.52); font-size: 0.84rem; margin-bottom: 8px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 26px 0 42px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-shell { min-height: 280px; aspect-ratio: 4 / 3; }
  .site-header, main, .site-footer { width: min(100% - 20px, 1180px); }
  .nav-actions { font-size: 0.9rem; }
}
