/* ============ «Молодец» — dark liquid glass ============ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #F4F3FF;
  --muted: rgba(240, 240, 255, 0.66);
  --faint: rgba(240, 240, 255, 0.42);

  --accent: #7C6BFF;
  --accent-2: #A855F7;
  --accent-3: #EC4899;
  --grad: linear-gradient(135deg, #6D5DFC 0%, #9B5DE5 55%, #E056A0 100%);
  --grad-bar: linear-gradient(90deg, #5B8DEF, #9B5DE5 55%, #EC4899);

  --gold: #F6C860;
  --silver: #C6D0E0;
  --bronze: #E0996A;
  --ok: #34D399;
  --danger: #FB7185;

  /* тёмное стекло */
  --glass: linear-gradient(160deg, rgba(255,255,255,0.075), rgba(255,255,255,0.022));
  --glass-2: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.14);
  --stroke-hi: rgba(255, 255, 255, 0.42);
  --hair: rgba(255, 255, 255, 0.10);
  --blur: saturate(150%) blur(28px);

  --r: 24px;
  --r-md: 18px;
  --r-sm: 13px;
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 20px 44px -24px rgba(0, 0, 0, 0.7);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  --glow: 0 14px 40px -10px rgba(124, 107, 255, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[x-cloak] { display: none !important; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: #07060F;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- фон: глубокий, но живой и радостный ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1100px 780px at 10% -10%, rgba(124,92,246,.44) 0%, transparent 56%),
    radial-gradient(960px 800px at 100% 4%, rgba(236,72,153,.34) 0%, transparent 56%),
    radial-gradient(900px 820px at 88% 100%, rgba(56,189,248,.32) 0%, transparent 56%),
    radial-gradient(820px 720px at 24% 112%, rgba(52,211,153,.24) 0%, transparent 56%),
    linear-gradient(160deg, #16123A 0%, #0F0B2A 55%, #17123C 100%);
}
.aurora .b1, .aurora .b2, .aurora .b3 { position: absolute; border-radius: 50%; filter: blur(110px); }
.aurora .b1 { width: 44vw; height: 44vw; left: -6vw; top: -8vh; background: radial-gradient(circle, rgba(139,92,246,.44), transparent 68%); animation: drift1 26s ease-in-out infinite; }
.aurora .b2 { width: 40vw; height: 40vw; right: -6vw; top: 2vh; background: radial-gradient(circle, rgba(236,72,153,.34), transparent 68%); animation: drift2 30s ease-in-out infinite; }
.aurora .b3 { width: 38vw; height: 38vw; left: 28vw; bottom: -16vh; background: radial-gradient(circle, rgba(56,189,248,.36), transparent 68%); animation: drift3 34s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,5vh) scale(1.14); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,6vh) scale(1.12); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw,-6vh) scale(1.16); } }

/* ---------- каркас ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; margin: 14px 0 14px 14px; height: calc(100vh - 28px);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 4px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--stroke); border-radius: var(--r); box-shadow: var(--shadow-sm), var(--edge);
}
.brand { display: flex; align-items: center; gap: 13px; padding: 6px 8px 20px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 15px; flex: none;
  background: var(--grad); box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.5); color: #fff;
  display: grid; place-items: center;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.6px; color: #fff; }
.brand-sub { font-size: 11px; color: var(--faint); letter-spacing: .4px; margin-top: 1px; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 14px; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; background: none; width: 100%; text-align: left;
  transition: background .16s, color .16s, border-color .16s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, 0.10); color: #fff; border-color: var(--stroke); box-shadow: var(--edge); }
.nav-ico { width: 20px; height: 20px; display: grid; place-items: center; }
.nav-ico svg { width: 19px; height: 19px; }
.nav-item.active .nav-ico { color: var(--accent); }
.side-foot { margin-top: auto; font-size: 11px; color: var(--faint); padding: 14px 10px 4px; line-height: 1.6; border-top: 1px solid var(--hair); }

.main { padding: 34px clamp(20px, 3.5vw, 52px) 80px; max-width: 1180px; min-width: 0; }

/* ---------- заголовки ---------- */
.head { margin-bottom: 26px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title { font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -1.4px; line-height: 1.03; margin-top: 8px; color: #fff; }
.lede { color: var(--muted); margin-top: 10px; font-size: 15px; max-width: 62ch; line-height: 1.5; }

/* ---------- стеклянные карточки ---------- */
.card {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--stroke); border-radius: var(--r); padding: 26px;
  box-shadow: var(--shadow-sm), var(--edge); position: relative; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .22s ease, transform .28s cubic-bezier(.2,.7,.3,1);
}
.card.tilt-active { transition: box-shadow .22s ease, transform .06s linear;
  box-shadow: 0 50px 90px -34px rgba(0,0,0,.85), var(--edge); }
.card::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.10), transparent 40%); }
.card > * { position: relative; }
.card + .card { margin-top: 18px; }
.card-title { font-weight: 700; font-size: 15.5px; letter-spacing: -.3px; color: #fff; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- поля ---------- */
label.fld { display: block; }
.fld-l { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 7px; letter-spacing: .2px; }
input[type=text], input[type=number], input[type=date], input[type=search], input[type=password], input[type=email], select, textarea {
  width: 100%; font: inherit; color: #fff;
  padding: 12px 14px; border: 1px solid var(--stroke); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06); transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 46px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(124, 107, 255, 0.22);
}
::placeholder { color: var(--faint); }
input:-webkit-autofill, input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(40, 34, 70, 0.9) inset; transition: background-color 9999s ease-in-out 0s;
}
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .55; cursor: pointer; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23A99BFF' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select option { background: #16122E; color: #fff; }

