/* Beach Labs site. A plain studio look for the header, footer and studio pages; each game's
   pages add a theme class (theme-porch, theme-regency, theme-museum, theme-ink, theme-drama) that brings that game's
   own colours and type. Every font is self-hosted from /fonts/ (OFL, licences beside them). */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/AtkinsonHyperlegible-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('/fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('/fonts/DMSerifDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('/fonts/DMSerifDisplay-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Studio type: Archivo (variable width and weight) for the header, footer and home page, and
   Playfair Display Black for the featured game's title, the face Gallery Sort uses. */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/PlayfairDisplay-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

/* Studio tokens (--s-*) style the header and footer on every page and are never themed.
   Page tokens (--bg, --text, ...) start as the studio look and each theme overrides them. */
:root {
  --s-bg: #f6f5f2;
  --s-surface: #ffffff;
  --s-text: #1d2329;
  --s-muted: #4f5963;
  --s-accent: #1a5f8a;
  --s-line: #e4e2dc;
  /* The header, footer and home page frame: near-black ink with a gilt accent, in both modes. */
  --s-ink: #0b0c0f;
  --s-ink-raise: #15171c;
  --s-ink-text: #f4f2ee;
  --s-ink-muted: #9a9ca3;
  --s-ink-line: #26282e;
  --s-gilt: #e2c27a;

  --bg: var(--s-bg);
  --surface: var(--s-surface);
  --text: var(--s-text);
  --muted: var(--s-muted);
  --accent: var(--s-accent);
  --accent-text: #ffffff;
  --line: var(--s-line);
  --tint: #ebe8e1;
  --body-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 800;
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --s-bg: #15191d;
    --s-surface: #1f252b;
    --s-text: #eef1f4;
    --s-muted: #a9b3bd;
    --s-accent: #7cc0ea;
    --s-line: #2e363e;
    --accent-text: #0f1a22;
    --tint: #262d34;
  }
}

/* Porch Blocks: sand, sea and driftwood, with the same large, legible type as the game. */
.theme-porch {
  --bg: #f7f2e8;
  --surface: #fffdf8;
  --text: #243744;
  --muted: #4c5d68;
  --accent: #1f6f9f;
  --accent-text: #ffffff;
  --line: #dccfb6;
  --tint: #cfe8f7;
  --body-font: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  --display-font: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  --display-weight: 700;
  --cta-bg: #111111;
  --cta-text: #ffffff;
  --cta-radius: 14px;
}
/* Merge & Prejudice: the game's Regency palette of sage, cream, dusty rose and gold. */
.theme-regency {
  --bg: #f6f1e7;
  --surface: #fffcf5;
  --text: #2b2a26;
  --muted: #5a594f;
  --accent: #4f6a4c;
  --accent-text: #ffffff;
  --line: #e6dcc8;
  --tint: #d9e0d0;
  --gold: #c9a24a;
  --display-font: 'Cormorant Garamond', Georgia, serif;
  --display-weight: 600;
}
/* Gallery Sort: gallery walls, walnut frames and a brass accent. */
.theme-museum {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --text: #2a2622;
  --muted: #574f47;
  --accent: #7a5c34;
  --accent-text: #ffffff;
  --line: #e4dfd6;
  --tint: #ebe5da;
  --frame: #6b4f2e;
  --display-font: 'DM Serif Display', Georgia, serif;
  --display-weight: 400;
  --radius: 4px;
  --cta-bg: var(--text);
  --cta-text: var(--bg);
  --cta-radius: 4px;
}
/* Inkpass: the app's Paper Day light theme (white, #4D7085 accent text, navy on baby blue
   buttons); its Webtoon Night dark theme follows below. */
.theme-ink {
  --bg: #ffffff;
  --surface: #f3f3f6;
  --text: #141418;
  --muted: #5f5f69;
  --accent: #4d7085;
  --accent-text: #ffffff;
  --line: #e8e8ed;
  --tint: #e3f2fc;
  --cta-bg: #8ccbf2;
  --cta-text: #0d2b40;
  --cta-radius: 12px;
  --radius: 16px;
}
/* Dramapass: the app's near-black with one coral accent, Bebas Neue headings over Manrope (the
   approved mockups). The app is dark only, so its pages are dark in both modes. White on coral is
   below 4.5:1, so buttons carry ink on coral (6:1), and coral links on the black are 6:1. */
.theme-drama {
  --bg: #0b0b0f;
  --surface: #17171b;
  --text: #f5f5f7;
  --muted: #a8a8b0;
  --accent: #ff4a5f;
  --accent-text: #0b0b0f;
  --line: #2a2a31;
  --tint: #2a1418;
  --display-font: 'Bebas Neue', 'Archivo', system-ui, sans-serif;
  --display-weight: 400;
  --cta-bg: #ff4a5f;
  --cta-text: #0b0b0f;
  --cta-radius: 10px;
  --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  .theme-ink {
    --bg: #0e0e11;
    --surface: #1a1a1f;
    --text: #f4f4f6;
    --muted: #a5a5ae;
    --accent: #8ccbf2;
    --accent-text: #0d2b40;
    --line: #24242b;
    --tint: #16232d;
  }
  .theme-porch {
    --bg: #1f1b17;
    --surface: #2a2420;
    --text: #f2ebdf;
    --muted: #b7ab98;
    --accent: #e6b84d;
    --accent-text: #2a2015;
    --line: #4a4034;
    --tint: #1d3a4d;
    --cta-bg: #f2ebdf;
    --cta-text: #1f1b17;
  }
  .theme-regency {
    --bg: #1f241e;
    --surface: #2b332a;
    --text: #f3eee2;
    --muted: #c3bfb1;
    --accent: #9db89a;
    --accent-text: #1f241e;
    --line: #3d4a3b;
    --tint: #2f3a2d;
    --gold: #e0be6a;
  }
  .theme-museum {
    --bg: #1c1a17;
    --surface: #26231f;
    --text: #f1ece4;
    --muted: #c4bcb0;
    --accent: #d1ab75;
    --accent-text: #1c1a17;
    --line: #3a352f;
    --tint: #2c2823;
    --frame: #4a3720;
  }
}

* { box-sizing: border-box; }
html { font-size: 106.25%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.6;
}
.theme-porch { font-size: 1.06rem; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus-visible { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display-font); font-weight: var(--display-weight); line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0 0 1rem; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); margin: 0 0 1.25rem; letter-spacing: -0.01em; }
.theme-regency h2, .theme-museum h2 { font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: 0; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; font-family: var(--body-font); font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 36ch; }
.muted { color: var(--muted); }

