/* ---------- Dealer — visual system v2 ----------
   Physical deck on a warm table. Editorial serif + humanist sans.
   Paper texture, living stack, warm breathing background. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrumentsans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --table-1: #211d18;      /* warm charcoal */
  --table-0: #100e0b;      /* deep */
  --paper: #f3ecde;        /* warm off-white stock */
  --paper-2: #efe7d6;
  --paper-edge: #e2d8c2;
  --text: #211c14;
  --muted: #7a7161;
  --accent: #d8442b;       /* vermilion ink */
  --accent-ink: #b3311d;
  --marker: #ffd84d;       /* highlighter */
  --card-w: 440px;
  --pad: clamp(24px, 6.5vw, 42px);
  --r: 22px;
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--sans);
  color: var(--paper);
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background: var(--table-0);
}

/* warm table + a very slow breathing spotlight (no SaaS gradient) */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 40% at 50% 32%, rgba(255, 214, 138, 0.10) 0%, transparent 70%),
    radial-gradient(130% 100% at 50% 18%, #2d271f 0%, var(--table-1) 42%, var(--table-0) 100%);
  animation: breathe 14s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: .86; }
}
/* fine grain over the whole table */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ---------- top chrome ---------- */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 14px clamp(16px, 5vw, 28px);
  max-width: var(--card-w); margin: 0 auto;
}
#progress { display: flex; align-items: center; gap: 10px; flex: 1; }
.p-bar { position: relative; flex: 1; height: 3px; background: rgba(255,255,255,.13); border-radius: 3px; }
.p-fill { display: block; height: 100%; background: var(--accent); border-radius: 3px;
  transition: width .55s cubic-bezier(.2,.8,.2,1); }
/* spark burst on key beats */
.p-fill.spark { animation: fillGlow .9s ease-out; }
@keyframes fillGlow {
  0% { box-shadow: 0 0 0 0 rgba(255,216,77,0); }
  25% { box-shadow: 0 0 10px 2px rgba(255,216,77,.9); }
  100% { box-shadow: 0 0 0 0 rgba(255,216,77,0); }
}
.p-spark-burst { position: absolute; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.p-spark-burst i { position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%;
  background: var(--marker); box-shadow: 0 0 4px 1px rgba(255,216,77,.8);
  transform: rotate(var(--a)) translateX(0); opacity: 1;
  animation: sparkFly var(--t, 650ms) cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes sparkFly {
  to { transform: rotate(var(--a)) translateX(var(--d, 10px)); opacity: 0; }
}
.p-count {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #8b8272; font-variant-numeric: tabular-nums; min-width: 14px; text-align: right;
}
#timer[hidden] { display: none; }
#timer {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: #b9ad97; font-variant-numeric: tabular-nums;
}
#timer::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  opacity: .7; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .15; } }
#restart { background: none; border: 0; color: #6a6252; cursor: pointer; font-size: 15px; padding: 4px; }
#restart:hover { color: var(--paper); }

/* ---------- stage / living deck ---------- */
#stage {
  position: relative; width: 100%; max-width: var(--card-w); height: 100dvh; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 62px 16px 26px;
  --rot-a: -3deg; --rot-b: 2.4deg; --ty-a: 6px; --ty-b: 3px;
}
/* two stacked cards underneath — subtly re-jittered every draw */
#stage::before, #stage::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(100%, calc(var(--card-w) - 20px)); height: min(74dvh, 660px);
  border-radius: var(--r); background: var(--paper-2);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.7);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
#stage::before { transform: translate(-50%, -50%) rotate(var(--rot-a)) translateY(var(--ty-a)); opacity: .18; }
#stage::after  { transform: translate(-50%, -50%) rotate(var(--rot-b)) translateY(var(--ty-b)); opacity: .30; }

