@font-face {
  font-family: Barlow;
  src: url("src/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("src/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("src/fonts/barlow-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("src/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f2f0e7;
  --muted: #aebbc5;
  --ground: #08131c;
  --panel: #0b1923;
  --line: #253944;
  --accent: #f8bc23;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font: 100%/1.65 Barlow, Arial, sans-serif;
  background: var(--ground);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #ffe5a3; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0 0 .75rem; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.03rem;
  line-height: .98;
  text-transform: uppercase;
}
h2 { font-size: clamp(2.5rem, 5vw, 4.4rem); margin-bottom: 1.4rem; }
h3 { font-size: clamp(1.55rem, 3vw, 2rem); }

.wrap { width: min(100% - clamp(2.5rem, 13vw, 13rem), 84rem); margin-inline: auto; }
.skip-link { position: absolute; top: .75rem; left: 1rem; z-index: 2; transform: translateY(-200%); }
.skip-link:focus { transform: none; background: var(--ground); padding: .5rem 1rem; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner, .topbar nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.topbar-inner { min-height: 4.4rem; justify-content: space-between; padding-block: .8rem; }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar nav { font-size: .9rem; font-weight: 600; }
.topbar a:hover, .brand span { color: var(--accent); }
.brand { font: 800 1.65rem/1 var(--display); letter-spacing: .02em; }
.brand-arrow { margin-left: .45rem; font: 800 .75em Barlow, Arial, sans-serif; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 49vw, 43rem);
  margin-bottom: clamp(2.75rem, 7vw, 5.75rem);
  border-bottom: .3rem solid var(--accent);
}
.hero-art, .hero::after {
  position: absolute;
  inset: 0;
  height: 100%;
}
.hero-art { z-index: -2; object-fit: cover; object-position: center 39%; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 19, 28, .97), rgba(8, 19, 28, .84) 32%, rgba(8, 19, 28, .2) 72%),
    linear-gradient(0deg, rgba(8, 19, 28, .82), transparent 55%);
}
.hero-copy { padding-block: 4rem; }
.hero h1 { font-size: clamp(4.15rem, 8vw, 7.4rem); }
.hero h1 span { display: block; color: var(--accent); }
.hero p { max-width: 34ch; margin-block: 1.45rem; color: var(--ink); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.actions { gap: .45rem 1rem; }
.button {
  position: relative;
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: .85rem 1.25rem;
  font-size: .87rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}
.button .btn-icon { width: 1.1rem; height: 1.1rem; flex: none; }
.button.large {
  min-height: 3.95rem;
  padding: 1.05rem 1.75rem;
  font-size: 1rem;
  gap: .75rem;
}
.button.large .btn-icon { width: 1.25rem; height: 1.25rem; }
.primary { color: #111c23; isolation: isolate; }
.primary::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - .65rem), calc(100% - .65rem) 100%, 0 100%);
  content: "";
}
.primary:hover { color: #111c23; }
.primary:hover::before { background: #ffd45e; }
.secondary { color: var(--ink); }
.secondary:hover { color: var(--accent); }

.game-grid, .contact {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(1.25rem, 4vw, 3rem);
}
.game-grid, .section { padding-top: clamp(1.5rem, 3.2vw, 3.25rem); border-top: 1px solid var(--line); }
.section { margin-top: clamp(3rem, 7vw, 6rem); }
.description p { max-width: 68ch; color: var(--muted); }
.description .lead { font-weight: 600; font-size: 1.21rem; color: var(--ink); }
.description h3 { margin-top: 1.5rem; }
.features { padding-left: 1.2rem; }
.features li { margin-bottom: .4rem; }
.features li::marker { color: var(--accent); }
.panel { padding: clamp(1.15rem, 3vw, 2rem); background: var(--panel); border: 1px solid var(--line); }
.panel h2, .contact h2 { font-size: clamp(2rem, 3.15vw, 3.1rem); }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; margin-block: 1.25rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }

.gallery, .keyart-grid, .sample-grid { display: grid; gap: .85rem; }
.gallery, .sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.keyart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery a, .asset { background: var(--panel); border: 1px solid var(--line); }
.gallery a:hover, a.asset:hover { border-color: var(--accent); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; }
.asset { display: grid; grid-template-rows: auto 1fr; color: var(--ink); text-decoration: none; }
.asset > img { aspect-ratio: 4 / 3; object-fit: contain; background: #112432; }
.keyart-grid .asset > img { aspect-ratio: 16 / 9; }
.asset-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .75rem;
  padding: .75rem .85rem;
}
.asset-meta strong { font-size: .95rem; font-weight: 700; }
.badge {
  display: inline-block;
  padding: .15rem .5rem;
  border: 1px solid rgba(248, 188, 35, .45);
  background: rgba(248, 188, 35, .12);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fan-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #112432;
  overflow: hidden;
}
.fan-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55));
}
.fan-stage .fan-left { transform: translate(-92%, -48%) rotate(-10deg) scale(.86); z-index: 1; opacity: .92; }
.fan-stage .fan-right { transform: translate(-8%, -48%) rotate(10deg) scale(.86); z-index: 1; opacity: .92; }
.fan-stage .fan-center { transform: translate(-50%, -50%) scale(1.02); z-index: 2; }
.prop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  place-items: center;
  gap: .5rem;
  padding: .75rem;
  aspect-ratio: 4 / 3;
  background: #112432;
}
.prop-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
}
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.section-head-row h2 { margin-bottom: 0; }
.section-intro { max-width: 68ch; margin-bottom: 1.5rem; color: var(--muted); }
.drive-hl {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
}
.downloads-banner .drive-hl {
  color: #08131c;
  font-weight: 800;
  border-bottom: 2px dashed #08131c;
}
.button.dark .drive-hl {
  color: inherit;
  font-weight: inherit;
  border-bottom: 1.5px dashed var(--accent);
  padding-bottom: 1px;
}
.subhead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .85rem;
  margin-bottom: .75rem;
}
.subhead-row h3 { margin: 0; }
.asset-section {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
}
.asset-section h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.15rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
}
.video-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.video-card-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.01rem;
  text-transform: uppercase;
  color: var(--ink);
}
.video-card-title .icon { width: 1.15rem; height: 1.15rem; color: var(--accent); flex: none; }
.video-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.video-card a { margin-top: auto; padding-top: .35rem; font-size: .9rem; font-weight: 600; }
.spoiler-warning {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  background: rgba(248, 188, 35, .07);
  border: 1px solid rgba(248, 188, 35, .32);
  border-left: 3px solid var(--accent);
}
.spoiler-warning .icon { width: 1.35rem; height: 1.35rem; color: var(--accent); flex: none; margin-top: .1rem; }
.spoiler-warning p { margin: 0; color: var(--muted); font-size: .93rem; }
.spoiler-warning strong { color: var(--ink); }
.downloads-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--accent);
  color: #08131c;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.1rem), calc(100% - 1.1rem) 100%, 0 100%);
}
.downloads-copy { max-width: 56ch; }
.downloads-banner h3 {
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  margin-bottom: .5rem;
  color: #08131c;
}
.downloads-banner p { margin: 0; color: #162632; font-weight: 500; }
.button.dark {
  color: var(--ink);
  isolation: isolate;
  flex: none;
}
.downloads-banner .button.dark { max-width: 100%; }
.button.dark::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #08131c;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - .65rem), calc(100% - .65rem) 100%, 0 100%);
  content: "";
}
.button.dark:hover { color: var(--accent); }
.button.dark:hover::before { background: #102433; }
.button.dark:focus-visible { outline-color: #08131c; }

details { margin-top: 1.25rem; padding-top: .8rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
summary span { margin-inline-start: .4rem; color: var(--accent); font-size: .81rem; }
details p { margin-top: .5rem; color: var(--muted); }
.contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.link-list { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; margin: 0; padding: 0; list-style: none; }
.platform-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; vertical-align: middle; }
.platform-link .icon { width: 1.125rem; height: 1.125rem; flex: none; }
.mail-link { vertical-align: baseline; }
.mail-link .icon { transform: translateY(.15em); }
.policy { border-left: 3px solid var(--accent); }
.policy p { max-width: 78ch; color: var(--muted); }
.policy p:last-child { margin-bottom: 0; }
.form-note { margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.footer { margin-top: 2rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 48rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .game-grid, .contact, .keyart-grid, .sample-grid, .video-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .topbar-inner, .topbar nav { gap: .65rem 1rem; }
  .topbar nav { width: 100%; }
  .hero { min-height: 0; }
  .hero-art { height: auto; aspect-ratio: 4 / 3; object-position: 65% 24%; }
  .hero::after { background: linear-gradient(180deg, rgba(8, 19, 28, .15), var(--ground) min(75vw, 27rem)); }
  .hero-copy { padding-block: clamp(11rem, 51vw, 19rem) 2rem; }
  .hero h1 { font-size: clamp(3.25rem, 12.5vw, 5rem); }
}