.container { max-width: 1168px; margin: 0 auto; padding: 0 24px; }
.section { padding-block: 4rem; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Studio header and footer: the same near-black frame on every page, in Archivo, whatever the
   page's theme. On the home page the header floats over the featured game. */
.studio-bar { background: var(--s-ink); color: var(--s-ink-text); font-family: 'Archivo', 'Manrope', system-ui, sans-serif; }
.studio-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; font-stretch: 125%; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: inherit; text-decoration: none; min-height: 44px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.studio-bar nav { display: flex; flex-wrap: wrap; }
.studio-bar nav a { color: inherit; opacity: 0.85; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 0.8rem 0.8rem; }
.studio-bar nav a:hover, .studio-bar nav a:focus-visible, .studio-bar nav a[aria-current] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.studio-bar :focus-visible, .studio-footer :focus-visible { outline-color: var(--s-gilt); }
.studio-footer { background: var(--s-ink); color: var(--s-ink-muted); font-family: 'Archivo', 'Manrope', system-ui, sans-serif; font-size: 0.88rem; }
.studio-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.studio-footer a { color: var(--s-ink-text); text-decoration: none; }
.studio-footer a:hover, .studio-footer a:focus-visible { text-decoration: underline; }
.studio-footer .copy { margin-left: auto; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.75rem 1.5rem;
  background: var(--accent); color: var(--accent-text);
  font-weight: 800; text-decoration: none; border-radius: 999px;
}
.theme-museum .button { border-radius: 4px; }
.button.soon { background: var(--cta-bg, var(--accent)); color: var(--cta-text, var(--accent-text)); border-radius: var(--cta-radius, 999px); cursor: default; }

/* Studio home: a dark catalogue in both modes. The featured game fills the first screen under a
   floating header, a rail beside it links to the other games, then every game is a poster with
   its platform and money facts, the studio's three promises, and notes from inside the games. */
.home {
  --bg: var(--s-ink); --surface: var(--s-ink-raise); --text: var(--s-ink-text); --muted: var(--s-ink-muted);
  --line: var(--s-ink-line); --accent: var(--s-gilt); --accent-text: var(--s-ink);
  --body-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
.home .container { max-width: 1280px; padding-left: 40px; padding-right: 40px; }
.home .studio-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; background: transparent; }
.home .studio-bar .container { padding-top: 1rem; }
.cond { font-family: 'Archivo', sans-serif; font-stretch: 70%; font-weight: 800; text-transform: uppercase; }
.eyebrow { display: block; font: 700 0.72rem 'Archivo', sans-serif; letter-spacing: 0.24em; text-transform: uppercase; color: var(--s-gilt); }

.stage { position: relative; min-height: 780px; display: flex; align-items: flex-end; overflow: hidden; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% 40%; }
.stage::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 12, 15, 0.9) 0%, rgba(11, 12, 15, 0.7) 30%, rgba(11, 12, 15, 0.1) 62%, rgba(11, 12, 15, 0) 75%),
    linear-gradient(180deg, rgba(11, 12, 15, 0.7) 0%, rgba(11, 12, 15, 0) 20%, rgba(11, 12, 15, 0) 55%, rgba(11, 12, 15, 0.9) 90%, var(--s-ink) 100%);
}
.stage-body { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-bottom: 44px; }
.stage h1 { font: 900 clamp(4.5rem, 10vw, 8.3rem)/0.86 'Playfair Display', Georgia, serif; letter-spacing: -0.03em; margin: 1rem 0 0; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.35); }
.stage p { max-width: 32rem; margin: 1.1rem 0 0; font-size: 1.08rem; line-height: 1.5; color: #dcdad5; }
.stage-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.pill { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 0.82rem 'Archivo', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--s-ink-text); border: 1px solid rgba(255, 255, 255, 0.55); }
.pill.solid { background: #fff; color: var(--s-ink); border-color: #fff; }
.pill.soon { cursor: default; }
.home a.pill:hover, .home a.pill:focus-visible { background: rgba(255, 255, 255, 0.1); }
.home a.pill.solid:hover, .home a.pill.solid:focus-visible { background: rgba(255, 255, 255, 0.85); }
.rail { display: flex; gap: 12px; align-items: flex-end; }
.rail a { width: 108px; display: grid; gap: 8px; font: 600 0.66rem/1.3 'Archivo', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s-ink-muted); text-decoration: none; }
.rail .poster { border-radius: 8px; outline: 1px solid rgba(255, 255, 255, 0.18); }
.rail a[aria-current] { color: var(--s-ink-text); }
.rail a[aria-current] .poster { outline: 2px solid #fff; outline-offset: 3px; }
.rail a:hover .poster, .rail a:focus-visible .poster { outline-color: var(--s-gilt); }

.shelf { padding-top: 4rem; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.75rem; }
.shelf-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; margin: 0; letter-spacing: -0.01em; }
.shelf-head span { font: 600 0.72rem 'Archivo', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.catalogue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.title-card { display: grid; gap: 14px; color: var(--text); text-decoration: none; }
.title-card .poster { border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.25s ease; }
.title-card:hover .poster, .title-card:focus-visible .poster { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--s-gilt); }
.title-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 0.72rem 'Archivo', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.title-meta .platform { display: flex; align-items: center; gap: 8px; }
.chip { color: var(--s-gilt); border: 1px solid rgba(226, 194, 122, 0.45); border-radius: 999px; padding: 5px 10px; }
.title-card .money { color: var(--muted); font-size: 0.82rem; }

