*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #040912;
  --panel: #081220;
  --cyan: #5cd9ff;
  --amber: #f5b441;
  --ink: #d9edf6;
  --muted: #8093a0;
  --line: rgba(92, 217, 255, 0.2);
}
html { color-scheme: dark; font-family: "Source Sans 3", system-ui, sans-serif; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--bg); }
.skip { position: fixed; left: -999px; top: 0; z-index: 20; padding: 0.75rem 1rem; color: var(--bg); background: var(--cyan); }
.skip:focus { left: 0.75rem; top: 0.75rem; }
main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.back { color: var(--cyan); font-size: 0.78rem; letter-spacing: 0.08em; text-decoration: none; }
h1 { max-width: 12ch; margin: 1.1rem 0 0; color: var(--cyan); font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 0.96; letter-spacing: -0.035em; }
.lede { max-width: 64ch; margin: 1rem 0 0; color: #a7bbc6; line-height: 1.65; }
.preview-rail { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; margin-top: 2rem; padding: 1rem; border: 1px solid var(--line); background: rgba(8, 18, 32, 0.72); }
.control-set { display: grid; gap: 0.45rem; min-width: 13rem; }
.control-label { color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
button, input { font: inherit; }
.toggle {
  min-height: 44px; padding: 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: transparent; cursor: pointer;
}
.toggle[aria-pressed="true"] { color: var(--bg); border-color: var(--cyan); background: var(--cyan); }
.toggle:hover { border-color: rgba(92, 217, 255, 0.7); }
.toggle:focus-visible, .case .crown:focus-visible, a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.time-input { min-height: 44px; padding: 0.45rem 0.7rem; border: 1px solid var(--line); color: var(--ink); background: var(--bg); }
.status { flex: 1 1 15rem; min-height: 44px; display: flex; align-items: center; justify-content: flex-end; color: var(--muted); font-size: 0.78rem; }
.preview-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 3rem 1.5rem; margin-top: 3rem; }
@media (min-width: 640px) { .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.projection { display: grid; justify-items: center; align-content: start; gap: 1rem; min-width: 0; }
.case {
  position: relative; width: min(100%, 310px); --finish: #2a2e35;
  background: linear-gradient(150deg, color-mix(in srgb, var(--finish), white 28%), var(--finish) 44%, color-mix(in srgb, var(--finish), black 34%));
}
.crown { position: absolute; z-index: 5; padding: 0; border: 0; background: repeating-linear-gradient(to bottom, #8c9298 0 1.2px, #33373b 1.2px 2.4px); }
.crown::before { content: ""; position: absolute; width: 44px; height: 44px; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; }
.screen { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: #000; }
.screen canvas, .screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.projection[hidden] { display: none; }
.projection-copy { width: min(100%, 310px); }
.projection-title { margin: 0; color: var(--ink); font-size: 1rem; letter-spacing: 0.015em; }
.projection-meta { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.projection-meta strong { color: var(--cyan); font-weight: 600; }
.projection[data-fidelity="adapted"] .projection-meta strong { color: var(--amber); }
.projection[data-fidelity="concept"] .projection-meta strong { color: #a9b5be; }
.limitations { margin: 0.55rem 0 0; padding-left: 1rem; color: #91a4af; font-size: 0.72rem; line-height: 1.45; }
.inventory { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.inventory h2 { margin: 0; color: var(--cyan); font-size: 1.35rem; }
.inventory-note { max-width: 66ch; color: var(--muted); line-height: 1.6; }
.inventory table { width: 100%; margin-top: 1.25rem; border-collapse: collapse; font-size: 0.78rem; }
.inventory th, .inventory td { padding: 0.65rem 0.5rem; border-bottom: 1px solid rgba(92, 217, 255, 0.11); text-align: left; vertical-align: top; }
.inventory th { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.inventory a { color: var(--ink); text-decoration-color: rgba(92, 217, 255, 0.45); text-underline-offset: 0.18em; }
.inventory .scene-ready { color: var(--cyan); }
.inventory .wff-ready { color: var(--amber); }
@media (max-width: 560px) {
  main { width: min(100% - 1.25rem, 1180px); padding-top: 2rem; }
  .preview-rail { align-items: stretch; }
  .control-set, .status { width: 100%; }
  .status { justify-content: flex-start; }
  .inventory th:nth-child(3), .inventory td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
