/* OtoMotion ブラウザデモ固有。グラフィックは docs/brand/xpression_scene/scene_bg.html と同じ配置・色（1920×1080 で組んで scale で縮める） */
#demo { padding: 48px 0 64px; border-top: 0;
  background: radial-gradient(ellipse 60% 40% at 8% 0%, rgba(242, 64, 40, .16), transparent 70%),
              radial-gradient(ellipse 60% 40% at 95% 0%, rgba(176, 77, 255, .16), transparent 70%), var(--side); }
.demo-title { font-size: clamp(34px, 5vw, 56px); margin: 0 0 12px; color: #fff; }
.demo-title span { color: var(--orange); }
.demo-lead { color: #cfd5e3; margin: 0 0 24px; max-width: 46em; }

/* ---- グラフィック ---- */
.stage-box { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #070a14; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.stage { --bg0: #070a14; --bg1: #0e1220; --panel: rgba(22, 27, 44, .86); --line2: #3a4a7a; --ln: #2d3552; --o: #F24028; --o2: #ff6a4d; --p: #b04dff; --mut: #7d87a3;
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0;
  background: radial-gradient(ellipse at 20% -10%, #3a1c24 0%, transparent 45%),
              radial-gradient(ellipse at 95% 10%, #2a1d52 0%, transparent 45%),
              linear-gradient(180deg, var(--bg1), var(--bg0));
  font-family: var(--num); font-weight: 700; color: #e8ebf2; line-height: 1; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 1920px; height: 1080px; }
.stage .abs { position: absolute; }
.stage img.abs { max-width: none; }
.stage .panel { background: var(--panel); border: 2px solid var(--line2); border-radius: 22px; box-shadow: 0 0 0 1px rgba(74, 92, 255, .12), 0 24px 70px rgba(0, 0, 0, .55); }
.stage .lbl { font-size: 22px; letter-spacing: .28em; color: var(--mut); white-space: nowrap; }
.stage .lbl b { color: var(--o2); font-weight: 800; }
.stage .lbl b.v { color: #c77dff; }
.stage .lbl.big { font-size: 28px; letter-spacing: .1em; color: #cfd5e3; }
.stage .lbl.band { width: 150px; text-align: center; font-size: 16px; }
.stage .slot { background: rgba(8, 11, 22, .92); border: 2px solid var(--ln); border-radius: 12px; }
.stage .txt { display: flex; align-items: center; justify-content: center; padding: 0 20px; letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stage .txt.left { justify-content: flex-start; }
.stage .txt.hot { color: #ff6a6a; }
.stage .track { background: #060913; border: 2px solid #1f2640; border-radius: 10px; overflow: hidden; }
.stage .track::after { content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.035) 18px 20px); }
.stage .vtrack::after { background: repeating-linear-gradient(0deg, transparent 0 18px, rgba(255,255,255,.035) 18px 20px); }
.stage .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 8px; transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.stage .fm { background: linear-gradient(90deg, #b8261a, #F24028 70%, #ff7a4d); box-shadow: 0 0 18px rgba(242,64,40,.35); }
.stage .fs { background: linear-gradient(90deg, #8f3c2c, #FF8A70); }
.stage .fp { background: linear-gradient(90deg, #9c7a1a, #FFD23F); }
.stage .fb { top: auto; right: 0; height: 100%; transform-origin: 50% 100%; transform: scaleY(0);
  background: linear-gradient(0deg, #4a1d8a, #B04DFF 70%, #e0a0ff); box-shadow: 0 0 18px rgba(176,77,255,.4); }
.stage .hold { position: absolute; left: -2px; top: 0; bottom: 0; width: 4px; background: #fff; opacity: 0; will-change: transform; }
.stage .tick { position: absolute; top: 0; width: 2px; background: #3a4468; }
.stage .tickl { position: absolute; top: 24px; font-size: 18px; font-weight: 700; color: var(--mut); transform: translateX(-50%); letter-spacing: .05em; }
.stage .target { background: var(--o); box-shadow: 0 0 14px var(--o); z-index: 2; }
.stage .over { display: grid; place-items: center; font-size: 20px; font-weight: 800; letter-spacing: .2em; color: #5a2b33; border-color: #5a2b33; }
.stage .over.on { background: #d9202a; border-color: #ff5a5a; color: #fff; box-shadow: 0 0 24px rgba(255,59,48,.6); }
.stage .dot { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--line2); background: #060913; }
.stage .dot.on { background: #F24028; border-color: #ff8a6a; box-shadow: 0 0 30px #F24028, 0 0 60px rgba(242,64,40,.5); }

/* ---- 操作 ---- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.btn { font: inherit; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 8px; cursor: pointer; background: var(--card); color: var(--ink); border: 1px solid var(--line); line-height: 1.4; }
.btn:hover:not(:disabled) { border-color: var(--orange2); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--orange2); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange2); }
.btn.on { box-shadow: 0 0 0 2px var(--side), 0 0 0 4px var(--orange2); }
.btn.tap { font-family: var(--num); letter-spacing: .12em; min-width: 84px; }
.btn.tap.hit { animation: taphit .18s ease-out; }
@keyframes taphit { from { background: var(--orange); color: #fff; } }
.vol { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.vol[hidden] { display: none; }
.vol input { width: 140px; accent-color: var(--orange); }
.demo-status { min-height: 1.8em; margin: 14px 0 0; color: #cfd5e3; font-size: 15px; }
.demo-status.err { color: #ffb4a6; background: rgba(242, 64, 40, .12); border: 1px solid rgba(242, 64, 40, .45); border-radius: 8px; padding: 10px 14px; }
.demo-note { margin: 12px 0 0; max-width: 60em; }
.demo-cta { margin-top: 32px; }
@media (max-width: 600px) {
  #demo { padding-top: 32px; }
  .btn { padding: 9px 14px; font-size: 14px; }
  .btn.primary, #btn-mic { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .btn.tap.hit { animation: none; } }
