/* Bike Shop Quest board diagram styles, shared by the game and the Tech Foundations flashcards
   (moved out of bike-shop-quest/index.html on 2026-11-26). Uses the page's --accent/--accent2/--amber/--red/--text/--font tokens. */
.b-svg { --c: var(--accent); }
.b-node.cat-people { --c: #a78bfa; } .b-node.cat-net { --c: #4f8ef7; } .b-node.cat-app { --c: #2dd4bf; }
.b-node.cat-data { --c: #f5b443; } .b-node.cat-msg { --c: #f472b6; } .b-node.cat-ops { --c: #94a3f8; } .b-node.cat-sec { --c: #fb7185; }
.b-grad-top { stop-color: #2a2f47; } .b-grad-bot { stop-color: #1e2233; }
.b-edge { fill: none; stroke: #59628a; stroke-width: 1.4; transition: stroke 0.15s; }
.b-edge.dashed { stroke-dasharray: 3.5 3; }
.b-edge.hot { stroke: var(--accent2); }
.b-edge.lit { stroke: var(--amber); stroke-width: 2; }
.b-arrow { fill: #59628a; } .b-arrow.hot { fill: var(--accent2); }
.b-flow { fill: none; stroke: #d1fae5; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 9; animation: bFlow 0.9s linear infinite; pointer-events: none; }
@keyframes bFlow { to { stroke-dashoffset: -11; } }
.b-shadow { fill: rgba(0,0,0,0.35); }
.b-node .b-box { stroke: color-mix(in srgb, var(--c) 55%, transparent); stroke-width: 1.2; transition: stroke 0.15s; }
.b-stripe { fill: var(--c); }
.b-icon-bg { fill: color-mix(in srgb, var(--c) 18%, transparent); }
.b-icon { stroke: var(--c); color: var(--c); }
.b-icon path { stroke: var(--c); }
.b-node text { fill: var(--text); font-family: var(--font); font-weight: 600; letter-spacing: 0.01em; }
.b-node.tip { cursor: pointer; }
.b-node.tip:hover .b-box { stroke: var(--c); stroke-width: 1.8; }
.b-node.tip:focus { outline: none; }
.b-node.tip:focus-visible .b-box, .b-node.sel .b-box { stroke: var(--amber); stroke-width: 2.4; }
.b-node.fresh .b-box { stroke: var(--accent2); stroke-width: 2.2; animation: bNew 1.6s ease-in-out 3; }
.b-node .b-badge { fill: var(--accent2); }
/* tiered (textbook) layout: colour by role, dashed zones, bus line */
.b-node.role-net { --c: #5b9cf8; } .b-node.role-data { --c: #34d399; } .b-node.role-ext { --c: #94a3b8; }
.b-svg.tiered .b-node:not(.gap) .b-box { fill: color-mix(in srgb, var(--c) 14%, #161925); stroke: color-mix(in srgb, var(--c) 75%, transparent); }
.b-svg.tiered .b-node.fresh .b-box { stroke: var(--accent2); }
.b-svg.tiered .b-node.weak .b-box { stroke: var(--red); }
.b-svg.tiered .b-node.tip:focus-visible .b-box, .b-svg.tiered .b-node.sel .b-box { stroke: var(--amber); }
.b-zone { fill: rgba(148,163,184,0.035); stroke: #4a5275; stroke-width: 1.2; stroke-dasharray: 5 4; }
.b-zone-label { fill: #8892b0; font-size: 8.5px; font-weight: 700; letter-spacing: 0.12em; font-family: var(--font); }
.b-bus { stroke-width: 2; stroke-linecap: round; }
.b-junction { fill: #8a94bd; }
.b-block { fill: color-mix(in srgb, var(--c) 26%, #161925); stroke: var(--c); stroke-width: 1; }
.b-node text.b-sub { fill: color-mix(in srgb, var(--c) 70%, #e2e8f0); font-size: 8.5px; font-weight: 500; font-style: italic; }
.b-node text.b-block-text { fill: var(--text); font-size: 7.5px; font-weight: 700; }
.b-badge-text { fill: var(--bg); font-size: 8px; font-weight: 700; font-family: var(--font); letter-spacing: 0.04em; }
@keyframes bNew { 50% { stroke-width: 4; } }
@media (prefers-reduced-motion: reduce) { .b-node.fresh .b-box, .b-flow { animation: none; } .b-flow { display: none; } }
.b-node.weak .b-box { stroke: var(--red); stroke-dasharray: 5 3; stroke-width: 2; }
.b-node.weak text { fill: var(--red); font-weight: 700; }
.b-node.gap .b-box { fill: rgba(245,158,11,0.06); stroke: var(--amber); stroke-dasharray: 5 4; stroke-width: 2; }
.b-node.gap text { fill: var(--amber); font-weight: 700; }
.b-node.gap.right .b-box { stroke: var(--accent2); stroke-dasharray: none; fill: rgba(110,231,183,0.1); }
.b-node.gap.right text { fill: var(--accent2); }
/* several gaps at once (Build it from the parts page): placed but not checked, wrong, the selected slot */
.b-node.gap.filled .b-box { stroke: var(--purple); stroke-dasharray: none; fill: rgba(167,139,250,0.1); }
.b-node.gap.filled text { fill: var(--purple); }
.b-node.gap.wrong .b-box { stroke: var(--red); stroke-dasharray: none; fill: rgba(248,113,113,0.1); }
.b-node.gap.wrong text { fill: var(--red); }
.b-node.gap.tip { cursor: pointer; }
.b-node.gap.tip:focus-visible .b-box, .b-node.gap.tip:hover .b-box { stroke-width: 3; }
/* highlight option (flashcards): everything except the highlighted boxes and their connectors is dimmed */
.b-svg.focus .b-node:not(.sel) { opacity: 0.45; }
.b-svg.focus .b-edge:not(.lit) { opacity: 0.45; }
.b-svg.focus .b-zone, .b-svg.focus .b-zone-label { opacity: 0.6; }
/* edge labels (Tech Foundations pictures only; the game boards have none) */
.b-edge-label { font-family: var(--font); font-size: 7.5px; font-weight: 600; fill: #aab3d4; paint-order: stroke; stroke: #141722; stroke-width: 3px; stroke-linejoin: round; }
.b-edge-label.lit { fill: var(--amber); }
.b-svg.focus .b-edge-label:not(.lit) { opacity: 0.55; }
