/* Reachiko — design. A phone-first video app: dark, warm, glassy, with springy motion.
   Two levels of effects (app.js sets one on <html>):
   .fx-full  blur behind floating panels, gently moving light, extra glow;
   .fx-lite  the same layout with solid panels and no endless animations — for older or slower devices, for people who
             ask for less motion, and whenever the feed is measured stuttering. Everything works the same in both. */
:root {
  --ink: #09070f;          /* the ground */
  --ink-1: #110e1b;        /* screens */
  --ink-2: #181425;        /* cards, sheets */
  --ink-3: #241f36;        /* raised controls */
  --line: rgba(240, 236, 255, 0.09);
  --line-strong: rgba(240, 236, 255, 0.2);
  --paper: #f7f4ff;        /* text */
  --mist: #a59fc2;         /* secondary text */
  --sun: #ffb45e;          /* reach: warm, the colour of being seen */
  --sun-2: #ff7a59;
  --tide: #5fe3cf;         /* rings and passing on */
  --rose: #ff5c8a;         /* likes */
  --violet: #9b8cff;
  --glass: rgba(22, 18, 36, 0.52);
  --glass-solid: rgba(24, 20, 38, 0.94);
  --shadow: rgba(4, 2, 10, 0.6);
  --grad-warm: linear-gradient(135deg, #ffc46b 0%, #ff8a5b 55%, #ff5c8a 120%);
  --spring: cubic-bezier(.22, 1.2, .36, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
[hidden] { display: none !important; }
html, body { height: 100%; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: 16px !important; } /* below 16px, iPhones zoom the whole page when a field is tapped */
.feed, .rail, .nav, .welcome { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 15px; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--tide); outline-offset: 2px; }
input, textarea, select { font: inherit; color: var(--paper); }

/* Glass: blurred panels where the device can do it, solid ones otherwise. */
.glass { background: var(--glass-solid); border: 1px solid var(--line); }
.fx-full .glass { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
/* Never blur over a playing video: phones (even fast ones) redraw the blur every frame and the video stutters.
   On the feed, panels are simply translucent; the blur is for sheets, menus and the other tabs. */
.fx-full .on-feed .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(14, 11, 24, .58); }

/* ---------- page: on wide screens the phone stands beside a short explanation ---------- */
.stage { height: 100%; display: grid; grid-template-columns: minmax(0, 420px) auto; gap: 72px; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; position: relative; isolation: isolate; }
.stage::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background:
  radial-gradient(40% 50% at 18% 30%, rgba(255, 138, 91, .16), transparent 70%),
  radial-gradient(35% 45% at 80% 70%, rgba(95, 227, 207, .12), transparent 70%),
  radial-gradient(30% 40% at 60% 10%, rgba(155, 140, 255, .14), transparent 70%); }
.intro { display: grid; gap: 22px; min-width: 0; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1; display: inline-flex; align-items: center; gap: 0.3em; }
.wordmark svg { width: 1.05em; height: 1.05em; flex: none; }
.intro .wordmark { font-size: 48px; }
.intro .tagline { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.intro .tagline em { font-style: normal; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: var(--mist); line-height: 1.45; }
.rules li b { color: var(--paper); font-weight: 650; }
.rules .dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line); color: var(--sun); font-weight: 800; font-size: 14px; }
.note { color: var(--mist); font-size: 13px; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font-size: 13px; color: var(--mist); }
.legal-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--mist); text-underline-offset: .2em; }
.intro .legal-links { font-size: 12px; gap: 0 12px; margin-top: -10px; }
.intro .legal-links a { min-height: 24px; }
.phone { position: relative; height: min(880px, calc(100vh - 48px)); aspect-ratio: 9 / 19.5; border-radius: 52px; padding: 10px; box-sizing: border-box; background: linear-gradient(160deg, #2a2540, #0c0a14 40%, #1a1628); box-shadow: 0 40px 100px -20px var(--shadow), 0 0 0 1px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.12); }
.phone > .app { border-radius: 42px; }

/* ---------- app shell ---------- */
.app { position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px; overflow: hidden; overflow: clip; background: #000; user-select: none; -webkit-user-select: none; touch-action: none; container: app / size; }
.feed { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; will-change: transform; transition: transform .42s var(--ease); overflow: hidden; background: #000; }
.media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
.media.cover { object-fit: cover; }
.backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center; filter: brightness(.32); }
.fx-full .backdrop { top: -40px; right: -40px; bottom: -40px; left: -40px; filter: blur(28px) brightness(.45) saturate(1.3); }
.fx-full .slide.current .media.photo { animation: kenburns 16s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.07); } }
.shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 52%, rgba(0,0,0,.72) 100%); }
.spinner { position: absolute; left: 50%; top: 45%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--paper); animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s .25s; pointer-events: none; z-index: 3; }
.buffering .spinner, .spinner.on { opacity: 1; }
.spinner.block { position: relative; left: auto; top: auto; margin: 32px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 8px; pointer-events: none; }
.topbar > * { pointer-events: auto; flex-shrink: 0; } /* nothing gets squeezed: app.js drops words instead (fitTop) */
.topbar .wordmark { font-size: 22px; filter: drop-shadow(0 1px 8px rgba(0,0,0,.45)); }
.topbar .spacer { flex: 1; }
.reach-pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px 0 5px; border-radius: 19px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 6px 20px -8px var(--shadow); }
.reach-pill .reach-logo svg { width: 28px; height: 28px; display: block; }
.reach-pill b { font-family: var(--display); font-size: 17px; }
.reach-pill small { font-weight: 600; color: var(--mist); font-size: 12px; }
.reach-pill.bump { animation: bump .55s var(--spring); }
.fx-full .reach-pill.bump { animation: bump .55s var(--spring), glow .9s ease; }
@keyframes bump { 40% { transform: scale(1.14); } }
@keyframes glow { 30% { box-shadow: 0 0 0 4px rgba(255,180,94,.35), 0 0 30px rgba(255,180,94,.5); } }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--ink-3); flex: none; transition: transform .15s; }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 19px; height: 19px; }
.topbar .icon-btn.glass { background: var(--glass-solid); }
.fx-full .topbar .icon-btn.glass { background: var(--glass); }

.progress { position: absolute; left: 14px; right: 14px; top: calc(62px + env(safe-area-inset-top, 0px)); height: 3px; border-radius: 2px; background: rgba(255,255,255,.2); z-index: 4; overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; background: var(--paper); border-radius: 2px; transform-origin: left; transform: scaleX(0); }
.progress.done i { background: var(--grad-warm); }
.why { position: absolute; left: 14px; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 4; display: inline-flex; align-items: center; gap: 7px; box-sizing: border-box; max-width: calc(100% - 28px); padding: 7px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 650; line-height: 1.2; cursor: pointer; text-align: left; color: var(--paper); transition: padding .45s var(--ease), background .45s, gap .45s; }
.why .swatch { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--tide); box-shadow: 0 0 10px currentColor; color: var(--tide); }
.why[data-why="match"] .swatch { background: var(--sun); color: var(--sun); }
.why[data-why="follow"] .swatch { background: var(--rose); color: var(--rose); }
.why[data-why="turn"] .swatch, .why[data-why="new"] .swatch { background: var(--violet); color: var(--violet); }
.why span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; transition: opacity .35s, max-width .45s var(--ease); max-width: 40em; }
/* After a moment, the reason steps aside: only its coloured dot stays. A tap brings it back, in full. */
.why.quiet { padding: 7px; gap: 0; border-color: transparent; }
.why.quiet span { opacity: 0; max-width: 0; }
.why.open span { -webkit-line-clamp: 3; }
@container app (max-height: 720px) { .why { max-width: calc(100% - 92px); } }

