/* scenes/logiccircuit.css -- the logic circuits: tabs, status, floating labels, the sheet, the button. */
.gscene-logiccircuit .gscene-stage { height: clamp(400px, 64vh, 620px); background: radial-gradient(ellipse 90% 70% at 50% 25%, #3b6aa8, #1d3a66 60%, #0f1e3a); }
.lc-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lc-head { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lc-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; pointer-events: auto; }
.lc-tab { padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer;
  font: 800 0.8rem/1.3 var(--display); color: var(--ink); background: rgba(10, 15, 28, 0.72); transition: background 0.2s, color 0.2s; }
.lc-tab.on { background: var(--gold); color: #0a0f1c; border-color: transparent; }
.lc-tab:focus-visible, .lc-tag:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lc-status { margin: 0; padding: 5px 14px; border-radius: 99px; max-width: 100%; text-align: center;
  font: 800 0.86rem/1.35 var(--display); color: var(--ink); background: rgba(10, 15, 28, 0.82); font-variant-numeric: tabular-nums; }
.lc-tip { margin: 0; max-width: 34em; text-align: center; font: 600 0.8rem/1.4 var(--text); color: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.lc-tag { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; padding: 4px 10px; border: 0; border-radius: 99px;
  font: 800 0.76rem/1.3 var(--display); color: var(--ink); background: rgba(10, 15, 28, 0.72); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); white-space: nowrap; transition: opacity 0.4s; }
.lc-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--torch); }
.lc-switch { border: 1px dashed rgba(255, 255, 255, 0.5); }
.lc-switch::before { background: #6b2b2b; }
.lc-switch.is-on::before { background: var(--grass); box-shadow: 0 0 6px var(--grass); }
.lc-lamp::before { background: var(--gold); }
.lc-tank::before, .lc-sensor::before { background: var(--water); }
.lc-transistor::before, .lc-junction::before { background: var(--sky); }
.is-away .lc-tag { opacity: 0.4 !important; }
.lc-sheet { position: absolute; left: 16px; bottom: 64px; max-width: min(340px, calc(100% - 32px)); padding: 12px 14px; border-radius: 14px;
  background: rgba(10, 15, 28, 0.88); border: 1px solid var(--line); color: var(--ink); font: 600 0.86rem/1.45 var(--text);
  opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
.lc-sheet.on { opacity: 1; transform: none; }
.lc-sheet b { display: block; font: 800 0.95rem/1.3 var(--display); color: var(--torch); margin-bottom: 4px; }
.lc-note { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 200px); margin: 0; padding: 6px 14px; border-radius: 14px;
  font: 800 0.8rem/1.35 var(--display); color: #0a0f1c; background: var(--gold); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; }
.is-away .lc-note { opacity: 1; transform: none; }
.lc-away { position: absolute; right: 16px; bottom: 16px; pointer-events: auto; }
@media (max-width: 560px) { .lc-tip { display: none; } .lc-note { max-width: calc(100% - 32px); bottom: 64px; } }
@media (prefers-reduced-motion: reduce) { .lc-sheet, .lc-note, .lc-tag, .lc-tab { transition: none; } }
.lc-delay::before, .lc-gate::before, .lc-opamp::before, .lc-memory::before { background: #d9b453; }
.lc-button::before { background: #d9534f; }
.lc-display { font-variant-numeric: tabular-nums; color: var(--gold); background: rgba(20, 22, 28, 0.92); border: 1px solid rgba(217, 180, 83, 0.55); }
.lc-display::before { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
