/* CHAIN REACTION: needy group (valve, capacitor, knob) + pgauge, fusewire, radio. Built on kit.css. */

/* ---------- shared: the needy countdown ---------- */
.nd-count-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nd-count-wrap small, .cp-left > small, .rd-meter small, .fw-screen small { font: 800 11px var(--mono); letter-spacing: 2px; color: rgba(255,255,255,.55); }
.nd-count { font-size: 34px; min-width: 76px; text-align: center; padding: 6px 10px; }
.nd-count.hot { animation: nd-blink 500ms steps(2) infinite; }
@keyframes nd-blink { 50% { opacity: .35; } }
.nd-flash { animation: nd-blink 300ms steps(2) 2; }

/* ---------- pressure valve ---------- */
.vl-mod { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 26px 22px 30px; box-sizing: border-box; }
.vl-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.vl-pipe { position: relative; width: 210px; height: 74px; display: flex; align-items: center; }
.vl-pipe::before { content: ''; position: absolute; left: 0; right: 30px; top: 24px; height: 26px; border-radius: 4px;
  background: linear-gradient(180deg, #9aa1a8, #d8dce0 30%, #6d747b 70%, #3b4046); box-shadow: 0 3px 6px rgba(0,0,0,.6); }
.vl-pipe::after { content: ''; position: absolute; left: 34px; top: 18px; width: 14px; height: 38px; border-radius: 3px; background: linear-gradient(90deg, #6d747b, #c4c9ce, #555b61); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.vl-wheel-wrap { position: absolute; right: 0; top: -4px; width: 84px; height: 84px; }
.vl-wheel { width: 84px; height: 84px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.6)); }
.vl-wheel.spin { animation: vl-spin 900ms cubic-bezier(.3,.7,.4,1); }
@keyframes vl-spin { to { transform: rotate(-360deg); } }
.vl-rim { fill: none; stroke: #c0392b; stroke-width: 9; }
.vl-spoke { fill: #a52a1f; }
.vl-hub { fill: #d6d9dc; stroke: #3b4046; stroke-width: 3; }
.vl-steam { position: absolute; left: -10px; top: 10px; width: 60px; height: 60px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.85), rgba(255,255,255,0) 70%); }
.vl-steam.puff { animation: vl-puff 1s ease-out; }
@keyframes vl-puff { 0% { opacity: .9; transform: translate(0,0) scale(.5); } 100% { opacity: 0; transform: translate(-30px,-40px) scale(2.2); } }
.vl-screen { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vl-q { width: 316px; height: 84px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 22px; letter-spacing: 1px; line-height: 1.25; white-space: normal; }
.vl-rev-wrap { display: flex; align-items: center; gap: 8px; }
.vl-rev-wrap small { font: 900 13px var(--mono); letter-spacing: 3px; color: #f2d27a; }
.vl-rev { width: 16px; height: 16px; }
.vl-btns { display: flex; gap: 34px; }
.vl-btn { width: 120px; height: 72px; font-size: 36px; }
.vl-y { color: #0d3b1e; background: linear-gradient(180deg, #a7f3c0, #2fbf62 55%, #1d8a44); box-shadow: 0 6px 0 #0d4a24, 0 8px 12px rgba(0,0,0,.55), inset 0 2px 1px rgba(255,255,255,.6), inset 0 -3px 4px rgba(0,0,0,.25); }
.vl-n { color: #fff; background: linear-gradient(180deg, #ff8a7e, #d6342a 55%, #a52119); box-shadow: 0 6px 0 #5e120d, 0 8px 12px rgba(0,0,0,.55), inset 0 2px 1px rgba(255,255,255,.5), inset 0 -3px 4px rgba(0,0,0,.3); }
.vl-y:active, .vl-n:active { transform: translateY(5px); box-shadow: 0 1px 0 #222, 0 2px 4px rgba(0,0,0,.5); }

/* ---------- capacitor ---------- */
.cp-mod { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-around; padding: 24px 18px; box-sizing: border-box; }
.cp-left { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cp-tubewrap { display: flex; gap: 6px; }
.cp-ticks { display: flex; flex-direction: column; justify-content: space-between; height: 300px; font: 800 12px var(--mono); color: rgba(255,255,255,.6); text-align: right; padding: 2px 0; }
.cp-ticks span { line-height: 1; }
.cp-tube { position: relative; width: 66px; height: 300px; border-radius: 33px; overflow: hidden; background: #0d0f11;
  box-shadow: inset 0 0 0 4px #b9c0c7, inset 0 0 0 7px #3b4046, inset 0 6px 16px #000, 0 4px 10px rgba(0,0,0,.6); }
.cp-red { position: absolute; left: 0; right: 0; top: 0; height: 25%; background: repeating-linear-gradient(135deg, rgba(255,59,48,.18) 0 6px, transparent 6px 12px); border-bottom: 2px dashed rgba(255,90,78,.7); }
.cp-fill { position: absolute; left: 7px; right: 7px; bottom: 7px; max-height: calc(100% - 14px); border-radius: 0 0 26px 26px;
  background: linear-gradient(90deg, #a16207, #facc15 40%, #fde68a 55%, #ca8a04); box-shadow: 0 0 16px rgba(250,204,21,.7); transition: height 120ms linear; }
.cp-fill.danger { background: linear-gradient(90deg, #7a1410, #ff3b30 40%, #ff9b94 55%, #b91c1c); box-shadow: 0 0 18px rgba(255,59,48,.8); animation: nd-blink 600ms steps(2) infinite; }
.cp-glass { position: absolute; inset: 0; border-radius: 33px; background: linear-gradient(90deg, transparent 15%, rgba(255,255,255,.22) 30%, transparent 45%); pointer-events: none; }
.cp-right { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cp-lamp-row { display: flex; align-items: center; gap: 14px; }
.cp-lamp.big { width: 50px; height: 50px; }
.cp-lamp.flick { animation: nd-blink 180ms steps(2) infinite; }
.cp-lamp-lbl { display: flex; flex-direction: column; font: 900 16px var(--mono); letter-spacing: 2px; color: #e8eaec; }
.cp-lamp-lbl small { font-size: 11px; color: rgba(255,255,255,.55); }
.cp-pct { font-size: 32px; min-width: 90px; text-align: center; }
.cp-leverwrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cp-leverwrap small { font: 800 11px var(--mono); letter-spacing: 1px; color: rgba(255,255,255,.6); }
.cp-lever { position: relative; width: 130px; height: 150px; border: none; padding: 0; background: none; cursor: pointer; touch-action: none; }
.cp-slot { position: absolute; left: 55px; top: 8px; width: 20px; height: 134px; border-radius: 10px; background: #0d0f11; box-shadow: inset 0 3px 8px #000, 0 1px 0 rgba(255,255,255,.15); }
.cp-handle { position: absolute; left: 0; right: 0; top: 4px; height: 50px; transition: top 90ms; }
.cp-handle::before { content: ''; position: absolute; left: 59px; top: 30px; width: 12px; height: 26px; background: linear-gradient(90deg, #6d747b, #d8dce0, #555b61); }
.cp-grip { position: absolute; left: 6px; right: 6px; top: 0; height: 38px; border-radius: 19px;
  background: linear-gradient(180deg, #ffd66b, #f0a92a 55%, #c27c0e); box-shadow: 0 5px 0 #6b4306, 0 7px 10px rgba(0,0,0,.6), inset 0 2px 1px rgba(255,255,255,.6); }
.cp-lever.held .cp-handle { top: 92px; }
.cp-lever.held .cp-grip { box-shadow: 0 1px 0 #6b4306, 0 2px 4px rgba(0,0,0,.6), inset 0 2px 3px rgba(0,0,0,.25); }

/* ---------- knob ---------- */
.kn-mod { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 26px 20px 22px; box-sizing: border-box; }
.kn-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.kn-leds { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; }
.kn-row { display: flex; gap: 14px; }
.kn-led { width: 18px; height: 18px; }
.kn-mid { display: flex; align-items: center; gap: 14px; }
.kn-turn { width: 56px; height: 64px; font-size: 22px; }
.kn-dial { position: relative; width: 210px; height: 210px; }
.kn-lbl { position: absolute; font: 900 15px var(--mono); letter-spacing: 1px; color: #e8eaec; text-shadow: 0 1px 0 #000; }
.kn-up { top: 0; left: 50%; transform: translateX(-50%); }
.kn-down { bottom: 0; left: 50%; transform: translateX(-50%); }
.kn-left { left: -4px; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.kn-right { right: -8px; top: 50%; transform: translateY(-50%) rotate(90deg); }
.kn-skirt { position: absolute; inset: 24px; border-radius: 50%; background: repeating-conic-gradient(#3a3f45 0 4deg, #22262a 4deg 8deg); box-shadow: 0 6px 14px rgba(0,0,0,.7); }
.kn-cap { position: absolute; inset: 38px; border-radius: 50%; transition: transform 220ms cubic-bezier(.3,.8,.3,1);
  background: radial-gradient(circle at 40% 30%, #6b7178, #2e3237 60%, #1d2024); box-shadow: inset 0 2px 2px rgba(255,255,255,.25), inset 0 -4px 8px rgba(0,0,0,.6), 0 2px 4px rgba(0,0,0,.6); }
.kn-pointer { position: absolute; left: 50%; top: 6px; width: 10px; height: 48px; margin-left: -5px; border-radius: 5px; background: #f3f0e6; box-shadow: 0 0 6px rgba(255,255,255,.4); }
.kn-pointer::before { content: ''; position: absolute; left: -6px; top: -4px; border: 11px solid transparent; border-bottom-color: #f3f0e6; border-top: 0; }

/* ---------- pressure gauge ---------- */
.pg-mod { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 18px 26px; box-sizing: border-box; }
.pg-dialwrap { position: relative; width: 268px; height: 268px; }
.pg-face { width: 268px; height: 268px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); }
.pg-bezel { fill: #b9c0c7; stroke: #3b4046; stroke-width: 4; }
.pg-dialbg { fill: #f3f0e6; stroke: #7d848b; stroke-width: 2; }
.pg-redzone { fill: none; stroke: #e04434; stroke-width: 10; opacity: .8; }
.pg-tick { stroke: #222; stroke-width: 2; }
.pg-tick.major { stroke-width: 4; }
.pg-num { font: 800 17px var(--mono); fill: #222; text-anchor: middle; }
.pg-unit { font: 800 13px var(--mono); fill: #666; text-anchor: middle; letter-spacing: 2px; }
.pg-peg { fill: #e11d1d; stroke: #7a0c0c; stroke-width: 2; }
.pg-needle { transition: transform 260ms cubic-bezier(.3,1.5,.5,1); }
.pg-needle-p { fill: #1b1d20; }
.pg-hub { fill: #3b4046; stroke: #b9c0c7; stroke-width: 3; }
.pg-tag { position: absolute; left: -40px; top: 0; transform: rotate(-8deg); display: flex; flex-direction: column; align-items: center; padding: 4px 12px 6px; border-radius: 4px;
  background: #f2d27a; color: #1f2226; box-shadow: 0 2px 5px rgba(0,0,0,.6); }
.pg-tag small { font: 800 10px var(--mono); letter-spacing: 2px; }
.pg-tag b { font: 900 26px var(--mono); }
.pg-lcdwrap { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); }
.pg-lcd { font-size: 24px; padding: 4px 10px; }
.pg-btns { display: flex; align-items: center; gap: 18px; }
.pg-step { width: 84px; height: 58px; font-size: 22px; }
.pg-set { width: 110px; height: 64px; font-size: 22px; }

/* ---------- fuse wire ---------- */
.fw-mod { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-around; padding: 30px 20px; box-sizing: border-box; }
.fw-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.fw-screen { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fw-k { font-size: 40px; min-width: 80px; text-align: center; }
.fw-warn { background: var(--grain), linear-gradient(180deg, #f5c518, #c99a0b); }
.fw-bay { position: relative; width: 350px; height: 170px; }
.fw-post { position: absolute; top: 50%; width: 52px; height: 72px; margin-top: -36px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(180deg, #d8dce0, #8a9198 60%, #5d636a); box-shadow: 0 4px 8px rgba(0,0,0,.7); z-index: 2; }
.fw-post.l { left: 14px; } .fw-post.r { right: 14px; }
.fw-wire { position: absolute; left: 50px; right: 50px; top: 50%; height: 30px; margin-top: -15px; }
.fw-half { position: absolute; top: 0; height: 30px; width: 51%; background-size: auto, auto; border-radius: 15px; transition: transform 300ms, width 300ms;
  background: repeating-linear-gradient(70deg, rgba(0,0,0,.18) 0 4px, transparent 4px 10px), linear-gradient(180deg, var(--wc-hi), var(--wc) 45%, var(--wc-lo));
  box-shadow: 0 5px 8px rgba(0,0,0,.6); }
.fw-half.l { left: 0; border-radius: 15px 0 0 15px; } .fw-half.r { right: 0; border-radius: 0 15px 15px 0; }
.fw-red { --wc-hi: #ff8a7e; --wc: #d6342a; --wc-lo: #7a1410; }
.fw-blue { --wc-hi: #93c5fd; --wc: #2563eb; --wc-lo: #173d7a; }
.fw-yellow { --wc-hi: #fff3a3; --wc: #eab308; --wc-lo: #8a6d00; }
.fw-white { --wc-hi: #ffffff; --wc: #d8dde3; --wc-lo: #8a9198; }
.fw-wire.cut .fw-half.l { transform: rotate(10deg) translateY(10px); width: 44%; }
.fw-wire.cut .fw-half.r { transform: rotate(-10deg) translateY(10px); width: 44%; }
.fw-tape { position: absolute; left: 50%; top: -4px; width: 34px; height: 38px; margin-left: -17px; border-radius: 4px; opacity: 0;
  background: repeating-linear-gradient(0deg, #2a2a2a 0 5px, #3a3a3a 5px 7px); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.fw-wire.spliced .fw-tape { opacity: 1; }
.fw-wire.cut .fw-tape { opacity: 0; }
.fw-hit { position: absolute; left: 60px; right: 60px; top: 50%; height: 80px; margin-top: -40px; border: none; background: none; cursor: crosshair; z-index: 3; }

/* ---------- radio tuner ---------- */
.rd-mod { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 24px 16px 26px; box-sizing: border-box; }
.rd-band { position: relative; width: 352px; height: 84px; border-radius: 8px; padding: 0 20px; box-sizing: border-box;
  background: linear-gradient(180deg, #f6eed2, #e6d9ae); box-shadow: inset 0 0 0 3px #3b4046, inset 0 4px 10px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.5); }
.rd-scale { position: absolute; left: 22px; right: 22px; top: 10px; height: 60px; }
.rd-scale i { position: absolute; top: 0; width: 2px; height: 12px; margin-left: -1px; background: #333; }
.rd-scale i.maj { height: 20px; width: 3px; }
.rd-scale span { position: absolute; top: 24px; transform: translateX(-50%); font: 800 15px var(--mono); color: #222; }
.rd-needle { position: absolute; top: -6px; width: 4px; height: 70px; margin-left: -2px; background: #e11d1d; box-shadow: 0 0 6px rgba(225,29,29,.7); transition: left 150ms; }
.rd-fm { position: absolute; right: 10px; bottom: 3px; font: 800 9px var(--mono); letter-spacing: 1px; color: #6b5d3a; }
.rd-row { width: 352px; display: flex; align-items: center; justify-content: space-between; }
.rd-freq { font-size: 34px; min-width: 130px; text-align: center; white-space: pre; }
.rd-meter { display: flex; align-items: flex-end; gap: 10px; padding: 8px 12px; }
.rd-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.rd-bars i { width: 12px; border-radius: 2px; background: #2a2e33; box-shadow: inset 0 1px 2px #000; }
.rd-bars i.on { background: #6dfb9a; box-shadow: 0 0 8px rgba(109,251,154,.7); }
.rd-ticker { width: 352px; box-sizing: border-box; font-size: 28px; letter-spacing: 4px; white-space: pre; overflow: hidden; text-align: left; padding: 6px 14px; }
.rd-ticker.static { color: #6b4e1f; text-shadow: none; }
.rd-ctl { display: flex; align-items: center; gap: 10px; }
.rd-step { width: 58px; height: 56px; font-size: 18px; letter-spacing: -2px; padding: 0; }
.rd-tune { width: 92px; height: 60px; font-size: 18px; }

/* ---------- expert manual bits ---------- */
.mp .nd-mono { font-family: var(--mono); font-weight: 800; letter-spacing: 1px; color: var(--hazard); white-space: nowrap; }
table.rules.nd-qtable td { padding: 9px 14px; font-size: 19px; }
table.rules.nd-knob { max-width: 640px; }
table.rules .nd-head td { background: none; font-size: 16px; color: var(--dim); padding: 2px 16px; }
table.rules td.nd-big { font: 900 30px var(--mono); text-align: center; }
table.rules.nd-calls { max-width: 420px; }
table.rules.nd-calls td { padding: 8px 16px; font-size: 24px; }
