/* ═══════════════════════════════════════════════════════════════════
   Together (#scout, #versus, #vote, #boards, #features-grid). 2026-10-29.
   One language with #planner (scout-story.css): a saturated flat stage
   rounded 44px, giant Inter 800 sentences that rise word by word with a
   live object inside, a white hand-drawn line under the key words, a
   giant faint word behind, count-ups with short labels, white sticker
   chips that float, a stamp that slams. Each section has its own idea:
   Scout talking, the evidence behind a head to head, the group's vote,
   the plan landing on a page, the live map.
   This file: the shared language, #scout and #vote. versus-scene.css,
   boards-scene.css and rally-film.css hold the other three.
   States: no JS = each stage's finished frame (.tg-still marks the scene
   shown). JS adds .js; reduced motion or no GSAP adds .still (tabs, no
   movement); otherwise .gs. Held stories add .tg-scrolly to .tg-hold on
   laptops (the stage sticks; each scroll step plays the next beat).
   ═══════════════════════════════════════════════════════════════════ */

.tg {
  --tg-ink: #111214;
  --tg-h: clamp(600px, calc(100vh - 96px), 880px);
  --tg-per: 55vh;
  position: relative;
  color: var(--tg-ink);
}
.tg *, .tg *::before, .tg *::after { box-sizing: border-box; }
/* the page's section rhythm, set here so it does not depend on which shared
   rule happens to win (finish-pass, vibe and white all set it) */