.card {
  position: absolute; width: min(100%, calc(var(--card-w) - 16px));
  min-height: min(72dvh, 640px); max-height: 88dvh; overflow-y: auto;
  background: var(--paper); color: var(--text);
  border-radius: var(--r); padding: var(--pad);
  display: flex; flex-direction: column;
  border: 1px solid var(--paper-edge);
  box-shadow: 0 34px 70px -24px rgba(0,0,0,.72), 0 2px 0 rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.5);
  z-index: 2;
}
/* paper fibre on every card — subtle, consistent (agency-reusable, not a gimmick) */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0.62 0 0 0 0 0.57 0 0 0 0 0.46 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.card > * { position: relative; z-index: 1; }
.card.tappable { cursor: pointer; }
.card::-webkit-scrollbar { width: 0; }

.card.enter { opacity: 0; transform: translateY(40px) scale(.955) rotate(1.6deg); }
.card.active { opacity: 1; transform: none;
  transition: transform .44s cubic-bezier(.2,.78,.2,1), opacity .3s ease; }
.card.leave { opacity: 0; transform: translateY(-48px) scale(.965) rotate(-2.2deg);
  transition: transform .42s ease, opacity .36s ease; pointer-events: none; }
.card.tappable:active { transform: scale(.986); }

/* ---------- shared type ---------- */
.sec-tag {
  font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: auto; padding-bottom: 20px;
}
.kicker { font-family: var(--display); font-style: italic; font-size: 16px; font-weight: 500;
  color: var(--accent-ink); margin-bottom: 14px; }
.line, .body p {
  font-family: var(--display); font-optical-sizing: auto;
  font-size: clamp(19px, 4.7vw, 22px); line-height: 1.42; margin-bottom: 14px;
  color: var(--text); font-weight: 420;
}
.body p:last-child { margin-bottom: 0; }
.body { margin: auto 0; }

mark { background: linear-gradient(180deg, transparent 56%, var(--marker) 56%, var(--marker) 93%, transparent 93%);
  color: inherit; padding: 0 .05em; font-weight: 560; }
strong { font-weight: 750; }
em { font-style: italic; }
s { color: var(--muted); }

.source-note { font-family: var(--sans); font-size: 10.5px; color: #a89d88; margin-top: 16px;
  letter-spacing: .01em; font-style: italic; }

/* statements — Fraunces display, big */
.stmt { margin: auto 0; }
.stmt-line { font-family: var(--display); font-size: clamp(28px, 7.6vw, 40px);
  line-height: 1.08; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; color: var(--text); }
.card--big .stmt-line { font-size: clamp(40px, 12vw, 64px); }
.stmt-small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 14px; font-weight: 500; }

/* cover */
.cover-title { font-family: var(--display); font-size: clamp(56px, 17vw, 92px);
  line-height: .92; font-weight: 800; letter-spacing: -.02em; margin: auto 0 16px; }
.cover-title span { display: block; }
.cover-title span:last-child { color: var(--accent); }
.cover-sub { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--muted); margin-bottom: 20px; }
.cover-cta { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.cover-cta-label { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }

/* animated tap hand */
.tap-hand { position: relative; width: 44px; height: 47px; display: inline-flex; }
.tap-hand svg { position: relative; z-index: 1; animation: tap 1.9s ease-in-out infinite; transform-origin: 60% 90%; }
.tap-ring { position: absolute; left: 4px; top: 6px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0; animation: ring 1.9s ease-out infinite; }
@keyframes tap { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(6px) rotate(-4deg); } 55% { transform: translateY(0) rotate(0); } }
@keyframes ring { 0%, 35% { transform: scale(.4); opacity: 0; } 45% { opacity: .7; } 80% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }

/* meta cards */
.meta-flag { align-self: flex-start; font-family: var(--sans); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 700; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 999px; padding: 4px 11px; margin-bottom: 18px; }
.card--meta .body p { font-size: clamp(20px, 5vw, 24px); }

