/* Admiral Games. Cinema-poster editorial after Ferrari's DESIGN.md:
   warm near-black canvas, white type at weight 500, one red used sparingly, sharp corners, no shadows. */
:root {
  --bg: #161314;
  --bg-2: #1f1a1b;
  --bg-alt: #221c1d;   /* slightly lifted bands that mark structure (partners, promo & art) */
  --line: #322b2c;
  --line-2: #4d4445;
  --white: #fff;
  --text: #b3abac;
  --muted: #8f8788;
  --red: #c01a2c;
  --red-press: #9e1424;
  --red-deep: #5a0a12;
  --sans: "Golos Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* 8px ladder */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 48px);
  --top-h: 64px;
  --sec: clamp(var(--s7), 9vw, var(--s9));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--white); font-weight: 500; margin: 0; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.015em; margin-bottom: var(--s4); text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.005em; margin-bottom: var(--s3); }
p { margin: 0 0 1em; }
small { font-size: .8125rem; color: var(--muted); }
dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s2); top: -100px; z-index: 100; background: var(--white); color: var(--bg); padding: var(--s2) var(--s3); }
.skip:focus { top: var(--s2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.label { font-size: .75rem; font-weight: 600; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--white); }
.prose p { max-width: 62ch; }
.caption { margin: var(--s3) 0 0; font-size: .875rem; color: var(--muted); }

/* ---------- Buttons: sharp, uppercase, one red ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  font: 600 .8125rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 0;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn small { font-size: .6875rem; font-weight: 500; letter-spacing: .08em; color: inherit; opacity: .75; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-press); }
.btn--line { border-color: rgba(255, 255, 255, .55); color: var(--white); margin-top: var(--s3); }
.btn--line:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--soon { border: 1px dashed var(--line-2); color: var(--muted); cursor: default; }
.btn--text { min-height: 44px; padding: 0; color: var(--white); }
.btn--text::after { content: "→"; font-size: 1rem; letter-spacing: 0; transition: transform .15s; }
.btn--text:hover::after { transform: translateX(3px); }
.btn--text:hover { color: var(--white); text-decoration: underline; text-underline-offset: .35em; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--red); }
.top__in { max-width: 1440px; margin: 0 auto; height: var(--top-h); padding: 0 var(--gut); display: flex; align-items: center; gap: var(--s5); }
.brand { display: flex; align-items: center; gap: .65rem; margin: 0; color: var(--white); text-decoration: none; font-size: 1.0625rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.brand__ag { height: 24px; width: auto; }
.nav { display: flex; align-self: stretch; gap: var(--s5); margin-left: auto; }
.nav a {
  display: flex; align-items: center; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82); text-decoration: none; white-space: nowrap; transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--white); }
.nav a.is-here { color: var(--white); border-color: var(--white); }

.lang { position: relative; flex: none; }
.lang summary {
  display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 var(--s1); cursor: pointer; list-style: none;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--white);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: var(--s2) 0; background: var(--bg-2); border: 1px solid var(--line); }
.lang a { display: flex; gap: var(--s3); padding: .6rem var(--s4); color: var(--text); text-decoration: none; font-size: .9375rem; }
.lang a b { width: 2em; font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); line-height: 1.9; }
.lang a:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.lang a[aria-current] { color: var(--white); box-shadow: inset 2px 0 var(--red); }

.burger { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; color: var(--white); cursor: pointer; position: relative; flex: none; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .2s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .burger { display: block; }
  .lang { margin-left: auto; }
  .js .nav {
    position: fixed; inset: var(--top-h) 0 auto; flex-direction: column; gap: 0; margin: 0;
    padding: var(--s2) var(--gut) var(--s5); background: var(--bg); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .js .nav a { min-height: 56px; font-size: 1rem; border-bottom: 1px solid var(--line); margin: 0; }
  .js .nav a.is-here { border-color: var(--line); box-shadow: inset 2px 0 var(--red); padding-left: var(--s3); }
  .no-js .top__in { flex-wrap: wrap; height: auto; padding-block: var(--s2); }
  .no-js .nav { order: 3; width: 100%; gap: var(--s4); overflow-x: auto; }
  .no-js .nav a { min-height: 44px; }
}
@media (max-width: 340px) { .brand span { display: none; } }

/* ---------- Hero: full screen, a slow crossfade through the game's art, the studio over it ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: calc(100vh - var(--top-h)); min-height: calc(100svh - var(--top-h));
  padding: var(--s9) 0 clamp(var(--s6), 6vw, var(--s8));
}
.hero__reel { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero__reel::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0, rgba(22, 19, 20, .82) 28%, rgba(22, 19, 20, .2) 62%, rgba(22, 19, 20, .35) 100%),
    linear-gradient(to right, rgba(22, 19, 20, .75) 0, rgba(22, 19, 20, 0) 65%);
}
/* 5 slides × 7s: each fades in, zooms out slowly, fades out under the next. Without motion only the key art shows. */
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: 0; }
.hero__slide:first-child { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__slide { animation: reel 35s linear calc(var(--i) * 7s - 1.4s) infinite both; }
@keyframes reel {
  0% { opacity: 0; transform: scale(1.12); }
  4%, 20% { opacity: 1; }
  24% { opacity: 0; transform: none; }
  100% { opacity: 0; transform: none; }
}

.hero__in { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: var(--s6); align-items: end; text-shadow: 0 1px 24px rgba(0, 0, 0, .45); }
.hero__in h1 { display: flex; align-items: center; gap: .3em; font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -.03em; }
.hero__ag { height: .72em; width: auto; flex: none; }
.hero__tag { max-width: 22ch; margin: var(--s4) 0 0; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--white); text-wrap: balance; }
.hero__lead { max-width: 44ch; margin: var(--s3) 0 var(--s5); font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.55; color: rgba(255, 255, 255, .78); }

