/* Hallmark · shape: poster game page with a studio front door and a press kit · genre: playful · theme: custom (inherits the game's Goo Comic system) · job: try · idea: "the website is printed on the same stickers as the game's own menus, so the first click already feels like KABLORP!" · vibe: "goo comic stickers, grape night, loud and dry"
 * paper: #1f0f3d (game --ink) · accent: #ff6a2b (game --blast) · display: Titan One · body: Rubik · hero: the trailer as a big sticker beside the tilted logo · nav: edge-aligned slab · footer: a mast, the couch over the links · imagery: the product (trailer, gameplay loops, Blender key art) · signature: the tilted KABLORP! sticker logo over the real trailer
 * axes: dark/display-rounded/warm · posture: Stage · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a game page argues little; leaned on the slogan and the losers-get-cards rule instead of feature words */
/* Hallmark · waive 38iii · the KA BLORP ! colours are the game's real logo from the title screen, set once per page as the wordmark · the KABLORP! logo has shipped in three colours since the rename */
/* Hallmark · answered F4 · the white sticker button is the game's own secondary control (Goo Comic .btn); only Play-style blast is the primary */
/* Hallmark · dismissed 41 · .band text inherits --color-ink (near white) from body on the grape sheet */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Titan One"; src: url("/fonts/titan-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

body { font-weight: 500; background: var(--color-paper); }
h1, h2, h3 { font-weight: 400; letter-spacing: var(--tracking-display); line-height: 1.04; }
h2 { font-size: var(--text-section); }
h3 { font-size: var(--text-title); }
.lead { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 44ch; }
a { color: var(--color-blorp); }
a:hover { color: var(--color-goo); }
:focus-visible { outline: 4px solid var(--color-focus); outline-offset: 3px; transition: none; }
strong { font-weight: 800; color: var(--color-ink); }

/* ---- Logo: the title screen's sticker letters ---- */
.logo { display: inline-block; font: 400 var(--text-display) / .9 var(--font-display); white-space: nowrap; transform: rotate(-4deg);
  -webkit-text-stroke: .1em var(--color-outline); paint-order: stroke fill; text-shadow: .05em .06em 0 var(--color-outline); }
.logo .ka { color: var(--color-ka); } .logo .bl { color: var(--color-blorp); } .logo .bang { color: var(--color-goo); margin-left: .02em; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--ow) solid var(--color-paper-3); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; font: 400 var(--text-lg) var(--font-display); }
.brand img { width: 52px; height: auto; }
.nav ul { display: flex; gap: var(--space-xs) var(--space-lg); list-style: none; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.nav ul a { color: var(--color-ink-2); text-decoration: none; font-weight: 700; padding: var(--space-xs) var(--space-2xs); }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--color-goo); }

/* ---- Stickers: buttons and cards ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 56px; padding: var(--space-sm) var(--space-lg);
  font: 400 var(--text-lg) var(--font-display); letter-spacing: .01em; color: var(--color-sticker-ink); text-decoration: none; cursor: pointer;
  background: var(--color-sticker); border: var(--ow) solid var(--color-outline); border-radius: var(--radius-btn); box-shadow: var(--shadow-card);
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-sticker-2); color: var(--color-sticker-ink); }
.btn:active { transform: translate(var(--sh), var(--sh)); box-shadow: none; transition: none; }
.btn:focus-visible { outline: 4px solid var(--color-focus); outline-offset: 4px; }
.btn.blast { background: var(--color-accent); color: var(--color-accent-ink); }
.btn.blast:hover { background: var(--color-ka); }
.btn[aria-disabled="true"] { background: var(--color-paper-3); color: var(--color-ink-2); box-shadow: none; border-color: var(--color-sheet-3); cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); align-items: center; }
.note { font-size: var(--text-sm); color: var(--color-muted); }

.frame { border: var(--ow) solid var(--color-outline); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; background: var(--color-paper-2); }
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }

/* ---- Sections ---- */
section { padding-block: var(--section-gap-s); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); max-width: 900px; }