.rail { position: absolute; right: 8px; bottom: calc(104px + env(safe-area-inset-bottom, 0px)); z-index: 4; display: grid; gap: 14px; justify-items: center; }
.rail button { display: grid; justify-items: center; gap: 3px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; max-width: 64px; transition: transform .15s; }
.rail button:active { transform: scale(.9); }
.rail button > span:last-child { max-width: 64px; text-align: center; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.rail .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 10, 20, .42); }
.rail .ico svg { width: 25px; height: 25px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.rail .liked .ico { color: var(--rose); }
.rail .liked .ico svg { fill: var(--rose); }
.rail .passed .ico { color: var(--tide); }
.rail .more .ico { width: 40px; height: 40px; }
.rail .more { min-width: 44px; min-height: 44px; align-content: center; }
.rail .pop .ico { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.3); } }
.rail .rail-av { margin-bottom: 4px; }
.avatar { --h: 28; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #170f22; position: relative; flex: none; background: linear-gradient(135deg, hsl(var(--h) 90% 78%), hsl(calc(var(--h) + 50) 85% 62%)); }
.rail .avatar { border: 2px solid var(--paper); box-shadow: 0 4px 14px -4px var(--shadow); }
.avatar .plus { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); width: 21px; height: 21px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-size: 15px; line-height: 1; border: 2px solid #000; font-weight: 800; }
.avatar .plus.on { background: var(--tide); color: #062a24; }
.avatar.rk { background: #120f1f; border: 1px solid var(--line-strong); }
.avatar.rk svg { width: 62%; height: 62%; }
.rings-ico { width: 30px; height: 30px; }
.rail .rings-ico path { opacity: .28; transition: opacity .3s; }
.rail .rings-ico[data-ring="1"] path:nth-of-type(-n+2),
.rail .rings-ico[data-ring="2"] path:nth-of-type(-n+2),
.rail .rings-ico[data-ring="3"] path { opacity: 1; }
.rail .rings-ico[data-ring="2"] path:nth-of-type(n+3) { opacity: .65; }
.flag { font-size: 16px; line-height: 1; }

.meta { position: absolute; left: 14px; right: 76px; bottom: calc(98px + env(safe-area-inset-bottom, 0px)); z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.meta .who { display: flex; gap: 4px 8px; align-items: baseline; flex-wrap: wrap; }
.who-name { font-weight: 800; font-size: 16px; text-align: left; }
.meta .who small { font-weight: 500; color: rgba(247,244,255,.75); font-size: 12.5px; }
.meta .cap { line-height: 1.35; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.meta .desc { line-height: 1.35; font-size: 13.5px; color: rgba(247,244,255,.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.meta .tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; font-weight: 700; color: var(--tide); }

/* ---------- bottom navigation: a floating bar ---------- */
.nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.nav-pill { pointer-events: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; height: 64px; border-radius: 24px; padding: 0 4px; box-shadow: 0 10px 30px -10px var(--shadow); }
.nav-pill > button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; height: 100%; font-size: 11px; font-weight: 700; color: var(--mist); min-width: 0; white-space: nowrap; transition: color .2s; } /* equal columns: every label must fit its fifth */
.nav-pill > button .ico { position: relative; display: grid; place-items: center; width: 44px; height: 28px; border-radius: 14px; transition: background .3s var(--ease), transform .3s var(--spring); }
.nav-pill > button .ico svg { width: 23px; height: 23px; }
.nav-pill > button.on { color: var(--paper); }
.nav-pill > button.on .ico { background: rgba(255,255,255,.1); }
.nav-pill > button:active .ico { transform: scale(.88); }
.nav-pill .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.post-btn { position: relative; width: 54px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--ink); margin-inline: auto; transition: transform .2s var(--spring); }
.nav-pill > button.post:active .post-btn { transform: scale(.9); }
.post-btn > svg:not(.gate) { width: 22px; height: 22px; stroke-width: 2.6; }
.post-btn.ready { background: var(--grad-warm); color: #2a1408; box-shadow: 0 6px 20px -6px rgba(255,138,91,.8); }
.fx-full .post-btn.ready { animation: ready 2.2s ease-out infinite; }
@keyframes ready { 0% { box-shadow: 0 0 0 0 rgba(255,180,94,.55), 0 6px 20px -6px rgba(255,138,91,.8); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255,180,94,0), 0 6px 20px -6px rgba(255,138,91,.8); } }
.post-btn .gate-wrap { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.post-btn svg.gate { position: absolute; top: -5px; right: -5px; bottom: -5px; left: -5px; width: calc(100% + 10px); height: calc(100% + 10px); }
.post-btn svg.gate .g { transition: stroke-dasharray .6s var(--ease); }
.post-btn.ready svg.gate { opacity: 0; }
.post-btn .gate-count { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: var(--mist); white-space: nowrap; }
.badge { position: absolute; top: -4px; right: 2px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--rose); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding-inline: 4px; box-sizing: border-box; box-shadow: 0 0 0 2px var(--ink-2); animation: pop .4s var(--spring); }

/* ---------- toast, bursts ---------- */
.toast { position: absolute; left: 50%; top: calc(66px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -12px) scale(.96); z-index: 30; width: max-content; max-width: calc(100% - 40px); box-sizing: border-box; padding: 10px 18px; border-radius: 22px; background: var(--glass-solid); border: 1px solid var(--line-strong); box-shadow: 0 12px 30px -8px var(--shadow); font-size: 14px; font-weight: 650; line-height: 1.35; opacity: 0; transition: opacity .2s, transform .35s var(--spring); pointer-events: none; text-align: center; }
.fx-full .toast { background: rgba(26, 22, 42, .78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.sheet-open .toast { top: calc(16px + env(safe-area-inset-top, 0px)); }
.toast b { color: var(--sun); }
.plusone { position: absolute; left: 0; top: 0; z-index: 31; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--sun); pointer-events: none; text-shadow: 0 2px 12px rgba(255,138,91,.6); }
.heart { position: absolute; z-index: 6; width: 120px; height: 120px; margin: -60px 0 0 -60px; color: var(--rose); pointer-events: none; animation: heart .95s var(--ease) forwards; filter: drop-shadow(0 6px 24px rgba(255,92,138,.6)); }
@keyframes heart { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 25% { transform: scale(1.15) rotate(6deg); opacity: 1; } 60% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: scale(1.3) translateY(-40px); opacity: 0; } }
.ripple { position: absolute; z-index: 6; border: 2px solid var(--tide); border-radius: 50%; pointer-events: none; animation: ripple 1s ease-out forwards; }
@keyframes ripple { from { width: 0; height: 0; opacity: 1; } to { width: 240px; height: 240px; margin: -120px 0 0 -120px; opacity: 0; } }
.pause-ico { position: absolute; left: 50%; top: 45%; z-index: 6; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 10, 20, .5); pointer-events: none; }
.pause-ico.pop { animation: pop .4s var(--spring); }
.pause-ico svg { width: 32px; height: 32px; margin-left: 4px; }

/* ---------- the end of the feed, loading ---------- */
.aurora { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(60% 45% at 20% 25%, rgba(255,138,91,.35), transparent 70%), radial-gradient(55% 45% at 85% 70%, rgba(95,227,207,.22), transparent 70%), radial-gradient(50% 40% at 50% 100%, rgba(155,140,255,.3), transparent 70%), var(--ink); }
.fx-full .aurora { background-size: 140% 140%; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { 0% { background-position: 0% 0%, 100% 100%, 50% 100%; } 100% { background-position: 30% 20%, 70% 80%, 40% 70%; } }
.end { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 0 28px 96px; text-align: center; z-index: 3; }
.end-ico { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--grad-warm); color: #2a1408; box-shadow: 0 14px 40px -12px rgba(255,138,91,.8); }
.end-ico svg { width: 30px; height: 30px; stroke-width: 2.4; }
.end h2 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; margin: 4px 0 0; letter-spacing: -0.025em; text-wrap: balance; }
.end p { margin: 0; color: rgba(247,244,255,.85); line-height: 1.5; max-width: 32ch; text-wrap: pretty; }
.end .stats { display: flex; gap: 26px; margin-block: 6px; }
.end .stats div { display: grid; gap: 2px; }
.end .stats b { font-family: var(--display); font-size: 32px; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.end .stats span { font-size: 12px; color: var(--mist); }
.end-actions { display: grid; gap: 10px; width: min(100%, 320px); }
.end-note { font-size: 13px; color: var(--mist) !important; }
.btn.primary.muted { filter: saturate(.4) brightness(.8); }
.launch .count b.live { font-size: 36px; font-size: clamp(30px, 8cqmin, 44px); }
.loading-slide { background: var(--ink-1); }
.skeleton { position: absolute; left: 14px; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; width: 60%; }
.skeleton i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--ink-3), #322b4a, var(--ink-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:first-child { width: 45%; height: 18px; }
.skeleton i:last-child { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 22px; box-sizing: border-box; border-radius: 24px; font-weight: 750; background: var(--ink-3); border: 1px solid var(--line); line-height: 1.2; text-align: center; transition: transform .15s var(--ease), filter .15s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad-warm); color: #2a1408; border: 0; box-shadow: 0 10px 26px -12px rgba(255,138,91,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.ghost { background: transparent; }
.btn.warm { background: rgba(255,180,94,.12); border-color: rgba(255,180,94,.4); color: var(--sun); }
.btn.small { min-height: 38px; padding: 4px 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.icon { width: 48px; padding: 0; flex: none; }
.btn.icon svg { width: 20px; height: 20px; }
.btn .i svg { width: 18px; height: 18px; display: block; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
a.btn { color: var(--paper); text-decoration: none; }
.btn.danger { color: var(--rose); border-color: rgba(255, 92, 138, .4); background: rgba(255, 92, 138, .06); }
.account { display: grid; gap: 10px; }
.account .level { overflow-wrap: anywhere; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-actions .btn { min-height: 42px; padding: 4px 16px; font-size: 14px; }
.code-input { font-size: 26px !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- sheets ---------- */
.scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 20; background: rgba(5,3,12,.6); opacity: 0; transition: opacity .25s; }
.scrim.show { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 21; max-height: min(88%, calc(100% - var(--kb, 0px) - 12px)); display: flex; flex-direction: column; background: var(--ink-2); border-radius: 28px 28px 0 0; border-top: 1px solid var(--line-strong); box-shadow: 0 -20px 60px -20px var(--shadow); transform: translateY(105%); transition: transform .42s var(--spring); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet.show { transform: none; }
.sheet.tall { height: min(88%, calc(100% - var(--kb, 0px) - 12px)); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 2px; flex: none; touch-action: none; }
.sheet header { display: flex; align-items: center; gap: 10px; padding: 8px 18px 10px; flex: none; touch-action: none; }
.sheet header h3 { margin: 0; font-family: var(--display); font-weight: 750; font-size: 20px; flex: 1; letter-spacing: -0.01em; min-width: 0; overflow-wrap: anywhere; }
.sheet .body { overflow-y: auto; padding: 4px 18px 20px; display: grid; gap: 14px; line-height: 1.5; color: var(--mist); flex: 1 1 auto; align-content: start; touch-action: pan-y; overscroll-behavior: contain; }
.sheet .body > * { min-width: 0; }
.sheet .body p { margin: 0; }
.sheet .body b, .sheet .body strong { color: var(--paper); }
.sheet .foot:empty { display: none; }
.sheet-cta { padding: 10px 18px 14px; border-top: 1px solid var(--line); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--mist); letter-spacing: .03em; }
.field input, .field select, .field textarea, .report-card textarea { min-height: 48px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--ink-1); padding: 10px 14px; color: var(--paper); font: inherit; box-sizing: border-box; width: 100%; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255,180,94,.15); outline: none; }
.field textarea, .report-card textarea { resize: none; }
.error { color: var(--rose); font-size: 13px; }
.fine { font-size: 12.5px; }
.fine a { color: var(--paper); text-underline-offset: .2em; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--paper); font-size: 14px; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sun); flex: none; }
.join-hero { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--paper); font-size: 16px; }
.join-logo svg { width: 56px; height: 56px; display: block; }
.fx-full .join-logo svg { animation: spinslow 18s linear infinite; }
@keyframes spinslow { to { transform: rotate(360deg); } }
.providers { display: grid; gap: 10px; }
.provider { min-height: 50px; box-sizing: border-box; padding: 6px 18px; border-radius: 25px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 750; line-height: 1.2; text-align: center; background: #fff; color: #1f1f1f; transition: transform .15s; }
.provider:active { transform: scale(.97); }
.provider svg { width: 20px; height: 20px; }
.provider.apple { background: #000; color: #fff; border: 1px solid var(--line-strong); }
.provider.facebook { background: #1877f2; color: #fff; }
.provider.email { background: var(--ink-3); color: var(--paper); border: 1px solid var(--line); }
.provider.passkey { background: var(--grad-warm); color: #2a1408; box-shadow: 0 10px 26px -12px rgba(255,138,91,.9); }
.provider.passkey svg { stroke-width: 2.4; }
.google-slot { display: flex; justify-content: center; align-items: center; min-height: 50px; max-width: 100%; overflow: hidden; } /* Google's own button lands here */
.about-place { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink-1); border: 1px solid var(--line-strong); color: var(--paper); }
.about-place button { color: var(--tide); font-weight: 700; min-height: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--ink-1); color: var(--mist); font-weight: 650; font-size: 13.5px; display: inline-flex; align-items: center; transition: all .2s var(--ease); }
.chip.on { border-color: var(--sun); color: var(--sun); background: rgba(255,180,94,.1); }
span.chip { cursor: default; }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1 1 0; width: 0; min-width: 0; height: 44px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--ink-1); padding: 0 16px; }
.add-row button { height: 44px; padding: 0 18px; border-radius: 22px; background: var(--ink-3); border: 1px solid var(--line); font-weight: 750; }
.step-of { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); }
.hobby-picker { display: grid; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; }
.tile { display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 80px; padding: 8px 4px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--ink-1); color: var(--paper); font-weight: 650; font-size: 13px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; hyphens: auto; transition: transform .2s var(--spring), border-color .2s, background .2s; }
.tile:active { transform: scale(.94); }
.tile i { font-style: normal; font-size: 27px; line-height: 1; transition: transform .3s var(--spring); }
.tile.on { border-color: var(--sun); background: rgba(255,180,94,.12); color: var(--sun); }
.tile.on i { transform: scale(1.15); }
.picked-own { display: flex; flex-wrap: wrap; gap: 8px; }
.menu { display: grid; gap: 4px; }
.menu-item { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px; border-radius: 16px; font-weight: 650; color: var(--paper); text-align: left; transition: background .15s; }
.menu-item:hover, .menu-item:active { background: var(--ink-3); }
.menu-item .ico svg { width: 22px; height: 22px; display: block; }
.menu-item.danger { color: var(--rose); }
.reasons { display: grid; gap: 6px; }
.reason { min-height: 46px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-1); text-align: left; color: var(--paper); font-weight: 600; line-height: 1.3; }
.reason.on { border-color: var(--sun); background: rgba(255,180,94,.1); color: var(--sun); }
.comments { display: grid; gap: 16px; }
.comment { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: start; }
.comment .avatar { width: 36px; height: 36px; font-size: 13px; }
.comment-who { border-radius: 50%; }
.comment-top { display: flex; gap: 8px; align-items: baseline; }
.comment-top small { color: var(--mist); font-size: 12px; }
.comment-name { font-weight: 750; font-size: 13.5px; color: var(--paper); text-align: left; }
.comment-text { display: block; color: var(--paper); font-size: 14.5px; overflow-wrap: anywhere; white-space: pre-line; }
.comment-more { width: 32px; height: 32px; display: grid; place-items: center; color: var(--mist); border-radius: 50%; }
.comment-more svg { width: 18px; height: 18px; }
.empty-line { text-align: center; padding: 24px 0; }
.row-input { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); flex: none; align-items: center; }
.row-input input { flex: 1; height: 46px; border-radius: 23px; border: 1px solid var(--line-strong); background: var(--ink-1); padding: 0 18px; min-width: 0; }
.row-input .send { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-warm); color: #2a1408; display: grid; place-items: center; flex: none; transition: transform .15s var(--spring); }
.row-input .send:active { transform: scale(.88); }
.row-input .send svg { width: 20px; height: 20px; stroke-width: 2.4; }
.steps { display: grid; gap: 12px; }
.steps div { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.steps i { width: 32px; height: 32px; border-radius: 11px; background: var(--ink-3); border: 1px solid var(--line); color: var(--sun); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.reach-hero { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 0; }
.reach-hero svg { width: 54px; height: 54px; display: block; }
.reach-hero b { font-family: var(--display); font-size: 54px; line-height: 1; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-variant-numeric: tabular-nums; }

/* rings diagram */
.rings-map { position: relative; width: 230px; height: 230px; margin: 4px auto; }
.rings-map .ring { --s: 100px; position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; border: 2px dashed var(--line-strong); display: grid; justify-items: center; }
.rings-map .ring.lit { border: 2px solid var(--tide); background: rgba(95,227,207,.06); box-shadow: 0 0 24px -6px rgba(95,227,207,.5); }
.rings-map .ring span { font-size: 11px; font-weight: 700; margin-top: 6px; color: var(--mist); }
.rings-map .ring.lit span { color: var(--tide); }
.rings-map .core { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px rgba(255,180,94,.25); }

/* ---------- screens (Friends, Inbox, Me) ---------- */
.screen { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 7; background: radial-gradient(70% 40% at 80% 0%, rgba(155,140,255,.14), transparent 70%), radial-gradient(60% 35% at 0% 10%, rgba(255,138,91,.1), transparent 70%), var(--ink-1); overflow-y: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(100px + env(safe-area-inset-bottom, 0px)); display: grid; align-content: start; gap: 18px; touch-action: pan-y; overscroll-behavior: contain; animation: screenIn .35s var(--ease); }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } }
.screen-head { display: flex; align-items: center; gap: 10px; }
.screen h2 { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 6px 0 0; letter-spacing: -0.03em; }
.screen h4 { margin: 6px 0 -6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--mist); font-weight: 800; }
.screen-body { display: grid; gap: 16px; }
.list { display: grid; background: var(--ink-2); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; text-align: left; width: 100%; box-sizing: border-box; transition: background .15s; }
.item + .item { border-top: 1px solid var(--line); }
.item.tappable, button.item { cursor: pointer; }
.item.tappable:active, button.item:active { background: var(--ink-3); }
.item .avatar { width: 46px; height: 46px; font-size: 15px; }
.item .txt { min-width: 0; display: grid; gap: 2px; }
.item .txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .txt span { color: var(--mist); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.item .txt span.full { color: var(--paper); font-size: 14px; -webkit-line-clamp: 3; }
.item .txt small { color: var(--mist); font-size: 12px; }
.item.unread { background: rgba(255,180,94,.05); }
.item .when { color: var(--mist); font-size: 12px; display: grid; justify-items: end; gap: 6px; }
.item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.item .mini { width: 40px; height: 52px; border-radius: 8px; object-fit: cover; }
.notice-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); color: var(--sun); }
.notice-ico svg { width: 22px; height: 22px; }
.notice-ico.k-moderation, .notice-ico.k-reportDecision, .notice-ico.k-reportReceived { color: var(--tide); }
.av-live { position: relative; border-radius: 50%; padding: 2px; background: var(--grad-warm); }
.av-live .avatar { width: 42px; height: 42px; border: 2px solid var(--ink-2); }
.row-actions { display: flex; gap: 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--ink-3); border: 1px solid var(--line); font-size: 13px; font-weight: 750; white-space: nowrap; }
.chip-btn .i svg { width: 15px; height: 15px; display: block; }
.chip-btn.warm { background: rgba(255,180,94,.14); border-color: rgba(255,180,94,.4); color: var(--sun); }
.seg { display: flex; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 38px; padding: 0 10px; border-radius: 12px; font-weight: 700; color: var(--mist); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .25s var(--ease), color .2s; }
.seg button.on { background: var(--ink-3); color: var(--paper); box-shadow: 0 2px 10px -4px var(--shadow); }
.seg-n { font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0 5px; box-sizing: border-box; }
.invite-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,180,94,.18), rgba(255,92,138,.12) 60%, rgba(155,140,255,.12)); border: 1px solid rgba(255,180,94,.3); }
.invite-card b { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 4px; }
.invite-card > div > span { color: var(--mist); font-size: 13.5px; line-height: 1.4; }
.card-cta { display: grid; justify-items: center; gap: 12px; }
.card-cta p { margin: 0; }
.big-ico svg { width: 34px; height: 34px; color: var(--sun); display: block; }

