/* 3-Way Switch Lab — article + interactive diagram styles */
:root {
  --panel: #fffdf8;
  --panel-grid: rgba(28, 37, 48, .045);
  --box-fill: rgba(255, 255, 255, .7);
  --box-stroke: #cfc7b8;
  --jacket: #e9e4da;
  --diagram-ink: #2d3742;
  --diagram-ink-2: #6b7480;
  --wire-casing: #77808a;
  --body: #f2ead7;
  --body-stroke: #b9ad94;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --panel: #171d23; --panel-grid: rgba(255, 255, 255, .035); --box-fill: rgba(255, 255, 255, .03); --box-stroke: #3a444e;
    --jacket: #2a323a; --diagram-ink: #dfe3e7; --diagram-ink-2: #98a2ad; --wire-casing: #8d969f; --body: rgba(242, 234, 215, .14); --body-stroke: #8a8170;
  }
}
:root[data-theme="dark"] {
  --panel: #171d23; --panel-grid: rgba(255, 255, 255, .035); --box-fill: rgba(255, 255, 255, .03); --box-stroke: #3a444e;
  --jacket: #2a323a; --diagram-ink: #dfe3e7; --diagram-ink-2: #98a2ad; --wire-casing: #8d969f; --body: rgba(242, 234, 215, .14); --body-stroke: #8a8170;
}

