/* Личный кабинет и «Зал славы»: вкладки Обзор, Рейтинг, Наследие, Этапы (концепт — docs/account-concept). Токены — tokens.css. */
.acc-stack { display: grid; gap: 18px; }
.acc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.acc-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acc-eyebrow { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 6px; }
.acc-up { color: #34b88c; font-weight: 700; }
.acc-down { color: #ff8b7a; font-weight: 700; }

/* шапка кабинета: звание и рейтинг */
.acc-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; position: relative; overflow: hidden;
    background: linear-gradient(110deg, rgba(168, 51, 31, .28), rgba(21, 18, 26, .95) 55%), var(--panel); }
.acc-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 179, 87, .14), transparent 70%); pointer-events: none; }
.acc-hero h2 { font-family: var(--f-display); font-size: 2.1rem; margin: 0; }
.acc-emblem { width: 96px; height: 96px; display: grid; place-items: center; }
.acc-emblem svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.acc-big { font: 700 3.6rem/1 var(--f-display); color: var(--gold-l); }
.acc-center { text-align: center; }
.acc-bar { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.acc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-d), var(--gold-l)); border-radius: 99px; }

/* плитки с числами */
.acc-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.acc-nums div { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.acc-nums b { display: block; font: 700 1.6rem var(--f-display); color: var(--gold-l); }
.acc-nums span { font-size: .78rem; color: var(--muted); }

/* этапы тестов */
.acc-stage { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.acc-stage .num { font-size: .78rem; letter-spacing: .16em; color: var(--muted); font-weight: 700; }
.acc-stage h3 { font-size: 1.5rem; margin: 6px 0; }
.acc-stage.now { border-color: var(--gold-d); background: linear-gradient(180deg, rgba(226, 179, 87, .1), var(--panel)); box-shadow: 0 0 0 1px rgba(226, 179, 87, .15); }
.acc-stage.later { border-style: dashed; opacity: .85; }
.acc-stage ul { margin: 10px 0 0; padding-left: 18px; font-size: .9rem; color: var(--ink-2); }
.acc-stage .foot { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* звания */
.acc-ladder { display: grid; gap: 6px; margin-top: 10px; }
.acc-rung { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; }
.acc-rung.cur { border-color: var(--gold-d); background: rgba(226, 179, 87, .09); }
.acc-rung.past { opacity: .6; }
.acc-rung > span { color: var(--muted); font-size: .82rem; }

/* график рейтинга */
.acc-chart { width: 100%; height: 170px; display: block; }

/* титулы и способы заработать */
.acc-awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.acc-award { text-align: center; padding: 16px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .2); }
.acc-award.got { border-color: var(--gold-d); background: linear-gradient(180deg, rgba(226, 179, 87, .12), transparent); }
.acc-award svg { width: 44px; height: 44px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.acc-award b { display: block; margin-top: 6px; font: 600 1.15rem var(--f-display); }
.acc-award span { font-size: .8rem; color: var(--muted); }
.acc-ways { display: grid; }
.acc-way { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.acc-way:last-child { border: 0; }
.acc-way b { color: var(--gold-l); white-space: nowrap; }
.acc-cap { background: rgba(224, 96, 62, .08); border: 1px solid rgba(224, 96, 62, .3); border-radius: 10px; padding: 10px 12px; font-size: .86rem; color: var(--ink-2); margin-top: 12px; }

/* заглушки «скоро» */
.acc-preview { position: relative; border-radius: var(--r-card); overflow: hidden; }
.acc-preview .blur { filter: blur(2.5px) saturate(.7); opacity: .55; pointer-events: none; user-select: none; }
.acc-preview .lid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, rgba(12, 9, 14, .25), rgba(12, 9, 14, .8)); padding: 20px; }
.acc-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.acc-slot { border: 1px dashed var(--line-2); border-radius: 12px; padding: 22px 12px; text-align: center; color: var(--muted); }
.acc-slot b { display: block; font: 600 1.2rem var(--f-display); color: var(--ink-2); }

/* зал славы */
.hall-table td.rank { white-space: nowrap; }
.hall-hero { background: #0b090c center / cover no-repeat; padding: 72px 0 56px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.hall-hero h1 { margin: 0 0 6px; }
.hall-nick { font-weight: 700; }
.hall-nick.framed { padding: 1px 8px; border: 1px solid #6b6f78; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); }
.hall-worn { color: var(--gold-d); margin-top: 2px; }
.hall-titles img { vertical-align: middle; margin-right: 2px; }
.acc-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.acc-badges img { width: 52px; height: 52px; }
.acc-badges img.off { opacity: .18; filter: grayscale(1); }
.bal-row { display: grid; grid-template-columns: 110px 1fr 52px; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.bal-row > .small { grid-column: 1 / -1; }
.bal-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bal-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-d), var(--gold)); }
.fix-list { display: grid; gap: 12px; }
.fix-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.fix-item .ver { font: 700 1rem var(--f-display); color: var(--gold-l); white-space: nowrap; }
.hall-medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold-d); font: 700 .9rem var(--f-display); color: var(--gold-l); }

