:root {
  --bg: #07090f;
  --bg2: #0d1220;
  --card: #111829;
  --card2: #172036;
  --line: #222d47;
  --text: #eef2ff;
  --muted: #7c89a8;
  --lime: #c8ff3d;
  --lime-ink: #10170a;
  --gold: #ffc94a;
  --red: #ff4d6d;
  --green: #3dffa2;
  --radius: 18px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); }
body {
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(200, 255, 61, 0.10), transparent 60%),
    radial-gradient(80% 40% at 100% 0%, rgba(80, 120, 255, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(96px + var(--safe-b)); }
.app.with-slip { padding-bottom: calc(160px + var(--safe-b)); }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0 12px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.me { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700;
  background: linear-gradient(135deg, var(--lime), #5ad1ff); color: var(--lime-ink);
  background-size: cover; background-position: center;
}
.me-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.me-rank { font-size: 12px; color: var(--muted); }
.wallet { display: flex; align-items: center; gap: 8px; }
.balance {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-family: var(--display); font-size: 17px; font-variant-numeric: tabular-nums;
}
.balance.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.12); border-color: var(--gold); } }
.coin {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 45%, #c98a12);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 0 12px rgba(255, 201, 74, .35);
}
.bonus {
  width: 40px; height: 40px; border-radius: 50%; font-size: 19px;
  background: var(--card); border: 1px solid var(--line); position: relative;
}
.bonus.ready { border-color: var(--gold); animation: glow 1.8s ease-in-out infinite; }
.bonus.ready::after {
  content: ''; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--red); border: 2px solid var(--bg);
}
@keyframes glow { 50% { box-shadow: 0 0 18px rgba(255, 201, 74, .45); } }

/* ---------- Виды спорта ---------- */
.sports {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 2px -16px 14px; padding: 0 16px;
}
.sports::-webkit-scrollbar { display: none; }
.sport {
  flex: none; padding: 9px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--muted);
  transition: .15s;
}
.sport.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }

