/* public/style.css - the shell style. No inline style is allowed (CSP). */

:root {
  color-scheme: light;
  --ink: #000000;
  --paper: #ffffff;
  --spot: #c00000;
  --muted: #444444;
  --line: #000000;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 60rem;
  padding: 1rem;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1 { margin: 0 0 0.25rem; font-size: 2rem; }
h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }

.note { margin: 0.25rem 0; color: var(--muted); font-size: 0.9rem; }
.error { color: var(--spot); font-weight: 600; }

.card {
  margin: 1rem 0;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 0.5rem;
}

.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

textarea, select, input[type="range"] { font: inherit; }
textarea { width: 100%; padding: 0.5rem; border: 2px solid var(--line); border-radius: 0.25rem; }
select { padding: 0.25rem; border: 2px solid var(--line); border-radius: 0.25rem; background: var(--paper); }

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--line);
  border-radius: 0.25rem;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled { opacity: 0.5; cursor: not-allowed; }

:focus-visible { outline: 3px solid var(--spot); outline-offset: 2px; }

[hidden] { display: none !important; }

.stage-wrap { position: relative; max-width: 100%; }
#stage { display: block; width: 100%; height: auto; max-height: 70vh; border: 2px solid var(--line); background: var(--paper); object-fit: contain; }

.badge {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.125rem 0.5rem;
  border: 2px solid var(--line);
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
}

.quality { white-space: pre-wrap; padding: 0.5rem; border: 1px solid var(--line); font-size: 0.85rem; }

progress { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