@media (max-width: 900px) {
    .acc-hero { grid-template-columns: auto 1fr; }
    .acc-hero .acc-score { grid-column: 1 / -1; }
    .acc-grid2, .acc-grid3, .acc-slots { grid-template-columns: 1fr; }
}

/* лента наград сезонного пропуска */
.acc-pass { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; margin-top: 10px; }
.acc-tile { position: relative; aspect-ratio: 4 / 5; }
.acc-tile.ms, .acc-tile.last { aspect-ratio: 4 / 5; }
.acc-tile .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.acc-tile .icon { position: absolute; left: 17%; top: 12%; width: 66%; height: auto; opacity: .45; }
.acc-tile.got .icon, .acc-tile.next .icon { opacity: 1; }
.acc-tile:not(.got):not(.next) .frame { opacity: .85; }
.acc-tile.next { filter: drop-shadow(0 0 6px rgba(244, 217, 153, .55)); }
.acc-tile .num { position: absolute; left: 0; right: 0; bottom: 5%; text-align: center; font: 600 .8rem var(--f-display); color: var(--muted); }
.acc-tile.got .num, .acc-tile.next .num { color: var(--gold-l); }
@media (max-width: 900px) { .acc-pass { grid-template-columns: repeat(5, 1fr); } }

.acc-note { background: rgba(226, 179, 87, .08); border: 1px solid var(--gold-d); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--ink-2); }
.acc-details { display: grid; gap: 14px; margin-top: 10px; }
.acc-detail { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.acc-detail p { margin: 2px 0 0; color: var(--ink-2); }
/* иконка по центру окна рамки (окна замерены по прозрачным пикселям) */
.acc-tile .icon { width: 70%; left: 15%; top: 18%; }
.acc-tile.got .icon { left: 14.5%; }
.acc-tile.ms .icon { width: 62%; left: 18.5%; top: 28.7%; }
.acc-tile.last .icon { width: 51%; left: 23.5%; top: 27%; }
.acc-style { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.2); }
.acc-style .acc-eyebrow { flex-basis: 100%; margin: 0; }
.acc-style select { min-width: 220px; }

/* Страница «Партнёрам и медиа» */
.perks { display: grid; gap: 16px; margin-top: 6px; }
.perk b { display: block; color: var(--gold-l); font-size: 1rem; }
.perk p { margin: 3px 0 0; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }

/* ===== Личный кабинет v2 (концепт docs/account-concept-v2): меню слева, шаги пути, мягкие карточки ===== */
.cab { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 36px; padding-bottom: 90px; }
.cab-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.cab-me { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.cab-avatar { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; font: 700 1.6rem var(--f-display); color: #1c1408; background: linear-gradient(135deg, #f6d68f, #dca050); }
.cab-me b { display: block; line-height: 1.2; }
.cab-me span { font-size: .8rem; color: var(--muted); }
.cab-group { display: grid; gap: 2px; }
.cab-group h6 { margin: 0 0 6px 12px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cab-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.cab-item svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.cab-item:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.cab-item.on { background: rgba(226, 179, 87, .12); color: var(--gold-l); box-shadow: inset 2px 0 0 var(--gold); }
.cab-item .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.cab-main { min-width: 0; display: grid; gap: 22px; align-content: start; }
.cab-main > .card, .cab-main .acc-stack, .cab-main .acc-grid2, .cab-main .acc-grid3 { min-width: 0; }
.cab-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.cab-top h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.05; margin: 0; }
.cab-top .acc-eyebrow { margin-bottom: 8px; }
.cab-bar { display: none; }
.cab .card { border-radius: 16px; }

/* шаги пути */
.cab-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 8px; }
.cab-step { position: relative; padding: 38px 6px 0; text-align: center; }
.cab-step::before { content: ''; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--line-2); }
.cab-step:first-child::before { left: 50%; }
.cab-step:last-child::before { right: 50%; }
.cab-step i { position: absolute; top: 0; left: 50%; translate: -50% 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem var(--f-body, inherit); font-style: normal; background: var(--panel-2); border: 2px solid var(--line-2); color: var(--muted); z-index: 1; }
.cab-step b { display: block; font-size: .88rem; }
.cab-step span { font-size: .78rem; color: var(--muted); }
.cab-step.done i { background: #5fc79a; border-color: #5fc79a; color: #0d1f17; }
.cab-step.done::before { background: #5fc79a; }
.cab-step.cur i { border-color: var(--gold); color: var(--gold-l); box-shadow: 0 0 0 5px rgba(226, 179, 87, .15); }
.cab-step.cur b { color: var(--gold-l); }

/* списки, метки, ссылка-приглашение */
.cab-rows { display: grid; }
.cab-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cab-row:last-child { border: 0; }
.cab-tag { font-size: .74rem; padding: 3px 10px; border-radius: 99px; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--muted); }
.cab-tag.win { background: rgba(95, 199, 154, .14); color: #5fc79a; }
.cab-tag.loss { background: rgba(224, 106, 90, .14); color: #e06a5a; }
.cab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cab-chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .85rem; font-weight: 600; background: var(--panel-2); }
.cab-chip.gold { border-color: var(--gold-d); color: var(--gold-l); background: rgba(226, 179, 87, .08); }
.cab-copy { display: flex; gap: 8px; margin: 6px 0 12px; }
.cab-copy input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #0f0c12; color: var(--ink); font: .85rem ui-monospace, Consolas, monospace; }
.cab-pips { display: flex; gap: 8px; margin: 12px 0 4px; }
.cab-pips i { flex: 1; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.cab-pips i.f { background: linear-gradient(90deg, var(--gold-d), var(--gold)); }

@media (max-width: 900px) {
    .cab { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 22px; padding-bottom: 110px; }
    .cab-side { position: static; }
    .cab-side .cab-group, .cab-side > .cab-item { display: none; }
    .cab-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(21, 18, 26, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line-2); }
    .cab-bar a { display: grid; justify-items: center; gap: 2px; padding: 6px 10px; font-size: .68rem; font-weight: 600; color: var(--muted); }
    .cab-bar a.on { color: var(--gold-l); }
    .cab-bar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .cab-steps { grid-template-columns: 1fr; gap: 14px; }
    .cab-step { padding: 0 0 0 44px; text-align: left; }
    .cab-step::before { display: none; }
    .cab-step i { left: 0; translate: 0; }
    .acc-grid2, .acc-grid3 { grid-template-columns: 1fr; }
    .acc-hero { grid-template-columns: auto 1fr; }
    .acc-hero .acc-score { grid-column: 1 / -1; }
}
