/* =====================================================
   Главная и общие блоки: разделы, витрина, остальные игры,
   модули, доска Game Planner, обо мне, контакты, схемы.
   Токены — в styles.css
   ===================================================== */

.path-text .seg { display: flex; gap: 6px; align-items: center; }
a.row { color: inherit; text-decoration: none; }

.section-head h2 { margin: 0; max-width: 24ch; font: 700 clamp(34px, 3.8vw, 52px)/1.06 var(--sans); letter-spacing: -.025em; }
.section-head p { margin: 18px 0 0; max-width: 64ch; font-size: 18px; line-height: 1.55; color: var(--dim); }
.block { max-width: 1240px; margin: 150px auto 0; padding: 0 32px; }
.result { margin: 32px 0 0; max-width: 70ch; padding-left: 14px; border-left: 2px solid var(--num); font-size: 17px; line-height: 1.55; }
.result a, .case-role a, .chapter-text a, .journey a { color: var(--fn); text-decoration-color: rgba(121,195,238,.4); text-underline-offset: 3px; }
.result a:hover, .case-role a:hover, .chapter-text a:hover, .journey a:hover { text-decoration-color: var(--fn); }
.ln { padding-right: 24px; }
.chest-demo .ln { padding-right: 96px; }
.code { font-size: 13.5px; }
.caption { max-width: 1100px; }
.inspect-rows .dim { color: var(--faint); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ============ Статус, бренды, что ищу ============ */
.avail { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 7px 14px 7px 12px; border-radius: 99px; border: 1px solid #2f4a2a; background: rgba(159,219,131,.07); font-size: 14.5px; color: var(--text); }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--str); box-shadow: 0 0 0 0 rgba(159,219,131,.5); animation: availPulse 2.2s ease-out infinite; }
@keyframes availPulse { 70% { box-shadow: 0 0 0 7px rgba(159,219,131,0); } 100% { box-shadow: 0 0 0 0 rgba(159,219,131,0); } }
.brands { max-width: 1240px; margin: 8px auto 0; padding: 18px 32px; display: grid; gap: 10px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.brands-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.brands-k { font: 400 13px var(--mono); color: var(--faint); margin-right: 4px; }
.brands a { font: 600 17px/1.3 var(--sans); color: var(--text); text-decoration: none; transition: color .2s; }
.brands-row + .brands-row a { font-size: 15px; font-weight: 500; color: var(--dim); }
.brands a:hover { color: var(--fn); }
.seek { margin: 28px 0 0; max-width: 640px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 36px; }
.seek dt { font: 400 12px/1.4 var(--mono); color: var(--faint); }
.seek dd { margin: 4px 0 0; font-size: 15.5px; }

/* ============ Витрина проектов ============ */
.show { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.show-tabs { display: flex; flex-direction: column; gap: 6px; }
.show-tab {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 14px 12px 12px; border-radius: 12px; border: 1px solid transparent; text-align: left;
  transition: background .25s, border-color .25s;
}
.show-tab:hover { background: var(--hover); }
.show-tab img { width: 48px; height: 48px; border-radius: 11px; outline: 1px solid rgba(255,255,255,.07); outline-offset: -1px; transition: transform .3s var(--ease); }
.st-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.st-text b { font-size: 16px; font-weight: 600; }
.st-text small { font-size: 13px; line-height: 1.3; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-tab em { font-size: 13px; font-style: normal; }
.show-tab[aria-selected="true"] { background: var(--panel); border-color: var(--rule); }
.show-tab[aria-selected="true"] img { transform: scale(1.06); }
.st-prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--select-line); }
.show-tab[aria-selected="true"] .st-prog.run { animation: prog 7s linear forwards; }
.show.paused .st-prog.run { animation-play-state: paused; }
@keyframes prog { to { width: 100%; } }

.show-stage { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--panel); }
.show-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.show-img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.show-img.kb { animation: kb 9s ease-out forwards; }
@keyframes kb { from { transform: scale(1.0); } to { transform: scale(1.07) translate(-1%, 1%); } }
.show-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,13,15,.86)); }
.show-hook { position: absolute; left: 24px; right: 24px; bottom: 20px; max-width: 36ch; font: 600 21px/1.35 var(--sans); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.show-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: end; padding: 18px 22px 20px; }
.show-task span { font: 400 12px/1.3 var(--mono); color: var(--faint); }
.show-task p { margin: 6px 0 0; font-size: 16px; line-height: 1.45; max-width: 52ch; }
.show-facts { margin: 0; display: flex; gap: 24px; grid-column: 1; }
.show-facts dt { font: 400 12px/1.3 var(--mono); color: var(--faint); }
.show-facts dd { margin: 4px 0 0; font-size: 15px; }
.show-facts dd.num { font-size: 17px; }
.show-actions { display: flex; gap: 8px; grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.show-stage.swap .show-img { animation: fadeIn .45s var(--ease), kb 9s ease-out forwards; }
.show-stage.swap .show-hook { animation: rise .5s var(--ease) .1s backwards; }
.show-stage.swap .show-info > * { animation: rise .45s var(--ease) backwards; }
.show-stage.swap .show-info > :nth-child(2) { animation-delay: .06s; }
.show-stage.swap .show-info > :nth-child(3) { animation-delay: .12s; }

/* ============ Остальные игры ============ */
.more { position: relative; margin-top: 56px; }
.more h3 { margin: 0 0 14px; font: 600 18px/1.3 var(--sans); color: var(--dim); }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; border-top: 1px solid var(--rule); }
.more-list li { border-bottom: 1px solid var(--rule); }
.more-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 16px; gap: 14px; align-items: center; padding: 12px 8px; color: inherit; text-decoration: none; transition: background .2s; }
.more-list a:hover { background: var(--hover); }
.more-icon { width: 40px; height: 40px; border-radius: 9px; }
.more-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.more-text b { font-size: 15.5px; font-weight: 600; }
.more-text small, .more-meta small { font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.more-meta em { font-size: 13px; font-style: normal; }
.more-arrow { color: var(--faint); transition: transform .25s var(--ease), color .2s; }
.more-list a:hover .more-arrow { transform: translateX(4px); color: var(--text); }
.more-peek { position: absolute; left: 0; top: 0; z-index: 5; width: 260px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; pointer-events: none;
  opacity: 0; scale: .92; transition: opacity .2s, scale .25s var(--ease); box-shadow: 0 20px 40px rgba(0,0,0,.5); outline: 1px solid rgba(255,255,255,.08); }
.more-peek.on { opacity: 1; scale: 1; }
.more-peek img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Модули ============ */
.mods { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.mods-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 76px; }
.mod-tab { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 8px; text-align: left; transition: background .2s, box-shadow .2s; }
.mod-tab .ic { margin-top: 2px; }
.mod-tab b { display: block; font: 500 14px/1.4 var(--mono); }
.mod-tab small { font-size: 13px; color: var(--dim); }
.mod-tab:hover { background: var(--hover); }
.mod-tab[aria-selected="true"] { background: var(--panel); box-shadow: inset 2px 0 0 var(--select-line); }
.mods-panel { min-height: 560px; padding: 22px 24px 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel); }
.mods-panel.swap > * { animation: rise .4s var(--ease) backwards; }
.mods-panel.swap > :nth-child(2) { animation-delay: .05s; }
.mods-panel.swap > :nth-child(3) { animation-delay: .1s; }
.mp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mp-head h3 { margin: 0; font: 700 22px/1.3 var(--sans); letter-spacing: -.01em; }
.mp-view { display: flex; flex: none; gap: 2px; padding: 3px; border-radius: 7px; background: var(--bg); }
.mp-view button { padding: 5px 12px; border-radius: 5px; font: 500 13px/1.2 var(--sans); color: var(--dim); }
.mp-view button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--rule); }
.mp-text { margin: 12px 0 0; max-width: 72ch; font-size: 16px; line-height: 1.55; color: var(--dim); }
.mp-body { margin-top: 20px; }
.mp-body .chest-demo { margin-top: 0; }
.mp-body .code { background: var(--bg); }

