
/* one screen: the 3D stage on top, Machined Paper bar with step text and timeline under it */
:root { --ink: #111417; --muted: #6E747D; --bar: #F3F1EC; --accent: #FF4E1A; color-scheme: light; }
html, body { margin: 0; height: 100%; background: var(--bar); }
#app-root { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--bar); color: var(--ink); font: 400 15px/1.4 Archivo, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
#app-root * { box-sizing: border-box; }

#app-root .stage { position: relative; flex: 1 1 auto; min-height: 0; background: #7f7f7f; cursor: grab; touch-action: none; user-select: none; }
#app-root .stage canvas { display: block; width: 100%; height: 100%; }
#app-root .loading { position: absolute; inset: 0; display: grid; place-items: center; color: #F3F1EC; font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

#app-root .callouts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#app-root .callout { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.3s ease; }
#app-root .callout .dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(17, 20, 23, 0.55); }
#app-root .callout svg { position: absolute; left: 0; top: 0; overflow: visible; }
#app-root .callout line { stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.2; }
#app-root .callout .pill { position: absolute; white-space: nowrap; padding: 4px 10px; border-radius: 2px; background: rgba(243, 241, 236, 0.95); color: var(--ink); font-size: 12.5px; font-weight: 500; transform: translate(-50%, -50%); box-shadow: 0 2px 10px rgba(17, 20, 23, 0.18); }

#app-root .bar { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 16px; background: var(--bar); border-top: 1px solid rgba(17, 20, 23, 0.14); }
#app-root .text { min-height: 52px; transition: opacity 0.25s ease; }
#app-root .text.fade { opacity: 0; }
#app-root .num { display: inline-block; margin-right: 8px; color: var(--accent); font-family: "Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; vertical-align: 2px; }
#app-root .num:empty { display: none; }
#app-root h1 { display: inline; margin: 0; font-size: 19px; line-height: 1.2; font-weight: 640; letter-spacing: -0.01em; }
#app-root p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
#app-root .controls { display: flex; align-items: center; gap: 14px; }
#app-root button { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 0; background: var(--ink); color: var(--bar); cursor: pointer; transition: background 0.18s; }
#app-root button:hover { background: var(--accent); }
#app-root button svg { width: 14px; height: 14px; fill: currentColor; }
#app-root button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#app-root .track { position: relative; flex: 1 1 auto; height: 24px; display: flex; align-items: center; gap: 4px; cursor: pointer; touch-action: none; }
#app-root .seg { position: relative; height: 3px; border-radius: 0; background: rgba(17, 20, 23, 0.14); overflow: hidden; }
#app-root .seg i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

@media (max-width: 600px) {
  #app-root .bar { padding: 12px 14px 14px; }
  #app-root h1 { font-size: 16.5px; }
  #app-root p { font-size: 13px; }
  #app-root .text { min-height: 60px; }
}
