/* ============ SportShort — Design System ============ */
:root {
  /* brand */
  --brand: #6C4DFF; --brand-2: #9B7BFF; --brand-ink: #ffffff; --brand-glow: rgba(108,77,255,.45);
  --accent: #23E5A0;                 /* signature mint */
  /* semantic */
  --yes: #23E5A0; --yes-ink: #04241a; --no: #FF5B79; --no-ink: #2e0410; --win: #FFCB57;
  /* surfaces */
  --bg: #0A0C11; --s1: #12151D; --s2: #191E29; --s3: #222838;
  --border: rgba(255,255,255,.07); --border-2: rgba(255,255,255,.14);
  /* text */
  --tx: #F3F5FA; --tx-2: #A6AEC0; --tx-3: #6B7488;
  /* geometry */
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px; --pill: 999px;
  --sh: 0 10px 34px rgba(0,0,0,.4); --sh-brand: 0 8px 26px var(--brand-glow);
  --ease: cubic-bezier(.4,0,.2,1);
  --font: 'Sora', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--tx); font-family: var(--font); overflow: hidden; user-select: none; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
#app { display: flex; flex-direction: column; height: 100vh; max-width: 480px; margin: 0 auto; position: relative;
  background: radial-gradient(120% 60% at 50% -10%, rgba(108,77,255,.12), transparent 60%), var(--bg); }