.studio-promise { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; padding-top: 6rem; }
.studio-promise h2 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 0.95; margin: 0; }
.studio-promise h2 em { font: italic 900 0.9em 'Playfair Display', Georgia, serif; text-transform: none; color: var(--s-gilt); }
.promise { display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.promise:last-child { border-bottom: 1px solid var(--line); }
.promise b { grid-row: span 2; font: 800 1.9rem/1 'Archivo', sans-serif; font-stretch: 70%; color: var(--s-gilt); }
.promise h3 { font: 700 0.88rem 'Archivo', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.promise p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.promise a { color: var(--text); }

.inside { padding-top: 4.5rem; }
.inside-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.inside-card { display: grid; grid-template-rows: 210px auto; background: var(--surface); border-radius: 14px; overflow: hidden; color: var(--text); text-decoration: none; }
.inside-card > img, .inside-card > .poster { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.inside-card .body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.inside-card .tag { justify-self: start; font: 700 0.66rem 'Archivo', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--s-ink); background: var(--s-gilt); border-radius: 4px; padding: 4px 8px; }
.inside-card h3 { font: 700 1.2rem/1.25 'Archivo', sans-serif; margin: 0; }
.inside-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.55; margin: 0; }
.inside-card:hover h3, .inside-card:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The home page footer: a big wordmark and the site map, then the legal line with credits. */
.home .studio-footer { margin-top: 6rem; border-top: 1px solid var(--line); }
.home .studio-footer .container { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; align-items: start; padding-top: 3rem; }
.home .studio-footer .big { font-size: 3.6rem; line-height: 0.9; color: var(--s-ink-text); }
.home .studio-footer h2 { font: 700 0.72rem 'Archivo', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.8rem; }
.home .studio-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.home .studio-footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .home .container { padding-left: 20px; padding-right: 20px; }
  .home .studio-bar nav a { padding: 0.8rem 0.5rem; }
  .stage { min-height: 0; padding-top: 168px; }
  .stage > img { height: 52%; object-position: 30% 0; }
  .stage::before { background: linear-gradient(180deg, rgba(11, 12, 15, 0.6) 0%, rgba(11, 12, 15, 0.45) 18%, rgba(11, 12, 15, 0.7) 34%, var(--s-ink) 50%); }
  .stage-body { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .stage p { font-size: 1rem; }
  .rail a { width: min(84px, calc((100vw - 76px) / 4)); }
  .catalogue, .inside-grid { grid-template-columns: 1fr; }
  .studio-promise { grid-template-columns: 1fr; gap: 32px; padding-top: 4rem; }
  .home .studio-footer .container { grid-template-columns: 1fr 1fr; }
  .home .studio-footer .big { grid-column: 1 / -1; font-size: 2.8rem; }
}

/* Key art: each game's poster, drawn from its own art so it scales from the rail to the
   catalogue (sizes in container units). Porch Blocks is a tilted board of glossy blocks on its
   icon's green; Merge & Prejudice is Elizabeth and Mr Darcy in gilt cameos in the Pemberley
   ballroom; Gallery Sort is three paint tubes against Hokusai's Great Wave; Dramapass is three
   portrait episodes fanned out on black under a coral glow, the last one locked. */
.poster { container-type: inline-size; position: relative; aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate; color: #fff; }
.poster > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.poster .shade { position: absolute; inset: 0; z-index: -1; }
.poster .title { position: absolute; left: 7cqw; right: 7cqw; bottom: 7cqw; display: grid; gap: 2cqw; }
.poster .kicker { font: 700 2.6cqw/1.2 'Manrope', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.9; }
.poster .line { font: 500 3.6cqw/1.3 'Manrope', sans-serif; opacity: 0.92; }
.poster h3 { margin: 0; }

.poster.pb { background: radial-gradient(120% 90% at 70% 20%, #3f8a59 0%, #2b6141 45%, #183a27 100%); }
.pb .board {
  position: absolute; left: 50%; top: 40%; width: 62cqw; aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2cqw; padding: 2cqw;
  background: rgba(10, 30, 18, 0.55); border-radius: 4cqw;
  transform: translate(-50%, -50%) perspective(120cqw) rotateX(38deg) rotateZ(-24deg);
  box-shadow: 0 6cqw 10cqw rgba(0, 0, 0, 0.35);
}
.pb .piece { position: absolute; left: 60%; top: 6%; width: 21cqw; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2cqw; transform: perspective(120cqw) rotateX(38deg) rotateZ(-24deg); filter: drop-shadow(0 4cqw 4cqw rgba(0, 0, 0, 0.35)); }
.pb .board i, .pb .piece i { border-radius: 1.6cqw; background: rgba(255, 255, 255, 0.06); }
.pb .piece i { aspect-ratio: 1; }
.pb .piece i:not([data-c]) { visibility: hidden; }
.pb i[data-c] {
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 38%, color-mix(in srgb, var(--c) 75%, #000) 100%);
  box-shadow: inset 0 -0.8cqw 0 rgba(0, 0, 0, 0.18), inset 0 0.7cqw 0 rgba(255, 255, 255, 0.35);
}
.pb i[data-c="o"] { --c: #e69f00; } .pb i[data-c="b"] { --c: #0072b2; } .pb i[data-c="s"] { --c: #56b4e9; }
.pb i[data-c="g"] { --c: #009e73; } .pb i[data-c="r"] { --c: #d55e00; } .pb i[data-c="y"] { --c: #f0e442; }
.pb h3 { font: 800 13cqw/0.92 'Manrope', sans-serif; letter-spacing: -0.04em; }

.poster.mp { color: #2a211c; }
.mp .shade { background: linear-gradient(180deg, rgba(250, 243, 230, 0.92) 0%, rgba(250, 243, 230, 0.35) 38%, rgba(250, 243, 230, 0) 55%, rgba(40, 28, 20, 0.15) 100%); }
.mp .cameo { position: absolute; bottom: 9cqw; width: 40cqw; aspect-ratio: 4 / 5; border-radius: 50%; padding: 1.6cqw; background: linear-gradient(145deg, #f3dc9a, #b88a2e 45%, #f6e3a8 60%, #9b7022); box-shadow: 0 3cqw 6cqw rgba(40, 25, 10, 0.4); }
.mp .cameo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; object-position: 50% 30%; }
.mp .cameo.left { left: 8cqw; transform: rotate(-4deg); }
.mp .cameo.right { right: 8cqw; bottom: 15cqw; transform: rotate(4deg); }
.mp .title { top: 9cqw; bottom: auto; text-align: center; justify-items: center; }
.mp h3 { font: italic 500 16cqw/0.88 'Cormorant Garamond', Georgia, serif; letter-spacing: -0.01em; }
.mp h3 span { display: block; font-size: 0.62em; }
.mp .kicker { color: #7a5a2b; }

.gs > img.bg { object-position: 38% 50%; }
.gs .shade { background: linear-gradient(180deg, rgba(12, 22, 38, 0) 35%, rgba(12, 22, 38, 0.82) 100%); }
.gs .tubes { position: absolute; right: 7cqw; bottom: 33cqw; display: flex; gap: 3cqw; align-items: flex-end; }
.gs .tube { position: relative; width: 10cqw; height: 36cqw; border-radius: 0 0 5cqw 5cqw; padding: 0.9cqw; display: flex; flex-direction: column-reverse; gap: 0.5cqw; background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 0.5cqw rgba(255, 255, 255, 0.75), 0 2cqw 4cqw rgba(0, 0, 0, 0.35); }
.gs .tube::after { content: ''; position: absolute; left: 22%; top: 6%; bottom: 12%; width: 1.1cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.45); }
.gs .tube:nth-child(2) { height: 40cqw; }
.gs .tube i { height: 7.6cqw; border-radius: 0.6cqw; }
.gs .tube i:first-child { border-radius: 0.6cqw 0.6cqw 4.2cqw 4.2cqw; }
.gs .tube .deep { background: #1b2a44; } .gs .tube .prussian { background: #23395b; }
.gs .tube .cream { background: #efe4c8; } .gs .tube .sky { background: #9fb7c9; }
.gs h3 { font: 900 13cqw/0.92 'Playfair Display', Georgia, serif; letter-spacing: -0.02em; }
.gs .rule { width: 14cqw; height: 0.6cqw; background: linear-gradient(90deg, #f3dc9a, #b88a2e); }

.poster.dp { background: radial-gradient(95% 60% at 82% 8%, rgba(255, 74, 95, 0.5) 0%, rgba(255, 74, 95, 0) 62%), linear-gradient(180deg, #17171d 0%, #0b0b0f 72%); }
.dp .eps { position: absolute; left: 11cqw; right: 11cqw; top: 10cqw; height: 66cqw; }
.dp .eps i { position: absolute; top: 0; width: 34cqw; aspect-ratio: 9 / 16; border-radius: 3.2cqw; padding: 2.4cqw; font-style: normal; box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, 0.55), inset 0 0 0 0.35cqw rgba(255, 255, 255, 0.14); }
.dp .eps b { font: 400 4.8cqw/1 'Bebas Neue', 'Archivo', sans-serif; letter-spacing: 0.06em; }
.dp .e1 { left: 0; transform: rotate(-10deg) translateY(5cqw); background: linear-gradient(160deg, #46305f 0%, #1b1428 100%); }
.dp .e3 { right: 0; text-align: right; transform: rotate(10deg) translateY(5cqw); background: linear-gradient(160deg, #24414f 0%, #0f1c23 100%); }
.dp .e2 { left: 50%; margin-left: -17cqw; z-index: 1; background: linear-gradient(165deg, #ff7582 0%, #ff4a5f 35%, #9e2039 78%, #3a0d18 100%); }
.dp .e2::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 8cqw solid #fff; border-top: 5cqw solid transparent; border-bottom: 5cqw solid transparent; }
.dp .e2::after { content: ''; position: absolute; left: 2.4cqw; right: 2.4cqw; bottom: 2.4cqw; height: 0.7cqw; border-radius: 1cqw; background: linear-gradient(90deg, #fff 0 62%, rgba(255, 255, 255, 0.32) 62% 100%); }
.dp .lock { position: absolute; left: 50%; top: 50%; width: 11cqw; height: 11cqw; margin: -5.5cqw 0 0 -5.5cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; }
.dp .lock svg { width: 5.6cqw; height: 5.6cqw; }
.dp h3 { font: 400 19cqw/0.86 'Bebas Neue', 'Archivo', sans-serif; letter-spacing: 0.02em; }
.dp h3 span { color: #ff4a5f; }
.dp .kicker { color: #ff8a96; }

@media (prefers-reduced-motion: reduce) {
  .title-card .poster { transition: none; }
  .title-card:hover .poster, .title-card:focus-visible .poster { transform: none; }
}

/* Game pages */
.app-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; padding-block: 3.5rem 4rem; }
.app-hero > div { flex: 1 1 440px; min-width: 0; }
.app-hero > .visual { flex: 1 1 360px; }
.app-hero h1 { font-size: clamp(2.5rem, 5.5vw, 3.8rem); margin-bottom: 0.75rem; }
.theme-regency .app-hero h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1; margin-bottom: 0.4rem; }
.theme-museum h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1; margin-bottom: 0.75rem; }
.app-hero .lead { font-size: 1.4rem; max-width: 28ch; margin-bottom: 1.75rem; }
.theme-regency .app-hero .lead { font-size: 1.2rem; color: var(--text); max-width: 34ch; }
.app-hero .icon { width: 120px; height: 120px; border-radius: 27px; display: block; margin-bottom: 1.5rem; box-shadow: 0 10px 28px rgba(0,0,0,0.18); }
.app-hero .tagline { font-family: var(--display-font); font-size: 1.6rem; color: var(--accent); margin: -0.4rem 0 1rem; text-wrap: balance; }
.theme-regency .tagline { font-style: italic; font-weight: 500; font-size: 1.7rem; margin: 0 0 1.1rem; }
.app-hero .visual { display: flex; justify-content: center; }
.phone-stage { background: var(--tint); border-radius: 40px; padding: 2.5rem 2.5rem 0; display: flex; align-items: flex-end; overflow: hidden; }
.phone-stage img { width: 260px; border-radius: 32px 32px 0 0; border: 8px solid var(--text); border-bottom: 0; display: block; }
.arch { background: var(--tint); border: 2px solid var(--gold); border-radius: 200px 200px 24px 24px; padding: 4rem 2.5rem 2.5rem; width: 100%; max-width: 380px; min-height: 460px; margin: 0; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.arch blockquote { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.75rem; line-height: 1.3; }
.arch cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; font-size: 0.95rem; color: var(--muted); }

.facts { margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 800; }
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.glance h2 { font-family: var(--body-font); font-weight: 800; font-size: 1.35rem; }
.glance dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem 1.5rem; font-size: 0.88rem; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 800; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem; }
.features p { color: var(--muted); margin: 0; }
.features ul { color: var(--muted); padding-left: 1.2rem; margin: 0; }
.features li { margin: 0.3rem 0; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: min(var(--radius), 20px); padding: 1.6rem; }
.feature-card h3 { line-height: 1.35; }
.features svg { display: block; margin-bottom: 0.6rem; color: var(--accent); }
.features h3 { margin-top: 0.75rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; text-align: center; }
.stats strong { display: block; font-family: var(--display-font); font-weight: var(--display-weight); font-size: 3.6rem; line-height: 1; color: var(--accent); }
.stats span { font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.25rem; }
.steps > div { border-top: 2px solid var(--text); padding-top: 1.1rem; }
.steps .num { font-family: var(--display-font); font-size: 2.1rem; color: var(--accent); margin: 0 0 0.25rem; line-height: 1; }
.steps p { color: var(--muted); margin: 0; }

.shots { display: flex; gap: 2rem; overflow-x: auto; padding-bottom: 0.5rem; }
.shots figure { margin: 0; flex: none; width: 240px; }
.shots img { width: 100%; display: block; border-radius: 28px; border: 6px solid var(--text); }
.shots figcaption { margin-top: 0.75rem; font-weight: 700; }
.swipe-hint { display: none; margin: -0.5rem 0 1rem; color: var(--muted); font-size: 0.95rem; }

.museum-hang { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-end; justify-content: center; padding-bottom: 4.5rem; }
.museum-hang .frame { flex: 2 1 520px; min-width: 0; background: var(--frame); padding: 22px; box-shadow: 0 24px 50px rgba(0,0,0,0.25); }
.museum-hang .frame div { background: #f7f3ea; padding: 26px; }
.museum-hang .frame img { display: block; width: 100%; height: auto; }
.wall-label { flex: 1 1 240px; max-width: 300px; background: var(--surface); padding: 1.4rem; font-size: 0.92rem; line-height: 1.5; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.wall-label p { margin: 0; }
.wall-label .title { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-size: 1.25rem; margin-top: 0.6rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .icon { margin-left: auto; margin-right: auto; }
.theme-ink h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.theme-ink .steps > div { border-top-color: var(--accent); }
.theme-drama h1 { font-size: clamp(3.6rem, 10vw, 6.2rem); line-height: 0.9; margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.theme-drama h1 span { color: var(--accent); }
.theme-drama h2 { font-size: clamp(2.1rem, 4vw, 2.9rem); letter-spacing: 0.03em; }
.theme-drama .glance h2 { font-family: var(--display-font); font-weight: 400; font-size: 1.9rem; }
.theme-drama .steps > div { border-top-color: var(--accent); }
.theme-drama .steps .num { font-size: 2.6rem; }
.theme-drama .ai-chip { display: inline-block; font: 800 0.72rem 'Manrope', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255, 74, 95, 0.5); border-radius: 999px; padding: 0.3rem 0.75rem; margin-bottom: 1rem; }

.split { display: flex; flex-wrap: wrap; gap: 2rem; }
.split > .main { flex: 2 1 440px; min-width: 0; }
.split > .side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 1rem; }
.link-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: min(var(--radius), 20px); padding: 1.4rem; color: var(--text); text-decoration: none; }
.link-card:hover, .link-card:focus-visible { border-color: var(--accent); }
.link-card strong { display: block; font-size: 1.2rem; }
.link-card span { color: var(--muted); }

details { border-top: 2px solid var(--line); padding: 1.1rem 0; }
details:last-of-type { border-bottom: 2px solid var(--line); }
summary { font-weight: 700; font-size: 1.15rem; cursor: pointer; padding: 0.4rem 0; }
details p { margin: 0.6rem 0 0; color: var(--muted); }

.more-games { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.more-games a { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; color: var(--text); text-decoration: none; min-height: 44px; }
.more-games img { width: 56px; height: 56px; border-radius: 13px; }

/* Studio pages and each game's privacy and support pages: one readable column. */
.prose { max-width: 46rem; margin: 0 auto; padding: 3rem 24px 4rem; }
.prose h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin: 0.35rem 0; }
.prose .crumb { font-weight: 700; margin-bottom: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem 1.6rem; margin: 1.5rem 0; }
code { background: var(--tint); padding: 0.1em 0.35em; border-radius: 6px; font-size: 0.95em; }

@media (max-width: 560px) {
  .container, .prose { padding-left: 16px; padding-right: 16px; }
  .brand { letter-spacing: 0.1em; }
  .studio-bar nav a { padding-left: 0.5rem; padding-right: 0.5rem; }
  .section { padding-block: 3rem; }
  .studio-footer .copy { margin-left: 0; }
  .phone-stage { padding: 1.75rem 1.75rem 0; }
  .phone-stage img { width: 220px; }
  .museum-hang .frame { padding: 12px; }
  .museum-hang .frame div { padding: 12px; }
  /* Five facts as a 3 + 2 grid, so none is left alone on a line. */
  .facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .shots figure { width: 200px; }
  .swipe-hint { display: block; }
}
