/* © 2026 Cromulent, Inc. All Rights Reserved. */
/* board-view.css - the emulated board on a page (board-view.mjs): its drawing or face, lights, buttons, the room, the
   console. Shared by the lesson page and the studio; moved from learn.css on 2026-12-02 (the reshape's phase 3). */
.learn-quiet { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 5px 12px;
  font: 12px var(--mono); cursor: pointer; margin: 4px 6px 0 0; }
.learn-quiet:hover { border-color: var(--orchid); color: var(--ink); }
.learn-state { font: 12px var(--mono); color: var(--orchid); }
.learn-state.bad { color: var(--bad); }
.learn-drawing { flex: 0 0 auto; display: flex; justify-content: center; }
.learn-drawing svg { width: 100%; max-width: 340px; height: auto; max-height: clamp(210px, 38vh, 340px); display: block; overflow: visible; }
/* a lit light glows past its own edge (board-view.mjs paintLights sets the glow); the little red LED gets a halo of its own */
.learn-drawing svg [style*="drop-shadow"] { transition: filter .06s linear; }
.learn-drawing .learn-halo { opacity: 0; pointer-events: none; mix-blend-mode: screen; transition: opacity .06s linear; }
.learn-drawing [data-press] { cursor: pointer; }
.learn-board-acts { display: flex; gap: 6px; justify-content: center; }
.learn-board-acts .learn-quiet[aria-pressed="true"] { border-color: var(--orchid); color: var(--orchid); }
/* what the board prints */
.learn-console { flex: 1 1 auto; min-height: 90px; margin: 0; overflow: auto; background: var(--void); border-radius: var(--radius-sm);
  padding: 8px 10px; font: 12.5px/1.5 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
/* the room: what the board senses, set by hand */
.learn-room { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 8px; font: 11.5px var(--mono); color: var(--ink-2); }
.learn-room summary { cursor: pointer; color: var(--orchid-light); }
.learn-room-sliders { display: grid; gap: 2px; padding-top: 4px; }
.learn-room-row { display: grid; grid-template-columns: 11em 1fr 3.5em; align-items: center; gap: 6px; }
.learn-room-row input { width: 100%; accent-color: var(--orchid); }
.learn-room-row output { text-align: right; color: var(--ink); }
/* any board, drawn from its runtime entry: its screen, a light for each LED, a button for each button */
.learn-generic { flex-direction: column; align-items: center; gap: 8px; }
.learn-lcd { width: 100%; max-width: 210px; image-rendering: pixelated; display: block; background: #000; border-radius: 6px;
  border: 6px solid var(--panel-2); box-sizing: border-box; }
/* the board's face: a black circuit board, four mounting holes, its name in silkscreen, the screen as wide as the column */
/* teenyprint: the receipt printer's paper under the board (runtime/web/paper.mjs draws each piece) */
.learn-paper { display: flex; justify-content: center; margin-top: 12px; width: 100%; }
.learn-paper .paper:empty { display: none; }
.learn-face { --pcb: #0b0c12; --silk: #e9e6dc; --pad: #b8954a; position: relative; width: 100%; max-width: 340px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 18px 16px; border-radius: 14px;
  background:
    radial-gradient(circle at 12px 12px, #000 3px, var(--pad) 3.5px, var(--pad) 5.5px, transparent 6px),
    radial-gradient(circle at calc(100% - 12px) 12px, #000 3px, var(--pad) 3.5px, var(--pad) 5.5px, transparent 6px),
    radial-gradient(circle at 12px calc(100% - 12px), #000 3px, var(--pad) 3.5px, var(--pad) 5.5px, transparent 6px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #000 3px, var(--pad) 3.5px, var(--pad) 5.5px, transparent 6px),
    var(--pcb);
  border: 1px solid #2a2d3a; box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .03); }
.learn-face-silk { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); font: 600 10px var(--mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--silk); opacity: .7; white-space: nowrap; }
.learn-face .learn-lcd { max-width: 100%; border: 0; border-radius: 4px; box-shadow: 0 0 0 6px #111318, 0 0 0 7px #2a2d3a; }
.learn-face[data-display="paper"] .learn-lcd { image-rendering: auto; background: #e8e6df; box-shadow: 0 0 0 8px #d8d5cb, 0 0 0 9px #2a2d3a; }
.learn-face[data-display="matrix"] .learn-lcd { border-radius: 2px; box-shadow: 0 0 0 4px #050507, 0 0 0 5px #2a2d3a; }
.learn-face .learn-lightrow-name { color: var(--silk); opacity: .6; }
.learn-face .learn-light { background: #1a1c24; border-color: #2f3240; }
.learn-face .learn-press { border-radius: 999px; min-width: 44px; min-height: 44px; padding: 8px 12px; background: #1c1e26;
  border-color: #3a3d4c; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .5); }
.learn-lightrows { display: grid; gap: 4px; justify-items: center; width: 100%; }
.learn-lightrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; max-width: 100%; }  /* a strip of 30 wraps instead of running off the panel */
.learn-lightrow[hidden] { display: none; }  /* a port strip until a program lights it (manifest until_lit) */
.learn-lightrow-name { font: 11px var(--mono); color: var(--ink-faint); }
.learn-light { width: 16px; height: 16px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); transition: background .05s linear; }
.learn-presses { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.learn-press { border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); border-radius: 10px; padding: 8px 14px;
  font: 600 12px var(--mono); cursor: pointer; touch-action: none; user-select: none; }
.learn-press.down { background: var(--orchid); color: var(--orchid-ink); border-color: var(--orchid); }
.learn-press:focus-visible { outline: 2px solid var(--orchid-light); outline-offset: 2px; }
.learn-drawing [data-press].down { opacity: .7; }
.learn-camera-row select { width: 100%; min-width: 0; background: var(--panel, transparent); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
