:root {
	--rose: #ed5c6d;
	--crimson: #c52233;
	--wine: #a51c30;
	--deep: #5f021f;
	--blush: #ffe4e3;
	--cream: #fff7f3;
	--ink: #2b0d15;
	--muted: #8b6770;
	--line: rgba(95, 2, 31, .12);
	--card: #fff;
	--shadow: 0 1px 2px rgba(95, 2, 31, .08), 0 12px 32px -12px rgba(95, 2, 31, .28);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	--out: cubic-bezier(.16, 1, .3, 1);
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
	--bar-h: 64px;
	--gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
	margin: 0;
	min-height: 100vh;
	font: 500 16px/1.5 var(--sans);
	color: var(--ink);
	background:
		radial-gradient(1200px 700px at 110% -10%, rgba(237, 92, 109, .22), transparent 60%),
		radial-gradient(900px 600px at -20% 110%, rgba(165, 28, 48, .14), transparent 60%),
		var(--cream);
	background-attachment: fixed;
	overflow-x: hidden;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--rose); color: #fff; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 12px; }

@media (pointer: fine) {
	body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .balloon { cursor: none; }
	body.has-cursor input, body.has-cursor textarea { cursor: text; }
}

#ambient, #burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#ambient { z-index: 0; }
#burst { z-index: 90; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; }
.cursor i, .cursor b { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor i { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--crimson); }
.cursor b {
	width: 40px; height: 40px; margin: -20px 0 0 -20px;
	border: 1.5px solid rgba(197, 34, 51, .55);
	transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), background-color .3s, border-color .3s;
}
.cursor.is-hover b { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(237, 92, 109, .14); border-color: transparent; }
.cursor.is-down b { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cursor.is-drag b { width: 76px; height: 76px; margin: -38px 0 0 -38px; border-style: dashed; }

/* ---------- top bar ---------- */
.bar {
	position: fixed; z-index: 40; left: 0; right: 0; top: 0;
	height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
	padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: linear-gradient(to bottom, rgba(255, 247, 243, .92), rgba(255, 247, 243, .6));
	backdrop-filter: blur(14px) saturate(1.3);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	border-bottom: 1px solid var(--line);
}
.bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.bar__icon { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 16px -6px rgba(197, 34, 51, .6); transition: transform .5s var(--spring); }
.bar__brand:hover .bar__icon { transform: rotate(-10deg) scale(1.08); }
.bar__title { font: 600 1.15rem/1.1 var(--serif); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__actions { display: flex; align-items: center; gap: 6px; }
.bar__btn {
	position: relative; display: grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; text-decoration: none;
	transition: background-color .25s;
}
.bar__btn:hover { background: rgba(237, 92, 109, .12); }
.bar__btn svg { width: 22px; height: 22px; fill: none; stroke: var(--wine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bar__fav svg { fill: rgba(237, 92, 109, .18); }
.bar__count {
	position: absolute; right: 2px; top: 4px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--crimson); color: #fff; font: 800 11px/18px var(--sans); text-align: center;
}
.bar__count.bump { animation: bump .6s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.7); } 100% { transform: scale(1); } }
.bar__burger span { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--wine); transition: transform .45s var(--spring), opacity .2s; }
.bar__burger span:nth-child(1) { top: 15px; }
.bar__burger span:nth-child(2) { top: 21px; }
.bar__burger span:nth-child(3) { top: 27px; }
.bar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- view ---------- */
.view {
	position: relative; z-index: 1;
	min-height: 100vh;
	padding: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 20px) var(--gutter) calc(64px + env(safe-area-inset-bottom, 0px));
	outline: none;
}
.view > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.view.is-leaving { animation: leave .35s var(--out) forwards; }
.view.is-entering { animation: enter .7s var(--out) both; }
@keyframes leave { to { opacity: 0; transform: translateY(-18px) scale(.985); filter: blur(4px); } }
@keyframes enter { from { opacity: 0; transform: translateY(28px); } }

.curtain {
	position: fixed; inset: 0; z-index: 80; pointer-events: none;
	background: var(--rose);
	clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%));
}
.curtain.is-closing { transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); clip-path: circle(150vmax at var(--cx, 50%) var(--cy, 50%)); }
.curtain.is-opening { transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); clip-path: circle(0 at 50% 0%); }

