/* «Втайне» — iPhone-вайб как в видео с картами: небо и облака, стеклянные карты с розово-персиковым свечением, одна тёмная кнопка.
   Всё лёгкое: без рамок и тяжёлых теней; движение — мягкие пружины. */
:root {
  --bg: #CFE3F1; --ink: #121821; --ink2: #1C2733; --ink3: #1C2733;
  --glass: rgba(255,255,255,.66); --glass-strong: rgba(255,255,255,.86); --glass-line: rgba(255,255,255,.75);
  --line: rgba(27,27,31,.07); --chip: rgba(27,27,31,.06);
  --btn: #2A2F35; --btn-ink: #fff;
  --dot: #D13F73; --good: #2A8F5E; --danger: #8E2415;
  --sky-top: #B4D3EA; --sky-mid: #CFE3F1; --sky-low: #EAF2F8; --cloud: rgba(255,255,255,.92);
  --card-a: #F6A5C0; --card-b: #FFC9A3; --card-line: rgba(236,140,165,.42); --sheet-bg: #EBF3F9;
  --blush: rgba(255,196,178,.55); --sky: rgba(176,208,236,.55); --sp1: 245,155,187; --sp2: 156,140,242;
  --shadow: 0 24px 48px -14px rgba(40,80,120,.28), 0 2px 6px rgba(40,80,120,.08);
  --r: 24px; --r-sm: 16px;
  --spring: cubic-bezier(.2,.8,.2,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
:root[data-scheme="dark"] {
  --bg: #10151F; --ink: #F3F4F8; --ink2: #DADEE8; --ink3: #E6E8EE;
  --glass: rgba(255,255,255,.07); --glass-strong: rgba(255,255,255,.12); --glass-line: rgba(255,255,255,.10);
  --line: rgba(255,255,255,.08); --chip: rgba(255,255,255,.09);
  --btn: #F3F4F8; --btn-ink: #14161C;
  --dot: #F59BB4; --good: #4CC48A; --danger: #FFB4A8;
  --sky-top: #1A2440; --sky-mid: #141B2E; --sky-low: #0F1420; --cloud: rgba(120,110,200,.22);
  --card-a: #C0689A; --card-b: #E39A7E; --card-line: rgba(255,170,200,.30); --sheet-bg: #1B2030;
  --blush: rgba(255,120,100,.16); --sky: rgba(90,130,200,.18);
  --shadow: 0 24px 48px -12px rgba(0,0,0,.55);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 16px/1.4 var(--font); color: var(--ink); background: var(--bg);
  font-variant-numeric: lining-nums tabular-nums; 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(38% 12% at 18% 14%, var(--cloud), transparent 72%),
    radial-gradient(34% 10% at 86% 30%, var(--cloud), transparent 72%),
    radial-gradient(46% 12% at 8% 62%, var(--cloud), transparent 72%),
    radial-gradient(40% 12% at 92% 88%, var(--cloud), transparent 72%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-low) 100%); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
.hidden { display: none !important; }

#app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: 0 20px calc(110px + env(safe-area-inset-bottom)); }
.screen { animation: rise .55s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* шапка */
.top { padding: calc(env(safe-area-inset-top) + 18px) 0 8px; display: flex; align-items: center; gap: 10px; min-height: 64px; }
.brand { font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.brand i { color: var(--dot); font-style: normal; }
.back { width: 36px; height: 36px; margin-left: -8px; display: grid; place-items: center; border-radius: 50%; color: var(--ink2); }
.back svg { width: 22px; height: 22px; }
h1 { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.7px; margin: 10px 0 4px; }
.sub { color: var(--ink2); font-size: 15px; margin-bottom: 18px; }
h2 { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink); text-transform: uppercase; margin: 26px 4px 10px; }

/* стекло */
.glass { background: var(--glass); backdrop-filter: blur(26px) saturate(1.25); -webkit-backdrop-filter: blur(26px) saturate(1.25);
  border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: var(--shadow); }
.card { padding: 18px; }
.list { overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: left; position: relative; }
.row + .row::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: var(--line); }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.row .t small { display: block; color: var(--ink2); font-size: 15px; margin-top: 2px; overflow-wrap: anywhere; }
.row .go { color: var(--ink3); width: 18px; height: 18px; flex: none; }
.row:active { background: var(--chip); }
.stagger > * { animation: rise .55s var(--spring) 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(n+6) { animation-delay: .25s }

/* кнопки */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 16px; width: 100%; transition: transform .2s var(--spring), opacity .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.soft { background: var(--glass-strong); color: var(--ink); border: 1px solid var(--glass-line); }
.btn.quiet { background: none; color: var(--ink2); height: 44px; font-weight: 500; }
.btn.danger { background: none; color: var(--danger); }
.btn.small { height: 38px; width: auto; font-size: 14px; padding: 0 16px; }
.btn svg, .ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: grid; gap: 10px; margin-top: 18px; }
.actions.two { grid-template-columns: 1fr auto; }

/* значки, метки */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--chip); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--ink); flex: none; }
.avatars { display: flex; }
.avatars .avatar { width: 34px; height: 34px; font-size: 13px; margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }

/* пустое состояние */
.empty { text-align: center; padding: 34px 22px 26px; }
.empty .art { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--ink2); }
.empty .art svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty p { color: var(--ink2); font-size: 15px; margin: 4px auto 18px; max-width: 28ch; }
.empty b { font-size: 19px; font-weight: 600; letter-spacing: -.2px; }

/* подсказка про «сюрприз» */
.note { display: flex; gap: 10px; align-items: flex-start; color: var(--ink2); font-size: 15px; padding: 12px 6px 0; }
.note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* «Вы дарите» — главный момент игры */
.reveal { text-align: center; padding: 28px 18px 24px; }
.reveal small { color: var(--ink3); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.reveal .who { font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; margin: 10px 0 6px; overflow-wrap: anywhere; animation: unblur 1.1s var(--spring) both; }
.reveal .who i { font-style: normal; color: var(--dot); }
@keyframes unblur { from { filter: blur(14px); opacity: 0; transform: scale(.94); } to { filter: none; opacity: 1; transform: none; } }

/* нижняя панель */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 0 16px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.tabbar nav { pointer-events: auto; display: flex; gap: 4px; padding: 6px; border-radius: 999px; width: 100%; max-width: 420px; }
.tabbar button { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 999px; font-size: 11px; color: var(--ink3); transition: background .25s, color .25s; }
.tabbar button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.on { color: var(--ink); background: var(--glass-strong); }

/* шторка */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.28); animation: fade .3s both; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: flex; justify-content: center; animation: slide .5s var(--spring) both; }
.sheet > div { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; overscroll-behavior: contain; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: var(--sheet-bg); box-shadow: 0 -20px 50px rgba(0,0,0,.18); }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 14px; }
.sheet h3 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 4px; }
.sheet .sub { margin-bottom: 14px; }
@keyframes fade { from { opacity: 0 } } @keyframes slide { from { transform: translateY(60%); opacity: 0; } }

/* поля */
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 14px; font-weight: 500; color: var(--ink2); margin: 0 4px 6px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 17px; color: var(--ink); padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--glass-strong); outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink3); box-shadow: 0 0 0 4px var(--chip); }
.field textarea { resize: none; min-height: 84px; }
.field span.opt { display: inline; margin: 0; color: var(--ink2); }

.toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: fit-content; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; padding: 12px 18px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 14px; font-weight: 500; animation: rise .4s var(--spring) both; max-width: 88vw; text-align: center; }

