/* --- Боевой пропуск (вкладка «Ивенты») ---
   Экран собран в три слоя: шапка сезона (статус игрока + 3D-витрина финала),
   переключатель разделов и сами разделы - награды, задания, очки. Раньше всё
   лежало одной простынёй, и задания выталкивали ленту наград за первый экран. */
.bp { --bp-gold: #e9b35a; --bp-gold-hi: #ffd98f; --bp-free: var(--accent);
    --bp-radius: 16px; --bp-gap: 14px;
    display: flex; flex-direction: column; gap: var(--bp-gap); }

/* шкала редкостей - та же, что у LootItem.RARITY_COLORS: один цвет на всём сайте */
.bp [data-rarity], .bp-legend [data-rarity] { --rc: #9ca3af; }
.bp [data-rarity="uncommon"] { --rc: #22c55e; }
.bp [data-rarity="rare"] { --rc: #06b6d4; }
.bp [data-rarity="epic"] { --rc: #a855f7; }
.bp [data-rarity="legendary"] { --rc: #f59e0b; }
.bp [data-rarity="mythic"] { --rc: #ef4444; }
.bp [data-rarity="artifact"] { --rc: #5eead4; }
.bp [data-rarity="relic"] { --rc: #f0abfc; }

/* ------------------------------------------------------------- метки и кнопки */
.bp-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
    border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
    color: var(--brand-soft); background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .32); }
.bp-tag i { font-size: 11px; }
.bp-tag--time { color: var(--text); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.bp-tag--gold { color: var(--bp-gold-hi, #ffd98f); background: rgba(233, 179, 90, .14); border-color: rgba(233, 179, 90, .4); }
.bp-tag--prestige { color: #f0abfc; background: rgba(240, 171, 252, .1); border-color: rgba(240, 171, 252, .32); }

.bp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
    padding: 0 16px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
    transition: transform .18s ease, filter .18s ease, border-color .18s ease, background .18s ease; }
.bp-btn:hover { transform: translateY(-1px); }
.bp-btn:active { transform: translateY(0) scale(.98); }
.bp-btn:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.bp-btn--gold { color: #241600; background: linear-gradient(135deg, var(--bp-gold-hi), var(--bp-gold));
    box-shadow: 0 8px 24px -10px rgba(233, 179, 90, .8), inset 0 1px 0 rgba(255, 255, 255, .45); }
.bp-btn--gold:hover { color: #241600; filter: brightness(1.06); }
.bp-btn--brand { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-light));
    box-shadow: 0 8px 24px -12px rgba(108, 63, 245, .9), inset 0 1px 0 rgba(255, 255, 255, .2); }
.bp-btn--brand:hover { color: #fff; filter: brightness(1.08); }
.bp-btn--ghost { color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--line); }
.bp-btn--ghost:hover { color: var(--text); border-color: var(--brand-light); background: rgba(139, 92, 246, .12); }

/* ------------------------------------------------------------------- шапка */
.bph { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: stretch;
    padding: 24px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
    background-color: var(--panel);
    background-image: radial-gradient(90% 120% at 100% 0%, rgba(108, 63, 245, .32), transparent 60%),
                      radial-gradient(60% 80% at 0% 100%, rgba(6, 182, 212, .10), transparent 60%); }
.bph.has-banner { background-size: cover; background-position: center;
    background-image: linear-gradient(100deg, rgba(12, 10, 26, .96) 0%, rgba(12, 10, 26, .86) 48%, rgba(12, 10, 26, .55) 100%), var(--banner); }
/* тонкая подсветка верхней кромки: шапка читается как приподнятая плита */
.bph::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.bph__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bph__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bph__name { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.bph__dates { margin: -8px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.bph__intro { margin: -4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 56ch; }

.bph__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.bph-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 12px;
    background: rgba(12, 10, 26, .55); border: 1px solid rgba(255, 255, 255, .07); backdrop-filter: blur(6px); }
.bph-stat dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bph-stat dd { margin: 0; display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.bph-stat dd b { font-size: 24px; font-weight: 800; line-height: 1; color: #fff; }
.bph-stat dd small { font-size: 12px; color: var(--muted); }
.bph-stat--level dd b { background: linear-gradient(180deg, #fff, var(--brand-soft)); -webkit-background-clip: text;
    background-clip: text; color: transparent; }
.bph-stat.is-hot { border-color: rgba(99, 176, 74, .45); background: linear-gradient(160deg, rgba(99, 176, 74, .16), rgba(12, 10, 26, .55)); }
.bph-stat.is-hot dd b { color: #9be07f; }

.bph__progress { display: flex; flex-direction: column; gap: 6px; }
.bph__progress-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted);
    font-variant-numeric: tabular-nums; }
.bph__progress-pct { color: var(--text); }
.bp-progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06); }
.bp-progress__bar { position: relative; height: 100%; width: calc(var(--w, 0) * 1%); min-width: 6px; border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), #c4b5fd);
    box-shadow: 0 0 16px rgba(139, 92, 246, .7); transition: width .6s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.bp-progress__bar::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-100%); animation: bp-sheen 2.8s ease-in-out infinite; }
@keyframes bp-sheen { 60%, 100% { transform: translateX(100%); } }

.bph__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }

/* ------------------------------------------------- 3D-витрина финальной награды */
.bp3d { position: relative; perspective: 1100px; display: flex; align-items: stretch; min-height: 320px; }
.bp3d__card { --rx: 4deg; --ry: -10deg; --gx: 30%; --gy: 20%;
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 16px 14px; border-radius: 18px; text-align: center; transform-style: preserve-3d;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
    background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--rc) 26%, transparent), transparent 62%),
                linear-gradient(180deg, rgba(30, 26, 55, .92), rgba(12, 10, 26, .96));
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06) inset,
                0 0 60px -20px var(--rc); }
.bp3d.is-tilting .bp3d__card { transition-duration: .12s; }
/* бегущая кромка редкости: conic-градиент по маске рамки */
.bp3d__rim { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: conic-gradient(from var(--bp-ang, 0deg), transparent 0 20%, var(--rc) 35%, #fff 40%, var(--rc) 45%, transparent 60% 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; animation: bp-rim 6s linear infinite; opacity: .9; }
@property --bp-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes bp-rim { to { --bp-ang: 360deg; } }
.bp3d__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light;
    background: radial-gradient(60% 50% at var(--gx) var(--gy), rgba(255, 255, 255, .45), transparent 70%); }
.bp3d__eyebrow { transform: translateZ(30px); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
    border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--bp-gold-hi, #ffd98f); background: rgba(233, 179, 90, .12); border: 1px solid rgba(233, 179, 90, .35); }
.bp3d__stage { position: relative; width: 100%; height: 150px; display: grid; place-items: center;
    transform-style: preserve-3d; transform: translateZ(40px); }
.bp3d__halo { position: absolute; width: 150px; height: 150px; border-radius: 50%; filter: blur(18px); opacity: .55;
    background: radial-gradient(circle, var(--rc), transparent 65%); animation: bp-pulse 3.6s ease-in-out infinite; }
.bp3d__orbit { position: absolute; width: 170px; height: 170px; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); border-top-color: transparent; border-bottom-color: #fff;
    transform: rotateX(74deg); animation: bp-orbit 7s linear infinite; }
.bp3d__orbit--2 { width: 130px; height: 130px; opacity: .6; animation-duration: 11s; animation-direction: reverse; }
@keyframes bp-orbit { from { transform: rotateX(74deg) rotateZ(0); } to { transform: rotateX(74deg) rotateZ(360deg); } }
.bp3d__gem { position: relative; z-index: 1; width: 92px; height: 92px; display: grid; place-items: center;
    border-radius: 24px; font-size: 40px; color: #fff; transform: translateZ(50px);
    background: linear-gradient(145deg, color-mix(in srgb, var(--rc) 70%, #fff 10%), color-mix(in srgb, var(--rc) 35%, #0c0a1a));
    box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .7), inset 0 2px 0 rgba(255, 255, 255, .35),
                inset 0 -6px 14px rgba(0, 0, 0, .35), 0 0 40px -6px var(--rc);
    animation: bp-float 4.2s ease-in-out infinite; }
.bp3d__gem img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.bp3d__gem i { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.bp3d__pedestal { position: absolute; bottom: 6px; width: 120px; height: 120px; border-radius: 50%;
    transform: rotateX(78deg) translateZ(-38px);
    background: radial-gradient(circle, color-mix(in srgb, var(--rc) 50%, transparent) 0, transparent 62%);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc) 40%, transparent); }
@keyframes bp-float { 50% { transform: translateZ(50px) translateY(-8px) rotateZ(-2deg); } }
@keyframes bp-pulse { 50% { opacity: .8; transform: scale(1.08); } }
.bp3d__name { transform: translateZ(36px); font-size: 17px; line-height: 1.25; color: #fff; text-wrap: balance; }
.bp3d__rarity { transform: translateZ(26px); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--rc); }
.bp3d__alt { transform: translateZ(20px); margin-top: auto; width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 12px; text-align: left; font-size: 13px; font-weight: 600; line-height: 1.25;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.bp3d__alt small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--bp-free); }
.bp3d__alt-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px;
    color: #fff; font-size: 14px; background: color-mix(in srgb, var(--rc) 30%, #15122a);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 55%, transparent); }
.bp3d__alt-icon img { width: 24px; height: 24px; image-rendering: pixelated; }

/* -------------------------------------------------------------- разделы */
.bp-tabs { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 14px; scroll-margin-top: 90px;
    background: rgba(21, 18, 42, .8); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.bp-tabs::-webkit-scrollbar { display: none; }
.bp-tabs__tab { position: relative; z-index: 1; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: none; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap;
    transition: color .2s ease; }
.bp-tabs__tab:hover { color: var(--text); }
.bp-tabs__tab[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-light));
    box-shadow: 0 6px 18px -6px rgba(108, 63, 245, .9), inset 0 1px 0 rgba(255, 255, 255, .18); }
.bp-tabs__tab:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: -2px; }
.bp-tabs__count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
    font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
    color: var(--text); background: rgba(255, 255, 255, .08); }