/* ---------- кнопки ---------- */
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border: none;
  padding: 12px 20px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 9px;
  transition: transform .12s, box-shadow .18s, background .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-fiesta { background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.4); padding: 15px 30px; font-size: 15px; font-weight: 800; border-radius: var(--r-md); }
.btn-fiesta:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 22px 54px -12px rgba(155, 93, 229, 0.7), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--stroke); box-shadow: var(--edge); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-quiet { background: none; color: var(--muted); padding: 8px 12px; }
.btn-quiet:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn-danger { background: rgba(251, 113, 133, 0.16); color: var(--danger); }
.btn-danger:hover { background: rgba(251, 113, 133, 0.26); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* ---------- аватары (глянцевые) ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 32%; flex: none; overflow: hidden;
  display: grid; place-items: center; text-align: center; line-height: 1; color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: -.3px;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.6), inset -3px -4px 10px rgba(0,0,0,.28), inset 3px 4px 10px rgba(255,255,255,.45);
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; border-radius: 30%; }
.avatar.lg { width: 74px; height: 74px; font-size: 25px; border-radius: 30%; }

.people { display: flex; flex-wrap: wrap; gap: 10px; }
.person {
  display: flex; align-items: center; gap: 11px; padding: 7px 16px 7px 7px;
  border: 1px solid var(--stroke); border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); font-weight: 600; font-size: 14px; color: var(--ink);
  transition: border-color .14s, box-shadow .14s, transform .12s, background .14s; box-shadow: var(--edge);
}
.person:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); }
.person.on { border-color: var(--accent); background: rgba(124, 107, 255, 0.18); box-shadow: 0 0 0 4px rgba(124, 107, 255, 0.18); }
.person.on .check { opacity: 1; }
.check { margin-left: 2px; color: var(--accent); opacity: 0; font-weight: 800; }