/* ---------- common ---------- */
.h-display { font: 400 clamp(2.2rem, 7vw, 4.6rem)/.98 var(--serif); letter-spacing: -.03em; margin: 0; }
.h-display em { font-style: italic; color: var(--crimson); }
.h-section { font: 600 clamp(1.5rem, 4vw, 2.2rem)/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 .4em; }
.eyebrow { font: 800 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.muted { color: var(--muted); }
.split .ch { display: inline-block; will-change: transform; transition: color .3s; }
.split .ch.sp { width: .28em; }

.btn {
	--bg: var(--crimson); --fg: #fff;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
	background: var(--bg); color: var(--fg); text-decoration: none;
	font: 800 1rem/1 var(--sans); letter-spacing: .01em;
	box-shadow: 0 10px 24px -10px rgba(165, 28, 48, .7);
	transition: transform .4s var(--spring), box-shadow .3s, background-color .3s;
	overflow: hidden; isolation: isolate;
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: var(--deep); transform: translateY(101%); transition: transform .45s var(--out);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.96); }
.btn--ghost { --bg: transparent; --fg: var(--wine); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost::before { background: var(--blush); }
.btn--light { --bg: #fff; --fg: var(--crimson); }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px) rotate(-2deg); } 40%, 80% { transform: translateX(8px) rotate(2deg); } }

.card { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }

/* coach bubble (Sofia) */
.coach { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 28px; }
.coach__avatar {
	flex: none; width: 56px; height: 56px; padding: 0; border: 3px solid #fff; border-radius: 50%;
	background: #fff center/cover; box-shadow: var(--shadow);
	transition: transform .5s var(--spring);
}
.coach__avatar:hover { transform: rotate(-8deg) scale(1.08); }
.coach__avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.coach__bubble {
	position: relative; max-width: 620px; padding: 14px 18px; border-radius: 22px 22px 22px 6px;
	background: #fff; box-shadow: var(--shadow); font-size: .98rem; white-space: pre-line;
	transform-origin: 0 100%; transition: transform .5s var(--spring), opacity .3s;
}
.coach__bubble b { display: block; font: 800 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 6px; }
.coach.is-hidden .coach__bubble { transform: scale(.2); opacity: 0; pointer-events: none; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--rose); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.field { display: block; margin: 0 0 16px; }
.field textarea, .field select {
	width: 100%; min-height: 150px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 20px;
	background: #fff; resize: vertical; transition: border-color .25s, box-shadow .25s;
}
.field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 5px rgba(237, 92, 109, .15); }
.field textarea::placeholder { color: var(--rose); opacity: .75; }

/* toasts */
.toasts { position: fixed; z-index: 95; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast {
	padding: 14px 20px; border-radius: 18px; background: var(--deep); color: #fff; font-weight: 700; text-align: center;
	box-shadow: 0 18px 40px -16px rgba(43, 13, 21, .7);
	animation: toastIn .55s var(--spring) both;
}
.toast.out { animation: toastOut .35s var(--out) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(30px) scale(.8); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(.9); } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(43, 13, 21, .45); backdrop-filter: blur(6px); animation: fade .3s both; }
.modal__card { width: min(100%, 480px); max-height: 90vh; overflow: auto; background: #fff; border-radius: 30px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(43, 13, 21, .6); animation: pop .6s var(--spring) both; }
.modal__card h2 { font: 600 1.8rem/1.1 var(--serif); margin: 0 0 10px; }
.modal__card p { white-space: pre-line; color: var(--muted); }
.modal__row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-4deg); } }

/* drawer */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(43, 13, 21, .35); animation: fade .3s both; }
.drawer {
	position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
	padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
	background: var(--cream); box-shadow: -30px 0 60px -30px rgba(43, 13, 21, .5);
	display: flex; flex-direction: column; overflow-y: auto;
	animation: drawerIn .6s var(--out) both;
}
.drawer.out { animation: drawerOut .35s var(--out) forwards; }
@keyframes drawerIn { from { transform: translateX(100%); } }
@keyframes drawerOut { to { transform: translateX(100%); } }
.drawer__head { display: block; padding: 34px 28px 28px; background: linear-gradient(135deg, var(--rose), var(--wine) 70%, var(--deep)); }
.drawer__head img { display: block; width: 100%; height: auto; }
.drawer__list { list-style: none; margin: 0; padding: 14px 12px; }
.drawer__list a {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none;
	font: 600 1.25rem/1.2 var(--serif);
	animation: slideIn .6s var(--out) both; animation-delay: calc(var(--i) * 60ms + 120ms);
	transition: background-color .25s, padding-left .35s var(--spring);
}
.drawer__list a:hover { background: var(--blush); padding-left: 26px; }
.drawer__list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--rose); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } }
.drawer__langs { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 24px 28px; }

.chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
	border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .9rem;
	transition: transform .35s var(--spring), background-color .25s, color .25s, border-color .25s;
}
.chip:hover { transform: translateY(-2px); }
.chip img { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; }
.chip[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: #fff; }

/* ---------- welcome ---------- */
.welcome { display: grid; justify-items: center; text-align: center; gap: 22px; padding-top: 2vh; }
.welcome__logo { width: min(100%, 520px); height: auto; clip-path: inset(0 100% 0 0); animation: wipe 1.4s .2s var(--out) forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.welcome__icon { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 30px 50px -20px rgba(165, 28, 48, .7); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(4deg); } }
.welcome .h-display { max-width: 14ch; }
.legal { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.consent { display: flex; align-items: flex-start; gap: 14px; max-width: 520px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); text-align: left; cursor: pointer; color: var(--wine); font-weight: 600; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.heartcheck { flex: none; width: 30px; height: 30px; }
.heartcheck path { fill: transparent; stroke: var(--rose); stroke-width: 2; transition: fill .3s; transform-origin: 50% 55%; }
.consent input:checked + .heartcheck path { fill: var(--rose); animation: bump .6s var(--spring); }
.consent input:focus-visible + .heartcheck { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
.welcome .btn { min-width: min(100%, 320px); min-height: 72px; font-size: 1.4rem; }

/* ---------- home ---------- */
.home__hero { display: grid; gap: 18px; margin-bottom: 8px; }
.home__hint { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.home__hint svg { width: 18px; height: 18px; fill: none; stroke: var(--rose); stroke-width: 2; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px) rotate(-12deg); } }

.world { position: relative; margin-top: 12px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.world canvas { position: absolute; inset: 0; pointer-events: none; }
.balloon {
	--c: var(--rose); --fg: #fff;
	position: absolute; left: 0; top: 0; z-index: 1;
	display: grid; place-items: center; padding: 0 20px;
	border: 0; border-radius: 999px;
	background: radial-gradient(120% 140% at 30% 20%, rgba(255, 255, 255, .45), transparent 42%), var(--c);
	color: var(--fg); font: 700 clamp(.86rem, 2.4vw, 1rem)/1.15 var(--sans); text-align: center;
	box-shadow: inset -6px -8px 18px rgba(0, 0, 0, .12), 0 16px 26px -18px rgba(43, 13, 21, .8);
	will-change: transform; touch-action: pan-y;
	transition: filter .25s;
}
.balloon::after { /* knot */
	content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 8px; margin-left: -5px;
	background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: brightness(.85);
}
.balloon:hover { filter: brightness(1.06) saturate(1.1); }
.balloon small { display: block; margin-top: 2px; font: 800 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.balloon.is-popped { transition: transform .25s var(--spring), opacity .2s .1s; opacity: 0; }
.balloon--special { font-family: var(--serif); font-weight: 600; font-style: italic; font-size: clamp(.95rem, 2.6vw, 1.1rem); }

/* static fallback when motion is reduced */
.world.is-static { display: flex; flex-wrap: wrap; gap: 14px; }
.world.is-static .balloon { position: relative; min-height: 64px; transform: none !important; }
.world.is-static canvas { display: none; }

/* ---------- thread ---------- */
.thread__head { position: sticky; z-index: 5; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 8px); display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.thread__head h1 { flex: 1; min-width: 0; margin: 0; font: 600 clamp(1.1rem, 3.4vw, 1.5rem)/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread__head .count { font: 800 .8rem/1 var(--sans); color: var(--rose); white-space: nowrap; }
.back { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--crimson); text-decoration: none; transition: transform .4s var(--spring); }
.back:hover { transform: translateX(-3px) scale(1.06); }
.back svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.msgs { display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; list-style: none; transform: skewY(var(--skew, 0deg)); transform-origin: 50% 0; }
.msg { display: flex; flex-direction: column; align-items: flex-start; }
.msg__bubble {
	position: relative; max-width: min(92%, 640px); padding: 14px 18px; border: 0; border-radius: 24px 24px 24px 6px;
	background: #fff; color: var(--ink); text-align: left; box-shadow: var(--shadow);
	font: 500 1.02rem/1.5 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere;
	transition: transform .55s var(--spring), background-color .35s, color .35s, border-radius .45s var(--spring), box-shadow .35s;
}
.msg__bubble:hover { transform: translateX(6px) rotate(-.4deg); }
.msg__bubble.ascii { font: 500 .92rem/1.25 var(--mono); overflow-x: auto; white-space: pre; max-width: 100%; }
.msg.is-open { align-items: flex-end; }
.msg.is-open .msg__bubble { background: linear-gradient(135deg, var(--rose), var(--crimson)); color: #fff; border-radius: 24px 24px 6px 24px; box-shadow: 0 18px 34px -16px rgba(197, 34, 51, .9); transform: none; }
.msg.is-locked .msg__bubble { color: var(--muted); }
.msg__lock { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--blush); color: var(--wine); font: 800 .66rem/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.msg__fav { position: absolute; right: -6px; top: -8px; width: 22px; height: 22px; fill: var(--rose); stroke: #fff; stroke-width: 2; }
.msg__header { align-self: center; margin: 18px 0 4px; padding: 6px 16px; border-radius: 999px; background: var(--deep); color: #fff; font: 800 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

.msg__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.act {
	position: relative; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
	background: #fff; box-shadow: var(--shadow); text-decoration: none;
	animation: actIn .55s var(--spring) both; animation-delay: calc(var(--i) * 45ms);
	transition: transform .35s var(--spring), background-color .25s;
}
.act:hover { transform: translateY(-4px) scale(1.08); background: var(--blush); }
.act svg { width: 22px; height: 22px; fill: none; stroke: var(--wine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act .solid { fill: var(--wine); stroke: none; }
.act[aria-pressed="true"] { background: var(--rose); }
.act[aria-pressed="true"] svg { stroke: #fff; fill: #fff; }
.act span { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font: 700 .66rem/1 var(--sans); color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.act:hover span, .act:focus-visible span { opacity: 1; }
@keyframes actIn { from { opacity: 0; transform: translateY(-16px) scale(.3); } }

.reveal { opacity: 0; transform: translateY(26px) scale(.94); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--out), transform .7s var(--spring); transition-delay: var(--d, 0ms); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.empty { display: grid; justify-items: center; gap: 14px; padding: 60px 16px; text-align: center; }
.empty svg { width: 90px; height: 90px; fill: var(--blush); stroke: var(--rose); stroke-width: 1.2; animation: float 3s ease-in-out infinite; }

/* ---------- random ---------- */
.random { display: grid; gap: 18px; }
.random__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); position: relative; }
.seg button { position: relative; z-index: 1; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 800 .82rem/1 var(--sans); color: var(--muted); transition: color .3s; }
.seg button[aria-pressed="true"] { color: #fff; }
.seg__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--crimson); transition: transform .5s var(--spring), width .5s var(--spring); }
.stage { position: relative; min-height: min(48vh, 420px); display: grid; place-items: center; perspective: 1200px; }
.quote {
	position: relative; width: min(100%, 680px); min-height: 340px; padding: clamp(28px, 6vw, 56px);
	border-radius: 36px; background: #fff; box-shadow: 0 40px 80px -40px rgba(95, 2, 31, .55);
	display: grid; align-content: center; gap: 18px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
	will-change: transform;
}
.quote::before { content: "“"; position: absolute; left: 22px; top: -18px; font: 400 9rem/1 var(--serif); color: var(--blush); pointer-events: none; }
.quote__subject { position: relative; font: 800 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.quote__text { position: relative; margin: 0; font: 400 clamp(1.35rem, 3.6vw, 2.1rem)/1.3 var(--serif); letter-spacing: -.01em; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 3.9em; }
.quote__text.ascii { font: 500 clamp(.8rem, 2.4vw, 1.05rem)/1.2 var(--mono); white-space: pre; overflow-x: auto; }
.rsvp { position: relative; display: grid; place-items: center; min-height: 3.9em; font: 600 clamp(2rem, 7vw, 3.4rem)/1 var(--serif); }
.rsvp__word { display: grid; grid-template-columns: 1fr auto 1fr; width: 100%; }
.rsvp__word .l { text-align: right; }
.rsvp__word .o { color: var(--crimson); }
.rsvp::before, .rsvp::after { content: ""; position: absolute; left: 50%; width: 2px; height: 12px; background: var(--rose); }
.rsvp::before { top: -8px; }
.rsvp::after { bottom: -8px; }
.rsvp__bar { position: absolute; left: 0; right: 0; bottom: -26px; height: 3px; border-radius: 3px; background: var(--blush); overflow: hidden; }
.rsvp__bar i { display: block; height: 100%; width: 0; background: var(--rose); }
.stamp { position: absolute; top: 28px; padding: 6px 14px; border: 3px solid; border-radius: 12px; font: 800 1rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: 0; pointer-events: none; }
.stamp--prev { left: 24px; color: var(--muted); transform: rotate(-14deg); }
.stamp--next { right: 24px; color: var(--crimson); transform: rotate(14deg); }
.controls { display: flex; justify-content: center; align-items: center; gap: 18px; }
.round { display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); transition: transform .45s var(--spring), background-color .25s; }
.round:hover { transform: scale(1.1); }
.round:active { transform: scale(.9); }
.round svg { width: 26px; height: 26px; fill: none; stroke: var(--wine); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.round--big { width: 84px; height: 84px; background: var(--crimson); }
.round--big svg { width: 34px; height: 34px; stroke: #fff; }
.round--big.spin svg { animation: spin .7s var(--spring); }
@keyframes spin { to { transform: rotate(360deg); } }
.fab { position: fixed; z-index: 30; right: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 64px; height: 64px; background: var(--rose); animation: pop .7s .4s var(--spring) both; }
.fab svg { stroke: #fff; }
.center { text-align: center; }
.linkish { border: 0; background: none; color: var(--crimson); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- rate / share ---------- */
.stars { display: flex; justify-content: center; gap: clamp(4px, 2vw, 14px); margin: 12px 0 30px; }
.star { width: clamp(48px, 13vw, 68px); height: clamp(48px, 13vw, 68px); padding: 0; border: 0; background: none; transition: transform .45s var(--spring); }
.star svg { width: 100%; height: 100%; fill: #fff; stroke: var(--rose); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 8px 12px rgba(197, 34, 51, .25)); transition: fill .25s; }
.star.on svg { fill: var(--rose); }
.star.lit { transform: translateY(-8px) rotate(-8deg) scale(1.12); }
.star.boing { animation: boing .7s var(--spring); }
@keyframes boing { 30% { transform: scale(1.45) rotate(20deg); } 60% { transform: scale(.9); } }
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.share-grid .btn { width: 100%; }
.btn--fb { --bg: #3b5998; }
.btn--tw { --bg: #111; }
.btn--wa { --bg: #25d366; }
.stack { display: grid; gap: 12px; }
.section { margin: 36px 0 0; }

/* ---------- premium ---------- */
.apps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.appcard {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 180px; padding: 24px; border-radius: 28px; overflow: hidden; color: #fff; text-decoration: none;
	transform-style: preserve-3d; transition: transform .6s var(--out); box-shadow: var(--shadow);
}
.appcard__bg { position: absolute; inset: -20px; background: center/cover; transition: transform .6s var(--out); }
.appcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(95, 2, 31, .85), rgba(237, 92, 109, .25)); }
.appcard h3 { position: relative; z-index: 1; margin: 0; font: 600 clamp(1.5rem, 4vw, 2rem)/1.05 var(--serif); }
.appcard img { position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 20px 30px -12px rgba(0, 0, 0, .5); transform: translateZ(40px); }
.premium-ok { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--blush); color: var(--wine); font-weight: 800; }

/* ---------- settings ---------- */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); cursor: pointer; font-weight: 700; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { flex: none; position: relative; width: 58px; height: 34px; border-radius: 999px; background: #e8d6d8; transition: background-color .3s; }
.switch__track::after { content: ""; position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); transition: transform .5s var(--spring), width .25s; }
.switch input:checked + .switch__track { background: var(--rose); }
.switch input:checked + .switch__track::after { transform: translateX(24px); }
.switch:active .switch__track::after { width: 32px; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--rose); outline-offset: 3px; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 560px) {
	:root { --bar-h: 58px; }
	.bar__title { font-size: 1rem; }
	.bar__icon { width: 34px; height: 34px; }
	.share-grid { grid-template-columns: 1fr; }
	.controls { gap: 12px; }
	.quote { min-height: 300px; border-radius: 28px; }
	.coach__avatar { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1; transform: none; }
	.welcome__logo { clip-path: none; }
}
