:root {
  --ink: #1f1e1c;
  --chalk: #f4f2ed;
  --sage: #93a78f;
  --brick: #9c5b47;
}

html, body {
  margin: 0;
  height: 100%;
  background: #11100e;
  color: #f4f2ed;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

.preview-note {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(43, 58, 46, 0.92);
  color: #e8eee8;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  pointer-events: none;
}
.player {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}

.stage {
  position: absolute;
  inset: 0 0 76px 0;
  background: #0b0a09;
  overflow: hidden;
}

.hero-wrap {
  position: absolute;
  inset: 0;
}

.hero-wrap img,
.hero-wrap .hold {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-wrap .hold {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(to top, rgba(20,18,16,.82), rgba(20,18,16,.35)),
    #2a2724;
  text-align: center;
  padding: 2rem;
}
.hold strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
}
.hold p { color: #d8d0c4; max-width: 28rem; }

.hero-wrap.zooming img,
.hero-wrap.zooming .hold {
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  animation: zoomout 420ms ease-in forwards;
}
.hero-wrap.arrive img,
.hero-wrap.arrive .hold {
  animation: arrive 520ms ease-out;
}

@keyframes zoomout {
  to { transform: scale(1.9); filter: blur(8px); opacity: 0; }
}
@keyframes arrive {
  from { transform: scale(1.06); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.hotspot {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 82%, white);
  color: #1b1c19;
  box-shadow: 0 0 0 8px rgba(147,167,143,.28), 0 8px 20px rgba(0,0,0,.35);
  cursor: pointer;
  font: 700 11px/1 "Source Sans 3", system-ui, sans-serif;
  letter-spacing: .04em;
  z-index: 3;
}
.hotspot:hover { transform: scale(1.08); }
.hotspot.waiting {
  background: #c8b694;
}
.hotspot span {
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(20,18,16,.78);
  color: #f4f2ed;
  padding: 4px 8px;
  border-radius: 2px;
  font-weight: 600;
  pointer-events: none;
}

.hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: rgba(20,18,16,.55);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .86rem;
  pointer-events: none;
}

.chrome {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.chrome > *,
.chrome .exits-row button,
.chrome .thumbs button,
.chrome .locator {
  pointer-events: auto;
}
.dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.locator {
  width: min(200px, 36vw);
  background: #faf8f4;
  color: var(--ink);
  border-radius: 4px;
  padding: 8px 8px 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  flex-shrink: 0;
}
.locator b {
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6f8470;
  margin-bottom: 4px;
}
.locator .plan {
  position: relative;
}
.locator img { width: 100%; height: auto; display: block; }
.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--brick);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.exits-row {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: min(92vw, 720px);
  padding: 0 8px;
}
.exits-row button {
  font: 650 0.92rem/1 "Source Sans 3", system-ui, sans-serif;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: color-mix(in srgb, var(--sage) 88%, white);
  color: #1b1c19;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.exits-row button:hover { filter: brightness(1.06); }
.exits-row em {
  display: block;
  width: 100%;
  text-align: center;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ddd6c9;
  margin-bottom: 2px;
}

.thumbs {
  display: flex;
  gap: 6px;
  max-width: none;
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.thumbs button {
  width: 70px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  background: #2a2724;
  cursor: pointer;
  overflow: hidden;
  color: #f4f2ed;
  font-size: .72rem;
}
.thumbs button.on { border-color: #fff; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 76px;
  background: #161512;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-top: 1px solid #2c2925;
}
.bar .copy b {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
}
.bar .copy span { color: #b7b0a6; font-size: .88rem; }
.bar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.bar a, .bar button {
  font: inherit;
  cursor: pointer;
  border-radius: 2px;
  padding: .55rem .9rem;
  text-decoration: none;
}
.ghost { background: #2a2724; color: #f4f2ed; border: 0; }
.go { background: var(--sage); color: #1b1c19; border: 0; font-weight: 600; }

.drawer {
  position: absolute;
  left: 0; top: 0; bottom: 76px;
  width: min(260px, 86vw);
  background: #1c1a17;
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 6;
  padding: 1rem .9rem;
  overflow: auto;
}
.drawer.open { transform: none; }
.drawer h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 .6rem;
}
.drawer button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #f4f2ed;
  padding: .45rem .2rem;
  cursor: pointer;
  font: inherit;
  border-bottom: 1px solid #2c2925;
}
.drawer button.here { color: var(--sage); }
.drawer button.dim { color: #8a8378; }

@media (max-width: 800px) {
  .preview-note {
    font-size: 11px;
    padding: 5px 10px;
  }
  .player {
    height: 100dvh;
    padding-top: 28px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .hint { display: none; }
  .hide-sm { display: none !important; }
  .stage { inset: 0 0 56px 0; }
  .hero-wrap { inset: 0 0 156px 0; }
  .chrome {
    inset: auto 0 0 0;
    height: 156px;
    background: linear-gradient(to top, #12110f 78%, rgba(18,17,15,0.65) 92%, transparent);
    pointer-events: none;
  }
  .exits-row {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    max-width: 100%;
    padding: 6px 8px 4px;
    gap: 6px;
  }
  .exits-row em { margin-bottom: 4px; font-size: 0.64rem; }
  .exits-row button {
    padding: 0.42rem 0.7rem;
    font-size: 0.82rem;
    box-shadow: none;
  }
  .dock {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0 8px 8px;
    gap: 8px;
  }
  .thumbs button { width: 56px; height: 40px; flex-shrink: 0; }
  .locator {
    width: 86px;
    padding: 4px;
    box-shadow: none;
  }
  .locator b { display: none; }
  .hotspot {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    box-shadow: 0 0 0 5px rgba(147,167,143,.28);
  }
  .hotspot span { display: none; }
  .bar {
    height: 56px;
    padding: 0 10px;
    gap: 8px;
  }
  .bar .copy span { display: none; }
  .bar .copy b { font-size: 1rem; }
  .bar nav { gap: 6px; flex-wrap: nowrap; }
  .bar a, .bar button { padding: .4rem .65rem; font-size: .86rem; }
  .drawer { bottom: 56px; }
}
