/* Рушій: інвентар, сцена, цілі, кабелі, привид (макет C) */

/* ---------- інвентар ---------- */
.inventory { display: flex; flex-direction: column; gap: 8px; }
.inv-item {
  text-align: left; padding: 14px; background: var(--surface); border: 1px solid transparent; border-radius: var(--radius);
  color: var(--text); font-family: var(--font-body); display: flex; flex-direction: column; gap: 6px;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; min-height: 44px;
  transition: background-color .12s ease, border-color .12s ease;
}
.inv-item:hover { border-color: var(--line); }
.inv-item:active { cursor: grabbing; }
.inv-title { font: 700 15px/1.2 var(--font-display); color: var(--cyan); }
.inv-hint { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.inv-item.is-held { background: var(--pink); }
.inv-item.is-held .inv-title, .inv-item.is-held .inv-hint { color: var(--deep); }
.inv-item.is-held .inv-hint { font-weight: 600; }
.inv-item:disabled { cursor: default; opacity: .5; }
.inv-done {
  padding: 10px 14px; background: var(--surface); border-radius: var(--radius);
  display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px;
}
.inv-done-label { color: var(--text-2); }
.inv-done-mark { font-size: 11px; color: var(--lime); white-space: nowrap; }

/* мініатюра деталі в інвентарі */
.inv-item.has-thumb { flex-direction: row; align-items: center; gap: 12px; }
.inv-thumb { flex: none; width: 56px; height: 40px; display: grid; place-items: center; background: var(--deep); border-radius: 3px; }
.inv-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inv-item.is-held .inv-thumb { background: rgba(11, 12, 15, .25); }

/* ---------- сцена ---------- */
.scene-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.scene-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.scene-deco, .scene-cables { position: absolute; inset: 0; }
.scene-cables { pointer-events: none; overflow: visible; }
.scene-labels, .scene-placed, .scene-targets, .scene-art { position: absolute; inset: 0; pointer-events: none; }
.scene-artobj, .scene-anchor { position: absolute; }
.scene-artobj svg, .scene-anchor svg, .placed.has-art svg, .target.has-art svg { display: block; width: 100%; height: 100%; }
.scene-anchor.is-used .pf { fill: var(--pink); }
.scene-targets .target { pointer-events: auto; }
.scene-label { position: absolute; font: 500 9px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.scene-caption { position: absolute; font-size: 10px; line-height: 1.2; color: var(--text-2); }
.scene-text { position: absolute; line-height: 1.25; }
.scene-text-display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.scene-text-center { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; color: var(--muted); padding: 4px; }
[data-anchor].is-used { fill: var(--pink); }

/* ---------- цілі ---------- */
.target {
  position: absolute; padding: 0; margin: 0; border: 0; border-radius: 2px; cursor: default;
  background: transparent; outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .1s ease, background-color .15s ease;
}
.target-port { background: var(--port-fill, var(--deep)); }
.target-slot { background: #111317; box-shadow: inset 0 0 0 1px var(--line); }
.target-zone { box-shadow: inset 0 0 0 2px var(--line); border-radius: var(--radius); display: grid; place-items: center; }
.target-zone-label { font-size: 11px; color: var(--muted); padding: 4px; text-align: center; }
.target.is-cand { outline: 2px dashed var(--pink); cursor: pointer; }
.target.is-cand:focus-visible { box-shadow: var(--focus); }
.target.is-hover { outline: 3px solid var(--pink); outline-offset: 1px; }
.target.is-filled:not(.target-port) { background: transparent; box-shadow: none; }
.target.is-filled .target-zone-label { display: none; }
.target-port.is-plugged { background: var(--pink); }
/* порт із малюнком: форма роз'єму замість прямокутника */
.target.has-art, .target.has-art.is-filled { background: transparent; box-shadow: none; }
.target.has-art.is-plugged .pf { fill: var(--pink) !important; }
/* «прозора» ціль поверх намальованого слота (плата М1): лише рамки підсвічування */
.target-ghost, .target-ghost.is-filled { background: transparent; box-shadow: none; }
.target.is-wrong { animation: shake .35s ease; outline: 3px solid var(--pink) !important; }
.target.is-ok { animation: pop .3s ease; }
@keyframes shake { 0%,100% { translate: 0 } 25% { translate: -4px 0 } 75% { translate: 4px 0 } }
@keyframes pop { 0% { scale: 1 } 50% { scale: 1.12 } 100% { scale: 1 } }

/* вибір зі списку (мережа, пристрій Bluetooth) і кнопки на пристроях */
.target-option {
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 3px;
  display: flex; align-items: center; padding: 0 10px; text-align: left;
}
.target-option-label { font: 600 12px/1.2 var(--font-body); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.target-option.is-chosen, .target-option.is-chosen.is-filled { background: var(--lime); box-shadow: none; }
.target-option.is-chosen .target-option-label { color: var(--deep); }
.target-option.is-chosen .target-option-label::before { content: ''; display: inline-block; width: 7px; height: 12px; margin: 0 8px -1px 0; border: solid var(--deep); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }

/* ---------- встановлені деталі ---------- */
.placed {
  position: absolute; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--cyan); color: var(--deep); border-radius: 2px;
  font: 600 10px/1.15 var(--font-body); padding: 2px; overflow: hidden;
}
.placed-round { border-radius: 50%; }
.placed.has-art { background: none !important; box-shadow: none !important; padding: 0; overflow: visible; }
.placed.has-art::after { display: none; }
.placed.has-art.has-caption { flex-direction: column; gap: 2px; background: var(--surface-2) !important; border-radius: 4px; padding: 4px; }
.placed.has-art.has-caption svg { height: auto; flex: 1; min-height: 0; }
.placed-caption { font: 600 10px/1.1 var(--font-body); color: var(--text); text-align: center; }
.placed.snap { animation: snap .28s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes snap { 0% { transform: scale(.82); opacity: .4 } 100% { transform: scale(1); opacity: 1 } }

/* плата як підкладка: підпис угорі зліва */
.placed.board {
  background: #20242E; box-shadow: inset 0 0 0 1px var(--line); border-radius: 4px; color: var(--muted);
  align-items: flex-start; justify-content: flex-start; padding: 8px 14px;
  font: 500 9px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em;
}
.placed.psu { background: var(--surface-2); color: var(--text-2); border-radius: 4px; font-size: 11px; }
.placed.gpu {
  background:
    radial-gradient(circle at 22% 50%, var(--deep) 0 9px, transparent 10px),
    radial-gradient(circle at 42% 50%, var(--deep) 0 9px, transparent 10px),
    var(--lime);
  justify-content: flex-end; padding-right: 18px; font-family: var(--font-display); font-size: 9px; text-transform: uppercase; letter-spacing: .04em;
}
.placed.cooler { background: var(--surface-2); box-shadow: inset 0 0 0 3px var(--cyan); color: var(--cyan); font-size: 9px; }
.placed.cooler::after { content: ''; position: absolute; width: 36%; height: 36%; border-radius: 50%; background: var(--cyan); }
.placed.cpu { background: #C9CFDA; font-family: var(--font-display); font-size: 11px; }
.placed.ram { background: var(--cyan); }
.placed.dongle { background: var(--lime); }

/* ---------- кабелі ---------- */
.cable-under { fill: none; stroke: var(--deep); stroke-width: 9; stroke-linecap: round; opacity: .55; }
.cable-line { fill: none; stroke: var(--pink); stroke-width: 5; stroke-linecap: round; }
.cable-live .cable-line { stroke-dasharray: 2 9; stroke-width: 5; opacity: .9; }
.cable-live .cable-under { opacity: .25; }

/* ---------- привид під курсором ---------- */
.drag-ghost {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  min-width: 150px; padding: 14px 16px; background: var(--pink); color: var(--deep); border-radius: 6px;
  box-shadow: 0 14px 0 rgba(0, 0, 0, .35);
  font: 700 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em;
  will-change: transform; display: flex; align-items: center; gap: 12px;
}
.drag-ghost-art { display: grid; place-items: center; background: var(--deep); border-radius: 4px; padding: 3px; }
.drag-ghost.is-returning { transition: transform .25s ease, opacity .25s ease; opacity: .4; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }

/* ---------- обертання вентиляторів (фінал) ---------- */
.fan.is-spinning { animation: spin 0.6s linear infinite; }

/* =========================================================
   Мапа місій
   ========================================================= */
.map-total { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-display); text-transform: uppercase; color: var(--lime); }
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mcard {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.mcard.is-open { border-color: var(--cyan); }
.mcard.is-open::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--cyan); border-radius: var(--radius) var(--radius) 0 0; }
.mcard.is-done::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--lime); border-radius: var(--radius) var(--radius) 0 0; }
.mcard.is-locked { background: transparent; border-style: dashed; }
.mcard.is-locked .mcard-title, .mcard.is-locked .mcard-blurb { color: var(--muted); }
.mcard-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mcard-num { font: 500 11px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mcard-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mcard-title { font-size: 17px; }
.mcard-blurb { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.mcard-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mcard-xp { font: 500 12px/1 var(--font-display); color: var(--lime); }
.mcard-hint { font-size: 13px; color: var(--muted); }
.mcard-actions { margin-left: auto; display: flex; gap: 8px; }
.mcard-actions .btn { min-height: 40px; font-size: 12px; text-decoration: none; }
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--surface-2); display: inline-flex; }
.star.on { color: var(--lime); }
@media (max-width: 1180px) { .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mgrid { grid-template-columns: minmax(0, 1fr); } .mcard { min-height: 0; } }

/* =========================================================
   Екран місії: 240 / 1fr / 300
   ========================================================= */
.mission {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 16px;
  height: calc(100vh - var(--hud-h)); padding: 16px 24px 24px; min-height: 560px;
}
/* ноутбук і планшет: вужчі бічні колонки, більше місця сцені */
@media (max-width: 1279px) {
  .mission { grid-template-columns: 200px minmax(0, 1fr) 248px; gap: 12px; padding: 12px; }
  .mcol-right { padding: 16px; }
  .card-title { font-size: 19px; }
  .inv-item { padding: 10px; }
  .inv-item.has-thumb { gap: 8px; }
  .inv-thumb { width: 44px; height: 32px; }
  .inv-thumb svg { width: 40px; height: 28px; }
  .inv-title { font-size: 12px; }
  .inv-hint { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .stage { padding: 4px; }
  .stage-scene { inset: 4px; }
}
.mcol { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
.mcol-left { overflow-y: auto; padding-right: 2px; }
.col-title { font: 500 11px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 0; }
.col-spacer { flex: 1; }

.brief { padding: 14px 18px; background: linear-gradient(90deg, rgba(45, 226, 230, .16), rgba(45, 226, 230, .04) 60%), var(--surface);
  border: 2px solid var(--cyan); border-radius: var(--radius); font-size: 17px; font-weight: 600; color: var(--text);
  display: flex; gap: 14px; align-items: center; min-height: 56px; box-shadow: 0 0 0 4px rgba(45, 226, 230, .08); }
.brief-text { line-height: 1.35; }
.brief.is-flash { animation: brief-flash 1.6s ease-out; }
@keyframes brief-flash {
  0%, 30% { box-shadow: 0 0 0 4px rgba(45, 226, 230, .55), 0 0 28px rgba(45, 226, 230, .45); transform: scale(1.01); }
  100% { box-shadow: 0 0 0 4px rgba(45, 226, 230, .08); transform: none; }
}
@media (prefers-reduced-motion: reduce) { .brief.is-flash { animation: none; } }
.brief-chip { flex: none; font: 700 11px/1 var(--font-display); text-transform: uppercase; background: var(--cyan); color: var(--deep); padding: 5px 8px; border-radius: 3px; }

.stage { position: relative; flex: 1; min-height: 0; background: var(--surface); border-radius: var(--radius); padding: 8px; }
.stage-scene, .stage-alt { position: absolute; inset: 8px; }
.stage-alt { overflow-y: auto; padding: 24px 32px; }

.feedback { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.feedback:empty { display: none; }
.fb { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; display: flex; gap: 12px; align-items: center; line-height: 1.4; }
.fb svg { flex: none; }
.fb-ok { background: var(--lime); color: var(--deep); font-weight: 600; }
.fb-xp { flex: none; font: 700 12px/1 var(--font-display); }
.fb-error { background: rgba(255, 61, 129, .12); color: var(--error-text); box-shadow: inset 3px 0 0 var(--pink); }
.fb-info { background: rgba(45, 226, 230, .08); color: var(--text-2); box-shadow: inset 3px 0 0 var(--cyan); }
.fb-done { background: var(--surface-2); color: var(--lime); font-weight: 600; }

.stepchips { display: flex; gap: 6px; }
.stepchip { flex: 1; text-align: center; padding: 9px 2px; background: var(--surface-2); color: var(--text-2); border-radius: 3px; font: 700 9px/1 var(--font-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepchip.is-done { background: var(--lime); color: var(--deep); }
.stepchip.is-current { background: var(--pink); color: var(--deep); }

.mcol-right { background: var(--surface); border-radius: var(--radius); padding: 20px; overflow-y: auto; }
.card-body { display: flex; flex-direction: column; gap: 14px; }
.card-title { font-size: 22px; color: var(--pink-soft); text-transform: none; }
.card-title.is-how { font-size: 18px; color: var(--cyan); text-transform: uppercase; }
.card-text { font-size: 14px; line-height: 1.5; }
.specs { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.spec { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--surface-2); border-radius: 3px; }
.spec span { color: var(--text-2); }
.spec b { font-weight: 600; color: var(--cyan); text-align: right; }
.card-mistake { padding: 12px; background: var(--deep); border-radius: 3px; font-size: 13px; line-height: 1.5; color: var(--error-text); }
.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.card-action { margin-top: auto; padding-top: 16px; }
.card-action:empty { display: none; }

/* =========================================================
   Тест
   ========================================================= */
.quiz { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.quiz-progress { display: flex; gap: 6px; }
.qdot { width: 36px; height: 6px; border-radius: 3px; background: var(--surface-2); }
.qdot.is-current { background: var(--cyan); }
.qdot.is-right { background: var(--lime); }
.qdot.is-wrong { background: var(--pink); }
.quiz-q { font-size: 22px; text-transform: none; line-height: 1.3; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.qopt {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; text-align: left;
  background: var(--surface-2); color: var(--text); border: 2px solid transparent; border-radius: var(--radius);
  font: 400 16px/1.4 var(--font-body); cursor: pointer;
}
.qopt:hover:not(:disabled) { border-color: var(--cyan); }
.qopt:disabled { cursor: default; }
.qopt-letter { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 3px; background: var(--deep); font: 700 13px/1 var(--font-display); color: var(--cyan); }
.qopt.is-right { border-color: var(--lime); }
.qopt.is-right .qopt-letter { background: var(--lime); color: var(--deep); }
.qopt.is-wrong { border-color: var(--pink); }
.qopt.is-wrong .qopt-letter { background: var(--pink); color: var(--deep); }
.qopt:disabled:not(.is-right):not(.is-wrong) { opacity: .6; }
.quiz-explain { padding: 16px; border-radius: var(--radius); background: var(--deep); display: flex; flex-direction: column; gap: 10px; }
.quiz-explain.is-right { box-shadow: inset 3px 0 0 var(--lime); }
.quiz-explain.is-wrong { box-shadow: inset 3px 0 0 var(--pink); }
.quiz-verdict { display: flex; align-items: center; gap: 8px; font: 700 13px/1 var(--font-display); text-transform: uppercase; }
.quiz-explain.is-right .quiz-verdict { color: var(--lime); }
.quiz-explain.is-wrong .quiz-verdict { color: var(--pink-soft); }
.quiz-xp { margin-left: auto; color: var(--lime); }
.quiz-explain p { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.quiz-actions { display: flex; justify-content: flex-end; }

/* =========================================================
   Підсумок
   ========================================================= */
.summary { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.summary-title { font-size: 26px; color: var(--lime); }
.summary-stars { display: flex; gap: 10px; }
.summary-stars .star { animation: starpop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes starpop { 0% { transform: scale(.3) rotate(-30deg); opacity: 0 } 100% { transform: none; opacity: 1 } }
.summary-text { color: var(--text-2); }
.summary-table { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.srow { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--surface-2); border-radius: 3px; font-size: 14px; }
.srow span { color: var(--text-2); }
.srow b { color: var(--cyan); font-weight: 600; }
.srow.is-total { background: var(--lime); }
.srow.is-total span, .srow.is-total b { color: var(--deep); font-family: var(--font-display); font-size: 13px; text-transform: uppercase; }
.summary-mistakes { font-size: 13px; color: var(--muted); }
.summary-status { width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.summary-status .notice { width: 100%; text-align: left; }
.levelup { font: 700 16px/1 var(--font-display); text-transform: uppercase; color: var(--deep); background: var(--cyan); padding: 10px 14px; border-radius: var(--radius); }
.summary-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.summary-actions .btn { text-decoration: none; }

/* =========================================================
   Фінал (М8): запуск робочого місця
   ========================================================= */
.finale-only { opacity: 0; transition: opacity .6s ease .2s; }
.stage-scene.is-on .finale-only { opacity: 1; }
.stage-scene.is-on .finale-off { opacity: 0; transition: opacity .3s ease; }
.stage-scene.is-on .fan { animation: spin .7s linear infinite; }
.finale-total { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--lime); text-align: left; width: 100%; }
.finale-total b { font: 700 14px/1.2 var(--font-display); text-transform: uppercase; color: var(--lime); }
.finale-total span { color: var(--text-2); font-size: 14px; }

/* =========================================================
   Довідник
   ========================================================= */
.hb-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hb-section { margin-top: 28px; }
.hb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hb-head h2 { font-size: 16px; }
.hb-count { font: 500 12px/1 var(--font-display); color: var(--muted); }
.hb-count.is-full { color: var(--lime); }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hb-card { background: var(--surface); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.hb-title { font-size: 17px; color: var(--pink-soft); text-transform: none; }
.hb-text { font-size: 14px; line-height: 1.5; }
.hb-locked { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 80px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 14px; text-align: center; }
.hb-locked-wide { justify-content: flex-start; }

/* екран запуску після останнього раунду фіналу */
.finale-overlay {
  position: absolute; inset: 8px; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(11, 12, 15, .88); border-radius: var(--radius); text-align: center; padding: 24px; animation: fadein .4s ease;
}
.finale-overlay h2 { font-size: 28px; color: var(--lime); }
.finale-overlay p { color: var(--text-2); max-width: 420px; }
.finale-fan { color: var(--lime); animation: spin 2.4s linear infinite; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.stepchip[title] { cursor: default; }

/* поп-ап завдання */
dialog.dlg-task { max-width: 460px; width: calc(100% - 48px); border: 2px solid var(--cyan); box-shadow: 0 0 40px rgba(45, 226, 230, .25); }
dialog.dlg-task .dlg { align-items: flex-start; gap: 14px; }
dialog.dlg-task .brief-chip { font-size: 12px; }
dialog.dlg-task h2 { font: 700 22px/1.2 var(--font-display); color: var(--text); }
dialog.dlg-task .dlg-task-text { font-size: 17px; line-height: 1.45; color: var(--text); }
dialog.dlg-task .btn { margin-top: 6px; }

/* фінал: пронумеровані зони кроків; поточна підсвічена, наступні приглушені */
.stage-scene .zone { transition: stroke .2s, opacity .2s; }
.stage-scene[data-step="1"] .zone-1, .stage-scene[data-step="2"] .zone-2, .stage-scene[data-step="3"] .zone-3 { stroke: var(--cyan); stroke-width: 2.5; animation: zone-pulse 1.6s ease-in-out infinite; }
@keyframes zone-pulse { 50% { stroke-opacity: .35; } }
.stage-scene[data-step="1"] [data-target^="q_"] { opacity: .35; }
.stage-scene[data-step="1"] .zone-2:not(.zone), .stage-scene[data-step="1"] .zone-3:not(.zone), .stage-scene[data-step="2"] .zone-3:not(.zone) { opacity: .4; }
.stage-scene[data-step="3"] [data-target^="q_"]:not(.is-chosen) { opacity: .35; }
/* кнопка живлення — окремий вигляд, не схожий на варіанти */
.target-option[data-target="power_btn"] { background: rgba(184, 242, 58, .12); border: 2px solid var(--lime); border-radius: 22px; }
.target-option[data-target="power_btn"] .target-option-label { font: 700 13px/1 var(--font-display); color: var(--lime); text-transform: uppercase; }
.stage-scene[data-step="1"] .target-option[data-target="power_btn"] { animation: power-pulse 1.4s ease-in-out infinite; }
@keyframes power-pulse { 50% { box-shadow: 0 0 0 6px rgba(184, 242, 58, .25); } }
.target-option[data-target="power_btn"].is-chosen { border-color: var(--lime); }
@media (prefers-reduced-motion: reduce) { .stage-scene .zone, .target-option[data-target="power_btn"] { animation: none !important; } }
/* інвентар: номер кроку; ще не час — приглушено; поточний — виділено */
.inv-item.has-num { flex-direction: row; align-items: center; gap: 12px; }
.inv-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2, #2A2E38); color: var(--text-2); font: 700 13px/1 var(--font-display); }
.inv-item.has-num .inv-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inv-item.is-next .inv-num { background: var(--cyan); color: var(--deep); }
.inv-item.has-num.is-next { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.inv-item.is-later { opacity: .45; }
.target-option[data-target="power_btn"].is-chosen .target-option-label { color: var(--deep); }
