/* Branch 06 console (site/src/console/): the drawer, the timeline, the plate beside a hovered spot, the job word, the feature ring, the drape tracks.
   The drawer is drawn in the family of SPL's studio control app (docs/branches/06-the-console.md
   section 3): panels a touch lighter than its grey-1 to grey-2, 1 px borders, uppercase tracked labels,
   light values, the selected chip filled with the accent. Sizes are stage px (1920 wide), the app's
   sizes scaled about 1.5x so they read on a scaled stage (HYPOTHESIS, judged by eye).
   Two colours: the cyan accent for what the visitor can touch, SPL red (--cs-now) for where they are
   on the timeline, the ▸ that moves the tour, and Contact. Every control is an icon and a word. */
:root {
  --cs-accent: var(--pt-accent, #86E1FF); /* what the visitor can touch: chips, chevrons, gates, discs */
  --cs-now: #FF3333;                     /* SPL red: where the visitor is, on the timeline; the Contact rule */
  --cs-panel: rgba(30, 34, 41, .84);     /* a touch lighter than the app's grey-1 (HYPOTHESIS, by eye) */
  --cs-panel-2: #272c34;
  --cs-solid: #1c2026;                   /* an opaque panel (the panel drawing, the timeline's dots) */
  --cs-line: #3b414b;
  --cs-label: #aab2bb;
  --cs-value: #f4f6f8;
  --cs-ink: #0d0f12;                     /* type on the accent */
  --cs-ease: cubic-bezier(.65, 0, .35, 1);
}

/* ── drawer ── */
#stage > .cs-drawer {
  left: 1400px; top: 0; width: 520px; height: 1080px; box-sizing: border-box;
  display: none; flex-direction: column; gap: 28px; padding: 44px 36px 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 40%), var(--cs-panel); border-left: 1px solid var(--cs-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  font-family: var(--font); font-weight: 300; color: var(--cs-value);
  pointer-events: auto; z-index: 5;
}
#stage > .cs-drawer.on { display: flex; animation: cs-in 500ms var(--cs-ease) both; }
@keyframes cs-in { from { transform: translateX(40px); opacity: 0; } }
.cs-drawer button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; position: relative; overflow: hidden; }
.cs-drawer button:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; }

/* header: room switch (segmented) and Plan */
.cs-head { display: grid; gap: 14px; }
.cs-head-row { display: flex; gap: 12px; }
.cs-seg { flex: 1; display: flex; border: 1px solid var(--cs-line); border-radius: 6px; background: var(--cs-panel-2); padding: 4px; }
.cs-plan { width: 120px; border: 1px solid var(--cs-line) !important; border-radius: 6px; background: var(--cs-panel-2) !important;
  font-size: 22px !important; letter-spacing: .02em; color: var(--cs-label) !important;
  transition: color 200ms var(--cs-ease), border-color 200ms var(--cs-ease); }
.cs-plan.on { color: var(--cs-value) !important; border-color: var(--cs-accent) !important; }
.cs-seg-b { flex: 1; height: 60px; border-radius: 4px !important; font-size: 24px !important; letter-spacing: .02em; color: var(--cs-label) !important;
  transition: background 200ms var(--cs-ease), color 200ms var(--cs-ease); }
.cs-seg-b.on { background: var(--cs-accent) !important; color: var(--cs-ink) !important; font-weight: 400 !important; }

.cs-body { flex: 1; min-height: 0; overflow: hidden; }
.cs-grid { display: grid; gap: 14px; }
.cs-grid > * { animation: cs-arrive 360ms var(--cs-ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes cs-arrive { from { opacity: 0; transform: translateY(14px); } }

/* the body's one label (Features), drawn as the tabs were: tracked uppercase over a 1 px rule */
.cs-label { height: 56px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; border-bottom: 1px solid var(--cs-line);
  font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--cs-label); }
.cs-label::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: var(--cs-accent); }