/* ============ Доска Game Planner ============ */
.planner { margin-top: 40px; }
.planner-intro { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; }
.planner-intro h3 { margin: 0; font: 700 21px/1.3 var(--sans); }
.planner-intro p { margin: 0; max-width: 70ch; font-size: 16px; line-height: 1.55; color: var(--dim); }
.board { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--panel); }
.col { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-right: 1px solid var(--rule); transition: background .4s; }
.col:last-child { border-right: 0; }
.col code { align-self: flex-start; padding: 2px 6px; border-radius: 4px; background: var(--bg); font: 500 12px/1.5 var(--mono); color: var(--faint); transition: color .3s; }
.col b { font-size: 16px; font-weight: 600; }
.col > span { font-size: 14px; line-height: 1.45; color: var(--dim); }
.col.active { background: var(--panel-2); }
.col.active code { color: var(--text); }
.col.me code { color: var(--num); }
.col.me.active { background: rgba(245,196,81,.08); }
.slot-card { min-height: 74px; margin-top: auto; padding-top: 12px; }
.gp-card { display: grid; gap: 3px; padding: 9px 11px; border-radius: 8px; background: var(--bg); border: 1px solid var(--select-line); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.gp-id { font: 600 11px/1 var(--mono); color: var(--num); }
.gp-card b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.gp-card small { font: 400 12px/1.35 var(--mono); color: var(--dim); }
.gp-card.wait { border-color: var(--num); animation: waitPulse 1.2s ease-in-out infinite; }
.gp-card.ok { border-color: var(--str); }
.gp-card.ok small { color: var(--str); }
@keyframes waitPulse { 50% { box-shadow: 0 0 0 4px rgba(245,196,81,.15), 0 8px 22px rgba(0,0,0,.35); } }
.planner-foot { margin: 14px 0 0; font-size: 13px; color: var(--faint); }

/* ============ Обо мне ============ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; margin-top: 40px; align-items: start; }
.journey { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.journey li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.journey-when { font: 500 13px/1.75 var(--mono); color: var(--num); }
.journey p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--dim); }
.about-facts { margin: 0; border-top: 1px solid var(--rule); }
.about-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.about-facts dt { font: 400 13px/1.65 var(--mono); color: var(--faint); }
.about-facts dd { margin: 0; font-size: 15.5px; line-height: 1.55; }
.about-facts a { color: var(--fn); }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack span { padding: 2px 8px; border-radius: 4px; background: var(--panel-2); font: 400 12.5px/1.6 var(--mono); font-variant-ligatures: none; }

/* ============ Контакты ============ */
.contact { padding-bottom: 40px; }
.contacts { list-style: none; margin: 32px 0 0; padding: 0; max-width: 640px; border-top: 1px solid var(--rule); }
.contacts li { display: flex; align-items: center; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--rule); font-size: 18px; }
.c-key { width: 110px; flex: none; font: 400 13px/1 var(--mono); color: var(--faint); }
.contacts a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.contacts a:hover { color: var(--fn); }
.copy { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-left: auto; border-radius: 5px; color: var(--faint); }
.copy:hover { background: var(--hover); color: var(--text); }
.copy.done { color: var(--str); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* =====================================================
   Схемы (widgets.js)
   ===================================================== */
/* Общие блоки глав */
.notes-dl { margin: 0; border-top: 1px solid var(--rule); }
.notes-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.notes-dl dt { font: 500 13px/1.65 var(--mono); color: var(--fn); }
.notes-dl dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--dim); }
.note-block { padding: 16px 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.note-block h4 { margin: 0; font: 600 16px/1.35 var(--sans); }
.note-block p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--dim); }
.note-block.accent { border-color: #57492a; background: linear-gradient(180deg, rgba(245,196,81,.07), transparent 70%), var(--panel); }

/* Growth: тело по частям */
.body-fig { margin: 0; padding: 18px 16px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.body-fig svg { display: block; width: 100%; max-width: 200px; margin: 0 auto; overflow: visible; }
.bp rect { fill: transparent; stroke: #3a4258; stroke-width: 1.2; stroke-dasharray: 3 3; transition: fill .35s, stroke .35s; }
.bp text { fill: #4b5266; font: 600 13px var(--mono); text-anchor: middle; transition: fill .3s; }
.bp.on rect { fill: #2c3b5c; stroke: var(--select-line); stroke-dasharray: none; }
.bp.on text { fill: var(--num); }
.bp[data-i="0"].on rect { fill: #3d3424; stroke: var(--num); }
.bp { transform-box: fill-box; transform-origin: 50% 50%; }
.bp.pop { animation: partPop .4s var(--ease); }
@keyframes partPop { 0% { transform: scale(.4); } 60% { transform: scale(1.12); } }
.body-fig.full svg { filter: drop-shadow(0 0 14px rgba(245,196,81,.35)); transition: filter .4s; }
.bp-off rect { fill: none; stroke: var(--faint); stroke-dasharray: 3 3; opacity: .5; }
.body-fig figcaption { display: grid; gap: 8px; margin-top: 14px; font: 400 12.5px/1.4 var(--mono); color: var(--faint); }
.body-now b { color: var(--text); font-weight: 500; }
.body-bar { height: 3px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.body-bar i { display: block; height: 100%; width: 0; background: var(--num); transition: width .35s var(--ease); }

/* Кинопоиск: каркас */
.arch { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.arch-tier { padding: 12px; border-radius: 8px; border: 1px solid var(--rule); background: var(--bg); }
.arch-tier.mine { border-color: var(--select-line); background: rgba(43,79,158,.16); }
.arch-label { display: block; margin-bottom: 10px; font: 500 12px/1.4 var(--mono); color: var(--faint); }
.arch-tier.mine .arch-label { color: var(--select-line); }
.arch-places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.arch-places li { padding: 5px 9px; border-radius: 5px; background: var(--panel-2); font-size: 13px; border: 1px solid transparent; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.arch-places li.mine { border-color: #57492a; }
.arch-places li em { margin-left: 6px; font: 500 11px var(--mono); font-style: normal; color: var(--num); }
.arch-mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.arch-mods li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px; background: rgba(0,0,0,.28); border: 1px solid transparent; transition: border-color .3s, background .3s; }
.arch-mods b { font: 600 13px/1.4 var(--mono); color: var(--fn); }
.arch-mods span { font-size: 12.5px; line-height: 1.35; color: var(--dim); }
.arch-flow { display: flex; justify-content: space-around; font: 500 12px/1.4 var(--mono); color: var(--faint); }
.arch-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; padding: 0; border: 0; background: none; }
.arch-bottom div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rule); background: var(--bg); transition: border-color .3s, background .3s; }
.arch-bottom b { font-size: 14px; font-weight: 600; }
.arch-bottom span { font-size: 12.5px; line-height: 1.35; color: var(--dim); }
.arch .hot { border-color: var(--num) !important; background: rgba(245,196,81,.1) !important; }
.arch-places li.hot { transform: translateY(-2px); }

/* Heat: стадии */
.heat { padding: 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.heat-now { display: flex; gap: 16px; align-items: center; }
.heat-swatch { --c: rgb(0,120,255); flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--c); box-shadow: 0 0 28px var(--c); transition: background .3s, box-shadow .3s; }
.heat-now b { display: block; font: 600 18px/1.2 var(--mono); }
.heat-fx { font-size: 14px; color: var(--dim); }
.heat-strip { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(27, 1fr); gap: 3px; }
.heat-strip li { height: 30px; border-radius: 3px; background: #2a2c31; transition: background .25s; }
.heat-strip li.on { background: var(--c); }
.heat-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 400 11.5px/1 var(--mono); color: var(--faint); }

/* Island: ветки */
.itree { padding: 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.itree-root { display: flex; align-items: center; gap: 10px; font: 500 13px var(--mono); }
.itree-root span { padding: 6px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--rule); }
.itree-root i { font-style: normal; color: var(--faint); }
.itree-ways { list-style: none; margin: 14px 0 0 14px; padding: 0 0 0 16px; border-left: 2px solid var(--rule); display: grid; gap: 8px; }
.itree-ways li { display: grid; grid-template-columns: 58px 130px minmax(0, 1fr) 36px; gap: 12px; align-items: center; font-size: 14px; }
.itree-ways b { font: 500 12.5px var(--mono); color: var(--fn); }
.itree-bar { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.itree-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--select-line); transition: width .6s var(--ease); }
.itree-ways li.on .itree-bar i { width: calc(var(--n) / 38 * 100%); }
.itree-ways em { font-style: normal; font-size: 13px; text-align: right; opacity: .35; transition: opacity .3s; }
.itree-ways li.on em { opacity: 1; }
.itree-total { margin: 14px 0 0; font-size: 14px; color: var(--dim); }
.itree-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 14px; color: var(--dim); }
.itree-next span { padding: 4px 8px; border-radius: 6px; border: 1px dashed var(--select-line); font: 500 12.5px var(--mono); color: var(--fn); }

/* Christmas: кривая цен */
.prices { margin: 0; padding: 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.prices svg { display: block; width: 100%; height: auto; }
.pr-grid line { stroke: #2f3238; stroke-width: 1; }
.pr-grid text { fill: var(--faint); font: 400 10px var(--mono); text-anchor: end; }
.pr-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; transition: stroke-dashoffset 1.8s var(--ease); }
.pr-line.draw { stroke-dashoffset: 0 !important; }
.pr-price { stroke: var(--num); }
.pr-inc { stroke: var(--fn); }
.prices figcaption, .pile figcaption { display: block; margin-top: 8px; font: 400 12.5px/1.9 var(--mono); color: var(--faint); }
.prices figcaption > span, .pile figcaption > span { display: inline-block; max-width: 100%; margin-right: 18px; }
.pr-key::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.pr-key.price::before { background: var(--num); }
.pr-key.inc::before { background: var(--fn); }
.pr-note { margin-left: auto; }

/* Sort: сила обложек */
.ads-vis { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); font: 400 13px/1.3 var(--mono); }
.ads-head, .ads-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 90px 60px minmax(0, 1fr); gap: 12px; align-items: center; }
.ads-head { padding-bottom: 8px; border-bottom: 1px solid var(--rule); color: var(--faint); }
.ads-row { padding: 10px 0; border-bottom: 1px solid #2c2e33; }
.ads-name { color: var(--str); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-row > span:nth-child(2), .ads-row > span:nth-child(3), .ads-head > span:nth-child(2), .ads-head > span:nth-child(3) { text-align: right; }
.ads-s { display: flex; align-items: center; gap: 8px; }
.ads-s i { flex: 1; height: 8px; border-radius: 4px; background: var(--bg); position: relative; overflow: hidden; }
.ads-s i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--num); border-radius: 4px; transition: width 1s var(--ease); }
.ads-vis.go .ads-s i::after { width: var(--s); }
.ads-row:nth-child(3) .ads-s i::after { transition-delay: .1s; } .ads-row:nth-child(4) .ads-s i::after { transition-delay: .2s; } .ads-row:nth-child(5) .ads-s i::after { transition-delay: .3s; }
.ads-base { margin-top: 10px; color: var(--faint); font-size: 12px; }

/* Leafbound: веер граблей, вид сверху */
.rake { margin: 0; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.rake svg { display: block; width: 100%; max-width: 360px; margin: 0 auto; }
.rk-fan { fill: rgba(245,196,81,.12); stroke: var(--num); stroke-width: 1.2; stroke-dasharray: 4 3; transition: d .5s var(--ease); }
.rk-leaves ellipse { fill: #c8873a; opacity: .75; transition: transform .6s var(--ease), fill .4s; }
.rk-leaves ellipse:nth-child(3n) { fill: #d9a441; }
.rk-leaves ellipse:nth-child(4n) { fill: #a65d2e; }
.rk-leaves ellipse.taken { fill: var(--num); opacity: 1; }
.rk-player { transition: transform .5s var(--ease); }
.rk-player circle { fill: var(--select); stroke: var(--select-line); stroke-width: 2; }
.rk-look { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.rake figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font: 400 12.5px var(--mono); color: var(--faint); }
.rk-count b { color: var(--num); font-weight: 500; }

/* «Король и Шут»: ноты в такт */
.rh { max-width: 560px; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); font: 400 12.5px var(--mono); color: var(--faint); }
.rh-top { display: flex; align-items: center; gap: 10px; }
.rh-score { margin-left: auto; }
.rh-beat { width: 10px; height: 10px; border-radius: 50%; background: var(--kw); opacity: .3; }
.rh-beat.on { animation: beat .5s ease-out; }
@keyframes beat { 0% { opacity: 1; transform: scale(1.5); } }
.rh-field { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 230px; margin-top: 10px; border-radius: 8px; overflow: hidden; background: #18191b; }
.rh-lane { position: relative; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(240,127,142,.06)); border-left: 1px solid #25272b; }
.rh-lane:first-child { border-left: 0; }
.rh-lane.hit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 34px; background: radial-gradient(ellipse at center, rgba(245,196,81,.45), transparent 70%); animation: fadeOut .45s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.rh-note { position: absolute; left: 50%; top: 0; width: 44%; height: 14px; margin-left: -22%; border-radius: 7px; background: var(--kw); box-shadow: 0 0 12px rgba(240,127,142,.6); animation: noteFall linear forwards; }
@keyframes noteFall { from { transform: translateY(-20px); } to { transform: translateY(196px); } }
.rh-line { position: absolute; left: 0; right: 0; bottom: 26px; height: 2px; background: var(--num); opacity: .6; pointer-events: none; }
.rh-player { position: absolute; left: 12.5%; bottom: 6px; width: 22px; height: 22px; margin-left: -11px; border-radius: 6px; background: var(--select-line); box-shadow: 0 0 0 3px rgba(107,155,255,.25); transition: left .18s var(--ease); }
.rh-player.jump { animation: hop .3s var(--ease); }
@keyframes hop { 40% { transform: translateY(-14px) scale(1.1); } }
.rh-board { display: grid; gap: 5px; margin-top: 10px; }
.rh-board div { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; }
.rh-board i { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.rh-board b { display: block; height: 100%; width: 0; background: var(--faint); transition: width .4s var(--ease); }
.rh-board div:first-child span { color: var(--select-line); }
.rh-board div:first-child b { background: var(--select-line); }

/* Сохранения: шаги сессии */
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.tl li { position: relative; display: grid; gap: 6px; padding: 26px 12px 0 0; opacity: .35; transition: opacity .35s; }
.tl li::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--rule); }
.tl li::after { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--faint); transition: border-color .3s, background .3s; }
.tl li.on { opacity: 1; }
.tl li.on::after { border-color: var(--select-line); background: var(--select-line); }
.tl li[data-k="leave"].on::after { border-color: var(--kw); background: var(--kw); }
.tl li[data-k="end"].on::after { border-color: var(--str); background: var(--str); }
.tl b { font-size: 15px; font-weight: 600; }
.tl code { font: 400 12px/1.4 var(--mono); color: var(--fn); overflow-wrap: anywhere; }
.tl-note { margin: 20px 0 0; font-size: 14px; color: var(--faint); }

/* Logger */
.lg-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.lg-tabs button { padding: 5px 10px; border-radius: 5px; font: 500 12.5px var(--mono); color: var(--dim); background: var(--bg); }
.lg-tabs button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--rule); }
.lg-tabs span { margin-left: 8px; font-size: 13px; color: var(--faint); }
.lg-lines { list-style: none; margin: 14px 0 0; padding: 10px 0; border-radius: 8px; background: var(--bg); border: 1px solid var(--rule); font: 400 12.5px/1.9 var(--mono); }
.lg-lines li { display: flex; gap: 12px; padding: 0 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.lg-lines li.off { opacity: .22; text-decoration: line-through; text-decoration-color: var(--faint); }
.lg-lv { width: 62px; flex: none; }
.lg-Debug { color: var(--faint); } .lg-Info { color: var(--dim); } .lg-Warn { color: var(--num); } .lg-Critical { color: var(--kw); }
.lg-sc { color: var(--fn); }
.lg-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--fn); }
.lg-open:hover { text-decoration: underline; }

/* Багрепорты: путь сообщения */
.flow { position: relative; list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; margin-left: 6px; padding: 9px 0 9px 22px; border-left: 2px solid var(--rule); transition: background .3s; }
.flow li::before { content: ""; position: absolute; left: -7px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--select-line); }
.flow li.on { background: linear-gradient(90deg, rgba(107,155,255,.1), transparent 70%); }
.flow b { font: 600 13px/1.6 var(--mono); color: var(--fn); }
.flow span { font-size: 15px; line-height: 1.5; color: var(--dim); }
.flow-dot { position: absolute; left: 1px; top: 0; width: 12px; height: 12px; margin-left: -1px; border-radius: 50%; background: var(--num); box-shadow: 0 0 12px var(--num); transition: transform .6s var(--ease); }

/* Аналитика: два пути */
.pipe { display: grid; gap: 10px; font-size: 14px; }
.pipe span, .pipe-src { display: inline-block; padding: 7px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--rule); }
.pipe-src { justify-self: start; background: rgba(43,79,158,.22); border-color: var(--select-line); }
.pipe-branches { display: grid; gap: 8px; margin-left: 10px; padding-left: 16px; border-left: 2px solid var(--rule); }
.pipe-branches div, .pipe-end { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; }
.pipe-end span:last-child { border-color: #6a5626; color: var(--num); }
.pipe-arrow { display: inline-block; width: 44px; height: 2px; margin: 0 8px; background: repeating-linear-gradient(90deg, var(--faint) 0 6px, transparent 6px 12px); }
.pipe.flowing .pipe-arrow { animation: dash 1s linear infinite; background-image: repeating-linear-gradient(90deg, var(--select-line) 0 6px, transparent 6px 12px); }
@keyframes dash { to { background-position: 12px 0; } }

/* ============ Инженерия ============ */
.sub-h { margin: 48px 0 0; font: 600 18px/1.3 var(--sans); color: var(--dim); }
.sub-h + [data-widget], .sub-h + .mods { margin-top: 18px; }
.mods { margin-top: 18px; }
.mods-group { padding: 10px 12px 4px; font: 400 11.5px/1 var(--mono); color: var(--faint); text-transform: none; }
.mods-group:first-child { padding-top: 2px; }

/* Как рос мой код */
.evo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel); overflow: hidden; }
.evo li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-right: 1px solid var(--rule); opacity: .35; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.evo li:last-child { border-right: 0; background: linear-gradient(180deg, rgba(43,79,158,.14), transparent 70%); }
.evo li.on { opacity: 1; transform: none; }
.evo-top { display: flex; align-items: center; gap: 10px; }
.evo-top img { width: 36px; height: 36px; border-radius: 9px; }
.evo-kit { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--bg); border: 1px solid var(--select-line); }
.evo-top b { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.evo-bar { display: block; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.evo-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--num); transition: width 1s var(--ease) .2s; }
.evo li.on .evo-bar i { width: var(--w); }
.evo-scale { font: 500 12.5px/1.3 var(--mono); color: var(--num); }
.evo-what { margin: 0; font-size: 14.5px; line-height: 1.5; }
.evo-pain { margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--rule); font-size: 13.5px; line-height: 1.45; color: var(--dim); }

