/* Styles für die Spielhalle (spielhalle.php und js/games/*.js) */
.game { background: var(--ink); border: 4px solid var(--pcb-line); padding: 18px; margin-bottom: 1.5rem; }
.game h2 { margin-top: 0; }
.game-hud { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-pixel); font-size: .6rem; color: var(--led-green); margin-bottom: 14px; }
.game-hud b { color: var(--gold); font-weight: normal; }
.game-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.game-answers .btn { font-size: .65rem; padding: 14px 8px; }
.game-answers .btn.right { background: var(--led-green); }
.game-answers .btn.wrong { background: var(--led-red); color: #fff; }
.game-msg { min-height: 3.2em; font-size: 1.3rem; color: var(--silk-dim); }
.game-msg.good { color: var(--led-green); }
.game-msg.bad { color: var(--led-red); }

/* Widerstand aus Pixeln */
.resistor { display: flex; align-items: center; justify-content: center; margin: 16px 0; }
.resistor .lead { width: 60px; height: 8px; background: var(--solder); }
.resistor .body { display: flex; align-items: stretch; gap: 14px; height: 64px; padding: 0 22px; background: #d9b27c; border: 4px solid #000; box-shadow: inset 0 8px 0 rgba(255,255,255,.25), inset 0 -8px 0 rgba(0,0,0,.18); }
.resistor .band { width: 16px; border-left: 2px solid rgba(0,0,0,.35); border-right: 2px solid rgba(0,0,0,.35); }
.resistor .gap { width: 14px; }

/* Binär-LEDs */
.bits { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 16px 0; }
.bit { width: 64px; text-align: center; font-family: var(--font-pixel); font-size: .55rem; color: var(--silk-dim); background: none; border: 0; cursor: pointer; padding: 0; }
.bit i { display: block; width: 48px; height: 48px; margin: 0 auto 6px; background: #3a1010; border: 4px solid #000; box-shadow: 4px 4px 0 #000; }
.bit.on i { background: var(--led-red); box-shadow: 0 0 22px 4px var(--led-red), 4px 4px 0 #000; }
.bit:focus-visible { outline: 3px dashed var(--led-blue); }
.target { font-family: var(--font-pixel); font-size: 1.4rem; color: var(--gold); text-align: center; margin: 8px 0; }
