/* Pinball Parade: www.pinball-parade.com
   The sister sites' skeleton (donkey-derby.com, tuppenny-tumble.com), dressed as the game's own title screen:
   the blue sunburst sky, the PINBALL Parade marquee, deep green enamel cards with a brass keyline, brass plates
   lettered in Alfa Slab One, cream type, pillar-box red and cream stripes. No purple anywhere (every hue here is
   under 230 or over 300 degrees). */

@font-face { font-family: "Cabin"; src: url("../fonts/Cabin.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Alfa Slab One"; src: url("../fonts/AlfaSlabOne-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #052521;      /* the enamel, a shade deeper: the whole page */
  --enamel: #06332F;      /* the game's Enamel.green (0.025, 0.20, 0.185): cards */
  --enamel-hi: #0A443F;
  --panel: #030F0E;       /* the game's panel ground */
  --cream: #FFF5DB;       /* the game's cream: headings and body (14.9:1 on the ground) */
  --cream-2: #CFDCCF;     /* secondary text (10.9:1) */
  --cream-3: #9DB6AC;     /* quiet text, captions (6.9:1) */
  --red: #CC1217;         /* the game's red: stripes, markers */
  --red-hi: #FF5A4E;      /* red as text or focus on the dark ground (5.4:1) */
  --brass-hi: #FFE69E; --brass: #EDBF6D; --brass-lo: #B8792A;
  --ink: #0A2624;         /* dark green ink on brass and cream */
  --sky-1: #2C5679; --sky-2: #4E7389; --sky-deep: #17324A;   /* the title's sunburst (hue 200-210) */
  --shade: 1 10 9;

  --font: "Cabin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Alfa Slab One", "Rockwell", "Cabin", serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(80px, 11vw, 160px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --brass-face: linear-gradient(180deg, var(--brass-hi) 0%, var(--brass) 48%, var(--brass-lo) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--cream); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-hi); }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brass); color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--brass); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { left: 8px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* Type */
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.06; letter-spacing: 0; text-wrap: balance; color: var(--cream); text-shadow: 0 3px 0 rgb(var(--shade) / .55); }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--cream-2); text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.6; color: var(--cream-3); }
.kicker { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }

