/* Game World deck, QA round 1 (2026-10-15).
   One 1920x1080 stage. The world (sky, clouds, hills) is persistent and parallaxes as the
   camera moves; slides sit side by side on a track; Chris and the HUD are single elements
   that live above the track. Motion is transforms + opacity only.
   Type follows classiccity.com: Cultures Carnival headings in Title Case, translucent 45deg
   drop shadow (--drop-shadow-default: 7px 7px 0 rgba(0,0,0,.25) in the theme's scss/main.scss,
   scaled up for a projected 1080p stage). Yellow is the accent colour; orange is the call to action. */
@font-face { font-family: "Carnival"; src: url("assets/fonts/CulturesCarnival.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Hank"; src: url("assets/fonts/HankRnd-Black.woff2") format("woff2"); font-weight: 900; font-display: block; }
@font-face { font-family: "Hank"; src: url("assets/fonts/HankRnd-Bold.woff2") format("woff2"); font-weight: 700; font-display: block; }
@font-face { font-family: "Hank"; src: url("assets/fonts/HankRnd-Regular.woff2") format("woff2"); font-weight: 400; font-display: block; }

:root {
  --ink: #353541; --ink-deep: #22222b; --night: #15151b;
  --sky: #C3E3FF;
  --orange: #F08828; --orange-dk: #C96A14;          /* call to action only */
  --cream: #FFFAF2; --butter: #FFC531; --red: #E8463C; --mute: #C9C9D6;
  --tile: 128px; --ground: 952px;
  --L: 120px;                                        /* the one left edge */
  --shadow: 12px 12px 0 rgba(0,0,0,.25);             /* 45deg, translucent: boxes */
  --tshadow: 12px 12px 0 rgba(0,0,0,.25);            /* 45deg, translucent: headings */
}
#stage { font-family: "Hank", sans-serif; color: var(--ink); background: #fff; }
#stage img { display: block; }
.abs { position: absolute; }
.L { left: var(--L); }

/* ---------- persistent world ---------- */
#sky { position: absolute; inset: 0; background: linear-gradient(var(--sky) 0 470px, #fff 470px); }
.par { position: absolute; left: 0; width: 2432px; will-change: transform; }
.par .strip { position: absolute; inset: 0; background-repeat: repeat-x; background-size: 512px 512px; }
#clouds { top: -20px; height: 512px; }
#clouds .strip { background-image: url("assets/kenney/background_clouds.svg"); width: 2944px; animation: drift 90s linear infinite; }
#hills { top: 590px; height: 512px; }
/* light-blue layer only: Kenney background_fade_trees with its white sky removed */
#hills .strip { background-image: url("assets/kenney/background_fade_trees_clear.svg"); }
@keyframes drift { to { transform: translateX(-512px); } }
#night { position: absolute; inset: 0; background: linear-gradient(#101017, #1b1b25); opacity: 0; pointer-events: none; }

#track { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; will-change: transform; }
#track .slide { inset: auto; position: absolute; top: 0; width: 1920px; height: 1080px; display: none; overflow: visible; }
#track .slide.vis { display: block; }

.ground { position: absolute; left: 0; right: 0; top: var(--ground); height: var(--tile);
  background: var(--top) 0 0 / var(--tile) var(--tile) repeat-x; }
.ground.grass  { --top: url("assets/kenney/terrain_grass_block_top.svg"); }
.ground.stone  { --top: url("assets/kenney/terrain_stone_block_top.svg"); }
.ground.sand   { --top: url("assets/kenney/terrain_sand_block_top.svg"); }
.ground.purple { --top: url("assets/kenney/terrain_purple_block_top.svg"); }
.ngt .ground, .ngt .sp { filter: brightness(.55) saturate(.8); }

/* ---------- World 1 level map (camera space, slides in and out with World 1) ---------- */
#map { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; will-change: transform; }
#map .plat { position: absolute; top: var(--ground); height: var(--tile); display: flex; }
#map .plat i { width: var(--tile); height: var(--tile); background: center / 100% 100% no-repeat; }
#map .era { position: absolute; top: 996px; transform: translateX(-50%) rotate(-2deg); }
#map .era .stamp { font-size: 28px; padding: 7px 16px 9px; border-width: 5px; box-shadow: 6px 6px 0 rgba(0,0,0,.25); transition: background .3s, transform .3s; }
#map .era.cur .stamp { background: var(--butter); transform: scale(1.12); }
#map .era.done .stamp, #map .era.next .stamp { opacity: .9; }
#map .era .stamp small { font: 700 22px/1 "Hank"; color: #5E5E6E; margin-left: 2px; }
#map .era.cur .stamp small { color: var(--ink); }
/* era heading with its dates tag beside it (4a, 4b) */
.era-head { display: flex; align-items: center; gap: 40px; }
.era-head .stamp { margin-top: 6px; }
/* Flag on the RIGHT end of each platform. The window's bottom edge is the platform top, so a lowered
   pole hides inside the platform: before Chris arrives only the tip peeks out; on landing the pole
   rises, then the cloth climbs it. Visited platforms keep their flags up. */
#map .flagw { position: absolute; top: 824px; width: 128px; height: 128px; overflow: hidden; }
#map .flagw img { position: absolute; left: 0; top: 0; width: 128px; height: 128px; }
#map .flagw .fpole { transform: translateY(100px); transition: transform .3s ease-in .15s; }
#map .flagw .cloth { clip-path: inset(0 0 0 30%); transform: translateY(128px); transition: transform .25s ease-in; }
#map .flagw.up .fpole { transform: none; transition: transform .5s cubic-bezier(.3,1.35,.5,1); }
#map .flagw.up .cloth { transform: none; transition: transform .6s cubic-bezier(.3,1.15,.5,1) .5s; }
#map .flagw.now .fpole, #map .flagw.now .cloth { transition: none; }

/* ---------- Chris (one element for the whole deck) ---------- */
#hero { position: absolute; left: 0; top: 0; width: 384px; height: 384px; transform-origin: 50% 100%; will-change: transform; z-index: 6; pointer-events: none; }
#hero .fade { position: absolute; inset: 0; transition: opacity .35s; }
#hero.hide .fade { opacity: 0; }
#hero .b { position: absolute; inset: 0; transform-origin: 50% 100%; }
#hero .face { position: absolute; inset: 0; transform-origin: 50% 100%; }
#hero.flip .face { transform: scaleX(-1); }
#hero img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- HUD ---------- */
.hudbar { position: absolute; left: var(--L); right: var(--L); top: 34px; height: 92px; display: flex; align-items: center; justify-content: space-between;
  z-index: 8; transition: transform .5s cubic-bezier(.3,1.2,.5,1), opacity .3s; }
.hudbar.off { transform: translateY(-190px); opacity: 0; transition: transform .4s cubic-bezier(.5,0,.8,.5), opacity .3s .1s; }
.hud-l { display: flex; align-items: center; gap: 22px; }
.hud-l .label { font: 900 38px/1 "Hank"; color: var(--ink); transition: opacity .2s; }
.hud-l .stamp { font-size: 30px; padding: 9px 18px 11px; border-width: 5px; box-shadow: 6px 6px 0 rgba(0,0,0,.25); }
.night-hud .hud-l .label, .night-hud .p1 b { color: #fff; }
.p1 { display: flex; align-items: center; gap: 18px; text-align: right; }
.p1 b { display: block; font: 900 38px/1 "Hank"; color: var(--ink); }
.p1 small { display: block; font: 700 26px/1 "Hank"; color: var(--orange-dk); margin-top: 6px; letter-spacing: .04em; }
.night-hud .p1 small { color: var(--butter); }
.avatar { position: relative; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--butter); border: 6px solid var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.25); flex: none; }
.avatar img { position: absolute; width: 164px !important; height: 164px !important; left: -42px; top: -24px; }
.hud-fade { opacity: 0 !important; }
/* ---------- type ---------- */
/* Cultures Carnival's character comes from its 23 standard ligatures (at, ot, to, ea, et, la, ll, ti...),
   which classiccity.com shows because its headings keep letter-spacing: normal. Chrome turns liga OFF
   whenever letter-spacing is not 0, so never letter-space Carnival text (round 2 fix, 5.1). */