/* ---------- Матчи ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.group {
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 12px 2px 0;
  display: flex; align-items: center; gap: 8px;
}
.group.live { color: var(--red); }
.group.live::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }

.match {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px 14px;
}
.match.mine { border-color: rgba(200, 255, 61, .45); }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.m-league { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-time { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-time.live { color: var(--red); }
.m-body { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; }
.m-teams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.team { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team.lead { color: var(--lime); }
.m-score {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  display: flex; flex-direction: column; gap: 4px; text-align: right; font-variant-numeric: tabular-nums;
}
.badge {
  font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: rgba(200, 255, 61, .14); color: var(--lime);
}
.odds { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; }
.odd {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 12px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--line);
  transition: transform .1s, border-color .15s;
}
.odd:active:not(:disabled) { transform: scale(.96); }
.odd span { font-size: 12px; color: var(--muted); font-weight: 700; }
.odd b { font-family: var(--display); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.odd:not(:disabled):hover { border-color: var(--lime); }
.odd:disabled { opacity: .45; cursor: default; }
.odd.picked { border-color: var(--lime); background: rgba(200,255,61,.08); opacity: 1; }
.odd.won { border-color: var(--green); color: var(--green); opacity: 1; }
.odd.won span { color: var(--green); }

.empty { text-align: center; color: var(--muted); padding: 48px 12px; }
.empty b { display: block; font-size: 40px; margin-bottom: 8px; }

/* ---------- Прогнозы ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px;
}
.stat b { display: block; font-family: var(--display); font-size: 20px; }
.stat span { font-size: 12px; color: var(--muted); }
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg button { flex: 1; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--card2); color: var(--text); }
.bet {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  border-left: 4px solid var(--line);
}
.bet.won { border-left-color: var(--green); }
.bet.lost { border-left-color: var(--red); }
.bet.open { border-left-color: var(--lime); }
.bet-t { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bet-s { font-size: 12px; color: var(--muted); }
.bet-r { text-align: right; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.bet-r.won { color: var(--green); }
.bet-r.lost { color: var(--red); }

/* ---------- Рейтинг ---------- */
.h { font-family: var(--display); font-size: 22px; margin: 6px 2px 16px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin-bottom: 16px; }
.pod { text-align: center; }
.pod .avatar { margin: 0 auto 6px; width: 52px; height: 52px; font-size: 18px; }
.pod:nth-child(2) .avatar { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--gold); }
.pod-name { font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-bal { font-family: var(--display); font-size: 13px; color: var(--gold); margin: 2px 0 8px; }
.pod-step {
  border-radius: 14px 14px 0 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 22px;
  background: linear-gradient(180deg, var(--card2), var(--bg));
  border: 1px solid var(--line); border-bottom: 0;
}
.pod:nth-child(1) .pod-step { height: 64px; color: #c7d2e8; }
.pod:nth-child(2) .pod-step { height: 92px; color: var(--gold); border-color: rgba(255,201,74,.4); }
.pod:nth-child(3) .pod-step { height: 48px; color: #e09a5c; }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.board li {
  display: grid; grid-template-columns: 28px 36px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
}
.board li.me { border-color: var(--lime); }
.board .n { color: var(--muted); font-weight: 800; text-align: center; }
.board .avatar { width: 36px; height: 36px; font-size: 14px; }
.board .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .bl { font-family: var(--display); font-size: 14px; color: var(--gold); }

/* ---------- Таббар ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b));
  width: min(528px, calc(100% - 32px)); z-index: 6;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(17, 24, 41, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 20px; padding: 6px;
}
.tabbar button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0; border-radius: 14px; font-size: 11px; font-weight: 700; color: var(--muted);
}
.tabbar button i { font-style: normal; font-size: 19px; filter: grayscale(1); opacity: .7; }
.tabbar button.on { color: var(--text); background: var(--card2); }
.tabbar button.on i { filter: none; opacity: 1; }
.tabbar .dot { position: absolute; top: 6px; right: calc(50% - 22px); width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

.view { display: none; }
.view.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Окно прогноза ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 11;
  max-width: 560px; margin: 0 auto;
  background: var(--bg2); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(18px + var(--safe-b));
  transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.9,.3,1);
}
.sheet.open { transform: none; }
.grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet-league { font-size: 12px; color: var(--muted); text-align: center; }
.sheet-teams { font-family: var(--display); font-weight: 700; font-size: 17px; text-align: center; margin: 6px 0 16px; line-height: 1.35; }
.sheet-teams em { font-style: normal; color: var(--muted); font-size: 13px; padding: 0 6px; }
.sheet-outcomes { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; margin-bottom: 16px; }
.sheet-outcomes .odd { flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; }
.sheet-outcomes .odd span { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lbl { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.stake { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.stake button { height: 52px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 22px; font-weight: 700; }
.stake input {
  height: 52px; width: 100%; text-align: center; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  font-family: var(--display); font-size: 22px; font-weight: 700; outline: none;
}
.stake input:focus { border-color: var(--lime); }
.chips { display: flex; gap: 6px; margin: 10px 0 14px; }
.chips button { flex: 1; padding: 8px 0; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 13px; }
.chips button:active { border-color: var(--gold); }
.payout { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.payout b { font-family: var(--display); font-size: 22px; color: var(--gold); }
.cta {
  width: 100%; height: 54px; border-radius: 16px;
  background: var(--lime); color: var(--lime-ink);
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .01em;
  box-shadow: 0 8px 28px rgba(200, 255, 61, .25);
}
.cta:disabled { opacity: .5; box-shadow: none; }

/* ---------- Тост и выигрыш ---------- */
.toast {
  position: fixed; left: 50%; top: 16px; z-index: 30; transform: translate(-50%, -150%);
  width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; text-align: center;
  background: var(--card2); border: 1px solid var(--line); font-weight: 700;
  transition: transform .25s ease; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.toast.show { transform: translate(-50%, 0); }
.toast.err { border-color: var(--red); }
.win { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0,0,0,.7); padding: 24px; }
.win-card {
  width: 100%; max-width: 340px; text-align: center; padding: 28px 22px 22px; border-radius: 26px;
  background: radial-gradient(100% 80% at 50% 0%, rgba(255,201,74,.22), transparent 70%), var(--bg2);
  border: 1px solid rgba(255,201,74,.4); animation: pop .4s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.win-title { font-family: var(--display); font-weight: 700; font-size: 18px; }
.win-sum { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--gold); margin: 10px 0 4px; }
.win-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 25; border-radius: 2px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.skeleton { height: 128px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 0, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ================== v2: экспрессы, профиль, сезоны ================== */

/* Купон экспресса над нижним меню */
.slipbar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 7;
  bottom: calc(84px + var(--safe-b));
  width: min(528px, calc(100% - 32px));
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--lime); color: var(--lime-ink);
  box-shadow: 0 10px 30px rgba(200, 255, 61, .25), 0 2px 0 rgba(0,0,0,.25) inset;
  font-weight: 800; animation: slipIn .25s cubic-bezier(.2,1.3,.4,1);
}
@keyframes slipIn { from { transform: translate(-50%, 30px); opacity: 0; } }
.slipbar .cnt {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  background: var(--lime-ink); color: var(--lime); font-family: var(--display); font-size: 12px;
}
.slipbar .k { margin-left: auto; font-family: var(--display); font-size: 16px; }
.slipbar .go { font-size: 13px; opacity: .75; }
.slipbar.hint { background: var(--card2); color: var(--text); box-shadow: none; border: 1px dashed rgba(200,255,61,.5); }
.slipbar.hint .cnt { background: var(--lime); color: var(--lime-ink); }

.odd.inslip { border-color: var(--lime); background: rgba(200,255,61,.14); }
.odd.inslip span { color: var(--lime); }
.badge.ex { background: rgba(90, 209, 255, .14); color: #5ad1ff; }

/* Окно: экспресс */
.sh-title { font-family: var(--display); font-weight: 700; font-size: 18px; text-align: center; }
.sh-sub { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 14px; }
.legs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 34vh; overflow: auto; }
.leg {
  display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; align-items: center;
  padding: 10px 10px 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.leg .lt { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg .lp { grid-column: 1; font-size: 12px; color: var(--muted); }
.leg .lk { grid-row: 1 / span 2; grid-column: 2; font-family: var(--display); font-weight: 700; }
.leg .rm {
  grid-row: 1 / span 2; grid-column: 3; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg2); color: var(--muted); font-size: 15px;
}
.ex-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 2px 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; color: var(--muted); font-weight: 700;
}
.ex-total b { font-family: var(--display); font-size: 22px; color: var(--text); }
.sh-foot { display: flex; justify-content: center; margin-top: 10px; }
.ghost {
  padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted);
}
.ghost.add { width: 100%; margin-top: 10px; border: 1px dashed var(--line); color: var(--text); }
.ghost.add.on { border-color: var(--lime); color: var(--lime); }
.warn { font-size: 12px; color: var(--gold); text-align: center; margin: -6px 0 10px; }