/* The marquee bulbs (the head rail's lamps) and the Parade's red and cream stripe */
.bulbs { height: 16px; background: radial-gradient(circle at 50% 50%, #FFFBEA 0 2.5px, #FFD678 3.5px, #E39A2E 5px, rgb(227 154 46 / 0) 6.5px) 0 50% / 26px 16px repeat-x; filter: drop-shadow(0 0 4px rgb(255 190 90 / .55)); }
.stripe { height: 10px; border-radius: 5px; background: repeating-linear-gradient(-45deg, var(--red) 0 8px, var(--cream) 8px 16px); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18); }

/* The App Store label: a brass plate like the game's PLAY button. Not live yet: a label, not a link. */
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.store {
  display: inline-grid; align-content: center; min-height: 60px; padding: 9px 30px 10px; border-radius: 999px;
  background: var(--brass-face); color: var(--ink); text-decoration: none; text-align: center; justify-items: center;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -2px 0 rgb(120 70 10 / .45), 0 0 0 2px #6E4A16, 0 10px 24px -10px rgb(0 0 0 / .7);
  transition: transform 160ms var(--ease), filter 160ms var(--ease);
}
.store small { font-size: 12.5px; line-height: 1; font-weight: 700; letter-spacing: .04em; }
.store span { font-family: var(--font-display); font-size: 22px; line-height: 1.15; letter-spacing: .01em; }
a.store:hover { color: var(--ink); filter: brightness(1.06); transform: translateY(-1px); }
.store--soon, .store--soon:hover { cursor: default; transform: none; filter: none; }
.devices-line { font-size: 15px; font-weight: 600; color: var(--cream-2); }

/* ============ The hero: the title screen's sky ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 105%, rgb(23 50 74 / 0) 30%, rgb(10 26 40 / .75) 100%),
    repeating-conic-gradient(from -3deg at 50% 118%, var(--sky-1) 0deg 6deg, var(--sky-2) 6deg 12deg),
    var(--sky-1);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(rgb(5 37 33 / 0), var(--ground)); z-index: -1; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px clamp(24px, 5vw, 72px); padding-block: clamp(28px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.hero .logo { margin: 0; }
.hero .logo img { width: min(560px, 100%); margin-inline: auto; filter: drop-shadow(0 18px 24px rgb(0 0 0 / .35)); }
.hero__copy { display: grid; justify-items: center; text-align: center; gap: 18px; }
.line { font-family: var(--font-display); font-weight: 400; font-size: clamp(27px, calc(14px + 2.3vw), 46px); line-height: 1.08; text-wrap: balance; color: var(--cream); text-shadow: 0 3px 0 rgb(10 26 40 / .6); }
.hero .sub { max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: #E9F0F2; text-wrap: pretty; text-shadow: 0 1px 2px rgb(10 26 40 / .6); }
.hero .buy { justify-content: center; }
.credit { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgb(3 15 14 / .55); border: 1px solid rgb(237 191 109 / .45); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); }
.credit i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--cream) 0 3px, var(--red) 3.5px 6px, var(--cream) 6.5px 7.5px, var(--red) 8px); flex: none; }

/* A phone, drawn round a real capture */
.phone { position: relative; width: min(360px, 78vw); margin-inline: auto; padding: 10px; border-radius: 54px; background: linear-gradient(145deg, #5B6066 0%, #24272B 30%, #101214 70%, #3B3F44 100%); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .18), 0 40px 60px -30px rgb(0 0 0 / .8), 0 12px 24px -12px rgb(0 0 0 / .6); }
.phone img, .phone video { display: block; width: 100%; height: auto; border-radius: 45px; background: #0b1a26; }
.phone video { aspect-ratio: 720 / 1560; object-fit: cover; }
.phone--small { width: min(300px, 70vw); padding: 8px; border-radius: 44px; }
.phone--small img { border-radius: 37px; }
.hero .phone { transform: rotate(2.5deg); }

/* The film's buttons, under the phone (the sister sites' Pause and Sound) */
.hero-film { margin: 0; display: grid; justify-items: center; gap: 18px; }
.controls { display: flex; gap: 10px; min-height: 44px; }
.film { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px 10px 14px; border-radius: 999px; border: 1px solid rgb(255 245 219 / .45); background: rgb(3 15 14 / .55); color: var(--cream); font: 600 15px/1 var(--font); cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.film:hover { background: rgb(3 15 14 / .8); border-color: var(--brass-hi); }
.film__icon { flex: none; width: 14px; height: 14px; fill: currentColor; }
.sound .film__icon { width: 16px; height: 16px; }
.film__icon--play, .sound__icon--on { display: none; }
.film[aria-pressed="true"] .film__icon--pause { display: none; }
.film[aria-pressed="true"] .film__icon--play { display: block; }
.sound[aria-pressed="true"] .sound__icon--off { display: none; }
.sound[aria-pressed="true"] .sound__icon--on { display: block; }
.sound[aria-pressed="true"] .film__icon--play { display: none; }

/* ============ The tables ============ */
.tables { padding-top: var(--section); }
.tables__head { display: grid; gap: 14px; max-width: 760px; margin-inline: auto; text-align: center; }
.cards { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.card {
  position: relative; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: 24px clamp(24px, 5vw, 64px);
  padding: clamp(20px, 3.5vw, 44px); border-radius: 26px; background: linear-gradient(180deg, var(--enamel-hi), var(--enamel) 40%, #05302B);
  box-shadow: inset 0 0 0 2px var(--brass-lo), inset 0 0 0 4px rgb(3 15 14 / .7), inset 0 0 0 5px rgb(255 230 158 / .35), 0 30px 50px -30px rgb(0 0 0 / .8);
}
.card:nth-child(2) { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
.card:nth-child(2) .card__text { justify-self: end; }
.card:nth-child(2) .card__shot { order: 2; }
.card__shot .phone { width: min(320px, 70vw); }
.card__text { display: grid; gap: 14px; align-content: start; max-width: 640px; }
.card__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.plate { justify-self: start; display: inline-block; max-width: 100%; padding: 10px 24px 9px; border-radius: 999px; background: var(--brass-face); color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 1px 0 rgb(255 255 255 / .45); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -2px 0 rgb(120 70 10 / .45), 0 0 0 2px #6E4A16; text-wrap: balance; }
.card__line { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.25; color: var(--cream); }
.card ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.card li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.5; color: var(--cream-2); text-wrap: pretty; }
.card li::before { content: ""; position: absolute; left: 0; top: .42em; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFBEA 0 2px, #FFD678 3px, #D98E26 6.5px); box-shadow: 0 0 6px rgb(255 190 90 / .6); }
.card li b { color: var(--cream); font-weight: 700; }
.opens { display: grid; gap: 6px; margin-top: 6px; padding: 12px 16px; border-radius: 12px; background: rgb(3 15 14 / .55); border: 1px solid rgb(237 191 109 / .35); }
.opens p { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-hi); line-height: 1.45; }
.opens p + p { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--cream-3); }
.fourth { margin-top: clamp(32px, 4vw, 48px); text-align: center; font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); line-height: 1.3; color: var(--brass); text-wrap: balance; }

/* ============ How it plays ============ */
.play { padding-top: var(--section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px clamp(32px, 6vw, 88px); }
.play__text { display: grid; gap: 18px; }
.steps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brass-face); color: var(--ink); font-family: var(--font-display); font-size: 20px; box-shadow: inset 0 -2px 0 rgb(120 70 10 / .45), 0 0 0 2px #6E4A16; }
.steps b { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.3; color: var(--cream); padding-top: 9px; }
.steps span { font-size: 16.5px; color: var(--cream-2); text-wrap: pretty; }
.wall { border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 2px var(--brass-lo), 0 30px 50px -30px rgb(0 0 0 / .8); }
.wall img { width: 100%; }
.wall-cap { margin-top: 12px; font-size: 14px; color: var(--cream-3); text-align: center; }

/* ============ iPhone and iPad ============ */
.devices { padding-top: var(--section); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px clamp(32px, 6vw, 88px); }
.devices__text { display: grid; gap: 18px; }
.pair { min-width: 0; max-width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 3vw, 28px); }
.tablet { flex: 1 1 auto; min-width: 0; max-width: 470px; padding: 14px; border-radius: 34px; background: linear-gradient(145deg, #5B6066 0%, #24272B 30%, #101214 70%, #3B3F44 100%); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .18), 0 40px 60px -30px rgb(0 0 0 / .8); }
.tablet img, .tablet video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; background: #0b1a26; }
.pair .phone { flex: 0 0 auto; width: min(160px, 30%); padding: 5px; border-radius: 26px; }
.pair .phone img { border-radius: 21px; }

/* ============ Prize stall and the specs ============ */
.stall { padding-top: var(--section); display: grid; gap: 18px; max-width: 820px; margin-inline: auto; text-align: center; }
.prizes { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.prizes li { padding: 8px 16px; border-radius: 999px; background: var(--enamel); border: 1px solid rgb(237 191 109 / .45); font-size: 15px; font-weight: 600; color: var(--cream); }
.specs { margin: 0; padding-top: var(--section); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 28px 32px; }
.specs div { border-top: 2px solid var(--brass); padding-top: 16px; display: grid; align-content: start; gap: 6px; }
.specs dt { font-family: var(--font-display); font-weight: 400; font-size: 18px; line-height: 1.25; color: var(--cream); }
.specs dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--cream-2); text-wrap: pretty; }

/* ============ The close ============ */
.close { margin-top: var(--section); padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px); border-radius: 28px; display: grid; justify-items: center; gap: 22px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 120%, rgb(23 50 74 / 0) 30%, rgb(10 26 40 / .7) 100%), repeating-conic-gradient(from -3deg at 50% 130%, var(--sky-1) 0deg 6deg, var(--sky-2) 6deg 12deg); box-shadow: inset 0 0 0 2px var(--brass-lo); }
.close img { width: min(320px, 70vw); filter: drop-shadow(0 14px 18px rgb(0 0 0 / .35)); }
.close .buy { justify-content: center; }

/* ============ Sister games ============ */
.sisters { padding-block: var(--section) clamp(56px, 7vw, 96px); display: grid; gap: 24px; }
.sisters__head { text-align: center; display: grid; gap: 8px; }
.sisters__head h2 { font-size: clamp(26px, 3vw, 38px); }
.sisters__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.sister { display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; padding: 26px 24px 24px; border-radius: 20px; background: var(--enamel); box-shadow: inset 0 0 0 1px rgb(237 191 109 / .4); text-decoration: none; transition: transform 160ms var(--ease); }
.sister:hover { transform: translateY(-2px); color: inherit; }
.sister__logo { width: auto; max-width: min(240px, 80%); height: 160px; object-fit: contain; margin-bottom: 12px; transition: transform 200ms var(--ease); }
.sister:hover .sister__logo { transform: rotate(-2deg) scale(1.03); }
.sisters__by { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.sisters__by img { width: 28px; height: 28px; }
@media (prefers-reduced-motion: reduce) { .sister:hover .sister__logo { transform: none; } }
.sister b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--cream); }
.sister span { color: var(--cream-2); font-size: 16px; }
.sister em { font-style: normal; font-weight: 700; font-size: 15px; color: var(--brass-hi); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--red-hi); }

/* ============ Footer, the read pages ============ */
footer.site { padding-bottom: max(48px, env(safe-area-inset-bottom)); }
.foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 40px; padding-top: 32px; }
.foot .small { flex: 1 1 420px; min-width: 0; }
.foot .small a { overflow-wrap: anywhere; }
.foot nav { display: flex; gap: 24px; font-size: 15px; font-weight: 600; margin-top: -12px; }
footer nav a { text-decoration: none; padding-block: 12px; }
footer nav a:hover, footer nav a[aria-current="page"] { text-decoration: underline; }

header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.home { display: inline-flex; align-items: center; gap: 8px; padding-block: 12px; font-size: 16px; font-weight: 600; text-decoration: none; }
.home:hover { text-decoration: underline; }
.home img { width: 30px; height: 30px; border-radius: 8px; }
.doc-top { background: radial-gradient(120% 100% at 50% 140%, rgb(23 50 74 / 0) 30%, rgb(10 26 40 / .7) 100%), repeating-conic-gradient(from -3deg at 50% 160%, var(--sky-1) 0deg 6deg, var(--sky-2) 6deg 12deg); }
.doc-top .bulbs { opacity: .9; }
.doc { max-width: 720px; padding-block: clamp(32px, 6vw, 72px) clamp(72px, 9vw, 128px); }
.doc h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; text-wrap: balance; text-shadow: 0 3px 0 rgb(var(--shade) / .55); }
.doc .lede { margin-top: 16px; font-size: clamp(19px, 1.6vw, 21px); }
.doc .meta { margin-top: 12px; font-size: 15px; color: var(--cream-3); }
.doc h2 { margin-top: 56px; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.2; text-shadow: none; color: var(--brass-hi); }
.doc h3 { margin: 32px 0 0; font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--cream); }
.doc p, .doc li { font-size: 18px; line-height: 1.6; color: var(--cream-2); }
.doc h2 + p, .doc h3 + p, .doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc li::marker { color: var(--brass); }
.doc strong { color: var(--cream); }
.doc .mail { margin-top: 40px; padding-block: 28px; border-block: 1px solid rgb(237 191 109 / .35); }
.doc .mail a { font-weight: 700; font-size: clamp(22px, 3vw, 32px); color: var(--cream); text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--brass); overflow-wrap: anywhere; }
.doc .mail p { margin-top: 12px; font-size: 16px; color: var(--cream-3); }
.doc--lost { text-align: center; max-width: none; display: grid; justify-items: center; gap: 0; }
.doc--lost img { width: min(300px, 70vw); margin-bottom: 24px; }

/* ============ Narrow screens ============ */
@media (max-width: 880px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero .phone { transform: none; width: min(300px, 74vw); }
  .card, .card:nth-child(2) { grid-template-columns: minmax(0, 1fr); }
  .card:nth-child(2) .card__shot { order: 0; }
  .card__shot .phone { width: min(260px, 66vw); }
  .play, .devices { grid-template-columns: minmax(0, 1fr); }
  .devices .pair { order: 2; }
}
@media (max-width: 420px) {
  .store { padding-inline: 24px; }
  .store span { font-size: 20px; }
  .plate { padding-inline: 18px; }
  .credit { letter-spacing: .08em; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
