/* PixalCream Studios - site styles. Shared by every page. */
:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(14, 21, 38, .82);
  --line: #1c2740;
  --text: #dfe6f3;
  --muted: #8d9ab5;
  --accent: #ff8a3d;      /* Cindral orange */
  --accent-2: #4ec9ff;    /* scan-cube blue */
  --radius: 0.875rem;
  --max: 70rem;           /* content column */
}

* { box-sizing: border-box; }
/* big screens: 16px up to 1600 px wide, then grows with the window (about 27px at 3840) so type and layout stay readable on 4K */
html { font-size: clamp(16px, calc(16px + (100vw - 1600px) * 0.005), 28px); }
html { scroll-behavior: smooth; scroll-padding-top: 4.75rem; }
html {
  background:
    radial-gradient(ellipse 60% 45% at 12% 8%, rgba(70, 90, 210, .14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 55%, rgba(255, 138, 61, .07), transparent 70%),
    radial-gradient(ellipse 55% 40% at 30% 95%, rgba(78, 201, 255, .07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 1.0625rem/1.65 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(5, 7, 13, .78);
  backdrop-filter: blur(0.625rem);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 3.75rem; }
.brand { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); font-size: 0.9375rem; }
.brand b { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 1.625rem; align-items: center; }
.nav a { color: var(--muted); font-size: 0.9375rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.on { color: var(--text); box-shadow: 0 2px 0 var(--accent); }
.menu { display: none; background: none; border: 0; width: 2.5rem; height: 2.5rem; cursor: pointer; padding: 0; }
.menu span, .menu span::before, .menu span::after { display: block; width: 1.375rem; height: 2px; background: var(--text); margin: 0 auto; position: relative; content: ""; }
.menu span::before { position: absolute; top: -0.4375rem; }
.menu span::after { position: absolute; top: 0.4375rem; }
.nav .btn { color: #1a0d02; }

.btn {
  display: inline-block; padding: 0.6875rem 1.375rem; border-radius: 62.4375rem;
  background: var(--accent); color: #1a0d02; font-weight: 700; font-size: 0.9375rem;
  border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0.5rem 1.5rem rgba(255, 138, 61, .35); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent-2); box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 7.5rem 0 5rem; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,7,13,.95) 0%, rgba(5,7,13,.7) 45%, rgba(5,7,13,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    url("assets/hero.jpg") center / cover no-repeat;
}
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 0.8125rem; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.25rem); line-height: 1.02; margin: 0.875rem 0 1.125rem; letter-spacing: -.01em; }
.hero h1 span { color: var(--accent); }
.hero p.lead { max-width: 35rem; font-size: 1.25rem; color: #c3cde2; margin: 0 0 1.875rem; }
.cta { display: flex; gap: 0.875rem; flex-wrap: wrap; }
.badges { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-top: 2.125rem; }
.badge { font-size: 0.8125rem; padding: 0.3125rem 0.75rem; border: 1px solid var(--line); border-radius: 62.4375rem; color: var(--muted); background: rgba(14,21,38,.7); }

/* ---------- sections ---------- */
section { padding: 6rem 0; }
section.alt { background: rgba(10, 15, 28, .55); border-block: 1px solid var(--line); }
.kicker { color: var(--accent-2); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 0.75rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.12; margin: 0.625rem 0 1.125rem; letter-spacing: -.01em; }
.sub { color: var(--muted); max-width: 42.5rem; margin: 0 0 2.75rem; }

/* feature cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.625rem; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #2f4270; transform: translateY(-3px); }
.card .ico { font-size: 1.75rem; margin-bottom: 0.625rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* screenshot gallery */
.shots { display: grid; gap: 0.875rem; grid-template-columns: repeat(3, 1fr); }
.shots a { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16/9; display: block; }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.shots a:hover img { transform: scale(1.06); }
.shots a.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* split block (Ship Minds) */
.split { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 1.375rem 0 0; }
.checks li { padding: 0.4375rem 0 0.4375rem 1.875rem; position: relative; color: #c3cde2; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* guided play steps */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14.375rem, 1fr)); margin: 2.5rem 0 0; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 1.5rem; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 50%; background: rgba(255,138,61,.15); color: var(--accent); font-weight: 700; margin-bottom: 0.75rem; }
.step h3 { margin: 0 0 0.375rem; font-size: 1.1875rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
.callout { margin-top: 2.25rem; padding: 1.375rem 1.625rem; border: 1px solid rgba(78,201,255,.35); background: rgba(78,201,255,.06); border-radius: var(--radius); color: #c3cde2; }
.callout b { color: var(--accent-2); }

/* ship mind cores */
.subhead { font-size: 1.5rem; margin: 4rem 0 0.375rem; }
.cores { display: grid; gap: 1.125rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); margin-top: 1.375rem; }
.core { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent-2); border-radius: var(--radius); padding: 1.375rem 1.5rem; display: flex; flex-direction: column; gap: 0.375rem; }
.core.later { border-left-color: #3a4766; opacity: .92; }
.core h3 { margin: 0; font-size: 1.375rem; letter-spacing: .06em; }
.core h3 small { font-size: 0.875rem; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 0.375rem; }
.core .vibe { color: var(--accent); font-size: 0.8125rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.core p { margin: 0.25rem 0 0; color: #b6c1d9; font-size: 0.9688rem; }
.core q { display: block; margin-top: auto; padding-top: 0.75rem; color: var(--accent-2); font-style: italic; font-size: 0.9375rem; quotes: "\201C" "\201D"; }
.pill { align-self: flex-start; font-size: 0.6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 0.625rem; border-radius: 62.4375rem; }
.pill.now { background: rgba(78,201,255,.12); color: var(--accent-2); }
.pill.soon { background: rgba(141,154,181,.14); color: var(--muted); }

/* heritage / races */
.races { display: grid; gap: 1.125rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); margin-top: 1.75rem; }
.race { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; transition: border-color .2s, transform .2s; }
.race:hover { border-color: #2f4270; transform: translateY(-3px); }
.race h3 { margin: 0; font-size: 1.3125rem; }
.race .epithet { color: var(--accent); font-size: 0.8125rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.race p { margin: 0; color: #b6c1d9; font-size: 0.9688rem; }
.race .trait { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.9062rem; color: var(--muted); }
.race .trait b { color: var(--text); }
.race .lean { font-size: 0.8125rem; color: var(--muted); }

/* roadmap */
.road { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr)); }
.road .card.next { border-color: rgba(78,201,255,.5); }
.tag.next { background: rgba(78,201,255,.12); color: var(--accent-2); }
.road .card.now { border-color: rgba(255,138,61,.5); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 0.625rem; border-radius: 62.4375rem; margin-bottom: 0.75rem; }
.tag.now { background: rgba(255,138,61,.15); color: var(--accent); }
.tag.later { background: rgba(78,201,255,.12); color: var(--accent-2); }
.road ul { margin: 0.5rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.road li { margin: 0.3125rem 0; }
.note { color: var(--muted); font-size: 0.875rem; margin-top: 1.375rem; }

/* studio + contact */
.studio { text-align: center; max-width: 47.5rem; margin-inline: auto; }
.studio p { color: #b6c1d9; }
.links { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }

footer { border-top: 1px solid var(--line); padding: 2.125rem 0; color: var(--muted); font-size: 0.875rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- page heroes (inner pages) ---------- */
.pagehero { padding: 9.375rem 0 1.875rem; }
.pagehero h1 { font-size: clamp(2rem, 5vw, 3.625rem); line-height: 1.08; margin: 0.75rem 0 1rem; letter-spacing: -.01em; max-width: 55rem; }
.pagehero .lead { color: #c3cde2; font-size: 1.1875rem; max-width: 45rem; margin: 0; }
.pagehero + section { padding-top: 2.5rem; }

/* home: picture tiles */
.tiles { display: grid; gap: 1.125rem; grid-template-columns: repeat(auto-fit, minmax(14.375rem, 1fr)); }
.tile { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.375rem; color: var(--text);
  background: linear-gradient(180deg, transparent 35%, rgba(5,7,13,.92) 100%), var(--img) center / cover; transition: transform .25s, border-color .25s; }
.tile:hover { transform: translateY(-0.25rem); border-color: var(--accent); text-decoration: none; }
.tile b { font-size: 1.3125rem; line-height: 1.2; }
.quote { margin: 0; padding: 2.125rem; border-radius: var(--radius); border: 1px solid rgba(78,201,255,.35); background: rgba(78,201,255,.06); }
.quote q { display: block; font-size: 1.375rem; font-style: italic; color: var(--accent-2); quotes: "\201C" "\201D"; }
.quote figcaption { margin-top: 0.875rem; color: var(--muted); font-size: 0.875rem; letter-spacing: .1em; text-transform: uppercase; }
.cta-band { text-align: center; }
.cta-band .sub { margin-inline: auto; }

/* worlds */
.worlds { display: grid; gap: 1.125rem; grid-template-columns: repeat(auto-fill, minmax(28.75rem, 1fr)); }
.world { display: grid; grid-template-columns: 6.875rem 1fr; gap: 1.5rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.world h3 { margin: 0.5rem 0 0.375rem; font-size: 1.375rem; }
.world h3 small { font-size: 0.875rem; color: var(--muted); font-weight: 400; margin-left: 0.375rem; }
.world p { margin: 0; color: #b6c1d9; font-size: 0.9688rem; }
.orb { width: 6.875rem; height: 6.875rem; border-radius: 50%; position: relative; box-shadow: inset -1.125rem -0.75rem 1.875rem rgba(0,0,0,.75); }
.orb.tellurin { background: radial-gradient(circle at 35% 30%, #9fd3ff 0 6%, transparent 7%), radial-gradient(circle at 60% 60%, #3e7d4a 0 18%, transparent 19%), radial-gradient(circle at 30% 65%, #c9b27a 0 10%, transparent 11%), radial-gradient(circle at 40% 35%, #2f78c4, #0d2c57); box-shadow: inset -1.125rem -0.75rem 1.875rem rgba(0,0,0,.7), 0 0 1.625rem rgba(78,160,255,.35); }
.orb.kheron { width: 5rem; height: 5rem; margin: 0.9375rem; background: radial-gradient(circle at 60% 40%, rgba(255,120,60,.6) 0 4%, transparent 5%), radial-gradient(circle at 35% 35%, #a49b92, #3a3532); }
.orb.kheron::after { content: ""; position: absolute; inset: 20% 30% 30% 45%; border-top: 2px solid rgba(255,120,60,.8); transform: rotate(35deg); }
.orb.cindral { background: radial-gradient(circle at 35% 30%, #ff9a52, #9c3d17 60%, #4a1708); box-shadow: inset -1.125rem -0.75rem 1.875rem rgba(0,0,0,.7), 0 0 1.5rem rgba(255,138,61,.3); }
.orb.hesk { width: 5.625rem; height: 5.625rem; margin: 0.625rem; background: radial-gradient(circle at 35% 30%, #ffffff, #b9dcef 45%, #4e7b99); box-shadow: inset -1rem -0.625rem 1.625rem rgba(0,0,0,.6), 0 0 1.375rem rgba(190,230,255,.3); }
.orb.orvane { background: repeating-linear-gradient(170deg, #c79a64 0 0.5625rem, #8d5c35 0.5625rem 0.9375rem, #e3c28f 0.9375rem 1.375rem, #a06f45 1.375rem 1.875rem); }
.orb.saelis { background: repeating-linear-gradient(168deg, #b9c7d8 0 0.5rem, #7f92ad 0.5rem 0.875rem, #d8e0ea 0.875rem 1.375rem); }
.orb.saelis::after { content: ""; position: absolute; left: -32%; right: -32%; top: 44%; height: 14%; border-radius: 50%; border: 3px solid rgba(220,230,245,.7); transform: rotate(-14deg); box-shadow: 0 0 0 0.25rem rgba(220,230,245,.15); }
.orb.veyra { background: radial-gradient(circle, #fffbe6 0 30%, #ffd36b 55%, #ff8a3d); box-shadow: 0 0 2.5rem rgba(255,200,90,.7), 0 0 5.625rem rgba(255,138,61,.35); }
.worlds + .callout { margin-top: 1.875rem; }

.banner { margin: 0 0 1.875rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.banner img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.banner figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.5rem 1rem; background: linear-gradient(transparent, rgba(5,7,13,.9)); color: #c3cde2; font-size: 0.9375rem; }

/* next-page link */
section.nextpage { padding: 0.625rem 0 5rem; }
.nextcard { display: block; padding: 1.625rem 1.875rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); font-size: 1.5rem; font-weight: 700; color: var(--text); transition: border-color .2s; }
.nextcard span { display: block; font-size: 0.75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.25rem; }
.nextcard:hover { border-color: var(--accent); text-decoration: none; }
.footnav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footnav a { color: var(--muted); }

/* ---------- small screens ---------- */
.nav a, .brand { white-space: nowrap; }
/* the full link row needs about 920 px; below that the links fold into the menu button */
@media (max-width: 940px) {
  .menu { display: block; order: 2; }
  .nav { margin-left: auto; margin-right: 0.625rem; }
  .nav a:not(.btn) { display: none; }
  .nav-open .nav { position: absolute; top: 3.75rem; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.125rem; background: rgba(5,7,13,.97); border-bottom: 1px solid var(--line); }
  .nav-open .nav a:not(.btn) { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav-open .nav .btn { margin-top: 0.875rem; text-align: center; }
}
@media (max-width: 860px) {
  .worlds { grid-template-columns: 1fr; }
  .world { grid-template-columns: 1fr; justify-items: start; }
  .pagehero { padding-top: 6.875rem; }
  .brand { font-size: 0.8125rem; white-space: nowrap; }
  .nav .btn { padding: 0.5rem 0.875rem; font-size: 0.8125rem; white-space: nowrap; }
  .split { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots a.big { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
  section { padding: 4rem 0; }
  .hero { min-height: 80vh; background-position: 65% center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* trailer embed */
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 60rem; margin: 1.75rem auto 0; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.video-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5.25rem; height: 5.25rem; margin: -2.625rem 0 0 -2.625rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%231a0d02'/%3E%3C/svg%3E") center / 2.875rem no-repeat;
  box-shadow: 0 0.5rem 1.875rem rgba(255, 138, 61, .45); transition: transform .2s; }
.video-play:hover img, .video-play:focus-visible img { opacity: 1; }
.video-play:hover::after, .video-play:focus-visible::after { transform: scale(1.08); }

/* studio: team, art desk and crew (filled by Tools/website_showcase.py, hidden while empty) */
.people { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.625rem; display: flex; flex-direction: column; gap: 0.375rem; }
.person .face { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; border: 2px solid var(--accent);
  display: grid; place-items: center; font-size: 1.875rem; font-weight: 700; color: var(--accent); background: rgba(255,138,61,.1); }
.person h3 { margin: 0; font-size: 1.375rem; }
.person .role { color: var(--accent); font-size: 0.8125rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.person p { margin: 0.25rem 0 0; color: #b6c1d9; font-size: 0.9688rem; }
.person a { margin-top: auto; padding-top: 0.625rem; font-size: 0.9375rem; }
.artgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr)); }
.artgrid figure { margin: 0; }
.artgrid a { display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; background: #000; }
.artgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.artgrid a:hover img { transform: scale(1.05); }
.artgrid figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9062rem; }
.crew { list-style: none; padding: 0; margin: 0; columns: 3 13.75rem; column-gap: 1.75rem; }
.crew li { break-inside: avoid; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.crew span { display: block; color: var(--muted); font-size: 0.875rem; }

/* small phones: the gallery's odd last picture spans the row instead of sitting alone */
@media (max-width: 860px) { .shots a:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16/9; } }

/* page-hero topic line inside the h1 (Oct 28 SEO pass) */
.pagehero h1 .kicker { display: block; margin-bottom: 0.75rem; line-height: 1.4; }

/* press kit */
.facts { list-style: none; padding: 0; margin: 1.75rem 0 0; max-width: 47.5rem; }
.facts li { display: flex; gap: 1.125rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); color: #b6c1d9; }
.facts b { flex: 0 0 7.5rem; color: var(--text); }
.kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr)); gap: 1.125rem; margin-top: 1.75rem; }
.kit figure { margin: 0; border: 1px solid var(--line); border-radius: 0.75rem; overflow: hidden; background: rgba(10, 15, 28, .55); }
.kit img { display: block; width: 100%; height: auto; }
.kit figcaption { padding: 0.625rem 0.875rem; font-size: 0.875rem; color: var(--muted); }

/* bigger tap targets on phones (Oct 28 SEO pass) */
.footnav a { display: inline-block; padding: 0.75rem 0.375rem; }
@media (max-width: 940px) {
  .menu { flex: 0 0 3rem; width: 3rem; height: 3rem; }
  .brand { display: inline-block; padding: 0.75rem 0; }
  .nav .btn { min-height: 2.75rem; display: inline-flex; align-items: center; }
}
@media (max-width: 420px) {
  .nav { margin-right: 0; }
  .nav .btn { padding-left: 0.625rem; padding-right: 0.625rem; font-size: 0.8125rem; }
}
@media (max-width: 380px) { .brand { font-size: 0.875rem; } }

/* ---------- very wide screens (4K): wider column, shorter hero, so the first screen shows more than the picture ---------- */
@media (min-width: 1601px) {
  :root { --max: 78rem; }
  .hero { min-height: min(92vh, 52rem); }
  .hero p.lead { max-width: 40rem; }
  .sub { max-width: 46rem; }
  .pagehero .lead { max-width: 48rem; }
  .shots, .grid, .steps, .tiles, .road { gap: 1.5rem; }
}

/* ---------- shared menu: Game dropdown (hover and keyboard focus), flat list on phones ---------- */
.has-sub { position: relative; }
.has-sub > a { padding-right: .875rem; }
.submenu { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: -.75rem; min-width: 12rem; display: none; background: rgba(8, 12, 22, .98); border: 1px solid var(--line); border-radius: .75rem; box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .6); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: block; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1rem; }  /* no hover gap between link and panel */
.submenu a { display: block; padding: .5rem .75rem; border-radius: .5rem; color: var(--text); font-size: .9375rem; white-space: nowrap; }
.submenu a::after { display: none !important; }
.submenu a:hover, .submenu a[aria-current] { background: rgba(78, 201, 255, .1); text-decoration: none; }
.submenu a[aria-current] { box-shadow: inset .1875rem 0 0 var(--accent); }
.nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 940px) {
  .has-sub > a { padding-right: 0; }
  .submenu { display: none; position: static; min-width: 0; padding: 0 0 0 1rem; background: none; border: 0; box-shadow: none; }
  .nav-open .submenu { display: block; }
  .nav-open .submenu li:first-child { display: none; }  /* "Overview" repeats the Game link above it */
  .nav-open .submenu a { padding: .75rem 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
  .has-sub::after { display: none; }
}
.has-sub > a::before { content: ""; position: absolute; right: 0; top: 50%; margin-top: -.125rem; border: .25rem solid transparent; border-top-color: currentColor; border-bottom: 0; }
@media (max-width: 940px) { .has-sub > a::before { display: none; } }
/* phones: with the menu folded, the empty Game slot must not take a flex gap, or the menu button is pushed off a 375 px screen */
@media (max-width: 940px) { body:not(.nav-open) .nav > .has-sub { display: none; } }
@media (max-width: 420px) {
  .topbar .wrap { width: calc(100% - 2rem); }
  .menu { flex-basis: 2.75rem; width: 2.75rem; height: 2.75rem; }
}
@media (max-width: 380px) { .brand { font-size: 0.8125rem; } }

/* ---------- next step at the foot of every page: next card + Wishlist ---------- */
.nextrow { display: flex; gap: 1rem; align-items: stretch; flex-wrap: wrap; }
.nextrow .nextcard { flex: 1 1 20rem; }
.nextrow .btn { align-self: center; padding: 1rem 1.75rem; font-size: 1.0625rem; }
@media (max-width: 860px) { .nextrow .btn { flex: 1 1 100%; text-align: center; } }

/* feature cards: the first sentence reads as the headline, the rest is lighter; two columns so lines stay short */
.features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.features .card p { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.features .card p strong { display: block; color: var(--text); font-size: 1.0625rem; font-weight: 700; margin-bottom: .375rem; line-height: 1.45; }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }

/* screenshots: bigger on wide windows */
@media (min-width: 1200px) { .shots { gap: 1rem; } }
/* footer: copyright left, links right, status line underneath */
footer .wrap { align-items: baseline; }
.footnav { margin-left: auto; justify-content: flex-end; }
footer .wrap > span:last-child { flex: 1 1 100%; font-size: .8125rem; }
/* focus must always be visible, also on buttons and cards */
a:focus-visible, button:focus-visible, .nextcard:focus-visible, .video-play:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.facts span { min-width: 0; overflow-wrap: anywhere; }

/* trailer first on the game page, store line under the main button */
.cta-note { margin: .875rem 0 0; font-size: .875rem; color: #b6c1d9; }
section.trailer-top { padding: 1.5rem 0 3rem; }
section.trailer-top .video-frame { margin-top: 0; max-width: 60rem; }
.pagehero .cta { margin-top: 1.5rem; }

/* pillars: two sentences visible, the rest behind a native <details> */
details.more { margin-top: .75rem; }
details.more summary, .faq summary { cursor: pointer; color: var(--accent-2); font-weight: 700; list-style: none; }
details.more summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
details.more summary::before, .faq summary::before { content: "+"; display: inline-block; width: 1.25rem; color: var(--accent); font-weight: 800; }
details[open] > summary::before { content: "\2212"; }
details.more p { margin: .625rem 0 0; }
.faq { display: grid; gap: .625rem; max-width: 52rem; margin-top: 1.5rem; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.faq summary { color: var(--text); font-size: 1.0625rem; }
.faq details p { margin: .625rem 0 0 1.25rem; color: #c3cde2; }

/* press kit downloads */
.dl { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 1.75rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.dl > b { color: var(--text); margin-right: .25rem; }
.dl-shots { flex: 1 1 100%; color: var(--muted); font-size: .9375rem; }
.dl-shots a { display: inline-block; margin: .25rem .875rem .25rem 0; }
