:root {
  color-scheme: dark;
  --cream: #fff1e9;
  --muted: #dac0c7;
  --pink: #fac4d3;
  --surface: #1e131a;
  --edge: #eabed331;
  font-family: 'Instrument Sans', 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--cream);
}
* { box-sizing: border-box; }
html { overflow-anchor: none; }
body { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
button:focus-visible { outline: 2px solid var(--cream); outline-offset: 5px; }
.journey { min-height: calc(100svh + var(--tour-legs, 5) * clamp(270px, 42svh, 420px)); }
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 390px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 74% 42%, #6c394a 0%, #3e2431 40%, #21141c 72%, #1b1119 100%);
}
.stage[data-area="gym"] { background: radial-gradient(ellipse at 73% 43%, #49234f 0%, #2a1837 46%, #191122 78%, #130e1c 100%); }
[data-home-tour], [data-home-tour] body { overflow: hidden; }
[data-home-tour] .journey { min-height: 0; }
[data-home-tour] .stage {
  position: relative;
  min-height: 0;
  height: 100dvh;
  background: radial-gradient(ellipse at 69% 29%, #a65a81 0%, #593450 38%, #2c1d3d 69%, #191225 100%);
}
[data-home-tour] .stage[data-area="gym"] {
  background: radial-gradient(ellipse at 68% 36%, #673b87 0%, #32234e 48%, #161126 91%);
}
[data-home-tour] .stage .scene { inset: 0; }
[data-home-tour] .stage canvas { mask-image: none; }
[data-home-tour] :is(.masthead, .controls, .copy, .hotspots, .scene-status) { display: none; }
.stage[data-area="gym"] .copy { width: 35%; }
.stage[data-area="gym"] .series, .stage[data-area="gym"] .location { color: #f5b4f5; }
.masthead, .controls {
  position: absolute;
  left: clamp(24px, 5vw, 86px);
  right: clamp(24px, 5vw, 86px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}
.masthead { top: 0; height: clamp(65px, 11vh, 100px); border-bottom: 1px solid var(--edge); }
.wordmark { background: none; border: 0; padding: 0; font: 700 1.55rem Georgia, serif; letter-spacing: -.08em; }
.wordmark span { color: var(--pink); margin-left: .22em; font-style: italic; font-weight: 400; }
.series, .location { color: var(--pink); text-transform: uppercase; letter-spacing: .18em; font-size: .67rem; font-weight: 650; }
.copy { position: absolute; z-index: 2; top: 49%; left: clamp(24px, 5vw, 86px); width: 36%; transform: translateY(-46%); pointer-events: none; }
.location { margin: 0 0 1.4rem; }
h1 { margin: 0; font: 400 clamp(3.7rem, 7.3vw, 8.7rem)/.83 'Instrument Serif', Georgia, serif; letter-spacing: -.09em; text-wrap: balance; }
h1 em { display: block; color: var(--pink); font-weight: 400; }
.description { color: var(--muted); line-height: 1.65; font-size: clamp(.9rem, 1.24vw, 1.08rem); max-width: 17rem; margin: 1.5rem 0; }
.room-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.next { pointer-events: auto; display: inline-flex; align-items: center; gap: 1.2rem; border: 0; border-radius: 999px; padding: .75rem 1.05rem; background: var(--pink); color: #301c28; font-size: .82rem; font-weight: 700; }
.next:hover { background: #ffe2eb; }
.meet { pointer-events: auto; padding: .69rem .9rem; border-radius: 999px; border: 1px solid var(--edge); color: var(--cream); background: #2a1a24; font-size: .82rem; font-weight: 650; }
.meet:hover, .meet[aria-pressed="true"] { background: #503244; border-color: #f6b2c65e; }
.equipment-action { background: #623859; border-color: #f5b4f565; }
.workout-status { margin: .72rem 0 0; font-size: .8rem; color: #f5c6f4; }
.poses { margin-top: 1rem; pointer-events: auto; max-width: 25rem; }
.pose-buttons, .performers { display: flex; gap: .35rem; flex-wrap: wrap; }
.performers { margin-bottom: .55rem; }
.poses button, .place-link { background: #2a1a24dc; border: 1px solid var(--edge); border-radius: 999px; padding: .45rem .66rem; font-size: .75rem; }
.poses button[aria-pressed="true"], .poses button:hover, .place-link:hover { background: #6a3c60; border-color: #e9a1d99e; }
.performers button { padding-inline: .91rem; }
.place-link { color: var(--pink); white-space: nowrap; margin-left: .4rem; }
.place-link span { margin-left: .25rem; }
.door-pin { width: auto; min-width: 36px; padding: 0 .72rem; border-color: #f7afd4; background: #67405e; color: #fff3f8; font-weight: 800; }
.stage[data-walk="true"] canvas { cursor: crosshair; }
.pin.object-pin { width: auto; height: 31px; padding: 0 .75rem; border-radius: 999px; background: #43273aef; font-size: .73rem; font-weight: 700; }
.pin.object-pin:hover { background: #f8bed0; color: #482431; }
.world-window {
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border: 1px solid #eabed350;
  border-radius: 1.25rem;
  padding: clamp(1.3rem, 5vw, 2.35rem);
  background: #2e1e2c;
  color: var(--cream);
  box-shadow: 0 20px 90px #0f061380;
}
.world-window::backdrop { background: #110911a1; backdrop-filter: blur(4px); }
.world-window h2 { font: 400 clamp(2.65rem, 9vw, 4rem)/.95 'Instrument Serif', Georgia, serif; letter-spacing: -.06em; margin: .65rem 0 .8rem; }
.world-window p { color: var(--muted); line-height: 1.5; }
.world-window .window-kicker { margin: 0; color: var(--pink); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.window-close { position: absolute; top: 1rem; right: 1rem; width: 2rem; height: 2rem; border: 1px solid var(--edge); border-radius: 50%; background: transparent; font-size: 1.2rem; }
.window-close:hover { background: #f6b2c62c; }
.window-action { display: inline-block; text-decoration: none; border: 0; border-radius: 999px; background: var(--pink); color: #341a2e; padding: .65rem 1rem; font-size: .85rem; line-height: 1.2; font-weight: 700; }
.window-action:disabled { opacity: .5; cursor: default; }
.product { border-top: 1px solid var(--edge); padding: 1rem 0; }
.product h3 { margin: 0; font-size: 1rem; }
.product p { margin: .5rem 0 .7rem; }
.journal-window { background: #ffeadf; color: #3c2232; }
.journal-window .window-kicker, .journal-window p { color: #76425e; }
.journal-window .window-close { border-color: #a86b7e65; }
.journal-window label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .45rem; }
.journal-window textarea { display: block; width: 100%; min-height: 6.5rem; resize: vertical; border: 1px solid #a86b7e91; border-radius: .65rem; padding: .75rem; color: #402839; background: #fff5ee; font: inherit; }
.journal-window textarea:focus-visible { outline: 2px solid #89496a; outline-offset: 2px; }
.journal-window .window-action { background: #763857; color: #fff6f0; }
.journal-status { min-height: 1.35em; font-size: .83rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.scene { position: absolute; inset: 9% 0 10% 27%; }
canvas { width: 100%; height: 100%; display: block; }
@media (min-width: 701px) {
  canvas { mask-image: linear-gradient(to right, transparent, black 12%); }
}
.scene-status { position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90%; padding: .6rem .9rem; background: #271925; border: 1px solid var(--edge); border-radius: .6rem; color: var(--muted); font-size: .82rem; }
.scene-status[hidden] { display: none; }
.world-fallback { display: none; }
[data-world-fallback] .journey { min-height: 100vh; }
[data-world-fallback] .stage { position: relative; min-height: 100vh; height: auto; overflow: visible; padding: 76px 20px 30px; }
[data-world-fallback] .scene { position: static; }
[data-world-fallback] :is(canvas, .copy, .controls, .hotspots) { display: none !important; }
[data-world-fallback] .world-fallback { display: grid; gap: 12px; max-width: 760px; margin: auto; }
.world-fallback img { width: 100%; aspect-ratio: 1.28; object-fit: cover; border-radius: 15px; }
.world-fallback nav, .fallback-links { display: flex; flex-wrap: wrap; gap: 8px; }
.world-fallback nav button[aria-pressed="true"] { color: var(--cream); border-color: var(--edge); background: #f6b2c628; }
.fallback-links a, .scene-status a { color: var(--pink); }
[data-world-fallback] .scene-status { position: static; transform: none; margin: 14px auto 0; }
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.pin { pointer-events: auto; position: absolute; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: #3b243dd9; border: 1px solid #ffe9f0a6; box-shadow: 0 4px 20px #12091278; }
.pin[hidden] { display: none; }
.pin span { width: 7px; height: 7px; border-radius: 50%; background: #ffe6ef; }
.pin:hover, .pin[aria-current] { background: #f8bed0; }
.pin:hover span, .pin[aria-current] span { background: #482431; }
.controls { bottom: 0; height: clamp(64px, 10vh, 90px); border-top: 1px solid var(--edge); }
nav { display: flex; gap: clamp(.15rem, 1vw, .8rem); }
nav button { border: 1px solid transparent; background: none; border-radius: 999px; padding: .55rem .75rem; color: var(--muted); white-space: nowrap; font-size: .83rem; }
nav button[aria-current], nav button:hover { color: var(--cream); border-color: var(--edge); background: #f6b2c615; }
.scroll-hint { color: var(--muted); font-size: .76rem; }
.scroll-hint span { margin-left: .6rem; color: var(--pink); }
@media (min-width: 701px) and (max-height: 680px) {
  .stage[data-area="gym"] h1 { font-size: clamp(2.75rem, 6vw, 4.8rem); }
  .stage[data-area="gym"] .location { margin-bottom: .9rem; }
  .stage[data-area="gym"] .description { margin-block: .9rem; }
  .stage[data-area="gym"] .poses { margin-top: .7rem; }
}
@media (max-width: 700px) {
  .masthead, .controls { left: 20px; right: 20px; }
  .masthead { height: 58px; }
  .scene { inset: 58px -3% 29% -3%; }
  canvas { mask-image: linear-gradient(to bottom, transparent, black 8%, black 86%, transparent); }
  .copy { left: 24px; right: 24px; width: auto; top: auto; bottom: 76px; transform: none; }
  .stage[data-area="gym"] .copy { width: auto; }
  .stage:has(.poses:not([hidden])) .scene { bottom: 38%; }
  .poses { margin-top: .60rem; }
  .poses button { padding: .34rem .55rem; }
  .location { margin-bottom: .65rem; }
  h1 { font-size: clamp(2.6rem, 9vw, 4rem); letter-spacing: -.075em; }
  h1 em { display: inline; }
  .description { max-width: 26rem; margin: .6rem 0 .8rem; }
  .controls { height: 61px; justify-content: center; }
  .scroll-hint { display: none; }
  .pin { width: 34px; height: 34px; }
  .door-pin { width: 34px; min-width: 34px; padding: 0; }
  nav { gap: 0; }
  nav button { padding-inline: .49rem; }
}
@media (max-height: 670px) and (max-width: 700px) {
  .scene { bottom: 36%; }
  .copy { bottom: 69px; }
}
