:root {
  color-scheme: dark;
  --bg: #1f242b;
  --surface: #2a3038;
  --surface-strong: #343c46;
  --surface-soft: #252b33;
  --text: #edf3fb;
  --muted: #aab6c5;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #65d26e;
  --primary-strong: #4eb75a;
  --accent: #6fb6ff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(111, 182, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(101, 210, 110, 0.10), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.shell {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(31, 36, 43, 0.86);
  backdrop-filter: blur(16px);
}

.nav,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #102033;
  box-shadow: 0 10px 24px rgba(101, 210, 110, 0.22);
}

.nav-link,
.site-footer a {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-link:hover,
.site-footer a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 36px;
  align-items: center;
  padding-block: 64px 52px;
}

.hero h1,
.page-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-panel p,
.card-body p {
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #102014;
  box-shadow: 0 12px 24px rgba(101, 210, 110, 0.2);
}

.button-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--line);
}

.button-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.featured-card,
.game-card,
.detail-panel,
.play-frame,
.screenshot-grid img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(42, 48, 56, 0.82);
  box-shadow: var(--shadow);
}

.featured-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(42, 48, 56, 0.82);
  box-shadow: var(--shadow);
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.featured-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-slide a:hover img {
  transform: scale(1.02);
}

.featured-content {
  padding: 24px;
}

.featured-content h2,
.card-body h3,
.detail-panel h2 {
  margin: 12px 0 8px;
}

.slider-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.slider-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 15, 20, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.9);
}

.featured-slider:hover .slider-btn {
  opacity: 1;
  transform: scale(1);
}

.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(79, 140, 255, 0.4);
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.section {
  padding-block: 32px 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0.58rem 0.86rem;
  font: inherit;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-button:hover,
.filter-button.active {
  background: var(--surface-strong);
  color: var(--text);
  transform: translateY(-1px);
}

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

.game-card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(101, 210, 110, 0.45);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.28rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.24rem 0.62rem;
  border: 1px solid rgba(111, 182, 255, 0.26);
  border-radius: 999px;
  background: rgba(111, 182, 255, 0.12);
  color: #cfe7ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.hidden {
  display: none;
}

.page-hero {
  padding-block: 44px 20px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: center;
}

.hero-banner {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--muted);
}

.breadcrumb:hover {
  color: var(--text);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.65fr);
  gap: 24px;
  padding-block: 28px 72px;
}

.detail-stack {
  display: grid;
  gap: 24px;
}

.detail-panel {
  padding: 24px;
}

.play-frame {
  overflow: hidden;
  background: #111820;
}

.play-frame iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
}

.play-frame-note {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.play-frame-note strong {
  color: #ffd68a;
}

.play-frame.is-portrait {
  display: flex;
  justify-content: center;
}

.play-frame.is-portrait iframe {
  aspect-ratio: 9 / 16;
  width: auto;
  max-width: 100%;
  height: min(78dvh, 860px);
  min-height: 0;
}

.play-frame.is-landscape iframe {
  aspect-ratio: 16 / 9;
  min-height: min(70vh, 700px);
}

.play-frame.is-standard iframe {
  aspect-ratio: 4 / 3;
  min-height: min(70vh, 720px);
}

/* Game Launch Gate */
.game-launch-gate {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 40px;
}

.gate-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gate-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) brightness(0.4);
  transform: scale(1.05);
}

.gate-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.gate-content h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.gate-content p {
  margin-bottom: 24px;
  color: var(--muted);
}

.launch-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #102014;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(101, 210, 110, 0.3);
}

.launch-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(101, 210, 110, 0.4);
}

.launch-button svg {
  width: 24px;
  height: 24px;
}


.screenshot-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.mobile-alert {
  border: 1px solid rgba(255, 192, 86, 0.38);
  background: rgba(255, 192, 86, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.mobile-alert p {
  margin: 0;
}

.controls-list,
.tech-list {
  padding-left: 1.2rem;
  color: var(--muted);
}

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

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Portrait screenshots */
.screenshot-grid.is-portrait {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.screenshot-grid.is-portrait img {
  aspect-ratio: 9 / 16;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(25, 29, 35, 0.72);
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero,
  .page-hero-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 16px;
  }

  .hero {
    padding-block: 42px 32px;
  }

  .game-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .card-actions .button,
  .detail-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .play-frame iframe {
    min-height: 360px;
  }

  .play-frame.is-portrait iframe,
  .play-frame.is-landscape iframe,
  .play-frame.is-standard iframe {
    min-height: 0;
  }

  .game-launch-gate {
    aspect-ratio: 4 / 3;
    padding: 24px;
  }

  .gate-content h3 {
    font-size: 1.25rem;
  }


  .play-frame.is-portrait iframe {
    width: 100%;
    height: min(72dvh, 760px);
  }
}
