:root {
  color-scheme: dark;
  --ink: #0c0c12;
  --panel: #151622;
  --line: #323446;
  --white: #f7f4ee;
  --muted: #b6b8c8;
  --gold: #ffd082;
  font-family: "Avenir Next", system-ui, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--white); line-height: 1.55; }
h1, h2, p, dl, dd, figure, fieldset { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 4px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  z-index: 3;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 10px 14px;
  background: var(--ink);
}
.wrap { width: min(100% - 72px, 1190px); margin-inline: auto; }
.site-header { position: relative; z-index: 1; border-bottom: 1px solid #333040; background: #111018; }
.nav, .brand, .nav-links, .footer-content { display: flex; align-items: center; }
.nav, .footer-content { justify-content: space-between; gap: 12px; }
.nav { min-height: 67px; }
.brand { gap: 9px; font-size: .96rem; font-weight: 800; }
.brand img { object-fit: contain; }
.nav-links { flex-wrap: wrap; gap: clamp(14px, 3vw, 37px); }
.nav-links a, .back-to-top { color: #d1d0dd; font-size: .9rem; font-weight: 700; }
.nav-links a:hover, .brand:hover, .back-to-top:hover { color: var(--gold); }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, #242454 0%, transparent 45%),
    radial-gradient(ellipse at 50% -32%, #3d2740 0%, transparent 65%),
    linear-gradient(180deg, #171320, #101019 77%, var(--ink));
}
.hero::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: -50% -20% 0;
  background-image:
    linear-gradient(90deg, #9a91dc33 1px, transparent 1px),
    linear-gradient(#9a91dc33 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse, #000b 4%, transparent 66%);
  transform: perspective(620px) rotateX(23deg) rotateZ(-20deg);
  pointer-events: none;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(52px, 7vw, 96px) clamp(54px, 6vw, 85px);
}
.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(96px, 13vw, 157px);
  margin-bottom: 15px;
}
.hero-emblem::before, .hero-emblem::after {
  position: absolute;
  content: "";
  z-index: -1;
  border: 1px solid #a7a3f95c;
  border-radius: 24px;
  inset: -7%;
  transform: rotate(12deg);
}
.hero-emblem::after {
  border-color: #f1af6835;
  transform: rotate(-12deg);
}
.hero-emblem img { height: auto; filter: drop-shadow(0 16px 24px #050611b3); }
.hero h1 { width: min(100%, 667px); }
.hero h1 img { width: 100%; height: auto; filter: drop-shadow(0 9px 25px #08050bd9); }
.hero p {
  max-width: 41ch;
  margin-top: 6px;
  color: #dad7e3;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  text-wrap: balance;
}
.hero-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button, .secondary {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  font-size: .89rem;
}
.button { background: linear-gradient(#ffdb97, #ffc373); color: #251709; box-shadow: 0 6px 26px #fabb5c26; }
.button:hover { background: #ffe0aa; }
.secondary { background: #1b1b2b; border-color: #49465d; }
.secondary:hover { border-color: var(--gold); }

.platforms {
  display: grid;
  grid-template-columns: minmax(128px, .72fr) minmax(0, 4fr);
  align-items: center;
  gap: 16px;
  padding: 22px 25px;
  border: 1px solid #3c3c54;
  border-radius: 14px;
  background: linear-gradient(120deg, #1c1b2b, #151622 62%, #222039);
  box-shadow: 0 16px 45px #05050a75;
}
h2 { line-height: 1; letter-spacing: -.048em; font-weight: 850; }
.platforms h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.platform-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.platform-list > div { padding-left: 17px; border-left: 1px solid #4c4a63; }
.platform-list dt {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 10px;
  font-weight: 800;
}
.platform-list dd { padding-left: 30px; color: var(--muted); font-size: .82rem; }
.platform-icon { align-self: center; justify-self: center; position: relative; width: 16px; height: 12px; color: var(--gold); }
.laptop { width: 15px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; }
.laptop::after { position: absolute; content: ""; width: 21px; height: 1.5px; background: currentColor; bottom: -4px; left: -4px; border-radius: 2px; }
.window {
  width: 15px;
  height: 15px;
  background:
    linear-gradient(currentColor, currentColor) top left,
    linear-gradient(currentColor, currentColor) top right,
    linear-gradient(currentColor, currentColor) bottom left,
    linear-gradient(currentColor, currentColor) bottom right;
  background-size: 6.5px 6.5px;
  background-repeat: no-repeat;
}
.phone { width: 10px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px; }
.phone::after { content: ""; position: absolute; bottom: 1px; left: 2px; width: 3px; height: 1px; background: currentColor; }
.android { width: 15px; height: 9px; border: 1.5px solid currentColor; border-radius: 9px 9px 2px 2px; }
.android::before, .android::after { content: ""; position: absolute; top: -4px; width: 1.5px; height: 4px; background: currentColor; }
.android::before { left: 1.5px; transform: rotate(-25deg); }
.android::after { right: 1.5px; transform: rotate(25deg); }

.gameplay { padding-block: clamp(54px, 8vw, 106px) clamp(52px, 7vw, 88px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-heading h2, .multiplayer h2 { font-size: clamp(2.1rem, 5vw, 4.1rem); }
.section-heading p { color: var(--muted); font-size: .92rem; }
.gallery { min-inline-size: 0; padding: 0; border: 0; }
.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(177px, 27%);
  gap: 14px;
  align-items: start;
}
.gallery-controls { grid-column: 2; grid-row: 1; display: grid; gap: 9px; }
.gallery-controls label {
  display: grid;
  grid-template-columns: minmax(60px, 46%) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 6px 10px 6px 6px;
  color: #d6d5e3;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 760;
  cursor: pointer;
}
.gallery-controls img { width: 100%; height: auto; border-radius: 5px; }
.gallery-controls label:hover { border-color: #9694ba; }
.gallery-controls input:checked + label { border-color: #e9ad63; background: #272033; color: var(--gold); }
.scene {
  display: none;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #55516f;
  border-radius: 13px;
  background: #151422;
  box-shadow: 0 20px 44px #05050a88;
}
.gallery:has(#scene-impact:checked) .scene-impact,
.gallery:has(#scene-launch:checked) .scene-launch,
.gallery:has(#scene-world:checked) .scene-world,
.gallery:has(#scene-menu:checked) .scene-menu { display: block; }
.scene > img { width: 100%; height: auto; }
.scene figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  font-size: .91rem;
}
.scene figcaption p { color: #dedce8; }
.scene figcaption a { color: var(--gold); font-weight: 750; white-space: nowrap; }
.scene figcaption a:hover { text-decoration: underline; }

.multiplayer { margin-bottom: clamp(55px, 8vw, 96px); }
.multiplayer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(20px, 5vw, 52px);
  border: 1px solid #424363;
  border-radius: 14px;
  background: radial-gradient(ellipse at 8% 120%, #333470, transparent 72%), #171725;
}
.multiplayer h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.multiplayer p { color: #dedce8; max-width: 40ch; }
.site-footer { border-top: 1px solid var(--line); background: #111018; }
.footer-content { padding-block: 18px; }

@media (max-width: 880px) {
  .wrap { width: min(100% - 48px, 1190px); }
  .platforms { grid-template-columns: 1fr; padding: 17px; }
  .platform-list > div:first-child { border-left: 0; padding-left: 0; }
  .gallery-controls label { gap: 7px; font-size: .82rem; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .nav { flex-direction: column; justify-content: center; align-items: start; gap: 3px; padding-block: 8px; }
  .nav-links a { display: flex; align-items: center; min-height: 34px; font-size: .85rem; }
  .hero-content { padding-block: 43px 38px; }
  .hero p { margin-top: 10px; }
  .hero-links { margin-top: 18px; }
  .hero-emblem { margin-bottom: 14px; }
  .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 8px; }
  .platform-list > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .section-heading { flex-direction: column; align-items: start; margin-bottom: 15px; gap: 7px; }
  .gallery-layout { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .gallery-controls { grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .gallery-controls label { grid-template-columns: minmax(34px, 42%) minmax(0, 1fr); padding: 4px 5px 4px 4px; }
  .scene figcaption { flex-wrap: wrap; padding: 11px; column-gap: 14px; row-gap: 6px; }
  .multiplayer-panel { flex-direction: column; align-items: start; gap: 11px; }
}
@media (max-width: 360px) {
  .platforms { padding: 14px; }
  .platform-list > div:nth-child(even) { padding-left: 8px; }
  .platform-list dt { grid-template-columns: 16px 1fr; column-gap: 7px; }
  .platform-list dd { padding-left: 23px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
