/* ─────────────────────────────────────────────────────────────────────────
   KinPella Circuit Lab VR — page styles for /circuits/vr.
   Loaded only by the VR page, on top of site.css + circuit-lab.css. The 3D
   stage itself is rendered by public/circuit-vr.js (Three.js, vendored);
   these styles cover the page chrome: lesson tiles, the stage frame, the
   Enter VR button and the fallback control row. Flat borders, no big soft
   shadows (the owner's ghost-text lesson).
   ───────────────────────────────────────────────────────────────────────── */

.clvr-stats{font-weight:800;color:var(--muted);margin:0}
.page-hero .clvr-stats{color:#c9d4ef}

/* Lesson picker — one compact row of tiles, first screen (NO-SCROLL LAW) */
.clvr-lessons{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 4px}
.clvr-tile{flex:1 1 150px;text-align:left;background:#fff;border:2px solid #e8edf3;border-radius:14px;padding:12px 14px;cursor:pointer;font:inherit;color:#22314f}
.clvr-tile h3{margin:0 0 4px;font-size:16.5px}
.clvr-tile p{margin:0;font-size:13.5px;color:#5b6b8c;line-height:1.45}
.clvr-tile .clvr-tile-state{font-weight:800;color:#6c4bd8}
.clvr-tile.is-selected{border-color:#6c4bd8;background:#f3f0ff}
.clvr-tile.is-done .clvr-tile-state{color:#1d9e6c}
.clvr-tile:disabled{cursor:default;opacity:.62;background:#f4f6fb}
.clvr-tile:disabled .clvr-tile-state{color:#8494b3}

/* The 3D stage */
.clvr-stage{position:relative;border:2px solid #26365c;border-radius:18px;overflow:hidden;background:#0d1730;aspect-ratio:4/3;max-height:74vh;margin:14px auto 0;max-width:880px}
.clvr-stage canvas{display:block;width:100%;height:100%;touch-action:none}
.clvr-stage-note{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;max-width:880px;margin:14px auto 0}
.clvr-xr-note{margin:0;color:#c9d4ef;font-size:14px;font-weight:700;background:#0d1730;border:1px solid #26365c;border-radius:999px;padding:7px 14px}
.clvr-enter-vr{font-size:17px}
.clvr-enter-vr[hidden]{display:none}
.clvr-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#c9d4ef;font-weight:800;font-size:17px;text-align:center;padding:20px}
.clvr-loading[hidden]{display:none}

/* Fallback controls (mirror the in-world ones; the phone preview path) */
.clvr-controls{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:14px auto 0;max-width:880px}
.clvr-feedback{max-width:880px;margin:12px auto 0;text-align:center;font-size:16.5px;font-weight:700;color:#2c2358;background:var(--violet-soft);border-radius:12px;padding:12px 16px}
.clvr-feedback:empty{display:none}
.clvr-howto{max-width:880px;margin:14px auto 0;color:#5b6b8c;font-size:14.5px;line-height:1.55;text-align:center}

/* Small phones: compact tiles + a slightly shorter stage so the bench and
   the Enter VR button sit inside the first screen (NO-SCROLL LAW). */
@media (max-width:560px){
  .clvr-lessons{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;margin-top:12px;padding-bottom:6px}
  .clvr-tile{flex:0 0 64%;scroll-snap-align:start;padding:9px 11px;border-radius:12px}
  .clvr-tile h3{font-size:15px;margin-bottom:2px}
  .clvr-tile p{font-size:12.5px;line-height:1.4}
  .clvr-stage{aspect-ratio:4/2.9}
  .clvr-stage-note{margin-top:10px}
  .clvr-xr-note{font-size:13px}
}
