/* PIANO ARMY · THE SPELL LAB (army-vfx-lab.html, js/army-vfx-lab.js): the dragon's flame and the storms' fall to review,
   their variants to pick, a note, Save my choices. */
:root { --bg: #0f141f; --panel: #171e2c; --line: #2a3448; --ink: #e8ecf4; --sub: #9aa6bd; --gold: #f2c35b; --hot: #ff9b4a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; display: grid;
  grid-template-columns: 330px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.lab-header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.brand { color: var(--gold); font-weight: 800; text-decoration: none; font-size: 17px; } .brand span { color: var(--ink); font-weight: 600; }
.lab-header nav a { color: var(--sub); margin-left: 16px; text-decoration: none; } .lab-header nav a:hover { color: var(--ink); }
.picks { padding: 14px 16px; border-right: 1px solid var(--line); background: var(--panel); overflow: auto; }
.picks h2 { font-size: 12px; letter-spacing: .12em; color: var(--gold); margin: 6px 0 8px; }
.cards { display: grid; gap: 8px; margin-bottom: 16px; }
.card { text-align: left; background: #1d2638; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); cursor: pointer; font: inherit; }
.card b { display: block; font-size: 15px; } .card small { display: block; color: var(--sub); margin-top: 3px; }
.card[aria-checked="true"] { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot) inset; background: #2a2330; }
.card[aria-checked="true"] b::after { content: " ✓"; color: var(--hot); }
.note label { display: block; font-size: 12px; letter-spacing: .08em; color: var(--sub); margin-bottom: 6px; }
.note textarea { width: 100%; background: #0f1522; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; resize: vertical; }
.project-save { margin-top: 12px; }
#save-choices { width: 100%; padding: 10px; border-radius: 9px; border: 0; background: var(--gold); color: #1a1406; font-weight: 800; font-size: 15px; cursor: pointer; }
#save-choices:disabled { opacity: .6; cursor: progress; }
#save-status { font-size: 12.5px; color: var(--sub); margin: 8px 0 0; } #save-status[data-state="saved"] { color: #8fe3a0; } #save-status[data-state="error"] { color: #ff8a80; }
.fine { font-size: 12px; color: var(--sub); }
main { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.transport { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.transport button, .transport select { background: #1d2638; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; }
#clock { font-variant-numeric: tabular-nums; color: var(--gold); } .hint { color: var(--sub); font-size: 12px; margin-left: auto; }
.views { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; flex: 1; min-height: 0; }
.view { margin: 0; position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0a0e16; min-height: 360px; }
.view canvas { display: block; width: 100%; height: 100%; }
.view figcaption { position: absolute; left: 10px; top: 8px; font-size: 12px; color: var(--sub); background: #0009; padding: 2px 8px; border-radius: 6px; pointer-events: none; }
.three canvas { cursor: grab; } .three canvas:active { cursor: grabbing; }
#notice { color: var(--sub); margin: 0; font-size: 12.5px; }
@media (max-width: 900px) { body { grid-template-columns: 1fr; } .picks { border-right: 0; border-bottom: 1px solid var(--line); } .views { grid-template-columns: 1fr; } .view { min-height: 300px; } }
