/* The Game Gift: the design system.
   Direction A, the gilded arcade (docs/design/DIRECTION.md).
   A saturated indigo night, brass as a material, champagne type; the colour
   comes from the games. Every page loads this file; a page adds its own
   public/css/pages/<page>.css through the head stack (see COMPONENTS.md). */

/* 1. Tokens */
:root {
  --night: #1c2254;
  --night-deep: #121740;
  --night-raised: #232a66;
  --brass: #c0a45c;
  --brass-2: #dcc07a;
  --brass-dark: #8c7134;
  --champagne: #f3e6c8;
  --text: #ece1c9;
  --muted: rgba(243, 230, 200, .74);
  --caption: rgba(243, 230, 200, .56);
  --ink: #3c3c40;
  --tile: #faf8f4;
  --hair: rgba(192, 164, 92, .34);
  --hair-soft: rgba(192, 164, 92, .2);
  --keyline: rgba(192, 164, 92, .55);
  --good: #6cb27c;
  --warn: #e2a33c;
  --bad: #e07070;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --r-frame: 16px;
  --r-button: 12px;
  --r-pic: 10px;

  --shadow-frame: 0 44px 90px -34px rgba(4, 7, 26, .95);
  --shadow-pic: 0 26px 44px -24px rgba(4, 7, 26, .95);

  --wrap: 1280px;
  --gutter: 32px;
  --header-h: 72px;
  --section-top: 96px;
  --section-bottom: 116px;

  /* names the older pages still use; they resolve into the same palette */
  --paper: var(--night);
  --card: var(--night-deep);
  --line: var(--hair);
  --gold: var(--brass);
  --gold-ink: var(--ink);
  --sky: var(--night-raised);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 17px/1.55 var(--sans);
  color: var(--text);
  background-color: var(--night);
  background-image: radial-gradient(1100px 700px at 0% -10%, rgba(84, 94, 180, .42), rgba(84, 94, 180, 0) 62%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 5.5% grain over the night, so the ground reads as a surface and not a fill */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .055; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main { flex: 1 0 auto; }
img, video, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--champagne); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .18s ease, text-decoration-color .18s ease; }
a:hover { text-decoration-color: var(--brass-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; height: 1px; background: var(--hair); margin: 48px 0; }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(192, 164, 92, .35); color: var(--champagne); }
.skip { position: absolute; left: -999px; top: 12px; z-index: 70; background: var(--tile); color: var(--ink); padding: 10px 14px; border-radius: var(--r-pic); text-decoration: none; font-weight: 600; }
.skip:focus { left: 12px; }