/* ---------- список задач ---------- */
.tasklist { max-height: 348px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding-right: 4px; }
.task {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.045); cursor: pointer; width: 100%; transition: border-color .14s, background .14s;
}
.task:hover { background: rgba(255, 255, 255, 0.09); }
.task.on { border-color: var(--accent); background: rgba(124, 107, 255, 0.16); }
.task-body { flex: 1; min-width: 0; }
.task-title { font-weight: 600; font-size: 14px; color: #fff; }
.task-cat { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.pts-badge {
  font-weight: 800; font-size: 14px; color: #fff; flex: none;
  background: var(--grad); border-radius: 10px; padding: 6px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

.pts { font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--muted);
  letter-spacing: .2px; border: 1px solid var(--hair);
}
.tag.warn { background: rgba(246, 200, 96, 0.16); color: #F6C860; border-color: rgba(246, 200, 96, 0.3); }

/* ---------- крупный балл ---------- */
.big-pts {
  font-weight: 800; font-size: 68px; line-height: 1; letter-spacing: -3px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; filter: drop-shadow(0 6px 20px rgba(155, 93, 229, 0.5));
}

/* ---------- таблица ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); font-weight: 700; padding: 0 14px 12px; }
.tbl td { padding: 13px 14px; border-top: 1px solid var(--hair); vertical-align: middle; color: var(--ink); }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.05); }
.row-actions { display: flex; gap: 6px; opacity: 0; transition: opacity .14s; }
.tbl tr:hover .row-actions { opacity: 1; }

/* ---------- подиум ---------- */
.podium { display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin: 6px auto 4px; max-width: 660px; }
.stand { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 190px; }
.stand-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stand-card .avatar { margin: 0 auto; }
.stand-name { font-weight: 700; font-size: 15px; margin-top: 10px; color: #fff; }
.stand-pts { font-weight: 800; font-size: 26px; color: #fff; font-variant-numeric: tabular-nums; }
.step {
  width: 100%; border-radius: var(--r-md) var(--r-md) 0 0; display: grid; place-items: start center;
  padding-top: 18px; color: #fff; font-weight: 800; font-size: 32px;
  border: 1px solid var(--stroke); border-bottom: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.step-1 { background: linear-gradient(180deg, rgba(246,200,96,.9), rgba(214,158,58,.55)); height: 150px; box-shadow: 0 -10px 40px -8px rgba(246,200,96,.5), inset 0 1px 0 rgba(255,255,255,.5); }
.step-2 { background: linear-gradient(180deg, rgba(198,208,224,.85), rgba(148,163,184,.5)); height: 112px; }
.step-3 { background: linear-gradient(180deg, rgba(224,153,106,.85), rgba(180,110,66,.5)); height: 88px; }
.crown { display: grid; place-items: center; }
.crown svg { width: 34px; height: 34px; color: var(--gold); filter: drop-shadow(0 6px 12px rgba(246, 200, 96, 0.6)); }

/* ---------- рейтинг ---------- */
.rank-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.045); }
.rank-row + .rank-row { margin-top: 8px; }
.rank-row.win { background: rgba(246, 200, 96, 0.12); border: 1px solid rgba(246, 200, 96, 0.4); box-shadow: 0 10px 30px -16px rgba(246, 200, 96, 0.6); }
.rank-no { font-weight: 800; font-size: 16px; color: var(--faint); width: 30px; font-variant-numeric: tabular-nums; }
.rank-bar-wrap { display: block; flex: 1; height: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; overflow: hidden; }
.rank-bar { display: block; height: 100%; border-radius: 999px; background: var(--grad-bar); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.rank-pts { font-weight: 800; font-size: 17px; min-width: 42px; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- KPI / сегменты ---------- */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi-num { font-weight: 800; font-size: 34px; letter-spacing: -1px; color: #fff; }
.kpi-lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.seg { display: inline-flex; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke); border-radius: 999px; padding: 4px; gap: 2px; box-shadow: var(--edge); }
.seg button { border: none; background: none; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .14s, color .14s; }
.seg button.on { background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }

/* ---------- горизонтальные бары ---------- */
.hbar-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 9px 0; }
.hbar-row + .hbar-row { border-top: 1px solid var(--hair); }
.hbar-track { display: block; grid-column: 1 / -1; height: 9px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--grad-bar); border-radius: 999px; }

/* ---------- легенда ---------- */
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.leg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.leg-dot { width: 11px; height: 11px; border-radius: 50%; }

/* ---------- пусто ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-emo { display: grid; place-items: center; margin-bottom: 6px; }
.empty-emo svg { width: 46px; height: 46px; color: var(--accent); opacity: .7; }
.empty-t { font-weight: 700; margin: 10px 0 4px; color: #fff; font-size: 16px; }

/* ---------- тост ---------- */
.toast-wrap { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: rgba(22, 18, 44, 0.75); backdrop-filter: var(--blur); color: #fff; padding: 14px 22px; border-radius: 999px;
  font-weight: 700; box-shadow: var(--shadow), var(--edge); display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--stroke);
}
.toast .t-pts { background: var(--grad); padding: 3px 12px; border-radius: 999px; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }

/* ---------- модалка ---------- */
.overlay { position: fixed; inset: 0; background: rgba(5, 4, 14, 0.6); backdrop-filter: blur(8px); z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal { background: linear-gradient(160deg, rgba(38,32,66,0.9), rgba(20,16,40,0.85)); backdrop-filter: var(--blur); border: 1px solid var(--stroke); border-radius: var(--r); padding: 30px; width: 100%; max-width: 448px; box-shadow: var(--shadow), var(--edge); }
.modal-t { font-weight: 800; font-size: 19px; margin-bottom: 20px; color: #fff; letter-spacing: -.4px; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 55; }

/* ---------- экран входа / регистрации ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 440px; padding: 34px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--stroke); border-radius: var(--r); box-shadow: var(--shadow), var(--edge); }
.auth-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.auth-err { background: rgba(251,113,133,.14); border: 1px solid rgba(251,113,133,.4); color: #FFC4CE;
  padding: 11px 14px; border-radius: var(--r-md); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }

/* ---------- чип пользователя в сайдбаре ---------- */
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.05); border: 1px solid var(--stroke); }

/* ---------- код компании ---------- */
.join-code { font-weight: 800; font-size: 26px; letter-spacing: 4px; color: #fff;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums; }

/* ---------- баннер ничьей ---------- */
.tie-banner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center;
  margin-top: 16px; padding: 16px 20px; border-radius: var(--r-md);
  background: rgba(246, 200, 96, 0.1); border: 1px solid rgba(246, 200, 96, 0.32); color: var(--ink); }
.tie-banner b { color: #F6C860; }

/* ---------- утилиты ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 13px; }
.sep { height: 1px; background: var(--hair); margin: 18px 0; }
.pill-off { opacity: .5; }

/* ---------- анимации ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.view { animation: rise .42s cubic-bezier(.2,.7,.3,1) both; }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.pop { animation: pop .42s cubic-bezier(.2,.7,.3,1) both; }

/* живой перелив градиентных элементов */
@keyframes flow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.eyebrow, .big-pts, .btn-fiesta, .btn-primary, .pts-badge, .seg button.on, .brand-mark {
  background-size: 220% 220%; animation: flow 8s ease-in-out infinite;
}
/* корона слегка парит */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.crown { animation: bob 3s ease-in-out infinite; }
/* полосы рейтинга вырастают */
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rank-bar, .hbar-fill { transform-origin: left; animation: grow .85s cubic-bezier(.2,.7,.3,1) both; }
/* мягкое свечение строки победителя */
@keyframes winglow { 0%,100% { box-shadow: 0 10px 30px -16px rgba(246,200,96,.5); } 50% { box-shadow: 0 16px 44px -12px rgba(246,200,96,.9); } }
.rank-row.win { animation: winglow 2.6s ease-in-out infinite; }
/* аватары победителей на подиуме — лёгкое дыхание */
@keyframes breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.stand .avatar.lg { animation: breathe 3.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, .view, .pop { animation: none !important; scroll-behavior: auto; }
  .aurora .b1, .aurora .b2, .aurora .b3, .orb { animation: none !important; }
}

/* ---------- адаптив ---------- */
.mobile-only { display: none; }
.g-filters { grid-template-columns: repeat(5, 1fr); }
.table-wrap { width: 100%; }

/* планшет */
@media (max-width: 1100px) {
  .main { padding: 30px 26px 80px; }
  .g-filters { grid-template-columns: repeat(3, 1fr); }
}

/* планшет-узкий / крупный телефон */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; left: 0; margin: 0; height: auto; width: 100%; flex-direction: row;
          z-index: 40; padding: 6px; gap: 2px; border-radius: 18px 18px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
          box-shadow: 0 -12px 30px -18px rgba(0,0,0,.7); }
  .brand, .side-foot { display: none; }
  .mobile-only { display: flex; }
  .nav-item { flex-direction: column; gap: 3px; font-size: 10px; padding: 7px 9px; min-width: 56px; flex: 0 0 auto; text-align: center; }
  .nav-ico svg { width: 20px; height: 20px; }
  .main { padding: 20px 14px 96px; max-width: 100%; }
  .card { padding: 18px; }
  .card + .card { margin-top: 14px; }
  .grid { gap: 14px; }
  .g-2, .g-3, .g-filters { grid-template-columns: 1fr; }
  .between { flex-wrap: wrap; }
  .head { margin-bottom: 20px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl { font-size: 13px; }
  .tbl th, .tbl td { padding: 10px 8px; white-space: nowrap; }
  .row-actions { opacity: 1; }               /* на тач нет наведения */
  .auth-wrap { padding: 16px; }
  .auth-card { padding: 24px; }
  .modal { padding: 22px; }
  .seg { flex-wrap: wrap; }
}

.award-phone { display: none; }

/* телефон */
@media (max-width: 560px) {
  .title { font-size: 25px; letter-spacing: -1px; }
  .lede { font-size: 14px; }
  .podium { gap: 8px; flex-wrap: nowrap; }
  .stand { width: clamp(72px, 24vw, 128px); }
  .award-inline { display: none !important; }   /* на телефоне приз — кнопкой под пьедесталом */
  .award-phone { display: block; }
  .step { font-size: 22px; padding-top: 12px; }
  .step-1 { height: 106px; } .step-2 { height: 80px; } .step-3 { height: 64px; }
  .avatar.lg { width: 54px; height: 54px; font-size: 18px; }
  .stand-name { font-size: 12.5px; }
  .stand-pts { font-size: 20px; }
  .stand-pts[style] { font-size: 24px !important; }
  .big-pts { font-size: 50px; }
  .kpi-num { font-size: 28px; }
  .people { gap: 8px; }
  .person { font-size: 13px; padding: 6px 13px 6px 6px; }
  .join-code { font-size: 22px; letter-spacing: 3px; }
  .rank-row { gap: 10px; padding: 11px 12px; }
  .rank-row span[style*="min-width"] { min-width: 0 !important; }
  .tie-banner { font-size: 13px; }
}