.display, .nblock span, .board .num, .fx-word, .fx-plus, .carn { font-variant-ligatures: common-ligatures; letter-spacing: 0; }
.display { font-family: "Carnival", sans-serif; font-weight: 400; line-height: .95; white-space: nowrap;
  color: #fff; -webkit-text-stroke: 12px var(--ink); paint-order: stroke fill; text-shadow: var(--tshadow); margin-left: 8px; }
.display .y, .display.y { color: var(--butter); }
.ngt .display { -webkit-text-stroke-color: var(--ink-deep); text-shadow: 12px 12px 0 rgba(255,255,255,.16); }
.lede { font: 400 54px/1.2 "Hank"; color: var(--ink); }
.lede b { font-weight: 900; }
.ngt .lede { color: #fff; }
.kicker { font: 900 36px/1 "Hank"; letter-spacing: .02em; }
.hl { color: var(--orange-dk); }
.ngt .hl { color: var(--butter); }

/* ---------- tag stamp: the one label component ---------- */
.stamp { display: inline-flex; align-items: center; gap: .35em; font: 900 40px/1.05 "Hank"; color: var(--ink); background: var(--cream);
  border: 6px solid var(--ink); border-radius: 14px; padding: 12px 24px 14px; box-shadow: var(--shadow); white-space: nowrap; }
.stamp.tilt { transform: rotate(-2deg); }
.stamp.y { background: var(--butter); }
.stamp.ink { background: var(--ink); color: #fff; }
.stamp.sm { font-size: 32px; padding: 9px 18px 11px; border-width: 5px; border-radius: 12px; }
.stamp.lg { font-size: 54px; padding: 14px 30px 18px; border-width: 7px; }

/* ---------- cards ---------- */
.card { position: absolute; background: var(--cream); border: 7px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 28px 34px 32px; }
.card.y { background: var(--butter); }
.card .big { font: 900 84px/1 "Hank"; color: var(--ink); letter-spacing: -.01em; }
.card .lbl { font: 400 40px/1.2 "Hank"; color: var(--ink); margin-top: 10px; }
.card .cap { font: 900 32px/1 "Hank"; color: var(--orange-dk); margin-bottom: 14px; }
.card.y .cap { color: var(--ink); }
.card .ttl { font: 900 58px/1.05 "Hank"; color: var(--ink); }
.card .body { font: 400 46px/1.18 "Hank"; color: var(--ink); margin-top: 16px; }
.arr { display: inline-block; width: 0; height: 0; border-left: .42em solid currentColor; border-top: .26em solid transparent; border-bottom: .26em solid transparent; margin: 0 .3em .06em; vertical-align: middle; }

/* ---------- word block (always the EMPTY Kenney block) ---------- */
.nblock { position: relative; width: 160px; height: 160px; flex: none; }
.nblock img { position: absolute; inset: 0; width: 100%; height: 100%; }
.nblock span { position: absolute; left: 0; right: 0; top: 50%; text-align: center; transform: translateY(-50%); font: 400 96px/1 "Carnival"; color: #fff;
  -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; margin-top: var(--nudge, -2px); }
.nblock small { font: 400 44px/1 "Carnival"; -webkit-text-stroke: 8px var(--ink); }

/* ---------- sprites ---------- */
.sp { position: absolute; width: var(--tile); height: var(--tile); }

/* ---------- spotlight + stool (cold open, Content Day) ---------- */
.cone { position: absolute; width: 760px; height: 900px; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255,226,150,.55), rgba(255,226,150,.08)); transform-origin: 50% 0; pointer-events: none; }
.lamp { position: absolute; width: 150px; height: 70px; background: var(--ink); border: 8px solid #0d0d11; border-radius: 75px 75px 14px 14px; }
.lamp::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: -16px; height: 18px; background: #FFE7A3; border-radius: 0 0 40px 40px; }
.stool { position: absolute; width: 220px; height: 300px; }
.stool .seat { position: absolute; left: 0; right: 0; top: 0; height: 52px; background: var(--orange); border: 8px solid var(--ink); border-radius: 26px; box-shadow: inset 0 -10px 0 var(--orange-dk); }
.stool .leg { position: absolute; top: 40px; width: 22px; height: 260px; background: var(--ink); border-radius: 6px; }
.stool .leg.l { left: 34px; transform: rotate(6deg); transform-origin: top; }
.stool .leg.r { right: 34px; transform: rotate(-6deg); transform-origin: top; }
.stool .rung { position: absolute; left: 30px; right: 30px; top: 190px; height: 16px; background: var(--ink); border-radius: 6px; }
.floor-glow { position: absolute; width: 700px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,226,150,.45), rgba(255,226,150,0)); }
.pole { position: absolute; background: var(--ink); border-radius: 8px; }

