/* ============================================================
   Cute Text — web app
   Palette from img/2026/theme_palette.txt; every theme is derived
   from one colour (see js/themes.js) and lands in these tokens.
   ============================================================ */

@font-face { font-family: 'Fredoka'; src: url(../assets/fonts/Fredoka-latin.woff2) format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fredoka'; src: url(../assets/fonts/Fredoka-latin-ext.woff2) format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
/* Card fonts carried over from the Android app */
@font-face { font-family: 'Eutemia'; src: url(../assets/fonts/Eutemia.ttf); font-display: swap; }
@font-face { font-family: 'Roboto Light'; src: url(../assets/fonts/Roboto-Light.ttf); font-display: swap; }
@font-face { font-family: 'Grinched'; src: url(../assets/fonts/Grinched.ttf); font-display: swap; }
@font-face { font-family: 'Helvetica CT'; src: url(../assets/fonts/Helvetica.ttf); font-display: swap; }
@font-face { font-family: 'Libertango'; src: url(../assets/fonts/Libertango.ttf); font-display: swap; }
@font-face { font-family: 'Metal Macabre'; src: url(../assets/fonts/MetalMacabre.ttf); font-display: swap; }
@font-face { font-family: 'Parry Hotter'; src: url(../assets/fonts/ParryHotter.ttf); font-display: swap; }
@font-face { font-family: 'SCRIPTIN'; src: url(../assets/fonts/SCRIPTIN.ttf); font-display: swap; }
@font-face { font-family: 'The Godfather'; src: url(../assets/fonts/TheGodfather_v2.ttf); font-display: swap; }
@font-face { font-family: 'Aka Dora'; src: url(../assets/fonts/akaDora.ttf); font-display: swap; }
@font-face { font-family: 'Waltograph'; src: url(../assets/fonts/waltograph42.ttf); font-display: swap; }

:root {
  --accent: #5B35F5;
  --accent-h: 252;
  --bg-0: #120B2E;
  --bg-1: #1d0f55;
  --bg-2: #3216A8;
  --wave-1: #7040FF;
  --wave-2: #4D27D5;
  --wave-3: #A34BFF;
  --soft: #B8A7FF;
  --pink: #EC4DFF;
  --glow: #FFD66B;

  --ink: #fff;
  --ink-2: rgb(255 255 255 / .72);
  --ink-3: rgb(255 255 255 / .5);
  --glass: rgb(255 255 255 / .08);
  --glass-2: rgb(255 255 255 / .14);
  --line: rgb(255 255 255 / .14);

  --font: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --r-lg: 32px;
  --r-md: 20px;
  --gutter: clamp(16px, 4vw, 48px);
  --topbar: 72px;
  --dock: 0px;
  color-scheme: dark;
}

@media (max-width: 760px) { :root { --topbar: 60px; --dock: 76px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg-0); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; overflow-x: hidden;
  font-family: var(--font); color: var(--ink); background: var(--bg-0);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  transition: background-color .6s var(--ease-out);
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 12px; }
.noscript { padding: 40px; text-align: center; }

/* View transitions (theme wipe) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }

/* ---------- ambient scenery ---------- */
.scenery { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 10%, var(--bg-2) 0%, var(--bg-1) 45%, var(--bg-0) 100%); }
.scenery__glow { position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at var(--gx, 78%) var(--gy, 18%), color-mix(in oklab, var(--pink) 45%, transparent), transparent 70%),
    radial-gradient(35% 35% at 12% 90%, color-mix(in oklab, var(--wave-1) 40%, transparent), transparent 70%);
  filter: blur(20px); animation: breathe 12s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
.deco { position: absolute; width: min(34vw, 420px); height: auto; filter: drop-shadow(0 20px 60px rgb(0 0 0 / .35));
  transition: translate .8s var(--ease-out); translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px); }
