/* Hallmark · shape: Split Studio · genre: playful · theme: Arcade (deal 2/3, seed studio-homepage-empress-korea-7c3f·0c090ce9·2026-12-04·r0) · job: try · draw: ee5ae4
 * hero: Stage (swapped from Corridor: the material is pictures) · nav: slab · footer: statement · imagery: the product (store key art and screenshots) · signature: the game-select screen, a cabinet menu that lights each game's key art · arcade: ember/grille
 * axes: dark/pixel/chromatic-ember · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: restraint, the hero wall and the game screen both carry art, so the wall stays small tiles under one grille and the rows below are plain */
@import url("./tokens.css");
@import url("./base.css");

html, body { overflow-x: clip; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* store-closure notice: the first line of the page */
.notice { margin: 0; background: var(--color-accent); color: var(--color-accent-ink); font-weight: 700; font-size: var(--text-sm); }
.notice__inner { display: block; padding-block: var(--space-xs); }
.notice a { color: var(--color-accent-ink); text-decoration-thickness: 2px; }

/* slab nav */
.nav { background: var(--color-paper-2); border-bottom: var(--rule-bar) solid var(--color-rule); }
.nav__inner { display: flex; align-items: center; gap: var(--space-lg); min-height: 72px; }
.wordmark { font-family: var(--font-display); font-size: var(--text-xl); text-transform: uppercase; text-decoration: none; line-height: 1;
  text-shadow: -1.5px 0 0 var(--color-crt-r), 1.5px 0 0 var(--color-crt-c); }
.nav nav { display: flex; gap: var(--space-lg); margin-inline-start: auto; }
.nav nav a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

/* controls: the press surface */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: var(--space-sm) var(--space-lg); background: var(--color-accent); color: var(--color-accent-ink);
  border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-card); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-card);
  transition: translate var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.btn:hover { translate: -2px -2px; box-shadow: 8px 8px 0 var(--color-accent-2); }
.btn:active { translate: 3px 3px; box-shadow: 2px 2px 0 var(--color-accent-2); }
.btn--secondary { background: transparent; color: var(--color-ink); }
.btn--small { min-height: 44px; padding: var(--space-xs) var(--space-md); box-shadow: 4px 4px 0 var(--color-accent-2); }
.link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.link:hover, .nav nav a:hover { color: var(--color-accent-2); }

/* the screen texture */
.crt { position: relative; isolation: isolate; }
.crt::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image:
    repeating-linear-gradient(to right, color-mix(in oklab, var(--color-crt-r) 5%, transparent) 0 1px, color-mix(in oklab, var(--color-crt-g) 5%, transparent) 1px 2px, color-mix(in oklab, var(--color-crt-b) 5%, transparent) 2px 3px),
    repeating-linear-gradient(to bottom, transparent 0 2px, color-mix(in oklab, var(--color-shade) 16%, transparent) 2px 3px); }

/* hero */
h1 { text-transform: uppercase; line-height: 1.02; text-shadow: -1.5px 0 0 var(--color-crt-r), 1.5px 0 0 var(--color-crt-c); }
h2, h3 { font-family: var(--font-body); font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; min-height: min(calc(100dvh - 120px), 760px); padding-block: var(--space-2xl) var(--space-xl); }
.hero__text { display: grid; gap: var(--space-lg); }
.hero__text .actions { margin-top: var(--space-xs); }
.hero__wall { color: var(--color-ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); padding: var(--space-xs); background: var(--color-paper-3);
  border: var(--rule-bar) solid var(--color-rule); border-radius: var(--radius-card); }
.hero__wall img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: 2px; }

/* games: the cabinet menu and its screen */
section + section { margin-top: var(--section-gap-s); }
.games { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.games__menu { display: grid; gap: var(--space-xl); position: sticky; top: var(--space-lg); }
.menu { display: grid; border-top: var(--rule-hair) solid var(--color-rule); }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); width: 100%; min-height: 56px; padding: var(--space-sm) var(--space-md);
  background: transparent; color: var(--color-ink); border: 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: start; cursor: pointer;
  transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1); }
.row__name { white-space: nowrap; font-weight: 900; font-size: var(--text-title); letter-spacing: -0.02em; }
.row__kind { white-space: nowrap; color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; }
.row:hover { background: var(--color-paper-3); }
.row[aria-selected="true"] { background: var(--color-accent); color: var(--color-accent-ink); }
.row[aria-selected="true"] .row__kind { white-space: nowrap; color: var(--color-accent-ink); }
.row:focus-visible { outline-offset: -2px; }
.games__screens { display: grid; gap: var(--space-2xl); }
.js .games__screens { gap: 0; }
.screen { display: grid; gap: var(--space-lg); padding: var(--space-md); background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-rule); border-radius: var(--radius-card); }
.screen__art { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: 2px; }
.screen__shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
.screen__shots--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screen__shots img { width: 100%; border-radius: 2px; border: var(--rule-hair) solid var(--color-rule); aspect-ratio: 9 / 16; object-fit: cover; }
.screen__shots--wide img { aspect-ratio: 2 / 1; }
.screen__text { display: grid; gap: var(--space-xs); }
.screen__text h3 { font-size: var(--text-2xl); }
.screen__text p { color: var(--color-ink-2); }