/* The game, credited in the corner like a film title */
.hero__game { display: grid; gap: var(--s2); padding-left: var(--s4); border-left: 2px solid var(--red); text-decoration: none; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.hero__game img { width: 100%; margin-bottom: var(--s1); }
.hero__meta { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.hero__game:hover .hero__meta { text-decoration: underline; text-underline-offset: .35em; }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; gap: var(--s5); }
  .hero__game { grid-template-columns: 120px 1fr; gap: 0 var(--s3); align-items: center; max-width: 440px; }
  .hero__game img { grid-row: span 2; margin: 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: var(--s8); }
  .hero__tag { margin-top: var(--s3); }
  .hero .btn--red { flex: 1 1 100%; }
  .hero__game span:last-child { display: none; }
  .hero__game img { grid-row: auto; }
}

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; }
.sec--line { border-top: 1px solid var(--line); }
.sec--alt { background: var(--bg-alt); }
.sec--tight { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6) clamp(var(--s6), 7vw, var(--s9)); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Spec cells: the numbers carry the row, labels underneath */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(var(--s7), 7vw, var(--s8)); border-top: 1px solid var(--line); }
.specs div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s2); padding: var(--s4) var(--s4) 0 0; }
.specs div + div { border-left: 1px solid var(--line); padding-left: var(--s4); }
.specs dd { font-size: clamp(2.25rem, 4.6vw, 4.25rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--white); font-variant-numeric: lining-nums; }
.specs dt { font-size: .875rem; line-height: 1.45; color: var(--muted); max-width: 22ch; }
@media (max-width: 700px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs div:nth-child(3) { border-left: 0; padding-left: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: var(--s4); }
}

/* Hairline rows: a term on the left, the substance on the right */
.rows > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s2) var(--s5); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { color: var(--white); font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.rows dd { line-height: 1.6; }
@media (max-width: 560px) { .rows > div { grid-template-columns: 1fr; } }

/* ---------- The game ---------- */
.game { padding-bottom: var(--sec); border-top: 1px solid var(--line); }
.game__frame { position: relative; height: clamp(300px, 46vw, 680px); overflow: hidden; }
.game__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.game__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0, rgba(22, 19, 20, .55) 30%, rgba(22, 19, 20, 0) 60%), linear-gradient(to bottom, var(--bg) 0, rgba(22, 19, 20, 0) 18%); }
.game__head { position: relative; margin-top: calc(-1 * clamp(110px, 14vw, 230px)); }
.game__head h2 { margin: 0 0 var(--s3); }
.game__head h2 img { width: min(400px, 78%); margin-left: -12px; }
.game__head .lead { max-width: 52ch; margin-bottom: var(--s5); }
.split--game { margin-top: clamp(var(--s7), 8vw, var(--s8)); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.9; }
.facts dd { color: var(--white); font-size: .9375rem; line-height: 1.55; }
.facts dd small { display: block; margin-top: 2px; }
.facts a { text-underline-offset: .25em; text-decoration-color: var(--line-2); }
.facts a:hover { text-decoration-color: currentColor; }
@media (max-width: 900px) { .split--game { grid-template-columns: 1fr; } }