.chat { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 9; background: var(--ink-1); display: flex; flex-direction: column; animation: chatIn .35s var(--ease); }
@keyframes chatIn { from { transform: translateX(30px); opacity: 0; } }
.chat header { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 10px; border-bottom: 1px solid var(--line); }
.chat-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; }
.chat-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat header .avatar { width: 38px; height: 38px; font-size: 13px; }
.chat .msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; touch-action: pan-y; }
.bubble { max-width: 78%; padding: 9px 14px; border-radius: 20px; line-height: 1.4; font-size: 15px; background: var(--ink-3); align-self: flex-start; border-bottom-left-radius: 6px; overflow-wrap: anywhere; white-space: pre-line; animation: bubbleIn .3s var(--spring); }
@keyframes bubbleIn { from { transform: scale(.9) translateY(6px); opacity: 0; } }
.bubble small { display: block; font-size: 10.5px; opacity: .6; margin-top: 2px; }
.bubble.you { align-self: flex-end; background: var(--grad-warm); color: #2a1408; border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.bubble.removed { font-style: italic; opacity: .6; }
.chat-note { text-align: center; color: var(--mist); font-size: 13px; padding: 8px 16px; margin: 0; }
.chat .row-input { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px) + var(--kb, 0px)); }

.me-head { display: grid; justify-items: center; gap: 10px; text-align: center; padding-top: 8px; }
.me-ring { position: relative; width: 124px; height: 124px; }
.me-ring svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.me-ring .arc { stroke: var(--sun); }
.me-ring .avatar { position: absolute; top: 14px; right: 14px; bottom: 14px; left: 14px; width: auto; height: auto; font-size: 34px; }
.me-head h2 { margin: 0; }
.level { font-size: 13.5px; color: var(--mist); line-height: 1.5; text-wrap: balance; }
.level.ready { color: var(--sun); font-weight: 700; }
.stats4, .stats3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: 14px 4px; text-align: center; }
.stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats4 b, .stats3 b { display: block; font-family: var(--display); font-size: 23px; font-variant-numeric: tabular-nums; color: var(--paper); }
.stats4 span, .stats3 span { font-size: 11.5px; color: var(--mist); hyphens: auto; overflow-wrap: anywhere; }
.explain { background: rgba(255,180,94,.08); border: 1px solid rgba(255,180,94,.25); border-radius: 20px; padding: 14px 16px; line-height: 1.5; color: var(--paper); font-size: 14px; }
.explain b { color: var(--sun); }
.explain.warn { background: rgba(255,92,138,.08); border-color: rgba(255,92,138,.3); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.thumb { position: relative; aspect-ratio: 9 / 14; border-radius: 14px; overflow: hidden; background: var(--ink-3); max-width: 100%; display: block; transition: transform .2s var(--spring); }
.thumb:active { transform: scale(.96); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.ended img { filter: grayscale(.5) brightness(.7); }
.thumb .kind { position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.thumb .kind svg { width: 100%; height: 100%; }
.thumb .lbl { position: absolute; left: 7px; bottom: 6px; right: 7px; font-size: 11.5px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.85); text-align: left; }
.empty { text-align: center; color: var(--mist); padding: 22px 18px; line-height: 1.5; background: var(--ink-2); border-radius: 22px; border: 1px dashed var(--line-strong); display: grid; gap: 12px; justify-items: center; }
.settings { display: grid; gap: 12px; padding: 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch-row b { display: block; font-size: 15px; }
.switch-row small { color: var(--mist); font-size: 12.5px; line-height: 1.35; display: block; }
.switch-row input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--ink-3); border: 1px solid var(--line-strong); position: relative; flex: none; cursor: pointer; transition: background .25s; margin: 0; }
.switch-row input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transition: transform .3s var(--spring); }
.switch-row input:checked { background: var(--sun); }
.switch-row input:checked::after { transform: translateX(20px); }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head > div { min-width: 0; display: grid; gap: 2px; }
.profile-head b { font-family: var(--display); font-size: 22px; color: var(--paper); overflow-wrap: anywhere; }
.profile-head span { color: var(--mist); font-size: 14px; }
.profile-head .tagline { font-style: normal; font-size: 12px; font-weight: 700; color: var(--tide); }
.avatar.big { width: 76px; height: 76px; font-size: 26px; }
.profile-sub { margin: 6px 0 -4px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--mist); font-weight: 800; }
.mine-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.mine-head > div { display: grid; gap: 8px; justify-items: start; }
.pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 10px; background: var(--ink-3); color: var(--mist); }
.pill.good { background: rgba(95,227,207,.14); color: var(--tide); }
.pill.bad { background: rgba(255,92,138,.14); color: var(--rose); }
.report-card { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--ink-1); border: 1px solid var(--line); }
.report-card video, .report-card img { width: 100%; max-height: 320px; border-radius: 14px; background: #000; object-fit: contain; }
.report-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.report-details { color: var(--paper); white-space: pre-line; }

/* ---------- posting ---------- */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick-tile { display: grid; justify-items: center; gap: 6px; padding: 22px 10px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--ink-1); text-align: center; transition: transform .2s var(--spring), border-color .2s; }
.pick-tile:active { transform: scale(.96); }
.pick-tile .ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-warm); color: #2a1408; }
.pick-tile.photo .ico { background: linear-gradient(135deg, var(--tide), var(--violet)); color: #0b1f1c; }
.pick-tile .ico svg { width: 26px; height: 26px; }
.pick-tile b { color: var(--paper); font-size: 16px; }
.pick-tile small { color: var(--mist); font-size: 12px; line-height: 1.3; }
.gate-art { display: flex; justify-content: center; gap: 10px; padding: 6px 0; }
.gate-art span { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--line-strong); }
.gate-art span.on { border: 0; background: var(--grad-warm); box-shadow: 0 6px 18px -6px rgba(255,138,91,.8); }
.prep { display: grid; justify-items: center; gap: 16px; padding: 18px 0 8px; }
.prep-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--sun) calc(var(--p) * 360deg), var(--ink-3) 0); position: relative; }
.prep-ring::before { content: ''; position: absolute; top: 8px; right: 8px; bottom: 8px; left: 8px; border-radius: 50%; background: var(--ink-2); }
.prep-ring b { position: relative; font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
.prep-label { color: var(--paper); text-align: center; }
.upload-bar { width: 100%; height: 8px; border-radius: 4px; background: var(--ink-3); overflow: hidden; }
.upload-bar i { display: block; height: 100%; background: var(--grad-warm); transform-origin: left; transform: scaleX(0); transition: transform .2s; }
.composer-preview { position: relative; height: 220px; height: clamp(150px, 34cqh, 300px); border-radius: 20px; overflow: hidden; background: #000; }
.composer-preview video, .composer-preview img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
/* The ripple screen: rings on top (or left), explanation below (or right). They never overlap. */
.launch { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 25; background: radial-gradient(circle at 50% 42%, #2c2152 0%, var(--ink) 70%); display: flex; flex-direction: column; text-align: center; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); transition: opacity .25s; }
.launch.out { opacity: 0; }
.launch .rings { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.launch .wave { position: absolute; left: 50%; top: calc(50% + 10px); border-radius: 50%; border: 2px solid var(--tide); transform: translate(-50%, -50%); width: 0; height: 0; opacity: 0; box-shadow: 0 0 30px -8px rgba(95,227,207,.6), inset 0 0 30px -12px rgba(95,227,207,.5); }
.launch.go .wave { animation: wave 2.4s var(--ease) forwards; }
@keyframes wave { 0% { width: 0; height: 0; opacity: 1; } 100% { width: var(--to); height: var(--to); opacity: .9; } }
.launch .labels span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; color: var(--tide); opacity: 0; transition: opacity .4s; white-space: nowrap; }
.launch .count { position: absolute; left: 50%; top: calc(50% + 10px); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; z-index: 2; width: 10em; }
.launch .count b { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 10cqmin, 68px); background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; line-height: 1; }
.launch .count b:not(.live) { font-size: 56px; font-size: clamp(44px, 10cqmin, 68px); }
.launch .count span { color: var(--paper); font-weight: 650; font-size: 14px; line-height: 1.3; }
.launch .after { flex: none; display: grid; gap: 10px; padding: 16px 24px 32px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); color: var(--mist); line-height: 1.5; font-size: 14px; }
.launch .after.show { opacity: 1; transform: none; }
.launch .after p { margin: 0 0 6px; }
.launch .after b { color: var(--sun); }
@container app (orientation: landscape) and (max-height: 560px) {
  .launch { flex-direction: row; }
  .launch .after { width: 46%; align-content: center; padding: 16px 24px; }
}
.nudge { position: absolute; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 9; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 12px 12px 16px; border-radius: 20px; border-color: rgba(255,180,94,.35); box-shadow: 0 14px 34px -10px var(--shadow); line-height: 1.35; font-size: 13.5px; animation: nudgeIn .5s var(--spring); }
@keyframes nudgeIn { from { transform: translateY(20px); opacity: 0; } }
.nudge b { color: var(--sun); }
.nudge .x { position: absolute; top: -8px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line); display: grid; place-items: center; }
.nudge .x svg { width: 14px; height: 14px; }

/* ---------- the welcome (welcome.js) ---------- */
.welcome { display: flex; flex-direction: column; padding: calc(70px + env(safe-area-inset-top, 0px)) 22px calc(96px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.welcome > .aurora { z-index: 0; }
.welcome > :not(.aurora) { position: relative; z-index: 1; }
.w-head { display: flex; align-items: center; gap: 10px; }
.w-head .avatar { width: 42px; height: 42px; }
.w-head b { display: block; font-weight: 800; }
.w-head small { color: var(--mist); font-size: 12.5px; }
.w-steps { position: relative; flex: 1; min-height: 0; }
.w-step { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); gap: 14px; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .45s, transform .6s var(--ease); pointer-events: none; }
.w-step.on { opacity: 1; transform: none; }
.w-text h2 { font-family: var(--display); font-weight: 800; font-size: 30px; font-size: clamp(26px, 8cqw, 36px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 10px; text-wrap: balance; }
.w-text p { margin: 0; color: rgba(247,244,255,.85); line-height: 1.5; font-size: 15.5px; max-width: 34ch; text-wrap: pretty; }
.w-text p b { color: var(--sun); }
.w-art { position: relative; display: grid; place-items: center; min-height: 0; min-width: 0; overflow: hidden; }
.w-foot { display: grid; gap: 14px; justify-items: center; }
.w-dots { display: flex; gap: 6px; width: 100%; }
.w-dots button { flex: 1; height: 24px; display: grid; align-items: center; }
.w-dots i { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; position: relative; }
.w-dots i::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.w-dots .done i::after { transform: scaleX(1); }
.w-dots .on.play i::after { animation: dotfill var(--step) linear forwards; }
.welcome.last .w-dots .on i::after { animation: none; transform: scaleX(1); }
.welcome.paused .w-dots .on i::after, .welcome.paused .w-step * { animation-play-state: paused !important; }
@keyframes dotfill { to { transform: scaleX(1); } }
.w-cta { width: min(100%, 320px); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .4s, transform .5s var(--spring); }
.welcome.last .w-cta { opacity: 1; transform: none; pointer-events: auto; }
.w-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mist); font-weight: 650; }
.welcome.last .w-hint { display: none; }
.chev { width: 10px; height: 10px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); margin-top: 4px; }
.fx-full .chev { animation: chev 1.6s ease-in-out infinite; }
@keyframes chev { 50% { transform: translateY(-4px) rotate(45deg); } }
/* 1 · hello */
.w-hello .w-logo svg { width: 170px; width: min(46cqw, 190px); height: auto; display: block; }
.w-step.play .w-hello .w-logo { animation: logoIn 1s var(--spring) both; }
.fx-full .w-step.play .w-hello .w-logo svg { animation: spinslow 24s linear infinite; }
.w-hello .w-logo { filter: drop-shadow(0 0 40px rgba(95,227,207,.25)); }
@keyframes logoIn { from { transform: scale(.4) rotate(-40deg); opacity: 0; } }
.w-wave { position: absolute; right: 18%; top: 16%; font-size: 44px; }
.w-step.play .w-wave { animation: wave-hand 1.6s ease-in-out .6s 2 both; transform-origin: 70% 80%; }
@keyframes wave-hand { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(18deg); } 50% { transform: rotate(-10deg); } 75% { transform: rotate(14deg); } }
/* 2 · swipe */
.w-phone { width: 130px; height: 231px; width: min(36cqw, 150px); height: auto; aspect-ratio: 9 / 16; border-radius: 22px; border: 2px solid var(--line-strong); position: relative; overflow: hidden; background: var(--ink-1); }
.w-card { position: absolute; top: 6px; right: 6px; bottom: 6px; left: 6px; border-radius: 16px; }
.w-card.c1 { background: linear-gradient(160deg, #ffb45e, #ff5c8a); }
.w-card.c2 { background: linear-gradient(160deg, #5fe3cf, #3d6bff); transform: translateY(105%); }
.w-card.c3 { background: linear-gradient(160deg, #9b8cff, #ff8a5b); transform: translateY(210%); }
.w-step.play .w-card { animation: cards 3.6s var(--ease) .3s both; }
@keyframes cards { 0%, 20% { translate: 0 0; } 45%, 65% { translate: 0 -105%; } 90%, 100% { translate: 0 -210%; } }
.w-finger { position: absolute; left: calc(50% + 4px); top: 58%; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 8px rgba(255,255,255,.2); }
.w-step.play .w-finger { animation: finger 1.8s var(--ease) .2s 2 both; }
@keyframes finger { 0% { transform: translateY(40px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(-70px); opacity: 1; } 100% { transform: translateY(-80px); opacity: 0; } }
/* 3 · reach */
.w-reach { gap: 26px; align-content: center; }
.w-pill { display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 8px; border-radius: 30px; background: var(--ink-2); border: 1px solid var(--line-strong); }
.w-pill svg { width: 44px; height: 44px; display: block; }
.w-count { position: relative; display: grid; font-family: var(--display); font-size: 30px; height: 36px; overflow: hidden; line-height: 36px; min-width: 1ch; }
.w-count span { grid-area: 1 / 1; }
.w-count span:last-child { transform: translateY(100%); }
.w-step.play .w-count span:first-child { animation: tickOut .4s var(--ease) 3.3s forwards; }
.w-step.play .w-count span:last-child { animation: tickIn .4s var(--ease) 3.3s forwards; color: var(--sun); }
@keyframes tickOut { to { transform: translateY(-100%); } }
@keyframes tickIn { to { transform: translateY(0); } }
.w-step.play .w-pill { animation: bump .55s var(--spring) 3.3s; }
.w-plus1 { position: absolute; font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--sun); opacity: 0; top: 50%; }
.w-step.play .w-plus1 { animation: fly 1s var(--ease) 2.6s both; }
@keyframes fly { 0% { opacity: 0; transform: translateY(40px) scale(.6); } 30% { opacity: 1; transform: translateY(20px) scale(1.3); } 100% { opacity: 0; transform: translateY(-60px) scale(.7); } }
.w-bar { position: relative; width: 230px; width: min(64cqw, 260px); height: 10px; border-radius: 5px; background: rgba(255,255,255,.15); }
.w-bar i { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 5px; background: var(--grad-warm); transform-origin: left; transform: scaleX(0); }
.w-step.play .w-bar i { animation: fill3 2.8s linear .2s forwards; }
@keyframes fill3 { to { transform: scaleX(1); } }
.w-bar em { position: absolute; right: 0; top: 16px; font-style: normal; font-weight: 800; font-size: 13px; color: var(--mist); }
/* 4 · watch 3, then share */
.w-post { gap: 28px; align-content: center; }
.w-people { display: flex; gap: 14px; }
.w-person { width: 46px; height: 46px; border-radius: 50%; background: var(--ink-3); border: 2px dashed var(--line-strong); }
.w-step.play .w-person { animation: personOn .5s var(--spring) both; }
.w-step.play .w-person.p0 { animation-delay: .5s; } .w-step.play .w-person.p1 { animation-delay: 1.4s; } .w-step.play .w-person.p2 { animation-delay: 2.3s; }
@keyframes personOn { to { background: linear-gradient(135deg, hsl(200 90% 78%), hsl(250 85% 66%)); border: 2px solid var(--paper); transform: scale(1.05); } }
.w-plusbtn { position: relative; width: 86px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.w-plusbtn > svg:first-child { width: 32px; height: 32px; stroke-width: 2.6; }
.w-ring { position: absolute; top: -7px; right: -7px; bottom: -7px; left: -7px; width: calc(100% + 14px); height: calc(100% + 14px); }
.w-ring rect { stroke: var(--sun); stroke-width: 2.5; stroke-dasharray: 0 3; stroke-linecap: round; }
.w-step.play .w-ring rect { animation: ring3 2.4s steps(3, end) .5s forwards; }
@keyframes ring3 { to { stroke-dasharray: 3 0; } }
.w-step.play .w-plusbtn { animation: readyBtn .6s var(--spring) 3s forwards; }
@keyframes readyBtn { to { background: var(--grad-warm); color: #2a1408; transform: scale(1.08); box-shadow: 0 10px 30px -8px rgba(255,138,91,.9); } }
/* 5 · rings */
.w-rings .r { position: absolute; border-radius: 50%; border: 2px solid var(--tide); display: grid; justify-items: center; opacity: 0; transform: scale(.3); box-shadow: 0 0 30px -10px rgba(95,227,207,.6); }
.w-rings .r span { font-size: 12px; font-weight: 800; color: var(--tide); margin-top: -22px; white-space: nowrap; }
.w-rings .r1 { width: 100px; height: 100px; width: min(30cqw, 110px); height: min(30cqw, 110px); }
.w-rings .r2 { width: 170px; height: 170px; width: min(50cqw, 190px); height: min(50cqw, 190px); }
.w-rings .r3 { width: 240px; height: 240px; width: min(70cqw, 270px); height: min(70cqw, 270px); }
.w-step.play .w-rings .r { animation: ringOn .8s var(--spring) both; }
.w-step.play .w-rings .r1 { animation-delay: .3s; } .w-step.play .w-rings .r2 { animation-delay: 1.2s; } .w-step.play .w-rings .r3 { animation-delay: 2.1s; }
@keyframes ringOn { to { opacity: 1; transform: scale(1); } }
.w-rings .core { width: 18px; height: 18px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 8px rgba(255,180,94,.25), 0 0 30px rgba(255,180,94,.7); }
/* 6 · like, comment, pass on */
.w-actions { grid-auto-flow: column; gap: 22px; gap: min(22px, 5cqw); justify-content: center; align-content: center; }
.w-actions .a { width: 60px; height: 60px; width: min(70px, 19cqw); height: min(70px, 19cqw); border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); border: 1px solid var(--line-strong); opacity: 0; transform: scale(.4); }
.w-actions .a svg { width: 32px; height: 32px; }
.w-actions .a1 { color: var(--rose); } .w-actions .a1 svg { fill: var(--rose); }
.w-actions .a3 { color: var(--tide); }
.w-step.play .w-actions .a { animation: ringOn .6s var(--spring) both; }
.w-step.play .w-actions .a1 { animation-delay: .2s; } .w-step.play .w-actions .a2 { animation-delay: .5s; } .w-step.play .w-actions .a3 { animation-delay: .8s; }
/* Lite: every step is simply shown, without the moving parts. */
.fx-lite .w-step.play * { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
.fx-lite .w-step { transition: opacity .3s; transform: none; }

/* ---------- short screens (phones in landscape, small windows): compact app ---------- */
@container app (max-height: 560px) {
  .topbar { padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 4px; }
  .topbar .wordmark { font-size: 18px; }
  .reach-pill { height: 32px; }
  .reach-pill .reach-logo svg { width: 23px; height: 23px; }
  .icon-btn { width: 32px; height: 32px; }
  .progress { top: calc(46px + env(safe-area-inset-top, 0px)); }
  .why { top: calc(55px + env(safe-area-inset-top, 0px)); padding: 5px 9px; font-size: 11.5px; }
  .rail { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); gap: 5px; }
  .rail .ico { width: 40px; height: 40px; }
  .rail .ico svg { width: 21px; height: 21px; }
  .rail .avatar { width: 40px; height: 40px; font-size: 14px; }
  .rail .rings, .rail .more .n { display: none; }
  .meta { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); gap: 3px; }
  .meta .cap { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .meta .desc { display: none; }
  .nav { padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px)); }
  .nav-pill { height: 52px; border-radius: 18px; }
  .nav-pill > button .ico { height: 24px; }
  .nav-pill > button .ico svg { width: 20px; height: 20px; }
  .nav-pill .lbl { font-size: 10px; }
  .post-btn { height: 34px; width: 48px; }
  .post-btn .gate-count { display: none; }
  .end { gap: 8px; padding-bottom: 60px; }
  .end-ico { display: none; }
  .end h2 { font-size: 24px; }
  .end p { font-size: 13.5px; }
  .end .stats b { font-size: 22px; }
  .end-actions .btn { min-height: 40px; padding: 4px 10px; font-size: 13px; }
  .end-note { display: none; }
  .sheet { max-height: 94%; }
  .sheet.tall { height: 94%; }
  .sheet header { padding: 4px 18px 6px; }
  .screen { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .welcome { padding-top: calc(46px + env(safe-area-inset-top, 0px)); padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .w-step { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; }
  .w-text h2 { font-size: 22px; margin-bottom: 6px; }
  .w-text p { font-size: 13.5px; }
  .w-foot { grid-template-columns: 1fr auto; align-items: center; }
  .w-hint { display: none; }
  .w-cta { min-height: 38px; width: auto; }
  .w-head { display: none; }
}
@container app (max-height: 680px) and (min-height: 561px) {
  .w-text h2 { font-size: 24px; }
  .w-text p { font-size: 14px; }
}

/* Medium-short screens (iPhone SE, laptop windows): a tighter side rail, so it stays below the top bar. */
@container app (max-height: 760px) and (min-height: 561px) {
  .rail { gap: 8px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .rail .ico { width: 42px; height: 42px; }
  .rail .ico svg { width: 23px; height: 23px; }
  .rail .avatar { width: 42px; height: 42px; font-size: 15px; }
  .rail .rings { display: none; }
  .meta { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- a top bar that fits ---------- */
.topbar.tight .reach-pill small { display: none; }
.topbar.tight .reach-pill { padding-right: 11px; }
.topbar.tighter .wordmark { font-size: 18px; }
/* The name always stays: on the tightest screens the bar only gets slimmer edges, a smaller sound button and logo. */
.topbar.tightest { padding-left: 10px; padding-right: 10px; gap: 6px; }
.topbar.tightest .wordmark { font-size: 17px; }
.topbar.tightest .icon-btn { width: 34px; height: 34px; }
.topbar.tightest .reach-pill { padding-right: 9px; gap: 5px; }

/* ---------- desktop windows that aren't very tall: a compact explanation beside the phone ---------- */
@media (min-width: 900px) and (min-height: 520px) and (max-height: 759px) {
  .stage { gap: 52px; }
  .intro { gap: 14px; }
  .intro .wordmark { font-size: 36px; }
  .intro .tagline { font-size: 25px; }
  .rules { gap: 9px; }
  .rules li { font-size: 13.5px; line-height: 1.4; grid-template-columns: 30px 1fr; }
  .rules .dot { width: 30px; height: 30px; font-size: 12px; border-radius: 10px; }
  .note { font-size: 12px; padding-top: 10px; }
}

/* ---------- phones, tablets in portrait, and any short window: the app is the page ---------- */
@media (max-width: 899px), (max-height: 519px) {
  .stage { display: block; padding: 0; }
  .stage::before { display: none; }
  .intro { display: none; }
  .phone { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; padding: 0; background: #000; box-shadow: none; }
  .app { top: 0; right: 0; bottom: 0; left: 0; }
  .phone > .app { border-radius: 0; }
}
/* Tablets and big phones in portrait: keep the feed's text and buttons at a comfortable reading width. */
@container app (min-width: 600px) {
  .meta { right: auto; width: min(520px, calc(100% - 110px)); }
  .nav-pill { max-width: 520px; margin-inline: auto; }
  .sheet { left: 50%; right: auto; width: min(560px, 100%); margin-left: max(-280px, -50%); border-radius: 28px 28px 0 0; }
  .screen { padding-inline: max(16px, calc(50% - 300px)); }
  .welcome { padding-inline: max(22px, calc(50% - 260px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Lite effects: no endless motion anywhere, lighter shadows. */
.fx-lite .aurora, .fx-lite .post-btn.ready, .fx-lite .chev { animation: none !important; }
.fx-lite .slide .media { animation: none !important; }
.fx-lite .btn.primary, .fx-lite .provider.passkey { box-shadow: none; }

/* Narrow apps (the phone frame in a small laptop window, folded phones): stack what sat side by side. */
@container app (max-width: 340px) {
  .invite-card { grid-template-columns: minmax(0, 1fr); }
  .invite-card .btn { width: 100%; }
  .sheet .body { padding-inline: 14px; } /* Google's button needs at least 200 px */
  .sheet header, .sheet-cta { padding-inline: 14px; }
}
/* Wide but short (phones in landscape, short windows): the end screen's buttons sit in a row. */
@container app (max-height: 560px) and (min-width: 600px) {
  .end-actions { grid-template-columns: 1fr 1fr 1fr; width: 100%; max-width: 640px; }
}
/* Not very tall (iPhone SE, laptop windows): the end screen without its badge and note. */
@container app (max-height: 700px) {
  .end { gap: 10px; padding-bottom: 88px; }
  .end-ico, .end-note { display: none; }
  .end h2 { font-size: 26px; }
  .end-actions .btn { min-height: 42px; }
}
/* Phones in landscape: the side rail drops the words under "save" and "pass on" (the icons stay) and gets a little
   smaller, so it clears the top bar. */
@container app (max-height: 440px) {
  .rail .pass .n, .rail .save .n { display: none; }
  .rail .rail-av { margin-bottom: 0; }
  .rail { gap: 4px; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .rail .ico { width: 36px; height: 36px; }
  .rail .ico svg { width: 20px; height: 20px; }
  .rail .avatar { width: 36px; height: 36px; font-size: 13px; }
  .rail .more .ico { width: 36px; height: 36px; }
}
/* Short and narrow (the phone frame in a small laptop window): the welcome shows its words only, full width. */
@container app (max-height: 560px) and (max-width: 480px) {
  .w-step { grid-template-columns: minmax(0, 1fr); }
  .w-step .w-art { display: none; }
}
.w-text h2 { overflow-wrap: break-word; hyphens: auto; }

/* ---------- profile pictures ---------- */
.avatar img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.photo { color: transparent; }
.avatar.huge { width: 132px; height: 132px; font-size: 44px; }
.avatar-now { display: grid; place-items: center; padding: 6px 0; }
button.me-ring { padding: 0; border-radius: 50%; }
.me-ring .cam { position: absolute; right: 4px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-warm); color: #2a1408; border: 3px solid var(--ink-1); box-sizing: border-box; }
.me-ring .cam svg { width: 17px; height: 17px; stroke-width: 2.2; }
.crop { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 4px auto 0; border-radius: 22px; overflow: hidden; touch-action: none; cursor: grab; background: #000; }
.crop-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.crop-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 0, transparent calc(50% - 1px), rgba(9, 7, 15, .62) 50%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.crop-mask::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.zoom-row { display: flex; align-items: center; gap: 12px; color: var(--paper); font-weight: 800; font-size: 20px; width: min(100%, 300px); margin: 0 auto; }
.zoom-row input { flex: 1; accent-color: var(--sun); }

/* ---------- add to home screen ---------- */
.install-banner { position: absolute; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 9; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 12px 12px 12px; border-radius: 22px; box-shadow: 0 14px 34px -10px var(--shadow); animation: nudgeIn .5s var(--spring); }
.install-banner img { border-radius: 12px; display: block; }
.install-banner b { display: block; font-size: 14.5px; }
.install-banner span { color: var(--mist); font-size: 12.5px; line-height: 1.3; display: block; }
.install-banner .x { position: absolute; top: -8px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line); display: grid; place-items: center; }
.install-banner .x svg { width: 14px; height: 14px; }
.install-hero { display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--paper); }
.install-hero img { border-radius: 18px; box-shadow: 0 12px 30px -10px rgba(255,138,91,.6); }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.install-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--ink-1); border: 1px solid var(--line); color: var(--paper); line-height: 1.35; }
.install-steps .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); color: #4ea1ff; }
.install-steps li:last-child .ico { color: var(--tide); }
.install-steps .ico svg { width: 24px; height: 24px; }
.install-row { width: 100%; text-align: left; padding: 0; }
.chev-r { font-size: 26px; color: var(--mist); line-height: 1; }
.scan { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.scan img { border-radius: 14px; background: #fff; padding: 6px; box-sizing: border-box; display: block; }
.scan .note { border: 0; padding: 0; }
@media (min-width: 900px) and (min-height: 520px) and (max-height: 759px) { .scan { grid-template-columns: 80px 1fr; } .scan img { width: 80px; height: 80px; } }

/* ---------- the Reachiko team badge and the admin dashboard ---------- */
.team-badge { display: inline-block; width: 1.05em; height: 1.05em; margin-left: .3em; vertical-align: -0.14em; flex: none; }
.team-badge svg { width: 100%; height: 100%; display: block; }
.who-name { display: inline-flex; align-items: center; }
.admin-card { display: grid; gap: 14px; padding: 16px; border-radius: 24px; background: linear-gradient(135deg, rgba(95,227,207,.1), rgba(155,140,255,.1)); border: 1px solid rgba(95,227,207,.3); }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.admin-top b { font-family: var(--display); font-size: 18px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-stats > div { background: var(--ink-1); border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px; text-align: center; }
.admin-stats b { display: block; font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.admin-stats span { font-size: 11.5px; color: var(--mist); overflow-wrap: anywhere; hyphens: auto; }
.admin-stats .hot b { color: var(--rose); }
.tagline.warn { color: var(--rose) !important; }
.item.log .txt span { -webkit-line-clamp: 3; }

/* ---------- sponsored moments (boosts) ---------- */
.sponsored-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: rgba(255,255,255,.18); color: var(--paper); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; text-shadow: none; }
.why[data-why="sponsored"] .swatch { background: var(--paper); color: var(--paper); }
.ad-cta { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 16px; border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 800; text-shadow: none; box-shadow: 0 8px 24px -10px rgba(0,0,0,.6); transition: transform .15s; }
.ad-cta:active { transform: scale(.98); }
.ad-cta small { color: #6b6585; font-weight: 600; font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-cta .arrow { margin-left: auto; font-size: 18px; }

/* ---------- boosting ---------- */
.boost-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.boost-head img { width: 64px; height: 92px; object-fit: cover; border-radius: 12px; display: block; }
.boost-row { display: flex; align-items: center; gap: 14px; }
.boost-row input { flex: 1; accent-color: var(--sun); }
.boost-money { font-family: var(--display); font-size: 22px; color: var(--paper); min-width: 5ch; text-align: right; font-variant-numeric: tabular-nums; }
.boost-estimate { display: grid; gap: 8px; padding: 14px 16px; border-radius: 20px; background: rgba(255,180,94,.08); border: 1px solid rgba(255,180,94,.25); color: var(--paper); }
.boost-big { display: flex; align-items: baseline; gap: 10px; }
.boost-big b { font-family: var(--display); font-size: 34px; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.warn-line { color: var(--rose) !important; }
.boost-item { grid-template-columns: 40px minmax(0, 1fr) auto; }
.boost-side { display: grid; justify-items: end; gap: 6px; }
.review-url { color: var(--tide); overflow-wrap: anywhere; }

.pay-box { display: grid; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--ink-1); border: 1px solid var(--line); }
.pay-row { display: flex; justify-content: space-between; gap: 12px; color: var(--mist); }
.pay-row b { color: var(--paper); font-variant-numeric: tabular-nums; }
.pay-row.total { border-top: 1px solid var(--line); padding-top: 8px; color: var(--paper); font-weight: 700; }
.pay-row.total b { font-family: var(--display); font-size: 20px; }
.switch-state { display: grid; gap: 4px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--ink-1); }
.switch-state b { font-family: var(--display); font-size: 22px; }
.switch-state.on b { color: var(--tide); }
.switch-state span { color: var(--mist); }
.checklist { display: grid; gap: 8px; }
.checklist > div { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--paper); }
.check-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.check-dot svg { width: 14px; height: 14px; stroke-width: 3; }
.check-dot.yes { background: rgba(95,227,207,.18); color: var(--tide); }
.check-dot.no { background: rgba(255,92,138,.16); color: var(--rose); }

/* ---------- the team's lists ---------- */
.admin-thumb .report-dot { position: absolute; right: 6px; top: 6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; box-sizing: border-box; }
.admin-thumb .removed-tag { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; color: var(--rose); font-weight: 800; font-size: 12px; }
.item .txt small.warn-line { display: block; }
.item .txt .team-badge { display: inline-block; overflow: visible; -webkit-line-clamp: unset; } /* the badge stays next to the name in lists */

/* ---------- Phase 1: search, tags, saves, comment threads, bio, settings, breaks ---------- */
.rail .saved .ico { color: var(--sun); }
.rail .saved .ico svg { fill: var(--sun); }
.tag-link { font: inherit; color: inherit; padding: 0; }
.search-screen .search-box { flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 21px; background: var(--ink-2); border: 1px solid var(--line-strong); min-width: 0; }
.search-screen .search-box svg { width: 18px; height: 18px; color: var(--mist); flex: none; }
.search-screen .search-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; }
.search-body { flex: 1; overflow-y: auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; align-content: start; touch-action: pan-y; }
.search-results { display: grid; gap: 14px; }
.search-results h4 { margin: 6px 0 -6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--mist); }
.tag-list { display: grid; gap: 6px; }
.tag-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); text-align: left; }
.tag-row b { color: var(--tide); }
.tag-row span { color: var(--mist); font-size: 13px; }
.comment { grid-template-columns: 36px minmax(0, 1fr) auto; }
.comment.reply { margin-left: 46px; grid-template-columns: 28px minmax(0, 1fr) auto; }
.comment.reply .avatar { width: 28px; height: 28px; font-size: 11px; }
.comment-main { min-width: 0; }
.comment-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.comment-actions button { color: var(--mist); font-size: 12.5px; font-weight: 700; }
.comment-actions .c-more { width: 26px; height: 22px; display: grid; place-items: center; }
.comment-actions .c-more svg { width: 16px; height: 16px; }
.c-like { display: grid; justify-items: center; gap: 1px; color: var(--mist); min-width: 32px; padding-top: 4px; }
.c-like svg { width: 18px; height: 18px; }
.c-like.on { color: var(--rose); }
.c-like small { font-size: 11px; font-weight: 700; }
.mention { font: inherit; color: var(--tide); font-weight: 700; padding: 0; }
.view-replies { justify-self: start; margin-left: 46px; color: var(--mist); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.view-replies::before { content: ''; width: 24px; height: 1px; background: var(--line-strong); }
.comment-foot { flex: none; position: relative; }
.reply-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 18px; background: var(--ink-1); color: var(--mist); font-size: 13px; border-top: 1px solid var(--line); }
.reply-chip button { width: 26px; height: 26px; display: grid; place-items: center; }
.reply-chip svg { width: 14px; height: 14px; }
.mention-suggest { position: absolute; left: 12px; right: 12px; bottom: 100%; margin-bottom: 6px; display: grid; background: var(--ink-3); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 -10px 30px -10px var(--shadow); }
.suggest-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; font-weight: 700; }
.suggest-item .avatar { width: 30px; height: 30px; font-size: 11px; }
.suggest-item + .suggest-item { border-top: 1px solid var(--line); }
.bio { margin: 6px 0 0; color: var(--paper); font-size: 14px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.bio-edit { color: var(--paper); font-size: 14px; line-height: 1.45; white-space: pre-line; max-width: 34ch; overflow-wrap: anywhere; }
.bio-edit.empty { color: var(--tide); font-weight: 700; }
.counter { justify-self: end; color: var(--mist); font-size: 12px; }
.switch-row select { min-height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink-1); color: var(--paper); padding: 0 10px; flex: none; max-width: 46%; min-width: 0; text-overflow: ellipsis; }
.switch-row > span:first-child { min-width: 0; flex: 1; }
.moment-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; padding: 6px; margin: -3px -6px 6px; border-radius: 14px; background: rgba(0,0,0,.18); color: inherit; min-width: 160px; }
.moment-card img { width: 44px; height: 62px; object-fit: cover; border-radius: 9px; }
.moment-card span { font-weight: 700; font-size: 13.5px; overflow-wrap: anywhere; }
.moment-card.gone { display: block; font-style: italic; opacity: .7; }
.break-screen { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 26; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, #1f3a33 0%, var(--ink) 70%); transition: opacity .25s; }
.break-screen.out { opacity: 0; }
.break-art { font-size: 64px; }
.break-screen h2 { font-family: var(--display); font-size: 30px; margin: 0; }
.break-screen p { margin: 0; color: var(--mist); max-width: 32ch; line-height: 1.5; }

/* ---------- Phase 2: the editor (trim, cover, text, stickers, filters, carousels) ---------- */
.editor { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; background: #000; display: grid; grid-template-rows: auto 1fr auto auto; opacity: 0; transition: opacity .2s var(--ease); touch-action: none; }
.editor.show { opacity: 1; }
.editor > * { min-width: 0; }
.editor.out { opacity: 0; }
.ed-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 8px; }
.ed-top .ed-next { min-height: 40px; padding: 0 20px; }
.ed-pager { display: flex; align-items: center; gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ed-pager button:disabled { opacity: .3; }
.ed-area { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 10px; }
.ed-stage { position: relative; container-type: size; border-radius: 18px; overflow: hidden; background: var(--ink-2); max-width: 100%; max-height: 100%; }
.ed-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; touch-action: none; }
.ed-loading { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; }
.ed-item { position: absolute; white-space: pre; user-select: none; -webkit-user-select: none; cursor: grab; line-height: 1.18; text-align: center; touch-action: none; }
.ed-item.sticker { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; line-height: 1; }
.ed-item.text { font-family: var(--display); font-weight: 800; color: var(--c); text-shadow: 0 .04em .22em rgba(0,0,0,.45); }
.ed-item.text .ln { display: block; width: fit-content; margin: 0 auto; padding: 0 .3em; border-radius: .22em; }
.ed-item.text.box { text-shadow: none; color: var(--on); }
.ed-item.text.box .ln:not(.empty) { background: var(--c); }
.ed-bin { position: absolute; left: 50%; bottom: 150px; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.7); color: #fff; z-index: 3; transition: transform .15s var(--spring), background .15s; pointer-events: none; }
.ed-bin svg { width: 24px; height: 24px; }
.ed-bin.over { transform: scale(1.25); background: var(--rose); border-color: var(--rose); }
.ed-panel { display: none; padding: 10px 12px 0; }
.ed-panel.open { display: block; }
.ed-tools { display: flex; justify-content: center; gap: 4px; padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px)); overflow-x: auto; scrollbar-width: none; }
.ed-tools button { display: grid; justify-items: center; gap: 4px; min-width: 64px; padding: 6px 4px; border-radius: 14px; font-size: 12px; font-weight: 700; color: var(--mist); }
.ed-tools button .ico { width: 26px; height: 26px; }
.ed-tools button.on { color: var(--paper); background: var(--ink-3); }
.ed-strip { position: relative; display: flex; height: 56px; border-radius: 10px; overflow: hidden; background: var(--ink-3); touch-action: none; }
.ed-strip canvas { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.ed-mask { position: absolute; top: 0; bottom: 0; background: rgba(0,0,0,.6); }
.ed-mask.l { left: 0; }
.ed-mask.r { right: 0; }
.ed-sel { position: absolute; top: 0; bottom: 0; border: 3px solid var(--sun); border-radius: 10px; box-sizing: border-box; }
.ed-sel .hdl { position: absolute; top: 50%; width: 14px; height: 30px; margin-top: -15px; border-radius: 6px; background: var(--sun); }
.ed-sel .hdl.l { left: -9px; }
.ed-sel .hdl.r { right: -9px; }
.ed-mark { position: absolute; top: -4px; bottom: -4px; width: 34px; margin-left: -17px; border: 3px solid #fff; border-radius: 8px; box-shadow: 0 0 0 999px rgba(0,0,0,.45); pointer-events: none; }
.ed-hint { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--mist); font-variant-numeric: tabular-nums; }
.ed-looks { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ed-look { display: grid; justify-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--mist); flex: none; }
.ed-look canvas { width: 56px; height: 80px; border-radius: 10px; border: 2px solid transparent; background: var(--ink-3); }
.ed-look.on { color: var(--paper); }
.ed-look.on canvas { border-color: var(--sun); }
.ed-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; max-height: 150px; overflow-y: auto; }
.ed-stickers button { font-size: 30px; line-height: 46px; border-radius: 12px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.ed-stickers button:active { background: var(--ink-3); }
.ed-typing { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5; background: rgba(9,7,15,.88); display: grid; grid-template-rows: auto 1fr auto; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
.ed-typing-top { display: flex; justify-content: space-between; align-items: center; }
.ed-typing-mid { display: grid; place-items: center; }
.ed-input { width: 100%; max-width: 520px; resize: none; border: 0; outline: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 30px !important; line-height: 1.18; padding: 4px 10px; border-radius: 10px; background: transparent; overflow: hidden; }
.ed-input:focus-visible { outline: none; }
.ed-input::placeholder { color: rgba(255,255,255,.5); }
.ed-style { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--paper); font-family: var(--display); font-weight: 800; font-size: 18px; }
.ed-style.on { background: var(--paper); color: var(--ink); }
.ed-swatches { display: flex; justify-content: center; gap: 10px; }
.ed-swatches button { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.8); }
.ed-swatches button.on { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--paper); }
.ed-busy { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 6; background: rgba(9,7,15,.86); display: grid; place-content: center; justify-items: center; gap: 14px; }
.ed-ask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 7; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 20px; }
.ed-ask-card { width: min(340px, 100%); background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 10px; }
.ed-ask-card h3 { margin: 0 0 4px; text-align: center; font-family: var(--display); }
.fx-full .ed-busy { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@container app (max-height: 640px) {
  .ed-tools button { min-width: 54px; padding: 4px 2px; }
  .ed-strip { height: 46px; }
  .ed-bin { bottom: 120px; }
}

/* ---------- Phase 2 in the feed: carousels, captions, the lines under the name ---------- */
.media.carousel { overflow: hidden; touch-action: pan-y; }
.media.carousel .track { display: flex; width: 100%; height: 100%; transition: transform .38s var(--ease); will-change: transform; }
.media.carousel img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; }
.media.carousel.cover img { object-fit: cover; }
.meta .dots { display: flex; gap: 5px; pointer-events: none; margin-bottom: 2px; }
.meta .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); transition: width .25s var(--ease), background .25s; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.meta .dots i.on { width: 16px; background: #fff; }
.slide .captions { position: absolute; left: 18px; right: 78px; bottom: 40%; z-index: 4; text-align: center; pointer-events: none; }
.slide .captions span { display: inline; padding: 3px 9px; border-radius: 8px; background: rgba(9,7,15,.62); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.55; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.meta .m-lines { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.meta .m-line { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font-size: 13px; font-weight: 600; color: rgba(247,244,255,.92); text-shadow: inherit; }
.meta .m-line span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta .m-line .i { width: 15px; height: 15px; flex: none; }
.meta .m-line .i svg { width: 100%; height: 100%; }

/* ---------- Phase 2 in the composer: responding, people, drafts ---------- */
.respond-chip { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--ink-3); margin-bottom: 12px; }
.respond-chip .i { width: 20px; height: 20px; color: var(--tide); flex: none; }
.respond-chip .i svg { width: 100%; height: 100%; }
.respond-chip b { display: block; font-size: 14px; }
.respond-chip small { display: block; color: var(--mist); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.respond-chip > span:last-child { min-width: 0; }
.composer-preview.multi { position: relative; }
.composer-preview .count { position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,.55); font-size: 12px; font-weight: 700; }
.settings.compact { padding: 12px 14px; margin-top: 4px; }
.people-row { width: 100%; text-align: left; }
.people-row .chev { width: 18px; height: 18px; transform: rotate(180deg); color: var(--mist); flex: none; }
.people-row .chev svg { width: 100%; height: 100%; }
.people-row small { overflow: hidden; text-overflow: ellipsis; }
.sheet-cta.two { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.drafts-row:empty { display: none; }
.drafts-row { margin: 4px 0 10px; }
.draft-tile { position: relative; }
.draft-tile .thumb { width: 100%; }
.draft-tile .del { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; }
.draft-tile .del svg { width: 16px; height: 16px; }
.draft-tile .lbl { right: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb.drafts-tile { display: grid; place-content: center; justify-items: center; gap: 4px; background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px dashed var(--line-strong); }
.thumb.drafts-tile b { font-size: 14px; }
.thumb.drafts-tile span { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--sun); }
@container app (max-height: 560px) {
  .meta .m-lines { flex-wrap: nowrap; overflow: hidden; }
  .slide .captions { bottom: 46%; }
  .slide .captions span { font-size: 14px; }
}

/* ---------- Phase 3: people — following, private accounts, groups, voice, reactions ---------- */
.following-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin: 10px 0 4px; border-radius: 18px; background: linear-gradient(135deg, rgba(255,180,94,.16), rgba(255,92,138,.12)); border: 1px solid var(--line); text-align: left; }
.following-card .txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.following-card .txt span { color: var(--mist); font-size: 13px; }
.av-stack { display: flex; flex: none; }
.av-stack .avatar { width: 34px; height: 34px; font-size: 13px; border: 2px solid var(--ink-2); }
.av-stack .avatar + .avatar { margin-left: -12px; }
.private-note { display: grid; justify-items: center; gap: 6px; padding: 26px 12px; }
.private-note .i { width: 30px; height: 30px; color: var(--mist); }
.private-note .i svg { width: 100%; height: 100%; }
.requests-row { width: 100%; text-align: left; margin-bottom: 8px; }
.new-group { margin: 10px 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.new-group .i { width: 18px; height: 18px; }
.new-group .i svg { width: 100%; height: 100%; }
.pick-friend { cursor: pointer; }
.pick-friend input { width: 22px; height: 22px; accent-color: var(--sun); flex: none; }
.chat .chat-title { display: grid; text-align: left; min-width: 0; }
.chat .chat-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat .chat-title small { color: var(--mist); font-size: 12px; }
.chat .group-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); flex: none; }
.chat .group-ico svg { width: 22px; height: 22px; }
.chat-system { text-align: center; color: var(--mist); font-size: 12.5px; margin: 6px 0; }
.bubble { position: relative; }
.bubble .who { display: block; font-size: 12px; font-weight: 700; color: var(--tide); margin-bottom: 2px; }
.bubble .reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.bubble .reacts button { padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 13px; line-height: 1.6; }
.bubble .reacts button.mine { background: rgba(255,180,94,.28); }
.react-picker { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5; display: flex; gap: 2px; padding: 5px 7px; border-radius: 22px; background: var(--ink-3); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px -10px var(--shadow); animation: pop .25s var(--spring); }
.react-picker.you { left: auto; right: 0; }
.react-picker button { font-size: 24px; width: 38px; height: 38px; border-radius: 50%; }
.react-picker button:active { background: rgba(255,255,255,.12); }
.voice-player { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.vp-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); flex: none; }
.vp-btn svg { width: 16px; height: 16px; }
.vp-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.vp-bar i { display: block; height: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; }
.voice-player small { font-variant-numeric: tabular-nums; font-size: 12px; opacity: .8; }
.row-input .mic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); flex: none; }
.row-input .mic svg { width: 22px; height: 22px; }
.rec-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.rec-bar .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); animation: blink 1s infinite; }
.rec-bar b { font-variant-numeric: tabular-nums; }
.rec-bar .rec-hint { flex: 1; color: var(--mist); font-size: 13px; }
@keyframes blink { 50% { opacity: .25; } }
.fx-lite .rec-bar .rec-dot { animation: none; }
.rec-bar .send { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-warm); color: #2a1408; display: grid; place-items: center; flex: none; }
.rec-bar .send svg { width: 20px; height: 20px; stroke-width: 2.4; }
/* Long words or option labels (German, Finnish…) never make a screen wider than the phone. */
.screen { grid-template-columns: minmax(0, 1fr); }
.settings { grid-template-columns: minmax(0, 1fr); }

/* ---------- Phase 4: what only Reachiko has ---------- */
.translate-link { font-size: 12px; font-weight: 700; color: var(--mist); padding: 0; text-align: left; }
.meta .translate-link { color: rgba(247,244,255,.8); text-shadow: inherit; justify-self: start; }
.journey { border-radius: 18px; background: radial-gradient(80% 70% at 50% 40%, rgba(95,227,207,.12), transparent 70%), var(--ink-1); border: 1px solid var(--line); padding: 6px; }
.journey-map { width: 100%; height: auto; display: block; aspect-ratio: 1; }
.journey-map .j-off { fill: rgba(240,236,255,.18); }
.journey-map .j-on { fill: var(--sun); filter: drop-shadow(0 0 2px rgba(255,180,94,.8)); }
.journey-map .j-home { fill: var(--tide); stroke: #fff; stroke-width: .5; }
.journey-map .j-label { font-size: 3.2px; font-weight: 700; fill: rgba(247,244,255,.85); paint-order: stroke; stroke: rgba(9,7,15,.8); stroke-width: .8px; }
.journey-map .j-label.home { fill: var(--tide); }
.journey-map .j-line { stroke: rgba(95,227,207,.45); stroke-width: .35; stroke-dasharray: 1 1; }
.fx-full .journey-map .j-line { animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.journey-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 13.5px; }
.journey-list div { display: flex; justify-content: space-between; gap: 8px; }
.journey-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chain li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.chain .step { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); font-size: 12px; font-weight: 800; color: var(--tide); }
.chain small { color: var(--mist); font-size: 12px; }
.sun-burst { position: absolute; left: 50%; top: 50%; z-index: 80; font-size: 64px; transform: translate(-50%, -50%) scale(.3); pointer-events: none; animation: sunburst 1.3s var(--spring) forwards; }
@keyframes sunburst { 40% { transform: translate(-50%, -60%) scale(1.4); opacity: 1; } 100% { transform: translate(-50%, -120%) scale(1); opacity: 0; } }
.fx-lite .sun-burst { animation-duration: .8s; }
.recap-hero { display: grid; justify-items: center; gap: 4px; padding: 10px 0 4px; text-align: center; }
.recap-hero h3 { margin: 0; font-family: var(--display); font-size: 24px; }
.recap-hero small { color: var(--mist); }
.recap-sun { font-size: 34px; color: var(--sun); }
.recap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.recap-n { display: grid; justify-items: center; text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--ink-3); }
.recap-n b { font-family: var(--display); font-size: 22px; }
.recap-n span { font-size: 11.5px; color: var(--mist); line-height: 1.2; overflow-wrap: anywhere; }
.recap-top { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px; border-radius: 16px; background: var(--ink-3); text-align: left; }
.recap-top img { width: 54px; height: 80px; object-fit: cover; border-radius: 10px; flex: none; }
.recap-top > span { display: grid; min-width: 0; }
.recap-top small { color: var(--sun); font-weight: 700; }
.recap-top span span { color: var(--mist); font-size: 12.5px; }
.relay-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.relay-legs button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 6px; border-radius: 14px; background: var(--ink-3); }
.relay-legs img { width: 44px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.relay-legs button > span { display: grid; min-width: 0; }
.relay-legs small { color: var(--tide); font-weight: 800; }
.relay-legs span span { color: var(--mist); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-links { display: grid; gap: 8px; }
.me-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); text-align: left; }
.me-link .i { width: 22px; height: 22px; color: var(--sun); flex: none; }
.me-link .i svg { width: 100%; height: 100%; }
.me-link > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.me-link small { color: var(--mist); font-size: 12.5px; }
.scout-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; background: rgba(155,140,255,.18); color: var(--violet); font-size: 12.5px; font-weight: 700; }
