/* Readi concept 8 (Globe). Light theme only (dark dropped 2026-11-13).
   light = Deta Surf (Gambarino + Switzer, sky, clouds, floating cards, rounded frames)
   Component styles for Quests, ReadiTV and dialogs come from legacy.css and read the tokens below. */

@font-face { font-family: "Gambarino"; src: url("fonts/Gambarino-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --brand: #DE5E48;              /* Readi coral, for marks and accents that aren't text */
  --head-h: 76px; --g: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, 1.5, .5, 1);
  --t: .25s;                     /* small animations: about .25s, ending in a quick spring */
  --m: 1;                        /* motion scale. Reduce Motion sets 3: slower, never off */
  --t-scale: 1; --s-scale: 1; --l-fvs: normal; --d-fvs: normal; --d-wdth: 100%; --l-wdth: 100%;
}
:root {
  color-scheme: light;
  --bg: #FFFFFF; --surface: #F3F7FC; --surface-2: #E8F0FA; --text: #121A2A; --mute: #556079; --dim-text: #6B7385;
  --line: rgba(18, 26, 42, .14); --edge: rgba(18, 26, 42, .22); --bw: 1px; --well: #E3ECF7;
  --accent: #C8452B; --accent-text: #B93D24; --on-accent: #FFFFFF; --focus: #C8452B;
  --btn-bg: #C8452B; --btn-fg: #FFFFFF; --btn-hover: #A93A23;
  --btn2-bg: #FFFFFF; --btn2-fg: #121A2A; --btn2-line: rgba(18, 26, 42, .2); --btn2-hover: #EEF3FA;
  --logo: #DE5E48; --nav-bg: rgba(255, 255, 255, .86); --nav-fg: #121A2A;
  --radius: 28px; --radius-sm: 14px; --radius-btn: 999px; --r-scale: 1; --r: 22px;
  --shadow: 0 22px 44px -22px rgba(13, 44, 92, .38);
  --f-head: "Gambarino", "Iowan Old Style", Georgia, serif; --f-body: "Switzer", system-ui, -apple-system, sans-serif;
  --fs-body: 1.125rem; --fs-small: .9375rem; --fs-nav: .9375rem; --fs-btn: 1rem;
  --fs-h1: clamp(2.5rem, 4.2vw, 3.75rem); --fs-h2: clamp(1.9rem, 3vw, 2.25rem); --fs-h3: 1.25rem; --fs-lead: 1.25rem;
  --lh-h: 1.04; --tr-h: -.01em; --w-h: 400; --w-btn: 600;
  /* names the v7 components expect */
  --paper: var(--bg); --cream: #FFFFFF; --ink: var(--text); --coral: #C8452B; --coral-deep: #A93A23; --butter: #FFE7A6;
  --f-display: var(--f-head); --d-wght: 400; --d-style: normal; --d-case: none; --d-lh: 1.04; --d-track: -.01em; --d-scale: .56;
  --f-label: var(--f-body); --l-wght: 600; --l-style: normal; --l-case: none; --l-track: 0em; --f-text: var(--f-body);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
h1, h2, .display, .dsp { font-family: var(--f-head); font-weight: var(--w-h); line-height: var(--lh-h); letter-spacing: var(--tr-h); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h1[tabindex="-1"]:focus { outline: none; }
h2 { font-size: var(--fs-h2); }
h3 { font: 600 var(--fs-h3)/1.3 var(--f-body); }
html h2 { line-height: 1.1; }
em.px { font-style: normal; }
.display { margin: 0; font-weight: var(--d-wght); }
.lbl, .label, .eyebrow { font: 600 .8125rem/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.mute { color: var(--mute); }
.fine { font-size: var(--fs-small); color: var(--mute); }
.fine a, .doc-body a, .plain a, .hint a { text-underline-offset: 3px; }

/* ---------- Buttons (new .btn and the v7 .pill share one look) ---------- */
.btn, .pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-btn); border: 1px solid var(--btn2-line); background: var(--btn2-bg); color: var(--btn2-fg); font: var(--w-btn) var(--fs-btn)/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--t), color var(--t), border-color var(--t), transform var(--t) var(--spring), box-shadow var(--t); }
.btn:hover, .pill:hover { background: var(--btn2-hover); }
.btn:active, .pill:active { transform: scale(.96); }
.btn.primary, .pill.coral { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.btn.primary:hover, .pill.coral:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-fg); }
html .btn.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 20px -12px rgba(140, 40, 20, .7); }
.pill.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.pill.ghost { background: transparent; border-color: var(--line); }
.pill.ghost:hover { background: var(--btn2-hover); }
.btn.sm, .pill.sm { min-height: 44px; padding: 0 16px; font-size: var(--fs-small); }
.pill.xs { min-height: 36px; padding: 0 12px; font-size: .8125rem; gap: 6px; }
:is(.btn, .pill)[disabled], .pill[aria-disabled="true"] { background: var(--surface-2); border-color: var(--line); color: var(--dim-text); pointer-events: none; box-shadow: none; }
.btn i, .pill i { font-size: 1.15em; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--edge); background: transparent; display: grid; place-items: center; font-size: 1.15rem; cursor: pointer; transition: background var(--t), color var(--t); }
.icon-btn:hover { background: var(--text); color: var(--bg); }
.icon-btn.sm { width: 40px; height: 40px; font-size: 1rem; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }
.arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--accent-text); }
.arrow i { transition: transform var(--t) var(--spring); }
.arrow:hover i { transform: translateX(4px); }
.arrow:hover .ph-arrow-down { transform: translateY(4px); }

/* ---------- Header ---------- */
.head { position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding: 14px 16px 0; pointer-events: none; }
.nav-bar { pointer-events: auto; display: flex; align-items: center; gap: 6px; margin: 0 auto; min-height: 56px; padding: 6px 8px 6px 20px; color: var(--nav-fg); transition: max-width .5s var(--ease), background .3s, border-color .3s, border-radius .3s, padding .3s; }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--logo); flex: none; }
.logo img { height: 24px; width: auto; background: currentColor; -webkit-mask: url("img/readi-wordmark.png") center / contain no-repeat; mask: url("img/readi-wordmark.png") center / contain no-repeat; object-position: -999px 0; object-fit: none; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 8px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: var(--radius-btn); font: 500 var(--fs-nav)/1 var(--f-body); color: inherit; text-decoration: none; cursor: pointer; transition: color var(--t), background var(--t); }
.nav-link i { font-size: .9em; transition: transform var(--t) var(--spring); }
.nav-link[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav-links:hover .nav-link:not(:hover):not(:focus-visible) { color: color-mix(in srgb, var(--nav-fg) 62%, transparent); }
.dd { position: relative; }
.dd-menu { position: absolute; top: 100%; left: -8px; min-width: 232px; padding: 8px; display: grid; gap: 2px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity var(--t), transform var(--t) var(--spring), visibility var(--t); }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd.shut .dd-menu { opacity: 0 !important; visibility: hidden !important; }
.dd:hover .nav-link i, .dd.open .nav-link i { transform: rotate(180deg); }
.dd-menu a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: calc(var(--radius-sm) - 4px); text-decoration: none; transition: background var(--t), opacity var(--t); }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--surface); }
.dd-menu i { font-size: 1.25rem; color: var(--accent-text); }
.dd-menu b { display: block; font: 600 .9375rem/1.2 var(--f-body); }
.dd-menu small { display: block; font-size: .8125rem; color: var(--mute); }
.nav-join .short { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--btn2-bg); color: var(--btn2-fg); font-size: 1.4rem; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1px var(--btn2-line); transition: transform var(--t) var(--spring); }
.menu-btn:active { transform: scale(.92); }
.mnav { pointer-events: auto; position: absolute; top: 14px; right: 16px; left: 16px; padding: 76px 12px 12px; display: grid; gap: 2px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: -1; clip-path: circle(0 at calc(100% - 30px) 34px); transition: clip-path .45s var(--ease); }
html.menu-open .mnav { clip-path: circle(150% at calc(100% - 30px) 34px); }
.mnav a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px; border-radius: var(--radius-sm); text-decoration: none; }
.mnav a:hover, .mnav a:focus-visible { background: var(--surface); }
.mnav b { font: var(--w-h) 1.5rem/1.1 var(--f-head); letter-spacing: var(--tr-h); }
.mnav small { color: var(--mute); font-size: .875rem; }
/* light: a narrow centered bar, always (Deta) */
html .nav-bar { max-width: 720px; background: var(--nav-bg); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; box-shadow: var(--shadow); }
html[data-route="invite"] .nav-links, html[data-route="invite"] .menu-btn, html[data-route="invite"] .nav-join { display: none; }
html[data-route="invite"] .nav-bar { justify-content: center; padding-left: 8px; max-width: 200px; }