/* ---------- step card: the one card layout (3.4 steps, 1.3 / 5.1 asks, 2.5 stats) ----------
   Numbered block straddling the top edge, strong title, lighter description, centred. */
.step { position: absolute; padding: 84px 30px 34px; text-align: center; }
.step > .nblock { position: absolute; left: 50%; top: -60px; width: 120px; height: 120px; margin-left: -60px; }
.step > .nblock span { font-size: 74px; -webkit-text-stroke: 9px var(--ink); }
.step .ttl { font: 900 56px/1.05 "Hank"; color: var(--ink); }
.step .body { margin-top: 14px; font: 400 40px/1.22 "Hank"; color: #5E5E6E; }
.step > .nblock + .body, .step > .nblock + .big { margin-top: 0; }
.step.y .body { color: var(--ink); }
.step .big { font: 900 84px/1 "Hank"; color: var(--ink); }
/* arrow between step cards: centred in the gap on the card's centre line, clear of the card shadow */
.step-arrow { position: absolute; width: 76px; height: 64px; margin: -32px 0 0 -38px; }
.step-arrow svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------- title screen (1.2) ---------- */
.logo { position: absolute; filter: drop-shadow(12px 12px 0 rgba(0,0,0,.18)); }
.btn-start { display: inline-block; font: 900 46px/1 "Hank"; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--orange);
  border: 7px solid var(--ink); border-radius: 18px; padding: 24px 46px 26px; box-shadow: var(--shadow); white-space: nowrap; }
.on .btn-start { animation: btn-pulse 2.2s ease-in-out 1.2s infinite; }
@keyframes btn-pulse { 0%, 100% { transform: none; box-shadow: var(--shadow); } 50% { transform: scale(1.045); box-shadow: 16px 16px 0 rgba(0,0,0,.22); } }
.coin-spin { animation: spin 1.6s ease-in-out infinite; }

