/* Two Sides of the Same Call – a cute walk through the report */

@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/SourceSerif4-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/SourceSerif4-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/SourceSerif4-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #FFFFFF; --ink: #0F1B3D; --blue: #2456E6; --yellow: #FFB020; --ochre: #8A5A00; --red: #E5265E; --red-t: #C2185B;
  --grey: #5E5A52; --rule: #E3E6EE; --calm: #EEF3FF;
  --mint: #EEF3FF; --mint-d: #2456E6; --sky: #EEF3FF; --peach: #FFF1D6; --butter: #FFE3A6; --blush: #FDE4EC;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r: 22px;
  --trail: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-x: hidden;
  background-image: radial-gradient(circle at 1px 1px, #0F1B3D12 1.2px, transparent 0); background-size: 26px 26px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.small { font-size: 15px; color: var(--grey); }
.mono { font-family: var(--mono); }
.demo { font-family: var(--mono); font-size: 12px; color: var(--grey); margin-top: 1.1rem; }

/* ---------------------------------------------------------- scenes */
main { padding-left: var(--trail); }
.scene { min-height: 100vh; min-height: 100svh; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; max-width: 54rem; margin: 0 auto; padding: 4.5rem 24px; position: relative; }
.station { display: inline-block; color: var(--blue) !important; background: var(--calm) !important; align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); background: var(--butter); border-radius: 999px; padding: .25rem .8rem; margin: 0 0 .9rem; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; margin: 0 0 1rem; letter-spacing: -.015em; }
h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.3rem); }
h3.sub { font-size: 1.4rem; margin: 1.5rem 0 .3rem; }
p { margin: 0 0 1rem; }
.card { background: #fff; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 6px 0 var(--ink); }

.js .reveal { opacity: 0; transform: translateY(34px) scale(.96); }
.js .in .reveal { opacity: 1; transform: none; transition: opacity .5s ease, transform .75s var(--spring); transition-delay: calc(var(--i, 0) * 80ms); }

.spark { position: absolute; color: var(--yellow); font-size: 22px; opacity: .7; pointer-events: none; }
.sp1 { left: 52%; top: 14%; } .sp2 { right: 12%; bottom: 22%; font-size: 30px; color: #FFB020; } .sp3 { left: 8%; bottom: 14%; font-size: 26px; }
.in .spark { animation: twinkle 3s ease-in-out infinite; } .in .sp2 { animation-delay: 1s; } .in .sp3 { animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: .7; } 50% { transform: scale(1.35) rotate(25deg); opacity: 1; } }

/* ---------------------------------------------------------- trail */
.trail { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: var(--trail); display: flex; align-items: center; justify-content: center; }
.trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; position: relative; }
.trail ol::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; border-left: 3px dotted #C5CBDA; transform: translateX(-1.5px); }
.trail a { position: relative; display: block; width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); transition: transform .3s var(--spring), background .3s; }
.trail a span { position: absolute; left: 26px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap; font-family: var(--mono); font-size: 12px; background: var(--ink); color: var(--paper); padding: .2rem .6rem; border-radius: 999px; opacity: 0; pointer-events: none; transition: .2s; }
.trail a:hover span, .trail a:focus-visible span, .trail a.here span { opacity: 1; transform: translate(0, -50%); }
.trail a:hover { transform: scale(1.35); }
.trail a.seen { background: var(--yellow); border-color: var(--yellow); }
.trail a.here { background: var(--blue); border-color: var(--blue); transform: scale(1.3); }
.walker { position: absolute; left: 0; top: 0; width: 28px; height: 36px; transition: transform .9s var(--spring); pointer-events: none; }
.walker svg { display: block; overflow: visible; stroke-linecap: round; }
.walker .head { fill: #F3D2B8; stroke: var(--ink); stroke-width: 2; }
.walker .torso { fill: var(--yellow); }
.walker .eye { fill: var(--ink); }
.walker .cheek { fill: #E99C8F; }
.walker .leg, .walker .arm { stroke: var(--ink); stroke-width: 2.6; fill: none; }
.walker .l1, .walker .l2 { transform-origin: 14px 24px; }
.walker .a1, .walker .a2 { transform-origin: 14px 17px; }
.walker.walking .l1, .walker.walking .a2 { animation: swing .28s ease-in-out infinite alternate; }
.walker.walking .l2, .walker.walking .a1 { animation: swing .28s ease-in-out infinite alternate-reverse; }
.walker.walking svg { animation: bob .28s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-3px); } }

