:root {
  --bg: #120a20;
  --bg-2: #1b1030;
  --card: rgba(255, 255, 255, 0.055);
  --card-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --ink: #fbf3f6;
  --muted: #b8a8c9;
  --rose: #ff7a9e;
  --rose-2: #ff9db4;
  --peach: #ffd2bd;
  --lilac: #cbaaff;
  --gold: #ffd08a;
  --green: #7ee0b0;
  --danger: #ff6b81;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 22px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 15% -10%, #3a1c4f 0%, transparent 55%),
    radial-gradient(100% 70% at 95% 8%, #4a1d3a 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 45%, #0d0718 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--peach); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.hand { font-family: var(--hand); font-weight: 700; letter-spacing: 0.2px; }
.hidden, [hidden] { display: none !important; }

/* ---------- фон ---------- */
.aurora { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i {
  position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 260px; height: 260px; background: #ff5f8f; top: -60px; left: -70px; }
.aurora i:nth-child(2) { width: 220px; height: 220px; background: #7b4bff; bottom: 18%; right: -90px; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 200px; height: 200px; background: #ff9f6e; bottom: -80px; left: 20%; opacity: 0.28; animation-delay: -11s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(18px, 26px, 0) scale(1.12); } }

.app {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; margin: 0 auto;
  min-height: 100dvh;
}

/* ---------- загрузка ---------- */
.splash {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #1b1030, #0d0718);
  transition: opacity 0.45s ease, visibility 0.45s;
}
.splash.out { opacity: 0; visibility: hidden; }
.splash-heart { width: 74px; height: 74px; color: var(--rose); animation: beat 1.4s ease-in-out infinite; filter: drop-shadow(0 8px 30px rgba(255, 107, 143, 0.5)); }
.splash-heart svg { width: 100%; height: 100%; fill: currentColor; }
.splash-logo {
  width: 108px; height: 108px; border-radius: 50%; display: block;
  box-shadow: 0 16px 40px rgba(255, 107, 143, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.14);
  animation: beat 1.8s ease-in-out infinite;
}
.splash-name { font-size: 40px; margin: 0; color: var(--peach); }
.splash-hint { color: var(--muted); font-size: 13px; margin: 0; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 48% { transform: scale(1); } }

/* ---------- вход / онбординг ---------- */
.gate, .onboard {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.gate-card, .onboard-card {
  width: 100%; max-width: 420px; text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line); border-radius: 28px; padding: 30px 24px 26px;
  backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.gate-heart { width: 58px; height: 58px; fill: var(--rose); filter: drop-shadow(0 6px 18px rgba(255, 122, 158, 0.45)); }
.gate-card h1, .onboard-card h1 { font-size: 42px; margin: 6px 0 10px; color: var(--peach); }
.gate-card p, .onboard-lead { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.onboard-lead { line-height: 1.55; }
.tiny { color: #8f7fa4; font-size: 12px; margin: 16px 0 0; }

/* ---------- кнопки ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 12px 18px;
  border: 0; border-radius: 16px;
  background: linear-gradient(135deg, var(--rose), #ff9a6f);
  color: #2a0f1c; font-weight: 700; font-size: 15.5px;
  box-shadow: 0 10px 26px rgba(255, 107, 143, 0.28);
  transition: transform 0.12s ease, filter 0.2s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.975); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn.ghost {
  background: rgba(255, 255, 255, 0.06); color: var(--ink);
  border: 1px solid var(--line); box-shadow: none; font-weight: 600;
}
.btn.danger { background: linear-gradient(135deg, #ff556f, #d92e4d); color: #fff; box-shadow: 0 10px 26px rgba(255, 85, 111, 0.25); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 13.5px; border-radius: 12px; width: auto; }
.btn + .btn { margin-top: 10px; }

/* ---------- основное ---------- */
.main { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: linear-gradient(180deg, rgba(18, 10, 32, 0.94), rgba(18, 10, 32, 0.55) 70%, transparent);
  backdrop-filter: blur(14px);
}
.pair { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, #5b2f6e, #3a1f4f);
  display: grid; place-items: center; overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  font-weight: 700; color: var(--peach);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .dot {
  position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2.5px solid #170d27;
}
.avatar .dot.off { background: #6b5c7e; }
.pair-txt { min-width: 0; }
.pair-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.days-pill {
  flex: none; text-align: center; padding: 7px 13px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.days-pill b { display: block; font-size: 17px; font-family: var(--hand); color: var(--peach); line-height: 1; }
.days-pill span { font-size: 10px; color: var(--muted); }

.view { padding: 6px 16px 24px; outline: none; }
.view.is-chat { display: flex; flex-direction: column; min-height: calc(100dvh - 164px); }

/* ---------- карточки ---------- */
.card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; margin-bottom: 14px;
}
.card.tight { padding: 13px; }

.hello { margin: 2px 0 16px; }
.hello h1 { font-size: 34px; margin: 0 0 2px; color: var(--peach); line-height: 1.05; }
.hello h1 .hi-heart { font-size: 0.62em; }
.hello p { color: var(--muted); margin: 0; font-size: 13.5px; }

.hero {
  display: flex; align-items: center; gap: 14px;
  background:
    radial-gradient(120% 140% at 85% 10%, rgba(255, 122, 158, 0.28), transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 180, 200, 0.22); border-radius: 24px;
  padding: 16px; margin-bottom: 14px;
}
.hero .avatar { width: 56px; height: 56px; font-size: 18px; }
.hero-txt { flex: 1; min-width: 0; }
.hero-txt .n { font-family: var(--hand); font-size: 24px; line-height: 1.1; }
.hero-txt .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.hero-heart { width: 40px; height: 40px; fill: var(--rose); opacity: 0.85; filter: drop-shadow(0 4px 14px rgba(255, 122, 158, 0.5)); flex: none; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 14px; }
.action {
  position: relative; overflow: hidden; text-align: left;
  min-height: 104px; padding: 14px;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  color: var(--ink); display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.12s ease, border-color 0.2s;
}
.action:active { transform: scale(0.97); }
.action .ico { font-size: 23px; line-height: 1; }
.action .t { font-family: var(--hand); font-size: 21px; line-height: 1.05; margin-top: auto; }
.action .s { font-size: 11px; color: var(--muted); margin-top: 1px; }
.action::after {
  content: ''; position: absolute; width: 90px; height: 90px; right: -30px; top: -34px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 158, 0.35), transparent 70%);
}
.action.wide { grid-column: span 2; min-height: 84px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 13px; }
.action.wide > span:last-child { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.action.wide .t { margin: 0; font-size: 21px; display: block; }
.action.wide .s { margin: 0; display: block; }
.action.wide .ico { font-size: 26px; }

.hug {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; margin-bottom: 14px;
  border: 0; border-radius: 20px;
  background: linear-gradient(120deg, #ff6f95, #ffa774 60%, #ffd09a);
  color: #3a1020; font-weight: 700; font-size: 17px; font-family: var(--hand);
  box-shadow: 0 14px 30px rgba(255, 111, 149, 0.28);
  transition: transform 0.12s;
}
.hug:active { transform: scale(0.975); }
.hug svg { width: 24px; height: 24px; fill: currentColor; }
.hug.is-cool {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 160, 190, 0.35);
  color: #ffc2d0; font-size: 13px; font-family: inherit; font-weight: 600;
  box-shadow: none; line-height: 1.3; padding: 0 18px;
}
.hug.is-cool:active { transform: none; }
.hug:disabled { cursor: default; }

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 20px 2px 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #9b8aae;
}
.section-title button { background: none; border: 0; color: var(--peach); font-size: 12px; }

/* ---------- лента ---------- */
.feed { display: flex; flex-direction: column; gap: 10px; }
.event {
  display: flex; gap: 12px; padding: 13px 14px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--line); border-radius: 18px;
}
.event.unseen { border-color: rgba(255, 150, 180, 0.42); box-shadow: 0 0 0 1px rgba(255, 150, 180, 0.08) inset; }
.event .ico { font-size: 22px; line-height: 1.2; width: 26px; text-align: center; flex: none; }
.event .txt { min-width: 0; flex: 1; }
.event .who { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.event .who b { color: var(--peach); font-weight: 600; }
.event .ttl { font-size: 14.5px; margin: 2px 0 0; overflow-wrap: anywhere; }
.event .place-link { cursor: pointer; }
.event .place-link .ext { color: var(--peach); font-size: 0.85em; }
.event .ev-poster { margin: 3px 0 6px; }
.event .ev-poster img {
  width: 56px; height: 80px; object-fit: cover; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: #241537;
}
.map-link {
  margin-top: 7px; padding: 5px 9px; border-radius: 9px;
  border: 1px solid rgba(255, 160, 190, 0.32); background: rgba(255, 122, 158, 0.1);
  color: #ffc2d0; font-size: 11px; font-family: inherit;
}
.map-link:active { transform: scale(0.97); }
.event .sub { font-size: 12.5px; color: #cdbdd9; margin-top: 3px; overflow-wrap: anywhere; }
.event .time { font-size: 11px; color: #8f7fa4; flex: none; }
.event .chip-inline {
  display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.07); margin: 4px 4px 0 0;
}
.day-sep { text-align: center; font-size: 11px; color: #8f7fa4; margin: 8px 0; letter-spacing: 0.06em; }

.empty { text-align: center; padding: 38px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.empty p { margin: 4px 0; font-size: 13.5px; }

/* ---------- чат (удалён из приложения) ---------- */

/* ---------- «Мы» ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.stat {
  text-align: center; padding: 13px 6px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.stat b { display: block; font-family: var(--hand); font-size: 26px; color: var(--peach); line-height: 1; }
.stat span { font-size: 10.5px; color: var(--muted); }

.list-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; color: var(--ink);
}
.list-row:last-child { border-bottom: 0; }
.list-row .lr-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); font-size: 16px; flex: none; }
.list-row .lr-t { flex: 1; min-width: 0; }
.list-row .lr-t b { display: block; font-weight: 500; font-size: 14.5px; }
.list-row .lr-t span { display: block; font-size: 12px; color: var(--muted); }
.list-row .chev { color: #8f7fa4; font-size: 18px; }
.list-row.danger .lr-t b { color: var(--danger); }

.reminder { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.reminder:last-child { border-bottom: 0; }
.reminder .rt { flex: 1; }
.reminder .rt b { font-weight: 500; font-size: 14px; }
.reminder .rt span { display: block; font-size: 12px; color: var(--muted); }
.reminder .del { background: none; border: 0; color: #8f7fa4; font-size: 18px; padding: 2px 6px; }

/* ---------- шторка ---------- */
.sheet-host { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 3, 16, 0.66); backdrop-filter: blur(3px); animation: fade 0.2s ease; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh;
  background: linear-gradient(180deg, #241537, #170d28 55%, #140b23);
  border-radius: 26px 26px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
  animation: up 0.26s cubic-bezier(0.2, 0.9, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@keyframes up { from { transform: translateY(40px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; gap: 6px; padding: 8px 16px 4px; }
.sheet-back { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); font-size: 24px; line-height: 1; color: var(--ink); }
.sheet-head h2 { font-size: 27px; margin: 0; color: var(--peach); }
.sheet-body { padding: 8px 16px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- формы ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--ink);
  outline: none; font-size: 15px; transition: border-color 0.18s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(255, 122, 158, 0.65); }
.field input[type="date"], .field input[type="time"], .field input[type="datetime-local"] { color-scheme: dark; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 8px 13px; border-radius: 12px; font-size: 13px;
  background: rgba(255, 255, 255, 0.055); border: 1px solid var(--line); color: var(--ink);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip[aria-pressed="true"] { background: rgba(255, 122, 158, 0.22); border-color: rgba(255, 122, 158, 0.7); color: #ffdbe4; }
.seg { display: flex; background: rgba(255, 255, 255, 0.05); border-radius: 13px; padding: 3px; border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.seg input:checked + label { background: rgba(255, 122, 158, 0.22); color: #ffdbe4; font-weight: 600; }
.range-row { display: flex; align-items: center; gap: 12px; }
input[type="range"] { width: 100%; accent-color: var(--rose); }
.out { font-family: var(--hand); font-size: 26px; color: var(--peach); min-width: 34px; text-align: center; }
.err { color: #ff9db0; font-size: 12.5px; margin: 4px 0 10px; }
.hint { color: #8f7fa4; font-size: 11.5px; margin: 6px 0 0; }
.sheet-actions { display: flex; gap: 9px; margin-top: 6px; }
.sheet-actions .btn { flex: 1; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.toggle-row:last-of-type { border-bottom: 0; }
.toggle-row .tl b { display: block; font-size: 14px; font-weight: 500; }
.toggle-row .tl span { display: block; font-size: 11.5px; color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i {
  position: absolute; inset: 0; border-radius: 20px; background: rgba(255, 255, 255, 0.13);
  transition: background 0.2s; pointer-events: none;
}
.switch i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform 0.2s;
}
.switch input:checked + i { background: linear-gradient(135deg, var(--rose), #ff9a6f); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ---------- ссылка-приглашение ---------- */
.invite-link {
  font-size: 13.5px; line-height: 1.5; word-break: break-all; color: var(--peach);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 210, 189, 0.35); border-radius: 16px;
  padding: 16px 14px; margin-bottom: 14px; text-align: center; font-weight: 500;
  -webkit-user-select: all; user-select: all;
}

/* ---------- письмо / билет / колесо ---------- */
.letter {
  position: relative; padding: 20px 18px; border-radius: 20px; margin-bottom: 14px;
  background: linear-gradient(160deg, #fff3e9, #ffe0d2);
  color: #3a1a28; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.letter::before {
  content: ''; position: absolute; inset: 7px; border: 1px solid rgba(58, 26, 40, 0.16); border-radius: 14px; pointer-events: none;
}
.letter .lt { position: relative; font-family: var(--hand); font-size: 23px; line-height: 1.3; }
.letter .ltag { position: relative; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: #a4546a; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.letter .ltag svg { width: 18px; height: 18px; fill: #c25b74; }
.waiting { text-align: center; color: var(--muted); padding: 26px 0; font-family: var(--hand); font-size: 24px; }
.dots::after { content: ''; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ---------- игры ---------- */
.games-head { padding: 8px 2px 4px; }
.games-head h1 { font-size: 34px; color: var(--peach); margin: 0 0 4px; }
.games-head p { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.4; }
.theme { margin-bottom: 18px; }
.theme-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; padding: 0 2px; }
.theme-head span { font-family: var(--hand); font-size: 22px; color: #fff; }
.theme-head i { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #9b8aae; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 13px; min-height: 116px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--ink); text-align: left;
}
.game-card:active { transform: scale(0.97); }
.game-card .gico { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.game-card .gt { font-family: var(--hand); font-size: 21px; line-height: 1.05; }
.game-card .gs { font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 2px; }

.breath { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 0 6px; }
.breath-orb {
  width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 160, 190, 0.55), rgba(140, 110, 230, 0.28) 60%, rgba(30, 18, 50, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 60px rgba(255, 140, 180, 0.25), inset 0 0 40px rgba(255, 255, 255, 0.08);
  transform: scale(0.8); transition: transform 4s ease-in-out;
}
.breath-orb.big { transform: scale(1.16); }
.breath-orb span { font-family: var(--hand); font-size: 25px; color: #fff; }

.pop-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pop-head b { color: var(--peach); font-size: 18px; }
.pop-arena {
  position: relative; height: 320px; border-radius: 20px; border: 1px dashed rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 50% 20%, rgba(255, 122, 158, 0.12), rgba(255, 255, 255, 0.02));
  overflow: hidden; margin-bottom: 12px;
}
.pop-idle { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 20px; line-height: 1.5; }
.pop-heart {
  position: absolute; border: 0; background: none; font-size: 30px; line-height: 1; padding: 0;
  animation: popIn 0.18s ease; filter: drop-shadow(0 4px 10px rgba(255, 100, 140, 0.35));
}
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.praise-wrap { padding: 12px 0 16px; display: flex; justify-content: center; }
.praise-card {
  width: 100%; min-height: 200px; border-radius: 22px; padding: 24px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: linear-gradient(150deg, #ffd9c8, #f7c6d8 60%, #e6c8ff);
  color: #3a1a28; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-family: var(--hand); font-size: 25px; line-height: 1.25;
}
.praise-card p { margin: 0; }
.praise-card .pra-em { font-size: 28px; }
.pop { animation: popIn 0.24s ease; }

.punch-zone {
  position: relative; margin: 8px 0 14px; height: 260px; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 50% 35%, rgba(255, 120, 120, 0.18), rgba(255, 255, 255, 0.02));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  overflow: hidden; user-select: none; -webkit-user-select: none;
  cursor: pointer; touch-action: manipulation;
}
.punch-word {
  max-width: 88%; padding: 0 8px; font-family: var(--hand); font-size: 28px;
  line-height: 1.1; text-align: center; color: #fff; overflow-wrap: anywhere;
  pointer-events: none;
}
.punch-face { font-size: 70px; line-height: 1; transition: transform 0.12s; pointer-events: none; }
.punch-zone.hit .punch-face { transform: scale(0.86) rotate(-6deg); }
.punch-zone.hit { animation: shake 0.18s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.rage { width: 66%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.rage i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff9a6f, #ff556f); transition: width 0.2s; }
.combo { font-family: var(--hand); font-size: 21px; color: var(--peach); min-height: 24px; pointer-events: none; }
.combo small { font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #ffb3a0; margin-left: 4px; }
.punch-top { display: flex; justify-content: space-around; gap: 8px; margin: 2px 0 4px; }
.punch-top div { text-align: center; }
.punch-top b { display: block; font-size: 21px; color: #fff; line-height: 1.1; }
.punch-top span { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.punch-top .new-record { color: #ffd18a; animation: recordPop 0.35s ease; }
@keyframes recordPop { 50% { transform: scale(1.25); } }
.punch-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.punch-summary { text-align: center; padding: 4px 0 2px; }
.punch-sum-face { font-size: 62px; line-height: 1; }
.punch-summary h3 { font-family: var(--hand); font-size: 30px; color: #fff; margin: 4px 0 10px; }
.punch-sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.punch-sum-grid div { padding: 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.punch-sum-grid b { display: block; font-size: 22px; color: #fff; }
.punch-sum-grid span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.question-card {
  min-height: 190px; border-radius: 22px; padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.question-card .q-em { font-size: 26px; }
.question-card p { margin: 0; font-family: var(--hand); font-size: 26px; line-height: 1.22; color: #fff; }

.places-where { font-family: var(--hand); font-size: 24px; color: var(--peach); margin: 4px 0 10px; }
.place-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.place-card {
  padding: 11px 13px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.place-card.flash { background: rgba(255, 122, 158, 0.22); border-color: rgba(255, 160, 190, 0.7); transform: scale(1.015); }
.place-card.picked {
  border-color: var(--peach); background: rgba(255, 160, 190, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 160, 190, 0.35), 0 12px 30px rgba(0, 0, 0, 0.3);
}
.pc-top { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #a992bd; }
.pc-map { color: var(--peach); white-space: nowrap; }
.pc-price { color: var(--peach); }
.pc-name { font-family: var(--hand); font-size: 21px; color: #fff; line-height: 1.1; margin: 2px 0; }
.pc-why { font-size: 12px; color: #d9c9e4; line-height: 1.35; }
.pc-area { font-size: 10.5px; color: #9b8aae; margin-top: 2px; }
.picked-box {
  margin: 4px 0 12px; padding: 16px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 160, 190, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 160, 190, 0.4); animation: popIn 0.25s ease;
}
.picked-lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #d9b7c8; }
.picked-name { font-family: var(--hand); font-size: 29px; line-height: 1.05; margin: 2px 0 4px; }
.picked-why { font-size: 12px; color: #d9c9e4; margin-bottom: 12px; }

.mv-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); margin-bottom: 12px; }
.mv-tabs button { flex: 1; border: 0; background: none; color: var(--muted); font-size: 11.5px; padding: 8px 4px; border-radius: 10px; }
.mv-tabs button.active { background: rgba(255, 122, 158, 0.22); color: #ffdbe4; font-weight: 600; }
.mv-tabs b { font-weight: 600; opacity: 0.75; }
.mv-progress { text-align: center; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.mv-stage { position: relative; min-height: 300px; display: flex; justify-content: center; }
.mv-card {
  width: 100%; max-width: 340px; min-height: 300px; border-radius: 24px; padding: 0;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
  overflow: hidden;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background: linear-gradient(160deg, #3a2350, #241537 55%, #1a1030);
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease; will-change: transform;
}
.mv-poster {
  width: 100%; height: 258px; object-fit: cover; object-position: center top; display: block;
  background: #241537;
}
.mv-poster.fb {
  display: grid; place-items: center; font-size: 56px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 160, 190, 0.28), transparent 65%),
              linear-gradient(160deg, #3a2350, #1a1030);
}
.mv-info { padding: 15px 18px 18px; display: flex; flex-direction: column; gap: 5px; }
.mv-ico { font-size: 34px; }
.mv-title { font-family: var(--hand); font-size: 30px; line-height: 1.05; color: #fff; }
.mv-meta { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #b7a3c9; }
.mv-why { font-size: 13.5px; color: #e4d6ee; line-height: 1.4; margin-top: 4px; }
.mv-hint { margin-top: 12px; font-size: 10.5px; color: #8f7fa4; letter-spacing: 0.06em; }
.mv-actions { display: flex; justify-content: center; gap: 22px; margin: 14px 0 12px; }
.mv-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07); font-size: 26px; color: #fff;
  display: grid; place-items: center;
}
.mv-btn.no { color: #ff8fa5; }
.mv-btn.yes { color: #7ee0b0; background: rgba(126, 224, 176, 0.1); border-color: rgba(126, 224, 176, 0.35); }
.mv-btn:active { transform: scale(0.92); }
.mv-intro, .mv-done { text-align: center; padding: 10px 6px 4px; }
.mv-big { font-size: 46px; }
.mv-intro h3, .mv-done h3 { font-family: var(--hand); font-size: 27px; margin: 6px 0; color: var(--peach); }
.mv-intro p, .mv-done p { color: var(--muted); font-size: 13px; line-height: 1.45; margin-bottom: 16px; }
.mv-list { display: flex; flex-direction: column; gap: 8px; }
.mv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mv-thumb {
  width: 46px; height: 65px; border-radius: 9px; object-fit: cover; flex: none;
  background: #241537; border: 1px solid rgba(255, 255, 255, 0.1);
}
.mv-thumb.fb { display: grid; place-items: center; font-size: 20px; }
.mv-row-txt { flex: 1; min-width: 0; }
.mv-row-t { font-family: var(--hand); font-size: 20px; line-height: 1.1; }
.mv-row-s { font-size: 10.5px; color: #9b8aae; }
.mv-heart { color: #ff8fa5; font-size: 18px; }
.mv-watch {
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05);
  color: var(--muted); font-size: 11px; padding: 7px 9px; border-radius: 10px; white-space: nowrap;
}
.mv-watch.on { color: #7ee0b0; border-color: rgba(126, 224, 176, 0.4); background: rgba(126, 224, 176, 0.1); }
.mv-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px; line-height: 1.45; }

.ticket {
  border-radius: 18px; overflow: hidden; margin-bottom: 12px;
  background: linear-gradient(155deg, #2d1b4e, #1a102e);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.tk-top { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: rgba(255, 255, 255, 0.05); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peach); }
.tk-top svg { width: 18px; height: 18px; fill: var(--rose); }
.tk-body { padding: 16px; }
.tk-lbl { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #9b8aae; margin-bottom: 3px; }
.tk-place { font-family: var(--hand); font-size: 30px; color: #fff; line-height: 1.05; margin-bottom: 12px; overflow-wrap: anywhere; }
.tk-when { display: flex; gap: 20px; }
.tk-val { font-size: 14px; color: #f0e4ef; }
.tk-extra { margin-top: 9px; font-size: 12.5px; color: #d9c9e4; }
.tk-extra b { color: #9b8aae; font-weight: 500; display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.tk-stub { border-top: 1px dashed rgba(255, 255, 255, 0.2); padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
.tk-stamp { color: var(--green); font-family: var(--hand); font-size: 19px; display: flex; align-items: center; gap: 6px; }
.tk-stamp svg { width: 18px; height: 18px; }
.tk-stamp.pending { color: var(--peach); font-size: 17px; }
.ticket-actions { display: flex; gap: 8px; margin-top: 10px; }
.ticket-actions .btn { flex: 1; margin-top: 0; }

.punch-offer { text-align: center; padding: 4px 0 2px; }
.punch-offer-ico { font-size: 58px; line-height: 1; }
.punch-offer h3 { font-family: var(--hand); font-size: 28px; color: #fff; margin: 6px 0 6px; }
.punch-offer p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0 0 12px; }
.punch-offer-target {
  font-family: var(--hand); font-size: 24px; line-height: 1.2; color: #fff;
  padding: 12px 14px; margin-bottom: 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-wrap: anywhere;
}

/* ---------- таббар ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(20, 11, 35, 0.75), rgba(16, 9, 28, 0.97));
  backdrop-filter: blur(18px); border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.tabbar.has-admin { grid-template-columns: repeat(5, 1fr); }
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 4px; border: 0; background: none; color: #8f7fa4; font-size: 10px;
  border-radius: 13px; transition: color 0.18s;
}
.tab svg { width: 23px; height: 23px; fill: currentColor; opacity: 0.9; }
.tab[aria-current="page"] { color: var(--peach); }
.tab[aria-current="page"] svg { filter: drop-shadow(0 3px 9px rgba(255, 160, 180, 0.4)); }
.badge {
  position: absolute; top: 4px; right: calc(50% - 20px); min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--rose); color: #2a0f1c; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; font-style: normal;
}

/* ---------- тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(10px);
  z-index: 80; max-width: 88%; padding: 11px 18px; border-radius: 14px;
  background: rgba(40, 24, 58, 0.97); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink); font-size: 13.5px; box-shadow: var(--shadow);
  opacity: 0; transition: opacity 0.22s, transform 0.22s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--peach); animation: spin 0.7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- админ-панель ---------- */
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 4px 0 12px; }
.admin-head h1 { margin: 0; }
.admin-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.admin-refresh {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06); color: var(--peach); font-size: 22px; line-height: 1;
}
.admin-hero {
  display: flex; align-items: center; gap: 14px; padding: 15px; border-radius: 20px;
  border: 1px solid rgba(255, 160, 180, 0.18);
  background: radial-gradient(circle at 10% 20%, rgba(255, 130, 140, 0.16), rgba(255, 255, 255, 0.03));
}
.admin-online { flex: 0 0 96px; text-align: center; }
.admin-online b { display: block; font-size: 46px; line-height: 0.95; color: #fff; font-family: var(--hand); }
.admin-online span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--peach); }
.admin-online small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.admin-mini { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.admin-mini div { padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.admin-mini b { display: block; color: #fff; font-size: 18px; line-height: 1.1; }
.admin-mini span { font-size: 9px; color: var(--muted); }
.admin-service { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 10px 0 12px; padding: 4px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); }
.admin-service div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.admin-service div:nth-last-child(-n+2) { border-bottom: 0; }
.admin-service span { font-size: 10px; color: var(--muted); }
.admin-service b { font-size: 11px; color: #fff; white-space: nowrap; }
.admin-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
.au-avatar { position: relative; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: linear-gradient(135deg, #ffb08f, #d68dff); display: grid; place-items: center; color: #2a142a; font-weight: 800; overflow: visible; }
.au-avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.au-avatar span { font-size: 15px; }
.au-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #57d98a; border: 2px solid #170e26; }
.au-main { min-width: 0; flex: 1; }
.au-main b { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-main span { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-main small { display: block; font-size: 9px; color: #9f8fb4; margin-top: 1px; }
.au-right { flex: 0 0 auto; text-align: right; }
.au-right b { display: block; font-size: 13px; }
.au-right span { display: block; font-size: 9px; color: var(--muted); }

@media (min-width: 620px) {
  .app { border-left: 1px solid rgba(255, 255, 255, 0.05); border-right: 1px solid rgba(255, 255, 255, 0.05); }
}

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