/* Features: chips, a dot for the active one, the selected chip filled */
.cs-features { grid-template-columns: 1fr 1fr; }
.cs-chip { height: 104px; border: 1px solid var(--cs-line) !important; border-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0)), var(--cs-panel-2) !important;
  display: flex; align-items: center; padding: 0 20px !important; text-align: left;
  transition: background 220ms var(--cs-ease), border-color 220ms var(--cs-ease); }
.cs-chip:hover { border-color: rgba(134, 225, 255, .55) !important; }
.cs-chip-t { font-size: 25px; letter-spacing: .01em; }
.cs-chip.on { background: var(--cs-accent) !important; border-color: var(--cs-accent) !important; color: var(--cs-ink); font-weight: 400; }

/* the feature a chip rings (stage px) */
#stage > .cs-ring { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: visible; pointer-events: none; opacity: 0; transition: opacity 200ms linear; }
#stage > .cs-ring.on { opacity: 1; }
.cs-ring-c { fill: none; stroke: var(--cs-accent); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(134, 225, 255, .7)); }
.cs-ring.on .cs-ring-c { animation: cs-ring-draw 600ms var(--cs-ease) forwards; }
@keyframes cs-ring-draw { to { stroke-dashoffset: 0; } }
.cs-ring-halo { fill: none; stroke: var(--cs-accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cs-ring.on .cs-ring-halo { animation: cs-ring-halo 1.6s ease-out 600ms infinite; }
@keyframes cs-ring-halo { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }
.cs-ring-dot { fill: var(--cs-accent); }
.cs-ring-lead { stroke: var(--cs-accent); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .9;
  filter: drop-shadow(0 0 3px rgba(8, 9, 10, .9)); }

/* the chevrons on the floor at a spot (stage px, chevrons.js): the V in the accent over a dark band */
#stage > .cs-chev { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: visible; pointer-events: none; }
.cs-chev-v { fill: var(--cs-accent); }

/* the gates (stage px, gates.js): a soft accent glow floating over the pad, breathing, a ring, a thin
   tether to the floor and the gate's word over it */
#stage > .cs-gates { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: visible; pointer-events: none; }
.cs-gate-glow { mix-blend-mode: screen; }
.cs-gate-ring { fill: rgba(8, 9, 10, .28); stroke: var(--cs-accent); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(134, 225, 255, .8)); }
.cs-gate-halo { fill: none; stroke: var(--cs-accent); stroke-width: 1.5; }
.cs-gate-dot { fill: var(--cs-accent); }
.cs-gate-tether { stroke: var(--cs-accent); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .7; filter: drop-shadow(0 0 2px rgba(8, 9, 10, .9)); }
.cs-gate-foot { fill: var(--cs-accent); opacity: .8; }
.cs-gate-word { font-family: var(--font); font-weight: 300; font-size: 28px; letter-spacing: .01em; fill: var(--cs-value);
  paint-order: stroke; stroke: rgba(8, 9, 10, .75); stroke-width: 5px; stroke-linejoin: round; }


/* the ring in the mini game: no repeating halo; one halo on the last slide */
.cs-ring.game.on .cs-ring-halo { animation: none; }
.cs-ring.game.pulse .cs-ring-halo { animation: cs-ring-halo 1.1s ease-out 1 both; }
.cs-ring.game.pulse .cs-ring-c { animation: cs-ring-draw 600ms var(--cs-ease) forwards, cs-ring-beat 700ms var(--cs-ease) 1; transform-box: fill-box; transform-origin: center; }
@keyframes cs-ring-beat { 40% { transform: scale(1.12); stroke-width: 5; } }

/* the mini game's overlays (cameras.js ar): the lead along the floor, the panel drawing over the photograph */
#stage > .cs-plug { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: visible; pointer-events: none; opacity: 0; transition: opacity 200ms linear; }
#stage > .cs-plug.on { opacity: 1; }
.cs-plug-lead { fill: none; stroke: var(--cs-accent); stroke-width: 3; stroke-dasharray: 10 8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .8)); transition: stroke-width 300ms var(--cs-ease); }
.cs-plug-lead.solid { stroke-width: 4; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .8)) drop-shadow(0 0 8px rgba(134, 225, 255, .55)); }
#stage > .cs-panel { position: absolute; right: auto; bottom: auto; height: auto; opacity: 0; pointer-events: none; padding: 10px; background: var(--cs-solid); border: 1px solid var(--cs-accent); border-radius: 6px; box-sizing: content-box; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .7)); }
.cs-panel-in { position: relative; }
.cs-panel img { display: block; width: 100%; height: auto; }
.cs-panel-jack { position: absolute; transform: translate(-50%, -50%); border: 4px solid var(--cs-accent); border-radius: 50%; box-sizing: border-box; display: none; box-shadow: 0 0 0 2px var(--cs-solid); }