/* Запуск */
.boot-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.boot-log { list-style: none; margin: 12px 0 0; padding: 10px 0; height: 330px; overflow-y: auto; border-radius: 8px; background: var(--bg); border: 1px solid var(--rule); font: 400 12.5px/1.85 var(--mono); }
.boot-log li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 0 14px; animation: logIn .4s var(--ease); }
.boot-log li span:first-child { color: var(--faint); }
.boot-log li.ok span:last-child { color: var(--str); }
.boot-log li.muted span:last-child { color: var(--dim); }
.boot-log li.bad { background: rgba(240,127,142,.1); } .boot-log li.bad span { color: var(--kw); }
.boot-log li.warn span:last-child { color: var(--num); }

/* Путь покупки */
.fl-lanes, .fl-steps li { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fl-lanes { gap: 0; border-bottom: 1px solid var(--rule); }
.fl-lanes span { padding: 0 0 8px; font: 500 12.5px var(--mono); color: var(--faint); text-align: center; }
.fl-steps { list-style: none; margin: 0; padding: 8px 0; position: relative; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #2a2c31 calc(25% - 1px) 25%); }
.fl-steps li { padding: 3px 0; }
.fl-steps button { grid-column: calc(var(--lane) + 1); justify-self: center; display: inline-flex; align-items: center; gap: 8px; max-width: 96%; padding: 6px 12px 6px 8px; border-radius: 7px; border: 1px solid var(--rule); background: var(--bg); font: 500 12.5px var(--mono); color: var(--dim); transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-ln { display: none; }
.fl-steps button em { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--panel-2); font-style: normal; font-size: 11px; color: var(--faint); }
.fl-steps button.done { color: var(--text); border-color: #3a4258; }
.fl-steps button.on { color: var(--text); border-color: var(--num); background: rgba(245,196,81,.1); transform: scale(1.04); }
.fl-steps button.on em { background: var(--num); color: #1c1d20; }
.fl-detail { margin-top: 12px; padding: 14px 16px; border-radius: 8px; background: var(--bg); border: 1px solid var(--rule); min-height: 118px; }
.fl-detail b { font: 600 15px var(--sans); }
.fl-detail p { margin: 6px 0 10px; font-size: 15px; line-height: 1.5; color: var(--dim); }
.fl-detail code { font: 400 12.5px var(--mono); color: var(--fn); overflow-wrap: anywhere; }

/* Карта систем */
.kx { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 16px; align-items: start; }
.kx-tree { list-style: none; margin: 0; padding: 8px 0; max-height: 400px; overflow-y: auto; border-radius: 8px; background: var(--bg); border: 1px solid var(--rule); }
.kx-tree ul { list-style: none; margin: 0 0 6px; padding: 0; }
.kx-group { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font: 500 12.5px var(--sans); color: var(--dim); }
.kx-tree button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 10px 4px 28px; font: 400 13px/1.4 var(--sans); text-align: left; color: var(--text); }
.kx-tree button:hover { background: var(--hover); }
.kx-tree button.on { background: var(--select); }
.kx-card { padding: 16px 18px; border-radius: 8px; background: var(--bg); border: 1px solid var(--rule); }
.kx-card.swap > * { animation: rise .35s var(--ease) backwards; }
.kx-head { display: flex; align-items: center; gap: 8px; }
.kx-head b { font-size: 17px; font-weight: 600; }
.kx-head code { margin-left: auto; font: 400 12px var(--mono); color: var(--faint); }
.kx-why { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; }
.kx-meta { display: flex; gap: 28px; margin: 14px 0 0; }
.kx-meta dt { font: 400 12px var(--mono); color: var(--faint); }
.kx-meta dd { margin: 2px 0 0; font-size: 16px; }
.kx-row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; margin-top: 12px; font-size: 13px; }
.kx-row > span { font: 400 12px/1.9 var(--mono); color: var(--faint); }
.kx-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.kx-chips span { padding: 2px 7px; border-radius: 4px; background: var(--panel-2); font: 400 12px/1.6 var(--mono); color: var(--fn); }
.kx-chips.ev span { color: var(--str); }
.kx-chips span.none { color: var(--faint); background: none; padding-left: 0; }

/* ===== Пример архитектуры: живой плейс (W.place) ===== */
.mod-tab.place { position: relative; grid-template-columns: 18px 1fr auto; background: linear-gradient(100deg, rgba(245,196,81,.10), rgba(245,196,81,0) 70%); box-shadow: inset 0 0 0 1px rgba(245,196,81,.28); }
.mod-tab.place[aria-selected="true"] { background: linear-gradient(100deg, rgba(245,196,81,.18), var(--panel) 80%); box-shadow: inset 2px 0 0 var(--num), inset 0 0 0 1px rgba(245,196,81,.35); }
.mod-tab.place b { font-family: var(--sans); font-weight: 600; }
.mod-live { align-self: center; padding: 2px 6px; border-radius: 4px; font: 700 10px/1.4 var(--mono); font-style: normal; letter-spacing: .06em; color: #1c1d20; background: var(--num); }
.pl { border: 1px solid var(--rule); border-radius: 10px; background: #18191b; overflow: hidden; }
.pl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--panel); font-size: 14px; }
.pl-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(159,219,131,.12); font: 500 11.5px var(--mono); color: var(--str); }
.pl-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--str); animation: availPulse 2s infinite; box-shadow: 0 0 0 0 rgba(159,219,131,.5); }
.pl-bar > b { font-size: 15px; }
.pl-stats { font: 400 12.5px var(--mono); color: var(--dim); }
.pl-tour { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--rule); background: var(--bg); font-size: 13px; color: var(--text); transition: border-color .2s, background .2s; }
.pl-tour:hover { border-color: var(--select-line); }
.pl-tour.on { background: var(--select); border-color: var(--select-line); }
.pl-panes { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 460px; }
.pl-explorer { display: flex; flex-direction: column; border-right: 1px solid var(--rule); min-width: 0; }
.pl-pane-h { padding: 7px 12px; border-bottom: 1px solid var(--rule); font: 500 12px var(--mono); color: var(--dim); background: #1f2023; }
.pl-sel { color: var(--faint); }
.pl-filter { display: block; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.pl-filter input { width: 100%; height: 28px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--rule); background: var(--bg); color: var(--text); font: 400 12.5px var(--mono); outline: none; }
.pl-filter input:focus { border-color: var(--select-line); }
.pl-tree { position: relative; height: 420px; overflow: auto; padding: 4px 0; outline: none; scrollbar-width: thin; }
.pl-row { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 calc(6px + var(--d) * 16px); white-space: nowrap; font: 400 13px/24px var(--sans); cursor: pointer; }
.pl-row:hover { background: var(--hover); }
.pl-row.on { background: var(--select); }
.pl-row .ic { flex: none; width: 15px; height: 15px; }
.pl-caret { flex: none; display: grid; place-items: center; width: 14px; height: 14px; color: var(--faint); transition: transform .18s var(--ease); }
.pl-caret .ic { width: 12px; height: 12px; }
.pl-caret.open { transform: rotate(90deg); }
.pl-caret.none { visibility: hidden; }
.pl-name { overflow: hidden; text-overflow: ellipsis; }
.pl-name mark { background: rgba(245,196,81,.3); color: inherit; border-radius: 2px; }
.pl-row em { margin-left: auto; padding-left: 10px; font: 400 11px var(--mono); font-style: normal; color: var(--faint); }
.pl-row.virtual .pl-name { font-style: italic; color: var(--dim); }
.pl-row.hidden-row { color: var(--faint); }
.pl-row.in { animation: plIn .32s var(--ease) backwards; animation-delay: calc(var(--i) * 18ms); }
@keyframes plIn { from { opacity: 0; transform: translateX(-8px); } }
.pl-row.pl-flash { animation: plPing .9s var(--ease); }
@keyframes plPing { 0% { box-shadow: inset 0 0 0 1px var(--select-line), 0 0 0 0 rgba(107,155,255,.55); } 100% { box-shadow: inset 0 0 0 1px transparent, 0 0 0 8px rgba(107,155,255,0); } }
.pl-empty { margin: 14px; font-size: 13px; color: var(--faint); }
.pl-props { display: flex; flex-direction: column; min-width: 0; }
.pl-tourcap { display: none; margin: 10px 12px 0; padding: 9px 12px; border-radius: 7px; background: rgba(107,155,255,.1); box-shadow: inset 2px 0 0 var(--select-line); font-size: 13.5px; line-height: 1.5; }
.pl-tourcap.on { display: block; animation: rise .35s var(--ease); }
.pl-tourcap span { display: block; margin-bottom: 2px; font: 500 11px var(--mono); color: var(--fn); }
.pl-body { padding: 12px; overflow: auto; }
.pl-body.swap > * { animation: rise .3s var(--ease) backwards; }
.pl-body.swap > :nth-child(2) { animation-delay: .05s; }
.pl-body.swap > :nth-child(3) { animation-delay: .1s; }
.pl-grid { display: grid; grid-template-columns: 92px minmax(0, 1fr); margin: 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; font-size: 13px; }
.pl-grid dt, .pl-grid dd { margin: 0; padding: 5px 9px; border-bottom: 1px solid var(--rule); }
.pl-grid dt { font: 400 12px/1.6 var(--mono); color: var(--faint); background: #1f2023; }
.pl-grid dd { overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; }
.pl-grid dt:nth-last-child(2), .pl-grid dd:last-child { border-bottom: 0; }
.pl-what { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; }
.pl-what span { display: block; margin-bottom: 3px; font: 400 11.5px var(--mono); color: var(--faint); }
.pl-row2 { display: grid; grid-template-columns: 90px 1fr; gap: 8px; margin-top: 10px; font-size: 13px; }
.pl-row2 > span { font: 400 11.5px/1.9 var(--mono); color: var(--faint); }
.pl-sys { margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--rule); }
.pl-sys > b { font-size: 15px; }
.pl-sys > p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--dim); }
@media (max-width: 900px) {
  .pl-panes { grid-template-columns: 1fr; }
  .pl-explorer { border-right: 0; border-bottom: 1px solid var(--rule); }
  .pl-tree { height: 300px; }
  .pl-tour { margin-left: 0; }
}

