/* ============================================================
   Проход по окнам (переработка окон, 2026-10-16): общие правки окон — «Мир», дар, событие, привал.
   Только переменные темы.
   ============================================================ */
/* «Мир»: вкладки группами — подпись группы и тонкий разделитель */
.card.worldcard .wtabs{ align-items:flex-end; gap:2px; }
.wtabs__g{ flex:0 0 auto; align-self:stretch; display:flex; align-items:flex-start; padding:2px 8px 0 12px; margin-left:6px; border-left:1px solid var(--hair); font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); writing-mode:horizontal-tb; }
.wtabs__g.first{ border-left:none; margin-left:0; padding-left:2px; }
/* город: здоровый герой — значок «цел» у имени, без пустой строки ран */
.cpb__ok{ display:inline-flex; align-items:center; gap:3px; margin-left:auto; font-size:11px; font-weight:400; color:var(--muted); } .cpb__ok .ic{ width:12px !important; height:12px !important; color:var(--muted); }
#cityPartyBox .cpb__hb > b{ display:flex; align-items:center; gap:4px; }
/* дар: деления выборов и что может дать песнь */
.gwho__n i{ display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--echo); margin-left:2px; }
.gwho__offer{ display:flex; flex-wrap:wrap; gap:4px; justify-content:center; margin-top:4px; } .gwho__offer .chp{ font-size:11.5px; padding:2px 7px 2px 5px; }
/* событие: имя помощника у строки помощи */
.hopebox.assist .asn{ font-size:12.5px; color:var(--ink); margin:0 2px 0 -2px; }
/* ── Каркас окна (переработка окон 2): один выход для всех окон — ui/winframe.js ── */
.wf-x{ position:sticky; top:0; float:right; z-index:6; width:32px; height:32px; margin:-14px -12px 2px 10px; padding:0; border:1px solid transparent; border-radius:50%;
  background:var(--bg); color:var(--muted); cursor:pointer; display:grid; place-items:center; transition:color var(--t-1) var(--ease-out), border-color var(--t-1) var(--ease-out), transform var(--t-2) var(--ease-pop); }
.wf-x:hover{ color:var(--ink); border-color:var(--hair-2); transform:rotate(90deg); }
.wf-x.wf-x--abs{ position:absolute; top:3px; right:3px; width:26px; height:26px; margin:0; float:none; }   /* окно-сетка: «×» в самом углу, мимо рамок панелей */
#modalCard{ position:relative; }
.wf-x__i{ position:relative; width:14px; height:14px; }
.wf-x__i::before, .wf-x__i::after{ content:""; position:absolute; left:50%; top:50%; width:16px; height:1.6px; margin:-.8px 0 0 -8px; background:currentColor; border-radius:1px; transform:rotate(45deg); }
.wf-x__i::after{ transform:rotate(-45deg); }
.wf-dup{ display:none !important; }
/* выход — тихая кнопка: чёрная заливка только у главного действия */
.opt.on.wf-quiet{ background:var(--bg); color:var(--ink); border-color:var(--hair-2); }
.opt.on.wf-quiet:hover{ border-color:var(--ink); background:var(--bg-soft); }
.opt.wf-quiet{ justify-content:center; }
/* «Назад» — стрелка влево, тихо */
.wf-back--ar::before{ content:"←"; margin-right:6px; color:var(--muted); }
/* пустая полка в сетке — одна строка во всю ширину, а не столбик по слову */
.ck__grid > .lz__none, .tiles > .lz__none{ grid-column:1 / -1; text-align:center; padding:28px 12px; }
/* ── Три размера окна (переработка окон 3): размер ставит ui/winframe.js по одной таблице — data-win на #modalCard.
   s — вопрос, событие, короткий выбор · m — выбор с картинками, лист, досье · l — рабочее окно в колонки · full — своё (обмен, «Мир», дом гильдии).
   data-fix — окно меняет содержимое на месте: высота постоянная, лишнее прокручивается внутри. */