/* the mini game's card (game.js): over the stage, bottom centre of the photograph left of the drawer */
#stage > .cs-game { left: 430px; top: auto; bottom: 128px; /* over the timeline */ width: 540px; height: auto; box-sizing: border-box;
  display: none; flex-direction: column; gap: 12px; padding: 22px 20px 20px 26px;
  background: var(--cs-panel); border: 1px solid var(--cs-line); border-radius: 8px;
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  font-family: var(--font); font-weight: 300; color: var(--cs-value); pointer-events: auto; z-index: 4; touch-action: pan-y; }
#stage > .cs-game.on { display: flex; animation: cs-game-in 420ms var(--cs-ease) both; }
@keyframes cs-game-in { from { transform: translateY(24px); opacity: 0; } }
.cs-game button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; }
.cs-game button:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; }
.cs-game-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cs-game-n { display: none; } /* the timeline shows where the visitor is */
.cs-game-x { flex: none; white-space: nowrap; height: 44px; padding: 0 14px 0 10px !important; display: flex; align-items: center; gap: 6px; border-radius: 22px !important; border: 1px solid var(--cs-line) !important;
  font-size: 19px !important; color: var(--cs-label) !important; }
.cs-game-x:hover { color: var(--cs-value) !important; border-color: var(--cs-label) !important; }
.cs-game-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.cs-game-back { height: 56px; padding: 0 20px 0 14px !important; display: flex; align-items: center; gap: 8px; border-radius: 28px !important; border: 1px solid var(--cs-line) !important; font-size: 22px !important; color: var(--cs-value) !important; }
.cs-game-back:hover { border-color: var(--cs-label) !important; }
.cs-game.first .cs-game-back { visibility: hidden; }
.cs-game-t { font-size: 34px; letter-spacing: .01em; }
.cs-game-t.in { animation: cs-arrive 360ms var(--cs-ease) both; }
.cs-game-next { height: 56px; padding: 0 16px 0 24px !important; display: flex; align-items: center; gap: 8px; border-radius: 28px !important; border: 0 !important;
  background: var(--cs-accent) !important; color: var(--cs-ink) !important; font-size: 22px !important; font-weight: 400 !important;
  transition: background 200ms var(--cs-ease), color 200ms var(--cs-ease); }