@media (max-width: 760px) {
  :root { --trail: 0px; }
  main { padding-bottom: 60px; }
  .trail { top: auto; height: 60px; width: auto; right: 0; background: var(--paper); border-top: 2px solid var(--ink); border-radius: 18px 18px 0 0; }
  .trail ol { flex-direction: row; gap: 0; width: calc(100% - 40px); justify-content: space-between; }
  .trail ol::before { left: 6px; right: 6px; top: 50%; bottom: auto; border-left: 0; border-top: 3px dotted #C5CBDA; transform: translateY(-1.5px); }
  .trail a { width: 13px; height: 13px; }
  .trail a span { display: none; }
  .scene { padding: 3.2rem 18px; }
  body { font-size: 18px; }
}

/* ---------------------------------------------------------- marks + popover */
.mk, .mkb { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1; min-width: 1.2rem; padding: .17rem .22rem; text-align: center; vertical-align: .12em; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 5px; margin: 0 .1rem; }
.mk[data-k="R"], .mkb[data-k="R"] { border: 3px double var(--ink); padding: .07rem .12rem; }
.mk[data-k="A"], .mkb[data-k="A"] { border-style: dashed; }
.mk[data-k="V"], .mkb[data-k="V"] { border-style: dotted; border-width: 2px; }
.mkb { cursor: pointer; transition: transform .25s var(--spring); }
.mkb:hover { transform: scale(1.3) rotate(-8deg); background: var(--butter); }
html:not(.js) .c::after { content: attr(data-m); font-family: var(--mono); font-size: 11px; border: 1px solid var(--ink); padding: 0 .2rem; margin-left: .2rem; }
.pop { position: absolute; z-index: 50; max-width: min(23rem, calc(100vw - 32px)); background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: .75rem .9rem; font-size: 15px; box-shadow: 0 6px 0 var(--ink); animation: popin .35s var(--spring); }
.pop p { margin: 0 0 .4rem; } .pop p:last-child { margin: 0; }
@keyframes popin { from { transform: scale(.6) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------- buttons */
.btn, .go { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: 15px; font-weight: 500; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: .55rem 1.15rem; cursor: pointer; text-decoration: none; color: var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .2s; }
.btn:hover, .go:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active, .go:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary, .go { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--ink); }
.btn.primary:hover, .go:hover { box-shadow: 0 6px 0 var(--ink); }
.btn.green { background: #2456E6; border-color: #2456E6; color: #fff; box-shadow: 0 4px 0 #1A3FAF; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.go { align-self: flex-start; margin-top: .5rem; }

/* ---------------------------------------------------------- 0 start */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid var(--ink); border-radius: 999px; padding: .25rem .75rem; align-self: flex-start; background: #fff; }
.ring-word { color: var(--blue); display: inline-block; }
.in .ring-word { animation: wobble 2.4s 1.2s ease-in-out infinite; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-2.5deg); } 78% { transform: rotate(2.5deg); } 82% { transform: rotate(-1.5deg); } 86% { transform: rotate(1deg); } }
.bigphone { position: absolute; right: 24px; top: 14%; width: clamp(100px, 20vw, 190px); }
.bigphone svg { width: 100%; overflow: visible; }
.bigphone .halo { fill: var(--butter); }
.bigphone .handset { fill: var(--ink); }
.bigphone .wave { fill: none; stroke: var(--ochre); stroke-width: 6; stroke-linecap: round; opacity: 0; }
.in .bigphone .handset { animation: ring 1.6s ease-in-out infinite; transform-origin: 50px 64px; }
.in .bigphone .halo { animation: pulse 1.6s ease-in-out infinite; transform-origin: 60px 62px; }
.in .bigphone .w1 { animation: wave 1.6s ease-out infinite; }
.in .bigphone .w2 { animation: wave 1.6s .25s ease-out infinite; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 5%, 15%, 25% { transform: rotate(-14deg); } 10%, 20%, 30% { transform: rotate(14deg); } }
@keyframes pulse { 0%, 50%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } }
@keyframes wave { 0% { opacity: 0; } 10% { opacity: 1; } 45% { opacity: 0; } 100% { opacity: 0; } }
.lede { font-size: clamp(1.2rem, 2.6vw, 1.45rem); max-width: 31rem; }
.legend { font-size: 14px; color: var(--grey); margin-top: 2.5rem; max-width: 34rem; }
@media (max-width: 760px) { .bigphone { position: static; width: 100px; margin: 0 0 1rem; } }