/* ИИ: переписка и результат */
.ac { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; align-items: stretch; }
.ac-chat { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel); overflow: hidden; }
.ac-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; font-weight: 500; }
.ac-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--str); }
.ac-ctrl { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ac-ctrl button { min-width: 32px; height: 28px; padding: 0 8px; border-radius: 6px; font: 600 14px var(--mono); color: var(--dim); background: var(--bg); border: 1px solid var(--rule); transition: color .2s, border-color .2s, background .2s; }
.ac-ctrl button:hover:not(:disabled) { color: var(--text); border-color: var(--select-line); }
.ac-ctrl button:disabled { opacity: .35; cursor: default; }
.ac-ctrl .ac-play { font-size: 11px; letter-spacing: -1px; }
.ac-ctrl .ac-play.on { color: #fff; background: var(--select); border-color: var(--select-line); }
.ac-count { min-width: 44px; text-align: right; font: 400 12px var(--mono); color: var(--faint); }
.ac-prog { display: flex; gap: 4px; padding: 10px 14px 12px; border-top: 1px solid var(--rule); }
.ac-prog button { flex: 1; height: 14px; padding: 5px 0; background: none; border: 0; cursor: pointer; }
.ac-prog button::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--rule); transition: background .3s, transform .2s; }
.ac-prog button:hover::before { transform: scaleY(1.6); }
.ac-prog button.on.ai::before { background: var(--faint); }
.ac-prog button.on.me::before { background: var(--select-line); }
.ac-prog button.on.decision::before { background: var(--num); }
.ac-prog button.on.review::before { background: var(--kw); }
.ac-prog button.cur::before { transform: scaleY(1.8); }
.ac-msgs { list-style: none; margin: 0; padding: 16px 14px; height: 470px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ac-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.ac-msg.in { animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.ac-msg.me { align-self: flex-end; background: var(--select); color: #fff; border-bottom-right-radius: 4px; }
.ac-msg.ai { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 4px; }
.ac-msg.decision { box-shadow: 0 0 0 2px var(--num); }
.ac-msg em { display: block; margin-bottom: 3px; font: 600 11px var(--mono); font-style: normal; color: #ffe6a6; text-transform: none; }
.ac-msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.ac-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: typing 1s infinite; }
.ac-msg.typing i:nth-child(2) { animation-delay: .15s; } .ac-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 40% { transform: translateY(-4px); background: var(--text); } }
.ac-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel); transition: border-color .4s; }
.ac-card[data-status="review"] { border-color: var(--num); }
.ac-card-head { display: flex; align-items: center; gap: 10px; }
.ac-card-head code { padding: 2px 6px; border-radius: 4px; background: var(--bg); font: 600 12px var(--mono); color: var(--num); }
.ac-card-head b { font-size: 16px; }
.ac-status { margin-left: auto; font: 500 12px var(--mono); color: var(--fn); }
.ac-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ac-stages li { padding: 5px 0; border-radius: 5px; background: var(--bg); text-align: center; font: 400 11px var(--mono); color: var(--faint); transition: background .3s, color .3s; }
.ac-stages li.on { background: var(--select); color: #fff; }
.ac-card[data-status="review"] .ac-stages li.on { background: var(--num); color: #1c1d20; }
.ac-block > span { font: 400 12px var(--mono); color: var(--faint); }
.ac-block ol, .ac-block ul { margin: 6px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.5; min-height: 20px; }
.ac-block li { animation: rise .35s var(--ease); }
.ac-checks li::marker { content: "✓  "; color: var(--str); }
.ac-icons { display: flex; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.ac-icons.on { opacity: 1; transform: none; }
.ac-icons img { width: 44px; height: 44px; border-radius: 10px; }
.ac-shot { margin: 0; border-radius: 10px; overflow: hidden; opacity: 0; max-height: 0; transition: opacity .6s, max-height .6s var(--ease); }
.ac-shot.on { opacity: 1; max-height: 260px; }
.ac-shot img { width: 100%; display: block; }
.ac-msg.review { box-shadow: 0 0 0 2px var(--kw); }
.ac-msg.review em { color: #ffd0d6; }
.ac-msg.task em { color: #cfe0ff; }
.ac-msg.ask { box-shadow: inset 2px 0 0 var(--fn); }
.ac-msg.ask em { color: var(--fn); }
.ac-body { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; background: var(--bg); }
.ac-fig svg { display: block; width: 100%; height: auto; }
.ac-fig.swap svg { animation: fadeIn .35s var(--ease); }
.ac-fig .m-head, .ac-fig .m-torso { fill: #3d3424; stroke: var(--num); stroke-width: 1.2; }
.ac-fig .m-limb { fill: #2c3b5c; stroke: var(--select-line); stroke-width: 1.2; transition: all .4s var(--ease); }
.ac-fig .m-bad { fill: rgba(240,127,142,.35); stroke: var(--kw); stroke-width: 1.2; stroke-dasharray: 3 2; }
.ac-fig[data-state="fixed"] .m-limb { stroke: var(--str); }
.ac-fig-note { font: 400 12.5px/1.45 var(--mono); color: var(--dim); }
.ac-limits { display: none; }
.ac-limits.on { display: block; animation: rise .35s var(--ease); }
.ac-limits li::marker { content: "!  "; color: var(--num); }
.ac-card[data-status="done"] { border-color: var(--str); }
.ac-card[data-status="done"] .ac-stages li.on { background: var(--str); color: #1c1d20; }
.ac-note { margin: auto 0 0; font: 400 12.5px var(--mono); color: var(--num); min-height: 1em; }

/* Grow Your Parts: тогда и сейчас */
.cmp { border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); overflow: hidden; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 10px 14px; }
.cmp-head { border-bottom: 1px solid var(--rule); font: 600 13px var(--sans); }
.cmp-head span { display: flex; align-items: center; gap: 8px; }
.cmp-head img { width: 26px; height: 26px; border-radius: 6px; }
.cmp-row { border-bottom: 1px solid #2c2e33; font-size: 14px; line-height: 1.45; opacity: .25; transform: translateX(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row.on { opacity: 1; transform: none; }
.cmp-k { font: 400 12px/1.6 var(--mono); color: var(--faint); }
.cmp-a { color: var(--dim); }
.cmp-b { color: var(--text); padding-left: 12px; border-left: 2px solid var(--str); }

/* Build a Bonfire: слой кучи */
.pile { margin: 0; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.pile-top { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 10px; font: 400 12.5px var(--mono); color: var(--faint); }
.pile-top b { color: var(--num); font-weight: 600; }
.pile svg { display: block; width: 100%; height: auto; border-radius: 6px; background: #18191b; }
.pile-grid rect { fill: #222428; transition: fill .3s; }
.pile-grid rect.on { fill: #8a5a34; }
.pile-boxes rect { fill: none; stroke: var(--fn); stroke-width: 2; }
.pile svg.plate .pile-grid rect { fill: #a86c3c; }
.pile svg.plate .pile-boxes rect { stroke: var(--num); stroke-width: 3; }
.pile-key::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 3px; }
.pile-key.pk-log::before { background: #8a5a34; }
.pile-key.pk-box::before { border: 2px solid var(--fn); }
.pile-done { color: var(--num); }

/* Spell Brawl: кто что делал */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 900px; }
.duo-col { padding: 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.duo-col.me { border-color: var(--select-line); }
.duo-col b { font-size: 16px; }
.duo-col ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.duo-col li { padding: 7px 10px; border-radius: 7px; background: var(--bg); font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.duo-col li.on { opacity: 1; transform: none; }
.duo-col.me li { box-shadow: inset 2px 0 0 var(--select-line); }

/* Воронка сессии */
.contact-grid { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 48px; align-items: start; }
.visit-wrap { margin-top: 28px; padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel); }
.visit-wrap h3 { margin: 0; font: 600 16px var(--sans); }
.vf ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.vf li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 7px; background: var(--bg); font-size: 14px; color: var(--faint); transition: background .3s, color .3s; }
.vf li.ok { color: var(--text); background: rgba(159,219,131,.08); }
.vf li.next { box-shadow: inset 2px 0 0 var(--num); }
.vf-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); font: 600 11px var(--mono); }
.vf li.ok .vf-n { background: var(--str); color: #1c1d20; }
.vf-d { font: 400 12px var(--mono); color: var(--dim); }
.vf p { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--faint); }

/* Подсказки к терминам */
.term { border-bottom: 1px dotted var(--faint); cursor: help; }
.term:hover, .term:focus { border-bottom-color: var(--fn); color: var(--text); outline: none; }
.tip { position: fixed; z-index: 80; max-width: 300px; padding: 8px 11px; border-radius: 7px; background: #0f1012; border: 1px solid var(--rule); box-shadow: 0 10px 28px rgba(0,0,0,.45); font-size: 13px; line-height: 1.45; color: var(--text); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.tip.on { opacity: 1; transform: none; }

/* ============ Адаптив ============ */
@media (max-width: 1080px) {
  .show { grid-template-columns: 1fr; }
  .show-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .show-tab { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; }
  .show-tab .st-text small, .show-tab em { display: none; }
  .st-text b { font-size: 12.5px; line-height: 1.25; }
  .mods { grid-template-columns: 1fr; }
  .mods-list { position: static; flex-direction: row; flex-wrap: wrap; }
  .mod-tab { flex: none; }
  .mod-tab small { display: none; }
  .planner-intro, .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .evo { grid-template-columns: 1fr 1fr; }
  .evo li:nth-child(2) { border-right: 0; }
  .evo li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .ac, .kx, .contact-grid { grid-template-columns: 1fr; }
  .ac-msgs { height: 400px; }
  .contact-grid { gap: 0; }
  .about-grid { gap: 40px; }
}
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .col { border-right: 0; border-bottom: 1px solid var(--rule); }
  .col:last-child { border-bottom: 0; }
  .slot-card { min-height: 0; }
  .slot-card:empty { display: none; }
  .more-list { grid-template-columns: 1fr; }
  .show-info { grid-template-columns: 1fr; }
  .show-actions { grid-column: 1; grid-row: auto; }
  .tl { grid-template-columns: 1fr 1fr; row-gap: 18px; }
}
@media (max-width: 760px) {
  .block { padding-left: 20px; padding-right: 20px; margin-top: 104px; }
  .brands { padding: 16px 20px; }
  .brands-k { flex-basis: 100%; }
  .seek { grid-template-columns: 1fr; gap: 12px; }
  .section-head p { font-size: 17px; }
  .show-hook { font-size: 16px; left: 16px; right: 16px; bottom: 14px; }
  .show-tab img { width: 40px; height: 40px; }
  .mods-panel { padding: 16px; min-height: 0; }
  .mp-head { flex-direction: column; }
  .journey li, .notes-dl div, .flow li, .about-facts div { grid-template-columns: 1fr; gap: 2px; }
  .arch-bottom { grid-template-columns: 1fr; }
  .contacts li { font-size: 16px; gap: 10px; }
  .c-key { width: 76px; }
  .more-meta small { display: none; }
  .cmp-head, .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-head span:first-child { display: none; }
  .cmp-k { grid-column: 1 / -1; }
  .duo { grid-template-columns: 1fr; }
  .evo { grid-template-columns: 1fr; }
  .evo li { border-right: 0; border-bottom: 1px solid var(--rule); }
  .fl-lanes { display: none; }
  .fl-steps { background: none; padding: 0; }
  .fl-steps li { display: block; padding: 3px 0 3px calc(var(--lane) * 14px); }
  .fl-steps button { max-width: 100%; }
  .fl-ln { display: inline !important; font: 400 10.5px var(--mono); color: var(--faint); }
  .mods-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .mods-group { grid-column: 1 / -1; padding: 8px 2px 2px; }
  .mod-tab { padding: 9px 10px; }
  .boot-log li { grid-template-columns: 1fr; gap: 0; padding: 3px 12px; line-height: 1.5; }
  .kx-tree { max-height: 220px; }
  .ac-msg { max-width: 94%; font-size: 14px; }
  .itree-ways li { grid-template-columns: 50px minmax(0, 1fr) 30px; }
  .itree-bar { display: none; }
  .ads-head, .ads-row { grid-template-columns: minmax(0, 1fr) 54px minmax(0, .8fr); }
  .ads-head > :nth-child(2), .ads-row > :nth-child(2) { display: none; }
}
/* Витрина: подпись, стрелки, фон-переход */
.show-hint { display: none; }
.show-mediawrap { position: relative; }
.show-media { background-size: cover; background-position: center; }
.show-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: rgba(16,17,19,.62); border: 1px solid rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s, background .2s; }
.show-arrow.prev { left: 12px; } .show-arrow.next { right: 12px; }
.show-mediawrap:hover .show-arrow, .show-arrow:focus-visible { opacity: 1; }
.show-arrow:hover { background: var(--select); }
@media (max-width: 760px) {
  /* На телефоне: подпись «Главные игры · 2 / 6», лента вкладок с названиями, стрелки видны всегда */
  .show { gap: 12px; }
  .show-hint { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
  .show-hint em { font: 500 13px var(--mono); font-style: normal; color: var(--num); }
  .show-hint small { flex-basis: 100%; font: 400 12.5px var(--mono); color: var(--faint); }
  .show-tabs { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .show-tabs::-webkit-scrollbar { display: none; }
  .show-tab { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); scroll-snap-align: start; position: relative; overflow: hidden; }
  .show-tab img { width: 30px; height: 30px; border-radius: 8px; }
  .show-tab .st-text { display: block; }
  .show-tab .st-text b { font-size: 13.5px; white-space: nowrap; }
  .show-tab[aria-selected="true"] { background: var(--select); border-color: var(--select-line); }
  .show-tab[aria-selected="true"] img { transform: none; }
  .show-tab .st-prog { background: rgba(255,255,255,.7); }
  .show-arrow { opacity: 1; width: 36px; height: 36px; margin-top: -18px; }
  .show-arrow.prev { left: 8px; } .show-arrow.next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .show-img.kb { animation: none; }
}

/* Ссылка на открытый каркас */
.gh-link { margin: 18px 0 0; }
.gh-link a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--text); text-decoration: none; font-size: 14.5px; transition: border-color .2s; }
.gh-link a:hover { border-color: var(--select-line); }
.gh-link .ic { color: var(--fn); }