/* ---------- Compare switch (preview only) ---------- */
.compare { position: fixed; z-index: 80; left: 14px; bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
html[data-clean] .compare { display: none; }
.compare .seg { display: flex; padding: 3px; border-radius: 999px; background: #18181B; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); }
.compare button { min-width: 56px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #E4E4E7; font: 600 12px/1 system-ui, sans-serif; cursor: pointer; }
.compare button[aria-pressed="true"] { background: #FAFAFA; color: #09090B; }

/* ---------- Becane: hover one, the rest step back. Text drops to the dimmest shade that still passes AA; pictures drop to 40%. ---------- */
[data-dim] > * { transition: color var(--t), opacity var(--t); }
@media (hover: hover) {
  [data-dim]:hover > :not(:hover), [data-dim]:hover > :not(:hover) :is(h2, h3, p, b, a) { color: var(--dim-text); }
  [data-dim]:hover > :not(:hover) :is(.tviz, .coin, .kit-art, .n, img) { opacity: .4; }
}
:is(.tviz, .coin, .kit-art, .n) { transition: opacity var(--t); }

/* ---------- Hero ---------- */
.home { overflow-x: clip; }
.hero { position: relative; min-height: max(100svh, 700px); display: grid; align-items: center; justify-items: center; padding: calc(var(--head-h) + 40px) 20px 250px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; text-align: center; max-width: 100%; }
.fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.ann { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px; border-radius: 999px; font: 500 var(--fs-small)/1 var(--f-body); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: live calc(2.2s * var(--m)) ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tagline { display: flex; align-items: center; justify-content: center; gap: .3em; white-space: nowrap; margin: 0; font-size: var(--fs-hero); line-height: 1; }
.tl { position: relative; }
.globe-slot { position: relative; flex: none; width: var(--globe); height: var(--globe); }
.globe { position: absolute; left: 50%; top: 50%; width: calc(var(--globe) * 1.5); height: calc(var(--globe) * 1.5); transform: translate(-50%, -50%); touch-action: pan-y; cursor: grab; }
.globe:active { cursor: grabbing; }
.hero .sub { max-width: 30em; font-size: var(--fs-lead); text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.hero { --globe: clamp(180px, 17vw, 240px); }

/* light hero: sky, clouds, floating cards */
html .hero { --fs-hero: clamp(2.5rem, 4.2vw, 3.75rem); color: #fff; background: #1560CC; }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0A49AE 0%, #1259C6 34%, #1B69D2 calc(100% - 270px), #4C97E8 calc(100% - 180px), #A9D3F7 calc(100% - 80px), #FFFFFF 100%); }
.clouds { position: absolute; left: -6%; right: -6%; bottom: 0; height: 44%; transform: translate3d(0, calc(var(--sy, 0) * var(--k) * 1px), 0); will-change: transform; background-repeat: no-repeat;
  background-image:
    radial-gradient(closest-side, #fff 72%, transparent), radial-gradient(closest-side, #fff 72%, transparent), radial-gradient(closest-side, #fff 72%, transparent),
    radial-gradient(closest-side, #fff 72%, transparent), radial-gradient(closest-side, #fff 72%, transparent), radial-gradient(closest-side, #fff 72%, transparent),
    radial-gradient(closest-side, #fff 72%, transparent), radial-gradient(closest-side, #fff 72%, transparent), linear-gradient(transparent 62%, #fff 82%); }
.clouds.far { --k: -.10; opacity: .55; filter: blur(10px); height: min(48%, 330px);
  background-size: 34% 60%, 26% 46%, 30% 56%, 24% 44%, 30% 58%, 22% 40%, 28% 50%, 26% 46%, 100% 100%;
  background-position: -4% 62%, 14% 46%, 34% 66%, 52% 44%, 66% 62%, 84% 48%, 100% 70%, 44% 80%, 0 0; }
.clouds.mid { --k: -.22; opacity: .85; filter: blur(7px); height: min(38%, 270px);
  background-size: 30% 66%, 24% 50%, 28% 62%, 22% 52%, 30% 70%, 26% 54%, 24% 60%, 30% 58%, 100% 100%;
  background-position: 4% 70%, 24% 52%, 42% 76%, 60% 54%, 76% 74%, 94% 56%, -8% 96%, 56% 96%, 0 0; }
.clouds.near { --k: -.38; filter: blur(5px); height: min(27%, 200px);
  background-size: 36% 90%, 28% 70%, 32% 84%, 26% 68%, 34% 92%, 30% 74%, 30% 80%, 26% 70%, 100% 100%;
  background-position: -6% 88%, 16% 66%, 36% 96%, 56% 70%, 74% 94%, 96% 72%, 30% 120%, 84% 120%, 0 0; }
html .ann { border: 1px solid rgba(255, 255, 255, .75); color: #fff; background: rgba(8, 60, 150, .28); }
html .hero .btn:not(.primary) { border-color: transparent; }
.floaties { position: absolute; inset: 0; --mx: 0; --my: 0; }
.fl { position: absolute; left: var(--x); top: var(--y); margin: 0; color: #121A2A; rotate: var(--r); translate: calc(var(--mx) * var(--d) * -22px) calc(var(--my) * var(--d) * -16px); transition: translate .9s var(--ease); animation: bob calc(7s * var(--m) * (.8 + var(--d) * .5)) ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-7px) rotate(-1deg); } to { transform: translateY(8px) rotate(1.2deg); } }
.fl-photo { width: 172px; padding: 7px 7px 10px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.fl-photo.sm { width: 148px; }
.fl-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.fl-photo figcaption { display: grid; padding: 8px 4px 0; font-size: .8125rem; line-height: 1.25; text-align: left; }
.fl-photo span { color: #556079; }
.fl-toast { white-space: nowrap; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #1B1B1F; color: #F4F4F5; border-radius: 999px; font-size: .875rem; box-shadow: var(--shadow); }
.fl-tags { display: grid; gap: 6px; justify-items: start; }
.fl-tags span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font: 600 .8125rem/1 var(--f-body); box-shadow: var(--shadow); }
.fl-tags span:nth-child(2) { margin-left: 18px; }
.fl-coin { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #7A4A00; background: radial-gradient(circle at 32% 28%, #FFF3C4, #F2C24B 46%, #C8891B 78%, #9A6410); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35), inset 0 -6px 10px rgba(120, 70, 0, .45), var(--shadow); }
.fl-num { display: grid; justify-items: center; gap: 6px; padding: 12px 14px; background: #1B1B1F; color: #F4F4F5; border-radius: 16px; box-shadow: var(--shadow); }
.fl-num small { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #C4C4CC; }
.fl-num b { display: flex; gap: 4px; }
.fl-num i { font: 600 1.75rem/1 var(--f-body); font-style: normal; width: 34px; height: 46px; display: grid; place-items: center; border-radius: 7px; background: linear-gradient(#34343A 49%, #111 49% 52%, #2A2A2F 52%); }
.av { width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font: 700 .75rem/1 var(--f-body); color: #111; background: #FFD08A; box-shadow: 0 0 0 2px #1B1B1F; }
.av.a1 { background: #FFB4A2; } .av.a2 { background: #A8E0C1; } .av.a3 { background: #B9C8FF; } .av.a4 { background: #FFE08A; }
@media (max-width: 1180px) { .floaties { display: none; } }

/* ?alt=1 is the safer hero: the small line sits under the buttons (as in the wireframe) and nothing floats */
.hero-fine { font-size: var(--fs-small); }
html[data-alt] .floaties { display: none; }


@media (max-width: 899px) {
  .tagline { flex-direction: column; gap: 12px; white-space: normal; margin: 0; }
  .hero { --globe: 196px; }
  html .hero { --fs-hero: clamp(2.4rem, 11vw, 3.25rem); }
}

/* ---------- Sections ---------- */
.sec { position: relative; padding: clamp(72px, 9vw, 128px) 20px; text-align: center; }
.sec-head { max-width: 780px; margin: 0 auto clamp(32px, 5vw, 56px); display: grid; gap: 14px; justify-items: center; }
.sec-sub { max-width: 34em; color: var(--mute); font-size: var(--fs-lead); text-wrap: balance; }
.sec-link { margin-top: 28px; }

/* 1. How it works: the phone stays put while the steps scroll */
.works { padding-bottom: 0; }
.how-track { height: 400svh; min-height: 2600px; }
.how-pin { position: sticky; top: 0; height: 100svh; min-height: 600px; max-width: 1200px; margin: 0 auto; padding: calc(var(--head-h) + 8px) 0 24px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 22px; }
.stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; container-type: size; border-radius: var(--radius); transform: scale(var(--grow, 1)); transform-origin: 50% 60%; }
html .stage { border-radius: 40px; background:
  radial-gradient(60% 50% at 18% 108%, #7DBB5C 0 62%, transparent 63%), radial-gradient(70% 46% at 78% 112%, #94CB6E 0 62%, transparent 63%), radial-gradient(90% 40% at 46% 118%, #6DAE52 0 62%, transparent 63%),
  radial-gradient(22% 14% at 16% 26%, rgba(255, 255, 255, .9), transparent 70%), radial-gradient(26% 12% at 82% 18%, rgba(255, 255, 255, .8), transparent 70%),
  linear-gradient(180deg, #3D8FE6 0%, #8DC4F5 52%, #D8EEFC 82%); }
.stage-bar { display: none; }
.stage-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3F3F46; }

.stage .phone { font-size: calc(min(88cqh, 620px) / 62); }
.ftags { position: absolute; left: 50%; top: 50%; font-size: calc(min(88cqh, 620px) / 62); pointer-events: none; }
.ftags span { position: absolute; left: 0; top: 0; padding: .55em 1.1em; border-radius: 99em; font: 600 max(1.4em, 12px)/1 var(--f-body); white-space: nowrap; background: #fff; color: #121A2A; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: transform calc(.7s * var(--m)) var(--spring), opacity .4s; }
.stage[data-step="2"] .ftags span { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--tr)); }
.ftags span:nth-child(2) { transition-delay: .06s; } .ftags span:nth-child(3) { transition-delay: .12s; } .ftags span:nth-child(4) { transition-delay: .18s; } .ftags span:nth-child(5) { transition-delay: .24s; } .ftags span:nth-child(6) { transition-delay: .3s; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 20px; text-align: left; }
html:not([data-clean]) .how-pin { padding-bottom: 68px; }
.steps li { position: relative; padding-top: 14px; color: var(--dim-text); transition: color var(--t); }
.steps li::before, .steps li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--line); border-radius: 2px; }
.steps li::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.steps li.on::after, .steps li.done::after { transform: none; }
.steps li.on { color: var(--text); }
.steps .n { display: block; font: 600 .75rem/1 var(--f-body); letter-spacing: .08em; margin-bottom: 8px; }
.steps p { font-size: var(--fs-small); line-height: 1.45; }
.steps b { color: inherit; }
@media (max-width: 760px) {
  .how-pin { padding-bottom: 14px; gap: 14px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 4px; min-height: 104px; align-content: start; }
  .steps li { padding-top: 10px; }
  .steps li p { position: absolute; left: 0; top: 34px; width: calc(100vw - 48px); opacity: 0; pointer-events: none; transition: opacity var(--t); font-size: .9375rem; }
  .steps li:nth-child(2) p { left: calc(-100% - 6px); } .steps li:nth-child(3) p { left: calc(-200% - 12px); } .steps li:nth-child(4) p { left: calc(-300% - 18px); }
  .steps li.on p { opacity: 1; }
  html .stage { border-radius: 28px; }
  .ftags { display: none; }
}

/* 2. Safe by design + shared three-up cards */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.trio.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tcard { display: grid; gap: 10px; justify-items: center; align-content: start; padding: 14px; border-radius: var(--radius); text-align: center; }
.tcard :is(h2, h3) { font: 600 var(--fs-h3)/1.3 var(--f-body); letter-spacing: 0; }
html .tcard :is(h2, h3) { font: 400 1.6rem/1.15 var(--f-head); }
.tcard p { color: var(--mute); font-size: var(--fs-body); max-width: 22em; }
.tcard .n { font: 600 .8125rem/1 var(--f-body); letter-spacing: .08em; color: var(--accent-text); }
.trio.numbered .tcard { padding-top: 24px; }
html .trio.numbered .tcard { background: var(--surface); padding: 28px 22px 30px; }
.tviz { position: relative; width: 100%; height: 210px; margin-bottom: 10px; border-radius: calc(var(--radius) - 6px); display: grid; place-items: center; align-content: center; gap: 12px; overflow: hidden; }
html .tviz { background: linear-gradient(180deg, #CFE6FB, #EAF4FD); }
html .tcard:nth-child(2) .tviz { background: linear-gradient(180deg, #D7F0D2, #EFF8EA); }
html .tcard:nth-child(3) .tviz { background: linear-gradient(180deg, #FFE1D6, #FFF2EC); }
.tip { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: #1B1B1F; color: #F4F4F5; text-align: left; font-size: .875rem; line-height: 1.35; box-shadow: var(--shadow); }
.tip span { color: #C4C4CC; }
.tip .av { color: #111; }
.tip-row { display: flex; gap: 6px; margin-top: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; font: 600 .8125rem/1 var(--f-body); background: #2E2E33; color: #F4F4F5; }
.pchip.w { background: #FAFAFA; color: #111; }
.tviz > .pchip { background: #1B1B1F; }
.pinmap { position: relative; display: flex; align-items: flex-end; padding: 0 6px; }
.pinmap .av { width: 46px; height: 46px; font-size: .9375rem; margin-left: -10px; box-shadow: 0 0 0 3px var(--bg); animation: hop calc(2.4s * var(--m)) var(--spring) infinite; }
.pinmap .av:nth-child(2) { animation-delay: .15s; } .pinmap .av:nth-child(3) { animation-delay: .3s; } .pinmap .av:nth-child(4) { animation-delay: .45s; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-7px); } }
.pinmap i { font-size: 2.4rem; color: var(--brand); margin-left: 6px; }
.v-feed { grid-template-columns: repeat(2, 56px); justify-content: center; gap: 12px; }
.no { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--bg); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.no::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2.5px; border-radius: 2px; background: var(--brand); transform: rotate(-45deg) scaleX(var(--cut, 1)); transition: transform .4s var(--ease); }
.tcard:hover .no { --cut: 1.15; }

/* 3. Keep them */
.keep-stage { position: relative; max-width: 1000px; margin: 0 auto; padding: 44px 16px 0; display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 4vw, 48px); border-radius: var(--radius); overflow: hidden; }
html .keep-stage { border-radius: 40px; background: radial-gradient(80% 60% at 50% 120%, #FFC9B0 0%, transparent 70%), linear-gradient(180deg, #FFE9C9 0%, #FFD8CC 60%, #FBC6CB 100%); }
.keep-stage .phone { font-size: clamp(5.2px, 1.42vw, 9.2px); margin-bottom: -12em; }
.squad { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); justify-items: center; text-align: center; padding: 16px 22px; white-space: nowrap; z-index: 3; animation: floaty calc(5s * var(--m)) ease-in-out infinite alternate; }
@keyframes floaty { from { translate: 0 -4px; } to { translate: 0 5px; } }
.squad b { font-size: 1rem; }
.avs { display: flex; margin-bottom: 6px; } .avs .av { width: 38px; height: 38px; margin-left: -8px; font-size: .6875rem; } .avs .av:first-child { margin-left: 0; }
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; max-width: 1100px; margin: 48px auto 0; text-align: center; }
.quad li { display: grid; gap: 6px; align-content: start; }
.quad p { color: var(--mute); }
html .quad h3 { font: 400 1.5rem/1.15 var(--f-head); }
.badges { position: relative; max-width: 880px; margin: 56px auto 0; }
.badges-gl { position: absolute; left: 0; top: -34px; width: 100%; height: calc(100% + 44px); pointer-events: none; opacity: 0; transition: opacity .4s; }
.badges.gl .badges-gl { opacity: 1; }
.badges.gl .coin { visibility: hidden; }
.badge-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.badge-row li { display: grid; justify-items: center; gap: 14px; padding: 6px 0 4px; cursor: default; }
.badge-row b { font: 600 var(--fs-small)/1.2 var(--f-body); }
.coin { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 3rem; animation: spin calc(9s * var(--m)) linear infinite; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .3), inset 0 -8px 14px rgba(0, 0, 0, .3); }
.badge-row li:hover .coin { animation-play-state: paused; }
@keyframes spin { to { transform: rotateY(360deg); } }
.c-time { background: radial-gradient(circle at 32% 28%, #FFF3C4, #F2C24B 46%, #C8891B 78%, #9A6410); color: #6B4300; }
.c-streak { background: radial-gradient(circle at 32% 28%, #FFD2C4, #F0704F 46%, #C8452B 78%, #8E2A16); color: #5E1708; }
.c-listen { background: radial-gradient(circle at 32% 28%, #E8F1FF, #9DB7E8 46%, #6283C4 78%, #3E5C99); color: #1E3566; }
.c-squad { background: radial-gradient(circle at 32% 28%, #E6FBEA, #8FD6A0 46%, #4FA868 78%, #2E7A45); color: #134A24; }

/* 4. Mission + waitlist */
.matrix { max-width: 860px; margin: 0 auto 36px; }
.matrix canvas { display: block; width: 100%; height: auto; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 1000px; margin: 0 auto; }
.waitlist { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); text-align: left; }
.wl-h { font: var(--w-h) 1.75rem/1.12 var(--f-head); letter-spacing: var(--tr-h); }
.wl-row { display: flex; gap: 8px; }
.wl-row input, .field input, .field select, .field textarea { min-height: 48px; width: 100%; min-width: 0; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--edge); background: var(--bg); color: var(--text); font: 400 1rem/1.4 var(--f-body); }
.field textarea { padding: 12px 16px; resize: vertical; }
.wl-row input::placeholder, .field input::placeholder { color: var(--dim-text); }
.wl-row input:focus-visible, .field :is(input, select, textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.wl-row .btn { flex: none; }
.err { color: var(--coral-deep); font-weight: 600; font-size: var(--fs-small); }
.invite-side { display: grid; justify-items: center; gap: 18px; perspective: 1100px; }
.invite-note { font-size: var(--fs-small); color: var(--mute); }
.invite-note .link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--text); font-weight: 600; }
.ps { margin-top: clamp(56px, 8vw, 96px); font: var(--w-h) clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--f-head); letter-spacing: var(--tr-h); }

/* 3D invite card: tilts toward the cursor, flips to the QR on press */
.icard { width: min(340px, 78vw); aspect-ratio: 1.586; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1100px; border-radius: 22px; }
.icard-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg + var(--flip, 0deg))) translateZ(0); transition: transform calc(.7s * var(--m)) var(--spring); }
.icard.tilting .icard-in { transition-duration: .12s; transition-timing-function: linear; }
.icard[aria-pressed="true"] { --flip: 180deg; }
.face { position: absolute; inset: 0; display: grid; border-radius: 22px; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; padding: 20px 22px; text-align: left; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -1px 0 rgba(0, 0, 0, .25) inset, var(--shadow); }
.front { align-content: space-between; color: #fff; background: radial-gradient(80% 90% at 0% 0%, #EC7253 0%, transparent 46%), radial-gradient(120% 120% at 100% 100%, #8E2A16 0%, transparent 60%), #C4432A; }
.front::before { content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ic-top, .ic-bot { position: relative; display: flex; justify-content: space-between; align-items: center; }
.ic-top img { height: 20px; width: auto; background: #fff; -webkit-mask: url("img/readi-wordmark.png") center / contain no-repeat; mask: url("img/readi-wordmark.png") center / contain no-repeat; object-fit: none; object-position: -999px 0; }
.icard small { font: 600 .6875rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.ic-big { position: relative; font: 400 2.2rem/1 "Gambarino", Georgia, serif; letter-spacing: -.01em; text-shadow: 0 1px 0 rgba(120, 30, 10, .5); }
.sheen { position: absolute; inset: -40%; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .5) 48%, rgba(255, 240, 200, .25) 53%, transparent 62%); transform: translate(calc(var(--ry, 0) * 2.2%), calc(var(--rx, 0) * -2.2%)); mix-blend-mode: soft-light; }
.back { transform: rotateY(180deg); place-items: center; align-content: center; gap: 8px; background: #FBFAF7; color: #1B1B1F; text-align: center; }
.qr { width: 46%; aspect-ratio: 1; display: block; }
.qr svg { width: 100%; height: 100%; display: block; }

/* ---------- App phones (MD Vinyl look). Everything is in em: 1em = 10px at full size. ---------- */
.phone { position: relative; flex: none; width: 30em; height: 62em; font-size: 10px; border-radius: 5em; background: #050506; color: #F4F4F5; font-family: var(--f-body); line-height: 1.3; text-align: left; box-shadow: inset 0 0 0 .2em #3A3A40, inset 0 0 0 .55em #0B0B0D, 0 3em 5em -2.4em rgba(0, 0, 0, .65); user-select: none; -webkit-user-select: none; }
.screen { position: absolute; inset: .9em; border-radius: 4.2em; overflow: hidden; background: #151517; isolation: isolate; }
.screen::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: .16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 18em; }
.island { position: absolute; z-index: 8; left: 50%; top: 1.1em; width: 9.4em; height: 2.7em; margin-left: -4.7em; border-radius: 2em; background: #000; }
.status { position: absolute; z-index: 7; left: 0; right: 0; top: 0; height: 4.8em; padding: 1.5em 2.6em 0 3em; display: flex; justify-content: space-between; font-weight: 600; }
.status b { font-size: 1.35em; } .status span { font-size: 1.3em; display: flex; gap: .3em; align-items: center; }
.view { position: absolute; inset: 0; padding: 5.4em 1.4em 8.6em; display: flex; flex-direction: column; gap: 1.1em; opacity: 0; transform: translateY(1.4em) scale(.985); pointer-events: none; transition: opacity .35s, transform calc(.5s * var(--m)) var(--spring); }
.view.on { opacity: 1; transform: none; pointer-events: auto; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: .8em; }
.p-seg { display: flex; padding: .35em; border-radius: 3em; background: #232327; }
.p-seg span { padding: .75em 1.3em; border-radius: 3em; font-size: 1.25em; font-weight: 600; color: #B4B4BC; }
.p-seg .on { background: #FAFAFA; color: #111; }
.p-round { width: 3.6em; height: 3.6em; border-radius: 50%; background: #232327; display: grid; place-items: center; }
.p-round i { font-size: 1.7em; }
.p-rounds { display: flex; gap: .6em; }
.p-chips { display: flex; gap: .6em; }
.p-chips span { padding: .65em 1.15em; border-radius: 3em; font-size: 1.15em; font-weight: 600; background: #232327; color: #C4C4CC; }
.p-chips .on { background: #3A3A40; color: #fff; }
.p-title { font-size: 2.4em; font-weight: 600; letter-spacing: -.02em; }
.p-cards { display: grid; gap: 1.1em; }
.ecard { border-radius: 2.2em; background: #212125; overflow: hidden; }
.ecard img { width: 100%; height: 13.4em; object-fit: cover; }
.ecard .eb { display: grid; gap: .25em; padding: 1.2em 1.4em 1.4em; }
.ecard h4 { margin: 0; font-size: 1.85em; font-weight: 600; letter-spacing: -.01em; }
.ecard .at { font-size: 1.25em; color: #C4C4CC; }
.ecard .erow { display: flex; align-items: center; justify-content: space-between; margin-top: .7em; }
.ecard .going { display: flex; align-items: center; gap: .7em; font-size: 1.15em; color: #C4C4CC; }
.pav { display: inline-flex; }
.pav i { width: 2.5em; height: 2.5em; margin-left: -.7em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .95em; color: #111; box-shadow: 0 0 0 .18em #212125; }
.pav i:first-child { margin-left: 0; }
.pav i:nth-child(1) { background: #FFB4A2; } .pav i:nth-child(2) { background: #A8E0C1; } .pav i:nth-child(3) { background: #B9C8FF; } .pav .more { background: #3A3A40; color: #fff; }
.pjoin { padding: .8em 1.5em; border-radius: 3em; background: #FAFAFA; color: #111; font-size: 1.25em; font-weight: 700; }
.v-explore::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13em; background: linear-gradient(transparent, #151517 62%); pointer-events: none; }
/* bottom row: [avatar] [capsule with 3 icons] [hold-to-JOIN] */
.dock { position: absolute; z-index: 6; left: 1.6em; right: 1.6em; bottom: 1.8em; display: flex; align-items: center; justify-content: space-between; }
.dock .me { width: 5em; height: 5em; border-radius: 50%; background: linear-gradient(140deg, #FFD08A, #F08A5D); display: grid; place-items: center; font-weight: 700; color: #111; box-shadow: 0 0 0 .3em #232327; }
.dock .me b { font-size: 1.5em; }
.capsule { display: flex; gap: .3em; padding: .45em; border-radius: 4em; background: rgba(35, 35, 39, .92); box-shadow: 0 1em 2em -1em #000; }
.capsule span { width: 4.1em; height: 4.1em; border-radius: 50%; display: grid; place-items: center; color: #C4C4CC; }
.capsule i { font-size: 2em; }
.capsule .on { background: #FAFAFA; color: #111; }
.hold { position: relative; width: 6em; height: 6em; padding: 0; border: 0; border-radius: 50%; background: #2B2B30; color: #fff; display: grid; place-items: center; cursor: pointer; font-family: inherit; touch-action: none; transition: transform var(--t) var(--spring), background var(--t); -webkit-tap-highlight-color: transparent; }
.hold b { font-size: 1.25em; letter-spacing: .06em; }
.hold::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 48px); height: max(100%, 48px); transform: translate(-50%, -50%); border-radius: 50%; }  /* a 44px+ touch area even when the phone is drawn small */
.hold svg { position: absolute; inset: -.5em; width: 7em; height: 7em; transform: rotate(-90deg); overflow: visible; }
.hold circle { fill: none; stroke-width: 5; }
.hold .trk { stroke: rgba(255, 255, 255, .16); }
.hold .bar { stroke: #FF7A5C; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: calc(289 * (1 - var(--p, 0))); }
.hold.holding { transform: scale(.93); background: #3A2520; }
.hold.done { background: #FF7A5C; color: #111; animation: pop .5s var(--spring); }
.hold.cue { animation: cue calc(1.6s * var(--m)) ease-in-out infinite; }
@keyframes cue { 50% { box-shadow: 0 0 0 .9em rgba(255, 122, 92, .22); } }
@keyframes pop { 40% { transform: scale(1.16); } }
.hold:focus-visible { outline: .3em solid #FF7A5C; outline-offset: .5em; border-radius: 50%; }
/* dark tooltip card with a white pill button */
.ptip { position: absolute; z-index: 5; left: 1.6em; right: 1.6em; bottom: 9.6em; padding: 1.8em; border-radius: 2.4em; background: #2A2A2F; display: grid; gap: .6em; box-shadow: 0 2em 3em -1.6em #000; transform-origin: 85% 110%; }
.ptip::after { content: ""; position: absolute; right: 3em; bottom: -.8em; width: 1.8em; height: 1.8em; background: #2A2A2F; transform: rotate(45deg); border-radius: .3em; }
.ptip h4 { margin: 0; font-size: 1.9em; font-weight: 600; letter-spacing: -.01em; }
.ptip p { font-size: 1.3em; color: #C4C4CC; }
.ptip .row { display: flex; gap: .7em; margin-top: .7em; }
.ptip .row span { padding: .85em 1.5em; border-radius: 3em; font-size: 1.25em; font-weight: 700; background: #3A3A40; }
.ptip .row .w { background: #FAFAFA; color: #111; }
.view:not(.on) .ptip { transform: scale(.7) translateY(2em); opacity: 0; }
.view .ptip { transition: transform calc(.45s * var(--m)) var(--spring) .12s, opacity .25s .12s; }
.veil { position: absolute; inset: 0; background: rgba(10, 10, 12, .62); }
.finding { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 1.2em; background: rgba(12, 12, 14, .9); opacity: 0; pointer-events: none; transition: opacity .3s; }
.finding.on { opacity: 1; }
.finding b { font-size: 1.6em; }
.finding .dots { display: flex; gap: .7em; }
.finding .dots i { width: 3.2em; height: 3.2em; border-radius: 50%; background: #FFB4A2; animation: gather calc(1.1s * var(--m)) var(--spring) infinite alternate; }
.finding .dots i:nth-child(2) { background: #A8E0C1; animation-delay: .12s; } .finding .dots i:nth-child(3) { background: #B9C8FF; animation-delay: .24s; } .finding .dots i:nth-child(4) { background: #FFE08A; animation-delay: .36s; }
@keyframes gather { from { transform: translateY(.9em) scale(.8); opacity: .5; } to { transform: none; opacity: 1; } }
/* lobby chat */
.lobby-h { display: flex; align-items: center; gap: 1em; }
.lobby-h div { display: grid; }
.lobby-h b { font-size: 1.7em; } .lobby-h small { font-size: 1.15em; color: #C4C4CC; }
.banner-in { display: flex; align-items: center; justify-content: space-between; padding: 1em 1.4em; border-radius: 1.6em; background: #23272B; font-size: 1.2em; }
.banner-in b { font-variant-numeric: tabular-nums; color: #FF9B80; }
.msgs { display: grid; gap: .9em; align-content: start; }
.msg { display: flex; gap: .8em; align-items: flex-end; opacity: 0; transform: translateY(.8em); transition: opacity .3s, transform calc(.45s * var(--m)) var(--spring); }
.view.on .msg { opacity: 1; transform: none; }
.view.on .msg:nth-child(2) { transition-delay: .25s; } .view.on .msg:nth-child(3) { transition-delay: .5s; } .view.on .msg:nth-child(4) { transition-delay: .75s; } .view.on .msg:nth-child(5) { transition-delay: 1.1s; }
.msg i { width: 2.8em; height: 2.8em; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #111; }
.msg p { max-width: 17em; padding: .8em 1.1em; border-radius: 1.5em 1.5em 1.5em .4em; background: #26262A; font-size: 1.25em; }
.msg small { display: block; font-size: .82em; color: #C4C4CC; margin-bottom: .1em; }
.msg.sys { justify-content: center; } .msg.sys p { background: none; color: #C4C4CC; font-size: 1.1em; padding: 0; }
.msg.match { justify-content: center; } .msg.match p { max-width: none; border-radius: 3em; background: #FAFAFA; color: #111; font-weight: 700; display: flex; gap: .5em; align-items: center; }
.composer { position: absolute; left: 1.4em; right: 9em; bottom: 2.3em; z-index: 6; display: flex; align-items: center; padding: 0 1.5em; height: 5em; border-radius: 3em; background: #232327; color: #B4B4BC; font-size: 1em; }
.composer span { font-size: 1.3em; }
/* group number: flip counters */
.center-col { align-items: center; text-align: center; justify-content: center; gap: 1.5em; }
.center-col small { font-size: 1.2em; letter-spacing: .1em; text-transform: uppercase; color: #C4C4CC; }
.flip { display: flex; gap: .8em; perspective: 60em; }
.flip span { position: relative; width: 8.6em; height: 11.6em; border-radius: 1.5em; background: linear-gradient(#34343A 0 49.2%, #0C0C0E 49.2% 50.8%, #29292E 50.8%); display: grid; place-items: center; box-shadow: 0 1.6em 2.4em -1.4em #000, inset 0 .1em 0 rgba(255, 255, 255, .12); }
.flip b { font-size: 8em; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.view.on .flip span { animation: flipin calc(.7s * var(--m)) var(--spring) both; }
.view.on .flip span:nth-child(2) { animation-delay: .14s; }
@keyframes flipin { from { transform: rotateX(-88deg); opacity: 0; } }
.center-col p { font-size: 1.3em; color: #C4C4CC; max-width: 17em; }
.pbtn { padding: 1.05em 2.4em; border-radius: 3em; background: #FAFAFA; color: #111; font-size: 1.4em; font-weight: 700; }
/* friends */
.frow { display: grid; grid-template-columns: auto 1fr; gap: .2em 1.1em; align-items: center; padding: 1.1em 1.2em; border-radius: 1.8em; background: #212125; }
.frow i { grid-row: span 2; width: 4em; height: 4em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 1.1em; color: #111; }
.frow b { font-size: 1.45em; display: flex; justify-content: space-between; align-items: baseline; }
.frow b small { font-size: .72em; font-weight: 500; color: #C4C4CC; }
.hbar { height: .7em; border-radius: 1em; background: #36363C; overflow: hidden; }
.hbar u { display: block; height: 100%; width: calc(var(--h) * 1%); border-radius: 1em; background: var(--c, #7EDB9A); transform-origin: left; transform: scaleX(0); transition: transform calc(1s * var(--m)) var(--ease) .2s; }
.phone.seen .hbar u { transform: none; }
.flist { display: grid; gap: .8em; }
/* scan */
.finder { position: relative; flex: 1; border-radius: 2.4em; background: radial-gradient(circle at 50% 40%, #3A3A40, #1A1A1D); display: grid; place-items: center; overflow: hidden; }
.finder .box { position: relative; width: 15em; height: 15em; border-radius: 1.6em; background: #FAFAFA; padding: 1.3em; }
.finder .box svg { width: 100%; height: 100%; display: block; }
.finder .corner { position: absolute; inset: 2.6em 3em; pointer-events: none; }
.finder .corner::before, .finder .corner::after { content: ""; position: absolute; left: 0; right: 0; height: 3em; border: .35em solid #fff; }
.finder .corner::before { top: 0; border-bottom: 0; border-radius: 1.4em 1.4em 0 0; clip-path: polygon(0 0, 22% 0, 22% 100%, 78% 100%, 78% 0, 100% 0, 100% 100%, 0 100%); }
.finder .corner::after { bottom: 0; border-top: 0; border-radius: 0 0 1.4em 1.4em; clip-path: polygon(0 0, 22% 0, 22% 100%, 78% 100%, 78% 0, 100% 0, 100% 100%, 0 100%); }
.finder .beam { position: absolute; left: 12%; right: 12%; top: 20%; height: .3em; border-radius: 1em; background: #FF7A5C; box-shadow: 0 0 1.6em .4em rgba(255, 122, 92, .6); animation: beam calc(2.6s * var(--m)) ease-in-out infinite alternate; }
@keyframes beam { to { top: 78%; } }
.counted { display: flex; align-items: center; gap: 1em; padding: 1.1em 1.3em; border-radius: 1.8em; background: #FAFAFA; color: #111; }
.counted i { width: 3.4em; height: 3.4em; border-radius: 50%; background: #FFB4A2; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 1.1em; }
.counted b { font-size: 1.4em; display: grid; } .counted small { font-size: .8em; font-weight: 500; color: #44444B; }

/* ---------- Inner pages ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: calc(var(--head-h) + clamp(40px, 7vw, 88px)) 20px clamp(72px, 9vw, 120px); }
.page.narrow { max-width: 720px; }
.page.wide { max-width: 1360px; }
.page-hero { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.page.center .page-hero, .page.wide .page-hero { justify-items: center; text-align: center; }
.page-hero h1 { max-width: 16em; }
.lead { max-width: 34em; font-size: var(--fs-lead); color: var(--mute); text-wrap: balance; }
.band { margin-top: clamp(72px, 9vw, 120px); display: grid; gap: 14px; justify-items: center; text-align: center; }
.band .quad, .band .trio { margin-top: 28px; width: 100%; }
.rules2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; width: 100%; max-width: 960px; }
.rules2 blockquote { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); text-align: left; }
.rules2 small { font: 600 .8125rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.rules2 p { font: var(--w-h) clamp(1.4rem, 2.4vw, 1.9rem)/1.18 var(--f-head); letter-spacing: var(--tr-h); }
.nos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin-top: 16px; }
.nos li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-btn); border: 1px solid var(--line); font-weight: 500; }
.nos li::before { content: ""; width: 12px; height: 2.5px; border-radius: 2px; background: var(--brand); transform: rotate(-45deg); }
.founder { grid-template-columns: 220px minmax(0, 520px); justify-content: center; align-items: center; gap: clamp(24px, 4vw, 48px); text-align: left; justify-items: start; }
.portrait { width: 220px; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--edge); display: grid; place-items: center; font-size: 3rem; color: var(--dim-text); }
.story p { font: var(--w-h) clamp(1.3rem, 2.2vw, 1.7rem)/1.25 var(--f-head); letter-spacing: var(--tr-h); margin: 10px 0 14px; }
.by { color: var(--mute); font-size: var(--fs-small); }
.cta-band { padding: clamp(40px, 6vw, 72px) 20px; border-radius: var(--radius); background: var(--surface); }
.cta-band .btn { margin-top: 10px; }
/* long text stays left-aligned inside a centered column */
.doc { display: grid; grid-template-columns: 220px minmax(0, 640px); justify-content: center; gap: clamp(24px, 5vw, 72px); text-align: left; }
.toc { position: sticky; top: calc(var(--head-h) + 20px); align-self: start; display: grid; gap: 2px; }
.toc .eyebrow { margin-bottom: 8px; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; margin-left: -12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--mute); font-size: var(--fs-small); transition: background var(--t), color var(--t); }
.toc a:hover { background: var(--surface); color: var(--text); }
.doc-body { display: grid; gap: 40px; font-size: 1.0625rem; line-height: 1.6; }
.doc-body section { display: grid; gap: 10px; scroll-margin-top: calc(var(--head-h) + 20px); }
.doc-body section:focus { outline: none; }
.doc-body h2, .callout h2, .plain h2, .card-form h2, .done-card h2 { font: var(--w-h) 1.6rem/1.15 var(--f-head); letter-spacing: var(--tr-h); }
.biglist { display: grid; gap: 12px; counter-reset: r; }
.biglist li { counter-increment: r; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); font-weight: 500; }
.biglist li::before { content: counter(r); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-weight: 700; font-size: .9375rem; }
.callout { display: grid; gap: 10px; justify-items: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); text-align: left; }
.page.narrow > .callout { justify-items: center; text-align: center; margin-top: 40px; }
.callout .btn { margin-top: 8px; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks li::before { content: "✓"; font-weight: 700; color: var(--accent-text); }
.ph-note { color: var(--mute); padding: 12px 14px; border: 1px dashed var(--edge); border-radius: var(--radius-sm); font-size: var(--fs-small); }
.plain { display: grid; gap: 10px; margin-top: 48px; text-align: left; }
.plain.left { max-width: 720px; margin-left: auto; margin-right: auto; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 40px; justify-content: start; margin-top: 12px; }
.facts dt { font-size: var(--fs-small); color: var(--mute); }
.facts dd { font-weight: 600; }
.letter { display: grid; gap: 18px; max-width: 600px; margin: 0 auto 48px; text-align: left; font-size: 1.125rem; line-height: 1.65; }
html .letter { padding: clamp(24px, 4vw, 44px); background: #FFFDF8; border-radius: 6px; box-shadow: var(--shadow); rotate: -.4deg; }
.sign { font: 400 2rem/1 var(--f-head); }
.card-form { display: grid; gap: 16px; max-width: 520px; width: 100%; margin: 0 auto; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); text-align: left; }
.form-sub { color: var(--mute); margin-top: -10px; }
.field { display: grid; gap: 6px; }
.field > span { font: 600 var(--fs-small)/1.3 var(--f-body); letter-spacing: 0; text-transform: none; }
.card-form .btn { justify-self: start; }
.done-card { display: grid; gap: 8px; justify-items: center; max-width: 520px; width: 100%; margin: 0 auto; padding: 36px 24px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.done-card i { font-size: 2.6rem; color: var(--accent-text); animation: pop .5s var(--spring); }
.done-card:focus { outline: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.two .card-form, .two .done-card { max-width: none; }
.faq { display: grid; gap: 8px; text-align: left; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 12px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--f-body); color: var(--mute); transition: transform var(--t) var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin: 0 20px 20px; }
.faq-none { color: var(--mute); padding: 20px; }
.page-hero .search { width: min(520px, 100%); margin-top: 8px; text-align: left; }
.tabs { display: inline-flex; padding: 4px; border-radius: var(--radius-btn); background: var(--surface-2); gap: 2px; }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-btn); text-decoration: none; font: 500 var(--fs-small)/1 var(--f-body); color: var(--mute); }
.tabs a[aria-current] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kit .tcard { background: var(--surface); padding: 16px 16px 22px; }
.kit-art { width: 100%; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 8px); background: var(--bg); display: grid; place-items: center; font-size: 2.6rem; color: var(--dim-text); margin-bottom: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.logo-art { color: var(--logo); }
.logo-art img { width: 58%; height: auto; aspect-ratio: 1462 / 368; background: currentColor; -webkit-mask: url("img/readi-wordmark.png") center / contain no-repeat; mask: url("img/readi-wordmark.png") center / contain no-repeat; object-fit: none; object-position: -999px 0; }
.thanks { display: grid; justify-items: center; gap: 18px; text-align: center; }
.tickc { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: var(--accent); color: var(--on-accent); animation: pop .6s var(--spring); }
.lost { min-height: 72svh; display: grid; align-content: center; justify-items: center; gap: 16px; text-align: center; }
.lost h1 { font-size: clamp(3rem, 9vw, 6rem); }
.invite-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(56px, 8vw, 96px); text-align: left; }
.invite-visual { display: grid; justify-items: center; perspective: 1100px; }
.invite-copy { display: grid; gap: 16px; justify-items: start; }
.invite-copy .cta-row { justify-content: flex-start; }
.invite-visual .ecard { width: min(360px, 100%); color: #F4F4F5; font-size: 10px; box-shadow: var(--shadow); font-family: var(--f-body); }
.app-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 56px; padding: 28px 20px; border-radius: var(--radius); background: var(--surface); text-align: center; }

/* ---------- Footer ---------- */
.foot { display: grid; justify-items: center; gap: 18px; padding: 56px 20px 96px; border-top: 1px solid var(--line); text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; max-width: 760px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-size: var(--fs-small); }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .fine a { display: inline-block; padding: 10px 2px; }
html[data-route="invite"] .foot nav { display: none; }

/* ---------- Carried-over components: theme fixes ---------- */
.tv-wrap { max-width: 1360px; margin: 0 auto; padding: calc(var(--head-h) + 48px) var(--g) 80px; }
dialog.sheet { box-shadow: var(--shadow); }
dialog.sheet::backdrop { background: rgba(6, 10, 20, .6); }
dialog.sheet h3 { font: var(--w-h) 1.5rem/1.15 var(--f-head); letter-spacing: var(--tr-h); }
.toast { z-index: 120; top: 84px; font-size: var(--fs-small); border-radius: var(--radius-btn); }
.how li > b { color: var(--on-accent); border: 0; }
.tv-thumb .len { background: #09090B; color: #FAFAFA; }
.search { border-radius: var(--radius-btn); min-height: 52px; }

/* ---------- Small screens ---------- */
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-join { margin-left: auto; }
  .nav-join .long { display: none; } .nav-join .short { display: inline; }
  .menu-btn { display: grid; }
  .nav-bar { padding-left: 16px; }
  .trio, .trio.four, .kit { grid-template-columns: 1fr; max-width: 460px; }
  .trio.four, .kit { grid-template-columns: 1fr 1fr; max-width: none; }
  .quad { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .join-grid, .rules2, .two, .invite-hero { grid-template-columns: 1fr; }
  .invite-hero { text-align: center; } .invite-copy { justify-items: center; } .invite-copy .cta-row { justify-content: center; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: 1fr 1fr; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); }
  .toc .eyebrow { grid-column: 1 / -1; } .toc a { margin-left: 0; }
  .founder { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .facts { grid-template-columns: 1fr; }
  .keep-stage { padding-top: 28px; }
  .keep-stage .phone { font-size: clamp(4.6px, 1.36vw, 9px); }
  .squad { bottom: 14px; padding: 12px 16px; }
}
@media (max-width: 520px) {
  .wl-row { flex-direction: column; }
  .badge-row { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .trio.four, .kit { grid-template-columns: 1fr; }
  .compare button { min-width: 48px; padding: 0 10px; }
  .cta-row { width: 100%; } .hero .cta-row .btn { flex: 1 1 auto; }
}

/* ---------- Reduce Motion: slower and softer, never off ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --m: 3; --t: .5s; --spring: cubic-bezier(.3, 1, .5, 1); }
  .fl { transition-duration: 2.4s; }
  .nav-bar, .mnav { transition-duration: 1s; }
  .hold.cue { animation-duration: 4s; }
}

/* ================= Added 2026-11-13: waitlist, Join → Apply, leaderboard, ASCII globe ================= */
.globe { cursor: crosshair; }
.fl-off { visibility: hidden; }

/* One shared Join button. Its label comes from what this browser saved (set before first paint, so no flash). */
[data-join] > .j-no, [data-join] > .j-yes, [data-join] > .j-done { display: none; }
html:not([data-joined]) [data-join] > .j-no { display: inline-flex; }
html[data-joined]:not([data-applied]) [data-join] > .j-yes { display: inline-flex; }
html[data-applied] [data-join] > .j-done { display: inline-flex; }
html[data-applied] .btn.primary[data-join] { background: var(--btn2-bg); border-color: var(--btn2-line); color: var(--btn2-fg); box-shadow: none; }

/* the waitlist form (home card, the popover/sheet, and /apply) */
.waitlist .wl-form, .wl-joined { display: grid; gap: 16px; }
.waitlist.bare { padding: 0; background: none; border: 0; }
.wl-more { display: grid; gap: 18px; }
.wl-more.in { animation: wlin .26s var(--spring) both; }
@keyframes wlin { from { opacity: 0; transform: translateY(-6px); } }
.field > label { font: 600 var(--fs-small)/1.3 var(--f-body); }
.combo { position: relative; }
.city-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); max-height: 312px; overflow: auto; margin: 0; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.city-list li, .city-card { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.city-list li[aria-selected="true"], .city-list li:hover { background: var(--surface-2); }
.ct-img { flex: none; width: 40px; height: 40px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(140deg, #CFE6FB, #9CC8F2); color: #0B3F96; font-size: 1.05rem; }
.ct-img img { width: 100%; height: 100%; object-fit: cover; }
.ct-txt { display: grid; min-width: 0; line-height: 1.3; text-align: left; }
.ct-txt b { font-weight: 600; font-size: .9375rem; }
.ct-txt small, .ct-line { font-size: .8125rem; color: var(--mute); }
.city-card { cursor: default; margin-top: 8px; padding: 10px; background: var(--surface-2); }
.city-card .ct-big { flex: none; width: 76px; height: 56px; object-fit: cover; border-radius: 9px; }
.interests { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.interests legend { padding: 0; margin-bottom: 10px; font: 600 var(--fs-small)/1.3 var(--f-body); }
.interests legend small { font-weight: 400; color: var(--mute); margin-left: 6px; }
.ichips { display: flex; flex-wrap: wrap; gap: 8px; }
.ichip { position: relative; }
.ichip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ichip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--edge); background: var(--bg); font: 500 .875rem/1 var(--f-body); transition: background var(--t), color var(--t), border-color var(--t); }
.ichip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.ichip input:checked + span::before { content: "✓"; margin-right: 6px; }
.ichip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.wl-ok { display: flex; align-items: center; gap: 10px; font: var(--w-h) 1.5rem/1.15 var(--f-head); }
.wl-ok i { color: var(--accent-text); font-size: 1.6rem; flex: none; }
.wl-next { color: var(--mute); }
.wl-joined .btn { justify-self: start; }
.wl-joined:focus { outline: none; }

/* the popover (desktop) and bottom sheet (phone) */
.wl-dialog { position: fixed; margin: 0; padding: 20px; width: min(440px, calc(100vw - 24px)); max-height: calc(100svh - 24px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); box-shadow: var(--shadow); text-align: left; }
.wl-dialog.pop { left: auto; bottom: auto; }
.wl-dialog.sheet-b { left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: none; border-radius: var(--radius) var(--radius) 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); animation: sheetup calc(.32s * var(--m)) var(--ease); }
.wl-dialog.pop[open] { animation: popin calc(.22s * var(--m)) var(--spring); transform-origin: top right; }
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes sheetup { from { transform: translateY(100%); } }
.wl-dialog::backdrop { background: rgba(6, 10, 20, .18); }
.wl-dialog.sheet-b::backdrop { background: rgba(6, 10, 20, .45); }
.wl-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wl-dialog-head h2 { font: var(--w-h) 1.5rem/1.1 var(--f-head); }
.wl-dialog .wl-row { flex-direction: column; }
.wl-dialog .wl-row .btn { width: 100%; }
html.wl-open .lb-tab { display: none; }

/* /apply */
.apply-note { margin-bottom: 16px; color: var(--mute); }
.apply-form { max-width: 600px; }
.apply-from { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; justify-content: start; margin: 0 0 4px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); }
.apply-from dt { font-size: .8125rem; color: var(--mute); }
.apply-from dd { font-weight: 600; font-size: .9375rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-field { gap: 8px; }
.photo-field > span { font: 600 var(--fs-small)/1.3 var(--f-body); }
.photo-pick { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.photo-pick input:focus-visible ~ .btn { outline: 3px solid var(--focus); outline-offset: 3px; }
.photo-prev { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--bg); border: 1px dashed var(--edge); font-size: 1.5rem; color: var(--mute); }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.check a { text-underline-offset: 3px; }

/* city leaderboard: tab + panel */
.lb-tab { position: fixed; z-index: 70; right: -8px; top: 45%; width: 48px; height: 52px; padding: 0 8px 0 0; border: 0; border-radius: 14px 0 0 14px; background: var(--bg); color: var(--text); box-shadow: 0 2px 10px rgba(13, 44, 92, .22); display: grid; place-items: center; font-size: 1.4rem; cursor: pointer; transition: right calc(.2s * var(--m)) var(--ease); }
.lb-tab:hover, .lb-tab:focus-visible { right: 0; }
.lb-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: #121A2A; color: #fff; font: 500 .8125rem/1 var(--f-body); opacity: 0; pointer-events: none; transition: opacity var(--t); }
.lb-tab:hover .lb-tip, .lb-tab:focus-visible .lb-tip { opacity: 1; }
.lb-panel { position: fixed; inset: 12px 12px 12px auto; margin: 0; width: 340px; max-width: calc(100vw - 24px); height: auto; max-height: none; padding: 0; border: 0; border-radius: 24px; background: var(--bg); color: var(--text); box-shadow: 0 8px 16px rgba(0, 0, 0, .1), 0 32px 64px rgba(0, 0, 0, .2); }
.lb-panel[open] { display: flex; animation: lbin calc(.32s * var(--m)) var(--ease); }
@keyframes lbin { from { transform: translateX(calc(100% + 28px)); } }
.lb-panel::backdrop { background: rgba(6, 10, 20, .2); }
html.lb-open, html.wl-open.sheet-lock { overflow: hidden; }
.lb-in { display: flex; flex-direction: column; width: 100%; padding: 20px; overflow: auto; text-align: left; }
.lb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lb-head h2 { font: var(--w-h) 1.6rem/1.1 var(--f-head); }
.lb-sample { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #FFF4D6; color: #6B4A00; font-size: .8125rem; }
.lb-body { flex: 1; margin-top: 12px; }
.lb-intro { font-size: .875rem; color: var(--mute); margin-bottom: 12px; }
.lb-list { display: grid; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.lb-row.you { border-color: var(--text); }
.lb-row .rk { font-size: .8125rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.lb-row .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 500; font-size: .9375rem; }
.lb-row .bd { font-size: .6875rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--edge); color: var(--mute); }
.lb-row .bd.dk { background: var(--text); border-color: var(--text); color: var(--bg); }
.lb-row .bar { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.lb-row .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; animation: barin calc(.6s * var(--m)) var(--ease) both; }
@keyframes barin { from { transform: scaleX(0); } }
.lb-row .ct { font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-small { margin-top: 10px; font-size: .8125rem; color: var(--mute); }
.lb-all { margin-top: 8px; min-height: 44px; font-size: .875rem; color: var(--mute); }
.lb-foot { padding-top: 14px; text-align: center; }
.lb-foot .btn { width: 100%; }
.lb-sk { display: grid; gap: 8px; }
.lb-sk i { display: block; height: 46px; border-radius: 14px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk calc(1.2s * var(--m)) linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.lb-msg { margin-bottom: 12px; }

/* preview switches */
.compare .seg-reset { min-height: 38px; padding: 0 12px; border-radius: 999px; background: #18181B; border: 1px solid rgba(255, 255, 255, .22); color: #E4E4E7; }

@media (max-width: 767px) {
  .lb-tab { top: auto; bottom: 16px; right: 16px; width: 48px; height: 48px; padding: 0; border-radius: 50%; }
  .lb-tab:hover, .lb-tab:focus-visible { right: 16px; }
  .lb-tip { display: none; }
  .lb-panel { inset: 8px; width: auto; max-width: none; }
  .apply-from { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .compare { bottom: 76px; }
}
.wl-finish { justify-self: start; }
.wl-dialog .wl-finish { justify-self: stretch; }
.lb-panel { overflow: hidden; }
.lb-in { flex: 1; min-height: 0; }