.deco path { transition: fill .8s var(--ease-out); }
.deco--tl { top: 0; left: 0; animation: floatA 14s ease-in-out infinite alternate; transform-origin: 0 0; }
.deco--bl { bottom: 0; left: 0; width: min(40vw, 470px); animation: floatB 16s ease-in-out infinite alternate; transform-origin: 0 100%; }
.deco--br { bottom: 0; right: 0; width: min(30vw, 360px); animation: floatA 18s ease-in-out infinite alternate-reverse; transform-origin: 100% 100%; }
@keyframes floatA { to { transform: scale(1.06) rotate(-1.5deg); } }
@keyframes floatB { to { transform: scale(1.04) rotate(1.2deg); } }
.orb { position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--glow), #FF9BFF 55%, #A94BFF);
  box-shadow: 0 0 40px rgb(255 155 255 / .45); animation: orb 9s ease-in-out infinite alternate; }
.orb--1 { width: 58px; height: 58px; top: 14%; right: 26%; }
.orb--2 { width: 16px; height: 16px; top: 21%; right: 23%; animation-delay: -3s; }
.orb { transition: opacity .6s; }
.is-home .orb { opacity: 0; }
.orb--3 { width: 76px; height: 76px; bottom: 26%; right: 7%; animation-delay: -6s; }
@keyframes orb { to { transform: translate3d(12px, -26px, 0); } }
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.playground { position: fixed; inset: 0; z-index: 1; touch-action: none; }

/* ---------- top bar ---------- */
.topbar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--topbar);
  display: flex; align-items: center; gap: 20px; padding-inline: var(--gutter);
  transition: translate .5s var(--ease-out), opacity .4s; }
