.component-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.component-card { min-height: 154px; padding: 14px; border: 1px solid #254750; background: #0a1c24; }
.component-card h3 { margin: 12px 0 4px; font-size: 16px; }
.component-card p { margin: 0; color: #b8cbc6; font-size: 14px; line-height: 1.5; }
.part-icon { position: relative; display: block; width: 72px; height: 34px; margin: auto; }
.part-icon::before, .part-icon::after { position: absolute; content: ""; }
.wire .part-icon::before { top: 14px; left: 2px; width: 68px; height: 7px; border-radius: 8px; background: linear-gradient(#ecf5ef 0 15%, #0072b2 16% 85%, #003f65 86%); box-shadow: 0 0 0 3px #07151d; }
.resistor .part-icon::before { top: 5px; left: 20px; width: 32px; height: 25px; background: linear-gradient(110deg, #fff0c4, #d8a866 55%, #86542d); box-shadow: -19px 11px 0 -8px #c8b070, 19px 11px 0 -8px #c8b070; }
.resistor .part-icon::after { top: 5px; left: 33px; width: 6px; height: 25px; background: #d55e00; box-shadow: 9px 0 #563426; }
.capacitor .part-icon::before { top: 1px; left: 25px; width: 23px; height: 32px; background: linear-gradient(90deg, #1e3950, #d5e7e1 50%, #14232d); box-shadow: -18px 14px 0 -8px #c8b070, 18px 14px 0 -8px #c8b070; }
.capacitor .part-icon::after { top: 4px; left: 34px; width: 2px; height: 26px; background: #e8f4ed; box-shadow: 5px 0 #e8f4ed; }
.chip .part-icon::before { top: 3px; left: 16px; width: 40px; height: 28px; background: linear-gradient(135deg, #4c5861, #070d13 55%, #28363d); box-shadow: -6px 4px 0 -4px #d8c589, -6px 13px 0 -4px #d8c589, -6px 22px 0 -4px #d8c589, 46px 4px 0 -4px #d8c589, 46px 13px 0 -4px #d8c589, 46px 22px 0 -4px #d8c589; }
.chip .part-icon::after { top: 12px; left: 27px; width: 6px; height: 6px; background: #009e73; }
.play-link { display: inline-block; padding: 12px 15px; color: #061019; background: #f4ba58; font-weight: 800; letter-spacing: .05em; text-decoration: none; }
.play-link:hover, .play-link:focus-visible { color: #fff; background: #cf5939; outline: 3px solid #82dec1; outline-offset: 3px; }
kbd { padding: 1px 5px; border: 1px solid #527067; border-radius: 3px; color: #d7f3e5; background: #102a30; font: inherit; }
@media (max-width: 480px) { .component-legend { grid-template-columns: 1fr; } }