.cs-game-next:hover { filter: brightness(1.08); }
.cs-game-done { height: 56px; padding: 0 24px 0 16px !important; display: none; align-items: center; gap: 8px; border-radius: 28px !important; background: var(--cs-accent) !important; color: var(--cs-ink) !important; font-size: 22px !important; font-weight: 400 !important; }
.cs-game.last .cs-game-next { display: none; }
.cs-game.last .cs-game-done { display: flex; opacity: .25; transform: scale(.8); transition: opacity 300ms var(--cs-ease), transform 300ms var(--cs-ease), box-shadow 300ms var(--cs-ease); }
.cs-game.done .cs-game-done { opacity: 1; transform: none; box-shadow: 0 0 22px rgba(134, 225, 255, .45); }
.cs-game.done .cs-game-done:hover { box-shadow: 0 0 30px rgba(134, 225, 255, .7); }
#stage > .cs-game.top { bottom: auto; } /* the iPad held in front: the card at the top of the area */
.cs-game-steps { display: none; } /* the timeline shows the steps */
.cs-game-s { height: 16px; position: relative; }
.cs-game-s::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 1px; background: var(--cs-line); transition: background 250ms var(--cs-ease); }
.cs-game-s.past::after { background: rgba(134, 225, 255, .45); }
.cs-game-s.on::after { background: var(--cs-accent); }
/* the setups mini game (index.js, game kind "spaces"): its setup chips between the label and the segments */
.cs-game-chips { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.cs-game-chips[hidden] { display: none; }
.cs-game-c { position: relative; height: 60px; border: 1px solid var(--cs-line) !important; border-radius: 6px; background: var(--cs-panel-2) !important;
  display: flex; align-items: center; padding: 0 16px !important; text-align: left;
  transition: background 220ms var(--cs-ease), border-color 220ms var(--cs-ease); }
.cs-game-ct { font-size: 21px; letter-spacing: .01em; }
.cs-game-c:hover { border-color: var(--cs-label) !important; }
.cs-game-c.on { background: var(--cs-accent) !important; border-color: var(--cs-accent) !important; color: var(--cs-ink) !important; font-weight: 400; }

/* footer: the tour control and the one link */
.cs-foot { display: flex; align-items: center; justify-content: flex-end; border-top: 1px solid var(--cs-line); padding-top: 24px; min-height: 60px; }
.cs-contact { font-size: 22px; letter-spacing: .04em; color: var(--cs-value); text-decoration: none; border-bottom: 2px solid var(--cs-now); padding-bottom: 4px; }
.cs-contact:hover { color: #fff; }

/* a tap ripples */
.cs-ripple { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none;
  border: 1px solid var(--cs-accent); animation: cs-ripple 600ms var(--cs-ease) forwards; }
@keyframes cs-ripple { to { transform: scale(9); opacity: 0; } }

/* ── the plate: a hovered disc's photograph beside it (plates.js), the wedge where the drop faces ── */
#stage > .cs-plates { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
#stage > .cs-plates.off { visibility: hidden; }
.cs-peek { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: visible; }
.cs-wedge { fill: url(#cs-wedge-g); stroke: var(--cs-accent); stroke-width: 1.5; stroke-opacity: .55; stroke-linejoin: round; }
.cs-wedge-axis { stroke: var(--cs-accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 7; filter: drop-shadow(0 0 3px rgba(8, 9, 10, .9)); }
.cs-disc-ring { fill: none; stroke: var(--cs-accent); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(134, 225, 255, .8)); }
.cs-disc-halo { fill: none; stroke: var(--cs-accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: cs-ring-halo 1.6s ease-out infinite; }
.cs-plate-lead { stroke: var(--cs-accent); stroke-width: 1.2; opacity: .8; filter: drop-shadow(0 0 2px rgba(8, 9, 10, .9)); }
.cs-plate { position: absolute; left: 0; top: 0; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; pointer-events: none; will-change: transform; }
.cs-plate.on { pointer-events: auto; }
.cs-plate:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 4px; }
.cs-plate-in { position: relative; display: block; padding: 8px; border-radius: 8px; background: var(--cs-panel); border: 1px solid var(--cs-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 22px rgba(134, 225, 255, .14);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  transform-origin: var(--ox, 0) var(--oy, 50%); opacity: 0; transform: scale(.9);
  transition: opacity 120ms var(--cs-ease), transform 120ms var(--cs-ease); }
.cs-plate.on .cs-plate-in { opacity: 1; transform: none; transition: opacity 180ms var(--cs-ease), transform 220ms cubic-bezier(.2, 1.3, .4, 1); }
.cs-plate-pic { position: relative; display: block; width: var(--pw, 380px); height: var(--ph, 293px); overflow: hidden; border-radius: 3px; background: #0b0c0f; }
.cs-crop { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 700ms var(--cs-ease); }
.cs-crop.on { opacity: 1; }
.cs-plate.on .cs-crop.on { animation: cs-plate-pic 360ms var(--cs-ease) both; }
@keyframes cs-plate-pic { from { transform: scale(1.06); filter: brightness(1.25); } }
.cs-plate-cap { display: flex; align-items: center; gap: 8px; padding: 10px 4px 2px; font-family: var(--font); font-weight: 400; font-size: 20px; color: var(--cs-value); }
.cs-plate-cap svg { color: var(--cs-accent); }
/* HUD corners in the accent */
.cs-plate-in i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--cs-accent); pointer-events: none; }
.cs-plate-in .tl { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 8px; }
.cs-plate-in .tr { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 8px; }
.cs-plate-in .bl { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 8px; }
.cs-plate-in .br { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 8px; }

/* ── the job's name, bottom left ── */
#stage > .cs-job { left: 96px; top: 868px; /* over the timeline */ width: auto; height: auto; pointer-events: none; z-index: 4; /* over the held iPad */
  font-family: var(--font); font-weight: 300; font-size: 44px; letter-spacing: .01em; color: var(--cs-value);
  text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 1px 14px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--cs-ease), transform 400ms var(--cs-ease); }
#stage > .cs-job.on { opacity: 1; transform: none; }
#stage > .cs-job[hidden], #stage > .cs-plates[hidden] { display: none; }

/* ── life (site/src/console/life.js): untouched, the active chip breathes ── */
.cs-drawer.cs-idle .cs-chip.on { animation: cs-chip-breathe 3.2s ease-in-out infinite; }
@keyframes cs-chip-breathe {
  50% { box-shadow: 0 0 0 1px var(--cs-accent), 0 0 34px rgba(134, 225, 255, .55); filter: brightness(1.12); }
}
/* the ending: both plans; Contact in the footer stands out */
.cs-drawer.cs-ending .cs-contact { color: #fff; background: var(--cs-now); border: 0; border-radius: 6px; padding: 14px 30px; font-weight: 400;
  box-shadow: 0 0 0 0 rgba(255, 51, 51, .5); animation: cs-cta 2.4s ease-in-out infinite; }
@keyframes cs-cta { 50% { box-shadow: 0 0 0 6px rgba(255, 51, 51, .18), 0 0 26px rgba(255, 51, 51, .35); } }

/* ── the iPad (ipad.js): over the real one on its stand, or held in view ── */
/* the clip: the photograph's aperture (stage px, set per frame); under the drawer and the mini game's card */
#stage > .cs-ipad-clip { left: 0; top: 0; height: 1080px; pointer-events: none; overflow: hidden; z-index: 3; }
#stage > .cs-ipad-clip[hidden] { display: none; }
/* its own box before the homography: a thin dark bezel, a soft accent rim like the console's edges */
.cs-ipad { position: absolute; left: 0; top: 0; box-sizing: border-box; transform-origin: 0 0; will-change: transform;
  background: #0b0c0e; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(134, 225, 255, .55), 0 0 26px rgba(134, 225, 255, .3); transition: box-shadow 300ms var(--cs-ease); }
.cs-ipad.held { box-shadow: 0 0 0 2px rgba(134, 225, 255, .7), 0 0 30px rgba(134, 225, 255, .3), 0 30px 80px rgba(0, 0, 0, .65); }
/* near the control station (the looks game's hint): on its stand it glows, slowly */
.cs-ipad.near { animation: cs-ipad-near 2.6s ease-in-out infinite; }
@keyframes cs-ipad-near { 50% { box-shadow: 0 0 0 3px rgba(134, 225, 255, .85), 0 0 48px rgba(134, 225, 255, .5); } }
.cs-ipad.live { pointer-events: auto; }
.cs-ipad.side { pointer-events: auto; cursor: default; } /* the mini game drives its page; a press on it does nothing */
.cs-ipad-screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #15181d; }
/* the page (the control app's element): laid out at its page size, scaled into the bezel; inert until held */
.cs-ipad control-panel { display: block; transform-origin: 0 0; pointer-events: none; background: #15181d; }
.cs-ipad.live control-panel { pointer-events: auto; }

/* ── the timeline (timeline.js): the tour's steps along the bottom of the stage, left of the drawer;
   a mini game's steps open out after its mark. Red is where the visitor is; the accent what they can touch. ── */
#stage > .cs-tl { position: absolute; left: 32px; bottom: 24px; width: 1336px; height: 84px; top: auto; box-sizing: border-box;
  display: none; align-items: center; gap: 18px; padding: 0 22px 0 12px;
  background: var(--cs-panel); border: 1px solid var(--cs-line); border-radius: 14px;
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  font-family: var(--font); font-weight: 300; color: var(--cs-value); pointer-events: auto; z-index: 4; }
#stage > .cs-tl.on { display: flex; animation: cs-game-in 420ms var(--cs-ease) both; }
.cs-tl button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; }
.cs-tl button:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; border-radius: 8px; }
/* ▸ and its word */
.cs-tl-go { flex: none; display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 22px 0 0 !important; border-right: 1px solid var(--cs-line) !important; }
.cs-tl-i { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--cs-now); color: #fff;
  box-shadow: 0 0 0 0 rgba(255, 51, 51, .5); transition: transform 200ms var(--cs-ease), background 200ms var(--cs-ease); }
