/* Hallmark · shape: Stage · genre: atmospheric · theme: Kiln recoloured to the logo, jade ground, warm gold action, jade-to-gold ramp (deal 3/3, seed official-lander-boss-theme-4f2f·0007b3c8·2026-11-26·r1) · job: sign up · draw: manual
 * hero: Stage, head on columns 1 to 5, the board on 7 to 12 · nav: edge-aligned bar, logo and the pair · footer: colophon with the 18+ line · imagery: the product (a built mahjong board) · signature: the tile board whose multiplier ladder heats up step by step · kiln: ember
 * axes: dark/high-contrast-serif/warm · posture: full-palette · contrast: pass · fold: pass · redesign: restyle · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: S, a dark gold casino lander is the category default; the heat ramp now marks the cascade multiplier only, so the one warm thing on the page is the one thing that climbs */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-h: 80px;
}

h1, h2, h3 { font-weight: var(--display-weight); line-height: 1.04; }
.figure { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); }

/* ---------- nav ---------- */
.top { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 94%, transparent); border-bottom: var(--rule-hair) solid var(--color-rule); }
.top__bar { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-h); }
.top__brand { flex: none; display: block; }
.top__brand img { height: 52px; width: auto; }
.top__nav { display: flex; gap: var(--space-lg); margin-left: auto; font-size: var(--text-sm); font-weight: 500; }
.top__nav a { color: var(--color-ink-2); text-decoration: underline transparent; transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
.top__nav a:hover { color: var(--color-ink); text-decoration-color: var(--color-ink-2); }
.top__act { display: flex; gap: var(--space-xs); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill);
  font: 500 var(--text-md)/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--heat-4); }
.btn--ghost { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule); }
.btn--ghost:hover { background: var(--color-paper-2); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--color-paper-2); color: var(--color-muted); box-shadow: none; cursor: not-allowed; }
.btn--small { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.hero__text { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); }
.hero__text h1 { font-size: var(--text-display); max-width: 11ch; }
.hero__text .lead { color: var(--color-ink-2); }

/* the board: a built screen standing on the ground */
.table {
  grid-column: 7 / span 6; margin: 0; min-width: 0;
  padding: var(--space-lg); display: grid; gap: var(--space-md);
  background: var(--color-paper-2);
  border-radius: min(2vw, var(--radius-card)); box-shadow: var(--shadow-card);
}
.table__head, .table__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.table__label, .table figcaption { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.table__mult { display: flex; align-items: baseline; gap: var(--space-xs); }
.table__mult .figure { font-size: var(--text-3xl); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.table__unit { color: var(--color-muted); font-size: var(--text-sm); }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-xs); padding: var(--space-md); background: var(--color-paper); border-radius: var(--radius-well); }
.tile {
  display: grid; place-items: center; aspect-ratio: 3 / 4;
  background: var(--color-ink); color: var(--color-paper);
  border-radius: 10px; box-shadow: inset 0 -5px 0 var(--color-muted), inset 0 0 0 1px var(--color-ink-2);
  font: 500 clamp(1.25rem, 2.4vw, 2.25rem)/1 var(--font-outlier);
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
}
.tile--red { color: var(--color-red); }
.tile--jade { color: var(--color-jade); }
.tile--gold { background: var(--heat-5); box-shadow: inset 0 -5px 0 var(--heat-4); }
.tile.is-out { opacity: 0; transform: translateY(-14px); }

.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); }
.ladder li { display: grid; gap: var(--space-2xs); opacity: 0.38; transition: opacity var(--dur-long) var(--ease-out); }
.ladder li.is-on { opacity: 1; }
.ladder .figure { font-size: var(--text-lg); }
.ladder__bar { display: block; height: 6px; border-radius: var(--radius-pill); }
.h1 { background: var(--heat-2); } .h2 { background: var(--heat-3); } .h3 { background: var(--heat-4); } .h4 { background: var(--heat-5); }

/* ---------- statement ---------- */
.statement { padding-block: var(--section-gap-s); }
.statement__head { font-size: var(--text-display); line-height: 1; max-width: 16ch; }
.statement__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-xl); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.statement__foot p { color: var(--color-ink-2); max-width: 52ch; }

/* ---------- games ---------- */
.games { padding-block: var(--section-gap-s); }
.games__intro { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.games__intro h2 { font-size: var(--text-section); }
.games__intro p { color: var(--color-ink-2); }
.lobby { list-style: none; margin: 0; padding: 0; }
.lobby__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.lobby__row:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.lobby__row h3 { font-size: var(--text-2xl); }
.lobby__row p { color: var(--color-ink-2); }
.lobby__row a { justify-self: end; font-weight: 500; text-decoration-color: var(--color-rule); transition: text-decoration-color var(--dur-short) var(--ease-out); }
.lobby__row a:hover { text-decoration-color: var(--color-accent); }

/* ---------- steps ---------- */
.band { background: var(--color-paper-2); color: var(--color-ink); }
.steps { padding-block: var(--section-gap-s); }
.steps__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.steps__grid h2 { grid-column: 1 / span 5; font-size: var(--text-section); }
.steps__list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps__list li { counter-increment: s; display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: var(--space-md); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.steps__list li::before { content: counter(s); grid-row: span 2; font: var(--display-weight) var(--text-3xl)/1 var(--font-display); color: var(--color-muted); }
.steps__list h3 { font-size: var(--text-title); }
.steps__list p { color: var(--color-ink-2); margin-top: var(--space-2xs); }

/* ---------- faq ---------- */
.faq { padding-block: var(--section-gap-s); }
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.faq__grid h2 { grid-column: 1 / span 4; font-size: var(--text-section); }
.faq__list { grid-column: 6 / span 7; }
details { border-top: var(--rule-hair) solid var(--color-rule); }
details:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
summary { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-lg); cursor: pointer; list-style: none; font-weight: 500; font-size: var(--text-lg); transition: color var(--dur-short) var(--ease-out); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--color-muted); font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; transition: transform var(--dur-short) var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--color-ink-2); }
details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* ---------- close ---------- */
.close { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.close__grid { display: flex; justify-content: space-between; align-items: end; gap: var(--space-xl); flex-wrap: wrap; }
.close__head { font-size: var(--text-display-s); max-width: 14ch; }

/* ---------- footer ---------- */
.foot { padding-block: var(--space-3xl) var(--space-xl); background: var(--color-paper-2); color: var(--color-ink); }
.foot__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-xl); align-items: center; }
.foot img { height: 60px; width: auto; }
.foot p { color: var(--color-muted); font-size: var(--text-sm); max-width: 60ch; }
.foot__nav { display: flex; gap: var(--space-lg); font-size: var(--text-sm); font-weight: 500; }
.foot__small { grid-column: 1 / -1; }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .hero__text, .table, .steps__grid h2, .steps__list, .faq__grid h2, .faq__list { grid-column: 1 / -1; }
  .top__nav { display: none; }
  .top__act { margin-left: auto; }
  .statement__foot, .games__intro { flex-direction: column; align-items: flex-start; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .top__brand img { height: 40px; }
  .top__act .btn--ghost { display: none; }
  .lobby__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .lobby__row a { justify-self: start; margin-top: var(--space-xs); }
  .table { padding: var(--space-md); }
  .tiles { padding: var(--space-xs); gap: var(--space-2xs); }
}