/* apps */
.apps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.apps__text { display: grid; gap: var(--space-lg); position: sticky; top: var(--space-lg); }
.apps__list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.app { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.app img { width: 56px; height: 56px; border-radius: 12px; }
.app h3 { font-size: var(--text-title); }
.app p { color: var(--color-muted); margin-top: var(--space-2xs); }

/* the engine */
.engine { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.engine__text { display: grid; gap: var(--space-lg); }
.engine__mark { display: flex; align-items: center; gap: var(--space-sm); font-weight: 900; font-size: var(--text-lg); }
.engine__mark img { width: 54px; height: 36px; }
.engine__facts { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.engine__facts li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); font-weight: 700; }
.engine__shot { margin: 0; padding: var(--space-xs); background: var(--color-paper-3); border: var(--rule-bar) solid var(--color-rule); border-radius: var(--radius-card); }
.engine__shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.engine__shot figcaption { padding: var(--space-xs) var(--space-2xs) 0; color: var(--color-muted); font-size: var(--text-sm); position: relative; z-index: 3; }

/* where to get them: two players */
.where { display: grid; gap: var(--space-xl); }
.where__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3xl); }
.well { display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-xl); background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-rule);
  border-top-width: 6px; border-radius: var(--radius-card); }
.well--ember { border-top-color: var(--color-accent); }
.well--acid { border-top-color: var(--color-accent-2); }
.figure { font-family: var(--font-outlier); font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--text-display); line-height: 1; }
.well--ember .figure { color: var(--color-accent); }
.well--acid .figure { color: var(--color-accent-2); }
.well h3 { font-size: var(--text-2xl); }
.well p:not(.figure) { color: var(--color-ink-2); }

/* privacy and support */
.help { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.help__text { display: grid; gap: var(--space-lg); }
.help__text a { text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.help__table { width: 100%; border-collapse: collapse; }
.help__table th, .help__table td { text-align: start; padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; }
.help__table thead th { font-size: var(--text-sm); color: var(--color-muted); font-weight: 700; }
.help__table tbody th { font-weight: 700; }
.help__table td { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); }
.help__table td a { text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; }
.help__table a:hover { color: var(--color-accent-2); }

/* statement footer */
.footer { color: var(--color-ink); margin-top: var(--section-gap); padding-block: var(--space-3xl) var(--space-xl); background: var(--color-paper-2); border-top: var(--rule-bar) solid var(--color-rule); }
.footer__line { font-family: var(--font-display); font-size: var(--text-display-s); text-transform: uppercase; line-height: 1.02; max-width: 20ch; overflow-wrap: break-word; min-width: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin-top: var(--space-xl); font-weight: 700; }
.footer__links a { text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.footer__legal { margin-top: var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); }

/* the one reveal: the hero halves arrive once */
@media (prefers-reduced-motion: no-preference) {
  .hero__text, .hero__wall { animation: rise var(--dur-long) var(--ease-out) both; }
  .hero__wall { animation-delay: 80ms; }
  @keyframes rise { from { opacity: 0; translate: 0 12px; } }
}

@media (max-width: 60rem) {
  .hero, .games, .apps, .help, .engine { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero { min-height: 0; padding-block: var(--space-xl) var(--space-lg); }
  .games__menu, .apps__text { position: static; }
  .games__menu { gap: var(--space-lg); }
  .menu { display: flex; gap: var(--space-xs); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; border-top: 0; padding-bottom: var(--space-xs); scrollbar-width: thin; }
  .row { flex: none; width: auto; min-height: 48px; scroll-snap-align: start; border: var(--rule-bar) solid var(--color-rule); border-radius: var(--radius-card); }
  .row__name { font-size: var(--text-md); }
  .row__kind { display: none; }
  .where__pair { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .nav nav { display: none; }
  .nav__inner { justify-content: space-between; }
}
@media (max-width: 40rem) {
  .app { grid-template-columns: 48px minmax(0, 1fr); }
  .app img { width: 48px; height: 48px; }
  .app .link { grid-column: 2; }
  .wordmark { font-size: var(--text-lg); }
}