:root{ --win-s:min(600px, calc(100vw - 32px)); --win-m:min(800px, calc(100vw - 32px)); --win-l:min(1100px, calc(100vw - 24px)); --win-h:min(760px, calc(100dvh - 32px)); }
#modalCard[data-win="s"]{ width:var(--win-s) !important; max-width:none !important; }
#modalCard[data-win="m"]{ width:var(--win-m) !important; max-width:none !important; }
#modalCard[data-win="l"]{ width:var(--win-l) !important; max-width:none !important; }
#modalCard[data-fix]{ height:var(--win-h) !important; max-height:var(--win-h) !important; }
/* бой: автобой и отступление — рядом тихими кнопками; предметы — по содержимому, без пустой колонны; у длинного списка умений — затухание внизу */
.dk__more2{ display:flex; gap:4px; } .dk__more2 .dk__b{ flex:1; justify-content:center; font-size:12px; color:var(--ink-soft); }
@media (min-width:1200px){ .battle.show .dk__it{ align-self:start; max-height:calc(100% - var(--sideH, 180px)); overflow-y:auto; scrollbar-width:thin; gap:10px; } }   /* только боковая раскладка: на узком «100% − правый столбец» обнулял высоту */
/* переработка окон 3: «без хода» и «высшее» — правым столбцом под предметами (слева остаются удар, манёвр, умения) */
.dk__itm{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.dk__aux{ display:flex; flex-direction:column; gap:8px; } .dk__itm + .dk__aux{ border-top:1px solid var(--hair); padding-top:8px; }
.dk__aux .tg__row{ flex-wrap:wrap; }
/* доска голов: что просит дом — две строки на карточке заказа, целиком в подсказке */
.hnx--board .offer .hk__ask span{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* лист героя: описание черты — две строки, целиком в подсказке */
.sheetcard .hs__t small{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* лист героя: вещи — вход в «Снаряжение» на этом герое */
.hs__gear.go{ cursor:pointer; border-radius:10px; transition:background var(--t-1) var(--ease-out); } .hs__gear.go:hover{ background:var(--bg-soft); }
.hs__gear.go::after{ content:"→"; align-self:center; margin-left:6px; color:var(--muted); }
@media (max-width:1199px){ .dk__it:has(.dk__aux){ display:flex !important; } .dk__it .dk__itm{ display:none; } .dk__itm + .dk__aux{ border-top:none; padding-top:0; } .dk__aux{ flex-direction:row; gap:6px; } }
@media (min-width:901px) and (max-width:1199px){ .dk:has(.dk__aux), .dk:has(.dk__aux):has(.dk__it.none){ grid-template-columns:200px minmax(0,1fr) fit-content(280px) 200px; } .dk__it:has(.dk__aux){ overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; } .dk__aux .tg__row{ flex-wrap:nowrap; } }   /* «без хода» и «высшее» — своим столбцом перед «Конец хода» */
.battle.show .dk__m{ -webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image:linear-gradient(to bottom, #000 calc(100% - 22px), transparent); padding-bottom:22px; }
/* дом гильдии: длинный список дел — видно, что дальше есть ещё (затухание внизу прокрутки) */
.gw__main{ -webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 26px), transparent); mask-image:linear-gradient(to bottom, #000 calc(100% - 26px), transparent); padding-bottom:26px; }
/* ── Шапка окна (переработка окон 3): у всех семейств одна — подпись мелкими прописными, заголовок тонкий, как в обычном окне ──
   было: обычные окна 28/300, досуг и мастерская 24/600, Ловчие 21/600 — окно, сменяя окно, меняло голос */
#modalCard .lz__hd h2, #modalCard > .hk--win > .hk__hd:first-child .hk__ttl b, #modalCard .hnx__hd h2, #modalCard .ct__head h2{ font-weight:300; font-size:28px; line-height:1.1; letter-spacing:0; }
#modalCard > .hk--win > .hk__hd:first-child .hk__ttl small, #modalCard .lz__hd .kicker{ font-size:11px; font-weight:500; letter-spacing:.3em; text-transform:uppercase; color:var(--muted); }
#modalCard > .hk--win > .hk__hd:first-child .hk__ttl{ gap:6px; }
@media (max-width:640px){ #modalCard .lz__hd h2, #modalCard > .hk--win > .hk__hd:first-child .hk__ttl b, #modalCard .hnx__hd h2, #modalCard .ct__head h2{ font-size:23px; } }
/* ── Событие (переработка окон 3): строка исхода читается — крупнее значки, проигрыш отдельной плашкой, кто проверяет — лицом ── */
.evcard .outc{ gap:6px; margin-top:6px; }
.evcard .outc__g{ gap:5px; padding:3px 8px; }
.evcard .eff{ font-size:12px; gap:2px; } .evcard .eff .ic{ width:17px; height:17px; }
.evcard .outc__g .outc__l{ border-left:none; margin-left:4px; padding:2px 7px; border-radius:8px; background:color-mix(in srgb, var(--danger) 10%, transparent); }
.evcard .pwmk .pwmk__e{ width:18px; height:18px; } .evcard .pwmk i{ font-size:11px; font-weight:700; }
.odds .who.face{ background:var(--bg); border:1px solid var(--hair-2); width:22px; height:22px; } .odds .who.face .ic{ width:16px; height:16px; color:var(--ink); }
.opt.on .odds .who.face{ background:#fff; } .odds .who.face.coop{ border-color:#3a7bd5; background:var(--bg); }
.evcard .odds .pbar{ width:64px; }
/* сумка алхимика из «Снаряжения»: тот же размер, что у окна обмена — вкладка не меняет окно */
.modal .card.alcard.alview{ width:min(1340px, 96vw); max-width:none; height:min(840px, 94vh); max-height:none; }
@media (max-width:1100px){ .modal .card.alcard.alview{ height:auto; max-height:calc(100dvh - 24px); } }
/* дом гильдии: высота одна на все вкладки (Казна, Трофейная, Силки были ниже — окно прыгало) */
.modal > .card.glcard{ height:calc(100vh - 24px); }
/* свои экраны (торг, торги, счётная книга, Тихий круг): заголовок — тонкий, как у всех окон */
.tgx h1, .tgx h2, .auc h1, .auc h2, .lgx h1, .hrx h1{ font-weight:300 !important; letter-spacing:0; }
.rbg__n{ font-weight:400; color:var(--muted); }
.modal .card.alcard.alview{ display:flex; flex-direction:column; } .alview > .alc{ flex:1; min-height:0; display:flex; flex-direction:column; }
.alview .alc__view{ flex:1; min-height:0; } .alview .alc > .opts{ margin-top:auto; }
@media (min-width:861px){ .alview .alc__view{ height:auto; } }
/* где растёт трава: местность и стороны света — пилюлями (стилей не было: «РавнинаСеверВосток» слитно) */
.atl__hab{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:8px; font-size:13px; } .atl__hab .ic{ width:18px; height:18px; }
.atl__side{ padding:1px 8px; border:1px solid var(--hair-2); border-radius:10px; font-size:12px; color:var(--ink-soft); background:var(--bg); }

/* «Школы вместо классов» в листе героя: печати с глубиной, очко — стрелкой на печати */
.sheetcard .hs__sch{ grid-template-columns:repeat(3, minmax(0,1fr)); margin:2px 0 6px; }
.sheetcard .hs__sch .sch1 > .ic:last-child{ width:14px; height:14px; }
.sheetcard .hs__sch .sch1.up{ border-color:var(--gold, #b8902f); }
.sheetcard .hs__signs{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }
.sheetcard .hs__abs .hs__abs-sch{ width:14px; height:14px; opacity:.6; flex:none; }
.sheetcard .hs__sch .sch1{ padding:6px 8px; }
.sheetcard .hs__sch .sch1 b{ font-weight:500; font-size:13px; }

/* ===== «Созвездия» (ui/stars-ui.js, 2026-10-17): круг 15 школ слева, школа крупно справа, внизу — пятёрка в бой, высшие, рост ===== */
.modal .card.skycard{ width:min(1340px, 96vw); max-width:none; height:min(840px, 94vh); display:grid; grid-template-rows:auto minmax(0,1fr) auto auto; gap:12px; padding:20px 24px 16px; overflow:hidden; }
.sky-hd{ display:flex; align-items:center; gap:18px; min-width:0; }
.sky-hd__t .kicker{ margin:0 0 2px; } .sky-hd__t h2{ margin:0; font-weight:300; font-size:28px; }
.sky-tabs{ display:flex; gap:6px; flex-wrap:wrap; }
.sky-who{ display:flex; align-items:center; gap:8px; border:1px solid var(--hair); border-radius:12px; padding:5px 10px 5px 6px; background:var(--bg); color:var(--ink); font:inherit; cursor:pointer; position:relative; }
.sky-who > .ic{ width:28px; height:28px; } .sky-who span{ display:flex; flex-direction:column; line-height:1.15; text-align:left; } .sky-who b{ font-weight:500; font-size:13px; } .sky-who small{ font-size:11px; color:var(--muted); }
.sky-who.on{ border-color:var(--ink); } .sky-who:hover{ border-color:var(--hair-2); }
.sky-pts{ font-style:normal; min-width:18px; height:18px; border-radius:9px; background:#b8902f; color:#fff; font-size:11px; font-weight:600; display:grid; place-items:center; padding:0 5px; }
.sky-me{ margin-left:auto; display:flex; align-items:center; gap:14px; }
.sky-lv{ display:flex; flex-direction:column; align-items:center; line-height:1; } .sky-lv small{ font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); } .sky-lv b{ font-size:26px; font-weight:300; }
.sky-xpb{ position:relative; display:inline-block; width:180px; height:8px; border-radius:4px; background:var(--hair); overflow:hidden; }
.sky-xpb i{ position:absolute; left:0; top:0; bottom:0; background:var(--ink); border-radius:4px; transition:width var(--t-5, .6s) var(--ease-out, ease); }
.sky-xpb em{ position:absolute; left:0; top:0; bottom:0; background:var(--danger, #b0413e); border-radius:4px; }
.sky-p{ display:flex; align-items:center; gap:5px; border:1px solid var(--hair); border-radius:12px; padding:6px 12px; color:var(--muted); }
.sky-p b{ font-size:20px; font-weight:500; } .sky-p small{ font-size:11px; } .sky-p .ic{ width:16px; height:16px; }
.sky-p.on{ border-color:#b8902f; color:#8a6a10; background:#fbf6e8; }
.sky-body{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr); gap:18px; min-height:0; }
/* круг */
.sky-wheel{ position:relative; height:100%; max-width:100%; aspect-ratio:1; justify-self:center; min-height:0; }
.sky-wheel svg{ display:block; width:100%; height:100%; overflow:visible; }
.sky-wr{ fill:none; stroke:var(--hair); stroke-width:.4; stroke-dasharray:1 2.2; }
.sky-wd{ fill:transparent; cursor:pointer; transition:fill var(--t-2, .15s); }
.sky-wd:hover{ fill:color-mix(in srgb, var(--c) 7%, transparent); } .sky-wd.mine{ fill:color-mix(in srgb, var(--c) 6%, transparent); }
.sky-wd.on{ fill:color-mix(in srgb, var(--c) 15%, transparent); stroke:color-mix(in srgb, var(--c) 55%, transparent); stroke-width:.5; }
.sky-wl{ stroke:var(--hair-2); stroke-width:.45; } .sky-wl.on{ stroke:var(--c); stroke-width:.9; }
.sky-wdot{ fill:var(--bg); stroke:#bdb8ae; stroke-width:.45; cursor:pointer; }
.sky-wdot.have{ fill:var(--c); stroke:none; filter:url(#skyGlow); }
.sky-wdot.can{ fill:#fff; stroke:var(--c); stroke-width:.9; animation:skyPulse 2.2s ease-in-out infinite; }
.sky-wdot.far{ fill:#e6e2da; stroke:none; }
.sky-wdot.fresh, .sky-st.fresh svg{ animation:skyPop .8s var(--ease-pop, cubic-bezier(.3,1.6,.5,1)) both; transform-box:fill-box; transform-origin:center; }
.sky-wi{ position:absolute; transform:translate(-50%, -50%); width:36px; height:36px; border-radius:50%; border:1px solid var(--hair); background:var(--bg); color:var(--muted); display:grid; place-items:center; cursor:pointer; padding:0; }
.sky-wi .ic{ width:19px; height:19px; } .sky-wi:hover{ border-color:var(--c); color:var(--c); }
.sky-wi.mine{ border-color:var(--c); color:var(--c); } .sky-wi.on{ background:var(--c); border-color:var(--c); color:#fff; box-shadow:0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.sky-wi b{ position:absolute; right:-5px; bottom:-4px; min-width:15px; height:15px; border-radius:8px; background:var(--bg); border:1px solid currentColor; font-size:10px; line-height:13px; color:var(--ink); }
.sky-wi.on b{ color:var(--c); }
.sky-wi.can::after{ content:""; position:absolute; top:-2px; right:-2px; width:9px; height:9px; border-radius:50%; background:#b8902f; border:2px solid var(--bg); }
.sky-mid{ position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); width:18%; aspect-ratio:1; border-radius:50%; border:1px solid var(--hair); background:var(--bg); display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; pointer-events:none; }
.sky-mid b{ font-size:26px; font-weight:300; } .sky-mid small{ font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin-top:3px; }
/* школа крупно */
.sky-right{ display:grid; grid-template-rows:minmax(0, 1fr) 150px; gap:10px; min-height:0; }
.sky-sch{ display:grid; grid-template-rows:auto minmax(0, 1fr); gap:6px; border:1px solid var(--hair); border-radius:14px; padding:12px 14px 6px; background:radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--c) 7%, var(--bg)) 0%, var(--bg) 72%); min-height:0; }
.sky-sh{ display:flex; align-items:center; gap:10px; } .sky-sh > .ic{ width:30px; height:30px; color:var(--c); }
.sky-sh h3{ margin:0; font-size:19px; font-weight:500; display:flex; align-items:center; gap:10px; } .sky-sh small{ font-size:12.5px; color:var(--muted); font-style:italic; }
.sky-sh > .chp{ margin-left:auto; }
.sky-dp i{ width:7px; height:7px; } .sky-dp i.on{ background:var(--c); border-color:var(--c); }
.sky-const{ position:relative; min-height:0; }
.sky-const > svg{ position:absolute; inset:0; width:100%; height:100%; }
.sky-l{ stroke:var(--hair-2); stroke-width:1.2; vector-effect:non-scaling-stroke; } .sky-l.on{ stroke:var(--c); stroke-width:2.4; }
.sky-rl{ position:absolute; left:0; transform:translateY(-50%); display:flex; flex-direction:column; gap:2px; color:var(--muted); }
.sky-rl b{ font-size:11px; letter-spacing:.2em; font-weight:600; } .sky-rl.ok b{ color:var(--c); }
.sky-rl small{ display:flex; gap:6px; font-size:11px; } .sky-rl small span{ display:flex; align-items:center; gap:2px; } .sky-rl small .ic{ width:11px; height:11px; } .sky-rl small .no{ color:var(--danger, #b0413e); }
.sky-st{ position:absolute; transform:translate(-50%, -21px); width:124px; display:flex; flex-direction:column; align-items:center; gap:3px; border:0; background:none; padding:0; font:inherit; color:var(--ink-soft, #5f5f64); cursor:pointer; }
.sky-st svg{ width:42px; height:42px; overflow:visible; }
.sky-st path{ fill:var(--bg); stroke:#c4bfb5; stroke-width:1.1; transition:fill var(--t-2, .15s); }
.sky-st.top svg{ width:50px; height:50px; margin-top:-4px; }
.sky-st__i{ position:absolute; top:21px; left:50%; transform:translate(-50%, -50%); display:grid; place-items:center; color:var(--muted); pointer-events:none; } .sky-st__i .ic{ width:15px; height:15px; }
.sky-st small{ font-size:11.5px; line-height:1.2; text-align:center; max-width:100%; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.sky-st.have path{ fill:var(--c); stroke:var(--c); filter:drop-shadow(0 0 5px color-mix(in srgb, var(--c) 70%, transparent)); } .sky-st.have .sky-st__i{ color:#fff; } .sky-st.have small{ color:var(--ink); font-weight:600; }
.sky-st.can path{ fill:#fff; stroke:var(--c); stroke-width:1.8; animation:skyPulse 2.2s ease-in-out infinite; } .sky-st.can .sky-st__i{ color:var(--c); } .sky-st.can small{ color:var(--ink); }
.sky-st.far{ opacity:.5; } .sky-st.far small{ color:var(--muted); }
.sky-st:hover path{ stroke:var(--c); } .sky-st:hover small{ color:var(--c); }
.sky-st.sel::before{ content:""; position:absolute; top:21px; left:50%; width:54px; height:54px; transform:translate(-50%, -50%); border-radius:50%; border:1.5px solid var(--c); opacity:.75; }
.sky-st.top.sel::before{ width:62px; height:62px; }
@keyframes skyPulse{ 0%,100%{ opacity:.65; } 50%{ opacity:1; } }
@keyframes skyPop{ 0%{ transform:scale(.4); } 60%{ transform:scale(1.35); } 100%{ transform:scale(1); } }
/* карточка звезды */
.sky-dw{ min-height:0; }
.sky-det{ height:100%; box-sizing:border-box; display:grid; grid-template-columns:58px minmax(0, 1fr) auto; gap:14px; align-items:center; border:1px solid var(--hair); border-radius:14px; padding:12px 16px; }
.sky-det.empty{ display:flex; color:var(--muted); font-size:13px; } .sky-det.empty .ic{ width:26px; height:26px; opacity:.5; }
.sky-det__i{ width:56px; height:56px; border-radius:50%; display:grid; place-items:center; background:color-mix(in srgb, var(--c) 12%, var(--bg)); color:var(--c); } .sky-det__i .ic{ width:28px; height:28px; }
.sky-det__t{ min-width:0; } .sky-det__t .kicker{ margin:0 0 3px; } .sky-det__t h4{ margin:0; font-size:17px; font-weight:500; display:flex; align-items:center; gap:8px; }
.sky-det__t p{ margin:4px 0 0; font-size:13px; line-height:1.4; color:var(--ink-soft); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.sky-chips{ margin-top:4px; }
.sky-det__f{ display:flex; flex-direction:column; gap:6px; align-items:flex-end; }
.sky-take{ display:flex; align-items:center; gap:8px; } .sky-take b{ font-size:12px; background:rgba(255,255,255,.22); border-radius:8px; padding:1px 6px; }
.sky-why{ display:flex; align-items:center; gap:6px; color:var(--muted); font-size:12.5px; max-width:200px; } .sky-why .ic{ width:15px; height:15px; flex:none; }
/* низ */
.sky-strip{ display:grid; grid-template-columns:minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.1fr); gap:12px; }
.sky-strip section{ border:1px solid var(--hair); border-radius:14px; padding:9px 12px 10px; min-width:0; }
.sky-strip .kicker{ margin:0 0 6px; display:flex; align-items:center; gap:5px; } .sky-strip .kicker b{ color:var(--ink); } .sky-strip .kicker small{ letter-spacing:0; text-transform:none; color:var(--muted); margin-left:auto; }
.sky-slots{ display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:6px; }
.sky-slot{ height:40px; display:flex; align-items:center; gap:6px; padding:0 8px; border:1px solid var(--hair-2); border-radius:10px; background:var(--bg); color:var(--ink); font:inherit; font-size:12.5px; cursor:pointer; min-width:0; }
.sky-slot span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .sky-slot .ic{ width:16px; height:16px; flex:none; }
.sky-slot:hover{ border-color:var(--danger, #b0413e); } .sky-slot.none{ justify-content:center; border-style:dashed; color:var(--muted); cursor:default; } .sky-slot.none:hover{ border-color:var(--hair-2); }
.sky-spare{ display:flex; gap:5px; overflow-x:auto; margin-top:6px; padding-bottom:2px; }
.sky-sp, .sky-top{ display:flex; align-items:center; gap:5px; flex:none; border:1px solid var(--hair); border-radius:9px; padding:4px 8px; background:var(--bg); color:var(--ink-soft); font:inherit; font-size:12px; cursor:pointer; }
.sky-sp .ic, .sky-top .ic{ width:14px; height:14px; } .sky-sp:hover:not([disabled]), .sky-top:hover{ border-color:var(--ink); color:var(--ink); } .sky-sp[disabled]{ opacity:.45; cursor:default; }
.sky-topl{ display:flex; flex-wrap:wrap; gap:6px; } .sky-top{ padding:6px 9px; } .sky-top.on{ border-color:#b8902f; background:#fbf6e8; color:var(--ink); }
.sky-buys{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.sky-buy{ width:42px; height:42px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; border:1px solid var(--hair-2); border-radius:10px; background:var(--bg); color:var(--ink); font:inherit; cursor:pointer; padding:0; }
.sky-buy .ic{ width:16px; height:16px; } .sky-buy b{ font-size:11px; font-weight:600; } .sky-buy:hover:not([disabled]){ border-color:#b8902f; background:#fbf6e8; } .sky-buy[disabled]{ opacity:.38; cursor:default; }
.sky-sep{ width:1px; align-self:stretch; background:var(--hair); margin:0 2px; }
.skycard .sky-x{ margin:0; }
@media (max-width:980px){
  .modal .card.skycard{ height:auto; max-height:94vh; overflow-y:auto; grid-template-rows:auto; }
  .sky-hd{ flex-wrap:wrap; } .sky-me{ margin-left:0; }
  .sky-body{ grid-template-columns:1fr; } .sky-wheel{ height:auto; width:min(100%, 440px); }
  .sky-right{ grid-template-rows:440px auto; } .sky-strip{ grid-template-columns:1fr; }
}
/* «Созвездия», правка 1: тише круг, плотнее школа, низ по содержимому */
.sky-wl{ stroke-width:.35; opacity:.7; }
.sky-wdot.entry{ fill:var(--bg); stroke:color-mix(in srgb, var(--c) 55%, #bdb8ae); stroke-width:.5; animation:none; }
.sky-st.entry path{ fill:var(--bg); stroke:color-mix(in srgb, var(--c) 60%, #c4bfb5); stroke-width:1.3; animation:none; } .sky-st.entry .sky-st__i{ color:var(--c); }
.sky-mid .ic{ width:58%; height:58%; }
.sky-st{ transform:translate(-50%, -17px); width:118px; gap:2px; }
.sky-st svg{ width:34px; height:34px; } .sky-st.top svg{ width:42px; height:42px; margin-top:-4px; }
.sky-st__i{ top:17px; } .sky-st__i .ic{ width:13px; height:13px; }
.sky-st.sel::before{ top:17px; width:46px; height:46px; } .sky-st.top.sel::before{ width:54px; height:54px; }
.sky-st small{ background:color-mix(in srgb, var(--bg) 85%, transparent); border-radius:4px; padding:0 3px; }
.sky-const{ margin:4px 0 14px 34px; }
.sky-rl{ left:-34px; }
.sky-strip{ display:flex; gap:12px; } .sky-hand{ flex:1.7 1 0; } .sky-tops{ flex:1 1 0; } .sky-grow{ flex:0 0 auto; }
.sky-slot{ height:44px; font-size:12px; line-height:1.15; } .sky-slot span{ white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.skycard .sky-x{ display:flex; justify-content:flex-end; } .skycard .sky-x .opt{ width:auto; min-width:180px; flex:none; }
.sky-buys{ flex-wrap:nowrap; }
.card.skycard > .opts{ flex-direction:row; justify-content:flex-end; margin:0; } .card.skycard > .opts .opt{ width:auto; min-width:180px; justify-content:center; }
/* бой: «Смена» — что снять (умения обведены), затем ряд запаса */
.dk__tiles.swapping .tg:not(.tg-swap):not(.tg-moves) .bt:not(.bt-item){ outline:1.5px dashed var(--danger, #b0413e); outline-offset:2px; }
.dk__tiles.swapin .tg:not(.tg-swap):not(.tg-moves){ opacity:.45; }
.tg-swap .tg__row{ min-height:44px; align-items:center; } .tg-swap small{ color:#8a6a10; }
.tg-swap .bt{ border-color:#b8902f; }
.bswp__q{ display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--muted); padding:0 6px; } .bswp__q .ic{ width:15px; height:15px; }
.dk__tiles.swapin .tg:not(.tg-swap):not(.tg-moves){ opacity:1; } .dk__tiles.swapin .tg:not(.tg-swap):not(.tg-moves) .bt:not(.swapout){ opacity:.4; }
.dk__tiles.swapin .bt.swapout{ outline:1.5px solid var(--danger, #b0413e); outline-offset:2px; }
/* «Созвездия»: цвета через тему (тёмная — графит) */
.sky-wdot{ stroke:var(--hair-2); } .sky-wdot.far{ fill:var(--hair-2); opacity:.75; }
.sky-wdot.can, .sky-st.can path{ fill:color-mix(in srgb, var(--c) 14%, var(--bg)); }
.sky-st path{ stroke:var(--hair-2); }
.sky-p.on, .sky-top.on, .sky-buy:hover:not([disabled]){ background:color-mix(in srgb, #b8902f 12%, var(--bg)); }
.sky-p.on{ color:color-mix(in srgb, #b8902f 75%, var(--ink)); }
.sky-top.on{ color:var(--ink); }
/* «Созвездия», правка 2: итог звезды, замена одним щелчком, тише круг, причина у «Роста» */
.sky-gain{ display:flex; flex-direction:column; gap:5px; align-items:flex-end; animation:itemIn var(--t-3, .3s) var(--ease-out, ease) both; }
.sky-g{ display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--ink); white-space:nowrap; } .sky-g .ic{ width:14px; height:14px; } .sky-g b{ font-weight:600; }
.sky-g i{ font-style:normal; color:var(--muted); } .sky-g .schd i{ width:7px; height:7px; } .sky-g .schd i.on{ background:var(--c); border-color:var(--c); }
.sky-g.gold{ color:color-mix(in srgb, #b8902f 80%, var(--ink)); font-weight:500; }
.sky-wi.fresh{ animation:skyPop .8s var(--ease-pop, cubic-bezier(.3,1.6,.5,1)) both; }
.sky-wi b.ent{ border-color:#b8902f; color:#8a6a10; opacity:0; transition:opacity var(--t-2, .15s); } .sky-wi:hover b.ent, .sky-wi.on b.ent{ opacity:1; }
.sky-wdot.entry{ opacity:.45; } .sky-wdot.far{ opacity:.4; }
.sky-st path.b{ fill:none !important; stroke:var(--c); stroke-width:.9; opacity:.55; animation:none; }
.sky-st.far path.b{ stroke:var(--hair-2); }
.sky-spare{ flex-wrap:wrap; overflow:visible; }
.sky-sp{ padding:5px 9px; font-size:12px; } .sky-sp.on{ border-color:#b8902f; background:color-mix(in srgb, #b8902f 12%, var(--bg)); color:var(--ink); }
.sky-slot.repl{ border-color:#b8902f; border-style:dashed; } .sky-slot.repl:hover{ border-style:solid; background:color-mix(in srgb, #b8902f 10%, var(--bg)); }
.sky-slot .sky-rp{ width:13px; height:13px; color:#b8902f; }
.sky-buy{ height:46px; gap:0; } .sky-q{ display:flex; gap:2px; margin-top:1px; } .sky-q i{ width:4px; height:4px; border-radius:50%; background:var(--hair-2); } .sky-q i.on{ background:#b8902f; }
.sky-buy.done{ opacity:.55; } .sky-buy.done::after{ content:""; position:absolute; }
.dk__tiles.swapping .tg:not(.tg-swap):not(.tg-moves) .bt:not(.bt-item){ outline-color:#b8902f; }
.dk__tiles.swapin .bt.swapout{ outline-color:#b8902f; }
#mates .mate__pts{ top:-8px; right:-10px; }
/* «Древо 2»: три ветви школы столбцами, имя ветви сверху */
.sky-bn{ position:absolute; top:0; transform:translate(-50%, -2px); display:flex; align-items:baseline; gap:5px; font-size:12px; color:var(--muted); letter-spacing:.06em; white-space:nowrap; }
.sky-bn b{ font-weight:600; text-transform:uppercase; letter-spacing:.16em; font-size:11px; } .sky-bn small{ font-size:11px; }
.sky-bn.on b{ color:var(--c); }
.sky-const{ margin-top:18px; }
.sky-st{ width:100px; } .sky-st small{ font-size:11px; }
.sky-st.top small{ max-width:90px; }
.sky-strip{ height:128px; } .sky-strip section{ overflow:hidden; }
.sky-spare{ flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; }
.sheetcard .hs__sky{ margin-left:8px; cursor:pointer; font:inherit; font-size:11.5px; letter-spacing:0; text-transform:none; border:1px solid var(--hair); background:var(--bg); }
/* правка 3: подписи звёзд в одну строку (полное имя — в подсказке), кнопка древа в шапке — значком */
.sky-st small{ display:block; -webkit-line-clamp:unset; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; max-width:100px; }
.stx-hud{ display:inline-flex; align-items:center; gap:3px; height:26px; padding:0 7px; border-color:var(--hair); color:var(--muted); }
.stx-hud .ic{ width:14px; height:14px; } .stx-hud.owe{ border-color:#b8902f; color:#8a6a10; background:color-mix(in srgb, #b8902f 10%, var(--bg)); }
.stx-hud b{ font-size:12px; }
.chp.xpc.up{ animation:chipIn var(--t-3, .3s) var(--ease-pop, ease) both; }
/* «Созвездия»: значок ветви вместо подписи (имя — в подсказке) */
.sky-bn.wi{ align-items:center; transform:translate(-50%, -8px); }
.sky-bn.wi .sky-bi{ width:22px; height:22px; opacity:.55; } .sky-bn.wi.on .sky-bi{ opacity:1; }
.sky-bn.wi.on{ color:var(--c); }
/* «Созвездия» правка 4: подписи только у живых звёзд, одно условие кольца, глубина на круге, «дальше», рост группами */
.sky-st small{ max-width:150px; }
.sky-rq{ display:flex; align-items:center; gap:3px; margin-top:2px; padding:1px 6px; border-radius:8px; border:1px solid color-mix(in srgb, var(--danger, #b0413e) 45%, transparent); color:var(--danger, #b0413e); font-size:11px; font-weight:600; white-space:nowrap; }
.sky-rq .ic{ width:11px; height:11px; }
.sky-body{ grid-template-columns:minmax(0, .82fr) minmax(0, 1.3fr); }
.sky-wdp{ position:absolute; left:50%; top:calc(100% + 3px); transform:translateX(-50%); display:flex; gap:2px; pointer-events:none; }
.sky-wdp i{ width:4px; height:4px; border-radius:50%; background:var(--hair-2); } .sky-wdp i.on{ background:var(--c); }
.sky-det{ grid-template-columns:58px minmax(0, 1fr) auto; grid-template-rows:auto auto; row-gap:6px; align-content:center; }
.sky-det__i{ grid-row:1 / span 2; }
.sky-nx{ grid-column:2 / span 2; display:flex; align-items:center; gap:6px; min-width:0; overflow:hidden; }
.sky-nx__k{ color:var(--muted); display:flex; } .sky-nx__k .ic{ width:13px; height:13px; }
.sky-nb{ display:flex; align-items:center; gap:4px; flex:none; border:1px solid var(--hair); border-radius:9px; padding:3px 8px; background:var(--bg); color:var(--ink-soft); font:inherit; font-size:12px; cursor:pointer; }
.sky-nb .ic{ width:12px; height:12px; } .sky-nb:hover{ border-color:var(--c); color:var(--c); }
.sky-nb.have{ color:var(--c); border-color:color-mix(in srgb, var(--c) 45%, transparent); } .sky-nb.can{ border-color:var(--c); color:var(--ink); } .sky-nb.far{ opacity:.6; }
.sky-hand{ flex:2.1 1 0; } .sky-tops{ flex:.8 1 0; }
.sky-slots{ gap:5px; } .sky-slot{ padding:0 6px; gap:5px; font-size:11.5px; } .sky-slot .ic{ width:15px; height:15px; }
.sky-bg{ display:flex; flex-direction:column; gap:3px; align-items:center; } .sky-bg > div{ display:flex; gap:6px; } .sky-bg > small{ font-size:10.5px; color:var(--muted); letter-spacing:.04em; }
.sky-strip .kicker small .ic{ width:11px; height:11px; vertical-align:-1px; }
/* «Выбросить» и прочие кнопки .act.ghost: старое правило поля боя `.ghost{ pointer-events:none }` (game.css, силуэт хода) глушило их щелчки */
button.ghost{ pointer-events:auto; }
/* «Торговые ряды»: кнопки «купить/продать» — по содержимому (с зачёркнутой ценой не влезали в 92/112px и налезали друг на друга) */
.trcard .trow{ grid-template-columns:minmax(0, 1fr) 128px 128px 136px; }
.trcard .trow .act{ white-space:nowrap; justify-content:center; }
