

/* ============================================================
   «Иней» — общий слой страниц сайта части 1 (только сайт; frost.css не трогаем).
   Шапка, подвал, знак, эмодзи, крошки — в _src/site_shell.css (общий для всех страниц сайта).
   Здесь: сцена с видом карты, заголовок страницы, стеклянные капсулы и сегменты, твёрдые карточки.
   Без шрифтов Valve: буквы тиров — Geologica 800.
   ============================================================ */

/* ---------- сцена: вид карты (арт Valve), тонирован к navy заранее (gen_bg.py) ---------- */
.scene{position:absolute;left:0;right:0;top:0;height:var(--scene-h,720px);overflow:hidden;z-index:0;pointer-events:none;background:var(--bg)}
.scene img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:var(--scene-pos,50% 50%)}
.scene .fade{position:absolute;left:0;right:0;top:0;bottom:0;
  background:linear-gradient(180deg,rgba(13,20,33,.22) 0%,rgba(13,20,33,.0) 26%,rgba(13,20,33,.30) 62%,rgba(13,20,33,.82) 86%,#0d1421 100%),
             linear-gradient(90deg,rgba(13,20,33,.72) 0%,rgba(13,20,33,.38) 36%,rgba(13,20,33,0) 70%)}
.page{position:relative;z-index:2}

/* ---------- заголовок страницы над сценой ---------- */
.p-head{padding:132px 0 0;position:relative}
.p-head h1{font-size:56px;line-height:1.02;font-weight:700;letter-spacing:-.035em;margin-top:18px;text-shadow:0 2px 24px rgba(13,20,33,.6)}
.p-head .lead{font:400 18px/1.55 var(--f-ui);color:rgba(231,235,242,.86);margin-top:16px;max-width:660px;text-shadow:0 1px 12px rgba(13,20,33,.8)}
.p-head .lead .svit{vertical-align:2px}

/* стеклянные капсулы управления (ранг, патч, сброс) */
.cap-g{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px 0 12px;border-radius:22px;font:600 14.5px/1 var(--f-ui);color:var(--text);white-space:nowrap}
.cap-g .i{width:14px;height:14px;color:var(--label)}
.cap-g img{width:34px;height:34px;margin-left:-6px}
.cap-g .live{background:var(--meta);box-shadow:0 0 0 3px rgba(74,158,237,.25)}

/* сегменты: стеклянный трек + «линза» (у линзы своего blur нет) */
.seg-g{position:relative;display:flex;height:48px;border-radius:24px;padding:4px}
.seg-g a{display:flex;align-items:center;justify-content:center;gap:7px;padding:0 18px;border-radius:20px;font:600 14.5px/1 var(--f-ui);color:var(--label);white-space:nowrap}
.seg-g a.on{color:var(--text)}
.seg-g .dot{width:8px;height:8px;border-radius:4px;background:var(--meta)}
.seg-g .i{width:14px;height:14px;color:var(--amber)}

/* роли — один сегмент (как в аппе) */
.roles-s{display:flex;gap:2px;padding:4px;border-radius:18px;background:rgba(16,24,39,.82);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.roles-s a{flex:1;min-width:0;height:44px;padding:0 12px;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:7px;font:600 13.5px/1 var(--f-ui);color:var(--label);white-space:nowrap}
.roles-s .role,.roles-s .i{width:17px;height:17px}
.roles-s a.on{background:var(--text);color:#0d1421}

/* ---------- твёрдые карточки контента ---------- */
.card{background:var(--sheet);border-radius:26px;box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 40px 80px -40px rgba(0,0,0,.9)}
.card-h{display:flex;align-items:center;gap:12px}
.card-h .fe{width:40px;height:40px;margin:-4px 0}
.card-h h2,.card-h h3{font-size:22px;line-height:1.15;letter-spacing:-.015em}
.card-h .ctx{margin-left:auto;display:inline-flex;align-items:center;gap:7px;font:500 13.5px/1.2 var(--f-ui);color:var(--text2);text-align:right}
.card-h .ctx i{width:8px;height:8px;border-radius:4px;background:var(--meta);flex:none}
.cap{font:400 13.5px/1.45 var(--f-ui);color:var(--text2)}

/* CTA «Открыть в Telegram» — карточка с эмодзи */
.cta-card{position:relative;padding:24px 24px 24px;overflow:hidden}
.cta-card .fe{position:absolute;right:14px;top:14px;width:72px;height:72px}
.cta-card h3{font-size:22px;line-height:1.2;letter-spacing:-.015em;max-width:200px}
.cta-card p{font:400 15px/1.5 var(--f-ui);color:var(--text2);margin-top:10px;max-width:300px}
.cta-card .btn{margin-top:18px}

/* ---------- адаптив заголовка ---------- */
@media (max-width:1080px){
  .p-head{padding-top:176px}
}
@media (max-width:760px){
  .p-head{padding-top:150px}
  .p-head h1{font-size:38px;padding-right:62px}
  .p-head .lead{font-size:16px}
}

/* ---------- список героев: как экран «Герои» в аппе (поиск, ранг медалями, позиция, винрейт, ★ Свит) ---------- */
.site{--scene-h:640px;--scene-pos:50% 40%}

/* панель фильтров — стекло над сценой (управление) */
.toolbar{margin-top:30px;border-radius:26px;padding:10px;display:flex;flex-direction:column;gap:10px}
.tb-row{display:flex;align-items:center;gap:10px}
.search{flex:1;min-width:0;display:flex;align-items:center;gap:10px;height:48px;padding:0 16px;border-radius:16px;background:rgba(9,14,24,.62);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);font:500 15.5px/1 var(--f-ui);color:var(--text2);white-space:nowrap;overflow:hidden}
.search .i{width:18px;height:18px;color:var(--text);flex:none}
.medals{display:flex;gap:2px;padding:4px;border-radius:18px;background:rgba(8,13,23,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.medals a{width:52px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex:none}
.medals a img{width:38px;height:38px;-webkit-filter:grayscale(.35);filter:grayscale(.35);opacity:.8}
.medals a.on img{-webkit-filter:none;filter:none;opacity:1}
.medals a span{font:700 12px/1 var(--f-ui);letter-spacing:.04em;text-transform:uppercase;color:var(--label)}
.tb-lbl{font:600 12px/1 var(--f-ui);letter-spacing:.06em;text-transform:uppercase;color:var(--text2);padding:0 6px 0 8px;white-space:nowrap}
.mode{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;font:500 14px/1.35 var(--f-ui);color:var(--text2);margin:14px 6px 0;text-shadow:0 1px 10px rgba(13,20,33,.8)}
.mode b{color:var(--meta);font-weight:600}
.mode .i{width:16px;height:16px;color:var(--meta);flex:none}

/* сетка карточек: сплэш целиком 16:9, место по винрейту, тир, позиции 1–5 полоской, винрейт */
.list-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:40px 4px 16px}
.list-h h2{font-size:24px;letter-spacing:-.02em}
.list-h h2 span{font:500 16px/1 var(--f-ui);color:var(--text2);margin-left:8px;letter-spacing:0}
.list-h p{font:400 14px/1.4 var(--f-ui);color:var(--text2)}
.grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.hc{display:flex;flex-direction:column;background:var(--sheet);border-radius:20px;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 24px 50px -30px rgba(0,0,0,.9)}
.hc-img{position:relative;display:block;padding-top:56.25%;background:var(--cell)}
.hc-img img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover}
.hc-img:after{content:'';position:absolute;left:0;right:0;bottom:0;height:50%;background:linear-gradient(180deg,rgba(19,28,44,0),rgba(19,28,44,.94))}
.hc-img .n{position:absolute;left:10px;top:10px;z-index:1;min-width:26px;height:26px;padding:0 7px;border-radius:9px;background:rgba(13,20,33,.78);font:600 13px/26px var(--f-ui);color:var(--text);text-align:center}
.hc-img .tl{position:absolute;right:12px;bottom:6px;z-index:1;font:800 22px/1 var(--f-display);letter-spacing:-.03em;text-shadow:0 2px 8px rgba(0,0,0,.6)}
.hc-b{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;padding:10px 14px 0;min-height:30px}
.hc-b b{font:600 16px/1.2 var(--f-ui)}
.hc-r{display:flex;align-items:center;gap:6px;padding:5px 14px 0;font:400 13px/1.2 var(--f-ui);color:var(--text2);white-space:nowrap;overflow:hidden}
.hc-r .role{width:14px;height:14px;flex:none}
.hc-f{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px 14px;margin-top:auto}
.ps{display:flex;align-items:center;gap:3px;min-width:0}
.ps i{width:17px;height:17px;border-radius:5px;display:flex;align-items:center;justify-content:center;font:700 10.5px/1 var(--f-ui);font-style:normal;color:transparent;position:relative;flex:none}
.ps i:after{content:'';position:absolute;left:50%;top:50%;width:3px;height:3px;margin:-1.5px 0 0 -1.5px;border-radius:2px;background:var(--border-hi)}
.ps i.on{background:rgba(34,211,238,.13);box-shadow:inset 0 0 0 1px rgba(34,211,238,.42);color:var(--cyan)}
.ps i.on:after{display:none}
.hc .wr{font:600 17px/1 var(--f-display);color:var(--meta);letter-spacing:-.01em;white-space:nowrap}
.more{display:flex;align-items:center;justify-content:center;gap:8px;height:54px;margin-top:16px;border-radius:18px;background:var(--well);font:600 15.5px/1 var(--f-ui);color:var(--cta)}
.more .i{width:16px;height:16px}
.l-foot{display:flex;justify-content:space-between;gap:16px;margin-top:12px}

/* ниже: гайды Свита и Telegram */
.duo2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:56px}
.gd{padding:24px 26px}
.gd p{font:400 15.5px/1.55 var(--f-ui);color:var(--text2);margin-top:12px;max-width:460px}
.gd .chan{display:flex;align-items:center;gap:14px;margin-top:18px;padding:14px;border-radius:18px;background:var(--cell)}
.gd .chan .mark-plate{width:48px;height:48px;border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 0 0 1.5px rgba(251,191,36,.55)}
.gd .chan .mark-plate .svit-mark{width:34px;height:34px}
.gd .chan b{display:block;font:600 15.5px/1.25 var(--f-ui)}
.gd .chan small{display:block;font:400 13px/1.35 var(--f-ui);color:var(--text2);margin-top:3px}
.gd .chan > .i{width:16px;height:16px;color:var(--text2);margin-left:auto;flex:none}
.duo2 .cta-card h3{max-width:300px}

/* ---------- адаптив ---------- */
@media (max-width:1100px){
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .tb-row.r1{flex-wrap:wrap}
  .medals{-webkit-order:3;order:3;width:100%;justify-content:space-between}
  .medals a{-webkit-flex:1 1 0;flex:1 1 0;width:auto}
}
@media (max-width:900px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .duo2{grid-template-columns:minmax(0,1fr);max-width:680px}
}
@media (max-width:760px){
  .site{--scene-h:560px}
  .toolbar{margin-top:22px;border-radius:22px;padding:8px}
  .tb-lbl{display:none}
  .search{height:46px;font-size:15px}
  .medals a{height:40px;border-radius:12px}
  .medals a img{width:30px;height:30px}
  .medals a span{font-size:10px}
  .roles-s{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .roles-s::-webkit-scrollbar{display:none}
  .roles-s a{flex:none;padding:0 12px}
  .mode{font-size:13px}
  .list-h{flex-direction:column;gap:6px;margin-top:28px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hc{border-radius:16px}
  .hc-b{padding:8px 10px 0}
  .hc-b b{font-size:14.5px}
  .hc-b .svit{padding:0 6px 0 5px}
  .hc-f{padding:8px 10px 11px}
  .ps i{width:14px;height:14px;font-size:9px;border-radius:4px}
  .hc-r{padding:4px 10px 0;font-size:12.5px}
  .hc .wr{font-size:16px}
  .hc-img .tl{font-size:19px}
  .l-foot{flex-direction:column;gap:4px}
  .duo2{margin-top:36px;gap:16px}
  .gd{padding:20px 18px}
}

/* ---------- 21.10: дополнения по аудиту — у выбранной медали подпись ранга ---------- */
.medals a.on{width:auto;padding:0 12px 0 8px;gap:6px}
.medals a.on b{font:600 13.5px/1 var(--f-ui);color:var(--text);white-space:nowrap}
@media (max-width:760px){.medals a.on b{display:none}}
/* ---------- 21.10, проход «чего не хватает» (ничего не убрано) ---------- */
.gd .go-n{display:inline-flex;align-items:center;gap:6px;margin-top:16px;font:600 14.5px/1 var(--f-ui);color:var(--cta)}
.gd .go-n .i{width:14px;height:14px}
.states{margin-top:56px}
.st-cap{display:flex;justify-content:space-between;gap:16px;padding:16px 4px;border-top:1px solid var(--hair);font:500 14px/1.4 var(--f-ui);color:var(--text2)}
.st-cap b{color:var(--text);font-weight:600}
.st-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:8px;align-items:start}
.st-card{padding:20px}
.st-k{display:flex;align-items:center;gap:10px;font:700 12px/1 var(--f-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--text2)}
.st-k .fe{width:30px;height:30px}
.st-card h3{font:600 21px/1.25 var(--f-display);letter-spacing:-.01em;margin-top:12px}
.st-q{display:flex;align-items:center;gap:10px;height:48px;margin-top:14px;padding:0 14px;border-radius:15px;background:var(--well);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);font:500 15px/1 var(--f-ui);color:var(--text)}
.st-q .i{width:17px;height:17px;color:var(--text2)}
.st-q .x{margin-left:auto;color:var(--muted)}
.nores{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:14px;padding:20px 16px;border-radius:18px;background:var(--cell)}
.nores .fe{width:56px;height:56px}
.nores b{font:600 18px/1.25 var(--f-display);margin-top:10px}
.nores small{font:400 14px/1.5 var(--f-ui);color:var(--text2);margin-top:6px}
.nores a{display:inline-flex;align-items:center;height:42px;padding:0 16px;margin-top:14px;border-radius:13px;background:rgba(231,235,242,.08);font:600 14.5px/1 var(--f-ui);color:var(--text)}
.busy{display:flex;align-items:center;gap:10px;margin-top:14px;font:500 15px/1.3 var(--f-ui);color:var(--text)}
.busy .fe{width:26px;height:26px}
.sk-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.sk-g i{display:block;border-radius:14px;background:var(--cell);padding-top:118%;position:relative}
.sk-g i:after{content:'';position:absolute;left:10px;right:30%;bottom:12px;height:10px;border-radius:5px;background:rgba(231,235,242,.08)}
.stale-c{display:inline-flex;align-items:center;gap:8px;height:38px;margin-top:14px;padding:0 14px;border-radius:19px;background:rgba(251,191,36,.1);box-shadow:inset 0 0 0 1px rgba(251,191,36,.28);font:600 14px/1 var(--f-ui);color:var(--amber)}
.stale-c i{width:8px;height:8px;border-radius:4px;background:var(--amber)}
.stale-n{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:12px 14px;border-radius:14px;background:rgba(251,191,36,.07);box-shadow:inset 0 0 0 1px rgba(251,191,36,.18);font:400 14px/1.5 var(--f-ui);color:var(--text2)}
.stale-n .fe{width:24px;height:24px;flex:none}
.stale-n b{color:var(--text);font-weight:600}
@media (max-width:1100px){.st-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:760px){
  .st-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .st-cap{flex-direction:column;gap:4px}
  .st-card{padding:18px 16px}
}

/* style="" из макета → классы (inline-стиль сильнее любого правила — отсюда !important) */
.u-065cedfc{-webkit-mask-image:url(/app/assets/roles/pos2.png) !important;mask-image:url(/app/assets/roles/pos2.png) !important}
.u-06c51e36{-webkit-mask-image:url(/app/assets/roles/pos4.png) !important;mask-image:url(/app/assets/roles/pos4.png) !important}
.u-3e4e1d08{color:var(--t-s) !important}
.u-6765dc71{-webkit-mask-image:url(/app/assets/roles/pos1.png) !important;mask-image:url(/app/assets/roles/pos1.png) !important}
.u-68c77de5{-webkit-mask-image:url(/app/assets/roles/pos3.png) !important;mask-image:url(/app/assets/roles/pos3.png) !important}
.u-6ef2745f{-webkit-mask-image:url(/app/assets/roles/pos5.png) !important;mask-image:url(/app/assets/roles/pos5.png) !important}
.u-83725d2c{flex:1 !important}
.u-a738e48b{color:var(--t-a) !important}
.u-aadd71ae{color:var(--t-b) !important}
.u-e71deecc{color:var(--t-sp) !important}

/* ---------- 04.11: сортировка «Сильнее / Чаще встречаются», номера позиций крупнее, переезд карточек ---------- */
#h-grid{position:relative}
.ps i{font-size:11px}
.list-h{flex-wrap:wrap;align-items:center}
.list-h h2 #h-sub{font:500 16px/1 var(--f-ui);color:var(--text2);margin-left:8px;letter-spacing:0}
.list-h h2 #h-sort-t{font:inherit;color:inherit;margin:0}
.list-h #h-hint{flex-basis:100%;order:3}
@media (max-width:760px){
  .list-h{flex-direction:row;align-items:center}
  .pg-sort{width:100%}
  .pg-sort a{flex:1}
  .ps{gap:2px}
  .ps i{width:16px;height:16px;font-size:11px}
  .hc .wr{font-size:15px}
  .hc-f{flex-wrap:wrap;row-gap:6px}
}
