/* прогресс */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:14px}
.tile{background:var(--surface2);border-radius:var(--radius);padding:12px 14px}
.tile .big{font-size:24px;font-weight:800}
.tile .lbl{font-size:12.5px;color:var(--muted)}
.lvlcard{background:linear-gradient(135deg,#23324F,#1A2540);border-radius:var(--radius);padding:14px;margin-bottom:14px}
.lvlcard .t{font-weight:750;font-size:17px}
.lvlcard .d{font-size:13.5px;color:var(--muted);margin:2px 0 10px}
.meter{height:10px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;position:relative}
.meter i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,var(--gold),var(--gold2));border-radius:99px}
.meter .mark{position:absolute;top:-3px;bottom:-3px;width:2px;background:#fff}
.mrow{display:flex;justify-content:space-between;font-size:12.5px;color:var(--muted);margin-top:6px}
.steps{display:flex;gap:6px;margin-top:12px}
.steps span{flex:1;height:6px;border-radius:99px;background:rgba(255,255,255,.1)}
.steps span.on{background:var(--gold)}
h4{margin:16px 0 8px;font-size:15px}
.chart{background:var(--surface2);border-radius:var(--radius);padding:10px}
.chart svg{width:100%;max-width:520px;height:auto;display:block;margin:0 auto}
.mist{display:flex;flex-direction:column;gap:8px}
.mist .m{background:var(--surface2);border-radius:12px;padding:10px 12px;display:flex;gap:10px;align-items:flex-start}
.mist .n{min-width:34px;height:28px;border-radius:8px;background:rgba(240,82,82,.16);color:#FF9A9A;font-weight:750;display:grid;place-items:center;font-size:14px}
.mist .tx b{display:block;font-size:14.5px}
.mist .tx span{font-size:13.5px;color:var(--muted)}
.rank{display:flex;flex-direction:column;gap:8px}
.rank .r{display:flex;align-items:center;gap:10px;background:var(--surface2);border-radius:12px;padding:8px 10px;--cw:24px;flex-wrap:wrap}
.rank .r .no{width:26px;color:var(--gold2);font-weight:800}
.rank .r .nm{min-width:120px;font-weight:650;font-size:14.5px}
.rank .r .cs{display:flex;gap:3px}
.intro p{color:#D5DDE8;font-size:15px;margin:0 0 10px}
.intro ul{margin:0 0 16px;padding-left:20px;color:#D5DDE8;font-size:15px}
.intro li{margin-bottom:6px}
.lvlup{text-align:center}
.lvlup .lvl-badge{width:72px;height:72px;font-size:30px;margin:6px auto 12px}


/* вкладки и статистика */
.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:var(--surface2);border-radius:12px;padding:4px;margin-bottom:14px}
.tabs button{min-height:40px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:650;font-size:14.5px}
.tabs button[aria-selected="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 0 rgba(255,255,255,.06),0 2px 8px rgba(0,0,0,.3)}
.note{font-size:13px;color:var(--muted);margin:8px 0 0;line-height:1.5}
.pfoot{margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.pfoot span{font-size:12.5px;color:var(--dim)}
h5{margin:14px 0 6px;font-size:13.5px;color:var(--muted);font-weight:700}
.ctitle{font-size:12.5px;color:var(--muted);font-weight:650;margin:2px 4px 2px}
.legend{display:flex;gap:14px;font-size:12px;color:var(--muted);margin:4px 4px 0}
.legend i{display:inline-block;width:10px;height:10px;border-radius:99px;margin-right:5px;vertical-align:middle}
table.st{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px}
table.st th{position:sticky;top:-18px;z-index:2;background:var(--surface);text-align:right;font-size:12px;color:var(--muted);font-weight:700;padding:8px 6px;border-bottom:1px solid var(--line);cursor:pointer;user-select:none;white-space:nowrap}
table.st th:first-child,table.st td:first-child{text-align:left}
table.st th[aria-sort="ascending"],table.st th[aria-sort="descending"]{color:var(--gold2)}
table.st td{padding:7px 6px;border-bottom:1px solid var(--line);text-align:right;vertical-align:middle}
table.st td.pos{color:var(--good)}table.st td.neg{color:var(--bad)}
table.hist td.what{text-align:left;font-size:12.5px;color:#C8D2E0;line-height:1.35}
table.hist th:last-child{text-align:left}
table.hist tr.main{cursor:pointer}
table.hist tr.main:hover td{background:rgba(255,255,255,.03)}
table.hist .hc{display:inline-flex;gap:2px;--cw:20px}
table.hist tr.det{display:none}
table.hist tbody.open tr.det{display:table-row}
table.hist tbody.open tr.main td{border-bottom:0;background:rgba(255,255,255,.04)}
table.hist tr.det td{text-align:left;background:rgba(255,255,255,.04);font-size:13px;color:#D5DDE8}
table.hist tr.det ul{margin:4px 0 2px;padding-left:4px;list-style:none;display:flex;flex-direction:column;gap:5px}
table.hist tr.det .mini{color:var(--muted);font-size:12.5px;margin:2px 0 4px}
.exr{color:#FBC56A}
.what .rs{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.hb{display:inline-block;margin:1px 4px 1px 0;padding:1px 7px;border-radius:8px;font-size:11.5px;font-weight:650}
.hb.ok{background:rgba(34,197,94,.16);color:#6EE7A0}.hb.no{background:rgba(240,82,82,.14);color:#FF9A9A}
.sw{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.swc{background:var(--surface2);border-radius:var(--radius);padding:10px 12px;border-left:4px solid var(--good)}
.swc.bad{border-left-color:var(--bad)}
.swc h5{margin:0 0 4px;color:var(--text)}
.swc ul{margin:0;padding-left:18px;font-size:13.5px;color:#D5DDE8}
.img{background:var(--surface2);border-radius:var(--radius);padding:10px 12px}
table.kv{width:100%;font-size:14px;border-collapse:collapse}
table.kv td{padding:5px 0;border-bottom:1px solid var(--line)}
table.kv td:last-child{text-align:right;font-weight:700}
.exl{margin:0;padding-left:18px;font-size:13.5px;color:#D5DDE8}
.exp{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.exp span{font-size:12.5px;color:var(--muted);flex:1;min-width:180px}
.luck.know{border-left:4px solid var(--warn)}
@media (max-width:560px){table.st{font-size:12.5px}table.st th,table.st td{padding:6px 4px}table.hist .hc{--cw:17px}}

.evwarn{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:80;background:#3B1212;border:1px solid var(--bad);color:#FFD6D6;border-radius:12px;padding:10px 14px;font-size:14px;line-height:1.4}
@media (orientation:landscape){.center{top:42%}}
.pot .mine{color:#C6D2E1;font-weight:600}
/* карта стиля: отрезок раздач */
.styrange{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin-top:8px}
.styrange label{display:flex;flex-direction:column;gap:2px;font-size:12.5px;color:var(--muted)}
.styrange label b{color:var(--text)}
.styrange input{accent-color:var(--gold);width:100%;height:28px}
.stypre{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}
.stypre button{min-height:34px;padding:0 10px;border-radius:10px;border:1px solid var(--line);background:var(--surface2);color:var(--muted);font-size:12.5px}