#scout.tg, #versus.tg, #vote.tg, #boards.tg, #features-grid.tg { padding: 96px 0 0; }
.tg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── The stage ───────────────────────────────────────────────────── */
.tg-hold { position: relative; }
.tg-hold.tg-scrolly { height: calc(var(--tg-h) + var(--tg-per) * (var(--n, 3) - 1) + 20vh); }
.tg-hold.tg-scrolly > .tg-stage { position: sticky; top: max(76px, calc(50vh - var(--tg-h) / 2 + 30px)); }
.tg-stage {
  --s: 1;
  position: relative; isolation: isolate; overflow: hidden;
  width: min(1800px, calc(100% - 32px)); height: var(--tg-h);
  margin: 0 auto; border-radius: 44px;
  background: var(--c); color: var(--tg-ink);
}
.tg-ghosts { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tg-ghost {
  position: absolute; left: -.03em; bottom: -.19em;
  color: var(--tg-ghost, rgba(255, 255, 255, .3));
  font: 800 clamp(170px, 19vw, 380px)/1 'Inter', sans-serif; letter-spacing: -.065em; white-space: nowrap;
  visibility: hidden;
}
.tg-stage:not(.js) .tg-ghost:last-child, .tg-stage.js.still .tg-ghost.on { visibility: visible; }
.tg-grid {
  position: relative; z-index: 1; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--tg-rw, 560px); column-gap: clamp(40px, 5.5vw, 110px);
  padding: 0 clamp(32px, 5vw, 88px);
}
.tg-left { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.tg-right { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; }

/* the black tag, top left (#planner's "Scout" tag) */
.tg-tag {
  position: absolute; top: clamp(28px, 5vh, 48px); left: 0; margin: 0;
  display: flex; align-items: center; height: 40px; padding: 0 16px 0 38px; border-radius: 14px;
  background: var(--tg-ink); color: #fff; font: 800 17px/1 'Inter', sans-serif; letter-spacing: -.01em; white-space: nowrap;
}
.tg-tag::before { content: ""; position: absolute; left: 14px; top: 13px; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* ── The giant sentences ─────────────────────────────────────────── */
.tg-lines { position: relative; }
.tg-line {
  margin: 0; max-width: 11.5em;
  font: 800 clamp(44px, 4.7vw, 88px)/1.02 'Inter', -apple-system, sans-serif; letter-spacing: -.055em;
  text-wrap: balance;
}
/* scenes: one sentence at a time. No JS: the finished scene. */
.tg-stage:not(.js) .tg-lines:not(.tg-lines-flow) .tg-line:not(.tg-still) { display: none; }
.tg-stage.js .tg-lines:not(.tg-lines-flow) .tg-line { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); visibility: hidden; }
.tg-stage.js.still .tg-lines:not(.tg-lines-flow) .tg-line.on { visibility: visible; }
.tg-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .16em; margin: 0 -.03em -.16em; }
.tg-i, .tg-c { display: inline-block; }
.tg-key { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.tg-scr { position: absolute; z-index: -1; left: -3%; width: 106%; bottom: -.12em; height: .3em; overflow: visible; pointer-events: none; }
.tg-scr path { fill: none; stroke: var(--tg-scr, #fff); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* things that live inside the sentences */
.tg-obj { position: relative; display: inline-flex; align-items: center; justify-content: center; height: .84em; margin: 0 .04em; vertical-align: -.1em; border-radius: .42em; font-variant-numeric: tabular-nums; }
.tg-obj img { display: block; object-fit: cover; }
.tg-av {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font: 800 13px/1 'Inter', sans-serif; font-style: normal; letter-spacing: 0;
  background: var(--av);
}
/* the cast, one colour each, same everywhere in this part of the page */
.tg-av.is-m { --av: #e8578f; }
.tg-av.is-d { --av: #f0893a; }
.tg-av.is-p { --av: #2fae6f; }
.tg-av.is-a { --av: #3b8cf0; }
.tg-av.is-y { --av: #6b5cf2; }

/* ── Count-ups under the sentence ────────────────────────────────── */
.tg-stats { position: relative; height: clamp(84px, 11vh, 104px); margin-top: clamp(26px, 4vh, 44px); }
.tg-set { position: absolute; left: 0; top: 0; display: flex; gap: clamp(26px, 3.2vw, 56px); visibility: hidden; }
.tg-set.on, .tg-stage:not(.js) .tg-set.tg-still, .tg-stage.js.still .tg-set.on { visibility: visible; }
.tg-stat { margin: 0; }
.tg-stat b { display: block; font: 800 clamp(34px, 3.3vw, 58px)/1 'Inter', sans-serif; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tg-stat i { font-style: normal; }
.tg-stat span { display: block; max-width: 15ch; margin-top: 8px; color: rgba(17, 18, 20, .78); font: 700 15px/1.25 'Inter', sans-serif; }

/* ── Story bars (held stories) ───────────────────────────────────── */
.tg-prog { position: absolute; left: 0; right: 0; bottom: clamp(26px, 4.5vh, 44px); display: none; gap: 8px; align-items: flex-start; }
.tg-stage.js .tg-prog { display: flex; }
.tg-prog button { flex: 1; min-width: 0; min-height: 40px; padding: 10px 0 0; border: 0; background: none; color: var(--tg-ink); text-align: left; cursor: pointer; font: inherit; }
.tg-prog [data-go] > i { display: block; height: 5px; overflow: hidden; border-radius: 3px; background: rgba(17, 18, 20, .16); }
.tg-prog [data-go] b { display: block; height: 100%; background: var(--tg-ink); transform: scaleX(0); transform-origin: 0 50%; }
.tg-prog [data-go] span { display: block; margin-top: 9px; font: 700 12.5px/1.2 'Inter', sans-serif; letter-spacing: -.01em; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.tg-prog button[aria-current="step"] span, .tg-prog button:hover span { opacity: 1; }
.tg-prog button:focus-visible, .tg-pause:focus-visible, .tg-replay:focus-visible { outline: 3px solid var(--tg-focus, var(--tg-ink)); outline-offset: 4px; border-radius: 8px; }
.tg-prog .tg-next { flex: none; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -8px; padding: 0; border-radius: 50%; background: var(--tg-ink); color: #fff; font: 800 20px/1 'Inter', sans-serif; text-align: center; animation: tgNudge 1.6s ease-in-out infinite; }
.tg-stage.at-end .tg-next { visibility: hidden; }
.tg-stage.still .tg-next, .tg-off .tg-next { animation: none; }
/* pause: only where a stage plays by itself */
.tg-pause { display: none; flex: none; place-items: center; width: 40px; height: 40px; margin-top: -6px; padding: 0; border: 0; border-radius: 50%; background: rgba(17, 18, 20, .14); cursor: pointer; }
.tg-prog .tg-pause { flex: none; min-height: 0; padding: 0; }   /* not a story bar: it keeps its own size */
.tg-stage.gs.auto .tg-pause { display: grid; }
.tg-pause i { position: relative; width: 12px; height: 13px; border: solid var(--tg-ink); border-width: 0 4px; }
.tg-pause.held i { width: 0; height: 0; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--tg-ink); margin-left: 3px; }
.tg-stage > .tg-pause { position: absolute; z-index: 6; right: 22px; bottom: 22px; }
@keyframes tgNudge { 50% { transform: translateY(4px); } }

.tg-replay {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  height: 44px; margin-top: clamp(18px, 3vh, 30px); padding: 0 18px 0 14px; border: 0; border-radius: 22px;
  background: var(--tg-ink); color: #fff; font: 800 15px/1 'Inter', sans-serif; letter-spacing: -.01em; cursor: pointer;
}
.tg-replay svg { width: 17px; height: 17px; }
.tg-replay[hidden] { display: none; }

/* ── Stickers, stamps, bursts ────────────────────────────────────── */
.tg-stk { position: absolute; z-index: 4; rotate: var(--r, 0deg); animation: tgFloat 3.4s ease-in-out var(--d, 0s) infinite alternate; animation-play-state: var(--tg-play, running); }
.tg-stk > span {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 19px 12px 14px; border-radius: 22px;
  background: #fff; color: var(--tg-ink); white-space: nowrap;
  font: 800 20px/1.1 'Inter', sans-serif; letter-spacing: -.02em;
  box-shadow: 0 22px 40px -22px rgba(17, 18, 20, .55);
}
.tg-stk i { display: inline-block; font-style: normal; font-size: 23px; line-height: 1; }
@keyframes tgFloat { from { translate: 0 -5px; } to { translate: 0 6px; } }
.tg-off .tg-stk, .tg-stage.still .tg-stk { animation: none; }

.tg-stamp {
  position: absolute; z-index: 3;
  padding: 7px 13px; border: 2.5px solid #88bd91; border-radius: 12px;
  background: #17471c; color: #b9e2bf; font: 800 16px/1 'Inter', sans-serif; font-style: normal; white-space: nowrap; rotate: 8deg;
}
.tg-burst { position: absolute; z-index: 5; width: 0; height: 0; pointer-events: none; }
.tg-burst em { position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border: 3px solid #fff; border-radius: 50%; opacity: 0; }
.tg-burst b { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--tg-ink); opacity: 0; }
.tg-burst b:nth-child(3n) { background: #fff; }
.tg-burst b:nth-child(3n+1) { border-radius: 2px; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); width: 16px; height: 16px; left: -8px; top: -8px; }

/* The picture's box. Laptops: no box at all (display: contents). Phones:
   one fixed-size design, scaled to fit what is left of the screen
   (TG.fitBox in together.js writes --fit). */
.tg-fit { display: contents; }

.tg-note { width: min(1560px, calc(100% - 32px)); margin: 16px auto 0; color: #5c5f66; font: 500 14px/1.5 'Inter', sans-serif; text-align: center; text-wrap: balance; }

/* ══ #scout: Meet Scout ═════════════════════════════════════════════ */
.tg-sc { --tg-rw: min(44vw, 660px); }
.tg-sc .tg-lines { margin-top: 30px; }
.tg-sc .tg-line { font-size: clamp(56px, 6.2vw, 116px); }
.tg-sc .tg-line-2 { max-width: 12.5em; margin-top: .3em; font-size: clamp(30px, 2.8vw, 52px); line-height: 1.06; letter-spacing: -.045em; }
.tg-sc-pill { width: .66em; height: .86em; margin: 0 .06em 0 .02em; vertical-align: -.12em; }
.tg-sc-pill svg { display: block; width: 100%; height: 100%; overflow: visible; }

.tg-sc-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; width: 100%; }
.tg-sc-said { position: relative; z-index: 2; grid-column: 1 / 3; grid-row: 1; width: min(100%, 560px); }
.tg-sc-where { margin: 0; }
.tg-sc-where span { display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 12px; background: var(--tg-ink); color: #fff; font: 800 15px/1 'Inter', sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.tg-sc-bubble {
  position: relative; margin-top: 12px; padding: clamp(20px, 2vw, 30px) clamp(22px, 2.2vw, 34px) clamp(22px, 2.2vw, 32px);
  border-radius: 32px; background: #fff;
  box-shadow: 0 34px 60px -34px rgba(96, 62, 0, .55);
}
/* the tail points down at him */
.tg-sc-bubble::after { content: ""; position: absolute; right: clamp(70px, 7vw, 120px); bottom: -15px; width: 34px; height: 30px; background: #fff; clip-path: polygon(0 0, 100% 0, 78% 100%); }
.tg-sc-text { margin: 0; min-height: 2.24em; color: var(--tg-ink); font: 800 clamp(25px, 2.2vw, 40px)/1.12 'Inter', sans-serif; letter-spacing: -.04em; text-wrap: balance; }
.tg-sc-srcs { position: relative; display: flex; flex-wrap: wrap; gap: 12px; min-height: 54px; margin-top: 22px; }
.tg-sc-srcs .tg-stk { position: relative; }
.tg-sc-srcs .tg-stk:nth-child(1) { --r: -3deg; }
.tg-sc-srcs .tg-stk:nth-child(2) { --r: 4deg; --d: -1.2s; }
.tg-sc-me { position: relative; grid-column: 2; grid-row: 2; justify-self: end; width: clamp(190px, 19vw, 320px); margin: clamp(-90px, -5vw, -40px) clamp(-10px, -1vw, 0px) 0 0; }
.tg-sc-svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.tg-sc-floor { position: absolute; left: 12%; right: 12%; bottom: 1%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(104, 68, 0, .34), rgba(104, 68, 0, 0)); }
.tg-sc-eye, .tg-sc-face, .tg-sc-hand, .tg-sc-hop, .tg-sc-breath { transform-box: fill-box; }
.tg-sc-eye { transform-origin: center; }
.tg-sc-hand.is-l { transform-origin: right center; }
.tg-sc-hand.is-r { transform-origin: left center; }
.tg-sc-hop { transform-origin: 50% 100%; }
/* the chips stay clear of him on the right */
.tg-sc-srcs { max-width: calc(100% - 110px); }

/* ══ #vote: the group's vote, drawn from VRWaveCard ═════════════════ */
.tg-vt { --tg-rw: calc(336px * var(--cs, 1.24) + 40px); --cs: 1.24; }
.tg-vt .tg-lines { margin-top: 20px; }
.tg-vt-pill { gap: 0; padding: 0 .1em; background: var(--tg-ink); }
.tg-vt-pill img { width: .58em; height: .58em; border-radius: 50%; box-shadow: 0 0 0 .045em var(--tg-ink); }
.tg-vt-pill img + img { margin-left: -.16em; }
.tg-vt-scene { position: relative; width: calc(336px * var(--cs)); height: calc(560px * var(--cs)); }
.tg-wv-lift { position: absolute; left: 0; top: 0; width: calc(336px * var(--cs)); height: 100%; }
.tg-wv {
  --ink: #000; --sub: #6a7282; --faint: #9aa1ac; --inset: #f2f3f5; --hair: #e5e7eb; --accent: #ff637a; --plan: #0a6b3d;
  position: absolute; left: 0; top: 0; width: 336px; transform: scale(var(--cs)); transform-origin: 0 0;
  border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 40px 70px -34px rgba(90, 10, 40, .6);
  overflow: hidden; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.tg-wv-hero { position: relative; height: 168px; overflow: hidden; background: #121316; }
.tg-wv-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-wv-ph.is-b { opacity: 0; }
.tg-wv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .66)), rgba(255, 99, 122, .14); }
.tg-wv-chip, .tg-wv-seal { position: absolute; z-index: 2; top: 10px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; background: #11161e; color: #fff; font-size: 12.5px; font-weight: 600; }
.tg-wv-chip { left: 10px; }
.tg-wv-chip svg { width: 13px; height: 13px; }
.tg-wv-seal { right: 10px; gap: 6px; }
.tg-wv-seal i { width: 7px; height: 7px; border-radius: 50%; background: #40cc7d; }
.tg-wv-pitch { position: absolute; z-index: 2; left: 13px; right: 13px; bottom: 13px; }
.tg-wv-pitch > b { display: block; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; text-shadow: 0 2px 4px rgba(0, 0, 0, .45); }
.tg-wv-crew { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.tg-wv-pile { display: flex; }
.tg-wv-pile .tg-av { width: 22px; height: 22px; margin-right: -9px; overflow: hidden; font-size: 10px; box-shadow: 0 0 0 1.6px #fff; transition: width .25s, margin .25s; }
.tg-wv-pile .tg-av.is-out { width: 0; margin-right: 0; box-shadow: none; }
.tg-wv-pile .tg-av:last-child { margin-right: 0; }
.tg-wv-in { margin-left: 4px; padding: 4.5px 7px; border-radius: 10px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 10.5px; font-weight: 800; }
.tg-wv-in u { text-decoration: none; }
.tg-wv-body { display: grid; padding: 13px; }
.tg-wv-open, .tg-wv-locked { grid-area: 1 / 1; align-self: start; display: grid; gap: 12px; align-content: start; }
.tg-wv-locked { visibility: hidden; }
.tg-wv-spots { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tg-wv-spots li { display: flex; align-items: center; gap: 9px; padding: 7px; border-radius: 14px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--hair); }
.tg-wv-spots li.is-lead { box-shadow: inset 0 0 0 1px rgba(255, 99, 122, .45); }
.tg-wv-spots img { width: 36px; height: 36px; flex: none; border-radius: 10px; object-fit: cover; }
.tg-wv-spots li > div { flex: 1; min-width: 0; }
.tg-wv-spots b { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tg-wv-spots em { font-style: normal; font-size: 11px; visibility: hidden; }
.tg-wv-spots li.is-lead em { visibility: visible; }
.tg-wv-bar { position: relative; display: block; height: 4px; margin-top: 4px; overflow: hidden; border-radius: 2px; background: var(--hair); }
.tg-wv-bar s { position: absolute; inset: 0; border-radius: 2px; background: rgba(255, 99, 122, .55); transform: scaleX(var(--v)); transform-origin: 0 50%; }
.tg-wv-spots li.is-lead .tg-wv-bar s { background: var(--accent); }
.tg-wv-thumb { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 6px 9px; border-radius: 14px; background: #fff; color: var(--sub); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tg-wv-thumb svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.tg-wv-thumb u { text-decoration: none; }
.tg-wv-thumb.is-mine { background: var(--accent); color: #fff; }
.tg-wv-thumb.is-mine svg { fill: currentColor; }
.tg-wv-toss { justify-self: center; display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border: 1.1px dashed rgba(255, 99, 122, .55); border-radius: 14px; color: var(--accent); font-size: 12px; font-weight: 700; }
.tg-wv-react { display: flex; gap: 6px; }
.tg-wv-react span { display: grid; place-items: center; height: 30px; padding: 0 7px; border-radius: 15px; background: var(--inset); font-size: 14px; }
.tg-wv-rsvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tg-wv-rsvp span { display: grid; place-items: center; align-content: center; gap: 3px; height: 46px; border-radius: 14px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--hair); color: var(--sub); font-size: 10.5px; font-weight: 800; }
.tg-wv-rsvp svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tg-wv-rsvp span.is-in { background: var(--plan); box-shadow: none; color: #fff; }
.tg-wv-cta { display: grid; }
.tg-wv-wait, .tg-wv-lock { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; border-radius: 22px; white-space: nowrap; }
.tg-wv-wait { visibility: hidden; height: 40px; align-self: center; background: var(--inset); box-shadow: inset 0 0 0 1px var(--hair); color: var(--sub); font-size: 11.5px; font-weight: 800; }
.tg-wv-wait i { font-style: normal; font-size: 14px; }
.tg-wv-lock { background: #000; color: #fff; font-size: 14px; font-weight: 800; }
.tg-wv-lock svg, .tg-wv-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tg-wv-happening { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 14px; background: rgba(43, 182, 115, .1); box-shadow: inset 0 0 0 1px rgba(43, 182, 115, .3); }
.tg-wv-happening > svg { width: 24px; height: 24px; flex: none; fill: var(--plan); }
.tg-wv-happening b { display: block; font-size: 14px; font-weight: 800; }
.tg-wv-happening span { display: block; margin-top: 2px; color: var(--sub); font-size: 12px; font-weight: 600; }
.tg-wv-go { display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; border-radius: 22px; background: #000; color: #fff; font-size: 15px; font-weight: 600; }
.tg-wv-go svg { fill: currentColor; stroke: none; }
/* finished frame (no JS, reduced motion): the votes are in, Razza leads */
.tg-vt-votes { position: absolute; inset: 0; pointer-events: none; }
.tg-vt-votes .tg-av { position: absolute; left: 0; top: 0; width: 34px; height: 34px; font-size: 14px; box-shadow: 0 0 0 2.5px #fff, 0 10px 18px -8px rgba(60, 0, 20, .6); visibility: hidden; }
/* stickers sit beside the card, never on it: by the leading spot, by the
   crew, and under the locked card (which is shorter than the open one) */
.tg-vt-s1 { top: calc(196px * var(--cs)); left: -186px; --r: -5deg; }
.tg-vt-s2 { top: calc(104px * var(--cs)); left: -124px; --r: 6deg; --d: -1.1s; }
.tg-vt-s3 { top: calc(326px * var(--cs)); right: 6px; --r: -4deg; --d: -.6s; }
@media (max-width: 1299px) { .tg-vt-s1, .tg-vt-s2 { display: none; } }   /* no room beside the card */
/* the finished frame is the open card (Razza leads, the button not yet
   pressed), so nothing says it's locked yet */
.tg-stage:not(.js) .tg-vt-s3, .tg-stage.still .tg-vt-s3,
.tg-stage:not(.js) .tg-wv-seal, .tg-stage.still .tg-wv-seal { visibility: hidden; }

/* ── Narrower screens: the sentence on top, the picture under it ── */
@media (max-width: 1099px) {
  .tg { --tg-h: auto; }
  #scout.tg, #versus.tg, #vote.tg, #boards.tg, #features-grid.tg { padding-top: 72px; }
  .tg-stage { width: calc(100% - 16px); height: auto; padding: 30px 0 26px; border-radius: 32px; }
  .tg-grid { display: block; height: auto; padding: 0 22px; }
  .tg-left { display: block; }
  .tg-tag { position: relative; top: 0; width: fit-content; }
  .tg-lines { margin-top: 22px; }
  .tg-line { max-width: none; font-size: clamp(40px, 8.4vw, 76px); }
  .tg-stats { height: 74px; margin-top: 20px; }
  .tg-set { gap: clamp(18px, 5vw, 40px); }
  .tg-stat b { font-size: clamp(28px, 7vw, 44px); }
  .tg-stat span { max-width: 13ch; margin-top: 5px; font-size: 13px; }
  .tg-ghost { font-size: clamp(110px, 30vw, 220px); bottom: auto; top: 40%; }
  .tg-prog { position: relative; bottom: 0; margin-top: 20px; }
  .tg-prog .tg-next { width: 40px; height: 40px; margin-top: -6px; font-size: 17px; }
  .tg-right { margin-top: 30px; }
  .tg-stage > .tg-pause { right: 14px; bottom: 14px; }

  .tg-sc .tg-lines { margin-top: 18px; }
  .tg-sc .tg-line { font-size: clamp(52px, 11vw, 96px); }
  .tg-sc .tg-line-2 { font-size: clamp(28px, 5.4vw, 46px); }
  .tg-sc-scene { max-width: 640px; margin: 0 auto; }
  .tg-sc-said { margin-bottom: 0; }
  .tg-sc-srcs { max-width: none; }
  .tg-sc-me { grid-column: 1 / 3; grid-row: 2; justify-self: center; width: 200px; margin: 18px 0 -6px; }
  .tg-sc-bubble::after { right: auto; left: 50%; margin-left: -17px; clip-path: polygon(0 0, 100% 0, 50% 100%); }

  .tg-vt-scene { margin: 0 auto; }
  .tg-vt.tg-stage { padding-bottom: 74px; }               /* the pause sits under the card, never on it */
}
@media (max-width: 600px) {
  #scout.tg, #versus.tg, #vote.tg, #boards.tg, #features-grid.tg { padding-top: 56px; }
  .tg-stage { border-radius: 28px; }
  .tg-grid { padding: 0 18px; }
  .tg-line { font-size: clamp(36px, 10.4vw, 48px); }
  .tg-prog { gap: 6px; }
  .tg-prog [data-go] span { display: none; }
  .tg-prog [data-go] > i { height: 4px; }
  .tg-stat span { font-size: 12.5px; }
  .tg-stk > span { padding: 10px 15px 10px 12px; font-size: 16px; }
  .tg-stk i { font-size: 18px; }
  .tg-note { font-size: 13px; }

  .tg-sc .tg-line { font-size: clamp(50px, 15vw, 64px); }
  .tg-sc .tg-line-2 { font-size: clamp(27px, 7.6vw, 32px); }
  .tg-sc-where span { height: 32px; font-size: 14px; }
  .tg-sc-bubble { border-radius: 26px; }
  .tg-sc-text { min-height: 3.36em; font-size: clamp(22px, 6.4vw, 26px); }
  .tg-sc-srcs { gap: 8px; min-height: 46px; margin-top: 18px; }
  .tg-sc-me { width: 168px; }

  .tg-vt { --cs: 1; }
  .tg-vt-scene { transform-origin: 50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tg-stage, .tg-stage * { transition: none !important; animation: none !important; }
}

/* ══ Phones and small tablets: held, full screen, scroll-driven ══════
   Mark on his iPhone, 10-29: "you can't see the whole thing in view",
   then "we still need those cool effects for mobile" and "make it more
   full screen immersive and scroll controlled".
   On a phone held upright (under 900px wide, 480px tall or more) every
   stage is the whole screen under the nav (svh, so Safari's toolbars
   can't push it off), edge to edge; a phone on its side gets the stacked
   tablet layout above. The held stories
   (head to head, the page, the rally) stick at the nav and step one beat
   per scroll, as on laptops (TG.story runs its scrolly mode here too, and
   stage-steps.js turns one swipe into one beat). Scout and the vote play
   by themselves, with their pause button.
   Top to bottom: the story bars (or the pause row), the headline (three
   lines at most), the numbers, then the picture with its stickers and
   pops around it. The picture is one fixed-size design (.tg-fit) that
   TG.fitBox scales to the room left, never so small that its words drop
   under about 8px. Stickers may sit over the picture's edges and corners,
   never over what moves in it, and never off screen. ═══════════════════ */
@media (max-width: 899px) and (min-height: 480px) {
  .tg { --tg-h: calc(100vh - 64px); --tg-h: calc(100svh - 64px); }
  #scout.tg, #versus.tg, #vote.tg, #boards.tg, #features-grid.tg { padding-top: 36px; }
  .tg-stage {
    display: flex; flex-direction: column;
    width: 100%; height: var(--tg-h); border-radius: 0;
    padding: 12px 0;
  }
  .tg-hold.tg-scrolly > .tg-stage { top: 64px; }
  .tg-grid { display: flex; flex-direction: column; flex: 1; min-height: 0; height: auto; padding: 0 16px; }
  .tg-left { display: flex; flex-direction: column; flex: none; }
  .tg-prog { order: -1; margin: 0 0 10px; }
  .tg-tag { display: none; }
  .tg-lines { margin-top: 0; }
  .tg-line { font-size: clamp(29px, 8.4vw, 40px); line-height: 1.04; }
  /* the numbers: one compact row under the headline */
  .tg-stats { height: 50px; margin-top: 10px; }
  .tg-set { gap: clamp(14px, 4.5vw, 28px); }
  .tg-stat b { font-size: clamp(21px, 6vw, 28px); }
  .tg-stat span { max-width: 14ch; margin-top: 3px; font-size: 11px; line-height: 1.2; }
  /* the giant faint word, low behind the picture */
  .tg-ghost { top: auto; bottom: -.14em; font-size: clamp(110px, 31vw, 230px); }
  .tg-right { display: block; position: relative; flex: 1; min-height: 0; margin-top: 12px; }
  .tg-fit { display: block; position: absolute; left: 50%; top: 0; transform-origin: 50% 0; transform: translateX(-50%) scale(var(--fit, 1)); }
  .tg-stk > span { padding: 9px 14px 9px 11px; border-radius: 18px; font-size: 16px; }
  .tg-stk i { font-size: 18px; }
  /* stages with no story bars keep the same top row, for pause and replay */
  .tg-sc .tg-left, .tg-vt .tg-left { position: relative; padding-top: 50px; }
  .tg-stage > .tg-pause { top: 12px; right: 16px; bottom: auto; }

  /* Meet Scout: the bubble across the top, what he checked beside him */
  .tg-sc .tg-line { font-size: clamp(34px, 10vw, 46px); }
  .tg-sc .tg-line-2 { margin-top: .22em; font-size: clamp(21px, 6vw, 28px); }
  .tg-sc .tg-fit { width: 360px; --fw: 360px; }
  .tg-sc-scene {
    display: grid; width: 360px; max-width: none; margin: 0;
    grid-template-columns: minmax(0, 1fr) 140px; grid-template-areas: "where where" "bubble bubble" "srcs me";
    column-gap: 8px; align-items: center;
  }
  .tg-sc-said { display: contents; }
  .tg-sc-where { grid-area: where; }
  .tg-sc-bubble { grid-area: bubble; margin-top: 10px; padding: 18px 20px 20px; border-radius: 26px; }
  .tg-sc-bubble::after { left: auto; right: 56px; margin-left: 0; clip-path: polygon(0 0, 100% 0, 62% 100%); }
  .tg-sc-text { min-height: 3.36em; font-size: 22px; }
  .tg-sc-srcs { grid-area: srcs; flex-direction: column; align-items: flex-start; gap: 8px; max-width: none; min-height: 0; margin-top: 10px; }
  .tg-sc-me { grid-area: me; justify-self: end; width: 140px; margin: 14px 0 0; }

  /* The vote: the app's card at its own size, scaled as a whole, with its
     stickers just off its edges (design px, so they scale with it) */
  .tg-vt { --cs: 1; }
  .tg-vt .tg-fit { width: 336px; --fw: 444px; }   /* --fw: with its stickers either side */
  .tg-vt.tg-stage { padding-bottom: 12px; }
  .tg-vt-scene { margin: 0; }
  .tg-vt .tg-replay { position: absolute; top: 0; left: 0; height: 40px; margin: 0; }
  .tg-vt .tg-stk, .tg-vt .tg-vt-s1, .tg-vt .tg-vt-s2 { display: block; }
  .tg-vt-s1 { top: 88px; left: auto; right: -54px; --r: 6deg; }
  .tg-vt-s2 { top: 50px; left: -52px; --r: -6deg; }
  .tg-vt-s3 { top: 326px; right: 10px; }

  /* Reduced motion or no JS: nothing plays, so nothing has to hold on one
     screen. The stage grows to its finished frame and the picture keeps
     its design size, zoomed to the screen's width: TG.fitBox sets --z,
     and without JS tan(atan2(a, b)) does the same sum (a / b as a plain
     number). */
  .tg-sc:not(.gs), .tg-vs:not(.gs), .tg-vt:not(.gs), .tg-bd:not(.gs) { height: auto; min-height: var(--tg-h); }
  .tg-sc:not(.gs) .tg-right, .tg-vs:not(.gs) .tg-right, .tg-vt:not(.gs) .tg-right, .tg-bd:not(.gs) .tg-right { flex: none; }
  .tg-stage:not(.gs) .tg-fit {
    position: relative; left: 0; margin: 0 auto; transform: none;
    zoom: var(--z, min(1.25, tan(atan2(100vw - 32px, var(--fw, 360px)))));
  }
}
/* Short phones (an SE in Safari is about 375x548): the numbers make way
   for the picture wherever the picture needs the room. */
@media (max-width: 899px) and (min-height: 480px) and (max-height: 600px) {
  .tg-vt .tg-stats, .tg-bd .tg-stats, .tg-rl .tg-stats { display: none; }
  /* the rally's finished frame (no JS, reduced motion): the crowd at Razza
     a little closer, and the crew panel without its title line (the toast
     already says everyone's here), so the toast, the crowd and the crew
     each keep their own room */
  .tg-rl:not(.gs) { --fy: 46%; --k: .41; }
  .tg-rl:not(.gs) .tg-rl-crew-top { display: none; }
}
