/* Экраны трекера. Роли цветов: мята — действие и «хорошо», фиолетовый —
   жиры и фото, карамель — углеводы и тренировки, голубой — вода. */

.small { font-size: 12px; }
.center { text-align: center; justify-content: center; }
.grow { flex: 1; min-width: 0; }
.block { display: block; }
.ink { color: var(--text); font-weight: 600; }
.label { font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.stack.tight { gap: 6px; }
.grid2, .grid3 { display: grid; gap: 10px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hint { margin: 0; padding: 0 6px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.section-title { margin: 6px 0 -4px; font-family: var(--display); font-weight: 500; font-size: 17px; }
.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
textarea { padding: 12px 14px; resize: vertical; min-height: 64px; line-height: 1.4; }
select {
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  appearance: none; -webkit-appearance: none; padding-right: 30px; width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #2A1D17; color: var(--text); border-color: #3A2A21; }
.btn.primary { border-color: transparent; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.mini { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; }
.mini input { flex: 1; min-width: 0; width: 100%; text-align: center; padding: 0 8px; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.switch input { flex-shrink: 0; }

/* ---------- кольцо дня ---------- */

.day-top { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.ring { position: relative; width: 236px; height: 236px; }
.ring svg { display: block; }
.ring-track { fill: none; stroke: rgba(246, 239, 233, .07); stroke-width: 14; }
.ring-fill {
  fill: none; stroke: var(--mint); stroke-width: 14; stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(125, 242, 201, .55));
  transition: stroke-dashoffset 900ms cubic-bezier(.22, 1, .36, 1);
}
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ring-num { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.streak { color: var(--mint); font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(125, 242, 201, .4); white-space: nowrap; }
.burn { color: var(--caramel); }

.macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.macro { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.macro b { font-family: var(--display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.macro small { color: var(--muted); font-size: 12px; font-weight: 400; }
.rail { height: 6px; border-radius: 99px; background: rgba(246, 239, 233, .08); overflow: hidden; }
.rail i { display: block; height: 100%; border-radius: inherit; transform-origin: left; transition: transform 700ms cubic-bezier(.22, 1, .36, 1); }
.rail i.mint, .dot.mint { background: var(--mint); box-shadow: 0 0 8px rgba(125, 242, 201, .6); }
.rail i.violet, .dot.violet { background: var(--purple); box-shadow: 0 0 8px rgba(185, 140, 255, .55); }
.rail i.caramel, .dot.caramel { background: var(--caramel); box-shadow: 0 0 8px rgba(217, 162, 122, .45); }

.water { display: flex; align-items: center; gap: 14px; }
.glasses { display: grid; gap: 4px; }
.glasses i { height: 16px; border-radius: 4px; background: rgba(98, 224, 240, .1); border: 1px solid rgba(98, 224, 240, .25); transition: background 400ms; }
.glasses i.on { background: var(--cyan); box-shadow: 0 0 8px rgba(98, 224, 240, .5); border-color: transparent; }
.water-btn { min-width: 52px; min-height: 44px; border-radius: 14px; border: 1px solid rgba(98, 224, 240, .5); background: rgba(98, 224, 240, .12); color: var(--cyan); font: inherit; font-weight: 600; cursor: pointer; }
.water-btn.ghost { min-width: 44px; background: transparent; border-color: #3A2A21; color: var(--muted); }

.meal { display: flex; flex-direction: column; }
.meal + .meal { margin-top: 6px; }
.meal-head { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.entry, .food, .ex-row, .set-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 0;
  background: none; border: 0; border-top: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.entry b { color: var(--text); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.entry-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------- центральная кнопка ---------- */

.fab-slot { position: relative; display: flex; justify-content: center; }
.fab {
  position: absolute; top: -22px; width: 64px; height: 64px; border-radius: 50%; border: 0;
  background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 6px var(--bg), 0 0 28px rgba(125, 242, 201, .55);
  transition: transform 160ms cubic-bezier(.22, 1, .36, 1);
}
.fab svg { width: 30px; height: 30px; stroke-width: 2.4; }
.fab:active { transform: scale(.92); }
.icon-btn { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; border: 1px solid #3A2A21; background: rgba(30, 21, 17, .9); color: var(--muted); cursor: pointer; }

.toast-act { background: none; border: 0; padding: 6px 2px; color: var(--mint); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* ---------- шторка ---------- */

body.locked { overflow: hidden; }
.sheet-root { position: fixed; inset: 0; z-index: 50; }
.backdrop { position: absolute; inset: 0; background: rgba(8, 5, 4, .62); animation: fade 220ms ease-out; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 90vh;
  display: flex; flex-direction: column; gap: 8px; padding: 10px 18px calc(var(--bottom) + 18px);
  background: #1C130F; border: 1px solid #3A2A21; border-bottom: 0; border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .45), 0 -1px 0 rgba(125, 242, 201, .18);
  animation: sheet-in 340ms cubic-bezier(.22, 1, .36, 1);
}
.sheet h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; min-width: 0; overflow-wrap: anywhere; }
.grab { align-self: center; width: 40px; height: 4px; border-radius: 9px; background: #4A372C; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px 6px; margin: 0 -2px; }
.sheet-body p { margin: 0; line-height: 1.45; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: #241913; border: 1px solid #3A2A21; overflow-x: auto; flex-shrink: 0; }
.seg button { flex: 1; min-height: 40px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed=true] { background: var(--mint); color: var(--mint-ink); font-weight: 600; }

.stepper { display: flex; align-items: center; gap: 8px; }
.step { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; border: 1px solid #3A2A21; background: #2A1D17; color: var(--text); font: inherit; font-size: 24px; cursor: pointer; }
.step:active { background: #3A2A21; }
.step-val { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.step-val input { flex: 1; min-height: 52px; text-align: center; font-family: var(--display); font-size: 24px; font-weight: 600; min-width: 0; width: 100%; }
.step-val span { color: var(--muted); }

/* ---------- добавление еды ---------- */

.search { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-radius: 14px; border: 1px solid #3A2A21; background: #241913; color: var(--muted); flex-shrink: 0; }
.search input { border: 0; background: none; padding-left: 0; }
.search input:focus-visible { outline: none; }
.search:focus-within { border-color: var(--mint); }
.actions { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; }
.action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px;
  border-radius: 16px; border: 1px solid rgba(125, 242, 201, .45); background: rgba(125, 242, 201, .08);
  color: var(--mint); font: inherit; font-size: 13px; cursor: pointer;
}
.action.violet { color: var(--purple); border-color: rgba(185, 140, 255, .5); background: rgba(185, 140, 255, .09); }
.action.plain { color: var(--text); border-color: #3A2A21; background: #241913; }
.food-list { display: flex; flex-direction: column; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.food-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.food-name { overflow-wrap: anywhere; }
.kcal { font-family: var(--display); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips .chip { min-height: 40px; }
.portion-preview { font-size: 15px; }
.portion-preview b { font-family: var(--display); font-size: 22px; color: var(--mint); }
.scan { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #0C0806; flex-shrink: 0; }
.scan video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 22% 12%; border: 2px solid var(--mint); border-radius: 14px; box-shadow: 0 0 0 999px rgba(8, 5, 4, .45), 0 0 18px rgba(125, 242, 201, .5); overflow: hidden; }
.scan-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); animation: scan 1.8s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(-40px); } to { transform: translateY(40px); } }
.photo-item { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; border: 1px solid rgba(185, 140, 255, .35); background: rgba(185, 140, 255, .05); }
.photo-item .kcal { min-width: 84px; text-align: right; }
.photo-item .stepper { flex: 1; }
.photo-item .link { min-height: 32px; padding: 4px 0; align-self: flex-start; }
.pulse { animation: pulse 1.4s ease-in-out infinite; color: var(--purple); }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- спорт ---------- */

.progs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prog {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 92px; padding: 14px;
  border-radius: 20px; border: 1px solid var(--line); border-top: 2px solid var(--caramel);
  background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.prog.hiit { border-top-color: var(--red); }
.prog.cardio { border-top-color: var(--cyan); }
.prog.stretch { border-top-color: var(--purple); }
.prog-name { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2; }
.live { border-color: rgba(217, 162, 122, .6); box-shadow: 0 0 22px rgba(217, 162, 122, .15); }
.live h2 { font-size: 20px; }
.hist { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, #2A1D17, #3A2A21); }

.ex-row b { white-space: nowrap; font-weight: 500; }
.rest {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 16px; background: #2A1D17; border: 1px solid var(--caramel);
}
.rest b { font-family: var(--display); font-size: 28px; color: var(--caramel); font-variant-numeric: tabular-nums; }
.set-block { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 20px; background: #241913; border: 1px solid #3A2A21; transition: border-color 300ms; }
.set-block .ex-row { border-top: 0; padding: 0; }
.set-block.complete { border-color: rgba(125, 242, 201, .5); }
.set-block .mini { width: 88px; flex: none; }
.set-block .btn { flex: 1; }
.set-marks { display: flex; gap: 6px; }
.set-marks i { flex: 1; max-width: 48px; height: 6px; border-radius: 9px; background: rgba(246, 239, 233, .1); }
.set-marks i.on { background: var(--mint); box-shadow: 0 0 8px rgba(125, 242, 201, .6); }
.draft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 16px; background: rgba(125, 242, 201, .08); border: 1px solid rgba(125, 242, 201, .4); font-size: 14px; }
.ex-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ex-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #fff; }
.how summary { cursor: pointer; color: var(--mint); font-size: 14px; min-height: 32px; }
.how p { margin-top: 8px; color: var(--muted); line-height: 1.5; }

/* ---------- прогресс ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.tile b { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.tile.mint b { color: var(--mint); }
.tile.violet b { color: var(--purple); }
.tile.caramel b { color: var(--caramel); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: rgba(246, 239, 233, .07); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 10px; font-family: var(--body); }
.chart .target { stroke: var(--purple); stroke-width: 1.2; stroke-dasharray: 4 4; }
.chart .target-t { fill: var(--purple); }
.chart .avg { fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(125, 242, 201, .6)); }
.chart .pt { fill: rgba(246, 239, 233, .45); }
.chart .end { fill: var(--mint); stroke: var(--bg); stroke-width: 2; }
.norm { display: flex; align-items: baseline; gap: 8px; }
.norm b { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; }

/* ---------- команда и настройки ---------- */

.member { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.member-name { min-width: 0; overflow-wrap: anywhere; }
.card b.pct { font-family: var(--display); color: var(--text); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.chip.cheer { min-height: 36px; padding: 0 12px; border-color: rgba(185, 140, 255, .5); color: var(--purple); }
.chip:disabled { opacity: .6; }
.pending { font-size: 14px; flex-wrap: wrap; }
.sheet-body .linkbox { font-size: 13px; color: var(--mint); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.set-row { justify-content: space-between; }
.set-row:first-child { border-top: 0; }

@media (max-width: 360px) {
  .grid3, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ring { transform: scale(.9); }
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .backdrop, .scan-line, .pulse { animation: none; }
  .ring-fill, .rail i, .fab { transition: none; }
}

/* ---------- контраст: кнопки видны на любом фоне ---------- */

:root { --card: rgba(30, 21, 17, 0.95); }
.btn {
  background: rgba(125, 242, 201, .1);
  border: 1.5px solid rgba(125, 242, 201, .6);
  color: var(--mint);
  box-shadow: 0 0 14px rgba(125, 242, 201, .1);
}
.btn:active { background: rgba(125, 242, 201, .2); }
.btn.primary { border: 0; color: var(--mint-ink); box-shadow: 0 0 22px rgba(125, 242, 201, .35); }
.chip { border-color: #6A5243; background: #2E211A; color: var(--text); }
.chip:active { background: #3A2A21; }
.icon-btn { border-color: #6A5243; color: var(--text); background: #2E211A; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(125, 242, 201, .35); text-underline-offset: 4px; }
.link.danger { text-decoration-color: rgba(255, 154, 154, .35); }
.water-btn.ghost { border-color: #6A5243; color: var(--text); }
.step { border-color: #6A5243; background: #2E211A; }
.tab { color: #CDB9AB; }
.row.wrap { flex-wrap: wrap; }

/* ---------- еда: избранное, «как вчера», разделы ---------- */

.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 -2px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip.repeat { border-color: rgba(98, 224, 240, .55); color: var(--text); background: rgba(98, 224, 240, .08); }
.chip.repeat b { color: var(--cyan); }
.star { color: #FFD27A; font-size: 14px; }
.fav { flex-shrink: 0; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #6A5243; background: #2E211A; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.fav.on { border-color: rgba(255, 210, 122, .6); color: #FFD27A; background: rgba(255, 210, 122, .08); }
.tip { border-color: rgba(185, 140, 255, .35); display: flex; flex-direction: column; gap: 6px; }
.tip .label { color: var(--purple); }

/* ---------- упражнения ---------- */

.ex-demo { position: relative; border-radius: 18px; overflow: hidden; background: #241913; flex-shrink: 0; min-height: 120px; }
.ex-demo img { display: block; width: 100%; height: auto; }
.ex-demo img.b { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.ex-demo.anim img.b { animation: demo 2.4s steps(1, end) infinite; }
@keyframes demo { 0% { opacity: 0; } 50% { opacity: 1; } }
.demo-tag { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(20, 13, 10, .75); color: #fff; font-size: 11px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; font-size: 15px; }
.steps li::marker { color: var(--mint); font-weight: 700; }

/* ---------- прогресс ---------- */

.tile.cyan b { color: var(--cyan); }
.chart .bar { fill: rgba(217, 162, 122, .75); }
.chart .bar.ok { fill: var(--mint); }
.chart .bar.none { fill: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: rgba(217, 162, 122, .75); }
.legend i.ok { background: var(--mint); }
.legend i.violet { background: var(--purple); }
.legend i.caramel { background: var(--caramel); }
.legend i.cyan { background: var(--cyan); border-radius: 50%; }
.legend i.line { height: 0; border-top: 2px dashed var(--purple); border-radius: 0; background: none; }
.avg-row { font-size: 15px; padding: 2px 0; }
.split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.split i.mint { background: var(--mint); }
.split i.violet { background: var(--purple); }
.split i.caramel { background: var(--caramel); }
.delta { padding: 4px 10px; border-radius: 99px; font-size: 13px; border: 1px solid #6A5243; }
.delta.up { color: var(--caramel); }
.delta.down { color: var(--cyan); }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-head span { font-size: 11px; color: var(--muted); text-align: center; }
.cal i { position: relative; aspect-ratio: 1; border-radius: 7px; background: rgba(246, 239, 233, .05); border: 1px solid rgba(246, 239, 233, .06); }
.cal i.some { background: rgba(217, 162, 122, .35); border-color: transparent; }
.cal i.ok { background: var(--mint); box-shadow: 0 0 8px rgba(125, 242, 201, .45); border-color: transparent; }
.cal .drop { position: absolute; right: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.nums > div { display: flex; flex-direction: column; gap: 2px; }
.card .nums b { font-family: var(--display); font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.meal-bar { font-size: 14px; }
.meal-name { width: 76px; flex-shrink: 0; }
.top-foods { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.top-foods li { padding-left: 2px; }
.top-foods li > span { display: inline-flex; }
.top-foods li::marker { color: var(--caramel); }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.badge-cell { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 10px 6px; border-radius: 16px; background: rgba(246, 239, 233, .03); border: 1px solid var(--line); opacity: .55; }
.badge-cell b { font-size: 12px; color: var(--text) !important; line-height: 1.2; }
.badge-cell .small { font-size: 10px; line-height: 1.25; }
.badge-cell.got { opacity: 1; border-color: rgba(255, 210, 122, .45); background: rgba(255, 210, 122, .06); }
.b-icon { font-size: 26px; line-height: 1.1; }

/* ---------- команда ---------- */

.challenge { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 18px; background: rgba(185, 140, 255, .07); border: 1px solid rgba(185, 140, 255, .35); }
.ch-title { font-family: var(--display); font-size: 18px; color: var(--text) !important; }
.rail.big { height: 10px; }
.member.king { background: linear-gradient(90deg, rgba(255, 210, 122, .08), transparent); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 12px; }
.crown { filter: drop-shadow(0 0 6px rgba(255, 210, 122, .6)); }
.feed summary, .manage summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 600; color: var(--text); }
.feed ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; }
.feed li { padding-left: 12px; border-left: 2px solid rgba(125, 242, 201, .35); }
.feed li b { color: var(--text) !important; }
.manage { border-top: 1px solid var(--line); padding-top: 4px; }
.cheers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cheer-kind {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 92px; padding: 12px;
  border-radius: 18px; border: 1.5px solid rgba(185, 140, 255, .5); background: rgba(185, 140, 255, .08);
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer;
}
.cheer-kind:active { transform: scale(.96); }
.c-icon { font-size: 30px; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

@media (prefers-reduced-motion: reduce) {
  .ex-demo.anim img.b { animation: none; opacity: 0; }
}