.cs-tl-i svg { margin-left: 3px; }
.cs-tl-go:hover .cs-tl-i { transform: scale(1.06); }
.cs-tl-go.on .cs-tl-i { background: transparent; color: var(--cs-now); box-shadow: inset 0 0 0 2px var(--cs-now); }
.cs-tl-go.hot:not(.on) .cs-tl-i { animation: cs-go 2.2s ease-in-out infinite; }
@keyframes cs-go { 50% { box-shadow: 0 0 0 7px rgba(255, 51, 51, .2), 0 0 28px rgba(255, 51, 51, .45); } }
.cs-tl-w { white-space: nowrap; text-align: left; font-size: 25px; letter-spacing: .01em; color: var(--cs-value); }
.cs-tl-back { flex: none; height: 50px; padding: 0 16px 0 10px !important; display: flex; align-items: center; gap: 6px; border-radius: 25px !important; border: 1px solid var(--cs-line) !important;
  font-size: 20px !important; color: var(--cs-label) !important; }
.cs-tl-back:not(:disabled):hover { color: var(--cs-value) !important; border-color: var(--cs-label) !important; }
.cs-tl-back:disabled { opacity: .3; cursor: default; }
/* the rail: each mark's dot on it, its label under it */
.cs-tl-track { flex: 1; min-width: 0; height: 100%; display: flex; align-items: stretch; }
/* parts (Room A, Room B, the globe): the open one spreads, the others fold to their first mark */
.cs-tl-seg { flex: 0 0 auto; min-width: 0; display: flex; align-items: stretch; }
.cs-tl-seg.open { flex: 1 1 auto; }
.cs-tl-seg + .cs-tl-seg { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--cs-line); }
.cs-tl-seg:not(.open) .cs-tl-m:not(:first-child) { display: none; }
.cs-tl-seg:not(.open) .cs-tl-m::after { display: none; }
.cs-tl-seg:not(.open) .cs-tl-m { padding-left: 14px !important; padding-right: 14px !important; }
.cs-tl-m, .cs-tl-s { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 18px !important; color: var(--cs-label) !important; transition: flex-grow 360ms var(--cs-ease), color 200ms var(--cs-ease); }
.cs-tl-m { flex-basis: auto; } /* each mark at least its label's width, so neighbours never overlap */
.cs-tl-m::before, .cs-tl-m::after, .cs-tl-s::before, .cs-tl-s::after { content: ""; position: absolute; top: 26px; height: 2px; background: var(--cs-line); transition: background 300ms var(--cs-ease); }
.cs-tl-m::before, .cs-tl-s::before { left: 0; right: 50%; }
.cs-tl-m::after, .cs-tl-s::after { left: 50%; right: 0; }
.cs-tl-m:first-child::before, .cs-tl-m:last-child::after { display: none; }
.cs-tl-m.lit-a::before, .cs-tl-m.lit-b::after, .cs-tl-s.lit-a::before, .cs-tl-s.lit-b::after { background: var(--cs-now); }
.cs-tl-d { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; background: var(--cs-solid); border: 2px solid var(--cs-label);
  display: grid; place-items: center; color: #fff; transition: transform 250ms var(--cs-ease), background 250ms var(--cs-ease), border-color 250ms var(--cs-ease); }
.cs-tl-t { margin-top: 10px; font-size: 22px; line-height: 1.1; letter-spacing: .01em; white-space: nowrap;
  transition: opacity 250ms var(--cs-ease), color 200ms var(--cs-ease); }
.cs-tl-m:hover, .cs-tl-s:not(:disabled):hover { color: var(--cs-value) !important; }
.cs-tl-m:hover .cs-tl-d, .cs-tl-s:not(:disabled):hover .cs-tl-d { border-color: var(--cs-accent); }
.cs-tl-s:disabled { cursor: default; }
.cs-tl-m.seen .cs-tl-d, .cs-tl-s.past .cs-tl-d { background: var(--cs-now); border-color: var(--cs-now); transform: scale(.75); }
.cs-tl-m.next, .cs-tl-s.next { color: var(--cs-value) !important; }
.cs-tl-m.next .cs-tl-d, .cs-tl-s.next .cs-tl-d { border-color: var(--cs-value); }
.cs-tl-m.now, .cs-tl-s.now { color: #fff !important; }
.cs-tl-m.now .cs-tl-t, .cs-tl-s.now .cs-tl-t { font-weight: 400; }
.cs-tl-m.now .cs-tl-d, .cs-tl-s.now .cs-tl-d { background: var(--cs-now); border-color: #fff; transform: scale(1.3); box-shadow: 0 0 0 5px rgba(255, 51, 51, .25), 0 0 16px rgba(255, 51, 51, .6); }
.cs-tl-m.left { color: var(--cs-value) !important; }
.cs-tl-m.left .cs-tl-d { border-color: var(--cs-now); transform: scale(1.2); animation: cs-left 2s ease-in-out infinite; }
@keyframes cs-left { 50% { box-shadow: 0 0 0 6px rgba(255, 51, 51, .22); } }
.cs-tl-s.past .cs-tl-d:has(svg) { transform: scale(1.2); }
/* a mini game open: its steps after its mark, each at least its label's width; the other marks of
   its part folded to dots, the other parts out of the way */
.cs-tl-g { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; border-radius: 10px; background: rgba(255, 51, 51, .07); box-shadow: inset 0 0 0 1px rgba(255, 51, 51, .22); margin: 8px 0; }
.cs-tl-g .cs-tl-s { flex: 1 1 auto; padding: 10px 12px 0 !important; }
.cs-tl-g .cs-tl-s::before, .cs-tl-g .cs-tl-s::after { top: 18px; }
.cs-tl-s .cs-tl-d { width: 14px; height: 14px; }
.cs-tl-s .cs-tl-t { margin-top: 8px; font-size: 21px; }
.cs-tl-track.grouped .cs-tl-seg:not(.open) { display: none; }
.cs-tl-track.grouped .cs-tl-m:not(.open) { flex: 0 0 26px; }
.cs-tl-track.grouped .cs-tl-m:not(.open) .cs-tl-t { opacity: 0; }
.cs-tl-track.grouped .cs-tl-m.open { flex: 0 0 auto; padding: 18px 14px 0 !important; }
.cs-tl-track.grouped .cs-tl-m.open .cs-tl-t { overflow: visible; }
/* the hint: one short line above the timeline's left end */
#stage > .cs-hint { position: absolute; left: 40px; bottom: 124px; top: auto; width: auto; height: auto; pointer-events: none; z-index: 4;
  font-family: var(--font); font-weight: 400; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-value);
  padding: 8px 14px; border-radius: 6px; background: rgba(20, 23, 28, .62); box-shadow: inset 0 0 0 1px rgba(134, 225, 255, .35);
  opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--cs-ease), transform 300ms var(--cs-ease); }