/* prompt cards */
.pc-index { font-family: var(--display); font-size: clamp(50px, 14vw, 70px); font-weight: 800;
  letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.6px var(--text); line-height: 1; margin-bottom: 4px; }
.pc-title { font-family: var(--display); font-size: clamp(26px, 7vw, 32px); font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 16px; color: var(--accent-ink); }
.card--prompt-card .body { margin: 0 0 auto; }
.card--prompt-card .body .line { font-size: clamp(16px, 4.2vw, 19px); line-height: 1.42; margin-bottom: 10px; }

/* ---------- proof / media placeholders ---------- */
.media { margin: 4px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.media-cap { font-family: var(--sans); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #a99e88; font-weight: 700; }
.ph-circle, .ph-rect {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #b3a893;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 10px, transparent 10px 20px);
  border: 1.5px dashed #c9bea6;
}
.ph-circle { width: 96px; height: 96px; border-radius: 50%; }
.ph-rect { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; }
.media-portrait { align-items: flex-start; }
.media-logos { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.logo-chip { font-family: var(--sans); font-size: 12px; font-weight: 600; color: #8a8071;
  border: 1.5px solid #cdc2ac; border-radius: 8px; padding: 7px 12px; background: rgba(255,255,255,.4); }
.media-logos .media-cap { width: 100%; }
.media-ba { position: relative; flex-direction: row; align-items: stretch; gap: 8px; }
.ba-cell { flex: 1; border: 1.5px dashed #c9bea6; border-radius: 10px; padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 10px, transparent 10px 20px); }
.ba-cell small { font-family: var(--sans); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #a99e88; }
.ba-cell b { font-family: var(--display); font-size: clamp(22px, 6vw, 30px); font-weight: 800; color: var(--muted); }
.ba-after b { color: var(--accent); }
.ba-arrow { align-self: center; color: #b3a893; font-size: 20px; }
.ba-delta { position: absolute; top: -10px; right: 6px; font-family: var(--sans); font-size: 12px; font-weight: 800;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 10px; box-shadow: 0 4px 10px -3px rgba(216,68,43,.6); }
.media-ba .media-cap { position: absolute; bottom: -18px; left: 0; }

/* ---------- choice / input (vertically centered) ---------- */
.choice-inner { margin: auto 0; display: flex; flex-direction: column; width: 100%; }
.q { font-family: var(--display); font-size: clamp(23px, 5.8vw, 27px); font-weight: 700;
  line-height: 1.22; letter-spacing: -.01em; margin-bottom: 6px; }
.q-sub { font-family: var(--display); font-style: italic; color: var(--muted); font-size: 16px; margin-bottom: 4px; }
.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.choice { text-align: left; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--text);
  background: rgba(255,255,255,.55); border: 1.5px solid #d5cab3; border-radius: 13px; padding: 15px 16px;
  cursor: pointer; transition: transform .12s ease, border-color .15s ease, background .15s ease; }
.choice:hover { border-color: var(--text); transform: translateX(3px); }
.choice:active { transform: scale(.99); }
.choice.picked { background: var(--text); color: var(--paper); border-color: var(--text); }
.choice:disabled { cursor: default; opacity: .45; }
.choice.picked:disabled { opacity: 1; }
.response { margin-top: 20px; padding-top: 18px; border-top: 1.5px dashed #d3c9b2;
  animation: fadeUp .4s ease both; }
.resp-text { display: block; font-family: var(--display); font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.44; font-weight: 440; }
/* thin auto-advance bar — fills, then moves on (tap anywhere to skip ahead) */
.resp-advance { display: block; margin-top: 18px; height: 2px; background: rgba(0,0,0,.08); border-radius: 2px; overflow: hidden; }
.resp-bar { display: block; width: 0; height: 100%; background: var(--accent); border-radius: 2px; }

.inp-form { display: flex; gap: 8px; margin-top: 22px; }
.inp { flex: 1; font-family: var(--sans); font-size: 17px; font-weight: 600; padding: 15px 16px;
  border: 1.5px solid #d5cab3; border-radius: 13px; background: #fff; color: var(--text); }
.inp:focus { outline: none; border-color: var(--accent); }
.advance.inp-go { align-self: stretch; margin: 0; padding: 0 20px; color: var(--text);
  border: 1.5px solid var(--text); border-radius: 13px; }
.advance.inp-go::after { content: none; }

/* ---------- reveal ---------- */
.rev-prompt { font-family: var(--display); font-size: clamp(25px, 6.8vw, 33px); font-weight: 700;
  line-height: 1.14; letter-spacing: -.01em; margin: auto 0 26px; }
.rev-hold { position: relative; overflow: hidden; font-family: var(--sans); font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text); background: rgba(255,255,255,.55);
  border: 1.5px solid var(--text); border-radius: 13px; padding: 17px; cursor: pointer;
  user-select: none; -webkit-user-select: none; touch-action: none; }
.rev-hold span:first-child { position: relative; z-index: 1; }
.rev-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--marker); z-index: 0; mix-blend-mode: multiply; }
.rev-hold.revealed { border-color: var(--accent); color: var(--accent); }
.rev-hidden { margin-top: 22px; font-family: var(--display); font-size: clamp(24px, 6.2vw, 31px);
  font-weight: 700; line-height: 1.18; letter-spacing: -.01em; }
.rev-hidden.show { animation: fadeUp .45s ease both; }

/* ---------- offer ---------- */
.ph-pill { align-self: flex-start; font-family: var(--sans); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 800; color: #fff; background: var(--accent); padding: 3px 8px;
  border-radius: 5px; margin-bottom: 14px; }
.offer-name { font-family: var(--display); font-size: clamp(30px, 8vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.offer-desc { font-family: var(--sans); color: var(--muted); font-size: 15px; margin: 12px 0 22px; line-height: 1.5; }
.offer-price { font-family: var(--display); font-size: clamp(46px, 13vw, 66px); font-weight: 800;
  letter-spacing: -.03em; color: var(--accent); line-height: 1; overflow-wrap: anywhere; }
.offer-note { font-family: var(--sans); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.offer-just { font-family: var(--display); font-size: 17px; line-height: 1.5; margin-top: 22px; color: var(--text); }

/* ---------- cta / thanks ---------- */
.cta-sub { font-family: var(--display); font-style: italic; color: var(--muted); font-size: 17px; margin: 16px 0 26px; }
.cta-btn { display: block; text-align: center; text-decoration: none; font-family: var(--sans); font-weight: 700;
  font-size: 18px; color: #fff; background: var(--accent); padding: 20px; border-radius: 15px; margin-top: auto;
  box-shadow: 0 12px 26px -8px rgba(216,68,43,.7); transition: transform .12s ease, box-shadow .2s ease; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(216,68,43,.8); }
.cta-btn:active { transform: translateY(0); }
.thanks-body p { font-size: clamp(18px, 4.6vw, 21px); }

/* ---------- advance ---------- */
.advance { align-self: flex-start; margin-top: 26px; font-family: var(--sans); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 8px 0; }
.advance::after { content: "›"; margin-left: 8px; font-size: 18px; color: var(--accent); display: inline-block; transition: transform .2s ease; }
.advance:hover { color: var(--text); }
.advance:hover::after { transform: translateX(4px); }
.advance.ghost { color: #9a9080; margin-top: 30px; }

.typing::after { content: "▏"; color: var(--accent); animation: caret .7s steps(1) infinite; }
.tw-pending { min-height: 0; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- flip card (front/back, turns over on tap or hold) ---------- */
.card--flip { padding: 0; background: transparent; border: none; box-shadow: none; overflow: visible; }
.card--flip::before { display: none; }
.flip-scene { flex: 1; width: 100%; min-height: inherit; perspective: 1600px; }
.flip-inner { position: relative; width: 100%; height: 100%; min-height: inherit;
  transform-style: preserve-3d; transition: transform .85s cubic-bezier(.2,.82,.2,1); }
.flip-inner.flipped { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; display: flex; flex-direction: column;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: var(--pad); overflow: hidden;
  background: var(--paper); color: var(--text); border-radius: var(--r);
  border: 1px solid var(--paper-edge);
  box-shadow: 0 34px 70px -24px rgba(0,0,0,.72), 0 2px 0 rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.5); }
.flip-face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0.62 0 0 0 0 0.57 0 0 0 0 0.46 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.flip-face > * { position: relative; z-index: 1; }
.flip-back { transform: rotateY(180deg); }
/* the deck back — a hint of card-back pattern on the reverse */
.flip-front .stmt { margin: auto 0; }
.flip-face .stmt-line { font-size: clamp(24px, 6.4vw, 34px); line-height: 1.12; }
.flip-back .body { margin: auto 0; }
.flip-back .line { font-size: clamp(18px, 4.6vw, 21px); line-height: 1.36; font-weight: 470; }
.flip-front-cue { margin-top: 24px; }
.flip-tap-hint { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
  animation: cuePulse 1.8s ease-in-out infinite; }
.flip-tap-hint span { font-size: 17px; transition: transform .2s ease; }
.flip-front.tappable { cursor: pointer; }
.flip-front.tappable:active { transform: none; }
@keyframes cuePulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.flip-hold { position: relative; overflow: hidden; width: 100%; font-family: var(--sans); font-weight: 700;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text);
  background: rgba(255,255,255,.55); border: 1.5px solid var(--text); border-radius: 13px; padding: 17px;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.flip-hold-label { position: relative; z-index: 1; }
.flip-hold.revealed { border-color: var(--accent); color: var(--accent); }

/* ---------- animated dopamine graph ---------- */
.media-graph { margin: 2px 0 24px; }
.g-frame { position: relative; }
.g-svg { display: block; width: 100%; height: clamp(110px, 30vw, 140px); overflow: visible; }
.g-area { fill: rgba(216,68,43,.12); stroke: none; }
.g-line { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 8px rgba(216,68,43,.35)); }
.g-dot { fill: var(--accent); stroke: var(--paper); stroke-width: 2.5; }
.g-dot.ping { animation: dotPing 1.1s ease-out .1s 2; }
@keyframes dotPing { 0% { r: 5; } 50% { r: 8; } 100% { r: 5; } }
.g-readout { position: absolute; top: -4px; right: 2px; display: flex; align-items: baseline; gap: 10px; }
.g-num { font-family: var(--display); font-size: clamp(30px, 8vw, 42px); font-weight: 800;
  letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.g-num.pop { animation: numPop .5s cubic-bezier(.2,1.5,.4,1); }
@keyframes numPop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
.g-mult { font-family: var(--sans); font-size: 13px; font-weight: 800; color: #fff; background: var(--accent);
  border-radius: 999px; padding: 4px 11px; box-shadow: 0 6px 14px -4px rgba(216,68,43,.7);
  opacity: 0; transform: translateY(-4px) scale(.8); }
.g-mult.show { animation: multIn .45s cubic-bezier(.2,1.5,.4,1) forwards; }
@keyframes multIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.g-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.g-axis small { font-family: var(--sans); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #a99e88; }

@media (min-width: 640px) { #stage { padding: 70px 0 30px; } }
@media (prefers-reduced-motion: reduce) {
  .card.active, .card.leave, .card.enter { transition: opacity .2s ease; transform: none !important; }
  body::before, .tap-hand svg, .tap-ring, .flip-tap-hint, .g-dot.ping { animation: none; }
  #stage::before, #stage::after { transition: none; }
  .flip-inner { transition: transform .25s ease; }
  .g-line { transition: none !important; stroke-dashoffset: 0 !important; }
}