/* 3. Type */
h1, h2, .display { font-family: var(--display); color: var(--champagne); margin: 0; font-variation-settings: normal; text-wrap: balance; }
h1 { font-size: 58px; line-height: 1.05; font-weight: 600; letter-spacing: -.012em; margin: 0 0 16px; }
h2 { font-size: 42px; line-height: 1.08; font-weight: 500; margin: 56px 0 20px; }
h2:first-child, .section > h2, .page > h2:first-child { margin-top: 0; }
h3 { font: 600 20px/1.3 var(--sans); color: var(--champagne); margin: 32px 0 10px; }
h4 { font: 600 17px/1.4 var(--sans); color: var(--champagne); margin: 24px 0 8px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 600; color: var(--champagne); }
small { font-size: 14px; color: var(--caption); }
.lead, p.lead { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 36ch; margin: 0 0 32px; }
.lead.wide { max-width: 60ch; }
.muted { color: var(--muted); }
.caption, .note { font-size: 15px; line-height: 1.5; color: var(--muted); }
.small { font-size: 14px; color: var(--caption); }
.price { font-family: var(--display); font-weight: 600; font-size: 54px; line-height: 1; color: var(--champagne); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.err, .error { color: #f2b3b3; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; }

/* 4. Layout and rhythm */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* overflow-x: clip and not hidden: the gallery light behind a framed picture is
   drawn wider than the frame on purpose, and on a phone that 18% bleed was
   pushing the whole page 43px sideways. Clip trims it without making a scroll
   container, so the sticky aside and price box keep working. */
.page { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 96px; width: 100%; overflow-x: clip; }
.page > h1:first-child { margin-top: 8px; }
.section { padding: var(--section-top) 0 var(--section-bottom); border-top: 1px solid var(--hair); }
.section.first, .page > .section:first-child { border-top: 0; padding-top: 24px; }
.section.tight { padding: 48px 0 64px; }
.section > h2 { margin-bottom: 16px; }
.section .intro { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 62ch; margin: 0 0 44px; }
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.rule { height: 1px; background: linear-gradient(90deg, var(--hair-soft), var(--hair) 30%, var(--hair) 70%, var(--hair-soft)); }
.stack-8 { margin-top: 8px; } .stack-12 { margin-top: 12px; } .stack-16 { margin-top: 16px; }
.stack-24 { margin-top: 24px; } .stack-32 { margin-top: 32px; } .stack-48 { margin-top: 48px; }
.stack-64 { margin-top: 64px; } .stack-96 { margin-top: 96px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.g6 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.prose { max-width: 62ch; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose h2 { font-size: 34px; margin: 56px 0 16px; }
.prose h3 { margin-top: 40px; }
.prose li { margin: 0 0 .4em; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 1px solid var(--brass); color: var(--muted); font-style: italic; }

/* 5. Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(18, 23, 64, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.top .wrap { height: var(--header-h); display: flex; align-items: center; gap: 32px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--champagne); flex: none; }
.brand .mark { width: 36px; height: 36px; display: block; }
.brand .word { font: 600 18px/1 var(--sans); letter-spacing: .005em; color: var(--champagne); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { font: 500 15px/1 var(--sans); color: var(--muted); text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; transition: color .18s ease, border-color .18s ease; white-space: nowrap; }
.nav a:hover { color: var(--champagne); }
.nav a.on { color: var(--champagne); border-bottom-color: var(--brass); }
.nav a.btn, .nav a.btn:hover { color: var(--ink); border-bottom: 0; padding: 0 18px; height: 42px; font-size: 15px; margin-left: 8px; }
.menu { display: none; }

/* 6. Footer */
.foot { border-top: 1px solid var(--hair); background: var(--night-deep); margin-top: 0; }
.foot .wrap { padding-top: 64px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .7fr)); gap: 48px; }
.foot .tile { width: 52px; height: 52px; border-radius: 12px; background: var(--tile); display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); }
.foot .tile img { width: 52px; height: 52px; }
.foot .word { font: 600 17px/1.3 var(--sans); color: var(--champagne); margin-top: 18px; }
.foot .about p { color: var(--muted); font-size: 15px; max-width: 40ch; margin: 10px 0 0; }
.foot .col b { display: block; font: 600 15px/1.4 var(--sans); color: var(--champagne); margin-bottom: 10px; }
.foot .col a { display: block; color: var(--muted); font-size: 15px; text-decoration: none; padding: 5px 0; }
.foot .col a:hover { color: var(--champagne); }
.foot .legal { border-top: 1px solid var(--hair-soft); }
.foot .legal .wrap { display: block; padding: 20px var(--gutter) 40px; font-size: 14px; color: var(--caption); line-height: 1.6; }
.foot .legal a { color: var(--muted); text-decoration-color: transparent; }
.foot .legal a:hover { text-decoration-color: var(--brass); }

/* 7. Buttons and links: one filled brass button per view; the rest are links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: var(--r-button); border: 0;
  font: 600 16px/1 var(--sans); letter-spacing: .005em; white-space: nowrap; text-decoration: none;
  color: var(--ink); cursor: pointer;
  background: linear-gradient(180deg, #dcc07a, #b8994f);
  box-shadow: inset 0 1px 0 rgba(255, 245, 220, .45), 0 12px 26px -14px rgba(192, 164, 92, .7);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: var(--ink); text-decoration: none; }
.btn:active { transform: scale(.98); filter: none; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn.small { height: 40px; padding: 0 16px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn.light, .btn.quiet {
  background: transparent; color: var(--champagne); box-shadow: none;
  border: 1px solid var(--hair);
}
.btn.light:hover, .btn.quiet:hover { border-color: var(--brass-2); color: var(--champagne); filter: none; }
.btn.danger { background: transparent; color: #f2b3b3; box-shadow: none; border: 1px solid rgba(224, 112, 112, .5); }
.link { color: var(--champagne); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1px; transition: text-decoration-color .18s ease, color .18s ease; }
.link:hover { text-decoration-color: var(--brass); }
.link.quiet { color: var(--muted); }
button.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; cursor: pointer; }

/* 8. Pictures: on the night ground a picture always sits in a 1px brass keyline */
.keyed {
  display: block; position: relative; border-radius: var(--r-pic); overflow: hidden;
  background: var(--night-deep);
  box-shadow: 0 0 0 1px var(--keyline), var(--shadow-pic);
  transition: transform .22s ease, box-shadow .22s ease;
}
.keyed > img, .keyed > video, .keyed > canvas, .keyed > iframe { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; border: 0; }
.keyed.mat { padding: 10px; background: var(--champagne); }
.keyed.mat > img, .keyed.mat > video { box-shadow: inset 0 0 0 1px rgba(60, 60, 64, .3); }
.keyed.fit > img { object-fit: contain; }
a.keyed:hover, a.keyed:focus-visible, .lift:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brass-2), var(--shadow-pic); }
.ratio-5-3 { aspect-ratio: 5 / 3; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.figure-caption, figcaption { margin-top: 12px; font-size: 15px; line-height: 1.4; color: var(--muted); }
figcaption b { display: block; color: var(--champagne); }
figure { margin: 0; }

/* the gilt frame: rounded brass outside, a champagne mat, a square-cornered picture inside; used twice only */
.gilt {
  position: relative; z-index: 1; border-radius: var(--r-frame); padding: 14px;
  background: linear-gradient(135deg, #dcc07a 0%, #c0a45c 38%, #a88d45 70%, #8c7134 100%);
  box-shadow:
    inset 0 1px 0 rgba(243, 230, 200, .75),
    inset 0 0 0 1px rgba(243, 230, 200, .35),
    inset 0 0 0 2px rgba(50, 36, 10, .35),
    var(--shadow-frame);
}
.gilt .mat { background: var(--champagne); padding: 18px; box-shadow: inset 0 0 0 1px rgba(60, 60, 64, .3); }
.gilt .mat > * { display: block; width: 100%; border-radius: 0; }
.gilt .mat > img { height: 100%; object-fit: cover; }
.stage { position: relative; }
.stage::before {
  content: ""; position: absolute; inset: -14% -18% -20% -18%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(243, 230, 200, .30), rgba(243, 230, 200, 0));
  filter: blur(18px);
}
.plain-frame { border-radius: var(--r-frame); padding: 10px; background: var(--night-deep); box-shadow: 0 0 0 1px var(--keyline), var(--shadow-pic); }
.plain-frame > * { display: block; width: 100%; border-radius: 0; }

/* 9. The cast rail: full-body figures standing on one brass line */
.rail-scroll { overflow-x: auto; overflow-y: visible; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.rail { --rail-h: 300px; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: var(--rail-h); height: 1px; background: var(--brass); z-index: 0; }
.rail::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--rail-h) + 1px); height: 28px; background: linear-gradient(180deg, rgba(192, 164, 92, .1), rgba(192, 164, 92, 0)); pointer-events: none; }
.rail .figure { display: block; scroll-snap-align: start; text-decoration: none; color: inherit; text-align: center; min-width: 0; position: relative; z-index: 1; }
.rail .stand { position: relative; height: var(--rail-h); display: flex; align-items: flex-end; justify-content: center; }
.rail .stand img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: calc(var(--rail-h) - 24px); width: auto; max-width: none; filter: drop-shadow(0 14px 16px rgba(4, 7, 26, .6)); transition: opacity .25s ease; }
.rail .stand .cheer { opacity: 0; }
.rail .figure:hover .cheer, .rail .figure:focus-visible .cheer { opacity: 1; }
.rail .figure:hover .still, .rail .figure:focus-visible .still { opacity: 0; }
.rail .name { display: block; margin-top: 20px; font: 600 17px/1.3 var(--sans); color: var(--champagne); }
.rail .role { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--caption); }
.rail .photo { position: absolute; left: 4px; top: 0; width: 56px; height: 56px; border-radius: var(--r-pic); object-fit: cover; box-shadow: 0 0 0 1px var(--keyline), var(--shadow-pic); transform: rotate(-6deg); z-index: 2; }

