/* =====================================================================
   PHEASANTCOUCH.COM: STYLES
   The colors and fonts are the variables in the :root block below.
   Change a value there and every page follows. The rest is layout.
   ===================================================================== */

@font-face { font-family: "Bowlby One SC"; src: url("../assets/fonts/bowlby-one-sc.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Martian Mono"; font-weight: 100 800; src: url("../assets/fonts/martian-mono.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; src: url("../assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; font-style: italic; font-weight: 400 900; src: url("../assets/fonts/schibsted-grotesk-italic.woff2") format("woff2"); font-display: swap; }

/* Layout: a studio ident on warm paper (the logo's own ground), then the featured game as a dark
   "feature presentation" band in that game's colors, then the studio's credits, news and contact.
   Game pages switch the whole page to the game's night palette. */
:root {
  /* Pheasant Couch: sampled from the logo */
  --ink: #231f20;          /* the lettering */
  --olive: #95a826;        /* the twin arcs */
  --olive-deep: #56640a;   /* olive dark enough to read as text on paper */
  --chair: #6e7c09;        /* the chair's shadow side */
  --shirt: #c15725;        /* the orange tee */
  --plum: #5e2a2a;         /* the trousers */
  --shoe: #2e59c6;         /* the sneakers */
  --paper: #fbf8ef;        /* the warm white the logo sits on */
  --paper-2: #f2ecdb;      /* a shade deeper, for panels */
  --cream: #f6f2e7;

  /* Pew Pew Pest Control: from the game's own HUD */
  --night: #130e0a;
  --night-2: #1d1511;
  --tape-black: #1c1d20;
  --tape-red: #b7212d;
  --tape-blue: #1f4d96;
  --tape-green: #24704b;
  --tape-yellow: #ebb31f;
  --crumb: #ffc845;
  --card: #fbf6e8;
  --card-rule: #d2463a;
  --card-line: #b7cfe7;
  --card-ink: #26211b;
  --card-ink-soft: #62594e;

  --font-display: "Bowlby One SC", "Arial Black", Impact, sans-serif;
  --font-label: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* Themes. Studio pages wear paper; game pages and the featured-game band wear night. */
.theme-paper, .band-paper {
  --bg: var(--paper); --bg-2: var(--paper-2); --fg: var(--ink); --fg-soft: #5d5650;
  --line: rgba(35, 31, 32, .14); --link: var(--olive-deep); --focus: var(--olive-deep); --h-shadow: none;
  color-scheme: light;
}
.theme-night, .band-night {
  --bg: var(--night); --bg-2: var(--night-2); --fg: var(--cream); --fg-soft: rgba(246, 242, 231, .74);
  --line: rgba(246, 242, 231, .16); --link: var(--crumb); --focus: var(--crumb); --h-shadow: 0 3px 0 #7c1018;
  color-scheme: dark;
}
.band-ink {
  --bg: var(--ink); --bg-2: #2f2a2b; --fg: var(--paper); --fg-soft: rgba(251, 248, 239, .72);
  --line: rgba(251, 248, 239, .18); --link: var(--olive); --focus: var(--olive); --h-shadow: none;
  color-scheme: dark;
}
.band-paper, .band-night, .band-ink { background: var(--bg); color: var(--fg); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); font: 700 12px/1 var(--font-label); text-decoration: none; }
.skip:focus { top: 12px; }
.config-error { position: sticky; top: 0; z-index: 200; padding: 14px var(--gutter); background: #b7212d; color: #fff; font: 600 15px/1.45 var(--font-body); }
.config-error code { font-family: var(--font-label); font-size: 13px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: 38px; flex: none; }
.brand b { font: 400 17px/1 var(--font-display); letter-spacing: .02em; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 18px; margin: 0; padding: 0; list-style: none; }
.nav a { font: 700 11px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); text-decoration: none; padding: 8px 0; display: inline-block; }
.nav a:hover { color: var(--fg); }
@media (max-width: 680px) {
  .top .wrap { flex-wrap: wrap; padding-block: 8px; gap: 4px 16px; }
  .nav { width: 100%; justify-content: flex-start; gap: 0 14px; }
}

/* ---------- shared bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 700 11.5px/1 var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); }
.eyebrow::before { content: ""; width: 30px; height: 7px; border-block: 2px solid var(--olive); flex: none; } /* the logo's twin arcs */
.section { padding-block: clamp(48px, 7vw, 92px); }
.section + .section, .ad-slot + .section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 34px); }
.sec-head > div { display: grid; gap: 14px; justify-items: start; }
.h2 { margin: 0; font: 400 clamp(32px, 4.6vw, 54px) / .95 var(--font-display); letter-spacing: .005em; color: var(--fg); text-shadow: var(--h-shadow); }
.sec-note { font: 500 15px/1.5 var(--font-body); color: var(--fg-soft); max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 6px 9px 5px; border: 1.5px solid var(--line); border-color: color-mix(in srgb, var(--fg) 34%, transparent); font: 700 10px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); white-space: nowrap; }
.status { font: 600 11px/1.6 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); max-width: 58ch; }