/* ---------------------------------------------------------- 1 memory desk */
.desk { position: relative; padding: 1.4rem 1.4rem 1.5rem; min-height: 17rem; }
.desk.alarm { animation: alarm .45s ease-in-out 3; }
@keyframes alarm { 50% { background: #FDE4EC; border-color: var(--red); box-shadow: 0 6px 0 var(--red); } }
.phone { position: absolute; right: 1.2rem; top: 1.1rem; width: 52px; opacity: .2; transition: opacity .3s; }
.phone svg { fill: var(--ink); display: block; }
.phone.ringing { opacity: 1; animation: ring 1s ease-in-out infinite; }
.phone.ringing svg { fill: var(--red); }
.stage { padding-right: 4rem; }
.stage .lbl { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); margin: 0 0 .4rem; }
.digits { display: flex; gap: .4rem; flex-wrap: wrap; margin: .2rem 0 1rem; }
.digit { width: 2.5rem; height: 3.1rem; display: grid; place-items: center; font-family: var(--mono); font-size: 1.7rem; font-weight: 500; background: var(--sky); border: 2px solid var(--ink); border-radius: 12px; animation: popin .4s var(--spring) both; }
.digit.hidden { background: var(--ink); color: var(--ink); }
.digit.ok { background: #DDE7FF; border-color: #2456E6; }
.digit.bad { background: var(--blush); border-color: var(--red); }
.digit .was { display: block; font-size: 10px; color: var(--grey); line-height: 1; }
@media (max-width: 420px) { .digit { width: 2rem; height: 2.6rem; font-size: 1.35rem; } }
.countdown { height: 8px; background: var(--rule); border-radius: 99px; overflow: hidden; margin-bottom: 1rem; }
.countdown i { display: block; height: 100%; background: var(--yellow); border-radius: 99px; }
.bubble { display: inline-block; background: var(--peach); border: 2px solid var(--yellow); padding: .6rem .9rem; border-radius: 18px 18px 18px 4px; margin-bottom: .9rem; font-size: 1.1rem; animation: popin .4s var(--spring); }
.think { margin-bottom: .9rem; animation: popin .4s var(--spring); }
.answer { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.answer input { font-family: var(--mono); font-size: 1.4rem; width: 7.5rem; padding: .4rem .7rem; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.answer input.long { width: 13rem; letter-spacing: .15em; }
.answer input:focus { outline: 3px solid var(--butter); }
.verdict-line { font-size: 1.15rem; margin: .4rem 0 1rem; }
.btnrow { display: flex; gap: .7rem; flex-wrap: wrap; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.workbar { height: 22px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); overflow: hidden; margin-bottom: 1rem; }
.workbar i { display: block; height: 100%; width: 0; border-radius: 99px; background: repeating-linear-gradient(-45deg, var(--ink) 0 10px, #1E2D5C 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 28px 0; } }

/* ---------------------------------------------------------- 2 sides + people */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: .5rem; }
@media (max-width: 600px) { .sides { grid-template-columns: 1fr; } }
.side { position: relative; text-align: left; border: 2px solid currentColor; border-radius: var(--r); background: #fff; padding: 1.1rem 1.2rem 1.3rem; min-height: 10.5rem; cursor: pointer; transition: transform .5s var(--spring), background .3s, color .3s; }
.side.her { color: var(--blue); box-shadow: 0 6px 0 var(--blue); }
.side.him { color: var(--ochre); border-color: var(--yellow); box-shadow: 0 6px 0 var(--yellow); }
.side:hover { transform: rotate(-1.2deg) translateY(-3px); }
.side.him:hover { transform: rotate(1.2deg) translateY(-3px); }
.sidehead { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.side .front { display: block; font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.tapme { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; border: 1.5px solid currentColor; border-radius: 99px; padding: .05rem .45rem; vertical-align: .3em; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.side .back { display: none; font-size: 1.05rem; color: var(--ink); }
.side[aria-pressed="true"] { animation: flip .55s var(--spring); }
.side.her[aria-pressed="true"] { background: var(--calm); }
.side.him[aria-pressed="true"] { background: var(--peach); }
.side[aria-pressed="true"] .front { display: none; }
.side[aria-pressed="true"] .back { display: block; }
@keyframes flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.caveat { font-family: var(--mono); font-size: 12.5px; color: var(--ochre); margin-bottom: 1rem; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: stretch; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; flex-direction: column; padding: 1rem 1rem 1.1rem; transition: transform .4s var(--spring); }
.person:hover { transform: translateY(-4px) rotate(-.6deg); }
.person:nth-child(2):hover { transform: translateY(-4px) rotate(.6deg); }
.person header { display: flex; gap: .8rem; align-items: center; margin-bottom: .7rem; }
.avatar { width: 76px; height: 76px; flex: none; border-radius: 50%; border: 2px solid var(--ink); overflow: hidden; }
.avatar svg { display: block; width: 100%; height: 100%; }
.in .avatar svg .blink { animation: blink 4s infinite; transform-origin: center 46px; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.person .nm { font-weight: 600; font-size: 1.3rem; line-height: 1.1; }
.person .rl { font-family: var(--mono); font-size: 12px; color: var(--grey); }
.person .wants { display: inline-block; font-family: var(--mono); font-size: 11px; background: var(--butter); border-radius: 99px; padding: .1rem .5rem; margin-top: .3rem; }
.person .say { position: relative; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 14px; padding: .55rem .75rem; font-style: italic; font-size: 16px; margin-bottom: .2rem; }
.person .ill { font-family: var(--mono); font-size: 10.5px; color: var(--grey); margin-bottom: .6rem; }
.person dl { margin: 0 0 .8rem; font-size: 15px; display: grid; grid-template-columns: 1fr; }
.person dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); margin-top: .45rem; }
.person dd { margin: 0; line-height: 1.35; }
.person .hyp { margin-top: auto; font-size: 14px; background: var(--mint); border-radius: 12px; padding: .5rem .65rem; line-height: 1.35; }
.person .hyp b { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--mint-d); margin-bottom: .15rem; }

/* ---------------------------------------------------------- 3 price tag */
.costcard { padding: 1.3rem; }
.presets { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.3rem; }
.costgrid { display: grid; grid-template-columns: auto auto 1fr; gap: 1.6rem; align-items: end; }
@media (max-width: 700px) { .costgrid { grid-template-columns: 1fr 1fr; } .costout { grid-column: 1 / -1; } }
.tagwrap { padding-top: 1rem; }
.pricetag { position: relative; width: 11rem; padding: 1rem 1rem 1rem 2.2rem; background: var(--butter); border: 2px solid var(--ink); border-radius: 10px 22px 22px 10px; transform-origin: 0 50%; transform: rotate(-7deg); clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%); }
.pricetag .hole { position: absolute; left: 12px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.pricetag .tl { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.pricetag .tv { display: block; font-family: var(--mono); font-weight: 500; font-size: 2rem; line-height: 1.1; }
.pricetag .tf { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--grey); }
.pricetag.swing { animation: swingtag .9s var(--spring); }
@keyframes swingtag { 0% { transform: rotate(-24deg); } 100% { transform: rotate(-7deg); } }
.jarwrap { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.jar { position: relative; width: 140px; height: 170px; border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 30px 30px; overflow: hidden; background: linear-gradient(90deg, #ffffff 0 70%, #EEF3FF 100%); }
.jarlabel { font-family: var(--mono); font-size: 10.5px; color: var(--grey); }
.coin { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFC857, #E69A00); border: 2px solid #8A5A00; color: #8A5A00; font-family: var(--mono); font-size: 11px; font-weight: 500; display: grid; place-items: center; animation: drop .7s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes drop { from { transform: translateY(-240px) rotate(-180deg); } }
.costout { min-width: 0; }
.euro { font-family: var(--mono); font-weight: 500; font-size: clamp(2.3rem, 6.5vw, 3.6rem); line-height: 1; margin: 0 0 .6rem; }
.per { font-size: 14px; color: var(--grey); margin: 0 0 .25rem; }
.inputs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.inputs span.pill { font-family: var(--mono); font-size: 12px; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 99px; padding: .15rem .25rem .15rem .55rem; }
.spread { margin-top: 1.5rem; }
.spread svg { width: 100%; height: auto; display: block; overflow: visible; }
.punch { font-size: 1.15rem; margin-top: 1.4rem; }
.aside { font-size: 16px; background: var(--peach); border-radius: 16px; padding: .7rem 1rem; }

/* ---------------------------------------------------------- 4 checklist */
.checklist { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; padding: 1.2rem 1.3rem; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.checks li { display: flex; align-items: center; gap: .55rem; font-size: 16px; padding: .25rem .55rem; border-radius: 10px; }
.checks .box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 14px; background: #fff; }
.checks li.got .box { background: #DDE7FF; border-color: #2456E6; color: #2456E6; animation: popin .4s var(--spring) both; }
.checks li.got { color: var(--grey); }
.checks li.miss { background: var(--blush); }
.checks li.miss .box { border-color: var(--red); color: var(--red-t); }
.checks li.nudge { animation: shake .4s; }
.chase { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .6rem; position: relative; }
.envelopes { position: relative; height: 3rem; width: 100%; }
.env { position: absolute; left: 0; top: 0; font-size: 26px; }

/* ---------------------------------------------------------- 5 waits */
.waits { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; padding: 1.3rem; }
@media (max-width: 600px) { .waits { grid-template-columns: 1fr; } }
.wlabel { font-family: var(--mono); font-size: 13px; font-weight: 500; margin: 0 0 .4rem; }
.wbar { height: 20px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--paper); }
.wfill { height: 100%; width: 0; background: #C5CBDA; border-radius: 99px; }
.wfill.b { background: var(--blue); }
.wlog { list-style: none; margin: .7rem 0 0; padding: 0; min-height: 6.2rem; font-size: 15px; }
.wlog li { padding: .2rem .55rem; margin-bottom: .3rem; background: var(--mint); border-radius: 10px; animation: popin .45s var(--spring) both; }
.wlog li.muted { background: none; color: var(--grey); animation: none; }
.wbtns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; }
.wresult { grid-column: 1 / -1; margin: 0; font-size: 16px; }
.wresult:empty { display: none; }

/* ---------------------------------------------------------- 6 bets */
h2 .strike { text-decoration: none; position: relative; color: var(--grey); }
h2 .strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .09em; background: var(--red); border-radius: 9px; transform: scaleX(0); transform-origin: left; }
.in h2 .strike::after { transform: scaleX(1); transition: transform .5s .9s ease-out; }
h2 .fix { color: var(--blue); display: inline-block; }
.in h2 .fix { animation: popin .6s 1.3s var(--spring) both; }
.bets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; perspective: 1000px; }
@media (max-width: 600px) { .bets { grid-template-columns: 1fr; } }
.bet .inner { display: grid; transition: transform .7s var(--spring); transform-style: preserve-3d; height: 100%; }
.bet.flipped .inner { transform: rotateY(180deg); }
.bet .face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; padding: 1rem 1.1rem; display: flex; flex-direction: column; box-shadow: 0 6px 0 var(--ink); }
.bet .backf { transform: rotateY(180deg); background: var(--sky); }
.bet .backf.v-yes { background: #DDE7FF; } .bet .backf.v-no { background: var(--blush); } .bet .backf.v-partly { background: var(--butter); }
.bet .id { font-family: var(--mono); font-size: 12px; color: var(--grey); margin-bottom: .2rem; }
.bet .claim { font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin: 0 0 .9rem; }
.bet .choices { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.bet .choices .btn { font-size: 13px; padding: .35rem .7rem; box-shadow: 0 3px 0 var(--ink); }
.bet .verdict { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; margin-bottom: .3rem; }
.bet .yourbet { font-family: var(--mono); font-size: 12px; margin-bottom: .5rem; }
.bet .backf p { font-size: 15px; margin-bottom: .4rem; }
.score { font-family: var(--mono); margin-top: 1.4rem; min-height: 1.5em; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-family: var(--mono); font-size: 12px; border: 1.5px dashed var(--grey); border-radius: 99px; padding: .2rem .65rem; color: var(--grey); background: #fff; }

/* ---------------------------------------------------------- 7 market */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.tile { position: relative; text-align: left; border: 2px solid var(--ink); border-radius: 18px; background: #fff; padding: .8rem .9rem; min-height: 5.4rem; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .2s var(--spring), box-shadow .2s, background .3s; }
.tile:hover:not(.done) { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 7px 0 var(--ink); }
.tile .tn { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.15; padding-right: 5rem; }
.tile .tg { display: inline-block; font-family: var(--mono); font-size: 10.5px; background: var(--sky); border-radius: 99px; padding: .05rem .5rem; margin-top: .35rem; }
.tile .tq { display: block; font-family: var(--mono); font-size: 11px; color: var(--ochre); margin-top: .4rem; }
.tile .tv { display: block; font-size: 14.5px; margin-top: .55rem; line-height: 1.4; animation: popin .4s var(--spring) both; }
.tile .tp { display: block; font-family: var(--mono); font-size: 12px; color: var(--grey); margin-top: .35rem; }
.tile.done { background: var(--paper); cursor: default; }
.tile.done .tq { display: none; }
.stamp { position: absolute; right: .5rem; top: .6rem; font-family: var(--mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border: 2.5px solid var(--red); color: var(--red-t); border-radius: 8px; padding: .1rem .35rem; transform: rotate(-10deg); animation: stamp .45s var(--spring) both; background: #ffffffdd; }
.stamp.half { border-color: var(--ochre); color: var(--ochre); }
.stamp.q { border-color: var(--grey); color: var(--grey); border-style: dashed; }
@keyframes stamp { from { transform: scale(3) rotate(-30deg); opacity: 0; } to { transform: scale(1) rotate(-10deg); opacity: 1; } }
.found { font-size: 1.3rem; font-weight: 600; margin-top: 1.5rem; min-height: 2em; }
.found .counter { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--grey); }
.found .gap { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 14px; padding: .3rem .8rem; animation: popin .6s var(--spring); }
.confetti { position: fixed; z-index: 60; width: 9px; height: 13px; border-radius: 3px; pointer-events: none; top: 0; left: 0; }

/* ---------------------------------------------------------- 8 rules */
.callers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .callers { grid-template-columns: 1fr; } }
.caller { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.caller .who { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ochre); }
.caller .q { font-style: italic; font-size: 16px; background: var(--peach); border-radius: 14px 14px 14px 4px; padding: .5rem .7rem; margin: 0; }
.caller .opts { display: flex; flex-direction: column; gap: .4rem; margin-top: auto; }
.caller .opts .btn { font-size: 12.5px; padding: .35rem .7rem; justify-content: flex-start; text-align: left; box-shadow: 0 3px 0 var(--ink); }
.caller .res { font-size: 14.5px; margin: 0; border-radius: 12px; padding: .45rem .6rem; animation: popin .4s var(--spring); }
.caller .res.ok { background: #DDE7FF; } .caller .res.no { background: var(--blush); }
.caller.solved { background: #F5F8FF; }
.rulebox { margin-top: 1.2rem; font-size: 1.1rem; background: var(--butter); border-radius: 16px; padding: .8rem 1rem; animation: popin .5s var(--spring); }
.tworules { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
@media (max-width: 640px) { .tworules { grid-template-columns: 1fr; } }
.rule { padding: 1rem 1.1rem; }
.ruletitle { font-weight: 600; font-size: 1.15rem; margin-bottom: .5rem; }
.punchline { font-family: var(--mono); font-size: 13px; color: var(--ochre); margin: 0; }
.toggle { position: relative; width: 64px; height: 34px; border-radius: 99px; border: 2px solid var(--ink); background: #2456E6; cursor: pointer; padding: 0; margin-bottom: .7rem; transition: background .25s; }
.toggle .knob { position: absolute; top: 3px; left: 33px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: left .25s var(--spring); }
.toggle.off { background: #C5CBDA; } .toggle.off .knob { left: 3px; }
.otp { display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: 1.6rem; letter-spacing: .15em; margin-bottom: .6rem; }
.otp svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.otp .ring-bg { fill: none; stroke: var(--rule); stroke-width: 5; }
.otp .ring-fg { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 113.1; }

/* ---------------------------------------------------------- 9 marble run */
.run { padding: 1.2rem 1.3rem; }
.drop { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: .6rem; }
@media (max-width: 600px) { .drop { grid-template-columns: 1fr; } }
.dropbtn { display: flex; align-items: center; gap: .6rem; text-align: left; background: #fff; border: 2px solid var(--yellow); border-radius: 18px; padding: .5rem .7rem; cursor: pointer; box-shadow: 0 4px 0 var(--yellow); transition: transform .15s, box-shadow .15s, background .2s; }
.dropbtn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--yellow); }
.dropbtn[aria-pressed="true"] { background: var(--peach); }
.dropbtn .avatar { width: 44px; height: 44px; }
.dropbtn b { display: block; font-size: 1.02rem; line-height: 1.1; }
.dropbtn small { display: block; font-family: var(--mono); font-size: 11px; color: var(--grey); line-height: 1.3; }
.gates { position: relative; display: grid; gap: 1.5rem; padding: 1.5rem 0 .5rem; }
.gate { position: relative; border: 2px dashed var(--ink); border-radius: 18px; padding: .75rem 6rem .75rem 1rem; background: #fff; transition: background .3s, transform .3s var(--spring); }
.gate b { display: block; font-family: var(--mono); font-weight: 500; font-size: 15px; }
.gate > span { font-size: 15px; }
.gate.hit { background: var(--peach); transform: scale(1.02); border-style: solid; border-color: var(--ochre); }
.gate.pass { animation: shake .3s; }
.ball { position: absolute; right: 2.3rem; top: 0; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); background: #fff; opacity: 0; z-index: 2; }
.ball svg { width: 100%; height: 100%; display: block; }
.pop-out { position: absolute; right: 5.4rem; top: 0; font-family: var(--mono); font-size: 13px; background: var(--ink); color: var(--paper); border-radius: 99px; padding: .3rem .7rem; opacity: 0; pointer-events: none; z-index: 3; white-space: nowrap; }
.runtext { font-size: 1.1rem; min-height: 3em; margin: .8rem 0 0; }
@media (max-width: 560px) { .gate { padding-right: 3.6rem; } .ball { right: .6rem; } .pop-out { right: 3.4rem; } }

/* ---------------------------------------------------------- 10 strikers */
.strikers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 680px) { .strikers { grid-template-columns: 1fr; } }
.striker { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.striker h3 { margin: 0; font-size: 1.1rem; line-height: 1.2; }
.striker .q { font-size: 14px; color: var(--grey); margin: 0; flex-grow: 1; }
.striker .rule-txt { font-family: var(--mono); font-size: 11.5px; color: var(--red-t); margin: 0; }
.tower { position: relative; height: 160px; width: 48px; margin: 1.3rem auto 0; border: 2px solid var(--ink); border-radius: 24px 24px 8px 8px; background: repeating-linear-gradient(0deg, #fff 0 15px, var(--rule) 15px 16px); }
.tower .bar { position: absolute; left: -14px; width: 76px; border-top: 3px solid var(--red); }
.tower .bar span { position: absolute; left: 100%; top: 0; transform: translateY(-60%); font-family: var(--mono); font-size: 12px; color: var(--red-t); padding-left: 4px; white-space: nowrap; }
.tower .bar.none { border-top: 3px dashed var(--grey); }
.tower .bar.none span { color: var(--grey); }
.tower .puck { position: absolute; left: 50%; bottom: 3px; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; background: var(--butter); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 14px; }
.tower .bell { position: absolute; left: 50%; top: -18px; width: 24px; height: 15px; margin-left: -12px; border-radius: 12px 12px 3px 3px; background: var(--yellow); }
.striker .res { font-family: var(--mono); font-size: 12.5px; text-align: center; min-height: 2.6em; margin: 0; }
.striker .btn { align-self: center; }
.steps { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.8rem; font-family: var(--mono); font-size: 12.5px; }
.steps span { display: inline-flex; align-items: center; gap: .35rem; border-radius: 99px; padding: .2rem .65rem; }
.steps .done { background: var(--ink); color: var(--paper); }
.steps .todo { border: 1.5px dashed var(--grey); color: var(--grey); background: #fff; }

/* ---------------------------------------------------------- 11 limits */
.limitlist { list-style: none; padding: 0; margin: .5rem 0 1.5rem; }
.limitlist li { font-size: 1.3rem; font-weight: 600; padding: .6rem 0; border-bottom: 2px dotted #C5CBDA; }
.limitlist .small { display: block; font-weight: 400; font-size: 15px; }
.tally { font-family: var(--mono); font-size: 14px; margin-bottom: 1rem; }
.tally svg { display: block; width: 100%; height: auto; margin-top: .5rem; }
.fine { margin-top: 3rem; font-size: 15px; }
.fine summary { cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--grey); }
.refs { font-size: 13px; padding-left: 1.3rem; }
.refs li { margin-bottom: .4rem; overflow-wrap: anywhere; }

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- print */
@media print {
  body { background: #fff; font-size: 11pt; }
  .trail, .pop, .go, .presets, .drop, .bet .choices, .bet .frontf, .bigphone, .spark, .wbtns, .chase .btn, .caller .opts { display: none !important; }
  main { padding: 0; }
  .scene { min-height: 0; padding: 1rem 0; break-inside: avoid; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .bet .inner, .bet .backf { transform: none !important; }
}

/* spacing below interactive cards */
.desk, .costcard, .checklist, .waits, .run { margin-bottom: 1.3rem; }
.wresult { order: 1; } .wbtns { order: 2; }
.tiles { align-items: start; }
@media (max-width: 700px) { .costgrid { grid-template-columns: auto auto; gap: 1rem; justify-content: start; } }
@media (max-width: 440px) {
  .pricetag { width: 9.3rem; padding-left: 1.9rem; } .pricetag .tv { font-size: 1.55rem; }
  .jar { width: 104px; height: 140px; }
}
.tile { overflow: hidden; }
main { overflow-x: clip; }
.wait { border-radius: 16px; padding: .6rem .7rem; transition: background .3s; }
.wait.active { background: var(--calm); box-shadow: inset 0 0 0 2px var(--blue); }
.dots { height: 20px; display: flex; gap: 7px; align-items: center; padding-left: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #C5CBDA; }
.dots.on i { animation: dot 1.1s ease-in-out infinite; }
.dots.on i:nth-child(2) { animation-delay: .18s; } .dots.on i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-6px); opacity: 1; } }
/* station labels next to the trail dots are not shown */
.trail a span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0 !important; padding: 0 !important; }
/* station 1 comparison: your digit on top, the right digit underneath */
.digits.compare { align-items: flex-start; }
.dcell { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.dcell .right { font-family: var(--mono); font-size: 14px; font-weight: 500; min-width: 1.6rem; text-align: center; background: #DDE7FF; color: #1A3FAF; border-radius: 8px; padding: .05rem .3rem; animation: popin .4s .5s var(--spring) both; }
.dcell .right.blank { background: none; color: #2456E6; }
/* sound toggle */
.soundbtn { position: fixed; z-index: 40; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: .35rem; font-family: var(--mono); font-size: 12px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .3rem .7rem .3rem .5rem; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .15s; }
.soundbtn:hover { transform: translateY(-2px); }
.soundbtn[aria-pressed="false"] { color: var(--grey); }
@media (max-width: 760px) { .soundbtn span { display: none; } .soundbtn { padding: .35rem; top: 10px; right: 10px; } }
@media print { .soundbtn { display: none; } }

/* ---------------------------------------------------------- 9 marble machine */
.run { margin-bottom: 1.3rem; }
.machine { max-width: 600px; margin: .8rem auto 0; }
.mach { display: block; width: 100%; height: auto; border-radius: 34px; box-shadow: 0 8px 0 #0F1B3D, 0 18px 40px -12px #2456E655; }
.bulb { fill: #FFE3A6; opacity: .3; animation: chase 1.7s linear infinite; }
@keyframes chase { 0%, 70%, 100% { opacity: .25; } 8% { opacity: 1; fill: #FFB020; } }
.mgate { transition: transform .35s cubic-bezier(.34,1.56,.64,1); transform-box: fill-box; transform-origin: center; }
.mgate .mgate-glow { opacity: 0; transition: opacity .3s; }
.mgate.lit { transform: scale(1.04); }
.mgate.lit .mgate-glow { opacity: .9; }
.mgate.lit .micon { animation: nudge .6s ease-in-out 3; }
.mgate.ringing .micon { animation: ring .9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.flap { transition: transform .18s ease-out; }
.mtag { pointer-events: none; }
.morebtns { display: flex; justify-content: center; min-height: 0; margin: .2rem 0 1rem; }
.runtext { text-align: center; max-width: 36rem; margin: 1rem auto .4rem; }
.gatekey { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: .6rem; }
@media (max-width: 680px) { .gatekey { grid-template-columns: 1fr; } }
.gk { border-radius: 16px; padding: .65rem .8rem; font-size: 14.5px; line-height: 1.4; border: 2px solid #0F1B3D; }
.gk b { display: block; font-family: var(--mono); font-weight: 500; font-size: 13px; margin-bottom: .2rem; }
.gk.g1 { background: #EEF3FF; } .gk.g2 { background: #DDE7FF; } .gk.g3 { background: #FFF1D6; }
