/* ==========================================================================
   Accessories overview (/accessories/) + DongleMaster page (/accessories/donglemaster/)
   Prefixes: ax- (overview), tio- (2-in-1 demo), ft- (feet), usb- (cable), cx- (matrix),
             dm- / chaos / fw / five / sch (DongleMaster page). Builds on site.css + demos.css + product.css.
   ========================================================================== */

/* Anchored sections clear the sticky header + sub-nav */
.ax-sec[id] { scroll-margin-top: 64px; }
.ax-k { margin: 0 0 4px; font-size: var(--fs-md); }
.ax-note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; max-width: 80ch; }
.ax-note .ico { width: 18px; height: 18px; color: var(--muted); margin-top: 3px; }
.ax-note .price { font-size: 0.95rem; }
.ax-note > span { flex: 1; }

/* ---------- Overview hero: a plain, aligned grid of the real products ---------- */
.ax-hero { padding-bottom: clamp(24px, 4vw, 48px); }
.ax-hero__grid { align-items: start; }
.ax-hero h1 { margin-bottom: 0.35em; }
.ax-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ax-tile { min-width: 0; }
.ax-tile a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); color: var(--text); transition: border-color 0.12s; }
.ax-tile a:hover { color: var(--text); border-color: var(--line-3); }
.ax-tile img { flex: 1; min-height: 0; width: 100%; aspect-ratio: 4 / 3; padding: 10px; object-fit: contain; background: var(--stage); }
.ax-tile span { padding: 7px 10px; border-top: 1px solid var(--line); font: 500 var(--fs-xs)/1.3 var(--font-body); }
.ax-tile--big { grid-column: span 2; grid-row: span 2; }
.ax-tile--lit img { background: var(--stage-lit); }
.ax-tile--photo img { padding: 0; object-fit: cover; background: #000; }
@media (max-width: 600px) {
  .ax-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-tile--big { grid-row: auto; }
  .ax-tile:last-child { grid-column: span 2; }
  .ax-tile:last-child img { aspect-ratio: 2 / 1; }
  .ax-hero .hero-actions .btn { width: 100%; }
}

/* ---------- Product-card grids on this page ---------- */
.ax-cards { --gap: 18px; }
.ax-cards .pcard__media { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; }
.ax-cards .pcard__media > img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); max-height: none; object-fit: contain; }
.ax-cards .pcard__media:has(img[src*='/img/wiring-'], img[src*='/img/feet-'], img[src*='/img/2in1-']) { background: #050607; }
.ax-cards .pcard__media > img[src*='/img/wiring-'], .ax-cards .pcard__media > img[src*='/img/feet-'], .ax-cards .pcard__media > img[src*='/img/2in1-'] { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.ax-cards .pcard__media:has(img[src*='/img/usb-hero']) { background: var(--stage-lit); }

.ax-chain-card { display: flex; flex-direction: column; gap: 10px; }
.ax-chain-card p { margin: 0; }
.ax-chain-wrap { position: relative; width: 100%; max-width: 340px; margin: 0 auto; }
.ax-chain { display: block; width: 100%; height: auto; overflow: visible; }
.ax-chain-oled { position: absolute; left: 53.67%; top: 76.55%; width: 37.33%; height: auto; aspect-ratio: 2 / 1; image-rendering: pixelated; border-radius: 2px; }
.ax-chain__node rect:first-child { stroke: var(--line-2); stroke-width: 1.2; }
.ax-svg-k { font: 600 13px var(--font-display); fill: #fff; }
.ax-svg-s { font: 500 11px var(--font-mono); fill: var(--muted); }
.ax-svg-xs { font: 500 8px var(--font-mono); fill: var(--dim); letter-spacing: 0.02em; }
.ax-svg-tag { font: 600 11px var(--font-mono); fill: var(--cyan); }
.ax-pin { fill: #d9b45a; stroke: #6b5524; }
.ax-led { fill: #4ade80; }
.ax-wire { fill: none; stroke: var(--line-2); stroke-width: 6; stroke-linecap: round; }
.ax-flow { fill: none; stroke: var(--text-2); stroke-width: 1.4; stroke-linecap: round; }
@keyframes axDash { to { stroke-dashoffset: -24; } }

.ax-help-card { display: flex; flex-direction: column; justify-content: center; color: var(--text); }
.ax-help-card:hover { color: var(--text); }
.ax-help-card .link-arrow { margin-top: 10px; color: var(--cyan); }

/* ---------- In-page product blocks (2-in-1, feet, USB) ---------- */
.ax-prod { align-items: start; margin-bottom: clamp(24px, 4vw, 40px); }
.ax-prod .table-wrap { margin-top: 14px; }
.ax-after { margin: 12px 0 0; }
.ax-after b { color: var(--text); }
.ax-buyrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); }
.ax-buyrow .price { font-size: 1.6rem; margin-right: 8px; }
.ax-buyrow .tiny { margin-bottom: 6px; }
@media (max-width: 600px) { .ax-buyrow .btn { width: 100%; } }

/* 2-in-1: product photo with a plain caption, plus the installed shot still to come */
.tio-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; max-width: 520px; justify-self: center; }
.tio-photo { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #000; }
.tio-photo img { width: 100%; aspect-ratio: 1 / 0.82; object-fit: cover; }
.tio-photo figcaption { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); line-height: 1.35; color: var(--text-2); }
.ax-capico { width: 32px; height: 32px; flex: none; }
.ax-capico__bezel { fill: #0e1418; stroke: rgba(255, 255, 255, 0.16); }
.ax-capico__a { fill: #8fe0ff; }
.ax-capico__g { fill: #b6ea6e; }

/* 2-in-1 demo */
.tio { margin-top: 8px; }
.tio .demo__bar { gap: 8px 10px; }
.tio-tools { margin-left: auto; display: flex; gap: 8px; }
.tio__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.tio__btn { max-width: 380px; width: 100%; margin: 0 auto; }
.tio-svg { width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.tio-hint { margin: 6px 0 0; }
.tio-bezel { fill: #0e1317; stroke: rgba(255, 255, 255, 0.08); stroke-width: 2; }
.tio-led { fill: none; stroke: #2a3238; stroke-width: 7; stroke-dasharray: 2 5; }
.tio-well { fill: #05080a; }
.tio-ledtxt { font: 500 10.5px var(--font-mono); fill: var(--dim); }
.tio-half { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: center; transition: transform 0.12s var(--ease); }
.tio-cap { fill: url(#tioCap); stroke: #8c9aa1; stroke-width: 1.5; transition: fill 0.25s, filter 0.3s, stroke 0.3s; }
.tio-half:hover .tio-cap { filter: brightness(1.06); }
.tio-half:focus-visible .tio-cap { stroke: #fff; stroke-width: 3; }
.tio-half.is-down { transform: scale(0.965); }
/* the half that matches the current mode glows */
.tio:not(.is-kb) .tio-half--a .tio-cap { stroke: var(--cyan); stroke-width: 2.5; filter: drop-shadow(0 0 12px rgba(59, 198, 243, 0.55)); }
.tio.is-kb .tio-half--g .tio-cap { stroke: var(--lime); stroke-width: 2.5; filter: drop-shadow(0 0 12px rgba(166, 230, 74, 0.55)); }
.tio-half--a.is-down .tio-cap { fill: #d3f3ff; }
.tio-half--g.is-down .tio-cap { fill: #ecffd2; }
.tio-lbl { font: 800 14px var(--font-display); fill: #23303a; pointer-events: none; }
.tio-sub { font: 700 11px var(--font-mono); fill: #515f68; pointer-events: none; }
.tio-conn { fill: #1b2329; stroke: rgba(255, 255, 255, 0.2); }
.tio-wire { fill: none; stroke-width: 4; stroke-linecap: round; opacity: 0.6; }
.tio-wire--a { stroke: var(--cyan); }
.tio-wire--g { stroke: var(--lime); }
.tio-wire--gnd { stroke: #6b7780; }
.tio-pulse { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 16 300; stroke-dashoffset: 316; opacity: 0; }
.tio-pulse.is-firing { animation: tioPulse 0.55s var(--ease) forwards; }
.tio-pulse--a.is-firing { filter: drop-shadow(0 0 6px var(--cyan)); }
.tio-pulse--g.is-firing { filter: drop-shadow(0 0 6px var(--lime)); }
@keyframes tioPulse { 0% { stroke-dashoffset: 316; opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.tio-term rect { fill: #11181e; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; transition: fill 0.25s, stroke 0.25s; }
.tio-term text { font: 700 13px var(--font-mono); fill: var(--text-2); }
.tio-term--a rect { stroke: rgba(59, 198, 243, 0.55); }
.tio-term--g rect { stroke: rgba(166, 230, 74, 0.55); }
.tio-term.is-hot rect { fill: rgba(255, 255, 255, 0.08); }
.tio-term--a.is-hot rect { stroke: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.tio-term--g.is-hot rect { stroke: var(--lime); filter: drop-shadow(0 0 8px var(--lime)); }
.tio__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 14px; align-items: center; margin-bottom: 16px; }
.tio__oled { margin: 0; width: 100%; max-width: 290px; justify-self: center; }
.tio__oled figcaption { margin-top: 10px; }
.tio__dm { padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.tio__dm strong { font: 600 0.92rem var(--font-display); display: flex; align-items: center; gap: 8px; }
.tio__k { margin-bottom: 10px; }
.tio .slot-tile { min-height: 88px; padding: 10px 6px; }
.tio .slot-tile .who { font-size: 0.8rem; line-height: 1.2; }
.tio .slot-tile .ico { width: 22px; height: 22px; }

/* 2-in-1 vs Mode Switches decision guide */
.ax-guide { margin-top: clamp(48px, 7vw, 88px); }
.ax-guide__head { max-width: 64ch; margin-bottom: 24px; }
.ax-guide__head h3 { font-size: var(--fs-2xl); margin-bottom: 8px; }
.ax-guide__head p { margin: 0; }
.ax-guide__grid { --gap: 16px; }
.ax-path { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.ax-path__top { display: flex; align-items: center; gap: 10px; }
.ax-path__k { font: 500 var(--fs-sm)/1.3 var(--font-body); color: var(--muted); }
.ax-path__ico { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); flex: none; }
.ax-path__ico .ico { width: 20px; height: 20px; }
.ax-path h4 { margin: 2px 0 0; font-size: var(--fs-lg); }
.ax-path p { margin: 0; color: var(--text-2); font-size: 0.93rem; }
.ax-path__pick { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 0.92rem; }
.ax-path__pick .tiny { color: var(--muted); }
.ax-path__pick a { color: var(--text); font-weight: 500; }
.ax-path__pick a:hover { color: var(--cyan-hi); }
@media (max-width: 960px) {
  .tio__grid { grid-template-columns: 1fr; }
  .tio-tools { margin-left: 0; }
}
@media (max-width: 600px) {
  .tio__row { grid-template-columns: 1fr; }
  .tio .slots-strip { gap: 6px; }
  .tio .slot-tile .n { font-size: 0.65rem; }
  .tio .slot-tile .who { font-size: 0.72rem; }
}
/* ---------- PCB feet ---------- */
.ft-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ft-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 1; }
.ft-photo img { width: 100%; height: 100%; object-fit: cover; }
.ft-photo--a { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.ft__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: center; }
.ft-svg { width: 100%; height: auto; overflow: visible; }
.ft-grain { fill: none; stroke: rgba(0, 0, 0, 0.28); stroke-width: 2; }
.ft-cab { font: 600 10px var(--font-mono); fill: rgba(255, 220, 180, 0.62); }
.ft-term { fill: #59636b; stroke: #3a434a; }
.ft-usb { fill: #b9c2c8; stroke: #7d878e; }
.ft-hole { fill: #030405; }
.ft-hole--pcb { fill: rgba(59, 198, 243, 0.85); }
.ft-post, .ft-flange { fill: #eef1f2; stroke: #b8c1c6; stroke-width: 1.2; }
.ft-bolt rect { fill: #c9d1d6; stroke: #7d878e; }
.ft-screw rect, .ft-screw path { fill: #d9b45a; stroke: #7a5f22; }
.ft-gap path { fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-dasharray: 4 4; }
.ft-gap text { font: 600 11px var(--font-mono); fill: var(--lime); }
.ft-callout path { fill: none; stroke: var(--cyan); stroke-width: 1.2; }
.ft-callout text { font: 600 12px var(--font-mono); fill: var(--cyan-hi); }
/* Assembly states — data-step on .ft__side: 0 apart · 1 bolted · 2 screwed down */
.ft-asm, .ft-feet, .ft-bolts, .ft-screws, .ft-gap, .ft-callout { transition: transform 0.9s var(--ease), opacity 0.6s; }
.ft__side[data-step='0'] .ft-asm, .ft__side[data-step='1'] .ft-asm { transform: translateY(-58px); }
.ft__side[data-step='0'] .ft-feet { transform: translateY(46px); opacity: 0.25; }
.ft__side[data-step='0'] .ft-bolts { transform: translateY(-44px); opacity: 0; }
.ft__side[data-step='1'] .ft-bolts { transition-delay: 0.55s; }
.ft__side[data-step='0'] .ft-screws, .ft__side[data-step='1'] .ft-screws { transform: translateY(-40px); opacity: 0; }
.ft__side[data-step='2'] .ft-screws { transition-delay: 0.75s; }
.ft__side:not([data-step='2']) .ft-gap { opacity: 0; }
.ft__side[data-step='2'] .ft-gap { transition-delay: 1.3s; }
.ft__side[data-step='0'] .ft-callout--screw, .ft__side[data-step='1'] .ft-callout--screw { opacity: 0; }
.ft__side[data-step='0'] .ft-callout--hole { opacity: 1; }
.ft__side[data-step='1'] .ft-callout--hole, .ft__side[data-step='2'] .ft-callout--hole { opacity: 0.6; }
.ft__topwrap { display: grid; gap: 12px; justify-items: center; }
.ft__chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ft-top { width: 100%; max-width: 300px; height: auto; }
.ft-top__board { fill: #11181e; stroke: var(--line-3); stroke-width: 1.5; }
.ft-top__ring { fill: rgba(238, 241, 242, 0.12); stroke: #eef1f2; stroke-width: 1.5; }
.ft-top__h { fill: var(--cyan); }
.ft-top__dim { font: 500 11px var(--font-mono); fill: var(--muted); }
.ft-top__name { font: 700 22px var(--font-display); fill: rgba(255, 255, 255, 0.85); letter-spacing: 0.02em; }
@media (max-width: 960px) { .ft__grid { grid-template-columns: 1fr; } }

/* ---------- USB cable ---------- */
.usb-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.usb-stage { margin: 0; display: grid; place-items: center; padding: 20px; min-height: 300px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--stage-lit); }
.usb-stage img { max-width: min(340px, 80%); }
.usb { margin-top: 8px; }
.usb-count { margin-left: auto; font-family: var(--font-mono); }
.usb-svg { width: 100%; max-width: 920px; height: auto; overflow: visible; display: block; margin: 0 auto; }
.usb-port { fill: #0a0f13; stroke: var(--line-3); stroke-width: 1.5; }
.usb-b { fill: #c3cbd0; stroke: #7d878e; }
.usb-cable { fill: none; stroke: #1d2328; stroke-width: 9; stroke-linecap: round; }
.usb-data { fill: none; stroke: var(--cyan); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 4 12; animation: axDash 0.9s linear infinite; }
.usb-data--b { stroke: var(--lime); animation-delay: -0.4s; }
.usb-tag { font: 600 12px var(--font-mono); fill: var(--cyan-hi); }
.usb-tag--b { fill: var(--lime); }
.usb-lbl { font: 600 13px var(--font-mono); fill: var(--muted); }
.usb-name { font: 700 14px var(--font-display); fill: #fff; letter-spacing: 0.02em; }
.usb-name--s { font: 600 9.5px var(--font-mono); fill: var(--muted); }
.usb-led { fill: #4ade80; }
.usb-dm { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.usb.is-solo .usb-dm { opacity: 0.08; transform: translateY(8px); }
@media (max-width: 600px) {
  .usb-tag { font-size: 15px; } .usb-name { font-size: 17px; } .usb-name--s { font-size: 13px; } .usb-lbl { font-size: 16px; }
  .usb-stage { min-height: 220px; }
}

/* ---------- Compatibility matrix ---------- */
.cx { font-size: 0.9rem; }
.cx thead th { white-space: nowrap; }
.cx tbody th { min-width: 220px; white-space: normal; }
.cx tbody th a { color: var(--text); font-size: 1rem; font-weight: 500; }
.cx tbody th a:hover { color: var(--cyan-hi); }
.cx tbody th .badge { margin-left: 6px; vertical-align: 2px; }
.cx-price { display: block; margin-top: 4px; }
.cx-price .price { font-size: 0.9rem; color: var(--muted); }
.cx td { min-width: 170px; }
.cx-c { display: flex; gap: 10px; align-items: flex-start; }
.cx-mark { flex: none; display: inline-grid; place-items: center; width: 16px; height: 22px; }
.cx .is-yes .cx-mark { color: var(--ok); }
.cx .is-yes .cx-mark .ico { width: 15px; height: 15px; stroke-width: 3; }
.cx .is-no .cx-mark { color: var(--dim); }
.cx-t { color: var(--text-2); }
.cx-other { color: var(--muted); font-size: 0.85rem; }
.cx tbody tr { transition: background 0.2s; }
.cx tbody tr:hover { background: var(--surface-2); }
@media (max-width: 760px) {
  .cx-wrap { background: none; border: 0; overflow: visible; }
  .cx, .cx tbody, .cx tr, .cx th, .cx td { display: block; width: 100%; }
  .cx thead { display: none; }
  .cx tbody tr { margin-bottom: 12px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
  .cx tbody th { min-width: 0; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
  .cx tbody th { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; white-space: normal; }
  .cx tbody th .badge { margin-left: 0; }
  .cx-price { display: inline-block; margin: 0; white-space: nowrap; }
  .cx td { min-width: 0; display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .cx tbody tr > :last-child { border-bottom: 0; }
  .cx td::before { content: attr(data-label); font: 500 var(--fs-xs)/1.6 var(--font-body); color: var(--dim); }
  .cx td .cx-mark { display: none; }
  .cx td.is-yes .cx-t::before { content: '✓ '; color: var(--ok); font-weight: 700; }
}

/* ---------- Popular combinations ---------- */
.ax-sets { --gap: 18px; }
.ax-set { display: flex; flex-direction: column; }
.ax-set h3 { margin-bottom: 6px; }
.ax-set__list { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.ax-set__list li.buybox {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; flex-direction: row;
}
.ax-set__list li:last-child { border-bottom: 0; }
.ax-set__list li.ax-or { padding: 2px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-xs); text-align: center; }
.ax-set__list a { color: var(--text); font-size: 0.9rem; line-height: 1.3; }
.ax-set__list a:hover { color: var(--cyan-hi); }
.ax-set__list .price { font-size: 0.92rem; }
.ax-set__list .btn .ico { width: 15px; height: 15px; }

/* ==========================================================================
   DongleMaster page
   ========================================================================== */
.dm-hero .hotspot-img { max-width: 640px; }

/* The problem: illustrated "who gets Player 1?" scene (cz-) */
.cz .demo__bar { gap: 10px 14px; }
.cz-seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.cz-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cz-tools .btn .ico { width: 16px; height: 16px; }
.cz__body { padding: clamp(8px, 2vw, 22px) clamp(6px, 2vw, 22px) clamp(14px, 2vw, 22px); }
.cz__stage { position: relative; min-height: 120px; }
.cz__noscript { margin: 0; padding: 24px; color: var(--text-2); }
.cz-svg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.cz--tall .cz-svg { max-width: 540px; margin: 0 auto; }
.cz-lbl { font-family: var(--font-mono); font-weight: 500; fill: var(--dim); }
/* PC */
.cz-mon { fill: #0c1217; stroke: rgba(143, 224, 255, 0.2); stroke-width: 1.5; }
.cz-scr { fill: #020507; transition: fill 0.6s; }
.cz-svg.is-on .cz-scr { fill: url(#czScr); }
.cz-scr-c { opacity: 0; transition: opacity 0.5s; }
.cz-svg.is-on .cz-scr-c { opacity: 1; }
.cz-hdr-t { font-family: var(--font-mono); font-weight: 600; fill: var(--cyan-hi); }
.cz-verdict { font-family: var(--font-mono); font-weight: 700; fill: var(--muted); }
.cz-verdict.is-bad { fill: var(--bad); }
.cz-verdict.is-ok { fill: var(--ok); }
.cz-verdict.is-luck { fill: var(--amber); }
.cz-row-bg { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.06); transition: fill 0.35s, stroke 0.35s; }
.cz-row-n { font-family: var(--font-mono); font-weight: 700; }
.cz-row-t { font-family: var(--font-display); font-weight: 600; fill: var(--dim); }
.cz-row-m { font-family: var(--font-display); font-weight: 700; }
.cz-row.is-ok .cz-row-bg { fill: rgba(74, 222, 128, 0.09); stroke: rgba(74, 222, 128, 0.4); }
.cz-row.is-ok .cz-row-t { fill: #d6fbe4; }
.cz-row.is-ok .cz-row-m { fill: var(--ok); }
.cz-row.is-bad .cz-row-bg { fill: rgba(248, 113, 113, 0.11); stroke: rgba(248, 113, 113, 0.5); }
.cz-row.is-bad .cz-row-t { fill: #ffd6d6; }
.cz-row.is-bad .cz-row-m { fill: var(--bad); }
.cz-unseen { font-family: var(--font-mono); font-weight: 600; fill: #ff9d9d; }
.cz-cd { opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.cz-svg.is-cd .cz-cd { opacity: 1; }
.cz-cd-bg { fill: #03090d; }
.cz-cd-t { font-family: var(--font-display); font-weight: 600; fill: var(--text-2); }
.cz-cd-n { font-family: var(--font-display); font-weight: 700; fill: #fff; font-variant-numeric: tabular-nums; }
.cz-cd-track { fill: rgba(255, 255, 255, 0.08); }
.cz-cd-bar { fill: var(--cyan); }
.cz-cd-ff { font-family: var(--font-mono); font-weight: 700; fill: var(--amber); }
.cz-offscr { transition: opacity 0.5s; }
.cz-offscr rect { fill: #020406; }
.cz-offscr text { font-family: var(--font-mono); fill: var(--muted); transition: opacity 0.3s; }
.cz-svg.is-on .cz-offscr { opacity: 0; }
.cz-svg.is-started .cz-offscr text { opacity: 0; }
.cz-tower { fill: #0e151a; stroke: rgba(143, 224, 255, 0.18); stroke-width: 1.5; }
.cz-tower-l { stroke: rgba(255, 255, 255, 0.08); stroke-width: 2; fill: none; stroke-linecap: round; }
.cz-port { fill: #05080a; stroke: rgba(143, 224, 255, 0.45); }
.cz-pwr { fill: #0a0f13; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.5; transition: stroke 0.4s, filter 0.4s; }
.cz-svg.is-on .cz-pwr { stroke: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
/* Cables */
.cz-cable { fill: none; stroke: #1c242a; stroke-linecap: round; }
.cz-aux { fill: none; stroke: #2a2340; stroke-width: 5; stroke-linecap: round; }
.cz-flow { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 10; opacity: 0; transition: opacity 0.5s; animation: axDash 1s linear infinite; }
.cz-flow--board { stroke: var(--cyan); }
.cz-flow--ad { stroke: var(--lime); }
.cz-flow--aux { stroke: var(--violet); stroke-width: 1.8; }
.cz-svg.is-on .cz-flow--board, .cz-svg.is-on .cz-flow--aux, .cz-svg.is-ad .cz-flow--ad { opacity: 0.9; }
.cz-wire { fill: none; stroke-width: 2.6; stroke-linecap: round; opacity: 0.4; transition: opacity 0.5s; }
.cz-wire--0 { stroke: #ff9f43; }
.cz-wire--1 { stroke: #f5d142; }
.cz-wire--2 { stroke: #5ab0ff; }
.cz-wire--3 { stroke: #e55a5a; }
.cz-svg.is-on .cz-wire { opacity: 0.85; }
/* Encoder board */
.cz-board-pcb { fill: #07090b; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; transition: stroke 0.5s, filter 0.5s; }
.cz-svg.is-on .cz-board-pcb { stroke: rgba(59, 198, 243, 0.5); }
.cz-silk { font-family: var(--font-display); font-weight: 700; fill: #f2f6f8; letter-spacing: 0.02em; }
.cz-silk--b { }
.cz-silk--xs { font-family: var(--font-mono); font-weight: 600; fill: #d8dee2; }
.cz-chip { fill: #15191c; stroke: #2c3238; }
.cz-usb { fill: #c4ccd1; stroke: #7d878e; }
.cz-usb-in { fill: #3a4248; }
.cz-usba { fill: #e9eef1; stroke: #9aa5ab; }
.cz-hdr { fill: #111; stroke: #333; }
.cz-pin { fill: #d9b45a; }
.cz-term { fill: #5b636a; stroke: #3d444a; }
.cz-term-hole { fill: #2b3136; }
/* DongleMaster + adapter */
.cz-dm-pcb { fill: #07090b; stroke: rgba(166, 230, 74, 0.5); stroke-width: 1.5; }
.cz-dm-led { fill: #17241b; stroke: rgba(255, 255, 255, 0.22); transition: fill 0.3s, filter 0.3s; }
.cz-svg.is-dmled .cz-dm-led { fill: #4ade80; filter: drop-shadow(0 0 6px #4ade80); }
.cz-ad-plug { fill: #c4ccd1; stroke: #7d878e; }
.cz-ad-body { fill: #0b0d10; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.2; }
.cz-ad-light { fill: #20262b; transition: fill 0.4s, filter 0.4s; }
.cz-svg.is-ad .cz-ad-light { fill: #f4f8fa; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px rgba(166, 230, 74, 0.7)); }
.cz-waves path { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.cz-svg.is-ad .cz-waves--ad path, .cz-pad.is-live .cz-waves path, .cz-pad.is-unseen .cz-waves path { animation: czWave 1.6s ease-out infinite; }
.cz-waves path:nth-child(2) { animation-delay: 0.2s; }
.cz-waves path:nth-child(3) { animation-delay: 0.4s; }
.cz-pad.is-unseen .cz-waves path { stroke: var(--muted); }
@keyframes czWave { 0% { opacity: 0; } 30% { opacity: 0.95; } 100% { opacity: 0; } }
/* Control panel + seats */
.cz-panel { fill: url(#czPanel); stroke: rgba(143, 224, 255, 0.2); stroke-width: 1.5; }
.cz-stick-base { fill: #05080a; stroke: rgba(255, 255, 255, 0.1); }
.cz-stick-shaft { fill: #2a333a; }
.cz-ball { fill: url(#czBall); opacity: 0.6; transition: opacity 0.4s; }
.cz-ball-hi { fill: rgba(255, 255, 255, 0.45); }
.cz-btn { fill: #121a20; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; transition: fill 0.4s, stroke 0.4s, filter 0.4s; }
.cz-seat-lbl { font-family: var(--font-mono); font-weight: 600; fill: var(--dim); transition: fill 0.4s; }
.cz-seat.is-live .cz-btn { fill: rgba(59, 198, 243, 0.22); stroke: var(--cyan); filter: drop-shadow(0 0 5px rgba(59, 198, 243, 0.6)); }
.cz-seat.is-live .cz-ball { opacity: 1; }
.cz-seat.is-live .cz-seat-lbl { fill: var(--cyan-hi); }
.cz-seat.is-unseen .cz-btn { stroke: rgba(248, 113, 113, 0.55); }
.cz-seat.is-unseen .cz-ball { opacity: 0.35; }
.cz-seat.is-kb .cz-btn { fill: rgba(255, 181, 71, 0.12); stroke: rgba(255, 181, 71, 0.65); }
.cz-seat.is-kb .cz-ball { opacity: 0.85; }
.cz-kbtag { opacity: 0; transition: opacity 0.4s; }
.cz-svg.is-kb .cz-kbtag { opacity: 1; }
.cz-kbtag rect { fill: #1d1608; stroke: rgba(255, 181, 71, 0.6); }
.cz-kbtag text { font-family: var(--font-mono); font-weight: 700; fill: var(--amber); }
/* Gamepads */
.cz-pad-body { fill: #1a2128; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; transition: stroke 0.4s; }
.cz-pad-stick, .cz-pad-dpad { fill: #0a0e11; stroke: rgba(255, 255, 255, 0.1); }
.cz-pad-face { fill: #2a333a; }
.cz-pad-glow { fill: #2a333a; stroke: rgba(255, 255, 255, 0.15); transition: fill 0.3s, filter 0.3s; }
.cz-pad-lbl { font-family: var(--font-mono); font-weight: 600; fill: var(--dim); }
.cz-pad.is-live .cz-pad-body { stroke: rgba(166, 230, 74, 0.65); }
.cz-pad.is-live .cz-pad-glow, .cz-pad.is-unseen .cz-pad-glow { fill: #f4f8fa; filter: drop-shadow(0 0 6px #fff); }
.cz-pad.is-live .cz-pad-lbl { fill: var(--lime); }
.cz-pad.is-wake .cz-pad-glow { animation: czBlink 0.45s steps(2, jump-none) infinite; }
@keyframes czBlink { 0% { fill: #f4f8fa; } 100% { fill: #2a333a; } }
/* Wake ring */
.cz-ring { fill: none; stroke: var(--cyan); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cz-pad .cz-ring { stroke: var(--lime); }
.cz-ring.is-ping { animation: czPing 0.9s var(--ease); }
@keyframes czPing { 0% { opacity: 0.9; transform: scale(0.5); } 100% { opacity: 0; transform: scale(1.12); } }
/* Player-number badges */
.cz-b { pointer-events: none; }
.cz-b__in { opacity: 0; transform: translateY(10px) scale(0.6); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.cz-b.is-show .cz-b__in { opacity: 1; transform: none; }
.cz-b.is-show .cz-b__in.is-pop { animation: czPop 0.55s var(--ease); }
@keyframes czPop { 0% { transform: translateY(8px) scale(0.7); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.cz-b__bg { stroke-width: 2; }
.cz-b__t { font-family: var(--font-display); font-weight: 700; }
.cz-b__s { font-family: var(--font-mono); font-weight: 500; }
.cz-b.is-ok .cz-b__bg { fill: #0c2718; stroke: var(--ok); }
.cz-b.is-ok .cz-b__t { fill: #c8f9da; }
.cz-b.is-bad .cz-b__bg { fill: #351316; stroke: var(--bad); }
.cz-b.is-bad .cz-b__t { fill: #ffd6d6; }
.cz-b.is-none .cz-b__bg { fill: #1f0e11; stroke: var(--bad); stroke-dasharray: 5 4; }
.cz-b.is-none .cz-b__t, .cz-b.is-none .cz-b__s { fill: #ff9d9d; }
.cz-b.is-off .cz-b__bg { fill: #11161a; stroke: rgba(255, 255, 255, 0.22); }
.cz-b.is-off .cz-b__t { fill: var(--muted); }
.cz-b.is-off .cz-b__s { fill: var(--dim); }
.cz-again { color: var(--amber); font-weight: 600; }
.cz-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 4px 0 10px; padding: 0; font: 400 var(--fs-xs)/1.4 var(--font-body); color: var(--muted); }
.cz-legend li { display: inline-flex; align-items: center; gap: 7px; }
.cz-lg { width: 18px; height: 11px; border-radius: 4px; border: 1.5px solid; }
.cz-lg--ok { border-color: var(--ok); background: #0c2718; }
.cz-lg--bad { border-color: var(--bad); background: #351316; }
.cz-lg--none { border-color: var(--bad); border-style: dashed; background: #1f0e11; }
.cz-lg--off { border-color: rgba(255, 255, 255, 0.25); background: #11161a; }
/* The Arcade | Gamepads split-cap button under the scene */
.cz-switch { display: flex; align-items: center; justify-content: center; gap: 10px 18px; margin: 6px 0 0; flex-wrap: wrap; }
.cz-switch[hidden] { display: none; }
.cz-switch__lbl { font: 700 1rem var(--font-display); color: var(--muted); cursor: pointer; min-width: 96px; transition: color 0.3s; user-select: none; }
.cz-switch__lbl--a { text-align: right; }
.cz-switch:has([data-cz-go='arcade'][aria-pressed='true']) .cz-switch__lbl--a { color: var(--cyan-hi); }
.cz-switch:has([data-cz-go='pads'][aria-pressed='true']) .cz-switch__lbl--g { color: var(--lime); }
.cz-cap { display: flex; gap: 4px; width: 96px; height: 96px; padding: 8px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #1c262d, #0a0f13); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 7px rgba(255, 255, 255, 0.02); }
.cz-cap__half { flex: 1; min-width: 0; border: 0; padding: 0; cursor: pointer; background: linear-gradient(165deg, #f4f8fa, #c9d4d9 70%, #a6b2b8); transition: transform 0.12s, box-shadow 0.3s, background 0.3s, opacity 0.3s; }
.cz-cap__half--a { border-radius: 999px 0 0 999px; }
.cz-cap__half--g { border-radius: 0 999px 999px 0; }
.cz-cap__half:active { transform: scale(0.94); }
.cz-cap__half--a[aria-pressed='true'] { background: linear-gradient(165deg, #e6f8ff, #8fe0ff); box-shadow: 0 0 24px rgba(59, 198, 243, 0.8); }
.cz-cap__half--g[aria-pressed='true'] { background: linear-gradient(165deg, #f4ffe6, #b6ea6e); box-shadow: 0 0 24px rgba(166, 230, 74, 0.75); }
.cz-cap__half:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cz-switch.is-busy .cz-cap__half { opacity: 0.6; }
.cz-switch__hint { flex-basis: 100%; text-align: center; margin: 0; }
.cz-foot { margin: 12px 0 0; max-width: 92ch; }
@media (max-width: 860px) {
  .cz-tools { margin-left: 0; width: 100%; }
  .cz-tools [data-cz-power] { margin-left: auto; }
}
@media (max-width: 600px) {
  .cz .demo__bar { padding: 12px; gap: 8px; }
  .cz .demo__bar .chip { padding: 0 11px; font-size: 0.8rem; }
  .cz-switch__lbl { min-width: 0; font-size: 0.92rem; }
  .cz-cap { width: 84px; height: 84px; padding: 7px; }
}
/* Forget window ring */
.fw { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.fw__ring { position: relative; max-width: 380px; width: 100%; margin: 0 auto; }
.fw-ring { width: 100%; height: auto; transform: rotate(0deg); overflow: visible; }
.fw-track { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 16; }
.fw-five { fill: none; stroke: rgba(255, 181, 71, 0.25); stroke-width: 16; transform: rotate(-90deg); transform-origin: 160px 160px; }
.fw-arc { fill: none; stroke: var(--cyan); stroke-width: 16; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 160px 160px; }
.fw-dot { fill: #0c1217; stroke: var(--dim); stroke-width: 3; transition: fill 0.3s, stroke 0.3s; }
.fw-dot.is-on { fill: var(--cyan); stroke: #fff; }
.fw__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 4px; }
.fw__center strong { font: 500 clamp(2.6rem, 2rem + 2.4vw, 3.8rem)/1 var(--font-body); letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.fw__center span { font: 400 var(--fs-xs) var(--font-body); color: var(--muted); }
.fw__play { margin-top: 10px; }
.fw__play .ico { width: 14px; height: 14px; }
.fw__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fw__steps li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.4s, background 0.4s, opacity 0.4s; }
.fw__steps b { color: var(--text); font: 600 var(--fs-sm)/1.35 var(--font-body); padding-top: 2px; }
.fw__steps h4 { margin: 0 0 2px; font-size: 1.02rem; }
.fw__steps p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.fw.is-playing .fw__steps li { opacity: 0.75; }
.fw.is-playing .fw__steps li.is-on { opacity: 1; border-color: var(--cyan); background: var(--surface-2); }
@media (max-width: 860px) { .fw { grid-template-columns: 1fr; } .fw__ring { max-width: 300px; } }
@media (max-width: 600px) { .fw__steps li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 14px; } .fw__steps b { padding: 0; color: var(--cyan); } }

/* 5-second rule */
.five { margin-top: clamp(32px, 5vw, 56px); padding: clamp(16px, 3vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); }
.five h3 { font-size: var(--fs-xl); margin-bottom: 8px; }
.five__head p { max-width: 72ch; }
.five__ctl { display: grid; gap: 10px; margin: 22px 0 18px; font-size: 1rem; color: var(--text-2); }
.five__ctl b { color: var(--text); font-family: var(--font-mono); font-size: 1rem; }
.five__ctl input { width: 100%; accent-color: var(--cyan); height: 28px; cursor: pointer; }
.five__track { position: relative; height: 54px; margin: 34px 0 64px; border-radius: var(--r-lg); background: #0a1015; border: 1px solid var(--line); }
.five__flaky { position: absolute; top: 0; bottom: 0; left: 56%; width: 24%; background: repeating-linear-gradient(-45deg, rgba(248, 113, 113, 0.16) 0 6px, transparent 6px 12px); border-inline: 1px dashed rgba(248, 113, 113, 0.5); }
.five__flaky span { position: absolute; top: 50%; left: 50%; width: 92%; transform: translate(-50%, -50%); text-align: center; font: 500 var(--fs-xs)/1.25 var(--font-body); color: #ff9d9d; }
.five__gone { position: absolute; top: 12px; bottom: 12px; left: 0; width: 24%; border-radius: var(--r-sm); background: rgba(59, 198, 243, 0.45); transition: width 0.45s var(--ease); }
.five__mk { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; transform: translateX(-1px); transition: left 0.45s var(--ease); font-style: normal; }
.five__mk span { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 var(--fs-xs) var(--font-body); color: var(--text-2); }
.five__mk--cut { left: 0; transform: none; background: var(--muted); }
.five__mk--cut span { left: 0; transform: none; }
.five__mk--rev { background: var(--amber); }
.five__mk--rev span { color: var(--amber); top: auto; bottom: calc(100% + 6px); }
.five__mk--back { background: var(--ok); }
.five__mk--back span { color: var(--ok); }
.five__scale { position: absolute; left: 0; right: 0; bottom: -46px; height: 14px; }
.five__scale span { position: absolute; transform: translateX(-50%); font: 400 var(--fs-xs) var(--font-mono); color: var(--muted); }
.five__scale span:first-child { transform: none; } .five__scale span:last-child { transform: translateX(-100%); }
.five__out { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.five__out strong { color: var(--text); }

@media (max-width: 600px) {
  .five__flaky span { font-size: 0.6875rem; }
  .five__mk--cut span { display: none; }
  .five__mk--rev span { font-size: 0.75rem; }
}

/* Tabs + timeline */
.dm-tabs { margin-bottom: 18px; }
.dm-tabs button { height: 42px; padding: 0 20px; font-size: 0.95rem; }
.dm-panel .demo { margin-bottom: 18px; }
/* "Ways to switch" list under the 2000T / 4000T table */
.dm-ways__h { margin: 26px 0 10px; font-size: var(--fs-lg); }
.dm-ways { margin: 0; }
.dm-ways li { font-size: 0.94rem; }

/* Board policy table */
.dm-mini { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: -1px; }
.dm-mini i { width: 9px; height: 9px; border-radius: 3px; }
.dm-mini i.a { background: var(--cyan); }
.dm-mini i.p { background: var(--lime); }
.dm-mini--k { margin: 0 2px 0 0; }
.dm-policy th[scope='row'] { white-space: normal; min-width: 150px; }
.dm-policy td { min-width: 190px; }
@media (max-width: 680px) {
  .dm-policy, .dm-policy tbody, .dm-policy tr, .dm-policy th, .dm-policy td { display: block; width: 100%; }
  .dm-policy thead { display: none; }
  .dm-policy tbody tr { border-bottom: 1px solid var(--line-2); }
  .dm-policy tbody tr:last-child { border-bottom: 0; }
  .dm-policy th[scope='row'] { padding: 14px 16px 6px; border: 0; color: var(--text); }
  table.dm-policy td { position: relative; min-width: 0; padding: 6px 16px 6px 68px; border: 0; }
  table.dm-policy td:last-child { padding-bottom: 14px; }
  .dm-policy td::before { content: attr(data-label); position: absolute; left: 16px; top: 6px; font: 600 var(--fs-xs)/1.7 var(--font-body); color: var(--muted); }
}

/* How it works schematic */
.dm-how-h { margin-bottom: clamp(16px, 2.4vw, 24px); }
.sch-demo .sch--wide { max-width: 980px; margin: 0 auto; }
.sch-wrap { padding: clamp(12px, 2.5vw, 24px); }
.sch { width: 100%; height: auto; overflow: visible; display: block; }
.sch--tall { display: none; max-width: 380px; margin: 0 auto; }
@media (max-width: 700px) { .sch--wide { display: none; } .sch--tall { display: block; } }
.sch-box rect { fill: #11181e; stroke: var(--line-3); stroke-width: 1.4; }
.sch-t { font: 600 15px var(--font-body); fill: var(--text); }
.sch-s { font: 500 10.5px var(--font-mono); fill: var(--muted); }
.sch-sw rect { stroke: rgba(255, 181, 71, 0.6); }
.sch-sw--sm .sch-t { font-size: 12px; } .sch-sw--sm .sch-s { font-size: 9px; }
.sch-pcf rect { stroke: rgba(166, 230, 74, 0.55); }
.sch-l { font: 600 11px var(--font-mono); fill: var(--text-2); }
.sch-l--amber { fill: var(--amber); } .sch-l--cyan { fill: var(--cyan-hi); }
.sch-5v { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke 0.4s, filter 0.4s, opacity 0.4s; }
.sch-5v--pre { stroke: var(--amber); filter: drop-shadow(0 0 5px rgba(255, 181, 71, 0.8)); }
.sch-5v--post { stroke: #3a3328; }
.sch-wrap.is-on .sch-5v--post { stroke: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 181, 71, 0.9)); }
.sch-d { fill: none; stroke: rgba(59, 198, 243, 0.22); stroke-width: 5; stroke-linecap: round; }
.sch-flow { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 4 10; animation: axDash 0.8s linear infinite; }
.sch-flow--b { animation-direction: reverse; }
.sch-wrap:not(.is-on) .sch-flow { opacity: 0.25; animation-play-state: paused; }
.sch-gate { fill: none; stroke: rgba(166, 230, 74, 0.7); stroke-width: 2; stroke-dasharray: 5 4; }
.sch-bus { fill: none; stroke: rgba(155, 140, 255, 0.75); stroke-width: 3; stroke-linecap: round; }
.sch-led { fill: #1d2a22; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.5; transition: fill 0.3s, filter 0.3s; }
.sch-wrap.is-on .sch-led { fill: #4ade80; filter: drop-shadow(0 0 8px #4ade80); }
.sch-pkt rect { fill: var(--violet); }
.sch-pkt text { font: 700 11px var(--font-mono); fill: #0b0820; }
.sch-pkt { opacity: 0; }
.sch-wrap.is-sending .sch--wide .sch-pkt { animation: schPktW 1.1s var(--ease) forwards; }
.sch-wrap.is-sending .sch--tall .sch-pkt { animation: schPktT 1.1s var(--ease) forwards; }
@keyframes schPktW { 0% { opacity: 1; transform: translate(170px, 344px); } 60% { opacity: 1; transform: translate(360px, 344px); } 100% { opacity: 0; transform: translate(360px, 300px); } }
@keyframes schPktT { 0% { opacity: 1; transform: translate(332px, 110px); } 60% { opacity: 1; transform: translate(332px, 262px); } 100% { opacity: 0; transform: translate(300px, 262px); } }

/* Install */
.dm-install { align-items: start; }
.dm-setup { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 72px); }
.dm-setup img { width: 100%; height: auto; }
.dm-setup figcaption { position: absolute; left: 0; bottom: 0; padding: 4px 10px; border-top-right-radius: var(--r); background: var(--bg); font-size: var(--fs-xs); color: var(--text-2); }
.dm-mk { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--on-cyan); font: 600 var(--fs-xs) var(--font-mono); box-shadow: 0 0 0 3px var(--bg); transition: transform 0.3s var(--ease), background 0.3s; }
.dm-mk.is-on { transform: scale(1.3); background: #fff; }
.dm-isteps { gap: 10px; }
.dm-isteps > li { cursor: default; padding: 14px 18px 14px 62px; transition: border-color 0.3s, background 0.3s; }
.dm-isteps > li::before { top: 13px; }
.dm-isteps h4 { font-size: 1rem; margin-top: 3px; }
.dm-isteps p { font-size: 0.9rem; }
.dm-isteps > li.is-on { border-color: var(--cyan); background: var(--surface-2); }
@media (max-width: 960px) { .dm-setup { position: relative; top: 0; } }

/* Red cross list marker (support pages) */
.dm-no li::before { background: rgba(248, 113, 113, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/10px no-repeat !important; border-color: rgba(248, 113, 113, 0.35) !important; }
/* Respect reduced motion for the always-on flows */
@media (prefers-reduced-motion: reduce) {
  .usb-data, .sch-flow { animation: none; stroke-dasharray: none; }
}

/* ---------- Attract-mode status lines, PC power hit target, Utility-geometry gamepad ---------- */
.cz-pwr-hit { fill: transparent; cursor: pointer; }
.cz-svg:has(.cz-pwr-hit:hover) .cz-pwr { stroke: var(--cyan-hi); }
.cz-pad-bump { fill: #12181d; stroke: rgba(255, 255, 255, 0.12); stroke-width: 4; }
.cz-auto { margin: 0 0 6px; text-align: center; min-height: 1.4em; }
.cz-auto:empty { display: none; }
.cz-switch.is-off .cz-cap { opacity: 0.32; filter: grayscale(1); }
.cz-switch.is-off .cz-cap__half, .cz-switch.is-off .cz-switch__lbl { cursor: not-allowed; }
.cz-switch.is-off .cz-switch__lbl { color: var(--dim); }

.dm-after { margin: 18px 0 0; }