.pulse { animation: pulse .5s var(--spring); }
@keyframes pulse { 40% { transform: scale(1.04); } }
.link { color: var(--ink2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.center { text-align: center; }
.spacer { height: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* стеклянная «карта» — главный предмет экрана; розово-персиковое свечение и тонкие линии, как у Apple Card */
.gcard { position: relative; overflow: hidden; height: 186px; margin-bottom: 14px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.5)); }
.gcard::before { content: ""; position: absolute; width: 230px; height: 230px; right: -64px; top: -70px; border-radius: 50%; filter: blur(6px); opacity: .85;
  background: radial-gradient(circle at 40% 40%, var(--card-a), var(--card-b) 55%, transparent 72%); }
.gcard > * { position: relative; z-index: 1; }
.gcard .k { font-size: 13px; font-weight: 600; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.gcard .k svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gcard .big { font-size: 34px; font-weight: 700; letter-spacing: -.9px; line-height: 1.05; overflow-wrap: anywhere; }
.gcard .low { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.gcard.reveal { height: auto; min-height: 186px; text-align: left; padding: 18px 20px; }
.gcard.reveal .who { margin: 6px 0 4px; }
.ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--ink2); }
.ico svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gcard { margin-top: 14px; }
:root[data-scheme="dark"] .gcard { background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.04)); }
:root[data-scheme="dark"] .gcard::before { opacity: .6; }

/* «Очень хочу» и фото желания */
.chip.toggle { cursor: pointer; padding: 8px 14px; font-size: 14px; }
.chip.toggle[aria-pressed="true"] { background: linear-gradient(135deg, var(--card-a), var(--card-b)); color: #3b2430; }
.chip.toggle[aria-pressed="true"] svg { fill: currentColor; }
.ico.photo { overflow: hidden; padding: 0; }
.ico.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.starmark { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: #E0709A; }
.starmark svg { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
.qa { display: grid; gap: 10px; }
.q { padding: 14px 16px; }
.q b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.q .a { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--chip); color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.q small { color: var(--ink3); display: block; margin-top: 6px; font-size: 13px; }


/* ---------- формы с вводом: отдельный экран в обычном потоке, плавно и без подгонки под клавиатуру ---------- */
html.formmode #app, html.formmode #tabbar { display: none; }
.formpage { max-width: 520px; margin: 0 auto; padding: 0 20px calc(48px + env(safe-area-inset-bottom)); animation: formin .5s var(--spring) both; }
@keyframes formin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.formpage h3 { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.7px; margin: 6px 0 6px; }
.formpage .sub { margin-bottom: 18px; }
.formpage > div:last-child > .field { animation: rise .55s var(--spring) both; }
.formpage > div:last-child > .field:nth-of-type(2) { animation-delay: .04s; } .formpage > div:last-child > .field:nth-of-type(3) { animation-delay: .08s; }
.formpage > div:last-child > .field:nth-of-type(4) { animation-delay: .12s; }
.formpage .actions { margin-top: 18px; }
.formpage .actions.native { display: none; }          /* в Telegram вместо неё — нативная кнопка Telegram внизу */
.formpage .field textarea { min-height: 96px; }
/* поля: тихие, с мягким свечением при фокусе (без сдвигов и рывков) */
.field input, .field textarea, .field select { border-color: transparent; transition: box-shadow .25s ease, background .2s; }
.field input:focus, .field textarea:focus, .field select:focus { background: #fff; border-color: transparent; box-shadow: 0 0 0 3px rgba(244,160,190,.45), 0 10px 24px -12px rgba(60,100,150,.35); }
:root[data-scheme="dark"] .field input:focus, :root[data-scheme="dark"] .field textarea:focus { background: rgba(255,255,255,.16); box-shadow: 0 0 0 3px rgba(245,155,180,.4); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink3); opacity: .75; }
.field input, .field textarea { caret-color: #E0709A; }

/* ---------- карточка в утверждённом стиле (как картинки «Поделиться»): логотип, имя крупно, подпись; розовое пятно справа-вверху, сиреневое слева-внизу ---------- */
.gcard.v2 { height: 156px; padding: 20px; justify-content: flex-end;
  background: radial-gradient(circle at 6% 118%, rgba(156,140,242,.62), rgba(156,140,242,0) 56%), linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.44));
  border: 1px solid rgba(255,255,255,.85); box-shadow: 0 18px 40px -14px rgba(15,60,110,.28), 0 2px 6px rgba(15,60,110,.06); }
.gcard.v2::before { width: 240px; height: 240px; right: -70px; top: -100px; opacity: 1; filter: none;   /* без размытия слоя: градиент и так мягкий, и старым телефонам легче */
  background: radial-gradient(circle at 50% 50%, rgba(245,155,187,.72), rgba(245,155,187,.32) 48%, rgba(245,155,187,0) 72%); }
.gcard.v2 .logo { font-size: 20px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }
.gcard.v2 .logo i { font-style: normal; color: #D13F73; }
.gcard.v2 .nm { font-weight: 700; letter-spacing: -.045em; line-height: 1; color: var(--ink); overflow-wrap: anywhere; }
.gcard.v2 .nsub { font-size: 18px; font-weight: 500; color: var(--ink); margin-top: 8px; letter-spacing: -.01em; }
.gcard.v2.reveal { height: auto; min-height: 156px; }
:root[data-scheme="dark"] .gcard.v2 { background: radial-gradient(circle at 6% 112%, rgba(156,140,242,.55), rgba(156,140,242,0) 58%), linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.22); }
:root[data-scheme="dark"] .gcard.v2 .logo i { color: #FF8FB4; }

/* ---------- читаемость и касания (замечания критиков) ---------- */
.btn.small { height: 44px; padding: 0 18px; }
.chip.toggle { min-height: 44px; padding: 0 16px; font-size: 15px; }
.chip { min-height: 32px; }
.back { width: 44px; height: 44px; }
.btn[disabled] { opacity: 1; background: var(--glass-strong); color: var(--ink2); border: 1px solid var(--glass-line); }   /* неактивная кнопка и её подсказка читаются, а не растворяются */
.tabbar button { font-size: 13px; font-weight: 600; color: var(--ink); }
.row .t small { color: var(--ink2); }
.sub, .note { color: var(--ink2); }
.center.sub { color: var(--ink2); opacity: 1; }
h2 { color: var(--ink2); }

/* ---------- APCA (стандарт читаемости): красные кнопки — на стеклянной плашке, мелкое — тёмным; подписи не светлее Lc 75 ---------- */
.btn.danger { background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--danger); font-weight: 600; }
.center.sub, .tiny { font-size: 14px; color: var(--ink2); }
.gcard.v2 { background: radial-gradient(circle at 6% 118%, rgba(var(--sp2),.40), rgba(var(--sp2),0) 56%), linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.50)); }
.gcard.v2::before { background: radial-gradient(circle at 50% 50%, rgba(var(--sp1),.52), rgba(var(--sp1),.24) 48%, rgba(var(--sp1),0) 72%); }
.gcard.v2 .nsub { font-weight: 600; }