/* Trailer: poster frame, YouTube only after the click */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt__play {
  position: absolute; left: var(--s4); bottom: var(--s4); display: flex; align-items: center; gap: var(--s3);
  min-height: 56px; padding: 0 var(--s5) 0 var(--s4); border: 0; border-radius: 0; background: var(--red); color: #fff; cursor: pointer;
  font: 600 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: background-color .15s;
}
.yt__play svg { width: 22px; height: 22px; }
.yt__play:hover { background: var(--red-press); }
.yt:not(.is-on) { cursor: pointer; }   /* site.js makes the whole poster start the video */
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.yt.is-on .yt__play { display: none; }
@media (max-width: 560px) { .yt__play { left: var(--s3); bottom: var(--s3); min-height: 48px; padding: 0 var(--s4) 0 var(--s3); } }

/* Screenshots: one large frame, the rest in a 3-column strip */
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); margin-bottom: var(--s5); }
.head h2 { margin: 0; }
.head p { margin: 0; color: var(--muted); font-size: .9375rem; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.shots li:first-child { grid-column: span 2; grid-row: span 2; }
.shots button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--bg-2); cursor: zoom-in; }
.shots img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .2s; }
.shots button:hover img { opacity: .82; }
@media (max-width: 700px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots li:first-child { grid-row: auto; }
}

/* Lightbox */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 8, 9, .97); color: var(--white); }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(0, 0, 0, .6); }
.lb img { max-width: min(94vw, 1920px); max-height: 84vh; width: auto; height: auto; }
.lb__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; transition: background-color .15s; }
.lb__btn:hover { background: rgba(255, 255, 255, .16); }
.lb__btn svg { width: 24px; height: 24px; }
.lb__prev { left: var(--s4); top: 50%; translate: 0 -50%; }
.lb__next { right: var(--s4); top: 50%; translate: 0 -50%; }
.lb__close { right: var(--s4); top: var(--s4); }
.lb__count { position: absolute; left: 0; right: 0; bottom: var(--s4); margin: 0; text-align: center; font-size: .8125rem; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 560px) { .lb__prev, .lb__next { top: auto; bottom: var(--s3); translate: none; } .lb__prev { left: var(--s3); } .lb__next { right: var(--s3); } .lb__count { bottom: 30px; } }

/* Promo & art: downloadable files as rows */
.files li a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--line); text-decoration: none; }
.files li:last-child a { border-bottom: 1px solid var(--line); }
.files span { color: var(--white); font-size: 1.125rem; font-weight: 500; }
.files small { white-space: nowrap; font-size: .8125rem; letter-spacing: .02em; }
.files a:hover span { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.files a[download] small::after { content: "  ↓"; color: var(--white); }
.files a:not([download]) small::after { content: "  →"; color: var(--white); }
@media (max-width: 420px) { .files li a { flex-direction: column; gap: var(--s1); } }

/* ---------- Contact: the one red band ---------- */
.contact { padding: var(--sec) 0; color: rgba(255, 255, 255, .88); background: linear-gradient(165deg, var(--red-deep) 0%, #8a1120 45%, var(--red) 100%); }
.contact .label { color: rgba(255, 255, 255, .72); }
.contact h2 { color: #fff; }
.contact p { max-width: 46ch; }
.contact__mail { display: inline-block; margin-bottom: var(--s5); color: #fff; font-size: clamp(1.375rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.contact__mail:hover { text-decoration-thickness: 2px; }
.contact :focus-visible { outline-color: #fff; }
.rows--light > div { border-color: rgba(255, 255, 255, .28); }
.rows--light dt { color: rgba(255, 255, 255, .72); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.9; }
.rows--light dd { color: #fff; }
.rows--light a { text-underline-offset: .25em; }

/* ---------- Footer ---------- */
.foot { padding: var(--s7) 0 var(--s6); font-size: .875rem; color: var(--muted); }
.foot__in { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: var(--s5) var(--s6); }
.foot .brand { margin-bottom: var(--s3); }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.foot nav a { text-decoration: none; color: var(--text); }
.foot nav a:hover { color: var(--white); }
.foot__langs a[aria-current] { color: var(--white); }
.foot__note p:last-child { margin: 0; }
@media (max-width: 900px) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__brand, .foot__note { grid-column: 1 / -1; } }

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