/* ---------- scoreboard (5, events) ---------- */
.board { position: absolute; background: var(--ink-deep); border: 8px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: .8fr .9fr 1fr 1.45fr; padding: 44px 20px 46px; }
.board .cell { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; border-left: 4px dashed rgba(255,255,255,.18); }
.board .cell:first-child { border-left: 0; }
.board .num { font: 400 118px/.9 "Carnival"; color: var(--butter); -webkit-text-stroke: 12px #111; paint-order: stroke fill; }
.board .lab { font: 700 36px/1.1 "Hank"; color: #fff; margin-top: 10px; }

/* ---------- tape collage (10) ---------- */
.clip { position: absolute; width: 244px; height: 434px; padding: 10px; background: #fff; border: 6px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.clip img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.clip.sm { width: 150px; height: 262px; padding: 6px; border-width: 5px; border-radius: 14px; box-shadow: 8px 8px 0 rgba(0,0,0,.22); }
.clip.sm img { border-radius: 6px; }

/* ---------- title screen props (2): Chris's stuff, hand-built in assets/props/ ----------
   Kenney scale: 8px ink outline, flat fills. Each idles on a slow loop with a long rest, transforms
   (and the notes' fade) only, and only while the slide is on. Accents (presenter.js play()) override
   the idle animation and hand it back on animationend. */
.prop { position: absolute; }
.prop img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.prop > div { position: absolute; }
/* d20 on the right ! block: rests, then a small roll that settles on 20, and a sparkle */
.d20 { inset: 0; transform-origin: 50% 90%; }
.prop .spark { left: 88px; top: -14px; width: 46px; height: 46px; transform: scale(0); }
.on .d20 { animation: d20-idle 7s ease-in-out 2s infinite; }
.on .prop .spark { animation: d20-spark 7s ease-out 2s infinite; }
@keyframes d20-idle { 0%, 74%, 100% { transform: none; } 77% { transform: translateY(-18px) rotate(-14deg); } 81% { transform: rotate(9deg); } 85% { transform: rotate(-4deg); } 88% { transform: rotate(1.5deg); } 91% { transform: none; } }
@keyframes d20-spark { 0%, 88%, 100% { transform: scale(0); } 92% { transform: scale(1) rotate(45deg); } 97% { transform: scale(0) rotate(90deg); } }
#stage .d20.a-roll { animation: d20-roll 1.1s cubic-bezier(.3,.7,.4,1); }
@keyframes d20-roll { 0% { transform: none; } 35% { transform: translateY(-120px) rotate(-400deg); } 62% { transform: translateY(0) rotate(-700deg); } 72% { transform: translateY(-22px) rotate(-725deg); } 82% { transform: rotate(-714deg); } 90% { transform: rotate(-722deg); } 100% { transform: rotate(-720deg); } }
/* drums: the cymbal tilts on the one, the stick taps the snare twice mid-bar */
.cym { left: 215px; top: 34px; width: 170px; height: 52px; transform-origin: 50% 58%; }
.stick { left: 213px; top: 127px; width: 140px; height: 22px; transform-origin: 94% 50%; transform: rotate(-10deg); }
.on .cym { animation: cym-idle 4.4s ease-out 1.4s infinite; }
.on .stick { animation: stick-idle 4.4s ease-in-out 1.4s infinite; }
@keyframes cym-idle { 0%, 32%, 100% { transform: none; } 4% { transform: rotate(-7deg); } 13% { transform: rotate(3.5deg); } 21% { transform: rotate(-1.5deg); } 27% { transform: rotate(.5deg); } }
@keyframes stick-idle { 0%, 52%, 100% { transform: rotate(-10deg); } 56% { transform: rotate(5deg); } 59% { transform: rotate(-12deg); } 63% { transform: rotate(4deg); } 66% { transform: rotate(-12deg); } 69% { transform: rotate(-10deg); } }
#stage .stick.a-fill { animation: stick-fill .62s linear; }
@keyframes stick-fill { 0%, 100% { transform: rotate(-10deg); } 12%, 37%, 62%, 87% { transform: rotate(8deg); } 25%, 50%, 75% { transform: rotate(-12deg); } }
#stage .cym.a-crash { animation: cym-crash 1s ease-out; }
@keyframes cym-crash { 0% { transform: none; } 8% { transform: rotate(-16deg); } 26% { transform: rotate(10deg); } 46% { transform: rotate(-6deg); } 66% { transform: rotate(3deg); } 84% { transform: rotate(-1deg); } 100% { transform: none; } }
/* guitar on its stand: strings shimmer now and then, a couple of notes float up and fade */
.gtr { left: 20px; top: 12px; width: 150px; height: 280px; transform-origin: 50% 100%; transform: rotate(-6deg); }
.prop .note { left: 108px; top: 120px; width: 46px; height: 52px; opacity: 0; }
.prop .note.n2 { left: 128px; top: 100px; width: 38px; height: 43px; }
.on .gtr .strings { animation: str-shim 6s linear 1s infinite; }
.on .prop .note.n1 { animation: note-float 6s ease-out 1s infinite; }
.on .prop .note.n2 { animation: note-float 6s ease-out 1.6s infinite; }
@keyframes str-shim { 0%, 79%, 95%, 100% { transform: none; } 80%, 84%, 88%, 92% { transform: translateX(1.4px); } 82%, 86%, 90% { transform: translateX(-1.4px); } 94% { transform: translateX(.5px); } }
@keyframes note-float { 0%, 79% { opacity: 0; transform: translate(0, 0) scale(.6); } 83% { opacity: 1; transform: translate(6px, -24px) scale(1); } 92% { opacity: 1; transform: translate(-8px, -78px) rotate(-8deg); } 100% { opacity: 0; transform: translate(6px, -128px) rotate(6deg); } }
#stage .gtr.a-strum { animation: gtr-strum .7s ease-out; }
@keyframes gtr-strum { 0%, 100% { transform: rotate(-6deg); } 20% { transform: rotate(-9deg); } 45% { transform: rotate(-3.5deg); } 70% { transform: rotate(-7deg); } }
#stage .strings.a-shimmer { animation: str-shim 1.2s linear; animation-name: str-fast; }
@keyframes str-fast { 0%, 100% { transform: none; } 10%, 30%, 50%, 70% { transform: translateX(1.8px); } 20%, 40%, 60%, 80% { transform: translateX(-1.8px); } 90% { transform: translateX(.6px); } }
.fx-note { position: absolute; width: 56px; height: 64px; margin: -32px 0 0 -28px; animation: fx-note 1.2s ease-out forwards; }
@keyframes fx-note { 0% { opacity: 0; transform: translateY(20px) scale(.5); } 20% { opacity: 1; transform: translateY(-30px) scale(1.1) rotate(-6deg); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(20px, -190px) rotate(10deg); } }
/* Banana Ball: a banana bat leaning on the bush, a ball that bounces and spins now and then */
.bat { left: 120px; top: 12px; width: 110px; height: 240px; transform-origin: 50% 96%; transform: rotate(16deg); }
.ball { left: 22px; top: 176px; width: 76px; height: 76px; transform-origin: 50% 50%; }
.on .ball { animation: ball-idle 6.5s ease-in-out 2.6s infinite; }
@keyframes ball-idle { 0%, 62% { transform: none; } 68% { transform: translateY(-50px) rotate(-170deg); } 74% { transform: translateY(0) rotate(-290deg); } 79% { transform: translateY(-16px) rotate(-335deg); } 84%, 100% { transform: translateY(0) rotate(-360deg); } }
#stage .bat.a-swing { animation: bat-swing .8s cubic-bezier(.4,0,.3,1); }
@keyframes bat-swing { 0%, 100% { transform: rotate(16deg); } 30% { transform: rotate(48deg); } 55% { transform: rotate(-62deg); } 80% { transform: rotate(4deg); } }
#stage .ball.a-launch { animation: ball-launch 1.3s cubic-bezier(.3,.6,.4,1); }
@keyframes ball-launch { 0% { transform: none; } 40% { transform: translate(-60px, -300px) rotate(-420deg); } 72% { transform: translate(0, 0) rotate(-680deg); } 82% { transform: translateY(-34px) rotate(-700deg); } 92%, 100% { transform: translateY(0) rotate(-720deg); } }
/* landing on a platform after a jump */
#stage #hero .b.a-land { animation: a-land .28s ease-out; }
@keyframes a-land { 40% { transform: scale(1.08, .9); } }

/* ---------- objections (7): excuse, answer, and a Solved stamp fired by accents ---------- */
.card.obj { padding: 38px 40px; }
.card.obj .ttl { font-size: 48px; }
.card.obj .body { font-size: 37px; margin-top: 16px; color: #5E5E6E; line-height: 1.25; }
.stamp.solvestamp { position: absolute; right: 30px; bottom: -28px; background: var(--butter); font-size: 38px; opacity: 0;
  transform: scale(2.2) rotate(-14deg); transition: opacity .15s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.obj.solved .stamp.solvestamp { opacity: 1; transform: rotate(-6deg); }

/* ---------- behind-the-scenes photos (9) ---------- */
.photo { position: absolute; padding: 10px; background: #fff; border: 6px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* ---------- packages (12): chunky game cartridges ---------- */
.cart { position: absolute; width: 680px; height: 490px; background: #4B4B5A; border: 7px solid var(--ink); border-radius: 30px 30px 16px 16px;
  box-shadow: var(--shadow); padding: 62px 26px 26px; transition: transform .35s cubic-bezier(.3,1.5,.5,1), box-shadow .35s; }
.cart::before { content: ""; position: absolute; left: 60px; right: 60px; top: 16px; height: 30px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, #353541 0 16px, transparent 16px 30px); }
.cart .label { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--cream); border: 6px solid var(--ink); border-radius: 14px; padding: 22px 32px; }
.cart.best .label { background: var(--butter); }
.cart .name { margin: 0 0 16px; font-size: 84px; line-height: 1; -webkit-text-stroke-width: 10px; text-shadow: 8px 8px 0 rgba(0,0,0,.2); }
.cart .line { font: 700 34px/1.25 "Hank"; color: var(--ink); }
.cart .badge { position: absolute; right: 40px; top: -34px; z-index: 2; }
.cart .price { position: relative; margin-top: auto; height: 130px; perspective: 800px; }
.cart .face { position: absolute; inset: 0; display: flex; align-items: baseline; gap: 18px; backface-visibility: hidden;
  transition: transform .5s cubic-bezier(.3,1.3,.5,1), opacity .25s; transform-origin: 50% 60%; }
.cart .face b { font: 400 120px/1 "Carnival"; color: #fff; -webkit-text-stroke: 11px var(--ink); paint-order: stroke fill; text-shadow: 8px 8px 0 rgba(0,0,0,.2);
  font-variant-ligatures: common-ligatures; letter-spacing: 0; }
.cart .face span { font: 900 38px/1 "Hank"; color: var(--ink); white-space: nowrap; }
.cart .face.fpp { opacity: 0; transform: rotateX(-90deg); }
.cart .face.fpp b { color: var(--butter); }
.cart.best .face.fpp b { color: #fff; }
.cart.pp .face.ftot { opacity: 0; transform: rotateX(90deg); }
.cart.pp .face.fpp { opacity: 1; transform: none; }
.cart.pp .face.fpp b { font-size: 140px; }
.cart.hi { transform: translateY(-22px) scale(1.03); box-shadow: 18px 22px 0 rgba(0,0,0,.25); }
.cart.hi .label { box-shadow: 0 0 0 6px var(--orange) inset; }

/* ---------- the realization (4c): the P&L zooms in, tilted, over a dimmed slide ---------- */
#pnl { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
#pnl .dim { position: absolute; inset: 0; background: #15151b; opacity: 0; transition: opacity .3s ease-in; }
#pnl .paper { position: absolute; left: 50%; top: 50%; width: 1640px; margin: -362px 0 0 -820px; padding: 26px; background: #fff;
  border: 8px solid var(--ink); border-radius: 22px; box-shadow: 22px 22px 0 rgba(0,0,0,.25);
  opacity: 0; transform: translateY(140px) scale(.35) rotate(0deg); transition: opacity .25s ease-in, transform .3s ease-in; }
#pnl .paper img { width: 100%; height: auto; border-radius: 8px; }
#pnl.on .dim { opacity: .62; transition: opacity .5s ease-out; }
#pnl.on .paper { opacity: 1; transform: rotate(-3.5deg); transition: opacity .25s ease-out .1s, transform .75s cubic-bezier(.25,1.25,.45,1) .1s; }

/* ---------- recurring revenue chart (chart): cream card, ink outlines, draws in left to right ---------- */
.card.chart { padding: 0; overflow: hidden; }
.card.chart svg, .card.chart .ch-draw { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.chart .gl { stroke: #353541; stroke-opacity: .14; stroke-width: 3; }
.chart .tk { stroke: var(--ink); stroke-width: 4; }
.chart .ax { font: 700 30px "Hank"; fill: #5E5E6E; }
.chart .b-rec { fill: #2ECC71; }
.chart .b-prj { fill: var(--orange); }
.chart .l-rec, .chart .l-top { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.chart .l-cost { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-dasharray: .1 19; }
.chart .lab { font: 900 34px "Hank"; fill: var(--ink); }
.chart .lab.w { fill: #fff; paint-order: stroke; stroke: var(--ink); stroke-width: 7px; stroke-linejoin: round; }
.chart .gap { stroke: #fff; stroke-width: 7; stroke-dasharray: 16 12; stroke-linecap: round; }
.chart .dot { stroke: var(--ink); stroke-width: 6; }
.chart .dot.rec { fill: #2ECC71; }
.chart .dot.cost { fill: var(--butter); }
/* hidden only while entering (fill: both), so the chart stays drawn as it slides away */
.on .ch-draw { animation: ch-draw 1.5s cubic-bezier(.45,0,.25,1) .55s both; }
@keyframes ch-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ch-gap { transform-origin: 40% 50%; }
.on .ch-gap { animation: e-fade .4s ease-out 1.6s both; }
.ch-ledger { padding: 14px 30px; }
.ch-ledger .row { display: flex; align-items: baseline; gap: 20px; padding: 12px 0; border-top: 4px dashed rgba(53,53,65,.18); }
.ch-ledger .row:first-child { border-top: 0; }
.ch-ledger b { flex: none; width: 262px; text-align: right; font: 900 62px/1 "Hank"; color: var(--ink); }
.ch-ledger b.g { color: #1E9E55; }
.ch-ledger span { font: 400 35px/1.1 "Hank"; color: #5E5E6E; white-space: nowrap; }
.ch-ledger .row.gap { margin: 6px -30px -14px; padding: 18px 30px 20px; background: var(--orange); border-top: 6px solid var(--ink); border-radius: 0 0 15px 15px; }
.ch-ledger .row.gap span { color: var(--ink); font-weight: 700; }

/* ---------- entrances (light: the slide itself slides in, so these only add a small settle) ---------- */
.on .e-drop  { animation: e-drop .6s cubic-bezier(.3,1.45,.55,1) calc(var(--d, 0s) + .3s) both; }
.on .e-pop   { animation: e-pop .5s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0s) + .3s) both; }
.on .e-rise  { animation: e-rise .5s cubic-bezier(.2,.8,.3,1) calc(var(--d, 0s) + .3s) both; }
.on .e-fade  { animation: e-fade .5s ease-out calc(var(--d, 0s) + .2s) both; }
.on .e-slam  { animation: e-slam .45s cubic-bezier(.2,1.5,.5,1) calc(var(--d, 0s) + .3s) both; }
@keyframes e-drop { from { transform: translateY(-80px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes e-pop  { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes e-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes e-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes e-slam { from { transform: scale(1.6); opacity: 0; } to { transform: none; opacity: 1; } }
/* tilted items keep their tilt through the entrance */
.on .e-rise.tilt { animation-name: e-rise-t; }
@keyframes e-rise-t { from { transform: translateY(40px) rotate(-2deg); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }

.on .blink { animation: blink 1.1s steps(2, jump-none) 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.on .bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }
.spin { animation: spin 1.6s ease-in-out infinite; }
@keyframes spin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.15); } }

/* ---------- accent effects (fired by presenter.js) ---------- */
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
#stage .a-bump { animation: a-bump .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes a-bump { 40% { transform: translateY(-34px); } }
#stage .a-pulse { animation: a-pulse .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes a-pulse { 35% { transform: scale(1.12); } }
#stage .a-pulse.tilt { animation-name: a-pulse-t; }
@keyframes a-pulse-t { 0%, 100% { transform: rotate(-2deg); } 35% { transform: scale(1.14) rotate(-4deg); } }
#stage .a-shake { animation: a-shake .45s linear; }
@keyframes a-shake { 15% { transform: translate(-14px, 4px); } 30% { transform: translate(12px, -6px); } 45% { transform: translate(-10px, 2px); } 60% { transform: translate(8px, 4px); } 75% { transform: translate(-4px, -2px); } }
#stage .a-hop { animation: a-hop .55s cubic-bezier(.3,1.3,.5,1); }
@keyframes a-hop { 40% { transform: translateY(-110px); } 80% { transform: scale(1.06,.94); } }
#stage .a-wobble { animation: a-wobble .7s ease-in-out; }
@keyframes a-wobble { 25% { transform: rotate(-5deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }
#stage .a-knock { animation: a-knock .5s cubic-bezier(.3,1.2,.5,1); }
@keyframes a-knock { 25% { transform: translateX(40px) rotate(8deg); } 60% { transform: translateX(20px) rotate(-3deg); } }
#stage .a-jitter { animation: a-jitter .6s linear; }
@keyframes a-jitter { 10%,30%,50%,70%,90% { transform: translateX(-6px); } 20%,40%,60%,80% { transform: translateX(6px); } }
#stage .a-glow { animation: a-glow 1.1s ease-out; }
@keyframes a-glow { 0% { filter: none; } 30% { filter: drop-shadow(0 0 30px var(--butter)) brightness(1.12); transform: scale(1.06); } 100% { filter: none; } }

.fx-coin { position: absolute; width: 112px; height: 112px; margin: -56px 0 0 -56px; animation: fx-coin .9s cubic-bezier(.2,.8,.3,1) forwards; }
.fx-coin img { width: 100%; height: 100%; animation: spin .3s linear infinite; }
@keyframes fx-coin { 0% { transform: translateY(20px) scale(.4); opacity: 0; } 20% { opacity: 1; transform: translateY(-80px) scale(1.05); } 70% { opacity: 1; transform: translateY(-190px); } 100% { transform: translateY(-230px) scale(.7); opacity: 0; } }
.fx-plus { position: absolute; font: 400 90px/1 "Carnival"; color: var(--butter); -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; white-space: nowrap;
  transform: translate(-50%, -50%); animation: fx-plus 1s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes fx-plus { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.6); } 25% { opacity: 1; transform: translate(-50%, -80%) scale(1.1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -150%); } }
.fx-bit { position: absolute; width: 22px; height: 30px; border-radius: 4px; animation: fx-bit 1.2s cubic-bezier(.15,.7,.4,1) forwards; }
@keyframes fx-bit { from { transform: translate(0,0) rotate(0); opacity: 1; } 80% { opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.fx-star { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; animation: fx-star 1s cubic-bezier(.15,.7,.4,1) forwards; }
@keyframes fx-star { from { transform: scale(.3) rotate(0); opacity: 1; } 75% { opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(1) rotate(200deg); opacity: 0; } }
.fx-heart { position: absolute; width: 220px; height: 220px; margin: -110px 0 0 -110px; }
.fx-heart i { position: absolute; inset: 0; background: url("assets/kenney/heart.svg") center / contain no-repeat; }
.fx-heart i.l { clip-path: polygon(0 0, 52% 0, 44% 35%, 56% 55%, 46% 100%, 0 100%); animation: fx-hl 1s cubic-bezier(.4,0,.6,1) forwards; }
.fx-heart i.r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 46% 100%, 56% 55%, 44% 35%); animation: fx-hr 1s cubic-bezier(.4,0,.6,1) forwards; }
@keyframes fx-hl { 0% { transform: scale(1.8); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 45% { transform: none; } 100% { transform: translate(-60px, 260px) rotate(-30deg); opacity: 0; } }
@keyframes fx-hr { 0% { transform: scale(1.8); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 45% { transform: none; } 100% { transform: translate(60px, 260px) rotate(30deg); opacity: 0; } }
.fx-word { position: absolute; font: 400 150px/1 "Carnival"; color: #fff; -webkit-text-stroke: 14px var(--ink); paint-order: stroke fill; white-space: nowrap;
  transform: translate(-50%, -50%); animation: fx-word 1.1s cubic-bezier(.2,1.4,.5,1) forwards; }
.fx-word.red { color: var(--red); }
@keyframes fx-word { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2) rotate(-8deg); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) rotate(-6deg); } }
.fx-flash { position: absolute; inset: 0; background: #fff; animation: fx-flash .35s ease-out forwards; }
.fx-flash.red { background: var(--red); }
@keyframes fx-flash { from { opacity: .45; } to { opacity: 0; } }
@keyframes fx-poof { 0% { transform: translateY(40px) scale(.3); opacity: 0; } 30% { transform: translateY(-20px) scale(1.1); opacity: 1; } 60% { transform: translateY(-30px) scale(1); opacity: 1; } 100% { transform: translateY(-50px) scale(1.6); opacity: 0; filter: blur(6px); } }

/* strike-through drawn on demand */
.strike { position: relative; display: inline-block; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 50%; height: .14em; margin-top: -.07em; background: var(--red); border-radius: 99px;
  transform: scaleX(0) rotate(-4deg); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.3,1.2,.5,1); }
.strike.struck::after { transform: scaleX(1) rotate(-4deg); }
.revealable { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .35s, transform .45s cubic-bezier(.3,1.5,.5,1); }
.revealable.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  #clouds .strip, .on .blink, .on .bob, .spin { animation: none !important; }
  .on .d20, .on .prop .spark, .on .cym, .on .stick, .on .gtr .strings, .on .prop .note, .on .ball { animation: none !important; }
  .on .e-drop, .on .e-pop, .on .e-rise, .on .e-slam { animation: e-fade .3s ease-out both !important; }
  .on .ch-draw { animation: e-fade .3s ease-out both !important; }
}

/* 4a: the book Chris learned from flies in from the right and back out (accent "book") */
#book { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
#book .cover { position: absolute; left: 1565px; top: 330px; width: 310px; padding: 14px; background: #fff;
  border: 6px solid var(--ink); border-radius: 14px; box-shadow: 14px 14px 0 rgba(0,0,0,.25);
  opacity: 0; transform: translate(1100px, -260px) rotate(32deg);
  transition: opacity .3s ease-in .25s, transform .6s cubic-bezier(.55,0,.8,.35); }
#book .cover img { display: block; width: 100%; height: auto; border-radius: 6px; }
#book.on .cover { opacity: 1; transform: rotate(6deg);
  transition: opacity .2s ease-out, transform .8s cubic-bezier(.25,1.3,.45,1); }
@media (prefers-reduced-motion: reduce) { #book .cover, #book.on .cover { transition: opacity .2s; transform: rotate(6deg); } }

/* chart key: each ledger row wears the same mark as its series in the chart */
.ch-ledger .row { align-items: center; }
.ch-ledger .sw { flex: none; display: block; width: 56px; height: 44px; border: 5px solid var(--ink); border-radius: 9px; }
.ch-ledger .sw-rec { background: #2ECC71; }
.ch-ledger .sw-prj { background: var(--orange); box-shadow: 0 0 0 4px #fff; }
.ch-ledger .sw-cost { border: 0; border-radius: 0; height: 12px;
  background: radial-gradient(circle, var(--ink) 4.6px, transparent 5.4px) 0 50% / 19px 12px repeat-x; }
.ch-ledger .row.gap b, .ch-ledger .row.gap span { color: var(--ink); }
.ch-ledger b small { font-size: 32px; font-weight: 700; margin-left: 2px; }
.ch-ledger span { font-size: 33px; }

/* 4a: the Goldmine site (Chris + his brother's first business), big and centred, like the P&L (accent "gold") */
#gold { position: absolute; inset: 0; z-index: 13; pointer-events: none; }
#gold .dim { position: absolute; inset: 0; background: #15151b; opacity: 0; transition: opacity .3s ease-in; }
#gold .paper { position: absolute; left: 50%; top: 50%; width: 1060px; margin: -478px 0 0 -530px; padding: 18px; background: #fff;
  border: 7px solid var(--ink); border-radius: 18px; box-shadow: 16px 16px 0 rgba(0,0,0,.28);
  opacity: 0; transform: translateY(900px) rotate(14deg) scale(.8);
  transition: opacity .25s ease-in .2s, transform .55s cubic-bezier(.55,0,.8,.35); }
#gold .paper img { display: block; width: 100%; height: auto; border-radius: 8px; }
#gold.on .dim { opacity: .62; transition: opacity .45s ease-out; }
#gold.on .paper { opacity: 1; transform: rotate(-2.5deg);
  transition: opacity .2s ease-out .05s, transform .8s cubic-bezier(.25,1.25,.45,1) .05s; }
@media (prefers-reduced-motion: reduce) { #gold .paper, #gold.on .paper { transition: opacity .2s; transform: rotate(-2.5deg); } }
