/* Showfront viewer — light palette, no build step. */
:root {
  color-scheme: light;
  --bg: #FAF8F5;
  --card: #ffffff;
  --ink: #1c1a17;
  --muted: #6b655c;
  --line: #e5ded2;
  --accent: #C8A55C;
  --accent-ink: #5c4718;
  --good-bg: #d9f2df;
  --good-ink: #14622f;
  --bad-bg: #fbdcdc;
  --bad-ink: #8f1d1d;
}
* { box-sizing: border-box; }
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0 auto;
  max-width: 1200px;
  padding: 24px 20px 64px;
}
header.hero { margin-bottom  : 8px; }
header.hero h1 { font-size: 1.6rem; margin: 0 0 4px; letter-spacing: -0.01em; }
header.hero h1 .gold { color: var(--accent); }
.sub { color: var(--muted); margin-bottom: 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
}
.card h2 { font-size: 1.05rem; margin: 0 0 8px; }
.card h2 .tag {
  font-size: 0.72rem; font-weight: 600; vertical-align: middle;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 1px 9px; margin-left: 8px;
}
.stage {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 8px;
  background: #141318; display: block; cursor: grab; touch-action: none;
  position: relative; overflow: hidden;
}
.stage:active { cursor: grabbing; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 7px 14px;
}
button.ghost {
  background: transparent; color: var(--accent-ink);
  border: 1px solid var(--accent);
}
.hint { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
video.commercial { width: 100%; border-radius: 8px; background: #000; }
.listing-price { font-size: 1.35rem; font-weight: 700; color: var(--accent-ink); }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.8rem; background: #eee; font-weight: 600;
}
.pill.done { background: var(--good-bg); color: var(--good-ink); }
.pill.failed { background: var(--bad-bg); color: var(--bad-ink); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; }
.models li { margin: 2px 0; }
#drop {
  border: 2px dashed var(--accent); border-radius: 10px; padding: 18px;
  text-align: center; color: var(--muted); background: #fff; cursor: pointer;
}
.err { color: var(--bad-ink); font-weight: 600; }
.empty {
  border: 1px dashed var(--line); border-radius: 8px; padding: 22px;
  text-align: center; color: var(--muted); background: var(--bg);
}
footer { color: var(--muted); font-size: 0.82rem; margin-top: 24px; }

/* ---------- showroom: the 360 hero ---------- */
.showroom { margin: 18px 0 8px; }
.stage-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 0 2px 10px;
}
.stage-head h2 { font-size: 1.15rem; margin: 0; letter-spacing: -0.01em; }
.stage-head h2 .tag {
  font-size: 0.72rem; font-weight: 600; vertical-align: middle;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 1px 9px; margin-left: 8px;
}
.counter {
  font-variant-numeric: tabular-nums; font-size: 0.9rem; font-weight: 600;
  color: var(--accent-ink); white-space: nowrap;
}
.stage-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #141318; border: 1px solid #2a2830;
  box-shadow: 0 24px 60px -24px rgba(20, 19, 24, 0.45);
}
.stage-wrap:fullscreen { border-radius: 0; border: 0; }
.stage-wrap:fullscreen #spin-canvas { aspect-ratio: auto; height: 100vh; }
#spin-canvas {
  width: 100%; aspect-ratio: 16 / 9; display: block;
  cursor: grab; touch-action: none; opacity: 0;
  transition: opacity 0.45s ease;
}
#spin-canvas.ready { opacity: 1; }
#spin-canvas:active { cursor: grabbing; }
#spin-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.stage-loader {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: #141318; color: #b9b2a6; font-size: 0.9rem;
}
.stage-loader[hidden] { display: none; }
.stage-loader .load-title { font-weight: 600; color: #e8e2d6; letter-spacing: 0.01em; }
.stage-loader .bar {
  width: min(320px, 60%); height: 3px; border-radius: 3px;
  background: #2c2a33; overflow: hidden;
}
.stage-loader .bar i {
  display: block; height: 100%; width: 0%;
  background: var(--accent); border-radius: 3px;
  transition: width 0.2s ease;
}
.stage-toolbar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  background: rgba(18, 17, 22, 0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px; padding: 6px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.stage-toolbar button {
  font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer;
  background: var(--accent); color: #1c1a17; border: 0; border-radius: 999px;
  padding: 6px 14px; line-height: 1.2;
}
.stage-toolbar button.ghost {
  background: transparent; color: #e8e2d6;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 11px;
}
.stage-toolbar button.seg.on {
  background: var(--accent); color: #1c1a17; border-color: transparent;
}
.stage-toolbar button:hover { filter: brightness(1.08); }
.stage-toolbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stage-toolbar .sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.16); }
.filmstrip {
  display: flex; gap: 8px; overflow-x: auto; margin-top: 12px;
  padding: 2px 2px 8px; scrollbar-width: thin;
}
.filmstrip .thumb {
  flex: 0 0 auto; width: 104px; aspect-ratio: 16 / 9; padding: 0;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  background: #141318; cursor: pointer;
}
.filmstrip .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.filmstrip .thumb.active { border-color: var(--accent); }
.filmstrip .thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 640px) {
  .stage-toolbar { bottom: 8px; padding: 5px 8px; gap: 4px; }
  .stage-toolbar button { font-size: 0.78rem; padding: 5px 10px; }
  .filmstrip .thumb { width: 84px; }
}
@media (max-width: 640px) {
  body { padding: 16px 12px 48px; }
  header.hero h1 { font-size: 1.3rem; }
}