/* Hero (game) */
.hero { padding-block: var(--space-2xl) var(--space-3xl); min-height: calc(100dvh - 75px); display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero-text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero-text h1 { font-size: var(--text-display-s); color: var(--color-goo); }
.hero .logo { margin-bottom: var(--space-sm); }
.hero .frame { transform: rotate(1deg); }

/* Studio hero */
.studio-hero { padding-block: var(--space-3xl); min-height: calc(100dvh - 75px); display: grid; align-items: center; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: center; }
.studio-grid .mark { width: 100%; max-width: 440px; justify-self: center; }
.studio-grid h1 { font-size: var(--text-display); }
.studio-grid .hero-text { gap: var(--space-lg); }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split .head { margin-bottom: var(--space-xl); }

/* Card stickers (the pick screen's white cards) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.card { background: var(--color-sticker); color: var(--color-sticker-ink); border: var(--ow) solid var(--color-outline); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: var(--space-lg); display: grid; gap: var(--space-xs); align-content: start; border-top-width: 14px; }
.card:nth-child(1) { border-top-color: var(--color-accent); transform: rotate(-1.5deg); }
.card:nth-child(2) { border-top-color: var(--color-blorp); transform: rotate(1deg); }
.card:nth-child(3) { border-top-color: var(--color-goo); transform: rotate(.8deg); }
.card:nth-child(4) { border-top-color: var(--color-bad); transform: rotate(-1deg); }
.card h3 { color: var(--color-sticker-ink); font-size: var(--text-xl); }
.card p { color: var(--color-sticker-ink-3); font-weight: 500; }
.card .gain, .card .cost { display: inline-block; justify-self: start; font-weight: 800; font-size: var(--text-sm); padding: var(--space-3xs) var(--space-xs); border-radius: 8px; }
.card .gain { background: var(--color-good-fill); color: var(--color-good); }
.card .cost { background: var(--color-bad-fill); color: var(--color-bad); }

/* Fusion showcase */
.fuse { display: grid; gap: var(--space-xl); }
.fuse .eq { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); font: 400 var(--text-2xl) var(--font-display); }
.chip { background: var(--color-sticker); color: var(--color-sticker-ink); border: var(--ow) solid var(--color-outline); border-radius: var(--radius-btn); box-shadow: var(--shadow-card); padding: var(--space-xs) var(--space-md); }
.chip.gold { background: var(--color-goo); }
.op { color: var(--color-goo); }

/* Rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--ow) solid var(--color-paper-3); }
.rows li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-lg); padding-block: var(--space-lg); border-bottom: var(--ow) solid var(--color-paper-3); align-items: baseline; }
.rows h3 { color: var(--color-goo); }
.rows p { color: var(--color-ink-2); }

/* Rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 34%); gap: var(--space-xl); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--space-xs) var(--gutter) var(--space-xl); margin-inline: calc(var(--gutter) * -1); list-style: none; margin-block: 0; scrollbar-color: var(--color-sheet-3) transparent; }
.rail li { scroll-snap-align: start; display: grid; gap: var(--space-md); }
.rail h3 { color: var(--color-ink); }
.rail p { color: var(--color-ink-2); }
.rail:focus-visible { outline-offset: -4px; }

/* Trio */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); list-style: none; margin: 0; padding: 0; }
.trio li { display: grid; gap: var(--space-md); align-content: start; }
.trio li:nth-child(2) .frame { transform: rotate(1deg); }
.trio li:nth-child(1) .frame { transform: rotate(-1deg); }
.trio p { color: var(--color-ink-2); }

/* Band */
.band { background: var(--color-paper-2); border-block: var(--ow) solid var(--color-paper-3); }
.band-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.band h2 { color: var(--color-ink); }

/* Studio: the game sticker */
.game-tile { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.game-tile a.frame { display: block; transform: rotate(-1deg); transition: transform var(--dur-micro) var(--ease-out); }
.game-tile a.frame:hover { transform: rotate(0deg) scale(1.01); }
.game-tile .logo { font-size: var(--text-section); }

/* Press kit */
.facts { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.facts th, .facts td { text-align: left; padding: var(--space-md) var(--space-sm); border-bottom: var(--ow) solid var(--color-paper-3); vertical-align: top; }
.facts th { color: var(--color-muted); font-weight: 700; width: 30%; }
.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); list-style: none; margin: 0; padding: 0; }
.dl li { display: grid; gap: var(--space-sm); align-content: start; }
.dl .thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--color-paper-2); }
.dl .thumb img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; }
.dl .thumb.checker { background: var(--color-paper-3); }
.dl a { font-weight: 700; }
.press-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.press-grid ul { padding-left: 1.1em; color: var(--color-ink-2); display: grid; gap: var(--space-xs); }
.press-grid p { color: var(--color-ink-2); }

/* Footer */
.foot { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--ow) solid var(--color-paper-3); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: end; }
.foot .brand { font-size: var(--text-2xl); }
.foot .brand img { width: 96px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); justify-content: flex-end; }
.foot ul a { font-weight: 700; }
.legal { margin-top: var(--space-2xl); color: var(--color-muted); font-size: var(--text-sm); }

@media (max-width: 60rem) {
  .hero-grid, .studio-grid, .split, .split.flip, .band-grid, .game-tile, .press-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero, .studio-hero { min-height: 0; }
  .studio-grid .mark { max-width: 240px; justify-self: start; }
  .dl, .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-auto-columns: minmax(260px, 70%); }
  .foot ul { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  .cards, .dl, .trio { grid-template-columns: minmax(0, 1fr); }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .nav .container { min-height: 64px; }
  .brand span { display: none; }
  .nav ul { flex-wrap: nowrap; gap: var(--space-sm); }
  .nav ul a { font-size: var(--text-sm); padding-inline: 0; }
  .rail { grid-auto-columns: minmax(240px, 85%); }
  .facts th { width: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .game-tile a.frame { transition: none; }
}
