:root {
  color-scheme: light;
  --mcb-background: #f4f5f6;
  --mcb-foreground: #24313e;
  --mcb-orange: #d0772e;
  --mcb-red: #b94a46;
  --mcb-yellow: #c2a24e;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #24313e;
  background: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
[hidden] { display: none !important; }
main { width: 100%; height: 100%; padding: 12px; display: flex; flex-direction: column; }
.views, .camera-controls div { display: flex; flex-wrap: wrap; gap: 8px; }
button, summary { font: inherit; font-size: .875rem; }
button {
  border: 1px solid #aeb8c1;
  border-radius: 7px;
  min-height: 40px;
  padding: 8px 12px;
  color: inherit;
  background: #fff;
  cursor: pointer;
}
button[aria-pressed="true"] { background: #243b53; border-color: #243b53; color: #fff; }
button:hover:not(:disabled) { border-color: #243b53; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, canvas:focus-visible, summary:focus-visible { outline: 3px solid #dc7a20; outline-offset: 3px; }
.stage { position: relative; width: 100%; min-height: 0; flex: 1; margin-top: 10px; border-radius: 10px; background: var(--mcb-background); overflow: hidden; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.notice { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 24px; background: var(--mcb-background); text-align: center; }
.notice p { max-width: 32em; margin: 0; line-height: 1.5; }
.help { margin: 10px 0; font-size: .78rem; line-height: 1.5; color: #526170; }
summary { cursor: pointer; padding: 5px 0; }
.camera-controls { position: relative; }
.camera-controls[open] div { position: absolute; z-index: 2; bottom: 100%; left: 0; right: 0; padding: 10px; border: 1px solid #aeb8c1; border-radius: 8px; background: #fff; box-shadow: 0 3px 15px #24313e25; }
@media (max-width: 360px) { main { padding: 8px; } button { padding-inline: 10px; } }
@media (max-height: 320px) {
  main { padding: 6px 8px; }
  button { min-height: 34px; padding-block: 5px; }
  .stage { margin-top: 5px; }
  .help { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  summary { font-size: .75rem; padding-block: 3px; }
}
