/* The preview page. Released under CC0 1.0 Universal (see LICENSE). */
:root {
  --page: #E8E6E6;
  --ink: #101010;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(16, 16, 16, 0.14);
  --focus: #3A6FF0;
  color-scheme: light;
}
:root[data-colour="dark"] {
  --page: #101010;
  --ink: #EDEDED;
  --panel: rgba(26, 26, 27, 0.92);
  --line: rgba(255, 255, 255, 0.16);
  color-scheme: dark;
}
html, body { margin: 0; height: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.stage { position: fixed; inset: 0; overflow: hidden; background: var(--page); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback {
  position: absolute; inset: 0; margin: 0; padding: 16px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.fallback[hidden] { display: none; }
.panel {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.choice {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: pointer;
}
.choice[aria-current="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.choice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice[hidden], .note[hidden] { display: none; }
.note { padding: 0 6px; }