.loading { margin: auto; color: var(--tx-2); text-align: center; padding: 20px; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }
.i, .i-sm { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i { width: 22px; height: 22px; }
.i-sm { width: 18px; height: 18px; }

/* ---------- header ---------- */
.header { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px; flex: none; }
.brand { display: flex; align-items: center; gap: 7px; }
.mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #B08BFF); display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-brand); }
.mark svg { width: 15px; height: 15px; }
.wordmark { font-weight: 800; font-size: 16px; letter-spacing: -0.03em; }
.wordmark b { color: var(--brand-2); font-weight: 800; }
/* баланс — просто текст, без рамки и точки (экономим место под нотиф) */
.bal-pill { margin-left: auto; display: flex; align-items: center; font-weight: 700; font-size: 13px; color: var(--tx); white-space: nowrap; }
.dep-btn { background: linear-gradient(135deg, var(--brand), #8B6DFF); color: #fff; border: 0; font-weight: 700; padding: 10px 18px; border-radius: var(--pill); font-size: 14px; box-shadow: var(--sh-brand); transition: transform .15s var(--ease); white-space: nowrap; }
.dep-btn:active { transform: scale(.95); }
.icon-btn { background: var(--s2); border: 1px solid var(--border); color: var(--tx-2); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; transition: .15s var(--ease); }
.icon-btn:active { transform: scale(.92); }
.ghost-btn { background: none; border: 0; color: var(--tx-2); display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 4px; }

/* ---------- views ---------- */
.view { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.view.scroll { overflow-y: auto; padding: 8px 18px 20px; }
.h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- FEED card ---------- */
.deck { flex: 1; position: relative; padding: 8px 14px 14px; display: flex; perspective: 1400px; }
.card { position: absolute; inset: 8px 14px 14px; border-radius: var(--r-xl); padding: 20px 18px; display: flex; flex-direction: column; color: #fff; overflow: hidden; box-shadow: var(--sh); touch-action: pan-y; isolation: isolate; will-change: transform, opacity; z-index: 2; }
/* peek of the next card behind — gives the deck depth */
.card.peek { z-index: 1; pointer-events: none; transform: scale(.92) translateY(18px); opacity: .5; filter: saturate(.85) brightness(.82); transition: transform .28s var(--ease), opacity .28s var(--ease); }
/* entrance: the new top card rises from the peek position */
@keyframes cardIn { from { transform: scale(.92) translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.card.enter { animation: cardIn .34s var(--ease); }
.card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 55% at 20% 0%, rgba(255,255,255,.22), transparent 55%); pointer-events: none; z-index: 0; }
.card > * { position: relative; z-index: 1; }
.card .match { text-align: center; font-weight: 700; font-size: 14px; opacity: .95; letter-spacing: -0.01em; }
.card .comp { text-align: center; font-size: 11px; opacity: .7; margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }
.card .q { font-size: 27px; font-weight: 800; line-height: 1.22; margin: auto 0; padding-left: 6px; padding-right: 50px; text-align: center; letter-spacing: -0.03em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.card-filter { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.26); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 3; }

/* vertical stake slider (right) */
.vslider { position: absolute; right: 16px; top: 84px; bottom: 156px; width: 44px; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.vslider .badge { background: rgba(0,0,0,.34); backdrop-filter: blur(6px); color: #fff; padding: 5px 11px; border-radius: var(--pill); font-weight: 700; font-size: 13px; margin-bottom: 10px; white-space: nowrap; border: 1px solid rgba(255,255,255,.16); }
.vslider input[type=range] { writing-mode: vertical-lr; direction: rtl; width: 22px; flex: 1; accent-color: #fff; background: transparent; }

/* YES / NO */
.ynrow { display: flex; gap: 12px; }
.yn { flex: 1; border: 0; border-radius: var(--r-lg); padding: 15px; font-weight: 800; font-size: 16px; display: flex; flex-direction: column; align-items: center; gap: 3px; letter-spacing: -0.01em; transition: transform .12s var(--ease); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.yn:active { transform: scale(.96); }
.yn small { font-weight: 600; font-size: 12px; opacity: .92; letter-spacing: 0; }
.yn.yes { background: linear-gradient(135deg, #2BF0A8, #17c98c); color: var(--yes-ink); }
.yn.no { background: linear-gradient(135deg, #FF6B85, # f0455f); color: #fff; }
.yn.no { background: linear-gradient(135deg, #FF6B85, #EF4560); color: #fff; }

/* ---------- bottom nav ---------- */
.bottomnav { display: flex; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 4px; flex: none; background: linear-gradient(0deg, var(--bg), transparent); }
.bottomnav button { flex: 1; background: none; border: 0; color: var(--tx-3); padding: 8px 4px; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 5px; border-radius: var(--r); transition: .18s var(--ease); }
.bottomnav button.active { color: var(--brand-2); background: rgba(108,77,255,.1); }
.bottomnav button .i { width: 23px; height: 23px; }
/* бейдж-счётчик на иконке My bets */
.nav-ic { position: relative; display: inline-flex; }
.nav-badge { position: absolute; top: -6px; right: -11px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg); }
.nav-badge.show { display: flex; }
.nav-badge.pulse { background: var(--accent); color: #04241a; animation: badgePulse 1.05s ease-in-out infinite; }
@keyframes badgePulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 2px var(--bg), 0 0 0 0 rgba(35,229,160,.6); }
  50% { transform: scale(1.16); box-shadow: 0 0 0 2px var(--bg), 0 0 0 9px rgba(35,229,160,0); }
}

/* ---------- generic ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.list-card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 15px; margin-bottom: 11px; transition: .15s var(--ease); }
.list-card:active { transform: scale(.99); border-color: var(--border-2); }
.pill { font-size: 11px; padding: 4px 10px; border-radius: var(--pill); background: var(--s3); color: var(--tx-2); font-weight: 600; }
.pill.pos { background: rgba(35,229,160,.14); color: var(--accent); }
.pill.win { background: rgba(35,229,160,.16); color: var(--accent); font-weight: 700; }
.pill.lose { background: rgba(255,91,121,.14); color: var(--no); }
.list-card.fresh { border-color: rgba(35,229,160,.45); box-shadow: 0 0 0 1px rgba(35,229,160,.22); }
.tabs { display: flex; gap: 8px; margin: 6px 0 16px; background: var(--s1); padding: 5px; border-radius: var(--r); border: 1px solid var(--border); }
.tabs button { flex: 1; background: none; border: 0; color: var(--tx-2); padding: 9px; border-radius: 10px; font-weight: 600; font-size: 13px; transition: .15s var(--ease); }
.tabs button.active { color: var(--tx); background: var(--s3); }
.field { margin-bottom: 16px; } .field label { display: block; font-size: 12px; color: var(--tx-2); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.inp { width: 100%; background: var(--s1); border: 1px solid var(--border); color: var(--tx); padding: 13px 14px; border-radius: var(--r); font-size: 15px; font-family: inherit; transition: .15s var(--ease); }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 46px; height: 46px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--border); color: var(--tx); font-size: 22px; font-weight: 600; transition: .12s var(--ease); }
.stepper button:active { transform: scale(.92); background: var(--s3); }
.stepper .val { flex: 1; text-align: center; background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; font-weight: 700; font-size: 17px; }
.btn { width: 100%; background: linear-gradient(135deg, var(--brand), #8B6DFF); border: 0; color: #fff; padding: 16px; border-radius: var(--r); font-weight: 700; font-size: 15px; box-shadow: var(--sh-brand); transition: transform .14s var(--ease); font-family: inherit; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; transform: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { background: var(--s1); border: 1px solid var(--border); color: var(--tx); padding: 9px 15px; border-radius: var(--pill); font-weight: 600; font-size: 13px; transition: .14s var(--ease); font-family: inherit; }
.chips button.active { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--brand), #8B6DFF); box-shadow: 0 4px 14px var(--brand-glow); }
.method { display: flex; align-items: center; gap: 12px; background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; margin-bottom: 9px; transition: .14s var(--ease); }
.method .mi { width: 34px; height: 34px; border-radius: 9px; background: var(--s3); display: flex; align-items: center; justify-content: center; color: var(--brand-2); }
.method.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.method.active .mi { background: var(--brand); color: #fff; }
.muted { color: var(--tx-2); } .dim { color: var(--tx-3); }
.empty { color: var(--tx-3); text-align: center; margin-top: 48px; font-size: 14px; }
.toast { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--s3); border: 1px solid var(--border-2); padding: 11px 18px; border-radius: var(--pill); font-size: 13px; font-weight: 600; opacity: 0; transition: .22s var(--ease); pointer-events: none; z-index: 20; box-shadow: var(--sh); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* multi-select */
.selrow { display: flex; align-items: center; justify-content: space-between; background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; font-size: 15px; font-weight: 500; transition: .14s var(--ease); }
.selrow:active { border-color: var(--border-2); }
.selrow .chev { color: var(--tx-3); }
.opt { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; border-bottom: 1px solid var(--border); font-size: 15px; }
.opt.on { color: var(--brand-2); font-weight: 600; }
.opt .check { color: var(--accent); }

/* ---------- welcome + auth ---------- */
.welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; text-align: center; position: relative; }
.brand-lg { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.mark.lg { width: 54px; height: 54px; border-radius: 16px; } .mark.lg svg { width: 31px; height: 31px; }
.wordmark.lg { font-size: 34px; }
.tagline { color: var(--tx-2); font-size: 16px; max-width: 290px; margin: 0 0 34px; line-height: 1.5; }
.stats { display: flex; gap: 18px; margin-bottom: 42px; }
.stats > div { display: flex; flex-direction: column; gap: 3px; }
.stats b { font-size: 23px; color: var(--brand-2); font-weight: 800; }
.stats span { font-size: 11px; color: var(--tx-3); }
.wbtns { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.btn.ghost { background: var(--s2); box-shadow: none; border: 1px solid var(--border); color: var(--tx); }
.btn.danger { background: none; border: 1px solid rgba(255,91,121,.4); color: var(--no); box-shadow: none; margin-top: 6px; }
.btn.tgbtn { background: #229ED9; box-shadow: 0 8px 26px rgba(34,158,217,.4); display: flex; align-items: center; justify-content: center; gap: 9px; }
.btn.ghost { display: flex; align-items: center; justify-content: center; gap: 9px; }
.wguest-link { background: none; border: 0; color: var(--tx-3); font-size: 13px; font-weight: 600; padding: 8px; margin-top: 2px; font-family: inherit; }
.wguest-link:active { color: var(--tx-2); }
.badge18 { position: absolute; bottom: 22px; font-size: 12px; color: var(--tx-3); border: 1px solid var(--border); border-radius: var(--pill); padding: 4px 13px; font-weight: 600; }
.auth { flex: 1; overflow-y: auto; padding: 20px 20px 32px; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A6AEC0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.check-row { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--tx-2); margin-bottom: 4px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }

/* custom dropdown (замена кривого нативного <select>) */
.dd { position: relative; }
.dd-lang { flex: none; width: 132px; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--s1); border: 1px solid var(--border); color: var(--tx); padding: 13px 14px; border-radius: var(--r); font-family: inherit; font-size: 15px; font-weight: 500; transition: .14s var(--ease); }
.dd-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--tx-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s var(--ease); }
.dd.open .dd-btn { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 132px; background: var(--s2); border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: var(--sh); z-index: 40; max-height: 264px; overflow-y: auto; padding: 5px; }
.dd-lang .dd-menu { left: auto; right: 0; } /* язык у правого края — раскрываем влево, чтобы не улетать за экран */
.dd-opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; color: var(--tx); padding: 12px 12px; border-radius: 9px; font-family: inherit; font-size: 15px; text-align: left; transition: background .12s var(--ease); }
.dd-opt.on { color: var(--brand-2); font-weight: 600; }
.dd-opt:active { background: var(--s3); }
.dd-opt .check { color: var(--accent); }

/* country + language split field */
.row2 { display: flex; gap: 10px; }
.row2 > #acountry { flex: 1; }
.lang-sel { flex: none; width: 100px; text-align: center; font-weight: 700; padding-right: 32px; }

/* legal / help links — намеренно ненавязчивые (не тянут на себя внимание) */
.legal-links { margin-top: 24px; border-top: 1px solid var(--border); }
.legal-head { font-size: 11px; color: var(--tx-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin: 16px 2px 4px; }
.legal-link { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--tx-3); font-size: 13px; font-weight: 500; padding: 13px 2px; font-family: inherit; transition: color .12s var(--ease); }
.legal-link:last-child { border-bottom: 0; }
.legal-link:active { color: var(--tx-2); }
/* doc page (тексты правовых страниц) */
.doc-body { color: var(--tx-2); font-size: 14px; line-height: 1.6; padding-bottom: 12px; }
.doc-body h3 { color: var(--tx); font-size: 15px; font-weight: 700; margin: 18px 0 8px; letter-spacing: -0.01em; }
.doc-body p { margin-bottom: 12px; }
.doc-body .doc-note { color: var(--tx-3); font-size: 12px; font-style: italic; margin-top: 18px; }

/* результат рассчитанной ставки (win / lost / refund) */
.result-hero { border-radius: var(--r-xl); padding: 30px 20px; text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: var(--sh); }
.result-hero.win { background: linear-gradient(150deg, #2BF0A8, #12a06f); color: #04241a; }
.result-hero.lose { background: linear-gradient(150deg, #3a3f4d, #22262f); }
.result-hero.void { background: linear-gradient(150deg, #4a3f7a, #2e2850); }
.result-hero .rh-title { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.result-hero .rh-amount { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0 12px; }
.result-hero .rh-q { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.result-hero.pop { animation: heroPop .5s var(--ease); }
@keyframes heroPop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* сумма, летящая в баланс */
.fly-amt { z-index: 70; font-weight: 800; font-size: 20px; color: var(--accent); pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.bal-val { display: inline-block; }
.bal-val.bump { animation: balBump .45s ease; }
@keyframes balBump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.18); color: var(--accent); } }

/* stake detail */
.detail-hero { background: var(--s1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.detail-hero .dq { font-size: 22px; font-weight: 800; line-height: 1.25; margin-top: 4px; letter-spacing: -0.02em; }
.stat-row { display: flex; align-items: center; justify-content: space-between; background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin-top: 12px; font-size: 15px; }
.stat-row b { font-size: 18px; font-weight: 800; }
.poolbar2 { height: 8px; border-radius: 4px; background: rgba(255,91,121,.35); overflow: hidden; }
.poolbar2 > i { display: block; height: 100%; background: var(--accent); }
.sharebtn { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- CASSA (deposit / history / withdraw) ---------- */
.cassa-tabs { margin: 2px 0 16px; }
.clabel { display: block; font-size: 12px; color: var(--tx-2); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mt { margin-top: 16px; }
/* платёжные плитки — 4 в ряд, ряды растут вниз */
.pm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pm-tile { background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); padding: 6px; min-height: 50px; display: flex; align-items: center; justify-content: center; transition: .14s var(--ease); }
.pm-tile.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.pm-tile:active { transform: scale(.95); }
.pm-logo { width: 100%; height: 36px; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; letter-spacing: -.02em; line-height: 1; overflow: hidden; }
.pm-logo em { font-style: normal; font-weight: 700; font-size: 9px; opacity: .95; margin-top: 1px; letter-spacing: 0; }
.pm-logo .pm-ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* двухвалютный инпут суммы */
.amt-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.amt-lim { font-size: 11px; color: var(--tx-3); white-space: nowrap; }
.amt-box { display: flex; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); padding: 6px 10px 6px 6px; transition: .14s var(--ease); }
.amt-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.cur-tgl { background: var(--s3); border: 0; color: var(--tx); font-weight: 700; font-size: 12px; padding: 9px 10px; border-radius: 9px; min-width: 56px; }
.cur-tgl:active { transform: scale(.95); }
.amt-inp { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--tx); font-family: inherit; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.amt-eq { font-size: 12px; color: var(--tx-2); white-space: nowrap; }
.amt-presets { margin-top: 10px; }
/* промокод */
.promo-row { display: flex; gap: 8px; }
.promo-row .inp { flex: 1; }
.promo-check { background: var(--s2); border: 1px solid var(--border-2); color: var(--tx); font-weight: 700; padding: 0 16px; border-radius: var(--r); font-size: 13px; }
.promo-check:active { transform: scale(.96); }
.promo-stat { font-size: 12px; color: var(--tx-3); margin-top: 6px; min-height: 15px; }
.promo-stat.ok { color: var(--accent); font-weight: 600; }
.ton-note { text-align: center; font-size: 12px; color: var(--tx-3); margin-top: 8px; }
/* история */
.hist-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.hist-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--s2); color: var(--tx-2); display: flex; align-items: center; justify-content: center; flex: none; }
.hist-ic.pos { background: rgba(35,229,160,.14); color: var(--accent); }
.hist-ic.neg { background: rgba(255,91,121,.12); color: var(--no); }
.hist-mid { flex: 1; min-width: 0; }
.hist-lbl { font-weight: 600; font-size: 14px; }
.hist-ts { font-size: 11px; color: var(--tx-3); margin-top: 2px; }
.hist-amt { font-weight: 800; font-size: 14px; white-space: nowrap; }
.hist-amt.pos { color: var(--accent); }
.hist-amt.neg { color: var(--no); }
/* вывод заблокирован */
.locked { text-align: center; color: var(--tx-2); margin-top: 54px; font-size: 14px; padding: 0 24px; }
.locked-ic { display: flex; justify-content: center; margin-bottom: 12px; color: var(--tx-3); }
.locked-ic .i { width: 34px; height: 34px; }

/* ---------- Онбординг / офферы (docs/20) ---------- */
/* оверлей туториала: перехватывает все тапы, реагирует только цель */
.onb { position: fixed; inset: 0; z-index: 200; pointer-events: auto; }
.onb.dim { background: rgba(6,8,12,.86); backdrop-filter: blur(1.5px); } /* шаг 2 — сильное затемнение */
/* шаг 1: «дырка»-спотлайт — затемняет всё, КРОМЕ места иконки фильтра (оно остаётся ярким) */
.onb-hole { position: fixed; transform: translate(-50%,-50%); border-radius: 999px; box-shadow: 0 0 0 9999px rgba(6,8,12,.86); pointer-events: none; }
/* пульсирующее кольцо + БЕЛЫЙ палец на иконке фильтра */
.onb-ring { position: fixed; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 999px; border: 2px solid var(--accent); box-shadow: 0 0 0 3px rgba(35,229,160,.25); animation: onbPulse 1.4s ease-out infinite; pointer-events: none; }
@keyframes onbPulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.onb-finger { position: fixed; margin: 10px 0 0 10px; font-size: 42px; animation: onbTap 1.4s ease-in-out infinite; pointer-events: none; filter: brightness(0) invert(1) drop-shadow(0 3px 7px rgba(0,0,0,.6)); }
@keyframes onbTap { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.onb-hot { position: fixed; background: transparent; border: 0; padding: 0; cursor: pointer; z-index: 201; }
.onb-tip { position: fixed; left: 50%; transform: translateX(-50%); max-width: 340px; width: calc(100% - 44px); text-align: center; color: #fff; font-weight: 700; font-size: 20px; line-height: 1.35; text-shadow: 0 2px 14px rgba(0,0,0,.6); pointer-events: none; }
.onb-tip-top { top: 30%; }
.onb-tip-center { top: 37%; }
/* шаг 2: подсказка свайпа + БЕЛАЯ крупная рука; кнопка «Понятно» — прямо под рукой */
.onb-swipe { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 56px; }
.onb-hand { display: inline-block; animation: onbSwipe 1.6s ease-in-out infinite; filter: brightness(0) invert(1) drop-shadow(0 3px 7px rgba(0,0,0,.6)); }
@keyframes onbSwipe { 0%,100% { transform: translateX(-64px) rotate(-14deg); } 50% { transform: translateX(64px) rotate(14deg); } }
.onb-gotit { position: fixed; left: 50%; top: 61%; transform: translateX(-50%); width: auto; min-width: 168px; padding: 15px 30px; z-index: 201; }

/* оффер-баннер в кассе: ПОД иконками метода, зависит от метода (виден не на всех платёжках).
   .offer-wrap сворачивается плавно → поля под ним поднимаются. Углы прямые, текст по центру. */
.offer-wrap { overflow: hidden; max-height: 120px; opacity: 1; margin: 10px 0 0; transition: max-height .34s var(--ease), opacity .26s var(--ease), margin .34s var(--ease); }
.offer-wrap.collapsed { max-height: 0; opacity: 0; margin: 0; }
.offer-banner { position: relative; overflow: hidden; padding: 12px 14px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background:
    radial-gradient(150px 130px at 94% -30%, rgba(108,77,255,.55), transparent 72%),
    radial-gradient(140px 140px at 2% 150%, rgba(35,229,160,.30), transparent 70%),
    linear-gradient(135deg, #150a24, #2b1152);
  border: 1px solid rgba(155,123,255,.32);
  box-shadow: 0 8px 24px rgba(21,10,36,.5), inset 0 1px 0 rgba(255,255,255,.06); }
.offer-banner .offer-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 12px var(--brand-glow); }
.offer-banner .offer-txt { font-weight: 700; font-size: 13.5px; line-height: 1.3; color: #F3F5FA; letter-spacing: -0.01em; text-align: center; }
.offer-banner .offer-txt b { color: var(--accent); font-weight: 800; font-size: 15px; }

/* live-превью бонуса под суммой/промо */
.bonus-prev { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(35,229,160,.1); border: 1px solid rgba(35,229,160,.28); color: var(--tx-2); font-size: 13px; text-align: center; }
.bonus-prev b { color: var(--accent); font-weight: 800; }

/* подсказка диапазона ставки в профиле (docs/21) */
.hint { margin: -4px 0 12px; font-size: 12.5px; color: var(--tx-3); }

/* редим тест-промокода в профиле (docs/24) */
.redeem-card { margin: 4px 0 16px; padding: 14px; border-radius: var(--r); background: linear-gradient(135deg, rgba(108,77,255,.16), rgba(35,229,160,.10)); border: 1px solid rgba(155,123,255,.28); }
.redeem-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--tx); }
.redeem-head .i-sm { color: var(--brand-2); }
.redeem-sub { font-size: 12.5px; color: var(--tx-2); margin: 4px 0 10px; }
.redeem-card .promo-row { margin: 0; }

/* сообщения инфохаба */
.msg-row { padding: 12px 14px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--border); margin-bottom: 10px; }
.msg-title { font-weight: 700; font-size: 14px; color: var(--tx); }
.msg-body { font-size: 13px; color: var(--tx-2); margin: 4px 0 6px; line-height: 1.4; }

/* ---------- картинки событий на карточке (docs/25) ---------- */
/* слой картинки под контентом (контент у .card уже z-index:1) */
.card-img { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; border-radius: inherit; }
/* скрим для читабельности: темнее сверху (match) и снизу, светлее в центре (виден сюжет) */
.card-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(6,8,14,.5) 0%, rgba(6,8,14,.12) 22%, rgba(6,8,14,.08) 58%, rgba(6,8,14,.4) 100%); }
.card.has-img::after { opacity: .5; } /* приглушаем верхний glossy-хайлайт поверх фото */
/* текст события на «стекле» — читается на любой картинке */
.card .q.on-img { background: rgba(10,12,20,.34); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 15px 16px; margin: auto 44px auto 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* ---------- шапка матча: [флаг] VS [флаг] + названия (docs/26) ---------- */
.matchup { display: flex; align-items: flex-start; justify-content: center; gap: 14px; padding: 0 38px; }
.matchup .team { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 42%; }
.matchup .flag { width: 46px; height: 31px; border-radius: 6px; background-size: cover; background-position: center; box-shadow: 0 3px 10px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); flex: none; }
.matchup .flag-none { background: rgba(255,255,255,.12); }
.matchup .tname { font-size: 13px; font-weight: 700; color: #fff; text-align: center; line-height: 1.12; letter-spacing: -0.01em; text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.matchup .vs { font-size: 12px; font-weight: 800; color: rgba(255,255,255,.72); letter-spacing: .06em; margin-top: 9px; }

/* флаг команды в фильтре */
.opt-label { display: inline-flex; align-items: center; gap: 10px; }
.opt-flag { width: 26px; height: 18px; border-radius: 4px; background-size: cover; background-position: center; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15); }
