@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url(/fonts/nunito-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(/fonts/nunito-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(/fonts/nunito-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(/fonts/nunito-cyrillic-900-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(/fonts/nunito-latin-900-normal.woff2) format('woff2'); }

:root {
  --bg: #fff6f2;
  --bg2: #ffeef0;
  --card: #ffffff;
  --card2: #fff9f7;
  --ink: #3a2a3f;
  --ink2: #7d6a80;
  --ink3: #b3a3b5;
  --line: #f3e3e6;
  --pink: #ff6f91;
  --peach: #ffae6e;
  --violet: #8a6dff;
  --mint: #3fcf9f;
  --gold: #ffc53d;
  --danger: #ff5a5f;
  --grad: linear-gradient(135deg, #ff8aa0 0%, #ffb06e 50%, #9678ff 100%);
  --grad-soft: linear-gradient(135deg, #ffe3ea 0%, #fff0e0 50%, #ece6ff 100%);
  --shadow: 0 6px 20px rgba(160, 80, 120, 0.12);
  --shadow-lg: 0 14px 40px rgba(140, 60, 120, 0.22);
  --r: 20px;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1520; --bg2: #241a29; --card: #2a2030; --card2: #31263a;
    --ink: #fbeff6; --ink2: #c9b3c8; --ink3: #8a768c; --line: #3b2e42;
    --grad-soft: linear-gradient(135deg, #3a2233 0%, #3a2a22 50%, #2a2445 100%);
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.35); --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  min-height: 100vh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(400px 300px at 110% -5%, rgba(150, 120, 255, .18), transparent 70%),
    radial-gradient(380px 300px at -10% 20%, rgba(255, 138, 160, .18), transparent 70%),
    radial-gradient(420px 320px at 50% 110%, rgba(255, 176, 110, .16), transparent 70%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
input, select, textarea {
  width: 100%; border: 2px solid var(--line); background: var(--card); border-radius: 14px;
  padding: 12px 14px; outline: none; font-size: 16px; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink); }
textarea { resize: vertical; min-height: 70px; }
img { max-width: 100%; display: block; }
a { color: var(--violet); }

.splash { height: 100vh; display: grid; place-items: center; background: var(--grad); }
.splash-logo { font-weight: 900; font-size: 110px; color: #fff; text-shadow: 0 8px 24px rgba(90, 30, 90, .3); animation: pulse 1.2s infinite; }
.splash-logo span { font-size: 50px; vertical-align: top; color: #ff4f7b; }

/* ---------- каркас ---------- */
.screen { padding: calc(var(--top) + 12px) 16px calc(var(--bottom) + 100px); max-width: 560px; margin: 0 auto; animation: fadeUp .25s ease; }
.page-title { font-weight: 900; font-size: 28px; margin: 6px 4px 14px; display: flex; align-items: center; gap: 10px; }
.page-title .sub { font-size: 14px; font-weight: 700; color: var(--ink2); margin-left: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ink2); padding: 6px 4px; }
.section-title { font-weight: 900; font-size: 18px; margin: 22px 4px 10px; display: flex; align-items: center; gap: 8px; }
.section-title .count { background: var(--bg2); color: var(--ink2); font-size: 13px; padding: 2px 9px; border-radius: 99px; }
.section-title .right { margin-left: auto; font-size: 14px; }
.muted { color: var(--ink2); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.hidden { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }
.card.soft { background: var(--grad-soft); box-shadow: none; }
.empty { text-align: center; color: var(--ink2); padding: 26px 10px; }
.empty .big { font-size: 44px; margin-bottom: 6px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 16px; font-weight: 800; font-size: 16px;
  background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(255, 111, 145, .35);
  transition: transform .12s, opacity .2s; user-select: none;
}
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--bg2); color: var(--ink); box-shadow: none; }
.btn.white { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn.mint { background: linear-gradient(135deg, #3fcf9f, #36b3d9); box-shadow: 0 6px 16px rgba(63, 207, 159, .35); }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.btn.xs { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.link { color: var(--violet); font-weight: 800; }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--bg2); font-size: 20px; }

/* ---------- таб-бар ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 8px 10px calc(var(--bottom) + 8px);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
}
.tab { text-decoration: none; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: var(--ink3); padding: 4px 0; position: relative; }
.tab .ic { font-size: 24px; filter: grayscale(1) opacity(.55); transition: transform .2s, filter .2s; }
.tab.active { color: var(--pink); }
.tab.active .ic { filter: none; transform: translateY(-2px) scale(1.12); }
.tab .dot { position: absolute; top: 0; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* ---------- шапка пары ---------- */
.hero {
  background: var(--grad); border-radius: 26px; padding: 18px 16px 16px; color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.hero::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); right: -60px; top: -80px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1; }
.hero-date { opacity: .9; font-size: 14px; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; position: relative; z-index: 1; }
.pair .vs { font-size: 26px; animation: beat 1.6s infinite; }
.player { text-align: center; }
.ava-ring { width: 74px; height: 74px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.ava-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ava { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.ava.sm { width: 36px; height: 36px; font-size: 20px; }
.ava.xs { width: 28px; height: 28px; font-size: 16px; }
.lvl-badge { position: absolute; bottom: -2px; right: -2px; background: #fff; color: var(--pink); font-weight: 900; font-size: 12px; border-radius: 10px; padding: 1px 7px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.player .nm { font-weight: 900; font-size: 17px; }
.player .lt { font-size: 12px; opacity: .92; }
.player .stats { display: flex; justify-content: center; gap: 8px; margin-top: 6px; font-weight: 800; font-size: 14px; }
.pill { background: rgba(255, 255, 255, .25); border-radius: 99px; padding: 3px 10px; display: inline-flex; gap: 4px; align-items: center; }

/* ---------- баннеры ---------- */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); margin-top: 10px; font-weight: 700; }
.banner .em { font-size: 28px; }
.banner.hot { background: linear-gradient(135deg, #fff1c4, #ffd6e0); color: #4a2a3a; }
.banner.info { background: var(--grad-soft); }
@media (prefers-color-scheme: dark) { .banner.hot { background: linear-gradient(135deg, #5a4520, #5a2a3a); color: var(--ink); } }

/* ---------- задания ---------- */
.task {
  display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 12px 12px 12px 12px;
  box-shadow: var(--shadow); margin-bottom: 10px; position: relative; transition: transform .15s, opacity .3s;
}
.task:active { transform: scale(.985); }
.task .emo { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: var(--grad-soft); flex: none; }
.task .ttl { font-weight: 800; font-size: 16px; }
.task .meta { font-size: 13px; color: var(--ink2); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.task .pts { font-weight: 900; color: var(--pink); }
.task .who { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 99px; color: #fff; }
.task .dots { display: flex; gap: 4px; margin-top: 6px; }
.task .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.task .dots i.on { background: var(--mint); }
.task .check {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 22px; font-weight: 900;
  border: 3px solid var(--line); color: var(--ink3); background: var(--card2); transition: all .2s;
}
.task .check:active { transform: scale(.9); }
.task.can .check { border-color: var(--pink); color: var(--pink); }
.task.done { opacity: .6; }
.task.done .check { background: var(--mint); border-color: var(--mint); color: #fff; }
.task.theirs .check { border-style: dashed; }
.chip-when { background: var(--bg2); border-radius: 8px; padding: 0 6px; }
.chip-when.urgent { background: #ffe0e4; color: #d43d5c; }
@media (prefers-color-scheme: dark) { .chip-when.urgent { background: #5a2330; color: #ffb3c3; } }

/* ---------- прогресс ---------- */
.bar { height: 14px; border-radius: 99px; background: var(--bg2); overflow: hidden; display: flex; position: relative; }
.bar > span { display: block; height: 100%; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar.thin { height: 8px; }
.bar .cap { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink3); opacity: .5; }
.xp-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; margin-top: 6px; }
.xp-bar span { display: block; height: 100%; background: #fff; border-radius: 99px; }

.goal { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; position: relative; overflow: hidden; }
.goal .head { display: flex; gap: 12px; align-items: center; }
.goal .gem { font-size: 36px; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-soft); flex: none; }
.goal .gt { font-weight: 900; font-size: 18px; }
.goal .gd { color: var(--ink2); font-size: 13px; }
.goal .nums { font-weight: 900; font-size: 14px; white-space: nowrap; }
.goal .people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.goal .person { background: var(--card2); border-radius: 14px; padding: 8px 10px; font-size: 13px; }
.goal .person b { font-size: 15px; }
.goal .person.full { outline: 2px solid var(--mint); }
.goal.unlocked { background: linear-gradient(135deg, #fff4c9, #ffdfe8 60%, #e9e0ff); animation: glow 2s infinite; }
@media (prefers-color-scheme: dark) { .goal.unlocked { background: linear-gradient(135deg, #574720, #57283a 60%, #362c5c); } }
.goal.done { opacity: .75; }
.stamp { position: absolute; right: 12px; top: 12px; font-weight: 900; font-size: 12px; background: var(--mint); color: #fff; padding: 3px 10px; border-radius: 99px; }

/* ---------- сегменты и чипы ---------- */
.seg { display: flex; background: var(--bg2); border-radius: 16px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg button { flex: 1; padding: 10px 6px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--ink2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 99px; background: var(--bg2); font-weight: 800; font-size: 14px; color: var(--ink2); border: 2px solid transparent; }
.chip.on { background: var(--card); border-color: var(--pink); color: var(--pink); }
.chip.sm { padding: 4px 10px; font-size: 13px; }

/* ---------- магазин ---------- */
.wallet { display: flex; align-items: center; gap: 14px; }
.wallet .big { font-weight: 900; font-size: 40px; line-height: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.item { background: var(--card); border-radius: 20px; padding: 14px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; text-align: center; position: relative; }
.item .ie { font-size: 40px; }
.item .it { font-weight: 800; font-size: 14px; flex: 1; }
.item .ip { font-weight: 900; color: var(--pink); }
.item .edit { position: absolute; top: 6px; right: 6px; font-size: 14px; opacity: .6; padding: 4px; }
.chest { font-size: 64px; display: inline-block; animation: wobble 2s infinite; cursor: pointer; }
.chest-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 10px; }
.chest-card { flex: none; width: 128px; text-align: center; background: var(--card); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
.chest-card .why { font-size: 12px; color: var(--ink2); margin: 4px 0 8px; min-height: 30px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 8px; }
.list-item .le { font-size: 26px; }
.list-item .lt { font-weight: 800; }
.list-item .ls { font-size: 13px; color: var(--ink2); }

/* ---------- лента ---------- */
.feed-item { display: flex; gap: 10px; padding: 12px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 10px; }
.feed-item .fe { font-size: 24px; width: 40px; height: 40px; border-radius: 13px; background: var(--grad-soft); display: grid; place-items: center; flex: none; }
.feed-item .ft { font-weight: 700; font-size: 15px; }
.feed-item .fm { font-size: 12px; color: var(--ink3); margin-top: 3px; display: flex; gap: 10px; align-items: center; }
.feed-item .photo { margin-top: 8px; border-radius: 14px; max-height: 220px; object-fit: cover; width: 100%; }
.feed-item .acts { display: flex; gap: 6px; margin-top: 8px; }
.react { background: var(--bg2); border-radius: 99px; padding: 4px 10px; font-size: 14px; font-weight: 800; }
.react.on { background: #ffe0e8; }
@media (prefers-color-scheme: dark) { .react.on { background: #5a2a3a; } }
.day-sep { text-align: center; font-size: 12px; font-weight: 900; color: var(--ink3); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- статистика ---------- */
.chart { width: 100%; height: 170px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.stat .sv { font-weight: 900; font-size: 26px; }
.stat .sl { font-size: 12px; color: var(--ink2); font-weight: 700; }
.legend { display: flex; gap: 14px; font-size: 13px; font-weight: 800; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }

/* ---------- профиль ---------- */
.menu { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; text-align: left; font-weight: 800; border-bottom: 1px solid var(--line); }
.menu button:last-child { border-bottom: none; }
.menu .mi { font-size: 22px; width: 28px; text-align: center; }
.menu .badge { margin-left: auto; background: var(--danger); color: #fff; border-radius: 99px; font-size: 12px; padding: 2px 8px; }
.menu .arr { margin-left: auto; color: var(--ink3); }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ach { text-align: center; background: var(--card); border-radius: 16px; padding: 10px 4px; box-shadow: var(--shadow); }
.ach .ae { font-size: 30px; }
.ach .an { font-size: 11px; font-weight: 800; margin-top: 4px; line-height: 1.15; }
.ach.locked { opacity: .35; filter: grayscale(1); }

/* ---------- формы ---------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-weight: 800; font-size: 14px; margin: 0 4px 6px; color: var(--ink2); }
.field .hint { font-size: 12px; color: var(--ink3); margin: 5px 4px 0; }
.inline { display: flex; gap: 10px; }
.inline > * { flex: 1; }
.emoji-pick { width: 64px !important; flex: none !important; text-align: center; font-size: 28px; padding: 6px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 8px; }
.emoji-grid button { font-size: 24px; padding: 6px 0; border-radius: 10px; }
.emoji-grid button.on { background: var(--bg2); outline: 2px solid var(--pink); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; }
.colors button.on { border-color: var(--ink); }
input[type=range] { padding: 0; border: none; background: transparent; accent-color: var(--pink); height: 30px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: .2s; }
.switch span::after { content: ''; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(22px); }

/* ---------- bottom sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(40, 20, 40, .45); z-index: 100; animation: fade .2s; backdrop-filter: blur(2px); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 101; max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 18px calc(var(--bottom) + 20px);
  animation: slideUp .28s cubic-bezier(.2, .9, .3, 1.1); max-width: 600px; margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--ink3); opacity: .5; margin: 0 auto 12px; }
.sheet h2 { margin: 0 0 14px; font-weight: 900; font-size: 22px; }
.sheet .actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet .actions > * { flex: 1; }

/* ---------- тосты и праздник ---------- */
#toast-root { position: fixed; top: calc(var(--top) + 10px); left: 0; right: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 16px; font-weight: 800; box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.3); max-width: 90vw; text-align: center; }
.toast.err { background: var(--danger); color: #fff; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; width: 100%; height: 100%; }
.celebrate { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(40, 20, 40, .55); animation: fade .2s; padding: 20px; }
.celebrate .box { background: var(--card); border-radius: 30px; padding: 26px 22px; text-align: center; width: 100%; max-width: 360px; box-shadow: var(--shadow-lg); animation: pop .45s cubic-bezier(.2, .9, .3, 1.4); }
.celebrate .huge { font-size: 64px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.celebrate .huge-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.celebrate .huge-em { font-size: 48px; }
.celebrate .crit { display: inline-block; background: var(--gold); color: #5a3a00; font-weight: 900; padding: 4px 14px; border-radius: 99px; margin: 6px 0; animation: shake .5s 2; }
.celebrate .line { margin-top: 10px; font-weight: 700; }
.celebrate .big-emoji { font-size: 80px; animation: pop .6s cubic-bezier(.2, .9, .3, 1.5); }

.pin-dots { display: flex; gap: 16px; justify-content: center; margin: 18px 0; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--pink); display: block; transition: .15s; }
.pin-dots i.on { background: var(--pink); transform: scale(1.15); }
.pin-dots.shake { animation: shake .4s; }
.pinpad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; justify-content: center; }
.pinpad button { width: 72px; height: 72px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); font-size: 26px; font-weight: 800; }
.pinpad button:active { transform: scale(.92); background: var(--bg2); }
.pinpad button.ghost { background: none; box-shadow: none; font-size: 20px; }
.login-users { display: flex; gap: 22px; justify-content: center; margin: 30px 0 10px; }
.login-user { text-align: center; font-weight: 900; }
.login-user .ava { width: 92px; height: 92px; font-size: 52px; margin-bottom: 8px; transition: transform .2s; }
.login-user.on .ava { transform: scale(1.08); box-shadow: 0 0 0 4px var(--pink), var(--shadow-lg); }
.logo { font-weight: 900; font-size: 64px; text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-top: 24px; }
.tagline { text-align: center; color: var(--ink2); font-weight: 700; }

.starter-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--card); border-radius: 16px; margin-bottom: 8px; box-shadow: var(--shadow); }
.starter-item.off { opacity: .5; box-shadow: none; }
.starter-item .se { font-size: 26px; }
.starter-item .st { font-weight: 800; font-size: 15px; }
.starter-item .ss { font-size: 12px; color: var(--ink2); }
.starter-item input.price { width: 70px; padding: 6px 8px; text-align: center; border-radius: 10px; font-weight: 800; }
.progress-steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.progress-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); display: block; }
.progress-steps i.on { background: var(--grad); }
.sticky-bottom { position: sticky; bottom: calc(var(--bottom) + 10px); margin-top: 16px; }

@keyframes fade { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes slideUp { from { transform: translateY(100%); } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes toastIn { from { transform: translateY(-20px) scale(.9); opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
@keyframes pulse { 50% { transform: scale(1.06); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 85% { transform: rotate(0); } 90% { transform: rotate(-8deg); } 95% { transform: rotate(8deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(255, 197, 61, .5), var(--shadow-lg); } }
