:root {
  color-scheme: dark;
  --page: #080812;
  --surface: #121321;
  --surface-soft: #1a1d31;
  --text: #fffaf5;
  --muted: #c7c3d4;
  --line: rgba(255, 255, 255, .15);
  --violet: #a679ff;
  --orange: #ffb15e;
  --cyan: #55d8ff;
  --pink: #ff6fb1;
  --shadow: 0 22px 60px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(166, 121, 255, .2), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(255, 177, 94, .16), transparent 24rem),
    linear-gradient(180deg, #04050c 0, var(--page) 36rem, #0d0d18 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 38rem);
}

a { color: inherit; }

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

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #140916;
  background: linear-gradient(135deg, var(--orange), var(--violet));
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(166, 121, 255, .25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong { font-weight: 900; }

.brand small {
  color: var(--muted);
  font-size: .84rem;
}

nav,
.footer-links {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}

nav a,
.footer-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  text-decoration: none;
  font-weight: 800;
}

nav a:hover,
nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: rgba(255, 177, 94, .65);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: 3.2rem 0 1.4rem;
}

.hero-copy { max-width: 780px; }

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--orange);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 2.9rem;
  line-height: 1.02;
}

h2 {
  margin-bottom: .6rem;
  font-size: 1.6rem;
  line-height: 1.14;
}

h3 {
  margin-bottom: .45rem;
  font-size: 1.3rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.2rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(166, 121, 255, .12), rgba(255, 177, 94, .08)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.summary-card p { margin-bottom: 0; }

.summary-number {
  display: block;
  color: var(--orange);
  font-size: 3.5rem;
  font-weight: 950;
  line-height: 1;
}

.summary-label {
  display: block;
  margin: .35rem 0 .5rem;
  font-weight: 900;
}

.trust-list {
  display: grid;
  gap: .55rem;
}

.trust-list span {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .65rem .8rem;
  color: var(--text);
  background: rgba(255, 255, 255, .055);
  font-weight: 900;
}

.trust-list span::before {
  content: "";
  width: .65rem;
  height: .65rem;
  margin-right: .65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 0 18px rgba(85, 216, 255, .35);
}

.catalog-section,
.guide-section,
.process-grid,
.spotlight-strip,
.return-section {
  margin-bottom: 2rem;
}

.spotlight-strip {
  display: grid;
  gap: 1rem;
}

.spotlight-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 177, 94, .1), rgba(85, 216, 255, .055)),
    rgba(255, 255, 255, .045);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.spotlight-strip span {
  display: inline-flex;
  margin-bottom: .55rem;
  border-radius: 8px;
  padding: .32rem .52rem;
  color: #12071a;
  background: var(--orange);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.spotlight-strip strong {
  display: block;
  margin-bottom: .28rem;
  font-size: 1.08rem;
}

.spotlight-strip p { margin-bottom: 0; }

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

.section-title p:last-child {
  max-width: 440px;
  margin-bottom: .2rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.game-card {
  min-height: 360px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .9rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(166, 121, 255, .14), rgba(85, 216, 255, .07)),
    var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.eco-card {
  background:
    linear-gradient(150deg, rgba(100, 211, 124, .14), rgba(104, 225, 253, .08)),
    var(--surface);
}

.eco-card .card-status {
  background: #64d37c;
}

.eco-card .card-category {
  color: #68e1fd;
}

.eco-card .card-action {
  background: linear-gradient(135deg, #64d37c, #68e1fd);
}

.apagon-card {
  background:
    linear-gradient(150deg, rgba(255, 183, 3, .14), rgba(88, 176, 255, .09)),
    var(--surface);
}

.apagon-card .card-status {
  background: #ffb703;
}

.apagon-card .card-category {
  color: #58b0ff;
}

.apagon-card .card-action {
  background: linear-gradient(135deg, #ffb703, #58b0ff);
}

.mente-card {
  background:
    linear-gradient(150deg, rgba(255, 216, 61, .16), rgba(124, 108, 255, .1)),
    var(--surface);
}

.mente-card .card-status {
  background: #ffd83d;
}

.mente-card .card-category {
  color: #64e7ff;
}

.mente-card .card-action {
  background: linear-gradient(135deg, #ffd83d, #64e7ff);
}

.ninja-card {
  background:
    linear-gradient(150deg, rgba(255, 198, 75, .16), rgba(83, 212, 255, .09)),
    var(--surface);
}

.ninja-card .card-status {
  background: #ffc64b;
}

.ninja-card .card-category {
  color: #6ce6ff;
}

.ninja-card .card-action {
  background: linear-gradient(135deg, #ffc64b, #ff6f6f);
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 177, 94, .68);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .44);
  outline: none;
}

.card-status {
  justify-self: start;
  border-radius: 8px;
  padding: .36rem .58rem;
  color: #170a08;
  background: var(--orange);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.card-art {
  width: 132px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 177, 94, .18), transparent 4rem),
    linear-gradient(145deg, rgba(166, 121, 255, .2), rgba(85, 216, 255, .12)),
    var(--surface-soft);
}

.card-art img {
  width: 106px;
  max-height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .32));
}

.card-category {
  display: block;
  margin-bottom: .45rem;
  color: var(--cyan);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-chips {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-chips li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .34rem .5rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .055);
  font-size: .82rem;
  font-weight: 800;
}

.card-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #12071a;
  background: linear-gradient(135deg, var(--orange), var(--violet));
  font-weight: 900;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.detail-icon {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  padding: .55rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .25);
}

.detail-logo {
  width: min(220px, 52vw);
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-panel,
.download-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(166, 121, 255, .1), rgba(85, 216, 255, .055)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.detail-grid,
.spec-grid {
  display: grid;
  gap: 1rem;
}

.detail-list,
.spec-list {
  display: grid;
  gap: .6rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li,
.spec-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem .85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .055);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.screenshot-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 216, 61, .08), rgba(100, 231, 255, .055)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: .8rem;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  background: #090d19;
}

.screenshot-frame figcaption {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
}

.ninja-page .detail-icon {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 198, 75, .28), transparent 4.5rem),
    #111726;
  padding: .35rem;
}

.ninja-page .download-panel,
.ninja-page .detail-panel {
  background:
    linear-gradient(150deg, rgba(255, 198, 75, .1), rgba(83, 212, 255, .065)),
    var(--surface);
}

.ninja-screenshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  color: #12071a;
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--violet));
}

.button.secondary {
  background: rgba(255, 255, 255, .055);
}

.process-grid {
  display: grid;
  gap: 1rem;
}

.process-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.process-grid span {
  display: inline-flex;
  margin-bottom: .7rem;
  color: var(--orange);
  font-weight: 950;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

footer p { margin-bottom: 0; }

.return-section {
  display: grid;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(166, 121, 255, .14), rgba(255, 177, 94, .09)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.return-section h2 {
  margin-bottom: 0;
}

.return-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav { width: 100%; }

  nav a { flex: 1 1 auto; }

  h1 { font-size: 2.25rem; }

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

@media (min-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .spotlight-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

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

  .return-section {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  }
}

@media (min-width: 1040px) {
  h1 { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