/* История: карточка экспресса */
.bet.ex { display: block; }
.ex-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ex-head .bet-t { display: flex; align-items: center; gap: 8px; }
.ex-sub { font-size: 12px; color: var(--muted); margin: 3px 0 10px; }
.bet .legs { margin: 0; max-height: none; }
.bet .leg { background: var(--bg2); padding: 8px 10px; grid-template-columns: 22px 1fr auto; }
.bet .leg .ic { grid-row: 1 / span 2; font-size: 14px; text-align: center; }
.bet .leg .lt { font-size: 13px; }
.bet .leg .lp { grid-column: 2; }
.bet .leg .lk { grid-column: 3; font-size: 13px; }
.bet .leg.won { border-color: rgba(61, 255, 162, .35); }
.bet .leg.lost { border-color: rgba(255, 77, 109, .35); }

/* Рейтинг: сезон */
.season {
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,201,74,.18), transparent 60%),
    linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid rgba(255,201,74,.3);
}
.season-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.season-name { font-family: var(--display); font-weight: 700; font-size: 16px; }
.season-left { font-size: 12px; color: var(--gold); font-weight: 800; white-space: nowrap; }
.prizes { display: flex; gap: 6px; margin: 12px 0 10px; }
.prize { flex: 1; text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(0,0,0,.25); font-weight: 800; font-size: 13px; }
.prize i { font-style: normal; display: block; font-size: 18px; }
.season-note { font-size: 12px; color: var(--muted); line-height: 1.4; }
.my-place {
  display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 10px 12px;
  border-radius: 12px; background: rgba(200,255,61,.08); border: 1px solid rgba(200,255,61,.3); font-weight: 700;
}
.my-place b { font-family: var(--display); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.bdg { font-size: 12px; margin-left: 4px; white-space: nowrap; }
.board .nm { display: flex; align-items: center; min-width: 0; }
.board .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Профиль */
.hero {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); margin: 4px 0 12px;
}
.hero .avatar { width: 64px; height: 64px; font-size: 24px; }
.hero-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.hero-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hero-bal { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--display); font-weight: 700; }
.hero-bal .coin { width: 18px; height: 18px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.badges .b {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid rgba(255,201,74,.35); font-weight: 800;
}
.badges .none { font-size: 13px; color: var(--muted); padding: 2px 2px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.card {
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--line);
}
.card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.invite { border-color: rgba(200,255,61,.35); background: radial-gradient(120% 100% at 0% 0%, rgba(200,255,61,.12), transparent 60%), var(--card); }
.link-box {
  margin: 12px 0 10px; padding: 11px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all;
}
.row-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.row-btns .cta { height: 46px; font-size: 14px; }
.btn2 { height: 46px; padding: 0 16px; border-radius: 16px; background: var(--card2); border: 1px solid var(--line); font-weight: 800; }
.ref-stats { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.ref-stats b { color: var(--text); font-family: var(--display); }
.setting { display: flex; align-items: center; gap: 12px; }
.setting .txt { flex: 1; }
.setting .txt b { display: block; }
.setting .txt span { font-size: 12px; color: var(--muted); }
.switch {
  position: relative; width: 50px; height: 30px; border-radius: 999px; background: var(--line); flex: none; transition: background .2s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.switch.on { background: var(--lime); }
.switch.on::after { transform: translateX(20px); background: var(--lime-ink); }
details.card summary { cursor: pointer; font-family: var(--display); font-weight: 700; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: '＋'; float: right; color: var(--muted); }
details.card[open] summary::after { content: '－'; }
details.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }


/* ================== v3: уровни, достижения, «поделиться» ================== */
.muted { color: var(--muted); font-family: var(--body); font-size: 13px; font-weight: 700; margin-left: 6px; }
.lvl { border-color: rgba(90, 209, 255, .35); background: radial-gradient(120% 100% at 100% 0%, rgba(90,209,255,.14), transparent 60%), var(--card); }
.lvl-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lvl-num {
  width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--lime-ink);
  background: linear-gradient(135deg, #5ad1ff, var(--lime));
}
.lvl-txt { flex: 1; min-width: 0; }
.lvl-txt b { display: block; font-family: var(--display); font-size: 16px; }
.lvl-txt span { font-size: 12px; color: var(--muted); }
.streak { text-align: center; font-family: var(--display); font-weight: 800; font-size: 18px; filter: grayscale(1); opacity: .6; }
.streak.hot { filter: none; opacity: 1; color: var(--gold); }
.streak i { display: block; font-style: normal; font-family: var(--body); font-size: 11px; color: var(--muted); font-weight: 700; }
.bar { height: 8px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5ad1ff, var(--lime)); }
.bar.sm { height: 5px; margin: 8px 0 4px; }
.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.ach {
  padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 122px;
}
.ach .ach-ic { font-size: 24px; filter: grayscale(1); opacity: .45; }
.ach .ach-t { font-weight: 800; font-size: 14px; margin-top: 6px; color: var(--muted); }
.ach .ach-d { font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; flex: 1; }
.ach .ach-r { font-size: 12px; font-weight: 800; color: var(--muted); }
.ach.on { border-color: rgba(255,201,74,.4); background: radial-gradient(120% 100% at 0% 0%, rgba(255,201,74,.12), transparent 60%), var(--bg2); }
.ach.on .ach-ic { filter: none; opacity: 1; }
.ach.on .ach-t { color: var(--text); }
.ach.on .ach-r { color: var(--gold); }
.share {
  grid-column: 1 / -1; justify-self: end; margin-top: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: var(--lime); background: rgba(200,255,61,.08); border: 1px solid rgba(200,255,61,.3);
}
.bet.ex .share { display: block; margin-left: auto; }
.win-share { width: 100%; margin-top: 8px; color: var(--text); }