/* ---------- article layout ---------- */
.crumbs { font-size: .85rem; color: var(--ink-3); margin: 28px 0 0; }
.crumbs a { color: var(--ink-3); }
.post-head { padding: 18px 0 8px; }
.post-head h1 { max-width: 22ch; }
.post-head .lede { font-size: 1.18rem; color: var(--ink-2); max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-3); font-size: .9rem; margin-top: 4px; }
.prose { max-width: var(--prose); }
.prose h2 { margin-top: 72px; }
.prose h3 { margin-top: 36px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose strong { font-weight: 650; }
section[id] { scroll-margin-top: 100px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 28px 0; font-size: .95rem; }
.toc b { display: block; margin-bottom: 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; column-gap: 28px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.callout { border-radius: var(--radius); padding: 16px 18px; margin: 24px 0; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: .97rem; }
.callout.safety { background: color-mix(in srgb, var(--warn) 9%, var(--bg)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.callout > :last-child { margin-bottom: 0; }
.keypoint { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin: 28px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 440px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.swatch { display: inline-block; width: 26px; height: 9px; border-radius: 5px; vertical-align: middle; margin-right: 8px; border: 1.5px solid var(--wire-casing); }
.sw-black { background: #222; } .sw-red { background: #d63a3a; } .sw-white { background: #fff; } .sw-bare { background: #c8834a; border-color: #8a5a2b; } .sw-green { background: #2f9e44; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 14px 52px; margin: 0 !important; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 .95rem/34px var(--font); text-align: center; }
.steps > li b { display: block; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0 28px; }
.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: .94rem; line-height: 1.55; }
.term .dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; vertical-align: -3px; margin-right: 8px; border: 2px solid rgba(0, 0, 0, .25); }
.term b { font-size: 1.02rem; }
.term p { margin: 8px 0 0; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 28px 12px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.4rem; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 14px; color: var(--ink-2); }
.video-wrap { border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.video-wrap video, .video-wrap iframe { width: 100%; height: 100%; border: 0; }
.sources { font-size: .9rem; color: var(--ink-3); }
.sources li { word-break: break-word; }
.related { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- lab panels ---------- */
.lab { margin: 28px 0 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.lab-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.lab-bar.top { border-top: 0; border-bottom: 1px solid var(--line); }
.lab-bar .grow { flex: 1; }
.wire-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.wire-key b { color: var(--ink); }
.wire-key .key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wire-key svg { width: 60px; height: 18px; flex: none; overflow: visible; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--accent); width: 17px; height: 17px; }
.status { font-weight: 600; color: var(--ink); }
.status span { font-weight: 400; color: var(--ink-3); }
.hl-on { color: #c77700; }
:root[data-theme="dark"] .hl-on { color: var(--live); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl-on { color: var(--live); } }
.hl-warn { display: block; margin-top: 6px; color: var(--warn); font-size: .92em; }
.flip-btn { font: 600 .9rem/1 var(--font); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.flip-btn:hover { border-color: var(--ink); }
.flip-btn .pos { color: var(--accent-ink); }
.diagram { width: 100%; height: auto; background-image: linear-gradient(var(--panel-grid) 1px, transparent 1px), linear-gradient(90deg, var(--panel-grid) 1px, transparent 1px); background-size: 24px 24px; }
.diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram-scroll > svg { min-width: 700px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 22px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: middle; border: 1.5px solid var(--wire-casing); }
.legend i.live { background: rgba(255, 183, 3, .5); border-color: transparent; height: 12px; }
.legend i.flow { background: radial-gradient(circle, #ffd43b 2px, transparent 2.5px) 0 50% / 8px 8px repeat-x; border: 0; }
.concept-grid { display: grid; grid-template-columns: 1fr; }
.caption-box { padding: 16px 18px; border-top: 1px solid var(--line); font-size: 1rem; min-height: 96px; }
.truth { width: 100%; border-collapse: collapse; font-size: .92rem; }
.truth th, .truth td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.truth th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.truth tbody tr { cursor: pointer; transition: background .2s; }
.truth tbody tr:hover { background: var(--bg-alt); }
.truth tr.current { background: var(--accent-soft) !important; box-shadow: inset 4px 0 0 var(--accent); font-weight: 650; }
.truth .on { color: #c77700; font-weight: 700; }
.truth-wrap { border-top: 1px solid var(--line); overflow-x: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { font: 600 .9rem/1.2 var(--font); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- svg circuit ---------- */
.circuit { font-family: var(--font); user-select: none; -webkit-tap-highlight-color: transparent; }
.circuit text { fill: var(--diagram-ink); }
.circuit .box rect { fill: var(--box-fill); stroke: var(--box-stroke); stroke-width: 1.5; stroke-dasharray: 6 5; }
.circuit .box-title { font: 750 13px var(--font); letter-spacing: .08em; }
.circuit .box-sub { font-size: 12px; fill: var(--diagram-ink-2); }
.circuit .jacket rect { fill: var(--jacket); stroke: var(--box-stroke); }
.circuit .jacket-label { font: 700 12px var(--font-mono); fill: var(--diagram-ink-2); }
.circuit .term-label { font: 700 12px var(--font-mono); fill: var(--diagram-ink-2); }
.circuit .note-label { font-size: 11.5px; fill: var(--diagram-ink-2); font-style: italic; }
.circuit .lbl { font-size: 14px; fill: var(--diagram-ink-2); }
.circuit .lbl-strong { font-weight: 700; fill: var(--diagram-ink); font-size: 16px; }
.circuit .lbl-hint { font-size: 12px; fill: var(--accent-ink); }
.circuit .bolt { fill: #f59f00; }

.wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wire .glow { stroke: rgba(255, 183, 3, 0); stroke-width: 16; transition: stroke .25s; }
.wire.live .glow { stroke: rgba(255, 183, 3, .38); }
.wire .casing { stroke: var(--wire-casing); stroke-width: 7.5; }
.wire .core { stroke-width: 4.5; }
.wire .tape { stroke: #111; stroke-width: 6; stroke-linecap: butt; }
.wire .flow { stroke: #ffd43b; stroke-width: 3.6; stroke-dasharray: 0 15; opacity: 0; }
.wire.flowing .flow { opacity: 1; animation: flow .7s linear infinite; }
.wire.flowing.rev .flow { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -15; } }
.c-black .core { stroke: #232323; }
.c-red .core { stroke: #d63a3a; }
.c-white .core { stroke: #fbfbf8; }
.c-blue .core { stroke: #1c7ed6; }
.outlet-body { fill: var(--body); stroke: var(--body-stroke); stroke-width: 1.5; }
.outlet-face { fill: #fbfaf6; stroke: #b9ad94; stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.outlet-slot { fill: #4a4a4a; }
.outlet-on .outlet-face { fill: #ebfbee; stroke: #2f9e44; filter: drop-shadow(0 0 4px rgba(47, 158, 68, .55)); }
.c-bare .casing { stroke: #8a5a2b; stroke-width: 4.5; }
.c-bare .core { stroke: #d39159; stroke-width: 2.4; }
.layer-ground { display: none; }
.show-ground .layer-ground { display: inline; }
.loose-end { fill: #fff; stroke: var(--warn); stroke-width: 2; }

.screw { stroke: rgba(0, 0, 0, .35); stroke-width: 1.5; }
.screw-com { fill: #3b3b3b; }
.screw-brass { fill: #d4a63a; }
.screw-silver { fill: #d9dde2; }
.screw-green { fill: #2f9e44; }
.nut path:first-child { stroke: rgba(0, 0, 0, .3); stroke-width: 1.2; }
.nut-white path:first-child { fill: #f5f5f0; }
.nut-green path:first-child { fill: #37b24d; }
.nut-orange path:first-child { fill: #fd7e14; }
.nut-ridge { fill: none; stroke: rgba(0, 0, 0, .2); stroke-width: 1.2; }
.fixture { fill: var(--body); stroke: var(--body-stroke); }
.fixture-lead { fill: none; stroke: var(--diagram-ink-2); stroke-width: 2; }

/* switches */
.sw-body { fill: var(--body); stroke: var(--body-stroke); stroke-width: 1.5; }
.sw-strap { fill: #a9adb3; }
.stub { stroke: #b08d3c; stroke-width: 3.5; fill: none; stroke-linecap: round; transition: stroke .2s; }
.stub.live { stroke: #f2b01e; }
.stub.conduct { stroke: #ffd43b; filter: drop-shadow(0 0 3px rgba(255, 196, 0, .9)); }
.contact { fill: #b08d3c; }
.pivot { fill: #555; }
.blade { stroke: #8b6e2f; stroke-width: 6; stroke-linecap: round; transform-box: view-box; transition: transform .28s cubic-bezier(.4, 1.6, .6, 1), stroke .2s; }
.blade.live { stroke: #f2b01e; }
.blade.conduct { stroke: #ffd43b; filter: drop-shadow(0 0 4px rgba(255, 196, 0, .9)); }
.pos-label { font: 700 11px var(--font); letter-spacing: .06em; fill: var(--diagram-ink-2) !important; }
.hit { fill: transparent; }
.clickable .hit { cursor: pointer; }
.clickable:hover .sw-body { stroke: var(--accent); stroke-width: 2.5; }
.hit:focus { outline: none; }
.clickable .hit:focus-visible { stroke: var(--accent); stroke-width: 3; }

/* bulbs */
.bulb { fill: #e9e6dc; stroke: #a59f8e; stroke-width: 1.5; transition: fill .25s; }
.filament { fill: none; stroke: #9a927d; stroke-width: 1.5; }
.bulb-base { fill: #9aa0a6; }
.bulb-halo { fill: #ffd43b; opacity: 0; transition: opacity .3s; }
.is-on .bulb { fill: #ffe066; stroke: #f59f00; }
.is-on .filament { stroke: #e67700; }
.is-on .bulb-halo { opacity: .28; }

/* concept */
.style-concept .wire .casing { stroke: var(--box-stroke); stroke-width: 14; }
.style-concept .wire .core { stroke: var(--panel); stroke-width: 7; }
.style-concept .wire .glow { stroke-width: 26; }
.style-concept .wire .flow { stroke-width: 6; stroke-dasharray: 0 20; }
.style-concept .wire.flowing .flow { animation-name: flow-big; }
@keyframes flow-big { to { stroke-dashoffset: -20; } }
.style-concept .road-a .core { stroke: #f4b4b4; }
.style-concept .road-b .core { stroke: #9aa3ad; }
.style-concept .road { font: 800 13px var(--font); letter-spacing: .1em; }
.style-concept .road-a { fill: #c92a2a; }
.style-concept .road-b { fill: var(--diagram-ink); }
.style-concept .blade { stroke-width: 12; stroke: #6b7480; }
.style-concept .blade.live { stroke: #f2b01e; }
.style-concept .contact { fill: var(--diagram-ink-2); }
.style-concept .pivot { fill: var(--diagram-ink); }
.style-concept .clickable:hover .blade { stroke: var(--accent); }
.cp-source circle { fill: #fff4d6; stroke: #f59f00; stroke-width: 2; }

/* scene */
.style-scene .sc-wall { fill: #e9e2d3; }
.style-scene .sc-wall-lower { fill: #e2d9c6; }
.style-scene .sc-slab { fill: #b9ab90; }
.style-scene .sc-stairs { fill: #c9a47a; stroke: #9a7a54; stroke-width: 2; }
.style-scene .sc-rail { stroke: #7a5c3a; stroke-width: 6; stroke-linecap: round; }
.style-scene .sc-post { stroke: #8f6f4a; stroke-width: 3; }
.style-scene .sc-frame rect { fill: #f8f4ea; stroke: #8f7f62; stroke-width: 4; }
.style-scene .sc-frame path { fill: #9fb8a4; }
.style-scene .sc-frame circle { fill: #f2c14e; }
.style-scene .sc-plant { fill: none; stroke: #5c8d5a; stroke-width: 5; stroke-linecap: round; }
.style-scene .sc-panel rect:first-child { fill: #a8b0b8; stroke: #6c757d; stroke-width: 2; }
.style-scene .sc-panel rect + rect, .style-scene .sc-panel rect { }
.style-scene .sc-panel rect:not(:first-child) { fill: #3d4349; }
.style-scene .sc-dark { fill: #0b1220; opacity: .62; transition: opacity .45s ease; pointer-events: none; }
.style-scene.is-on .sc-dark { opacity: 0; }
.style-scene .sc-glow, .style-scene .sc-cone { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.style-scene.is-on .sc-glow { opacity: .55; }
.style-scene.is-on .sc-cone { opacity: .5; }
.style-scene .sc-cord { stroke: #333; stroke-width: 2.5; }
.style-scene .sc-shade { fill: #2f3a44; }
.style-scene .bulb-halo { display: none; }
.style-scene .sc-label { font: 650 15px var(--font); fill: #fff; paint-order: stroke; stroke: rgba(11, 18, 32, .6); stroke-width: 4px; }
.style-scene.is-on .sc-label { fill: #2d3742; stroke: rgba(255, 255, 255, .6); }
.style-scene .sc-tag { font: 700 12px var(--font-mono); fill: #ffd8a8; paint-order: stroke; stroke: rgba(11, 18, 32, .7); stroke-width: 3px; }
.style-scene.is-on .sc-tag { fill: #8a4b0f; stroke: rgba(255, 255, 255, .7); }
.style-scene .wire .casing { stroke-width: 6; stroke: rgba(30, 30, 30, .55); }
.style-scene .wire .core { stroke-width: 3.4; }
.style-scene .wire .glow { stroke-width: 13; }
.style-scene.xray-off .wires, .style-scene.xray-off .sc-cable-tags { display: none; }
.plate { fill: #fbfaf6; stroke: #a8a294; stroke-width: 1.5; }
.paddle-slot { fill: #e4e0d6; }
.paddle { fill: #fff; stroke: #9d968a; stroke-width: 1.5; transition: transform .2s cubic-bezier(.4, 1.6, .6, 1); transform-box: view-box; }
.sw-plate.clickable:hover .plate { stroke: var(--accent); stroke-width: 3; }
.tap-hint circle { fill: none; stroke: #ffd43b; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ping 1.8s ease-out infinite; pointer-events: none; }
.tap-hint circle + circle { animation-delay: .9s; }
.touched .tap-hint { display: none; }
@keyframes ping { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* faults */
.fault-ring { fill: none; stroke: var(--warn); stroke-width: 3; stroke-dasharray: 5 4; animation: spin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- fault game ---------- */
.fg-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fg-tabs button { font: 600 .9rem/1.2 var(--font); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.fg-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fg-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.fg-left, .fg-right { padding: 20px; }
.fg-right { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .fg-body { grid-template-columns: 1fr; } .fg-right { border-left: 0; border-top: 1px solid var(--line); } }
.fg-title { font-size: 1.2rem; margin-bottom: 6px; }
.fg-story { color: var(--ink-2); font-size: .97rem; }
.fg-rig { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; }
.fg-switch { background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font: inherit; padding: 6px; border-radius: 12px; }
.fg-switch:hover .fg-plate { border-color: var(--accent); }
.fg-plate { width: 56px; height: 92px; border-radius: 8px; background: #fbfaf6; border: 2px solid #b9b3a5; display: grid; place-items: start center; padding-top: 12px; }
.fg-plate i { width: 22px; height: 30px; border-radius: 4px; background: #fff; border: 1.5px solid #9d968a; box-shadow: 0 3px 0 #ddd8cc; transition: transform .2s cubic-bezier(.4, 1.6, .6, 1); }
.fg-switch.down .fg-plate i { transform: translateY(34px); box-shadow: 0 -3px 0 #ddd8cc; }
.fg-switch b { font-size: .9rem; }
.fg-switch small { color: var(--accent-ink); font-weight: 600; }
.fg-bulb { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: .85rem; color: var(--ink-3); }
.fg-bulb svg { width: 88px; height: 88px; overflow: visible; }
.fg-bulb circle { fill: #e9e6dc; stroke: #a59f8e; stroke-width: 2; transition: fill .2s, filter .2s; }
.fg-bulb rect { fill: #9aa0a6; }
.fg-bulb.on circle { fill: #ffe066; stroke: #f59f00; filter: drop-shadow(0 0 14px rgba(255, 196, 0, .9)); }
.fg-bulb.on { color: #c77700; }
.fg-bulb.flicker circle { animation: flicker 1.3s infinite steps(1); }
@keyframes flicker { 0%, 100% { opacity: 1; } 12% { opacity: .35; } 16% { opacity: 1; } 47% { opacity: .5; } 50% { opacity: 1; } 71% { opacity: .2; } 73% { opacity: 1; } }
.fg-step { font: 700 .78rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.fg-log { width: 100%; border-collapse: collapse; font-size: .93rem; margin-bottom: 18px; }
.fg-log th, .fg-log td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.fg-log th { font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.fg-log tr.current { background: var(--accent-soft); }
.fg-log .res { font-weight: 700; color: var(--ink-3); }
.fg-log .res.is-on { color: #c77700; }
.fg-options { display: grid; gap: 8px; }
.fg-options button { text-align: left; font: 550 .94rem/1.35 var(--font); padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.fg-options button:hover:not(:disabled) { border-color: var(--ink); }
.fg-options button.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.fg-options button.wrong { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); text-decoration: line-through; opacity: .7; }
.fg-options button:disabled { cursor: default; }
.fg-reveal { border-top: 1px solid var(--line); padding: 20px; }
.fg-verdict { color: var(--ok); }
.fg-why { color: var(--ink-2); }
.fg-svg { width: 100%; height: auto; margin: 8px 0 14px; }
.fg-reveal .btn { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .wire.flowing .flow { animation: none; }
  .tap-hint, .fault-ring { animation: none; }
  .fg-bulb.flicker circle { animation: none; opacity: .6; }
  .blade, .paddle, .fg-plate i { transition: none; }
}
@media print {
  .site-header, .site-footer, .lab-bar, .fg-tabs, .video-wrap { display: none; }
}