/* 10. Cover strip: seven worlds as lit windows in a row */
.covers { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.covers .cover { text-decoration: none; color: inherit; min-width: 0; scroll-snap-align: start; }
.covers .cover .keyed { aspect-ratio: 5 / 3; }
.covers .cover .name { margin-top: 12px; font: 600 15px/1.3 var(--sans); color: var(--champagne); }
.covers .cover .line { font-size: 14px; color: var(--caption); }

/* 11. Small card grid: fourteen occasions, 7 x 2 */
.cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards .small-card { text-decoration: none; color: inherit; min-width: 0; }
.cards .small-card .keyed { aspect-ratio: 4 / 5; }
.cards .small-card .name { margin-top: 10px; font: 600 15px/1.3 var(--sans); color: var(--champagne); text-align: left; }

/* the general card: a recessed night surface with a keyline, for catalogue entries */
.card { background: var(--night-deep); border: 1px solid var(--hair); border-radius: var(--r-pic); overflow: hidden; color: var(--text); }
.card .pic { background: var(--night-raised); display: flex; align-items: flex-end; justify-content: center; height: 220px; overflow: hidden; border-bottom: 1px solid var(--hair-soft); }
.card .pic img { max-height: 100%; max-width: 100%; width: auto; }
.card .body { padding: 14px 16px 16px; }
.card .body b { display: block; color: var(--champagne); margin-bottom: 2px; }
.card .body small { color: var(--caption); display: block; margin-bottom: 8px; }
.card .body p { font-size: 15px; color: var(--muted); }
.card.pad { padding: 20px 22px; }
a.card { text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
a.card:hover { border-color: var(--brass-2); transform: translateY(-3px); }

/* 12. The hairline price table: four columns, the complete game inside a brass frame */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.plans .plan { padding: 32px 28px 36px; border-left: 1px solid var(--hair); min-width: 0; display: flex; flex-direction: column; }
.plans .plan:first-child { border-left: 0; }
.plan .pname { font: 600 17px/1.3 var(--sans); color: var(--champagne); }
.plan .sug { font: 600 14px/1.3 var(--sans); color: var(--brass-2); margin-bottom: 8px; min-height: 18px; }
.plan .price { margin: 14px 0 18px; }
.plan .price small { font: 500 15px/1 var(--sans); color: var(--muted); margin-left: 6px; }
.plan p, .plan ul { color: var(--muted); font-size: 15px; line-height: 1.5; }
.plan ul { margin: 0; padding-left: 18px; }
.plan li { margin-bottom: 6px; }
.plan .actions { margin-top: auto; padding-top: 24px; }
.plans .plan.pick {
  position: relative; border-left: 0; margin: -17px -1px; padding-top: 48px; padding-bottom: 52px;
  background: var(--night-deep); border-radius: var(--r-button);
  box-shadow: 0 0 0 1px var(--brass), inset 0 0 0 1px rgba(243, 230, 200, .18), 0 0 0 6px var(--night), 0 0 0 7px var(--hair), var(--shadow-pic);
}
.plans .plan.pick + .plan { border-left: 0; }
.plans .plan.pick .pname { color: var(--champagne); }

/* 13. Pills, tabs, notices, states */
.pill { display: inline-block; font: 500 13px/1 var(--sans); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--hair); color: var(--muted); background: transparent; margin-right: 6px; white-space: nowrap; }
.pill.sug { border-color: var(--brass); color: var(--champagne); }
.pill.sug.world { background: rgba(192, 164, 92, .16); border-color: var(--brass-2); color: var(--champagne); }
.pill.semi { border-color: rgba(220, 192, 122, .6); color: var(--brass-2); }
.pill.on, .pill.good { border-color: var(--good); color: var(--champagne); }
.pill.warn { border-color: var(--warn); color: var(--champagne); }
.pill.bad { border-color: var(--bad); color: #f2b3b3; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 28px; border-bottom: 1px solid var(--hair); margin: 24px 0 0; }
.tabs a { display: inline-block; padding: 12px 0; margin-bottom: -1px; font: 500 15px/1.2 var(--sans); color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .18s ease, border-color .18s ease; }
.tabs a:hover { color: var(--champagne); }
.tabs a.on { color: var(--champagne); border-bottom-color: var(--brass); font-weight: 600; }
.tabbox { padding: 28px 0 8px; }
.notice { padding: 14px 18px; margin: 0 0 24px; border: 1px solid var(--hair); border-left: 3px solid var(--brass); border-radius: 0 var(--r-pic) var(--r-pic) 0; background: var(--night-deep); font-size: 15px; line-height: 1.5; color: var(--text); }
.notice b { color: var(--champagne); }
.notice a { color: var(--champagne); }
.notice.good { border-left-color: var(--good); }
.notice.warn { border-left-color: var(--warn); }
.notice.bad { border-left-color: var(--bad); }
.notices { max-width: var(--wrap); margin: 24px auto 0; padding: 0 var(--gutter); }
.notices .notice { margin-bottom: 12px; }
.state { display: inline-block; font: 600 12px/1 var(--sans); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--hair); color: var(--muted); }
.state.good { border-color: var(--good); color: var(--champagne); }
.state.warn { border-color: var(--warn); color: var(--champagne); }
.state.bad { border-color: var(--bad); color: #f2b3b3; }
.kpi { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 24px; }
.kpi .card { padding: 14px 18px; min-width: 150px; }
.kpi b { font-family: var(--display); font-size: 32px; font-weight: 600; display: block; color: var(--champagne); font-variant-numeric: lining-nums tabular-nums; }

/* 14. Forms: night-deep fields in a brass keyline, labels above in sentence case */
.field { margin: 0 0 18px; }
.field label, .label { display: block; font: 500 15px/1.4 var(--sans); color: var(--champagne); margin-bottom: 6px; }
.field small, .field .hint, .hint { display: block; font-size: 14px; color: var(--caption); margin-top: 6px; }
.field.error input, .field.error select, .field.error textarea, .field .err-input { border-color: var(--bad); }
.field .err, .field .error { font-size: 14px; color: #f2b3b3; margin-top: 6px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=hidden]),
select, textarea {
  display: block; width: 100%; max-width: 100%;
  background: var(--night-deep); color: var(--champagne);
  border: 1px solid var(--hair); border-radius: var(--r-pic);
  padding: 12px 14px; font: 400 16px/1.4 var(--sans);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input::placeholder, textarea::placeholder { color: var(--caption); }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { border-color: var(--brass-2); outline: 2px solid rgba(220, 192, 122, .55); outline-offset: 2px; }
textarea { min-height: 120px; resize: vertical; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23dcc07a' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
select option { background: var(--night-deep); color: var(--champagne); }
input[type=number] { font-variant-numeric: lining-nums tabular-nums; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--brass); flex: none; vertical-align: -3px; }
input[type=file] { padding: 10px 12px; color: var(--muted); font-size: 15px; cursor: pointer; }
input[type=file]::file-selector-button { font: 600 14px/1 var(--sans); color: var(--champagne); background: transparent; border: 1px solid var(--hair); border-radius: 8px; padding: 9px 14px; margin-right: 14px; cursor: pointer; transition: border-color .18s ease; }
input[type=file]::file-selector-button:hover { border-color: var(--brass-2); }
input[type=range] { width: 100%; accent-color: var(--brass); }
input[type=color] { width: 56px; height: 40px; padding: 4px; }
.check, .radio, .tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); cursor: pointer; margin: 0 0 10px; }
.check input, .radio input, .tick input { margin-top: 3px; }
.check span, .radio span { color: var(--text); }
.check input:checked + span, .radio input:checked + span { color: var(--champagne); }
fieldset { border: 1px solid var(--hair); border-radius: var(--r-pic); padding: 20px 22px; margin: 0 0 24px; }
legend { font: 600 15px var(--sans); color: var(--champagne); padding: 0 8px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
label.choice-card, .choice-card { display: block; padding: 16px 18px; border: 1px solid var(--hair); border-radius: var(--r-pic); background: var(--night-deep); cursor: pointer; transition: border-color .18s ease; }
.choice-card:hover { border-color: var(--brass-2); }
.choice-card:has(input:checked) { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }

/* the wizard's step indicator: one brass hairline, the current step in champagne */
.steps { display: flex; gap: 0; list-style: none; margin: 0 0 40px; padding: 0; border-bottom: 1px solid var(--hair); overflow-x: auto; }
.steps li { flex: 1 0 auto; padding: 0 16px 12px 0; font: 500 14px/1.4 var(--sans); color: var(--caption); border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.steps li.done { color: var(--muted); }
.steps li.on { color: var(--champagne); border-bottom-color: var(--champagne); }
.steps li a { color: inherit; text-decoration: none; }
.steps li a:hover { color: var(--champagne); }

/* 15. The game */
iframe.game { display: block; width: 100%; aspect-ratio: 5 / 3; border: 0; border-radius: var(--r-pic); background: #0b0d16; box-shadow: 0 0 0 1px var(--keyline), var(--shadow-pic); }
.game-box { position: relative; border-radius: var(--r-pic); overflow: hidden; background: #0b0d16; box-shadow: 0 0 0 1px var(--keyline), var(--shadow-pic); }
.game-box > iframe, .game-box > canvas { display: block; width: 100%; aspect-ratio: 5 / 3; border: 0; }

/* 16. Tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 24px; }
th { text-align: left; font-weight: 600; color: var(--champagne); padding: 10px 12px; border-bottom: 1px solid var(--brass); vertical-align: bottom; }
td { padding: 10px 12px; border-bottom: 1px solid var(--hair-soft); color: var(--text); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.table-scroll { overflow-x: auto; }

/* 17. Older page furniture, kept working on the new chrome until its own lane restyles it */
.tier { padding: 24px; border: 1px solid var(--hair); border-radius: var(--r-button); background: var(--night-deep); }
.tier .price { font-size: 46px; margin: 8px 0 12px; }
.tier ul { padding-left: 18px; margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.demo { display: flex; gap: 16px; align-items: center; }
.demo img { height: 120px; width: auto; }
.strip { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.strip img { height: 54px; width: auto; border-radius: 4px; background: var(--night-raised); }
.who { font-size: 14px; color: var(--caption); }
.pager { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 24px 0; }
.shots { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.shots figure { background: var(--night-deep); border: 1px solid var(--hair); border-radius: var(--r-pic); overflow: hidden; }
.shots figcaption { font-size: 13px; color: var(--muted); padding: 6px 10px; }
details { border: 1px solid var(--hair); border-radius: var(--r-pic); padding: 12px 18px; margin: 0 0 16px; }
summary { cursor: pointer; font-weight: 600; color: var(--champagne); }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; }
pre { background: var(--night-deep); border: 1px solid var(--hair-soft); border-radius: var(--r-pic); padding: 14px 16px; overflow-x: auto; }
progress { width: 100%; height: 6px; accent-color: var(--brass); }
.adminnav, .admin-nav { display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }

/* 18. The load moment: headline, lead, buttons and frame rise 16px with an 80ms stagger while the gallery light warms up */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 80ms); }
  .stage::before { opacity: 0; animation: warm 1.6s .2s ease-out forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes warm { to { opacity: 1; } }
}

/* 19. Phones and narrow screens */
@media (max-width: 1080px) {
  .covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans .plan:nth-child(3) { border-left: 0; }
  .plans .plan { border-top: 1px solid var(--hair); }
  .plans .plan:nth-child(-n+2) { border-top: 0; }
  .plans .plan.pick { margin: 0; padding-top: 32px; padding-bottom: 36px; box-shadow: inset 0 0 0 1px var(--brass); border-radius: 0; }
  .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .foot .about { grid-column: span 2; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; --header-h: 64px; --section-top: 60px; --section-bottom: 68px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .price { font-size: 46px; }
  .lead, p.lead { font-size: 18px; }
  .page { padding: 32px var(--gutter) 64px; }
  .section .intro { font-size: 17px; margin-bottom: 32px; }
  .top .wrap { gap: 16px; }
  .menu { display: inline-flex; align-items: center; margin-left: auto; height: 40px; padding: 0 14px; background: none; border: 1px solid var(--hair); color: var(--champagne); font: 500 15px/1 var(--sans); border-radius: var(--r-pic); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--night-deep); border-bottom: 1px solid var(--hair); box-shadow: var(--shadow-pic); }
  .top.open .nav { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--hair-soft); }
  .nav a.on { border-bottom-color: var(--brass); }
  .nav a.btn, .nav a.btn:hover { margin: 16px 0 0; height: 50px; font-size: 16px; border: 0; }
  .two, .split, .form-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .actions { gap: 20px; margin-top: 24px; }
  .actions .btn { width: 100%; }
  .rail-scroll, .covers-scroll, .cards-scroll { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .rail { --rail-h: 240px; grid-auto-columns: 150px; gap: 8px; }
  .covers { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; grid-template-columns: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plans .plan { border-left: 0; border-top: 1px solid var(--hair); padding: 24px 0 28px; }
  .plans .plan:first-child { border-top: 0; }
  .plans .plan.pick { padding: 24px 20px 28px; margin: 8px 0; border-radius: var(--r-button); box-shadow: 0 0 0 1px var(--brass), inset 0 0 0 1px rgba(243, 230, 200, .18); }
  .plans .plan.pick + .plan { border-top: 0; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; }
  .foot .about { grid-column: auto; }
  .card .pic { height: 180px; }
  .steps li { font-size: 13px; padding-right: 12px; }
  .tabs { gap: 0 20px; }
  table { font-size: 14px; }
  th, td { padding: 8px 8px; }
}
@media (max-width: 420px) {
  .brand .word { font-size: 16px; }
  .cards { gap: 12px; }
}

/* 20. Reduced motion: everything that moves is switched off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
  .stage::before { opacity: 1; }
}
