:root{
  --ink:#2b2118; --paper:#fdf9f2; --card:#ffffff; --gold:#c9a227; --gold-dark:#a8861c;
  --soft:#f3ead9; --line:#e3d7bf; --muted:#7a6a55; --radius:16px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--paper); color:var(--ink); line-height:1.5; -webkit-text-size-adjust:100%}
.wrap{max-width:560px;margin:0 auto;padding:20px 16px calc(96px + env(safe-area-inset-bottom))}
h1{font-size:1.55rem;line-height:1.25;margin:.4em 0 .3em}
h2{font-size:1.2rem;margin:1.1em 0 .4em}
p{margin:.5em 0}
.belief{font-size:1.3rem;line-height:1.45;font-weight:600;text-align:center;margin:18px 0 6px}
.belief-quiet{text-align:center;color:var(--muted);font-size:1.05rem;margin:22px 0}
.small{font-size:.9rem;color:var(--muted)}
.tiny{font-size:.8rem;color:var(--muted)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin:14px 0}
.btn{display:block;width:100%;padding:16px;border:none;border-radius:var(--radius);
  background:var(--gold);color:#fff;font-size:1.1rem;font-weight:700;cursor:pointer;text-align:center;text-decoration:none;margin:10px 0}
.btn:active{background:var(--gold-dark)}
.btn.secondary{background:var(--soft);color:var(--ink);border:1px solid var(--line)}
.btn.small-btn{width:auto;display:inline-block;padding:9px 14px;font-size:.95rem;margin:4px 4px 4px 0}
.btn:disabled{opacity:.5}
.stepbtn{display:flex;align-items:center;gap:14px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:18px 16px;margin:12px 0;text-decoration:none;color:var(--ink)}
.stepbtn .n{font-size:1.7rem;font-weight:800;color:var(--gold);min-width:2rem;text-align:center}
.stepbtn .t{font-size:1.15rem;font-weight:700}
.stepbtn .d{font-size:.92rem;color:var(--muted)}
label{display:block;font-weight:600;margin:14px 0 6px}
input[type=text],input[type=tel],textarea{width:100%;padding:13px;border:1px solid var(--line);
  border-radius:12px;font-size:1rem;background:#fff;font-family:inherit}
textarea{min-height:90px}
video{width:100%;border-radius:12px;background:#000;display:block}
video.small-player{max-height:300px}
.prompt-big{font-size:1.35rem;font-weight:700;text-align:center;margin:14px 0 4px}
.status{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--soft);font-size:.85rem;font-weight:700}
.status.replied{background:#dcebd2}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.chip{padding:11px 16px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:1rem;cursor:pointer}
.chip.picked{background:var(--gold);color:#fff;border-color:var(--gold)}
.row{display:flex;gap:8px;flex-wrap:wrap}
.hidden{display:none!important}
.center{text-align:center}
.footer-door{margin-top:34px;text-align:center}
.footer-door a{color:var(--muted);font-size:.95rem}
.take{border:1px solid var(--line);border-radius:12px;padding:10px;margin:10px 0;background:#fff}
.reply{border-left:3px solid var(--gold);padding:6px 0 6px 12px;margin:10px 0}
audio{width:100%}
hr.sep{border:none;border-top:1px solid var(--line);margin:22px 0}
.danger{color:#9c2b2b}
a.plain{color:var(--gold-dark)}
.wrap-top{padding-top:30px}
.video-frame{position:relative}
/* v6: the receiver page fits ONE phone screen — sender line, one line of
   context, the video, and the two buttons, no scrolling for the meaning. */
.video-frame video{max-height:38vh}
.play-overlay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;
  align-items:center;gap:8px;background:none;border:none;cursor:pointer;padding:0}
.play-overlay .disc{width:78px;height:78px;border-radius:50%;background:var(--gold);color:#fff;font-size:1.9rem;
  line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 18px rgba(0,0,0,.35);padding-left:6px}
.play-overlay .cap{background:rgba(0,0,0,.68);color:#fff;padding:4px 12px;border-radius:999px;font-size:.9rem;font-weight:600}

/* --- v5: recording state, one-click quiet lines, celebration ripple --- */
/* The viewfinder FILLS its frame (object-fit: cover — no pillarbox bars),
   and the recording state rides at the TOP, inside the page, where phone
   browser chrome can never cover it. */
.viewfinder{position:relative;border-radius:12px;overflow:hidden;background:#000;aspect-ratio:3/4;margin:10px 0}
.viewfinder video{width:100%;height:100%;object-fit:cover;border-radius:0}
.recbar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:8px;
  padding:10px 14px;background:rgba(0,0,0,.55);color:#fff;font-weight:700;font-size:1rem;z-index:2}
.rec-dot{width:13px;height:13px;border-radius:50%;background:#e5322d;flex:none;animation:recpulse 1.1s ease-in-out infinite}
.rec-time{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:600}
@keyframes recpulse{0%,100%{opacity:1}50%{opacity:.25}}
video.review-player{max-height:52vh}
/* A quiet line: words, not a button — the fallback roads and invitations
   that must never compete with the page's one action. */
.quiet-link{display:block;text-align:center;background:none;border:none;width:100%;
  color:var(--muted);font-size:.92rem;padding:10px 6px;margin:2px 0;cursor:pointer;
  text-decoration:underline;text-underline-offset:3px;font-family:inherit}
a.quiet-link{width:auto}
/* The celebration: three staggered golden rings spreading from one point,
   warm glow — the ripple made visible (direction approved Nov 19). */
.ripple-stage{position:relative;height:190px;margin:6px 0 2px;
  background:radial-gradient(circle at 50% 50%,rgba(201,162,39,.20),rgba(201,162,39,0) 62%)}
.ripple-ring{position:absolute;left:50%;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px;
  border:3px solid var(--gold);border-radius:50%;opacity:0;animation:ripple 3.9s ease-out infinite}
.ripple-ring.r2{animation-delay:1.3s}
.ripple-ring.r3{animation-delay:2.6s}
.ripple-core{position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;
  border-radius:50%;background:var(--gold)}
@keyframes ripple{0%{transform:scale(.55);opacity:.95}70%{opacity:.35}100%{transform:scale(3.1);opacity:0}}
.celebrate-line{font-size:1.45rem;font-weight:700;text-align:center;line-height:1.35;margin:10px 0 4px}
.celebrate-sub{text-align:center;font-size:1.08rem;margin:4px 0}
.reply-row{text-align:right;margin:8px 0 0}
.recbar-inline{position:relative;border-radius:12px;margin:10px 0}
@media (prefers-reduced-motion: reduce){
  .rec-dot{animation:none}
  .ripple-ring{animation:none;opacity:.5;transform:scale(1.6)}
  .ripple-ring.r2{transform:scale(2.3)}
  .ripple-ring.r3{transform:scale(3)}
}

/* --- v6: the way home on every page; the filming room; the ripple page --- */
.gm-head{max-width:560px;margin:0 auto;padding:12px 16px 0;display:flex;align-items:center;
  justify-content:space-between;gap:12px}
.gm-brand img{height:36px;width:auto;display:block;mix-blend-mode:multiply}
.gm-nav{display:flex;gap:16px;flex:none}
.gm-nav a{color:var(--gold-dark);font-weight:700;font-size:.95rem;text-decoration:none}
.gm-foot{max-width:560px;margin:0 auto;text-align:center;padding:20px 16px 8px;color:var(--muted);font-size:.92rem}
.gm-foot a{color:var(--gold-dark);font-weight:600;text-decoration:none}
/* Repeat passes strip the teaching copy (elements classed .teach hide). */
.repeat .teach{display:none!important}
/* The model on the home page is a wide, short strip now — the example, not
   the main event — so Thank One shows on the first screen. The poster is
   John's own frame, face high, so the strip crop keeps his face. */
video.model-strip{width:100%;aspect-ratio:16/9;max-height:180px;object-fit:cover;object-position:center 50%}
/* Review: the two choices side by side on one screen. */
.review-actions{align-items:stretch}
.review-actions .btn{flex:1;width:auto;margin:6px 0}
/* THE FILMING ROOM: fixed, full-screen, above everything. The Stop button
   is the last thing on the screen and cannot scroll away. */
body.room-open{overflow:hidden}
.filmroom{position:fixed;inset:0;z-index:80;background:#171208;color:#fff;display:flex;
  flex-direction:column;padding:14px 14px calc(16px + env(safe-area-inset-bottom))}
.filmroom-for{text-align:center;font-weight:700;font-size:1.1rem;margin:2px 0 10px;min-height:1.4em}
.filmroom-view{position:relative;flex:1;border-radius:14px;overflow:hidden;background:#000}
.filmroom-view video{width:100%;height:100%;object-fit:cover;border-radius:0}
.filmroom-start,.filmroom-stop{flex:none;font-size:1.3rem;padding:20px;margin:12px 0 0}
.filmroom-stop{background:#b3271e}
.filmroom-stop:active{background:#8f1f18}
.filmroom-cancel{color:#cbbfa5}
/* See Your Ripple: the real names, then the pattern — kept visibly apart. */
.ripple-stage.big{height:230px}
.ripple-names{margin:10px 0}
.ripple-name{display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  padding:10px 4px;border-bottom:1px solid var(--line)}
.ripple-name .who{font-weight:700;font-size:1.08rem}
.ripple-name .stood{color:var(--muted);font-size:.88rem;text-align:right}
.pattern-card svg{width:100%;height:auto;display:block;margin:6px 0}
.pattern-num{font-size:1.3rem;font-weight:800;fill:var(--gold-dark)}
.pattern-cap{font-size:.85rem;fill:var(--muted)}
/* The receiver page's two buttons: equal weight, no paragraph to read. */
.watch-actions{margin-top:14px}
.watch-actions .btn{margin:8px 0}

/* --- v7: the Home button says Home; takes are thumbnail rows; examples;
       the tracker; the Help One stream and road --- */
/* A plain button that says Home, same spot on every room page (R26). */
.gm-nav a.gm-home{background:var(--gold);color:#fff;padding:7px 14px;border-radius:999px}
/* The pick list (R15b/R25): every take is a row with its own picture —
   small enough that the whole choice fits on one screen, big enough to
   tell the takes apart at a glance. The video itself is the thumbnail:
   its poster is a still captured from the take, and its own controls
   still let the person play it in place. (Superseded in v7.2 by the
   stacked take cards below — one picker everywhere.) */
/* Home examples (R30): real thank-yous, small players with posters,
   beside a few words — the showing comes before any explaining. */
.example-row{display:flex;gap:12px;align-items:center;margin:12px 0}
.example-thumb{width:118px;height:157px;flex:none;object-fit:cover;border-radius:12px;background:#000}
.example-cap{font-size:.95rem}
/* The tracker (R4/R8): your number beside everybody's, real counts. */
.tracker-num{font-size:1.25rem;font-weight:800}
.tracker-line{margin:4px 0}
/* Help One counted screen (R10): the helper's words join a visible
   stream of other people's helps — newest first, the newest floats in. */
.help-stream{margin:12px 0}
.stream-word{display:block;background:var(--soft);border:1px solid var(--line);border-radius:999px;
  padding:7px 14px;margin:6px 0;font-size:.95rem;width:fit-content;max-width:100%}
.stream-word.mine{background:var(--gold);color:#fff;border-color:var(--gold);font-weight:700;
  animation:floatin 1.6s ease-out}
@keyframes floatin{0%{transform:translateY(14px);opacity:0}30%{opacity:1}100%{transform:translateY(0);opacity:1}}
/* The road after a counted help (R11): what happened, then the doors. */
.road-row{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:12px 14px;margin:8px 0;text-decoration:none;color:var(--ink)}
.road-row .n{font-size:1.3rem;font-weight:800;color:var(--gold);min-width:1.6rem;text-align:center}
.road-row .t{font-weight:700}
/* The chain film on the receiver's second page: a player, not a poster
   wall — it wears its poster until tapped, like every video here. */
video.chain-player{width:100%;max-height:46vh;object-fit:cover}
@media (prefers-reduced-motion: reduce){
  .stream-word.mine{animation:none}
}

/* --- v7.2: welcome animation; one take picker; Back + step crumbs;
       the ripple is your own rings --- */
/* The welcome animation leads the home page: a wide, quiet strip, the
   ripple passed hand to hand. Silent by design; it wears its poster. */
video.welcome-video{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius);
  border:1px solid var(--line);background:#faf5ec}
.welcome-cap{text-align:center;margin-top:8px}
/* The home page's ending beat: after the examples, the turn passes. */
.turn-line{text-align:center;font-size:1.35rem;font-weight:800;margin:26px 0 4px}
/* Orientation (John, Nov 24): every step says where you are — the room
   and which step — in the same place on every card. */
.step-crumb{font-size:.82rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  color:var(--gold-dark);margin:0 0 8px}
/* Back: an obvious one-step-back at the top of every step — a bordered
   pill that reads as a button, never a whisper of a link. */
.back-btn{display:inline-block;background:#fff;border:1px solid var(--line);border-radius:999px;
  color:var(--ink);font-size:.95rem;font-weight:700;padding:9px 16px;margin:0 0 10px;
  cursor:pointer;text-decoration:none;font-family:inherit}
.back-btn:active{background:var(--soft)}
/* ONE TAKE PICKER (shared, common.js): the takes stacked down the page,
   plainly numbered, each player wearing its own still from the take. */
.take-card{border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0;background:#fff}
.take-head{font-weight:800;font-size:1.05rem;margin:0 0 8px}
video.take-player{width:100%;max-height:46vh;object-fit:cover;background:#000}
.take-card .take-pick{margin:10px 0 0}
/* See Your Ripple, redrawn: you in the middle, your people on ring 1,
   the people they thanked on ring 2 — drawn from the real records. */
.ripple-svg{width:100%;height:auto;display:block;margin:4px 0}
.ripple-svg .ring-guide{fill:none;stroke:var(--line);stroke-width:1.5;stroke-dasharray:3 5}
.ripple-svg .you-core{fill:var(--gold)}
.ripple-svg .you-label{fill:#fff;font-weight:800;font-size:13px}
.ripple-svg .r1-dot{fill:var(--gold)}
.ripple-svg .r2-dot{fill:#fff;stroke:var(--gold);stroke-width:2}
.ripple-svg .rname{fill:var(--ink);font-size:12.5px;font-weight:700}
.ripple-svg .rname2{fill:var(--muted);font-size:11.5px}
/* The halo: when your ripple grew, or somebody thanked you back, the
   rings glow the way the welcome film glows — the feeling, visible. */
.ripple-stage-wrap{position:relative}
.ripple-stage-wrap.glow .ripple-svg .ring-guide{stroke:var(--gold);stroke-dasharray:none;opacity:.65}
.ripple-stage-wrap.glow::before{content:"";position:absolute;inset:-6px;border-radius:24px;
  background:radial-gradient(circle at 50% 46%,rgba(201,162,39,.38),rgba(201,162,39,0) 68%);
  animation:halo 3.2s ease-in-out infinite;pointer-events:none}
@keyframes halo{0%,100%{opacity:.55}50%{opacity:1}}
.ripple-name .stood .passed{color:var(--gold-dark);font-weight:700}
.pattern-line{text-align:center;margin-top:18px}
@media (prefers-reduced-motion: reduce){
  .ripple-stage-wrap.glow::before{animation:none}
}
