:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-soft: #0e1a2e;
  --panel: #111f35;
  --panel-strong: #152947;
  --text: #f4f8ff;
  --muted: #a9b6c9;
  --soft: #70839f;
  --line: rgba(170, 197, 235, 0.18);
  --aqua: #3bd6ff;
  --emerald: #48e0a4;
  --gold: #ffd15c;
  --rose: #ff6f91;
  --violet: #a88bff;
  --ruby: #ff5f67;
  --radius: 18px;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  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;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(5, 13, 26, 0.98), rgba(8, 17, 31, 1) 48%),
    linear-gradient(125deg, rgba(255, 209, 92, 0.055), transparent 34%),
    linear-gradient(310deg, rgba(72, 224, 164, 0.055), transparent 42%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

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

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

p {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 0.65rem 0.9rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.brand-text,
.desktop-nav,
.site-footer nav,
.game-card-meta,
.game-card-actions,
.legal-links,
.support-grid,
.feature-list {
  display: flex;
}

.brand {
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--aqua), var(--emerald));
  color: #06111d;
  font-weight: 950;
  line-height: 1;
}

.brand-text {
  flex-direction: column;
  gap: 0.05rem;
}

.brand-text strong,
.footer-brand {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  align-items: center;
  gap: 1.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 180px;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a1424;
  padding: 0.55rem;
  box-shadow: var(--shadow);
}

.mobile-nav nav a {
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-weight: 800;
}

.mobile-nav nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(59, 214, 255, 0.11), transparent 35%),
    linear-gradient(290deg, rgba(255, 209, 92, 0.11), transparent 42%),
    linear-gradient(180deg, transparent 0, rgba(5, 13, 26, 0.48) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  align-items: center;
  gap: 3rem;
  padding: 3.5rem 0 4rem;
}

.hero-copy h1,
.page-hero h1,
.game-detail-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: 3.55rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero-copy h1 span,
.page-hero h1 span {
  display: block;
  color: var(--aqua);
}

.hero-copy p,
.page-hero p,
.game-detail-copy p {
  margin-top: 1.35rem;
  max-width: 630px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button,
.text-link,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--aqua), var(--emerald));
  color: #06111d;
  padding: 0.8rem 1.15rem;
  box-shadow: 0 14px 38px rgba(61, 214, 255, 0.18);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.8rem 1.1rem;
}

.button-small {
  min-height: 38px;
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
}

.text-link {
  min-height: 38px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-art {
  position: relative;
  min-width: 0;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.44));
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 14% 3% 0;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 44% 56%, rgba(59, 214, 255, 0.28), transparent 48%),
    radial-gradient(circle at 66% 46%, rgba(255, 209, 92, 0.22), transparent 42%);
  filter: blur(26px);
}

.hero-characters {
  width: min(760px, 112%);
  max-width: none;
  margin-left: -4%;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0, 0, 0, 0.86) 74%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0, 0, 0, 0.86) 74%, transparent 100%);
}

.section {
  padding: 5.5rem 0;
}

.section.alt {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

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

.section-heading h2,
.legal-content h1 {
  margin: 0;
  max-width: 680px;
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 460px;
  color: var(--muted);
}

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

.game-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 31, 53, 0.78);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.accent-aqua {
  --accent: var(--aqua);
}

.accent-emerald {
  --accent: var(--emerald);
}

.accent-gold {
  --accent: var(--gold);
}

.accent-rose {
  --accent: var(--rose);
}

.accent-violet {
  --accent: var(--violet);
}

.accent-ruby {
  --accent: var(--ruby);
}

.game-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  background: var(--panel-strong);
}

.game-card-media .game-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.9;
}

.game-card-media .game-icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.game-card-body {
  padding: 1.15rem;
}

.game-card-meta {
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.game-card-meta span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.34rem 0.58rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.game-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  line-height: 1.18;
}

.game-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.game-card-actions {
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.studio-panel,
.support-card,
.legal-content {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 31, 53, 0.74);
  box-shadow: var(--shadow);
}

.studio-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  padding: 2rem;
}

.studio-panel h2,
.support-card h2,
.game-detail-copy h1 {
  margin: 0;
}

.studio-panel p,
.support-card p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.feature-list {
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  border-left: 3px solid var(--emerald);
  padding-left: 1rem;
}

.legal-links {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.page-hero,
.game-detail {
  border-bottom: 1px solid var(--line);
}

.page-hero .section-inner,
.game-detail .section-inner {
  padding: 4.5rem 0 3.5rem;
}

.games-list {
  padding: 4rem 0 5rem;
}

.game-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  align-items: center;
  gap: 2.5rem;
}

.game-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.game-title-row img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.package-id {
  margin-top: 0.9rem;
  color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.screenshot-rail {
  display: grid;
  grid-auto-columns: minmax(260px, 1fr);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-color: var(--soft) transparent;
}

.screenshot-rail figure {
  margin: 0;
}

.screenshot-rail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
}

.support-grid {
  align-items: stretch;
  gap: 1rem;
}

.support-card {
  flex: 1;
  min-width: 0;
  padding: 1.4rem;
}

.support-card a {
  color: var(--emerald);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.legal-content {
  max-width: 880px;
  margin: 4rem auto 5rem;
  padding: clamp(1.2rem, 4vw, 2.5rem);
}

.legal-content h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #060d18;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding: 2.3rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  font-weight: 800;
}

.footer-contact,
.copyright {
  grid-column: 1 / -1;
}

.footer-contact a {
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero-grid,
  .studio-panel,
  .game-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 3.5rem 0;
  }

  .hero-copy h1,
  .page-hero h1,
  .game-detail-copy h1 {
    font-size: 3rem;
  }

  .hero-art {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .hero-characters {
    width: 100%;
    margin-left: 0;
  }

  .section-heading h2,
  .legal-content h1 {
    font-size: 2.25rem;
  }

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

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

  .support-grid {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, 1160px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  .brand-text span {
    max-width: 150px;
    font-size: 0.62rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .game-detail-copy h1 {
    font-size: 2.25rem;
  }

  .section-heading h2,
  .legal-content h1 {
    font-size: 2.1rem;
  }

  .hero-actions,
  .page-actions,
  .game-card-actions,
  .legal-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .secondary-button,
  .text-link {
    width: 100%;
  }

  .hero-art {
    display: none;
  }

  .hero-grid {
    padding-bottom: 3rem;
  }

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

  .game-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .screenshot-rail {
    grid-auto-columns: minmax(82vw, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
