/* Бобик — «наклейки на трассе».
   Layout: одна колонка ≤ 560px; сверху счёт дня, в центре две кнопки-наклейки, разделённые дорожной разметкой; снизу таб-бар. */
:root {
  --paper: #f2eefa;
  --card: #ffffff;
  --ink: #1d1730;
  --muted: #6a6283;
  --line: #e1d9f2;
  --lav: #b9a6e8;
  --violet: #6646d9;
  --flame: #f25a1d;
  --flame-2: #f7a21b;
  --ok: #17905f;
  --sticker: #ffffff;
  --shadow: 32 18 70;
  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-lg: 26px;
  --r-md: 16px;
  --tabbar: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14101f; --card: #1f1930; --ink: #f1ecff; --muted: #a49bbf; --line: #322a48;
    --lav: #8d79c9; --violet: #a28dff; --flame: #ff7438; --flame-2: #ffb43d; --ok: #3cc98b;
    --sticker: #f6f2ff; --shadow: 0 0 0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14101f; --card: #1f1930; --ink: #f1ecff; --muted: #a49bbf; --line: #322a48;
  --lav: #8d79c9; --violet: #a28dff; --flame: #ff7438; --flame-2: #ffb43d; --ok: #3cc98b;
  --sticker: #f6f2ff; --shadow: 0 0 0; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 15px/1.45 var(--font-body);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper);
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }

.shell {
  max-width: 560px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 calc(var(--tabbar) + 24px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding-block: 12px 10px; background: var(--paper);
}
.top .brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.top .brand img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.top h1 {
  margin: 0; font: 700 17px/1.15 var(--font-display); letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sync { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sync.off i { background: var(--muted); }
.sync.demo i { background: var(--flame-2); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 0; background: var(--card);
  display: grid; place-items: center; box-shadow: 0 1px 0 var(--line);
}
.icon-btn svg { width: 22px; height: 22px; }

.banner {
  display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin-block: 2px 10px; padding: 10px 14px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--flame-2) 18%, var(--card)); font-size: 13px;
}
.banner button { border: 0; background: none; font-weight: 800; color: var(--flame); padding: 4px 0; }

/* ---------- Главная ---------- */
.today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.eyebrow { font: 700 11px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.date { font-weight: 700; color: var(--muted); text-transform: lowercase; }

.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.score {
  background: var(--card); border-radius: var(--r-lg); padding: 14px 16px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.score b { font: 800 52px/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.score span { font-size: 13px; font-weight: 700; color: var(--muted); }
.score.pending b { color: var(--flame); }
.score.conf b { color: var(--violet); }
.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-3deg); } 100% { transform: scale(1); } }

.stage {
  display: grid; grid-template-columns: 1fr 22px 1fr; align-items: stretch;
  margin-top: 16px;
}
.lane {
  justify-self: center; width: 5px; border-radius: 3px;
  background: repeating-linear-gradient(to bottom, var(--flame-2) 0 18px, transparent 18px 32px);
  opacity: .8;
}
.big {
  position: relative; border: 0; padding: 12px 10px 14px; border-radius: 30px;
  background: var(--card); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px;
  box-shadow: 0 10px 24px -14px rgb(var(--shadow) / .45), inset 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform .12s ease;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  min-height: 210px;
}
.big:active { transform: scale(.95); }
.big.bob { --accent: var(--flame); }
.big.o { --accent: var(--violet); }
.big img {
  width: 100%; aspect-ratio: 1; max-width: 100%; object-fit: contain; pointer-events: none;
  filter: drop-shadow(2px 0 0 var(--sticker)) drop-shadow(-2px 0 0 var(--sticker)) drop-shadow(0 2px 0 var(--sticker)) drop-shadow(0 -2px 0 var(--sticker)) drop-shadow(0 6px 8px rgb(var(--shadow) / .25));
}
.big .label {
  font: 800 24px/1 var(--font-display); color: var(--accent); letter-spacing: -0.02em;
}
.big .sub { font-size: 12px; font-weight: 700; color: var(--muted); }
.big.drive img { animation: drive .9s cubic-bezier(.5,0,.3,1); }
@keyframes drive {
  0% { transform: translateX(0); }
  35% { transform: translateX(140%) skewX(-12deg); opacity: 1; }
  36% { transform: translateX(-140%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateX(0); }
}
.big.pop img { animation: pop .5s cubic-bezier(.3,1.7,.5,1); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.12) rotate(4deg); } 100% { transform: scale(1); } }
.big .ripple {
  position: absolute; border-radius: 50%; background: var(--accent); opacity: .18; pointer-events: none;
  transform: scale(0); animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.hint { margin: 12px 4px 0; font-size: 13px; color: var(--muted); text-align: center; min-height: 1.45em; }
.hint b { color: var(--ink); }

/* ---------- Карточки, списки ---------- */
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
h2 { margin: 0; font: 700 16px/1.2 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.card { background: var(--card); border-radius: var(--r-lg); padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px;
  background: var(--card); border-radius: var(--r-md); padding: 10px 12px; border: 0; width: 100%; text-align: left;
}
.row .time { font: 700 13px/1 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.row .who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .who strong { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .who span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.pill {
  font-size: 11.5px; font-weight: 800; padding: 5px 9px; border-radius: 99px; white-space: nowrap;
  background: color-mix(in srgb, var(--flame) 14%, transparent); color: var(--flame);
}
.pill.ok { background: color-mix(in srgb, var(--violet) 14%, transparent); color: var(--violet); }
.row .end { display: flex; align-items: center; gap: 8px; }
.row .thumb { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--line); }
.star { color: var(--flame-2); font-size: 16px; line-height: 1; }

.empty {
  text-align: center; padding: 22px 16px; color: var(--muted); font-size: 14px;
  border: 2px dashed var(--line); border-radius: var(--r-lg);
}
.empty img { width: 92px; display: block; margin: 0 auto 6px; opacity: .9; }

.btn {
  border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 800; background: var(--violet); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
}
.btn.ghost { background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); }
.btn.flame { background: var(--flame); }
.btn.danger { background: color-mix(in srgb, #e5484d 14%, transparent); color: #d93c42; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Статистика ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile b { font: 800 30px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tile em { font-style: normal; font-size: 12px; color: var(--muted); }
.tile.hot b { color: var(--flame); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font: 600 9.5px var(--font-body); }
.chart .tick.strong { fill: var(--ink); font-weight: 800; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.seg { display: inline-flex; background: var(--paper); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(var(--shadow) / .15); }

.players { display: flex; flex-direction: column; gap: 14px; }
.pl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; }
.pl-row .name { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row .vals { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: var(--paper); overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; }

.days { list-style: none; margin: 0; padding: 0; }
.days li + li { border-top: 1px solid var(--line); }
.days button { width: 100%; border: 0; background: none; padding: 11px 2px; display: grid; grid-template-columns: 1fr auto; gap: 10px; text-align: left; align-items: center; }
.days .d { font-weight: 800; }
.days .v { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.days .v b { color: var(--ink); }

/* ---------- Коллекция ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gcard { border: 0; padding: 0; background: var(--card); border-radius: var(--r-md); overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.gcard .ph { aspect-ratio: 1; width: 100%; max-width: 100%; background: color-mix(in srgb, var(--lav) 30%, var(--card)); display: grid; place-items: center; overflow: hidden; }
.gcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.gcard .ph img.sticker { width: 64%; height: auto; object-fit: contain; }
.gcard .cap { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gcard .cap strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .cap span { font-size: 12px; color: var(--muted); }

/* ---------- Награды ---------- */
.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.award { background: var(--card); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.badge {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font: 800 17px/1 var(--font-display); letter-spacing: -0.03em;
  background: var(--paper); color: var(--muted); border: 2px dashed var(--line);
}
.award.ok .badge {
  background: radial-gradient(circle at 30% 25%, var(--flame-2), var(--flame)); color: #fff; border: 3px solid var(--sticker);
  box-shadow: 0 5px 12px -4px color-mix(in srgb, var(--flame) 70%, transparent);
  transform: rotate(-6deg);
}
.award strong { font-size: 14px; line-height: 1.2; }
.award p { margin: 0; font-size: 12.5px; color: var(--muted); }
.progress { height: 6px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--violet); border-radius: 4px; }
.award .pt { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.award-sum { display: flex; align-items: center; gap: 14px; }
.award-sum b { font: 800 34px/1 var(--font-display); color: var(--flame); }

/* ---------- Таб-бар ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.tabs .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tabbar); }
.tabs button {
  border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 800; color: var(--muted);
}
.tabs svg { width: 24px; height: 24px; }
.tabs button[aria-current="page"] { color: var(--violet); }

/* ---------- Нижние листы ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(10 6 20 / .45); animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88vh; overflow-y: auto;
  background: var(--paper); border-radius: 26px 26px 0 0;
  padding-block: 8px calc(22px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  animation: up .28s cubic-bezier(.2,.9,.3,1);
}
.sheet .in { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 2px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-head h2 { font-size: 18px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.input {
  width: 100%; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 11px 13px; font-weight: 700;
}
.input:focus { border-color: var(--violet); outline: none; }
.code-input { font: 800 22px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.inline { display: flex; gap: 8px; }
.inline > .input { flex: 1; min-width: 0; }
.list { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-md); overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line); }
.li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; min-height: 50px; }
.li .grow { flex: 1; min-width: 0; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.switch input:checked + span { background: var(--violet); }
.switch input:checked + span::after { transform: translateX(20px); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; }
.swatches button[aria-pressed="true"] { border-color: var(--ink); }
.codebox { font: 800 28px/1 var(--font-display); letter-spacing: .14em; text-align: center; padding: 14px; background: var(--card); border-radius: var(--r-md); user-select: all; }
.photo-big { width: 100%; max-width: 100%; border-radius: var(--r-md); display: block; background: var(--line); }
.photo-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border-radius: var(--r-md);
  border: 2px dashed var(--lav); color: var(--violet); font-weight: 800; cursor: pointer; text-align: center;
}
.photo-drop svg { width: 30px; height: 30px; }
.photo-drop input, .file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.confirm-row { display: flex; gap: 8px; flex-wrap: wrap; }
.confirm-row > * { flex: 1; }
.imp-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 6px; align-items: center; }
.imp-row .input { padding: 9px 8px; font-size: 14px; }
.imp-head { font-size: 11.5px; font-weight: 800; color: var(--muted); }

/* ---------- Онбординг ---------- */
.welcome { min-height: 100%; display: flex; flex-direction: column; gap: 18px; padding-block: 28px 32px; }
.welcome .hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.welcome .hero img { width: min(260px, 70%); filter: drop-shadow(3px 0 0 var(--sticker)) drop-shadow(-3px 0 0 var(--sticker)) drop-shadow(0 3px 0 var(--sticker)) drop-shadow(0 -3px 0 var(--sticker)) drop-shadow(0 10px 14px rgb(var(--shadow) / .25)); }
.welcome h1 { margin: 6px 0 0; font: 800 40px/1 var(--font-display); letter-spacing: -0.04em; }
.welcome h1 span { color: var(--flame); }
.welcome .lead { margin: 0; color: var(--muted); max-width: 34ch; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--card); padding: 4px; border-radius: 16px; }
.choice button { border: 0; background: none; padding: 10px; border-radius: 12px; font-weight: 800; color: var(--muted); }
.choice button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.form { display: flex; flex-direction: column; gap: 12px; }
.err { color: #d93c42; font-weight: 700; font-size: 13px; min-height: 1em; margin: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { border: 2px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 14px; font-weight: 800; }

/* ---------- Тосты ---------- */
.toast-wrap {
  position: fixed; left: 0; right: 0; z-index: 50; pointer-events: none;
  bottom: calc(var(--tabbar) + 14px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: center;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.toast {
  pointer-events: auto; max-width: 520px; width: 100%;
  background: var(--ink); color: var(--paper); border-radius: 16px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700;
  box-shadow: 0 12px 30px -10px rgb(var(--shadow) / .6); animation: up .25s cubic-bezier(.2,.9,.3,1);
}
.toast.ach { background: linear-gradient(100deg, var(--flame), var(--flame-2)); color: #fff; }
.toast button { border: 0; background: none; color: var(--flame-2); font-weight: 800; padding: 6px 2px; white-space: nowrap; }
.toast.ach button { color: #fff; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 420px) {
  .score b { font-size: 60px; }
  .big { min-height: 240px; }
}

/* ---------- Аватары ---------- */
.av {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover;
  color: #fff; font-weight: 800; line-height: 1; vertical-align: -5px; margin-right: 7px;
  box-shadow: 0 0 0 2px var(--card);
}
.big img.face {
  width: 78%; margin: 5% auto 2%; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--sticker); background: var(--line);
  filter: drop-shadow(0 6px 8px rgb(var(--shadow) / .3));
  transform: rotate(-3deg);
}
.li-who { display: flex; align-items: center; min-width: 0; }
.me-photo { display: flex; align-items: center; gap: 14px; }
.me-photo .av { margin: 0; box-shadow: 0 0 0 3px var(--sticker), 0 4px 10px -4px rgb(var(--shadow) / .4); font-size: 30px !important; }
.me-photo-btns { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.me-photo-btns .btn { flex: 1; min-width: 0; padding-inline: 10px; }
.pick button { display: inline-flex; align-items: center; }

/* ---------- Свои звуки ---------- */
.snd-row { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.snd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.takes { display: flex; flex-wrap: wrap; gap: 8px; }
.take { display: inline-flex; align-items: stretch; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--violet) 12%, transparent); }
.take button { border: 0; background: none; color: var(--violet); font-weight: 800; padding: 8px 10px; display: grid; place-items: center; }
.take button + button { padding: 8px; border-left: 1px solid color-mix(in srgb, var(--violet) 20%, transparent); }
.take svg { width: 14px; height: 14px; }
.snd-row > .btn { align-self: flex-start; }
.rec-on { animation: recpulse 1s ease-in-out infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--flame) 25%, transparent); } }
.snd-row .btn { white-space: nowrap; padding-inline: 10px; }