/* чипы: светлая подложка и 15 px — читаются на небе (APCA ≥ 75); точка бренда темнее */
.chip { background: var(--glass-strong); border: 1px solid var(--glass-line); font-size: 15px; font-weight: 600; color: var(--ink); }
.chip.dot::before { background: #C23A6E; }
:root { --dot: #C23A6E; }
.row .t .chip { display: inline-flex; }
/* подписи полей: 15 px / 600 тёмным — проходят APCA на небе */
.field span { font-size: 15px; font-weight: 600; color: var(--ink); }
.field span.opt { color: var(--ink); font-weight: 500; }

/* Сезонные оформления (бесплатные, включаются сами; статичные, без анимации — старым телефонам легче) */
/* день рождения: тёплое пятно и конфетти на карточке хозяина — за 7 дней до даты и 1 день после */
.gcard.v2.bd::before { background: radial-gradient(circle at 50% 50%, rgba(255,184,120,.78), rgba(245,155,187,.38) 48%, rgba(245,155,187,0) 72%); }
.gcard.v2.bd::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
   linear-gradient(35deg, transparent 46%, #F59BBB 46% 54%, transparent 54%) 78% 14% / 22px 8px no-repeat,
   linear-gradient(-30deg, transparent 46%, #9C8CF2 46% 54%, transparent 54%) 90% 34% / 24px 8px no-repeat,
   linear-gradient(60deg, transparent 46%, #FFB86B 46% 54%, transparent 54%) 66% 28% / 20px 8px no-repeat,
   linear-gradient(-55deg, transparent 46%, #5CC8BA 46% 54%, transparent 54%) 84% 62% / 22px 8px no-repeat,
   linear-gradient(20deg, transparent 46%, #F59BBB 46% 54%, transparent 54%) 56% 12% / 18px 7px no-repeat; }
/* новогоднее: снежинки на небе, красно-зелёные пятна на карточках */
html[data-season="ny"]:not([data-theme]) body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .8;
  background-image: radial-gradient(circle, #fff 0 2.2px, transparent 3px), radial-gradient(circle, #fff 0 1.6px, transparent 2.4px), radial-gradient(circle, #fff 0 2.8px, transparent 3.6px);
  background-size: 190px 230px, 130px 170px, 270px 310px; background-position: 20px 30px, 70px 110px, 150px 60px; }
html[data-season="ny"]:not([data-theme]) .gcard.v2:not(.bd)::before { background: radial-gradient(circle at 50% 50%, rgba(224,101,125,.62), rgba(224,101,125,.26) 48%, rgba(224,101,125,0) 72%); }
html[data-season="ny"]:not([data-theme]) .gcard.v2 { background: radial-gradient(circle at 6% 118%, rgba(95,184,140,.55), rgba(95,184,140,0) 56%), linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.44)); }

/* Оформления неба и карточки (платные пока только для просмотра). Светлые — небо остаётся достаточно светлым для мелкого текста по APCA. */
:root[data-theme="sunset"]:not([data-scheme="dark"]) { --sky-top: #EDC7D4; --sky-mid: #F5D2D1; --sky-low: #FBE3D3; --sp1: 255,208,138; --sp2: 192,83,140; --dot: #C23A6E; }
:root[data-theme="mint"]:not([data-scheme="dark"]) { --sky-top: #A9DDD0; --sky-mid: #C6EBDD; --sky-low: #E6F7F0; --sp1: 127,214,176; --sp2: 168,224,200; }
:root[data-theme="lilac"]:not([data-scheme="dark"]) { --sky-top: #D7CDF3; --sky-mid: #E2D9F6; --sky-low: #F1EBFA; --sp1: 199,155,238; --sp2: 245,155,187; --dot: #C23A6E; }
:root[data-theme="champ"]:not([data-scheme="dark"]) { --sky-top: #D8E4F0; --sky-mid: #EEF0F2; --sky-low: #FBF0E4; --sp1: 232,198,133; --sp2: 243,221,184; }
:root[data-theme="ocean"]:not([data-scheme="dark"]) { --sky-top: #A5D6DE; --sky-mid: #C4E7EC; --sky-low: #E4F5F7; --sp1: 127,224,208; --sp2: 92,157,224; --dot: #C0295E; }
:root[data-theme="peach"]:not([data-scheme="dark"]) { --sky-top: #F9CDB3; --sky-mid: #FBDCC9; --sky-low: #FFF1E6; --sp1: 255,195,154; --sp2: 245,155,187; --dot: #C23A6E; }
:root[data-theme="berry"][data-scheme="dark"] { --bg: #2A0F2E; --sky-top: #3A1535; --sky-mid: #2A0F2E; --sky-low: #1E0A22; --sheet-bg: #2A1630; --sp1: 255,143,180; --sp2: 106,63,176; --dot: #FF8FB4; --cloud: rgba(200,110,170,.18); }
/* окно выбора */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; margin: 10px 0 4px; }
.th { display: grid; justify-items: center; gap: 6px; padding: 4px 0; background: none; border: 0; color: var(--ink); font: inherit; min-height: 44px; }
.th i { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--glass-line), 0 8px 18px -8px rgba(20,40,70,.4); }
.th.on i { box-shadow: 0 0 0 3px var(--dot), 0 8px 18px -8px rgba(20,40,70,.4); }
.th span { font-size: 14px; font-weight: 600; text-align: center; line-height: 1.15; }
.th em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--ink2); margin-top: -3px; line-height: 1.1; }

/* выбор вайба в листе «Новая игра» */
.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 8px; }
.vibes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vibe { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px 6px 8px; border-radius: 16px; background: var(--chip); font-size: 15px; font-weight: 600; text-align: left; color: var(--ink); }
.vibe i { width: 32px; height: 32px; border-radius: 10px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.vibe[aria-pressed="true"] { background: var(--glass-strong); box-shadow: 0 0 0 2px var(--dot); }
