
:root{--tour-cyan:#58d7ff;--tour-green:#25d0a7;--tour-orange:#f47b2a;--tour-purple:#be78eb}
.lab-tour-page{min-height:100vh;background:radial-gradient(circle at 12% 28%,rgba(25,111,160,.12),transparent 32%),radial-gradient(circle at 88% 35%,rgba(166,75,121,.10),transparent 34%),var(--lab-bg)}
.lab-tour-hero{padding-top:clamp(2.5rem,7vw,6.5rem);padding-bottom:clamp(1.6rem,4vw,3.4rem)}
.lab-tour-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.55fr);gap:clamp(1.4rem,4vw,4rem);align-items:end}
.lab-tour-kicker{color:var(--branch-2);font-family:var(--font-tech);text-transform:uppercase;letter-spacing:.14em;font-weight:800;font-size:.78rem}
.lab-tour-hero h1{font-size:clamp(3rem,8vw,7.6rem);letter-spacing:-.065em;line-height:.9;margin:.35rem 0 1rem;font-weight:360}
.lab-tour-hero h1 strong{font-weight:850;background:linear-gradient(90deg,var(--tour-cyan),var(--tour-green),var(--tour-orange));-webkit-background-clip:text;background-clip:text;color:transparent}
.lab-tour-hero .lead{max-width:72ch;color:var(--muted);font-size:clamp(1rem,1.5vw,1.22rem)}
.lab-tour-hero-note{border-left:2px solid var(--tour-orange);padding:1rem 0 1rem 1.2rem;color:var(--muted)}
.lab-tour-version{display:block;margin-top:.8rem;font-family:var(--font-tech);font-size:.7rem;text-transform:uppercase;letter-spacing:.1em}
.tour-shell{width:min(1500px,calc(100% - 32px));margin:0 auto clamp(3rem,7vw,7rem);border:1px solid var(--line);border-radius:clamp(22px,3vw,34px);overflow:hidden;background:linear-gradient(180deg,color-mix(in srgb,var(--surface-strong) 90%,transparent),color-mix(in srgb,var(--surface) 84%,transparent));box-shadow:var(--shadow)}
.tour-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;padding:clamp(1rem,2vw,1.5rem);border-bottom:1px solid var(--line)}
.tour-toolbar h2{margin:0;font-size:clamp(1.35rem,2vw,2rem)}
.tour-toolbar p{margin:.3rem 0 0;color:var(--muted)}
.tour-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.55rem}
.tour-button{border:1px solid color-mix(in srgb,var(--branch-2) 45%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--surface-strong) 82%,transparent);color:var(--ink);padding:.65rem 1rem;font-weight:800;cursor:pointer;text-decoration:none}
.tour-button-primary{background:linear-gradient(135deg,var(--branch),var(--branch-2));color:#fff;border-color:transparent}
.tour-button:disabled{opacity:.42;cursor:not-allowed}
.tour-main{display:grid;grid-template-columns:minmax(260px,.34fr) minmax(0,1fr);min-height:min(76vh,850px)}
.tour-scenes{padding:clamp(1rem,2vw,1.4rem);border-right:1px solid var(--line);background:color-mix(in srgb,var(--surface-soft) 74%,transparent);overflow:auto}
.tour-scenes-heading{font-family:var(--font-tech);text-transform:uppercase;letter-spacing:.11em;color:var(--muted);font-size:.72rem;margin:0 0 .85rem}
.tour-scene-list{display:grid;gap:.72rem}
.tour-scene{width:100%;display:grid;grid-template-columns:78px minmax(0,1fr);gap:.8rem;text-align:left;border:1px solid var(--line);border-radius:17px;background:color-mix(in srgb,var(--surface-strong) 78%,transparent);color:var(--ink);padding:.62rem;cursor:pointer}
.tour-scene:hover,.tour-scene:focus-visible{border-color:var(--branch-2);outline:none}.tour-scene.is-active{border-color:var(--tour-orange);box-shadow:0 0 0 1px var(--tour-orange)}.tour-scene:disabled{cursor:not-allowed;opacity:.52}
.tour-scene img{width:78px;height:62px;object-fit:cover;border-radius:11px;background:#07111f}.tour-scene strong{display:block;line-height:1.15}.tour-scene span{display:block;color:var(--muted);font-size:.78rem;margin-top:.25rem}.tour-scene em{display:inline-block;margin-top:.38rem;color:var(--branch-2);font-family:var(--font-tech);font-style:normal;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em}
.tour-stage{position:relative;min-width:0;background:#050b13;display:grid;place-items:stretch}
.tour-poster,.tour-viewer{position:absolute;inset:0;width:100%;height:100%;border:0}.tour-poster{object-fit:cover}.tour-viewer{background:#050b13}
.tour-stage-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:clamp(1rem,4vw,3.5rem);background:linear-gradient(90deg,rgba(3,9,17,.82),rgba(3,9,17,.28) 58%,rgba(3,9,17,.14));transition:opacity .25s ease}
.tour-stage.is-running .tour-stage-overlay{opacity:0;pointer-events:none}.tour-stage-panel{justify-self:start;max-width:570px;border:1px solid rgba(255,255,255,.22);border-radius:24px;padding:clamp(1.2rem,3vw,2.2rem);background:rgba(5,14,25,.76);backdrop-filter:blur(16px);color:#eef8fc;box-shadow:0 25px 70px rgba(0,0,0,.42)}
.tour-stage-panel h2{margin:.3rem 0 .7rem;font-size:clamp(1.8rem,4vw,3.5rem);letter-spacing:-.045em}.tour-stage-panel p{color:#bfd0dc}.tour-stage-meta{display:flex;flex-wrap:wrap;gap:.45rem;margin:.9rem 0 1.1rem}.tour-stage-meta span{border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:.35rem .65rem;font:700 .72rem var(--font-tech);text-transform:uppercase;letter-spacing:.06em}.tour-start{font-size:1rem;padding:.8rem 1.25rem}.tour-status{min-height:1.5em;margin-top:.75rem;font-size:.82rem;color:#a9c7d8}
.tour-viewer-controls{position:absolute;right:1rem;bottom:1rem;display:none;gap:.45rem;z-index:3}.tour-stage.is-running .tour-viewer-controls{display:flex}.tour-viewer-controls .tour-button{background:rgba(5,14,25,.78);color:white;border-color:rgba(255,255,255,.28);backdrop-filter:blur(10px)}
.tour-help{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;padding:clamp(1rem,2vw,1.5rem);border-top:1px solid var(--line)}.tour-help article{border:1px solid var(--line);border-radius:16px;padding:.9rem;background:color-mix(in srgb,var(--surface-soft) 72%,transparent)}.tour-help strong{display:block}.tour-help p{margin:.35rem 0 0;color:var(--muted);font-size:.86rem}
html.light-mode .tour-shell{background:linear-gradient(180deg,#fff,#f4f8fc)}html.light-mode .tour-scenes{background:#eef5fa}html.light-mode .tour-scene{background:#fff}
@media(max-width:980px){.lab-tour-hero-grid{grid-template-columns:1fr}.tour-toolbar{grid-template-columns:1fr}.tour-actions{justify-content:flex-start}.tour-main{grid-template-columns:1fr;min-height:0}.tour-scenes{border-right:0;border-bottom:1px solid var(--line);overflow:visible}.tour-scene-list{grid-template-columns:repeat(2,minmax(0,1fr))}.tour-stage{min-height:64vh}.tour-help{grid-template-columns:1fr}}
@media(max-width:620px){.tour-shell{width:min(100% - 14px,1500px)}.tour-scene-list{grid-template-columns:1fr}.tour-stage{min-height:70vh}.tour-actions{display:grid;grid-template-columns:1fr 1fr}.tour-actions .tour-button{display:grid;place-items:center}.tour-viewer-controls{left:.65rem;right:.65rem;bottom:.65rem;justify-content:center}.tour-stage-overlay{padding:.65rem}.tour-stage-panel{padding:1rem;border-radius:18px}.lab-tour-hero h1{font-size:clamp(3rem,17vw,5.3rem)}}


/* v150: functional, visible parent controls for the embedded viewer */
.tour-viewer-controls{
  left:1rem;
  right:1rem;
  bottom:1rem;
  justify-content:flex-end;
  flex-wrap:wrap;
  pointer-events:none;
}
.tour-stage.is-running .tour-viewer-controls{display:flex}
.tour-viewer-controls .tour-button{pointer-events:auto;min-height:2.55rem;padding:.55rem .82rem}
.tour-viewer-controls .tour-button-compact{min-width:2.65rem;padding:.5rem .7rem;font-size:1.12rem}
.tour-viewer-controls [aria-pressed="true"]{border-color:var(--tour-green);box-shadow:0 0 0 1px color-mix(in srgb,var(--tour-green) 56%,transparent)}
.tour-control-help{position:absolute;left:1rem;bottom:4.9rem;z-index:4;width:min(430px,calc(100% - 2rem));border:1px solid rgba(255,255,255,.26);border-radius:18px;padding:1rem;background:rgba(5,14,25,.92);backdrop-filter:blur(16px);color:#eef8fc;box-shadow:0 22px 65px rgba(0,0,0,.48)}
.tour-control-help[hidden]{display:none}
.tour-control-help-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.65rem}
.tour-control-close{border:0;background:transparent;color:inherit;font-size:1.65rem;line-height:1;cursor:pointer}
.tour-control-help dl{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.42rem .8rem}
.tour-control-help dt{font-weight:850;color:var(--tour-cyan)}
.tour-control-help dd{margin:0;color:#c4d5df}
.tour-control-help kbd{display:inline-block;border:1px solid rgba(255,255,255,.32);border-bottom-width:2px;border-radius:5px;padding:.04rem .32rem;background:rgba(255,255,255,.08);font:700 .78rem var(--font-tech)}
.tour-stage:fullscreen,.tour-stage.is-pseudo-fullscreen{width:100vw;height:100vh;min-height:100vh;background:#050b13}
.tour-stage:fullscreen .tour-viewer,.tour-stage.is-pseudo-fullscreen .tour-viewer{position:absolute;inset:0;width:100%;height:100%}
.tour-stage.is-pseudo-fullscreen{position:fixed;inset:0;z-index:2147483000}
.tour-pseudo-fullscreen-active{overflow:hidden}
html.light-mode .tour-control-help{background:rgba(248,252,255,.96);color:#102337;border-color:rgba(44,78,110,.28)}
html.light-mode .tour-control-help dd{color:#4b6174}
html.light-mode .tour-control-help kbd{border-color:rgba(44,78,110,.35);background:rgba(44,78,110,.06)}
@media(max-width:760px){
  .tour-viewer-controls{left:.55rem;right:.55rem;bottom:.55rem;justify-content:center;gap:.34rem}
  .tour-viewer-controls .tour-button{font-size:.75rem;min-height:2.35rem;padding:.45rem .58rem}
  .tour-control-help{left:.55rem;bottom:7.4rem;width:calc(100% - 1.1rem);max-height:56vh;overflow:auto}
  .tour-control-help dl{grid-template-columns:1fr;gap:.18rem}
  .tour-control-help dd{margin-bottom:.45rem}
}


/* v151: preserve native SuperSplat controls and align with the site design */
.lab-tour-wave-text{
  display:inline;
  background:linear-gradient(90deg,var(--tour-cyan),var(--tour-green),var(--tour-orange),var(--tour-purple),var(--tour-cyan));
  background-size:260% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:lab-tour-colour-wave 5.4s linear infinite;
}
@keyframes lab-tour-colour-wave{to{background-position:-260% 50%}}
.tour-button{border-radius:9px}
.tour-stage-panel{border-radius:16px}
.tour-stage-meta span{border-radius:7px}
.tour-scene{border-radius:12px}
.tour-scene img{border-radius:8px}
.tour-viewer-column{min-width:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto;background:#050b13}
.tour-viewer-column .tour-stage{min-height:min(76vh,850px)}
.tour-viewer-controls{
  position:relative;
  inset:auto;
  z-index:1;
  display:none;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:.45rem;
  padding:.72rem .85rem;
  border-top:1px solid var(--line);
  background:color-mix(in srgb,var(--surface-strong) 94%,#050b13);
  pointer-events:auto;
}
.tour-stage.is-running + .tour-viewer-controls{display:flex}
.tour-viewer-controls .tour-button{
  pointer-events:auto;
  min-height:2.45rem;
  padding:.5rem .75rem;
  border-radius:8px;
  background:color-mix(in srgb,var(--surface-strong) 88%,#07111f);
  color:var(--ink);
  border-color:color-mix(in srgb,var(--branch-2) 42%,var(--line));
  backdrop-filter:none;
}
.tour-viewer-controls .tour-button-compact{min-width:2.45rem;padding:.45rem .62rem;font-size:1.05rem}
.tour-control-help{
  position:relative;
  left:auto;
  bottom:auto;
  z-index:1;
  width:auto;
  max-width:none;
  margin:0;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  padding:1rem;
  background:color-mix(in srgb,var(--surface-soft) 92%,#050b13);
  color:var(--ink);
  box-shadow:none;
  backdrop-filter:none;
}
.tour-control-help dd{color:var(--muted)}
.tour-viewer-column:fullscreen,
.tour-viewer-column.is-pseudo-fullscreen{
  width:100vw;
  height:100vh;
  min-height:100vh;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto auto;
  background:#050b13;
}
.tour-viewer-column:fullscreen .tour-stage,
.tour-viewer-column.is-pseudo-fullscreen .tour-stage{min-height:0;height:auto}
.tour-viewer-column.is-pseudo-fullscreen{position:fixed;inset:0;z-index:2147483000}
html.light-mode .tour-viewer-controls{background:#f4f8fc}
html.light-mode .tour-control-help{background:#f8fbfe;color:#102337}
@media(max-width:980px){.tour-viewer-column .tour-stage{min-height:64vh}}
@media(max-width:760px){
  .tour-viewer-controls{justify-content:flex-start;gap:.34rem;padding:.58rem}
  .tour-viewer-controls .tour-button{font-size:.75rem;min-height:2.25rem;padding:.42rem .55rem}
  .tour-control-help{width:auto;max-height:none;overflow:visible;padding:.8rem}
}
@media(max-width:620px){.tour-viewer-column .tour-stage{min-height:70vh}}
@media(prefers-reduced-motion:reduce){.lab-tour-wave-text{animation:none;background-position:50% 50%}}

/* v152: low/high quality selection and motion-responsive mosquito audio */
.tour-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:.75rem;
}
.tour-quality-control{
  display:flex;
  align-items:center;
  gap:.55rem;
  padding:.34rem .42rem .34rem .62rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--surface-soft) 76%,transparent);
}
.tour-quality-control>span,
.tour-control-label{
  color:var(--muted);
  font:760 .72rem var(--font-tech);
  letter-spacing:.065em;
  text-transform:uppercase;
}
.tour-segmented{
  display:flex;
  gap:.28rem;
}
.tour-quality-button{
  min-width:4.15rem;
}
.tour-quality-button.is-active,
.tour-quality-button[aria-pressed="true"]{
  border-color:var(--tour-orange)!important;
  background:color-mix(in srgb,var(--tour-orange) 22%,var(--surface-strong))!important;
  color:var(--ink-strong);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--tour-orange) 50%,transparent);
}
[data-tour-sound].is-active{
  border-color:color-mix(in srgb,var(--tour-green) 74%,var(--line))!important;
}
[data-tour-sound].is-sounding{
  box-shadow:0 0 0 1px color-mix(in srgb,var(--tour-green) 62%,transparent),0 0 18px color-mix(in srgb,var(--tour-green) 28%,transparent);
}
[data-tour-sound].is-sounding::before{
  content:"";
  display:inline-block;
  width:.48rem;
  height:.48rem;
  margin-right:.42rem;
  border-radius:50%;
  background:var(--tour-green);
  box-shadow:0 0 0 .22rem color-mix(in srgb,var(--tour-green) 20%,transparent);
  animation:tour-sound-pulse .75s ease-in-out infinite alternate;
}
@keyframes tour-sound-pulse{to{transform:scale(1.22);opacity:.72}}
.tour-viewer-controls .tour-control-label{
  align-self:center;
  padding:0 .18rem 0 .08rem;
}
html.light-mode .tour-quality-control{
  background:#f7fafc;
}
@media(max-width:980px){
  .tour-actions{justify-content:flex-start}
}
@media(max-width:760px){
  .tour-quality-control{width:100%;justify-content:space-between}
  .tour-quality-control .tour-segmented{margin-left:auto}
  .tour-viewer-controls .tour-control-label{width:100%;padding:.15rem 0 0}
  .tour-quality-button{min-width:3.7rem}
}
@media(prefers-reduced-motion:reduce){
  [data-tour-sound].is-sounding::before{animation:none}
}