.topbar::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--bg-0) 85%, transparent), transparent);
  backdrop-filter: blur(14px); mask: linear-gradient(to bottom, #000 60%, transparent); }
body.is-scrolled .topbar::before { opacity: 1; }
body.is-chromeless .topbar, body.is-chromeless .dock { translate: 0 -120%; opacity: 0; pointer-events: none; }
body.is-chromeless .dock { translate: 0 120%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; overflow: visible; }
.brand__path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s .2s var(--ease-io) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.brand__dot { transform-box: fill-box; transform-origin: center; animation: dot 1.4s ease-in-out infinite; }
.brand__dot:nth-of-type(2) { animation-delay: .15s; }
.brand__dot:nth-of-type(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-14px); opacity: 1; } }
.brand__word { font-weight: 700; font-style: italic; letter-spacing: .02em; font-size: 20px;
  background: linear-gradient(90deg, #fff 30%, var(--soft) 60%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__word b { font-weight: 700; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { position: relative; text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-2); transition: color .25s, background .25s; }
.topnav a:hover { color: #fff; background: var(--glass); }
.topnav a.is-active { color: #fff; }
.topnav a.is-active::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.topbar__tools { display: flex; gap: 6px; }
.topnav + .topbar__tools { margin-left: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2);
  background: var(--glass); border: 1px solid var(--line); transition: background .25s, color .25s, transform .3s var(--ease-spring); }
.icon-btn:hover { color: #fff; background: var(--glass-2); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 20px; height: 20px; }
#soundBtn[aria-pressed="false"] .sound-wave { opacity: .15; }
.theme-btn__orb { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 90deg, #f7931a, #eab308, #22c55e, #14b8a6, #0ea5e9, #6366f1, #7c3aed, #ec4899, #f97316, #f7931a);
  box-shadow: 0 0 0 3px rgb(255 255 255 / .9), 0 0 16px var(--accent); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

@media (max-width: 760px) {
  .topnav { display: none; }
  .topbar__tools { margin-left: auto; }
  .topbar__tools a.icon-btn { display: none; }
  .brand__word { font-size: 17px; }
}

/* ---------- theme fan (radial picker) ---------- */
.theme-fan { position: fixed; z-index: 60; inset: 0; }
.theme-fan__scrim { position: absolute; inset: 0; background: rgb(8 4 24 / .45); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.theme-fan.is-open .theme-fan__scrim { opacity: 1; }
.theme-fan__orb { position: absolute; top: 0; left: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  background: radial-gradient(circle at 32% 28%, color-mix(in oklab, var(--c) 30%, #fff), var(--c) 55%, color-mix(in oklab, var(--c) 60%, #000));
  box-shadow: 0 10px 30px color-mix(in oklab, var(--c) 60%, transparent), inset 0 -6px 12px rgb(0 0 0 / .2);
  transform: translate(var(--sx), var(--sy)) scale(.2); opacity: 0;
  transition: transform .6s var(--ease-spring) var(--d), opacity .3s var(--d); }
.theme-fan.is-open .theme-fan__orb { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 1; }
.theme-fan__orb:hover { transform: translate(var(--tx), var(--ty)) scale(1.18) !important; }
.theme-fan__orb.is-current::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #fff; }
.theme-fan__label { position: absolute; top: 0; left: 0; translate: -50% -50%; pointer-events: none;
  padding: 14px 18px; border-radius: 24px; background: #fff; color: var(--bg-0); font-weight: 700; font-size: 20px; text-align: center;
  box-shadow: 0 20px 60px rgb(0 0 0 / .4); opacity: 0; transition: opacity .2s, transform .4s var(--ease-spring); transform: scale(.7); }
.theme-fan__label small { display: block; font-weight: 400; font-size: 12px; white-space: normal; opacity: .7; }
.theme-fan__label.is-on { opacity: 1; transform: none; }
.theme-fan__label small { margin-top: 4px; }

/* ---------- bottom dock (mobile) ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); height: 64px;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-radius: 24px;
    background: color-mix(in oklab, var(--bg-1) 75%, transparent); backdrop-filter: blur(18px); border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgb(0 0 0 / .4); transition: translate .5s var(--ease-out), opacity .4s; }
  .dock a { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: 20px; }
  .dock a small { font-size: 10px; font-weight: 500; }
  .dock a.is-active { color: #fff; }
  .dock a.is-active span { transform: translateY(-2px) scale(1.12); }
  .dock span { transition: transform .35s var(--ease-spring); }
  .dock__main { justify-self: center; width: 56px; height: 56px; margin-top: -26px; border-radius: 50%; font-size: 26px;
    background: linear-gradient(135deg, var(--accent), var(--pink)); box-shadow: 0 10px 30px color-mix(in oklab, var(--pink) 60%, transparent), 0 0 0 5px var(--bg-0); }
  .dock__main:active span { display: inline-block; transform: rotate(180deg) scale(.9); }
}

/* ---------- custom cursor ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input[type="text"], .has-cursor textarea, .has-cursor [contenteditable="true"] { cursor: text !important; }
.cursor { position: fixed; inset: 0; z-index: 1000; pointer-events: none; mix-blend-mode: difference; }
.cursor.is-hidden { opacity: 0; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; }
.cursor__ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid #fff; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.cursor.is-hover .cursor__ring { background: rgb(255 255 255 / .15); }
.cursor.has-label .cursor__ring { background: #fff; }
.cursor.is-down .cursor__ring { border-width: 3px; }
.cursor__label { font-size: 5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.has-label .cursor__label { opacity: 1; }

/* ---------- view host & page transitions ---------- */
.view-host { position: relative; z-index: 5; min-height: 100dvh; outline: none; }
.view { min-height: 100dvh; padding: calc(var(--topbar) + 24px) var(--gutter) calc(var(--dock) + 64px); }
.view.is-entering { opacity: 0; }
.view.is-entering [data-stage] { opacity: 0; transform: translateY(40px); }
.view [data-stage] { transition: opacity .8s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms); }
.view { transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), filter .5s; }
.view.is-leaving { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(-30px) scale(.98); filter: blur(8px); pointer-events: none; }
.is-home .view-host, .is-home .view { pointer-events: none; } /* let the playground canvas underneath get the pointer */
.is-home .view a, .is-home .view button, .is-home .view [data-interactive] { pointer-events: auto; }

[data-reveal] { opacity: 0; transform: translateY(36px) scale(.97); transition: opacity .7s var(--ease-out) var(--d), transform .9s var(--ease-spring) var(--d); }
[data-reveal].is-in { opacity: 1; transform: none; }

.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; transform-origin: 50% 100%; animation: charIn 1s var(--ease-spring) both; animation-delay: calc(var(--i) * 28ms + var(--split-delay, 120ms)); }
@keyframes charIn { from { opacity: 0; transform: translateY(.7em) rotate(12deg) scale(.6); } }
.split-char.is-jelly { animation: jelly .8s var(--ease-out); }
@keyframes jelly { 0% { transform: none; } 20% { transform: translateY(-.18em) scale(1.12, .9); } 45% { transform: translateY(0) scale(.92, 1.08); } 70% { transform: scale(1.04, .97); } 100% { transform: none; } }

/* ---------- shared UI ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); font-weight: 500; }
.kicker::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--glow)); }
.h-display { font-size: clamp(48px, 9vw, 150px); line-height: .9; margin: 12px 0 0; font-weight: 700; letter-spacing: -.02em; }
.h-display em { font-style: italic; color: var(--pink); padding-right: .08em; }
.h-display em .split-char { background: linear-gradient(100deg, var(--pink), var(--glow) 140%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.h-2 { font-size: clamp(34px, 5.5vw, 76px); line-height: .95; margin: 10px 0 0; font-weight: 700; letter-spacing: -.01em; }
.lede { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }

.btn { --b: var(--glass); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; background: var(--b); border: 1px solid var(--line);
  transition: transform .35s var(--ease-spring), background .3s, box-shadow .3s; isolation: isolate; overflow: hidden; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.95); }
.btn--primary { --b: linear-gradient(120deg, var(--accent), var(--pink)); border-color: transparent; box-shadow: 0 14px 40px color-mix(in oklab, var(--pink) 45%, transparent); }
.btn--primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgb(255 255 255 / .45), transparent 70%); translate: -100% 0; transition: translate .8s var(--ease-out); }
.btn--primary:hover::after { translate: 100% 0; }
.btn--light { --b: #fff; color: var(--bg-0); border-color: transparent; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn .emoji { font-size: 1.2em; display: inline-block; transition: transform .5s var(--ease-spring); }
.btn:hover .emoji { transform: rotate(-14deg) scale(1.2); }

.back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; margin-bottom: 18px; }
.back__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--glass); transition: transform .4s var(--ease-spring), background .3s; }
.back:hover .back__icon { transform: translateX(-4px); background: var(--glass-2); }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.chip b { color: #fff; font-weight: 600; }

.wrap { max-width: 1240px; margin: 0 auto; }

/* ---------- welcome ---------- */
.welcome { display: grid; place-items: center; text-align: center; }
.welcome__card { max-width: 620px; width: 100%; }
.welcome__bubble { width: 120px; margin: 0 auto 10px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-4deg); } }
.welcome .h-2 { margin-bottom: 14px; }
.welcome .lede { margin: 0 auto 32px; }
.name-field { position: relative; margin: 0 auto 10px; max-width: 480px; }
.name-field input { width: 100%; height: 84px; border-radius: 28px; border: 2px solid var(--line); background: rgb(255 255 255 / .06);
  text-align: center; font-size: 36px; font-weight: 600; outline: none; transition: border-color .3s, background .3s, transform .3s var(--ease-spring); }
.name-field input::placeholder { color: var(--ink-3); font-weight: 400; }
.name-field input:focus { border-color: var(--pink); background: rgb(255 255 255 / .1); }
.name-field.is-shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.name-preview { height: 1.2em; font-size: 22px; color: var(--soft); margin: 14px 0 20px; }
.name-preview .tw { animation: pop .35s var(--ease-spring) both; }
.check { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink-2); font-size: 15px; margin: 0 auto 28px; max-width: 460px; text-align: left; cursor: pointer; }
.check input { appearance: none; flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--soft); display: grid; place-items: center; transition: background .2s, transform .3s var(--ease-spring); }
.check input:checked { background: var(--pink); border-color: var(--pink); transform: rotate(-8deg) scale(1.1); }
.check input:checked::after { content: '✓'; color: #fff; font-weight: 700; }
.check a { color: #fff; }

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: start; }
.home__hero { padding-top: clamp(10px, 6vh, 90px); }
.home__hey { font-size: clamp(18px, 2vw, 24px); color: var(--soft); font-weight: 500; }
.home__hey .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.home .lede { margin: 22px 0 30px; }
.home__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.home__browse { color: var(--ink-2); font-weight: 500; text-decoration-color: var(--pink); text-underline-offset: 6px; padding: 12px 6px; }
.daily { position: relative; margin-top: clamp(20px, 12vh, 150px); justify-self: end; max-width: 380px; text-decoration: none; display: block;
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ease-out); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -12px; } }
.daily__bubble { position: relative; padding: 26px 28px 22px; border-radius: 30px 30px 30px 8px; background: rgb(255 255 255 / .96); color: var(--bg-0);
  box-shadow: 0 30px 80px rgb(0 0 0 / .35), 0 0 0 1px rgb(255 255 255 / .5); overflow: hidden; }
