/* TheSoul — cute, playful & colourful */

:root {
  --ink: #4a3553;
  --ink-soft: #8d7795;
  --ink-faint: #b8a6bd;
  --card: #ffffff;
  --line: #f3e4f0;
  --bg1: #fff3f8;
  --bg2: #f3eeff;
  --bg3: #eafbf7;
  --accent: #ff6fa5;
  --accent-2: #ff9ec4;
  --accent-soft: #ffe4ef;
  --accent-ink: #d23c7c;
  --pink: #ff6fa5; --purple: #8b7bff; --mint: #3ccfb4; --orange: #ffa94d; --blue: #4dabf7; --yellow: #ffd43b; --red: #ff6b6b; --green: #69db7c;
  --radius: 24px;
  --shadow: 0 10px 30px -12px rgba(210, 60, 124, 0.25), 0 2px 6px rgba(74, 53, 83, 0.05);
  --shadow-lg: 0 24px 50px -20px rgba(120, 50, 140, 0.35);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --font-fun: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Fredoka', cursive;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
body[data-theme="lavender"] { --accent: #8b7bff; --accent-2: #b7adff; --accent-soft: #ece9ff; --accent-ink: #5b4ad6; --bg1: #f5f2ff; --bg2: #ffeef7; }
body[data-theme="mint"]     { --accent: #22b8a0; --accent-2: #7fe0cf; --accent-soft: #dcf7f1; --accent-ink: #0f8a76; --bg1: #effbf8; --bg2: #fff3f8; }
body[data-theme="peach"]    { --accent: #ff8a5c; --accent-2: #ffb899; --accent-soft: #ffeae0; --accent-ink: #d9582a; --bg1: #fff5ef; --bg2: #fff0f6; }
body[data-theme="sky"]      { --accent: #3d9bf0; --accent-2: #8cc5f7; --accent-soft: #e2f0fd; --accent-ink: #1f6fbf; --bg1: #f0f7ff; --bg2: #f6f0ff; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg3) 100%) fixed;
  background-color: var(--bg1);
  font-size: 16px;
  line-height: 1.45;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* floating background blobs */
.blobs { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { width: 260px; height: 260px; background: var(--accent-2); top: -60px; left: -80px; }
.blobs i:nth-child(2) { width: 220px; height: 220px; background: #c9b8ff; top: 40%; right: -90px; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 240px; height: 240px; background: #a8eedf; bottom: -80px; left: 10%; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.15); } }

/* app shell */
.app { max-width: 560px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px calc(110px + var(--safe-b)); min-height: 100vh; }
.app.full { padding-bottom: calc(24px + var(--safe-b)); }
.splash { min-height: 80vh; display: grid; place-content: center; text-align: center; }
.splash-heart { font-size: 64px; animation: beat 1.2s ease-in-out infinite; }
.splash-name { font-family: var(--font-fun); font-weight: 700; font-size: 28px; color: var(--accent-ink); }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }

.offline-bar { position: sticky; top: 0; z-index: 30; background: #4a3553; color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: calc(6px + var(--safe-t)) 12px 6px; }

/* page header */
.head { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.head h1 { font-family: var(--font-fun); font-weight: 700; font-size: 28px; margin: 0; line-height: 1.1; letter-spacing: -.3px; }
.head .sub { color: var(--ink-soft); font-size: 14px; font-weight: 600; margin-top: 2px; }
.head .grow { flex: 1; min-width: 0; }
.back { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); font-size: 20px; cursor: pointer; display: grid; place-items: center; text-decoration: none; color: var(--ink); flex: none; }
.back:active { transform: scale(.9); }

/* cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; position: relative; }
.card h2, .card h3 { font-family: var(--font-fun); margin: 0 0 10px; font-weight: 600; }
.card h2 { font-size: 20px; }
.card h3 { font-size: 17px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-fun); font-weight: 600; font-size: 18px; margin-bottom: 12px; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.center { text-align: center; }
.pop-in { animation: popIn .45s var(--bounce) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.stagger > * { animation: popIn .5s var(--bounce) both; }
.stagger > *:nth-child(2) { animation-delay: .05s; } .stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; } .stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .25s; } .stagger > *:nth-child(n+7) { animation-delay: .3s; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
  font-family: var(--font-fun); font-weight: 600; font-size: 16px; line-height: 1.1;
  background: var(--accent-soft); color: var(--accent-ink);
  transition: transform .25s var(--bounce), box-shadow .2s, background .2s; text-decoration: none; user-select: none;
}
.btn:active { transform: scale(.93); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 20px -8px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink-soft); }
.btn.white { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn.danger { background: #ffe3e3; color: #d6336c; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.lg { padding: 16px 24px; font-size: 18px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); cursor: pointer; font-size: 20px; display: inline-grid; place-items: center; transition: transform .25s var(--bounce); flex: none; color: var(--ink); text-decoration: none; }
.icon-btn:active { transform: scale(.88); }
.icon-btn.on { background: var(--accent); color: #fff; }
.fab {
  position: fixed; right: max(18px, calc(50% - 262px)); bottom: calc(96px + var(--safe-b)); z-index: 20;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; font-size: 28px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 28px -10px var(--accent);
  transition: transform .3s var(--bounce); animation: popIn .5s var(--bounce) .2s both;
}
.fab:active { transform: scale(.88) rotate(-8deg); }

.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.spacer { flex: 1; }

/* forms */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-weight: 800; font-size: 13px; color: var(--ink-soft); margin: 0 0 6px 4px; text-transform: uppercase; letter-spacing: .4px; }
.input, textarea.input, select.input {
  width: 100%; border: 2px solid var(--line); background: #fffafd; border-radius: 16px; padding: 12px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 96px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; margin-bottom: 12px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.form-error { background: #fff0f3; color: #d6336c; border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 14px; margin-bottom: 12px; animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; transition: transform .2s var(--bounce); padding: 0; }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.12); }
.emoji-row { display: flex; gap: 6px; flex-wrap: wrap; }
.emoji-opt { width: 44px; height: 44px; font-size: 24px; border-radius: 14px; border: 2px solid transparent; background: #fff7fb; cursor: pointer; transition: transform .2s var(--bounce); padding: 0; }
.emoji-opt.on { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.1); }
.emoji-opt:active { transform: scale(.9); }

/* avatars */
.avatar { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 26px; position: relative; flex: none; box-shadow: inset 0 -4px 0 rgba(0,0,0,.06); }
.avatar.lg { width: 84px; height: 84px; font-size: 46px; }
.avatar.sm { width: 32px; height: 32px; font-size: 18px; }
.avatar .dot { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: #c9c1cc; border: 2px solid #fff; }
.avatar .dot.on { background: #40c057; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(64,192,87,.5); } 70% { box-shadow: 0 0 0 8px rgba(64,192,87,0); } 100% { box-shadow: 0 0 0 0 rgba(64,192,87,0); } }
.couple-avatars { display: flex; align-items: center; }
.couple-avatars .avatar + .avatar { margin-left: -10px; border: 3px solid #fff; }
.couple-avatars .avatar:first-child { border: 3px solid #fff; }

/* tab bar */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); z-index: 25;
  width: min(536px, calc(100% - 24px)); display: flex; justify-content: space-around; padding: 8px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 30px; box-shadow: var(--shadow-lg);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 5px; border-radius: 22px; text-decoration: none; color: var(--ink-soft); font-family: var(--font-fun); font-weight: 600; font-size: 11.5px; position: relative; transition: background .25s; }
.tabbar .ti { font-size: 23px; line-height: 1; transition: transform .35s var(--bounce); filter: grayscale(.35); }
.tabbar a.on { background: var(--accent-soft); color: var(--accent-ink); }
.tabbar a.on .ti { transform: translateY(-2px) scale(1.18); filter: none; }
.tabbar .badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff4d79; color: #fff; font-size: 11px; font-family: var(--font-body); font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

/* toasts */
.toasts { position: fixed; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 100; width: min(440px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; animation: toastIn .45s var(--bounce) both; }
.toast.out { animation: toastOut .3s ease-in both; }
.toast .te { font-size: 26px; }
.toast .tt { flex: 1; font-size: 15px; }
.toast.err { background: #fff0f3; color: #c2255c; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px) scale(.95); } }

/* bottom sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(74, 53, 83, .35); z-index: 80; animation: fadeIn .2s both; backdrop-filter: blur(2px); }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 81; width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 30px 30px 0 0; padding: 10px 20px calc(24px + var(--safe-b));
  box-shadow: 0 -20px 50px -20px rgba(74, 53, 83, .4); animation: sheetUp .4s var(--bounce) both; overscroll-behavior: contain;
}
.sheet.closing { animation: sheetDown .25s ease-in both; }
.sheet-back.closing { animation: fadeOut .25s both; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { font-family: var(--font-fun); font-weight: 700; font-size: 22px; margin: 0 0 14px; text-align: center; }
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes sheetDown { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* effects layer */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.fx-float { position: absolute; font-size: 28px; animation: floatUp var(--d, 2.4s) ease-out forwards; will-change: transform, opacity; }
@keyframes floatUp {
  0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 0; }
  12% { opacity: 1; transform: translate(calc(var(--x) * .2), -30px) scale(1.1) rotate(calc(var(--r) * .3)); }
  100% { transform: translate(var(--x), var(--y)) scale(.9) rotate(var(--r)); opacity: 0; }
}
.fx-conf { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: confFall var(--d, 2.6s) cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes confFall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }
.fx-big { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); font-size: 120px; animation: bigPop 1.6s var(--bounce) forwards; filter: drop-shadow(0 10px 20px rgba(0,0,0,.15)); }
@keyframes bigPop { 0% { transform: translate(-50%, -50%) scale(0); } 25% { transform: translate(-50%, -50%) scale(1.15); } 40% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -80%) scale(.9); opacity: 0; } }

/* empty / loading */
.empty { text-align: center; padding: 34px 20px; }
.empty .ee { font-size: 54px; animation: wiggle 2.5s ease-in-out infinite; display: inline-block; }
.empty h3 { font-family: var(--font-fun); margin: 8px 0 4px; font-size: 20px; }
.empty p { color: var(--ink-soft); margin: 0 0 16px; }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.05); } }
.loading { text-align: center; padding: 50px 0; font-size: 36px; }
.loading span { display: inline-block; animation: hop .9s ease-in-out infinite; }
.loading span:nth-child(2) { animation-delay: .15s; } .loading span:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }

/* ---------------- login / setup */
.welcome { text-align: center; padding: 30px 0 10px; }
.welcome .logo { font-size: 70px; display: inline-block; animation: beat 1.6s ease-in-out infinite; }
.welcome h1 { font-family: var(--font-fun); font-size: 40px; margin: 6px 0 0; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome p { color: var(--ink-soft); font-weight: 700; margin: 4px 0 0; }
.who { display: flex; justify-content: center; gap: 22px; margin: 26px 0 10px; }
.who button { border: 0; background: none; cursor: pointer; padding: 6px; border-radius: 30px; transition: transform .3s var(--bounce); }
.who button.on { transform: scale(1.12); }
.who button.on .avatar { box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--accent); }
.who button:not(.on) { opacity: .8; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 18px 0; min-height: 22px; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--accent-2); transition: transform .2s var(--bounce), background .2s; }
.pin-dots i.f { background: var(--accent); transform: scale(1.15); box-shadow: none; }
.pin-dots.bad { animation: shake .4s; }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; justify-content: center; margin-top: 8px; }
.keypad button { width: 76px; height: 76px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-family: var(--font-fun); font-size: 28px; font-weight: 600; cursor: pointer; transition: transform .2s var(--bounce), background .2s; color: var(--ink); }
.keypad button:active { transform: scale(.88); background: var(--accent-soft); }
.keypad button.go { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 26px; }
.keypad button.del { font-size: 22px; background: transparent; box-shadow: none; }
.person-card { border: 2px dashed var(--line); border-radius: 22px; padding: 16px 14px 4px; margin-bottom: 14px; }
.person-card h3 { margin: 0 0 12px; font-family: var(--font-fun); font-weight: 600; }

/* ---------------- home */
.hello { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hello h1 { font-family: var(--font-fun); font-size: 26px; margin: 0; line-height: 1.1; }
.hello .sub { color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.together {
  background: linear-gradient(135deg, var(--accent) 0%, #b07bff 100%); color: #fff; text-align: center; overflow: hidden; padding: 24px 18px 20px;
}
.together::before, .together::after { content: '💗'; position: absolute; font-size: 70px; opacity: .18; }
.together::before { left: -14px; top: -10px; transform: rotate(-20deg); }
.together::after { content: '✨'; right: -6px; bottom: -14px; font-size: 80px; }
.together .label { font-weight: 800; opacity: .9; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.together .days { font-family: var(--font-fun); font-weight: 700; font-size: 64px; line-height: 1; margin: 6px 0 2px; text-shadow: 0 6px 18px rgba(0,0,0,.12); }
.together .days small { font-size: 22px; font-weight: 600; }
.together .ymd { font-weight: 700; opacity: .95; }
.together .mini { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.together .mini span { background: rgba(255,255,255,.22); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; }
.taps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tap { border: 0; border-radius: 22px; padding: 12px 4px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font-fun); font-weight: 600; font-size: 13px; transition: transform .25s var(--bounce); color: var(--ink); }
.tap .te { font-size: 32px; transition: transform .3s var(--bounce); }
.tap:active { transform: scale(.9); }
.tap:active .te { transform: scale(1.3) rotate(-10deg); }
.tap.hug { background: #fff1d6; } .tap.kiss { background: #ffe3ef; } .tap.miss { background: #e7e3ff; } .tap.love { background: #ffe0e0; }
.tap .tc { font-size: 11px; color: var(--ink-soft); font-family: var(--font-body); font-weight: 800; min-height: 14px; }
.moods { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.moods::-webkit-scrollbar { display: none; }
.mood { flex: none; width: 48px; height: 48px; border-radius: 16px; border: 0; background: #fff7fb; font-size: 26px; cursor: pointer; transition: transform .25s var(--bounce); }
.mood.on { background: var(--accent-soft); transform: scale(1.15); box-shadow: 0 0 0 2px var(--accent); }
.mood-status { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.mood-status .chip { background: #fff7fb; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; background: var(--accent-soft); color: var(--accent-ink); }
.question { background: linear-gradient(135deg, #fff6d9, #ffe9f2); }
.question .q { font-family: var(--font-fun); font-size: 20px; font-weight: 600; margin: 0 0 12px; line-height: 1.25; }
.answer { background: rgba(255,255,255,.75); border-radius: 16px; padding: 10px 12px; margin-top: 8px; }
.answer b { font-family: var(--font-fun); font-weight: 600; display: block; font-size: 13px; color: var(--ink-soft); }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.cd { flex: none; scroll-snap-align: start; width: 128px; border-radius: 20px; padding: 12px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.cd .ce { font-size: 30px; }
.cd .cn { font-family: var(--font-fun); font-weight: 700; font-size: 32px; line-height: 1; margin-top: 4px; }
.cd .cl { font-size: 12px; font-weight: 800; opacity: .9; }
.cd .ct { font-weight: 800; font-size: 13px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-teaser { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; background: linear-gradient(135deg, #ffe4ef, #efe6ff); }
.note-teaser .ne { font-size: 42px; animation: wiggle 2s ease-in-out infinite; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thumbs img, .thumbs a { aspect-ratio: 1; object-fit: cover; border-radius: 14px; width: 100%; background: var(--accent-soft); }

/* ---------------- us menu */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-tile { border-radius: 26px; padding: 18px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); position: relative; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s var(--bounce); overflow: hidden; }
.menu-tile:active { transform: scale(.95); }
.menu-tile .me { font-size: 42px; }
.menu-tile b { font-family: var(--font-fun); font-weight: 600; font-size: 19px; display: block; }
.menu-tile small { color: var(--ink-soft); font-weight: 700; }
.menu-tile .badge { position: absolute; top: 12px; right: 12px; background: #ff4d79; color: #fff; border-radius: 12px; padding: 2px 9px; font-weight: 800; font-size: 13px; }

/* ---------------- canvas */
.draw-wrap { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fffdf8; touch-action: none; aspect-ratio: 4 / 5; }
.draw-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.draw-wrap .paper { position: absolute; inset: 0; background-image: radial-gradient(circle, #f1e3ee 1.2px, transparent 1.4px); background-size: 22px 22px; }
.draw-tools { display: flex; gap: 8px; align-items: center; margin: 12px 0 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.draw-tools::-webkit-scrollbar { display: none; }
.tool { flex: none; width: 46px; height: 46px; border-radius: 16px; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 22px; cursor: pointer; transition: transform .2s var(--bounce); }
.tool.on { background: var(--accent); box-shadow: 0 8px 16px -8px var(--accent); transform: translateY(-2px); }
.colors { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.colors::-webkit-scrollbar { display: none; }
.colors .swatch { flex: none; }
.sizes { display: flex; gap: 6px; align-items: center; background: #fff; border-radius: 16px; padding: 0 10px; height: 46px; box-shadow: var(--shadow); flex: none; }
.size { border: 0; background: none; cursor: pointer; width: 30px; height: 40px; display: grid; place-items: center; padding: 0; }
.size i { display: block; border-radius: 50%; background: var(--ink-faint); }
.size.on i { background: var(--accent); }
.live-badge { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 800; box-shadow: var(--shadow); z-index: 3; display: flex; align-items: center; gap: 6px; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #40c057; animation: pulse 1.5s infinite; }
.stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }

/* ---------------- photos */
.seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: var(--shadow); margin-bottom: 14px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 8px 16px; font-family: var(--font-fun); font-weight: 600; cursor: pointer; color: var(--ink-soft); transition: background .2s; }
.seg button.on { background: var(--accent); color: #fff; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pgrid .ph { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--accent-soft); cursor: pointer; border: 0; padding: 0; animation: popIn .4s var(--bounce) both; }
.pgrid .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pgrid .ph:active img { transform: scale(.94); }
.pgrid .ph .hf { position: absolute; top: 6px; right: 6px; font-size: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.month-label { font-family: var(--font-fun); font-weight: 600; font-size: 17px; margin: 18px 4px 8px; color: var(--ink-soft); }
.upload-bar { background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.progress { height: 10px; background: var(--accent-soft); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; transition: width .2s; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(30, 18, 36, .94); display: flex; flex-direction: column; animation: fadeIn .2s both; }
.lightbox .lb-top { display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 14px 10px; color: #fff; }
.lightbox .lb-img { flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 8px; touch-action: pan-y; }
.lightbox .lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; animation: popIn .35s var(--bounce) both; }
.lightbox .lb-bottom { padding: 12px 18px calc(18px + var(--safe-b)); color: #fff; }
.lightbox .lb-cap { font-family: var(--font-hand); font-size: 26px; line-height: 1.1; }
.lightbox .icon-btn { background: rgba(255,255,255,.14); box-shadow: none; color: #fff; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }

/* ---------------- calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-family: var(--font-fun); font-weight: 600; font-size: 20px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: 12px; font-weight: 800; color: var(--ink-faint); padding: 4px 0; }
.cal .d { aspect-ratio: 1; border: 0; background: none; border-radius: 14px; cursor: pointer; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; padding: 0; color: var(--ink); font-size: 15px; }
.cal .d.out { color: var(--ink-faint); opacity: .5; }
.cal .d.today { background: var(--accent-soft); color: var(--accent-ink); }
.cal .d.sel { background: var(--accent); color: #fff; transform: scale(1.06); }
.cal .d .dots { display: flex; gap: 2px; height: 6px; }
.cal .d .dots i { width: 5px; height: 5px; border-radius: 50%; }
.cal .d .de { position: absolute; top: -2px; right: -1px; font-size: 11px; }
.ev { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.ev:last-child { border-bottom: 0; }
.ev .ee { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; flex: none; }
.ev .et { flex: 1; min-width: 0; }
.ev .et b { display: block; font-family: var(--font-fun); font-weight: 600; font-size: 16px; }
.ev .et small { color: var(--ink-soft); font-weight: 700; }
.ev .ew { font-weight: 800; font-size: 13px; color: var(--accent-ink); text-align: right; flex: none; }

/* ---------------- notes */
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sticky {
  border: 0; text-align: left; cursor: pointer; border-radius: 6px 6px 22px 6px; padding: 16px 14px 12px; min-height: 150px; position: relative;
  box-shadow: 0 12px 22px -12px rgba(74,53,83,.35); transform: rotate(var(--rot, -1.5deg)); transition: transform .3s var(--bounce); color: #4a3553;
  display: flex; flex-direction: column; animation: popIn .45s var(--bounce) both; font-family: var(--font-body);
}
.sticky:active { transform: rotate(0) scale(.96); }
.sticky::before { content: ''; position: absolute; top: -8px; left: 50%; width: 54px; height: 18px; transform: translateX(-50%) rotate(-2deg); background: rgba(255,255,255,.55); border-radius: 3px; }
.sticky .st { font-size: 30px; position: absolute; right: 8px; bottom: 6px; }
.sticky .sx { font-family: var(--font-hand); font-size: 22px; line-height: 1.1; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; word-break: break-word; }
.sticky .sm { font-size: 11.5px; font-weight: 800; opacity: .7; margin-top: 8px; padding-right: 34px; }
.sticky.unread::after { content: 'NEW'; position: absolute; top: 8px; right: 8px; background: #ff4d79; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 8px; }
.sticky.locked { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 10px, transparent 10px 20px); }
.sticky.locked .sx { font-family: var(--font-fun); font-size: 17px; }
.note-open { border-radius: 10px 10px 30px 10px; padding: 26px 22px; min-height: 260px; position: relative; box-shadow: 0 20px 30px -18px rgba(74,53,83,.4); }
.note-open .nt { font-family: var(--font-hand); font-size: 30px; line-height: 1.15; white-space: pre-wrap; word-break: break-word; }
.note-open .ns { font-size: 54px; position: absolute; right: 16px; bottom: 10px; animation: wiggle 2s infinite; }
.note-open .nf { font-weight: 800; opacity: .75; margin-top: 16px; padding-right: 60px; }
.envelope { font-size: 90px; text-align: center; animation: beat 1.2s infinite; cursor: pointer; }

/* ---------------- memories */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: linear-gradient(var(--accent-2), #c9b8ff, #a8eedf); }
.mem { position: relative; }
.mem::before { content: attr(data-e); position: absolute; left: -32px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 16px; box-shadow: var(--shadow); }
.mem .mimg { max-width: none; width: calc(100% + 36px); margin: -18px -18px 12px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent-soft); }
.mem .md { font-weight: 800; color: var(--accent-ink); font-size: 13px; }
.mem h3 { margin: 2px 0 6px; }
.mem p { margin: 0; white-space: pre-wrap; color: #5f4b66; }
.year-label { font-family: var(--font-fun); font-weight: 700; font-size: 22px; margin: 8px 0 10px -26px; color: var(--accent-ink); }

/* ---------------- bucket list */
.bucket-add { display: flex; gap: 8px; }
.bitem { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed var(--line); animation: popIn .4s var(--bounce) both; }
.bitem:last-child { border-bottom: 0; }
.bcheck { width: 34px; height: 34px; border-radius: 12px; border: 3px solid var(--accent-2); background: #fff; cursor: pointer; flex: none; display: grid; place-items: center; font-size: 18px; transition: transform .25s var(--bounce), background .2s; padding: 0; color: #fff; }
.bcheck:active { transform: scale(.85); }
.bitem.done .bcheck { background: var(--mint); border-color: var(--mint); }
.bitem .bt { flex: 1; min-width: 0; font-weight: 700; }
.bitem.done .bt b { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-soft); }
.bitem .bt small { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.bitem .be { font-size: 26px; flex: none; }
.bprog { height: 14px; background: var(--accent-soft); border-radius: 8px; overflow: hidden; margin-top: 8px; }
.bprog i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), #8ce99a); border-radius: 8px; transition: width .6s var(--bounce); }

/* ---------------- games */
.score-hero { display: flex; align-items: center; justify-content: space-around; text-align: center; background: linear-gradient(135deg, #ffe9f2, #ece9ff); }
.score-hero .sn { font-family: var(--font-fun); font-size: 40px; font-weight: 700; line-height: 1; }
.score-hero .vs { font-family: var(--font-fun); font-weight: 700; color: var(--ink-faint); font-size: 20px; }
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gtile { border: 0; cursor: pointer; text-align: left; border-radius: 26px; padding: 16px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); transition: transform .25s var(--bounce); position: relative; overflow: hidden; }
.gtile:active { transform: scale(.94) rotate(-1deg); }
.gtile .ge { font-size: 44px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.gtile b { font-family: var(--font-fun); font-weight: 600; font-size: 18px; display: block; line-height: 1.15; }
.gtile small { font-weight: 700; opacity: .9; font-size: 12.5px; }
.gtile .gs { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.25); border-radius: 10px; padding: 2px 8px; font-size: 12px; font-weight: 800; }
.mode-btn { display: flex; align-items: center; gap: 14px; width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 22px; padding: 14px 16px; cursor: pointer; text-align: left; margin-bottom: 10px; transition: transform .2s var(--bounce), border-color .2s; }
.mode-btn:active { transform: scale(.96); border-color: var(--accent); }
.mode-btn .mi { font-size: 34px; }
.mode-btn b { font-family: var(--font-fun); font-weight: 600; font-size: 18px; display: block; }
.mode-btn small { color: var(--ink-soft); font-weight: 700; }
.players { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pl { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--bounce), box-shadow .3s; min-width: 0; }
.pl b { font-family: var(--font-fun); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.pl .ps { font-family: var(--font-fun); font-weight: 700; font-size: 20px; margin-left: 4px; }
.pl.turn { transform: scale(1.07); box-shadow: 0 0 0 3px var(--pc, var(--accent)), var(--shadow); }
.game-status { text-align: center; font-family: var(--font-fun); font-weight: 600; font-size: 20px; margin: 4px 0 14px; min-height: 28px; }
.game-status.win { font-size: 26px; animation: popIn .5s var(--bounce); }
.board { margin: 0 auto; }
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 360px); }
.ttt button { aspect-ratio: 1; border: 0; border-radius: 22px; background: #fff; box-shadow: var(--shadow); font-size: 54px; cursor: pointer; display: grid; place-items: center; padding: 0; transition: transform .2s var(--bounce); }
.ttt button:active:not(:disabled) { transform: scale(.9); }
.ttt button span { animation: stampIn .4s var(--bounce) both; }
.ttt button.win { background: var(--yellow); animation: beat 1s ease-in-out infinite; }
@keyframes stampIn { from { transform: scale(0) rotate(-30deg); } }
.c4 { background: linear-gradient(160deg, #8b7bff, #6d5df0); padding: 10px; border-radius: 24px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: min(100%, 420px); box-shadow: var(--shadow-lg); }
.c4 .cell { aspect-ratio: 1; border-radius: 50%; background: #f6f2ff; box-shadow: inset 0 3px 6px rgba(0,0,0,.18); position: relative; }
.c4 .cell i { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.c4 .cell i.drop { animation: drop .45s cubic-bezier(.5,0,.75,0) both, squish .25s .45s ease-out; }
@keyframes drop { from { transform: translateY(var(--from, -400%)); } }
@keyframes squish { 50% { transform: scaleY(.85); } }
.c4 .cell.win i { animation: beat 1s infinite; box-shadow: 0 0 0 3px #fff, inset 0 -4px 0 rgba(0,0,0,.15); }
.c4 .col-hit { display: contents; }
.c4-cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: min(100%, 420px); margin: 0 auto 6px; padding: 0 10px; }
.c4-cols button { border: 0; background: none; font-size: 20px; cursor: pointer; padding: 2px 0; border-radius: 10px; transition: transform .2s var(--bounce); }
.c4-cols button:active { transform: translateY(4px); }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 380px); perspective: 800px; }
.mcard { aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; position: relative; transform-style: preserve-3d; transition: transform .45s var(--bounce); }
.mcard.up { transform: rotateY(180deg); }
.mcard .f, .mcard .b { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.mcard .b { background: linear-gradient(135deg, var(--mint), #7fe0cf); box-shadow: var(--shadow); font-size: 22px; color: rgba(255,255,255,.85); }
.mcard .f { background: #fff; transform: rotateY(180deg); font-size: 34px; box-shadow: var(--shadow); }
.mcard.got .f { box-shadow: 0 0 0 3px var(--mc, var(--accent)); }
.mcard.nope .f { animation: shake .4s .3s; background: #fff0f3; }
.rps-picks { display: flex; justify-content: center; gap: 12px; margin: 10px 0; }
.rps-picks button { width: 92px; height: 92px; border-radius: 28px; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 46px; cursor: pointer; transition: transform .25s var(--bounce); }
.rps-picks button:active { transform: scale(.88) rotate(-10deg); }
.rps-picks button.on { background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent); }
.rps-arena { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 6px 0 14px; }
.rps-arena .hand { width: 110px; height: 110px; border-radius: 34px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 60px; }
.rps-arena .hand.shake { animation: rpsShake .5s ease-in-out infinite; }
@keyframes rpsShake { 50% { transform: translateY(-10px) rotate(-8deg); } }
.rps-arena .hand.won { box-shadow: 0 0 0 4px var(--yellow), var(--shadow); }
.rps-log { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rps-log span { background: #fff; border-radius: 12px; padding: 4px 10px; font-size: 18px; box-shadow: var(--shadow); }
.dots-board { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; touch-action: manipulation; }
.dots-board .dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); z-index: 3; }
.dots-board .ln { position: absolute; border: 0; padding: 0; cursor: pointer; background: transparent; z-index: 2; }
.dots-board .ln i { position: absolute; border-radius: 4px; background: #eadfee; transition: background .2s; }
.dots-board .ln.h i { left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; }
.dots-board .ln.v i { top: 0; bottom: 0; left: 50%; width: 8px; margin-left: -4px; }
.dots-board .ln:hover:not(:disabled) i { background: var(--accent-2); }
.dots-board .ln.set i { animation: lineIn .3s var(--bounce); }
.dots-board .ln.lastm i { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 10px var(--yellow); }
@keyframes lineIn { from { transform: scale(0); } }
.dots-board .box { position: absolute; display: grid; place-items: center; font-size: 26px; border-radius: 8px; z-index: 1; animation: popIn .4s var(--bounce) both; }
.pass-screen { text-align: center; padding: 30px 10px; }
.pass-screen .pe { font-size: 70px; animation: wiggle 1.6s infinite; display: inline-block; }
.result { text-align: center; }
.result .re { font-size: 80px; animation: beat 1.4s infinite; display: inline-block; }
.result h2 { font-family: var(--font-fun); font-size: 30px; margin: 4px 0 6px; }
.invite { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff6d9, #ffe4ef); }

/* settings */
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row .si { font-size: 24px; width: 36px; text-align: center; }
.set-row .st { flex: 1; min-width: 0; font-weight: 700; }
.set-row .st small { display: block; color: var(--ink-soft); font-weight: 600; font-size: 13px; }
.theme-dots { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-dot { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; cursor: pointer; box-shadow: 0 0 0 2px var(--line); transition: transform .2s var(--bounce); }
.theme-dot.on { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.1); }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 8px; font-weight: 600; }

@media (min-width: 520px) {
  .notes-grid { grid-template-columns: 1fr 1fr 1fr; }
  .pgrid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 360px) {
  .keypad { grid-template-columns: repeat(3, 66px); }
  .keypad button { width: 66px; height: 66px; }
  .together .days { font-size: 52px; }
  .taps { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------- canvas v1.1: two ways to write, undo/redo, one-at-a-time */
.mode-seg { display: flex; width: 100%; margin-bottom: 12px; }
.mode-seg button { flex: 1; }
.draw-wrap.font-mode canvas { cursor: text; }
.draw-wrap.locked::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .35); z-index: 2; pointer-events: none; }
.draw-wrap.locked .live-badge { background: #fff4e6; color: #d9480f; }
.draw-wrap.locked .live-badge i { background: #ff922b; }
.draw-actions { display: flex; gap: 8px; align-items: center; margin: 12px 0 2px; flex-wrap: wrap; }
.draw-actions .btn:disabled { opacity: .45; }
.saved { font-size: 12.5px; font-weight: 800; color: #2b8a3e; background: #ebfbee; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.saved.pending { color: #e67700; background: #fff4e6; }
.font-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 8px; }
.font-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.font-chip { border: 2px solid var(--line); background: #fffafd; border-radius: 16px; padding: 10px 4px 8px; cursor: pointer; font-size: 24px; line-height: 1.05; color: var(--ink); transition: transform .2s var(--bounce); }
.font-chip small { display: block; font-family: var(--font-body); font-weight: 800; font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.font-chip.on { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.04); }
.text-preview { margin: 16px 0; min-height: 90px; border-radius: 18px; background: #fffdf8 radial-gradient(circle, #f1e3ee 1.2px, transparent 1.4px) 0 0 / 22px 22px; display: grid; place-items: center; text-align: center; padding: 14px; line-height: 1.1; word-break: break-word; white-space: pre-wrap; }
.draw-actions { flex-wrap: nowrap; gap: 6px; }
.draw-actions .btn.sm { padding: 8px 11px; }
.saved { margin-left: auto; }