#stage > .cs-hint.on { opacity: 1; transform: none; }

/* the held iPad's Put back (ipad.js), above its top right corner */
#stage > .cs-ipad-put { position: absolute; left: 0; top: 0; width: auto; height: 48px; display: none; align-items: center; gap: 8px; padding: 0 18px 0 14px; margin: 0;
  border: 1px solid var(--cs-line); border-radius: 24px; background: var(--cs-panel); color: var(--cs-value); cursor: pointer; z-index: 4;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-family: var(--font); font-weight: 400; font-size: 20px; pointer-events: auto; }
#stage > .cs-ipad-put.on { display: flex; }
#stage > .cs-ipad-put:hover { border-color: var(--cs-accent); }
#stage > .cs-ipad-put svg { color: var(--cs-accent); }

/* ── the globe (globe.js): over the photograph's area, under the timeline, the hint and the drawer;
   a drag turns it ── */
#stage > .cs-globe { display: none; width: 1400px; height: 1080px; pointer-events: auto; z-index: 3; cursor: grab; touch-action: none; }
#stage > .cs-globe.on { display: block; }
#stage > .cs-globe:active { cursor: grabbing; }
.cs-globe canvas { position: absolute; left: 0; top: 0; }
.cs-globe-words { position: absolute; inset: 0; pointer-events: none; }
.cs-globe-word { font-size: 32px; }
#stage > .cs-globe.hot { cursor: pointer; }
/* the contact line under the globe: the question, then a line and the Contact button (SPL red, as the drawer's at the ending) */
.cs-globe-cta { position: absolute; transform: translateX(-50%); display: grid; justify-items: center; gap: 18px; font-family: var(--font); font-weight: 300; color: var(--cs-value); pointer-events: auto; cursor: default; }
.cs-globe-cta[hidden] { display: none; }
.cs-globe-q { font-size: 40px; letter-spacing: .01em; white-space: nowrap; color: #fff; }
.cs-globe-row { display: flex; align-items: center; gap: 24px; }
.cs-globe-line { font-size: 24px; letter-spacing: .02em; color: var(--cs-label); white-space: nowrap; }
.cs-globe-go { font-size: 20px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-decoration: none; background: var(--cs-now); border-radius: 6px; padding: 14px 30px;
  transition: transform 200ms var(--cs-ease), box-shadow 200ms var(--cs-ease); }
.cs-globe-go:hover { transform: scale(1.04); box-shadow: 0 0 24px rgba(255, 51, 51, .45); }

/* a speaker's card (speakers.js): beside its box over the photograph, the mini game's card in small */
#stage > .cs-spk { position: absolute; right: auto; bottom: auto; height: auto; box-sizing: border-box; display: none; flex-direction: column; gap: 6px; padding: 16px 16px 20px 22px;
  background: var(--cs-panel); border: 1px solid var(--cs-line); border-left: 3px solid var(--cs-accent); border-radius: 8px;
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  font-family: var(--font); font-weight: 300; color: var(--cs-value); pointer-events: auto; z-index: 4; }
#stage > .cs-spk.on { display: flex; animation: cs-spk-in 320ms var(--cs-ease) both; }
@keyframes cs-spk-in { from { transform: translateY(12px); opacity: 0; } }
.cs-spk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-spk-k { font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--cs-accent); }
.cs-spk-x { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font: inherit; color: var(--cs-label); background: none; border: 1px solid var(--cs-line); border-radius: 22px; padding: 0; cursor: pointer; }
.cs-spk-x:hover { color: var(--cs-value); border-color: var(--cs-label); }
.cs-spk-x:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; }
.cs-spk-t { font-size: 30px; letter-spacing: .01em; line-height: 1.15; }
.cs-spk-l { font-size: 21px; color: var(--cs-label); line-height: 1.35; }
.cs-spk-n { font-size: 21px; color: var(--cs-value); line-height: 1.35; margin-top: 6px; }
.cs-spk-n:empty { display: none; }