.daily__bubble::before { content: ''; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--pink) 18%, transparent), transparent 60%); pointer-events: none; }
.daily__tag { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.daily__text { font-size: 21px; line-height: 1.35; margin: 10px 0 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.daily__read { font-weight: 600; color: var(--accent); }
.daily__tail { position: absolute; left: 18px; bottom: -16px; width: 30px; height: 20px; background: rgb(255 255 255 / .96); clip-path: polygon(0 0, 100% 0, 0 100%); }
.home__hint { position: fixed; z-index: 6; left: 50%; bottom: calc(var(--dock) + 22px); translate: -50% 0; padding: 10px 18px; border-radius: 999px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-2); background: rgb(0 0 0 / .25); backdrop-filter: blur(10px); pointer-events: none; transition: opacity .6s; animation: hint 2.2s ease-in-out infinite; }
.home__hint.is-gone { opacity: 0; }
@keyframes hint { 50% { translate: -50% -6px; } }
@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; gap: 10px; }
  .daily__text { -webkit-line-clamp: 3; line-clamp: 3; font-size: 18px; }
  .daily__bubble { padding: 18px 20px 16px; }
  .daily { justify-self: start; margin-top: 18px; max-width: 100%; }
}

/* ---------- browse (giant rows) ---------- */
.rows { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.row { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.row a { position: relative; z-index: 1; display: grid; grid-template-columns: 70px 1fr minmax(0, 320px) 60px; align-items: center; gap: 24px; padding: 24px 8px; text-decoration: none; }
.row__fill { position: absolute; inset: 0; background: linear-gradient(100deg, var(--c), color-mix(in oklab, var(--c) 55%, var(--pink))); transform: scaleY(0); transform-origin: var(--from, bottom); transition: transform .6s var(--ease-io); }
.row:hover .row__fill, .row a:focus-visible + .row__fill { transform: scaleY(1); }
.row__num { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row__title { font-size: clamp(28px, 4.2vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -.01em; transition: transform .6s var(--ease-out), letter-spacing .6s var(--ease-out); }
.row:hover .row__title { transform: translateX(14px); letter-spacing: .01em; }
.row__desc { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.row:hover .row__desc, .row:hover .row__num { color: #fff; }
.row__go { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 22px; transition: transform .5s var(--ease-spring), background .3s; }
.row:hover .row__go { background: #fff; color: var(--c); transform: rotate(-45deg); }
.row__dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 12px; box-shadow: 0 0 18px var(--c); transition: background .3s; }
.row:hover .row__dot { background: #fff; }
.floaty-emoji { position: fixed; z-index: 30; top: 0; left: 0; font-size: 110px; pointer-events: none; opacity: 0; transition: opacity .3s, scale .4s var(--ease-spring); scale: .3; filter: drop-shadow(0 20px 30px rgb(0 0 0 / .35)); }
.floaty-emoji.is-on { opacity: 1; scale: 1; }
@media (max-width: 760px) {
  .row a { grid-template-columns: 1fr 44px; gap: 8px 14px; padding: 20px 4px; }
  .row__num, .row__desc { display: none; }
  .row__go { width: 44px; height: 44px; }
}

/* ---------- category ---------- */
.cat-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 44px; }
.cat-head .lede { margin: 18px 0 0; }
.cat-head__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cat-head__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.notice { margin: -20px 0 30px; color: var(--glow); font-size: 15px; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.topic { --h: var(--accent-h); position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; padding: 22px; text-decoration: none;
  border-radius: 30px 30px 30px 8px; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, hsl(calc(var(--h) + var(--shift)) 85% 62%), hsl(calc(var(--h) + var(--shift) + 30) 80% 45%));
  box-shadow: 0 20px 40px rgb(0 0 0 / .25);
  transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateZ(0); transition: transform .5s var(--ease-out), box-shadow .4s; }
.topic::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .35), transparent 60%); opacity: 0; transition: opacity .4s; }
.topic:hover::before { opacity: 1; }
.topic:hover { box-shadow: 0 30px 60px rgb(0 0 0 / .35); }
.topic__emoji { font-size: 52px; line-height: 1; transition: transform .6s var(--ease-spring); display: inline-block; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .2)); }
.topic:hover .topic__emoji { transform: scale(1.25) rotate(-10deg) translateY(-4px); }
.topic__title { font-size: 23px; font-weight: 600; line-height: 1.1; margin-top: 18px; text-shadow: 0 2px 10px rgb(0 0 0 / .15); }
.topic__count { font-size: 14px; opacity: .85; margin-top: 6px; }
.topic__peek { position: absolute; right: 16px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / .25); display: grid; place-items: center; transition: transform .5s var(--ease-spring); }
.topic:hover .topic__peek { transform: rotate(-45deg) scale(1.1); background: #fff; color: var(--bg-0); }
@media (max-width: 760px) {
  .cat-head { grid-template-columns: 1fr; }
  .cat-head__actions { flex-direction: row; flex-wrap: wrap; }
  .topics { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .topic { min-height: 150px; padding: 16px; }
  .topic__emoji { font-size: 40px; }
  .topic__title { font-size: 18px; }
}

/* ---------- chat thread (topic + favourites) ---------- */
.thread { max-width: 820px; margin: 0 auto; }
.thread__head { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.thread__avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: linear-gradient(135deg, var(--accent), var(--pink)); box-shadow: 0 10px 30px color-mix(in oklab, var(--pink) 40%, transparent); }
.thread__head h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1; }
.thread__head p { margin: 6px 0 0; color: var(--ink-2); }
.msgs { display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
.msg { position: relative; max-width: min(620px, 88%); align-self: flex-start; }
.msg:nth-child(even) { align-self: flex-end; }
.msg__bubble { display: block; width: 100%; text-align: left; padding: 18px 22px; border-radius: 26px 26px 26px 6px; background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(10px);
  font-size: 18px; line-height: 1.45; transition: transform .45s var(--ease-spring), background .3s; transform-origin: 0 100%; }
.msg:nth-child(even) .msg__bubble { border-radius: 26px 26px 6px 26px; transform-origin: 100% 100%; background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 55%, var(--pink))); border-color: transparent; }
.msg__bubble:hover { transform: scale(1.02) rotate(-.5deg); }
.msg:nth-child(even) .msg__bubble:hover { transform: scale(1.02) rotate(.5deg); }
.msg.is-pop { animation: msgIn .7s var(--ease-spring) both; animation-delay: var(--d); }
@keyframes msgIn { from { opacity: 0; transform: translateY(24px) scale(.6); } }
.msg__tools { position: absolute; top: 50%; right: -8px; translate: 100% -50%; display: flex; gap: 6px; opacity: 0; transition: opacity .25s, translate .35s var(--ease-spring); }
.msg:nth-child(even) .msg__tools { right: auto; left: -8px; translate: -100% -50%; flex-direction: row-reverse; }
.msg:hover .msg__tools, .msg:focus-within .msg__tools { opacity: 1; }
.mini { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); font-size: 17px; transition: transform .35s var(--ease-spring), background .2s; }
.mini:hover { transform: scale(1.15); background: #fff; }
.mini.is-on { background: var(--pink); }
.typing { align-self: flex-start; display: inline-flex; gap: 6px; padding: 18px 22px; border-radius: 26px 26px 26px 6px; background: var(--glass-2); }
.typing i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@media (max-width: 760px) { .msg__tools { display: none; } .msg__bubble { font-size: 16px; } }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty__icon { font-size: 90px; display: inline-block; animation: bob 3s ease-in-out infinite; }
.empty p { max-width: 38ch; margin: 14px auto 26px; font-size: 18px; }

/* ---------- reader ---------- */
.reader { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: calc(var(--dock) + 24px); }
.reader__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reader__top .back { margin: 0; }
.reader__crumbs { color: var(--ink-2); font-size: 15px; text-align: right; }
.reader__crumbs b { color: #fff; display: block; font-size: 17px; }
.reader__stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 380px; margin: 10px 0; perspective: 1200px; }
.rcard { position: relative; grid-area: 1 / 1; width: min(720px, 92vw); min-height: 300px; padding: clamp(28px, 5vw, 56px); border-radius: 44px 44px 44px 12px;
  background: #fff; color: #1a1033; box-shadow: 0 40px 100px rgb(0 0 0 / .45); touch-action: pan-y; user-select: none;
  display: flex; flex-direction: column; justify-content: center; will-change: transform; cursor: grab; }
.rcard:active { cursor: grabbing; }
.rcard::after { content: ''; position: absolute; left: 34px; bottom: -22px; width: 44px; height: 28px; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
.rcard--ghost { transform: translateY(26px) scale(.93) rotate(-2deg); opacity: .55; background: color-mix(in oklab, #fff 70%, var(--accent)); pointer-events: none; }
.rcard--ghost2 { transform: translateY(48px) scale(.86) rotate(3deg); opacity: .3; }
.rcard__num { position: absolute; top: 22px; right: 28px; font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.rcard__quote { position: absolute; top: -34px; left: 30px; font-size: 120px; line-height: 1; color: var(--pink); font-weight: 700; text-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.rcard__text { font-size: clamp(22px, 3vw, 38px); line-height: 1.3; font-weight: 500; outline: none; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rcard__text[contenteditable="true"] { box-shadow: 0 0 0 3px var(--pink); padding: 8px 12px; margin: -8px -12px; user-select: text; cursor: text; background: rgb(236 77 255 / .06); }
.rcard__sign { margin-top: 20px; font-family: 'SCRIPTIN', cursive; font-size: 30px; color: var(--accent); }
.rcard.is-long .rcard__text { font-size: clamp(18px, 2.2vw, 26px); }
.tw { display: inline; animation: pop .4s var(--ease-spring) both; }
@keyframes pop { from { opacity: 0; } }
.caret { display: inline-block; width: 3px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--pink); border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.reader__hint { text-align: center; color: var(--ink-3); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 16px 0 12px; }
.reader__bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.rbtn { position: relative; width: 60px; height: 60px; border-radius: 22px; display: grid; place-items: center; font-size: 24px; background: var(--glass-2); border: 1px solid var(--line); transition: transform .35s var(--ease-spring), background .25s; }
.rbtn:hover { transform: translateY(-4px); background: rgb(255 255 255 / .22); }
.rbtn:active { transform: scale(.9); }
.rbtn--big { width: 76px; background: linear-gradient(135deg, var(--accent), var(--pink)); border-color: transparent; }
.rbtn.is-on { background: var(--pink); }
.rbtn.is-on span { animation: heartbeat .6s var(--ease-spring); }
@keyframes heartbeat { 30% { transform: scale(1.5); } }
.rbtn__tip { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px; padding: 5px 10px; border-radius: 8px; background: #fff; color: var(--bg-0); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .3s var(--ease-spring); }
.rbtn:hover .rbtn__tip, .rbtn:focus-visible .rbtn__tip { opacity: 1; translate: -50% 0; }
.reader__sep { width: 1px; background: var(--line); margin: 6px 4px; }
@media (max-width: 760px) {
  .rbtn { width: 50px; height: 50px; border-radius: 18px; font-size: 20px; }
  .rbtn--big { width: 60px; }
  .reader__sep { display: none; }
  .rcard { border-radius: 32px 32px 32px 10px; }
}

/* ---------- lists & forms ---------- */
.page-head { margin-bottom: 36px; }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); backdrop-filter: blur(12px); }
.settings { display: grid; gap: 16px; max-width: 760px; }
.field { display: grid; gap: 10px; }
.field > span { font-weight: 600; }
.field small, .muted { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.input, .select { height: 54px; border-radius: 18px; border: 1px solid var(--line); background: rgb(255 255 255 / .06); padding: 0 18px; font-size: 17px; outline: none; transition: border-color .2s; }
.input:focus, .select:focus { border-color: var(--pink); }
.select option { color: #000; }
textarea.input { height: auto; min-height: 120px; padding: 14px 18px; resize: vertical; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch { position: relative; flex: none; appearance: none; width: 62px; height: 36px; border-radius: 999px; background: rgb(255 255 255 / .18); transition: background .3s; cursor: pointer; }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgb(0 0 0 / .3); transition: transform .45s var(--ease-spring), width .2s; }
.switch:active::after { width: 34px; }
.switch:checked { background: linear-gradient(90deg, var(--accent), var(--pink)); }
.switch:checked::after { transform: translateX(26px); }
.switch:checked:active::after { transform: translateX(20px); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 3px solid transparent; box-shadow: 0 6px 16px rgb(0 0 0 / .25); transition: transform .35s var(--ease-spring); display: grid; place-items: center; font-size: 18px; }
.swatch:hover { transform: scale(1.15) rotate(-8deg); }
.swatch.is-on { border-color: #fff; transform: scale(1.1); }
.danger { color: #ff8fa3; }

.stars { display: flex; gap: 6px; margin: 18px 0; }
.star { font-size: 54px; line-height: 1; color: rgb(255 255 255 / .2); transition: transform .4s var(--ease-spring), color .2s; }
.star.is-on { color: var(--glow); text-shadow: 0 0 24px rgb(255 214 107 / .6); }
.star:hover { transform: scale(1.2) rotate(-12deg); }
.star.is-bump { animation: starBump .6s var(--ease-spring); }
@keyframes starBump { 40% { transform: scale(1.5) rotate(20deg); } }
.rate-say { font-size: 24px; font-weight: 600; min-height: 1.3em; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.share-grid .btn { width: 100%; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.linklist { display: grid; gap: 10px; margin-top: 20px; }
.linklist a { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); text-decoration: none; transition: background .2s, transform .35s var(--ease-spring); }
.linklist a:hover { background: var(--glass-2); transform: translateX(6px); }

/* ---------- saved cards grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.saved { position: relative; border-radius: 22px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); aspect-ratio: 1;
  transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ease-out), box-shadow .3s; box-shadow: 0 20px 40px rgb(0 0 0 / .25); }
.saved a { display: block; height: 100%; }
.saved img { width: 100%; height: 100%; object-fit: contain; background: rgb(0 0 0 / .2); }
.saved__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgb(0 0 0 / .7)); font-weight: 600; font-size: 15px; pointer-events: none; }
.saved__del { position: absolute; top: 10px; right: 10px; opacity: 0; transition: opacity .2s; }
.saved:hover .saved__del, .saved:focus-within .saved__del { opacity: 1; }
.saved--new { display: grid; place-items: center; text-decoration: none; border: 2px dashed var(--line); background: transparent; font-weight: 600; color: var(--ink-2); }
.saved--new span { font-size: 54px; display: block; text-align: center; transition: transform .5s var(--ease-spring); }
.saved--new:hover span { transform: rotate(90deg) scale(1.2); }
.saved.is-gone { animation: gone .5s var(--ease-io) forwards; }
@keyframes gone { to { transform: scale(.2) rotate(20deg); opacity: 0; } }

/* ---------- toasts & fx ---------- */
.fx { position: fixed; inset: 0; z-index: 95; pointer-events: none; width: 100vw; height: 100vh; }
.toasts { position: fixed; z-index: 96; left: 50%; bottom: calc(var(--dock) + 26px); translate: -50% 0; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px; background: #fff; color: var(--bg-0); font-weight: 600; box-shadow: 0 20px 50px rgb(0 0 0 / .35);
  animation: toastIn .6s var(--ease-spring) both; }
.toast__icon { font-size: 20px; }
.toast.is-out { animation: toastOut .4s var(--ease-io) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(30px) scale(.7); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px) scale(.8); } }

.reminder { position: fixed; z-index: 70; top: calc(var(--topbar) + 10px); right: var(--gutter); max-width: 360px; padding: 18px 20px; border-radius: 24px 24px 6px 24px; background: #fff; color: var(--bg-0);
  box-shadow: 0 30px 70px rgb(0 0 0 / .4); animation: toastIn .7s var(--ease-spring) both; display: grid; gap: 12px; }
.reminder b { font-size: 18px; }
.reminder .btn { min-height: 42px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.no-motion *, .no-motion *::before, .no-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
