/* Owned by work-list unit `web-shell`. The shell around the game canvas; no framework. */
:root {
  --bg: #000;
  --fg: #e8e8e8;
  --card: #1c1c22;
  --accent: #f2b600;
  --danger: #d9534f;
  --line: #3a3a44;
  font: 15px/1.45 system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); }
[hidden] { display: none !important; }
#shell { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 16px; box-sizing: border-box; overflow: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; max-width: 640px; width: 100%; box-sizing: border-box; }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; color: var(--accent); }
h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.small { font-size: .85rem; opacity: .8; }
button, select { font: inherit; color: var(--fg); background: #2b2b33; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: #000; font-weight: 600; }
button.danger { border-color: var(--danger); color: #ffb3b0; }
label { display: block; margin: .4rem 0; }
#drop { border: 2px dashed var(--line); border-radius: 8px; padding: 32px 12px; text-align: center; margin: 12px 0; }
#drop.over { border-color: var(--accent); background: #26261c; }
#import-status p, #play-status p { margin: .25rem 0; }
.bad { color: #ffb3b0; }
.good { color: #b8f2b0; }
progress { width: 100%; }
details { margin-top: 1rem; }
summary { cursor: pointer; }
#stage { position: fixed; inset: 0; background: #000; touch-action: none; }
#screen { position: absolute; image-rendering: pixelated; image-rendering: crisp-edges; outline: none; }
#screen.smooth { image-rendering: auto; }
#bar { position: fixed; top: 4px; right: 4px; display: flex; gap: 4px; opacity: .25; transition: opacity .2s; z-index: 2; }
#bar:hover, #bar:focus-within { opacity: 1; }
#bar button { padding: 2px 8px; font-size: .8rem; }
#sound-badge { opacity: 1; border-color: var(--accent); }
#notice { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; max-width: 90vw; z-index: 3; }
#overlay { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; z-index: 4; padding: 16px; }
#overlay pre { white-space: pre-wrap; max-height: 50vh; overflow: auto; background: #111; padding: 8px; border-radius: 6px; font-size: .8rem; }