/* studio buttons: round, like the logo */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .78em 1.35em; border: 2px solid var(--fg); border-radius: 999px; background: transparent; color: var(--fg); font: 700 12px/1.25 var(--font-label); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: transform .12s ease, background-color .12s ease, color .12s ease; }
.btn:hover { transform: translateY(-1px); background: var(--fg); color: var(--bg); }
.btn-olive { background: var(--olive); border-color: var(--ink); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn-olive:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-small { min-height: 36px; padding: .5em 1em; font-size: 11px; }

/* game buttons: label-maker tape, from Pew Pew's HUD */
.tape {
  --t: var(--tape-black);
  position: relative; display: inline-flex; align-items: baseline; gap: .7em;
  padding: .66em 1.05em .6em; border: 0; color: var(--cream); background-color: var(--t);
  background-image: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,0) 40%, rgba(0,0,0,.24)),
                    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px);
  font: 700 11.5px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.3), 0 -1px 0 rgba(0,0,0,.55);
  clip-path: polygon(0 3px, 3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px));
}
a.tape, button.tape { cursor: pointer; transition: transform .12s ease, filter .12s ease; }
a.tape:hover, button.tape:hover { transform: translateY(-1px) rotate(-.6deg); filter: brightness(1.12); }
.tape-red { --t: var(--tape-red); }
.tape-blue { --t: var(--tape-blue); }
.tape-green { --t: var(--tape-green); }
.tape-yellow { --t: var(--tape-yellow); color: #2b2109; text-shadow: 0 1px 0 rgba(255,255,255,.45), 0 -1px 0 rgba(0,0,0,.2); }
.tape.big { font-size: 13.5px; padding: 1em 1.45em .95em; white-space: normal; text-align: center; line-height: 1.3; }

/* the big game title, as the game sets it */
.game-title { margin: 0; font: 400 clamp(54px, 9vw, 132px) / .86 var(--font-display); letter-spacing: -.01em; color: var(--cream); text-shadow: 0 4px 0 #7c1018, 0 9px 24px rgba(0,0,0,.6); }
.game-title span { display: block; }
.game-title .sub { font-size: .44em; line-height: 1; margin-top: .22em; color: var(--crumb); text-shadow: 0 3px 0 #5a3b05, 0 8px 20px rgba(0,0,0,.6); letter-spacing: .02em; }

/* =====================================================================
   STUDIO HOMEPAGE
   ===================================================================== */
.ident { padding-block: clamp(26px, 4.5vw, 60px) clamp(30px, 4vw, 52px); text-align: center; }
.ident .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ident h1 { margin: 0; }
.ident-logo { width: clamp(250px, min(82vw, 56vh), 480px); height: auto; aspect-ratio: 1; margin-block: -2%; animation: settle 1.8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes settle { from { transform: scale(.94) rotate(-1.5deg); opacity: .35; } to { transform: none; opacity: 1; } }
.studio-tagline { font: 800 clamp(21px, 2.6vw, 31px) / 1.18 var(--font-body); letter-spacing: -.01em; max-width: 24ch; text-wrap: balance; }
.presents { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; color: var(--fg-soft); text-decoration: none; font: 700 11.5px/1 var(--font-label); letter-spacing: .34em; text-transform: uppercase; }
.presents .line { display: inline-flex; align-items: center; gap: 14px; padding-left: .34em; }
.presents .line::before, .presents .line::after { content: ""; width: 34px; height: 7px; border-block: 2px solid var(--olive); }
.presents svg { width: 18px; height: 18px; animation: nudge 2.4s ease-in-out 1.2s infinite; }
.presents:hover { color: var(--fg); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* featured game: the feature presentation */
.feature { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(52px, 7.5vw, 104px); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 78% 45%, rgba(255, 200, 69, .10), transparent 70%), radial-gradient(ellipse 60% 70% at 10% 100%, rgba(183, 33, 45, .16), transparent 70%); }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.feature-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.feature .game-title { font-size: clamp(50px, 7.2vw, 100px); }
.feature-tagline { font: 800 clamp(19px, 2vw, 24px) / 1.3 var(--font-body); max-width: 30ch; }
.feature-pitch { max-width: 50ch; color: rgba(246, 242, 231, .88); }
.shot-card { position: relative; margin: 0; border: 7px solid var(--card); background: #000; transform: rotate(1.3deg); box-shadow: 0 22px 48px rgba(0, 0, 0, .55); }
.shot-card::before { content: ""; position: absolute; z-index: 2; top: -15px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: rgba(240, 228, 190, .78); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.shot-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot-card figcaption { position: absolute; left: 12px; bottom: -16px; max-width: calc(100% - 24px); }
.shot-card figcaption .tape { white-space: normal; line-height: 1.35; }
@media (max-width: 860px) {
  .feature .wrap { grid-template-columns: minmax(0, 1fr); }
  .shot-card { transform: none; margin-top: 8px; }
}

/* more games (shows once there's a second game) */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.game-card { display: flex; flex-direction: column; min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--fg); text-decoration: none; transition: transform .15s ease; }
.game-card:hover { transform: translateY(-2px); }
.game-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.game-card .body { display: grid; gap: 8px; padding: 16px 18px 20px; }
.game-card h3 { margin: 0; font: 400 24px/1 var(--font-display); }
.game-card p { font-size: 15px; color: var(--fg-soft); }

/* on the couch */
.about-studio { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.about-studio .head { display: grid; gap: 14px; justify-items: start; }
.about-copy { display: grid; gap: 14px; min-width: 0; }
.about-copy p { max-width: 62ch; }
.about-copy p:first-child { font: 700 clamp(19px, 1.8vw, 22px) / 1.35 var(--font-body); }
.credits { margin: 0; padding: 18px 20px 20px; background: var(--bg-2); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); min-width: 0; }
.credits h3 { margin: 0 0 14px; font: 700 11px/1 var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); }
.credits ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.credits li { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 2px dotted color-mix(in srgb, var(--fg) 26%, transparent); }
.credits li:last-child { padding-bottom: 0; border-bottom: 0; }
.credits .role { font: 700 10.5px/1.4 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.credits .who { font: 700 17px/1.3 var(--font-body); color: var(--fg); min-width: 0; }
@media (max-width: 980px) { .about-studio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .about-studio .head { grid-column: 1 / -1; } }
@media (max-width: 680px) { .about-studio { grid-template-columns: minmax(0, 1fr); } }

/* news (both page types) */
.news { margin: 0; padding: 0; list-style: none; display: grid; max-width: 780px; }
.news li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 8px 22px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news li:first-child { border-top: 1px solid var(--line); }
.news .date { font: 700 11px/1.7 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
.news h3 { margin: 0 0 6px; font: 800 19px/1.3 var(--font-body); }
.news p { color: var(--fg-soft); max-width: 62ch; }
.news .game-tag { display: inline-block; margin-top: 8px; font: 700 10px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--link); text-decoration: none; }
.news .game-tag:hover { text-decoration: underline; }
.theme-night .news .date { color: var(--crumb); }
@media (max-width: 560px) { .news li { grid-template-columns: minmax(0, 1fr); } }

/* ad spots */
.ad-slot { padding-block: 10px 30px; }
.ad-slot .wrap { display: grid; gap: 8px; justify-items: center; }
.ad-label { font: 700 10px/1 var(--font-label); letter-spacing: .24em; text-transform: uppercase; color: var(--fg-soft); }
.ad-box { width: 100%; max-width: 970px; }
.ad-box ins.adsbygoogle { min-height: 100px; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.house-ad { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; width: 100%; padding: 18px 22px; border: 2px dashed color-mix(in srgb, var(--fg) 28%, transparent); border-radius: 16px; }
.house-ad p { font: 700 17px/1.4 var(--font-body); max-width: 54ch; }
.theme-night .house-ad { border-radius: 0; }

/* contact + brand kit */
.contact { padding-block: clamp(52px, 7vw, 92px); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px clamp(24px, 5vw, 64px); align-items: start; }
.contact-copy { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.contact-copy .h2 { color: var(--paper); }
.contact-note { color: var(--fg-soft); max-width: 44ch; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-width: 0; }
.email-big { font: 800 clamp(22px, 3vw, 36px) / 1.15 var(--font-body); letter-spacing: -.01em; color: var(--olive); text-decoration: none; overflow-wrap: anywhere; }
.email-big:hover { text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-kit { display: grid; gap: 14px; min-width: 0; }
.brand-kit h3 { margin: 0; font: 700 11px/1 var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); }
.kit-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kit-tiles figure { margin: 0; padding: 14px; border-radius: 16px; display: grid; place-items: center; aspect-ratio: 1; }
.kit-tiles .on-light { background: var(--paper); }
.kit-tiles .on-dark { background: var(--night); border: 1px solid var(--line); }
.kit-tiles img { width: 100%; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.dl { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid color-mix(in srgb, var(--fg) 32%, transparent); border-radius: 999px; color: var(--fg); font: 700 10.5px/1.2 var(--font-label); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.dl:hover { background: var(--fg); color: var(--bg); }
.dl small { font-size: 1em; color: inherit; opacity: .65; }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.foot { border-top: 2px solid var(--fg); padding-block: 28px 44px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; align-items: baseline; }
.foot p { font: 600 11px/1.7 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); max-width: 62ch; }
.foot a { color: var(--fg-soft); }
.foot a:hover { color: var(--fg); }

/* =====================================================================
   GAME PAGE (night)
   ===================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--night) center 60% / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,14,10,.93) 0%, rgba(19,14,10,.74) 48%, rgba(19,14,10,.3) 100%), linear-gradient(180deg, rgba(19,14,10,.2), rgba(19,14,10,0) 30%, rgba(19,14,10,.96) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 8vw, 110px) clamp(40px, 6vw, 80px); }
.hero-main { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.hero .tagline { font: 800 clamp(19px, 2vw, 24px) / 1.3 var(--font-body); max-width: 30ch; margin-top: 4px; }
.hero .lede { max-width: 54ch; font: 500 clamp(15px, 1.5vw, 17px) / 1.55 var(--font-body); color: rgba(246, 242, 231, .9); }
.ticket { position: relative; color: var(--card-ink); background: var(--card); padding: 16px 18px 18px; transform: rotate(1.4deg); box-shadow: 0 14px 30px rgba(0,0,0,.5);
  background-image: linear-gradient(var(--card-rule), var(--card-rule)), repeating-linear-gradient(180deg, transparent 0 23px, var(--card-line) 23px 24px);
  background-size: 100% 2px, 100% calc(100% - 52px); background-position: 0 46px, 0 52px; background-repeat: no-repeat; }
.ticket::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 22px; margin-left: -45px; background: rgba(240,228,190,.75); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ticket h2 { margin: 0 0 18px; font: 800 13px/1 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--card-rule); display: flex; justify-content: space-between; gap: 10px; }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin: 0; font: 500 14px/24px var(--font-body); }
.ticket dt { font: 700 10px/24px var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--card-ink-soft); }
.ticket dd { margin: 0; min-width: 0; }
.ticket .stamp { position: absolute; right: 10px; bottom: -16px; background: var(--card); font: 400 15px/1 var(--font-display); color: rgba(183,33,45,.78); border: 2px solid rgba(183,33,45,.7); padding: 4px 8px; transform: rotate(-9deg); letter-spacing: .04em; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .ticket { transform: none; max-width: 520px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(19,14,10,.8), rgba(19,14,10,.9) 60%, rgba(19,14,10,.97) 100%); }
}

.about-game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.about-game .head { display: grid; gap: 14px; justify-items: start; }
.about-game .copy { display: grid; gap: 14px; }
.about-game .copy p { max-width: 62ch; font-size: 18px; }
.about-game .copy p:first-child { font-size: 20px; font-weight: 600; }
@media (max-width: 720px) { .about-game { grid-template-columns: minmax(0, 1fr); } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--card-ink); background: var(--card); padding: 14px 16px 16px; box-shadow: 0 10px 22px rgba(0,0,0,.42); transform: rotate(var(--r, 0deg));
  background-image: repeating-linear-gradient(180deg, transparent 0 21px, var(--card-line) 21px 22px); background-position: 0 14px; }
.card:nth-child(3n+1) { --r: -.6deg; } .card:nth-child(3n+2) { --r: .5deg; } .card:nth-child(3n) { --r: -.3deg; }
.card .tag { position: absolute; top: -9px; right: 12px; }
.card h3 { margin: 0; font: 800 17px/22px var(--font-body); letter-spacing: .01em; padding: 0 74px 6px 0; border-bottom: 2px solid var(--card-rule); background: var(--card); }
.card p { font: 500 14px/22px var(--font-body); color: var(--card-ink); }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.shot { position: relative; margin: 0; padding: 0; border: 0; background: var(--bg-2); cursor: zoom-in; overflow: hidden; box-shadow: 0 10px 22px rgba(0,0,0,.42); text-align: left; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.03); }
.shot .cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
.shot .cap .tape { white-space: normal; text-align: left; line-height: 1.35; font-size: 10.5px; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(12, 8, 6, .93); }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lightbox img { max-width: min(1280px, 100%); max-height: 78vh; width: auto; box-shadow: 0 20px 60px rgba(0,0,0,.7); }
.lightbox .close { position: absolute; top: 16px; right: 16px; }
.empty { padding: 28px; border: 1.5px dashed var(--line); font: 600 12px/1.7 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); }

.sound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.sound-copy { display: grid; gap: 12px; justify-items: start; }
.sound-copy h3 { margin: 0; font: 800 21px/1.3 var(--font-body); }
.sound-copy p { max-width: 46ch; color: var(--fg-soft); }
.sound-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tracks { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--fg); }
.tracks li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tracks .n { font: 400 21px/1 var(--font-display); color: var(--crumb); font-variant-numeric: tabular-nums; }
.tracks .t b { display: block; font-weight: 700; font-size: 17px; }
.tracks .t span { display: block; margin-top: 2px; font: 500 10.5px/1.6 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); }
@media (max-width: 720px) { .sound { grid-template-columns: minmax(0, 1fr); } }

.press { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 52px); align-items: start; }
.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 22px; font-size: 16px; }
.facts dt { font: 700 11px/1.7 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.facts dd { margin: 0; min-width: 0; }
.press-side { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.press-side .logo-dark { width: 180px; }
.press-side .contact-line b { display: block; font: 700 11px/1.7 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.press-side .contact-line a { font: 600 16px/1.5 var(--font-label); color: var(--crumb); overflow-wrap: anywhere; }
@media (max-width: 720px) { .press { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   PLAIN PAGES (privacy, support, 404)
   ===================================================================== */
.page { padding-block: clamp(40px, 6vw, 76px); }
.doc { max-width: 70ch; }
.doc h1 { margin: 14px 0 8px; font: 400 clamp(34px, 5vw, 58px) / .95 var(--font-display); }
.doc .meta { font: 600 11px/1.7 var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 30px; }
.doc h2 { margin: 34px 0 10px; font: 800 21px/1.3 var(--font-body); }
.doc h3 { margin: 22px 0 8px; font: 800 17px/1.3 var(--font-body); }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; display: grid; gap: 6px; }
.doc p + p { margin-top: 12px; }
.doc .callout { margin-top: 14px; padding: 14px 18px; background: var(--bg-2); border-left: 4px solid var(--olive); border-radius: 0 12px 12px 0; }
.doc kbd { font: 700 12px/1 var(--font-label); padding: .2em .45em; border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); border-bottom-width: 2px; border-radius: 4px; background: var(--bg); }
.doc .back { margin-top: 40px; }

.notfound { padding-block: clamp(48px, 10vw, 120px); text-align: center; }
.notfound .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.notfound img { width: 132px; transform: rotate(-8deg) scale(.82); animation: shrink 2.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes shrink { from { transform: rotate(0) scale(1.15); } to { transform: rotate(-8deg) scale(.82); } }
.notfound h1 { margin: 0; font: 400 clamp(40px, 7vw, 76px) / .95 var(--font-display); }
.notfound p { max-width: 42ch; color: var(--fg-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ident-logo, .presents svg, .notfound img { animation: none; }
  a.tape, button.tape, .btn, .shot img, .game-card { transition: none; }
}