.bp-tabs__tab[aria-selected="true"] .bp-tabs__count { background: rgba(255, 255, 255, .2); }
.bp-pane { animation: bp-in .32s cubic-bezier(.2, .8, .2, 1); }
.bp-pane[hidden] { display: none; }
@keyframes bp-in { from { opacity: 0; transform: translateY(6px); } }

/* --------------------------------------------------------------- легенда */
.bp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; padding: 0 4px;
    font-size: 12px; color: var(--muted); }
.bp-legend__item { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.bp-legend__item--premium { color: var(--bp-gold); }
.bp-legend__item--free { color: var(--bp-free); }
.bp-legend__sep { width: 1px; height: 14px; background: var(--line); }
.bp-legend__rar { display: inline-flex; align-items: center; gap: 6px; }
.bp-legend__rar::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.bp-legend [data-rarity="rare"] { --rc: #06b6d4; }
.bp-legend [data-rarity="epic"] { --rc: #a855f7; }
.bp-legend [data-rarity="legendary"] { --rc: #f59e0b; }
.bp-legend [data-rarity="mythic"] { --rc: #ef4444; }
.bp-legend [data-rarity="artifact"] { --rc: #5eead4; }
.bp-legend [data-rarity="relic"] { --rc: #f0abfc; }

/* --- лента наград: горизонтальная дорога ---
   Премиум над осью, бесплатное под ней, по центру номер уровня и порог.
   Уровни без наград (is-barren) сжимаются в короткую отметку. Провод между
   кружками считается из --slot-h и --mark-size, поэтому живёт в одном месте. */
.bpt { --slot-h: 152px; --mark-size: 36px; --node-w: 132px; display: flex; flex-direction: column; gap: 10px; }
.bpt__scroll { display: flex; gap: 8px; align-items: stretch; }
.bpt__axis { flex: none; width: 44px; display: flex; flex-direction: column; justify-content: space-between;
    padding: 12px 0 60px; }
.bpt__axis-tier { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-flex; align-items: center; gap: 8px;
    align-self: center; height: calc(var(--slot-h) - 16px); justify-content: center; border-radius: 12px; width: 32px;
    font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--bp-gold); background: linear-gradient(0deg, rgba(233, 179, 90, .14), rgba(233, 179, 90, .02));
    border: 1px solid rgba(233, 179, 90, .25); }
.bpt__axis-tier i { transform: rotate(90deg); font-size: 12px; }
.bpt__axis-tier--free { color: var(--bp-free); background: linear-gradient(0deg, rgba(99, 176, 74, .14), rgba(99, 176, 74, .02));
    border-color: rgba(99, 176, 74, .25); }

.bpt__rail { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 8px;
    overflow-x: auto; padding: 18px 12px 14px; scroll-behavior: smooth; scroll-snap-type: x proximity;
    background: linear-gradient(180deg, rgba(233, 179, 90, .05), transparent 38%, transparent 62%, rgba(99, 176, 74, .05)),
                rgba(21, 18, 42, .85);
    border: 1px solid var(--line); border-radius: var(--bp-radius);
    scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, .5) transparent;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.bpt__rail:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.bpt-node { position: relative; flex: none; width: var(--node-w); display: flex; flex-direction: column; gap: 8px;
    scroll-snap-align: center; }
.bpt-node.is-barren { width: 36px; }
/* провод сезона сквозь кружки: у пройденных горит, у будущих тусклый */
.bpt-node::before { content: ''; position: absolute; left: -8px; right: -8px; z-index: 0;
    top: calc(var(--slot-h) + 8px + var(--mark-size) / 2 - 1.5px); height: 3px; border-radius: 3px; background: var(--line); }
.bpt-node.is-reached::before { background: linear-gradient(90deg, var(--brand), var(--brand-light));
    box-shadow: 0 0 10px rgba(139, 92, 246, .6); }

.bpt-slot { height: var(--slot-h); display: flex; flex-direction: column; align-items: stretch; gap: 6px; perspective: 700px; }
.bpt-slot--premium { justify-content: flex-end; }
.bpt-slot--free { justify-content: flex-start; }

.bpt-mark { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bpt-mark b { display: grid; place-items: center; width: var(--mark-size); height: var(--mark-size);
    border-radius: 50%; font-size: 14px; font-weight: 800; color: var(--muted);
    background: var(--panel-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
    transition: transform .25s ease, box-shadow .25s ease; }
.bpt-mark em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
    white-space: nowrap; }
.bpt-node.is-reached .bpt-mark b { color: #fff; border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
/* каждый десятый уровень - веха: ромб-самоцвет под номером (крутится подложка, не цифра) */
.bpt-node.is-milestone .bpt-mark b { position: relative; isolation: isolate; background: none; border-color: transparent; color: var(--bp-gold-hi); }
.bpt-node.is-milestone .bpt-mark b::before { content: ''; position: absolute; inset: 4px; z-index: -1; border-radius: 8px;
    transform: rotate(45deg); background: linear-gradient(135deg, #3a2f66, #1e1a37);
    border: 1px solid rgba(233, 179, 90, .55); box-shadow: 0 0 16px rgba(233, 179, 90, .35), inset 0 1px 0 rgba(255, 255, 255, .15); }
.bpt-node.is-milestone.is-reached .bpt-mark b { color: #241600; }
.bpt-node.is-milestone.is-reached .bpt-mark b::before { background: linear-gradient(135deg, var(--bp-gold-hi), var(--bp-gold)); }
.bpt-node.is-milestone .bpt-mark em { color: var(--bp-gold); }
.bpt-node.is-current .bpt-mark b { box-shadow: 0 0 0 4px rgba(139, 92, 246, .25), 0 0 24px rgba(139, 92, 246, .9);
    transform: scale(1.12); animation: bp-beat 2.2s ease-in-out infinite; }
@keyframes bp-beat { 50% { box-shadow: 0 0 0 7px rgba(139, 92, 246, .12), 0 0 30px rgba(139, 92, 246, 1); } }
.bpt-node.is-current::after { content: ''; position: absolute; inset: -10px -4px; border-radius: 14px; z-index: -1;
    border: 1px solid rgba(139, 92, 246, .45);
    background: linear-gradient(180deg, rgba(139, 92, 246, .1), rgba(139, 92, 246, .03)); pointer-events: none; }

/* --- карточка награды --- */
.bp-card { --rc: #9ca3af; position: relative; height: 118px; display: flex; flex-direction: column; align-items: center;
    gap: 5px; padding: 9px 7px 7px; border-radius: 12px; text-align: center; overflow: hidden;
    background: radial-gradient(110% 70% at 50% 0%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%),
                linear-gradient(180deg, #221d40, #17142e);
    border: 1px solid color-mix(in srgb, var(--rc) 38%, var(--line));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 14px -10px rgba(0, 0, 0, .8);
    transform-origin: 50% 100%; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.bp-card--free { transform-origin: 50% 0; }
/* нижняя кромка цвета редкости - как полоса у предметов в игре */
.bp-card::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: 0; height: 2px; border-radius: 2px;
    background: var(--rc); box-shadow: 0 0 10px var(--rc); opacity: .85; }
.bp-card:hover { transform: rotateX(8deg) translateY(-3px); border-color: var(--rc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 22px -12px rgba(0, 0, 0, .9), 0 0 22px -8px var(--rc); }
.bp-card--free:hover { transform: rotateX(-8deg) translateY(3px); }
.bp-card__well { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px;
    font-size: 18px; color: #fff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--rc) 45%, #2a2450), color-mix(in srgb, var(--rc) 14%, #120f26));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -3px 6px rgba(0, 0, 0, .35), 0 4px 10px -4px rgba(0, 0, 0, .6); }
.bp-card__well img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
/* две строки и хватит: иначе одна длинная награда растягивает всю ленту */
.bp-card__name { font-size: 11.5px; font-weight: 600; line-height: 1.22; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bp-card__rarity { margin-top: auto; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--rc); }
.bp-card__lock { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; display: grid; place-items: center;
    border-radius: 6px; font-size: 9.5px; color: var(--bp-gold-hi, #ffd98f);
    background: rgba(12, 10, 26, .75); border: 1px solid rgba(233, 179, 90, .35); }
.bp-card.is-locked .bp-card__well { filter: saturate(.55) brightness(.8); }
.bp-card.is-locked .bp-card__name { color: var(--muted); }
.bp-card.is-claimed { opacity: .55; filter: saturate(.6); }
.bp-card.is-claimed:hover { transform: none; }
.bp-card--premium { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 2px 0 -1px rgba(233, 179, 90, .35),
    0 6px 14px -10px rgba(0, 0, 0, .8); }

.bp-claim { margin: 0; }
.bp-claim button { width: 100%; height: 26px; border: 0; border-radius: 8px; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #0b1208;
    background: linear-gradient(180deg, #8fdb6f, var(--accent));
    box-shadow: 0 0 0 0 rgba(99, 176, 74, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
    animation: bp-claim 2s ease-out infinite; transition: filter .15s ease, transform .12s ease; }
.bpt-slot--premium .bp-claim button { color: #241600; background: linear-gradient(180deg, var(--bp-gold-hi), var(--bp-gold));
    animation-name: bp-claim-gold; }
.bp-claim button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bp-claim button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes bp-claim { 70% { box-shadow: 0 0 0 7px rgba(99, 176, 74, 0), inset 0 1px 0 rgba(255, 255, 255, .4); } }
@keyframes bp-claim-gold { 70% { box-shadow: 0 0 0 7px rgba(233, 179, 90, 0), inset 0 1px 0 rgba(255, 255, 255, .4); } }
.bp-done { height: 26px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 8px;
    font-size: 11.5px; font-weight: 700; color: #9be07f; background: rgba(99, 176, 74, .1); border: 1px solid rgba(99, 176, 74, .3); }

.bpt__ctrl { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.bpt__segs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(21, 18, 42, .8); border: 1px solid var(--line);
    overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.bpt__segs::-webkit-scrollbar { display: none; }
.bpt__seg { flex: none; min-height: 32px; padding: 0 12px; border: 0; border-radius: 9px; cursor: pointer; background: none;
    font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums;
    transition: background .2s ease, color .2s ease; }
.bpt__seg:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.bpt__seg.is-active { color: #fff; background: rgba(139, 92, 246, .28); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .55); }
.bpt__seg:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: -2px; }
.bpt__btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; min-height: 40px;
    padding: 0 12px; border-radius: 12px; cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 700; color: var(--text);
    background: rgba(21, 18, 42, .8); border: 1px solid var(--line);
    transition: border-color .15s ease, background .15s ease, opacity .15s ease; }
.bpt__btn:hover { border-color: var(--brand-light); background: rgba(139, 92, 246, .14); color: var(--text); }
.bpt__btn:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.bpt__btn[disabled] { opacity: .35; cursor: default; }
.bpt__btn--now { color: var(--brand-soft); border-color: rgba(139, 92, 246, .5); }

/* ---------------------------------------------------------------- задания */
.bpq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bp-gap); align-items: start; }
.bpq-col { --qc: var(--bp-gold); display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--bp-radius);
    background: linear-gradient(180deg, color-mix(in srgb, var(--qc) 8%, transparent), transparent 120px), rgba(21, 18, 42, .85);
    border: 1px solid var(--line); }
.bpq-col--weekly { --qc: #7aa2f7; }
.bpq-col__head { display: flex; align-items: center; gap: 12px; }
.bpq-col__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 17px;
    color: var(--qc); background: color-mix(in srgb, var(--qc) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--qc) 40%, transparent); }
.bpq-col__title { flex: 1; min-width: 0; }
.bpq-col__title h3 { margin: 0; font-size: 16px; }
.bpq-col__title p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.bpq-col__title time { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.bpq-col__meter { flex: none; position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    grid-auto-flow: column; align-content: center; justify-content: center; font-variant-numeric: tabular-nums;
    background: conic-gradient(var(--qc) calc(var(--p, 0) * 1%), rgba(255, 255, 255, .08) 0); }
.bpq-col__meter::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #17142e; }
.bpq-col__meter b, .bpq-col__meter small { position: relative; line-height: 1; }
.bpq-col__meter b { font-size: 16px; font-weight: 800; }
.bpq-col__meter small { font-size: 11px; color: var(--muted); }
.bpq-col__sum { display: flex; align-items: center; gap: 7px; margin: 0; padding: 8px 10px; border-radius: 10px;
    font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .08); }
.bpq-col__sum i { color: var(--qc); }
.bpq-col__sum b { color: var(--text); }
.bpq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bpq { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px;
    border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .06);
    transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.bpq:hover { border-color: color-mix(in srgb, var(--qc) 45%, transparent); background: rgba(255, 255, 255, .04); transform: translateX(2px); }
.bpq__mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; font-size: 13px;
    color: var(--qc); background: color-mix(in srgb, var(--qc) 12%, transparent); }
.bpq__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bpq__title { font-size: 13.5px; line-height: 1.25; }
.bpq__desc { font-size: 12px; line-height: 1.35; color: var(--muted); }
.bpq__bar { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bpq__bar i { display: block; height: 100%; width: min(100%, calc(var(--w, 0) * 1%)); border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--qc) 70%, var(--brand)), var(--qc)); transition: width .5s ease; }
.bpq__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bpq__xp { padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap;
    color: var(--qc); background: color-mix(in srgb, var(--qc) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--qc) 32%, transparent); }
.bpq__count { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bpq.is-done { --qc: #63b04a; }
.bpq.is-done .bpq__title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.bpq.is-done .bpq__mark { color: #0b1208; background: var(--accent); }
.bpq.is-done .bpq__count { color: #9be07f; font-weight: 700; }

.bp-note { display: flex; align-items: center; gap: 8px; margin: 10px 4px 0; font-size: 12.5px; color: var(--muted); }
.bp-note i { color: var(--brand-soft); }
.bp-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; text-align: center;
    border-radius: var(--bp-radius); border: 1px dashed var(--line); color: var(--muted); }
.bp-empty i { font-size: 28px; color: var(--brand-soft); margin-bottom: 4px; }
.bp-empty b { color: var(--text); font-size: 16px; }

/* ------------------------------------------------------------------- очки */
.bpp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--bp-gap); align-items: stretch; }
.bpp-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--bp-radius);
    background: rgba(21, 18, 42, .85); border: 1px solid var(--line); }
.bpp-card h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16px; }
.bpp-card h3 i { color: var(--brand-soft); }
.bpp-card--buy { border-color: rgba(139, 92, 246, .4);
    background: radial-gradient(100% 80% at 100% 0%, rgba(108, 63, 245, .18), transparent 60%), rgba(21, 18, 42, .85); }
.bpp-card--prestige h3 i { color: #f0abfc; }
.bpp-sub { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.bpp-sub b { color: var(--text); }
.bpp-how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bpp-how li { display: flex; align-items: center; gap: 12px; }
.bpp-how__ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
    color: var(--brand-soft); background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .28); }
.bpp-how b { display: block; font-size: 13.5px; }
.bpp-how span { font-size: 12.5px; color: var(--muted); }
.bpp-lock { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding: 10px 12px; border-radius: 10px;
    font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .1); }

/* Покупка очков боя-пропуска за рубли */
.bp-buy__form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.bp-buy__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bp-buy__quick [data-set] { min-height: 36px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 700; color: var(--text); background: rgba(255, 255, 255, .03);
    transition: border-color .15s ease, background .15s ease, color .15s ease; }
.bp-buy__quick [data-set]:hover { border-color: var(--brand-light); color: var(--brand-soft); }
.bp-buy__quick [data-set].is-active { border-color: var(--brand-light); color: #fff; background: rgba(139, 92, 246, .22); }
.bp-buy__row { display: flex; align-items: flex-end; gap: 8px; }
.bp-buy__sum { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.bp-buy__sum input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px;
    background: rgba(12, 10, 26, .6); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; }
.bp-buy__sum input:focus { outline: none; border-color: var(--brand-light); box-shadow: var(--ring); }
.bp-buy__hint { margin: 0; min-height: 18px; font-size: 12.5px; color: var(--brand-soft); font-weight: 600; }
.bp-buy__wallet { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }

/* Престиж: сброс прогресса сезона на макс. уровне с Premium */
.bp-prestige__form { margin: auto 0 0; }
.bp-prestige { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
    padding: 0 16px; border: 1px solid rgba(240, 171, 252, .45); border-radius: 12px; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 14px; color: #fbe7ff;
    background: linear-gradient(135deg, rgba(168, 85, 247, .5), rgba(240, 171, 252, .2)); }
.bp-prestige:hover { filter: brightness(1.1); border-color: #f0abfc; }

/* Архив сезонов: пустая «Ивенты» вместо одной строки-плашки */
.bp-archive { margin-top: 20px; }
.bp-archive__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; }
.bp-archive__title i { color: var(--brand-light); }
.bp-archive__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bp-archive__name { margin: 8px 0 4px; font-size: 17px; }
.bp-archive__dates { margin: 0; color: var(--muted); font-size: 12.5px; }
.bp-archive__stats { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.bp-archive__mine { display: flex; align-items: center; gap: 6px; margin: 10px 0 0;
    padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--brand-light); }
.bp-archive__more { margin-top: 14px; }

/* Модальное окно подтверждения в стиле сайта (вместо window.confirm) */
.ymc { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(6, 5, 16, .66); backdrop-filter: blur(3px); }
.ymc[hidden] { display: none; }
.ymc__card { width: 460px; max-width: 100%; background: var(--panel); border: 1px solid var(--line);
    border-top: 3px solid var(--brand-light); border-radius: 14px; padding: 22px;
    box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .7); }
.ymc__title { margin: 0 0 8px; font-size: 18px; color: var(--text); }
.ymc__text { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.ymc__actions { display: flex; justify-content: flex-end; gap: 10px; }
.ymc__ok { padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px;
    color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.ymc__ok:hover { filter: brightness(1.08); }
.ymc__cancel { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
    font-weight: 600; font-size: 14px; color: var(--text); background: transparent; }
.ymc__cancel:hover { border-color: var(--brand-light); color: var(--brand-light); }

/* -------------------------------------------------------------- адаптив */
@media (max-width: 980px) {
    .bph { grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; padding: 20px; }
    .bph__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .bph { grid-template-columns: 1fr; padding: 16px; }
    .bp3d { min-height: 0; max-width: 340px; width: 100%; margin: 0 auto; }
    .bp3d__card { --rx: 0deg; --ry: 0deg; }
    .bp3d__stage { height: 130px; }
    .bph__actions .bp-btn { flex: 1 1 auto; }
    .bpq-grid { grid-template-columns: 1fr; }
    .bpt { --slot-h: 150px; --node-w: 120px; }
    .bpt__axis { display: none; }
    /* на телефоне ленту листают пальцем: стрелки уходят, остаются участки и «текущий» */
    .bpt__ctrl .bpt__btn[data-bpt-step] { display: none; }
    .bpt__ctrl .bpt__btn--now { flex: 1 0 100%; }
    .bp-tabs__tab { flex: 1 1 auto; gap: 6px; padding: 0 10px; font-size: 13px; }
}
@media (max-width: 420px) {
    .bph-stat dd b { font-size: 20px; }
    .bp-legend__sep, .bp-legend__rar { display: none; }
    .bp-tabs__tab > i { display: none; }
}
/* на тач-экранах «Забрать» 44 px (19-mobile): слот растёт, чтобы кнопка не наезжала на ось */
@media (pointer: coarse) {
    .bpt { --slot-h: 170px; }
}
@media (prefers-reduced-motion: reduce) {
    .bp *, .bp *::before, .bp *::after { animation: none !important; transition-duration: .01ms !important; }
    .bp3d__card { transform: none; }
}
