:root {
  --ink: #0a0a09;
  --paper: #e8d9b5;
  --mustard: #d49d1d;
  --acid: #779441;
  --red: #a83d28;
  --teal: #1f7774;
  --ghost: rgba(232, 217, 181, 0.72);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--paper); }
body { font-family: "Courier New", Courier, monospace; overflow: hidden; }
button, a { color: inherit; font: inherit; }
button { border: 0; }
a { text-decoration: none; }

.intro, .world { position: relative; width: 100vw; height: 100svh; overflow: hidden; isolation: isolate; background: #090908; }
.intro-ambient, .scene-ambient { position: absolute; inset: -4%; z-index: -2; background-position: center; background-size: cover; filter: blur(32px) grayscale(.8) brightness(.26); transform: scale(1.08); }
.intro-ambient { background-image: url('assets/bangzo-main.png'); }
.scene-one { background-image: url('assets/BANGZO_part1_01_first_drumkit.png'); filter: blur(30px) grayscale(.7) brightness(.22); }

.intro-stage, .scene-frame { position: relative; width: min(100vw, 100svh); height: min(100vw, 100svh); flex: 0 0 auto; }
.intro-stage { position: absolute; inset: 0 auto 0 50%; transform: translateX(-50%); filter: grayscale(calc(1 - var(--color, 0))) contrast(1.08); }
.intro-stage img, .scene-frame > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.intro.is-struck .intro-stage { animation: hit-shake .18s steps(2); }

.intro-copy { position: absolute; z-index: 4; left: clamp(18px, 4vw, 72px); top: 50%; transform: translateY(-50%); width: min(440px, 44vw); text-shadow: 3px 3px 0 #000; pointer-events: none; }
.eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 900; letter-spacing: .16em; color: var(--mustard); text-transform: uppercase; }
.intro h1 { margin: 0; font: 900 clamp(72px, 12vw, 190px)/.72 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: -.04em; color: #dfad2f; -webkit-text-stroke: 2px #111; }
.tagline { margin: 22px 0 10px; max-width: 390px; font-size: clamp(15px, 1.5vw, 23px); font-weight: 900; line-height: 1.05; }
.instruction { margin: 0; color: var(--ghost); font-size: 12px; }
.hit-readout { display: flex; gap: 7px; margin-top: 18px; }
.hit-readout i { display: block; width: 31px; height: 4px; background: #4a473e; transform: skewX(-18deg); }
.hit-readout i.active { background: var(--mustard); box-shadow: 0 0 18px rgba(212,157,29,.7); }

.stick-zone, .hotspot { position: absolute; z-index: 5; padding: 0; background: transparent; cursor: crosshair; }
.stick-zone { top: 35%; width: 21%; height: 31%; }
.stick-zone-left { left: 13%; }
.stick-zone-right { right: 8%; }
.stick-zone span, .hotspot span { position: absolute; opacity: 0; white-space: nowrap; padding: 5px 7px; color: var(--ink); background: var(--mustard); font-size: 10px; font-weight: 900; letter-spacing: .08em; transform: translate(-50%, -50%) rotate(-2deg); transition: opacity .12s; }
.stick-zone:hover span, .stick-zone:focus-visible span, .hotspot:hover span, .hotspot:focus-visible span { opacity: 1; }
.stick-zone span { left: 50%; top: 50%; }
.sound-switch { position: absolute; z-index: 8; right: 26px; bottom: 22px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 900; letter-spacing: .12em; }

.scene-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.scene-frame { transition: opacity .25s ease; }
.scene-frame > img { transition: filter .45s ease, opacity .25s ease; }
.scene-frame.is-hit { animation: scene-hit .17s steps(2); }
.scene-transitioning .scene-frame { opacity: 0; }
.hotspot-pot { right: 7%; bottom: 14%; width: 27%; height: 36%; }
.hotspot-drum { left: 24%; bottom: 12%; width: 35%; height: 49%; }
.hotspot-sign { right: 5%; top: 15%; width: 18%; height: 28%; }
.hotspot span { left: 50%; top: 50%; }

.utility { position: absolute; z-index: 8; top: 18px; left: 20px; right: 20px; display: flex; align-items: center; gap: clamp(12px, 2.1vw, 32px); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-shadow: 2px 2px 0 #000; }
.utility strong { margin-right: auto; color: var(--mustard); font-size: 16px; }
.utility button { background: transparent; cursor: pointer; padding: 0; }
.utility a:hover, .utility button:hover { color: var(--mustard); }
.location-stamp { position: absolute; z-index: 8; right: 20px; top: 70px; display: grid; justify-items: end; text-shadow: 2px 2px 0 #000; }
.location-stamp span { font-size: 10px; color: var(--mustard); }
.location-stamp strong { font: 900 clamp(18px, 2vw, 34px)/1 Impact, sans-serif; letter-spacing: .04em; }

.story-transmission { position: absolute; z-index: 8; left: 20px; bottom: 18px; width: min(560px, calc(100vw - 40px)); padding: 15px 17px; background: rgba(8,8,7,.9); border-left: 5px solid var(--mustard); box-shadow: 8px 8px 0 rgba(0,0,0,.3); }
.story-transmission > p:not(.eyebrow) { margin: 0; max-width: 66ch; color: #d5ccb8; font-size: clamp(11px, 1.15vw, 14px); line-height: 1.42; }
.story-transmission.is-open { border-left-color: var(--acid); }
.find-count { margin-top: 11px; font-size: 9px; font-weight: 900; letter-spacing: .14em; color: var(--mustard); }
.continue-link { margin-top: 12px; padding: 0; background: transparent; color: var(--paper); cursor: pointer; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.continue-link:hover { color: var(--mustard); }

@keyframes hit-shake { 0% { transform: translateX(-50%); } 33% { transform: translateX(calc(-50% - 8px)) rotate(-.3deg); } 66% { transform: translateX(calc(-50% + 7px)) rotate(.3deg); } }
@keyframes scene-hit { 0% { margin-left: 0; } 33% { margin-left: -9px; } 66% { margin-left: 8px; } 100% { margin-left: 0; } }

.dynamic-hotspot { outline: 1px solid transparent; }
.dynamic-hotspot:focus-visible { outline: 2px dashed var(--mustard); outline-offset: -5px; }
.dynamic-hotspot.is-found span { background: var(--acid); color: #10120c; }

.rhythm-zone {
  position: absolute;
  z-index: 5;
  top: 16%;
  bottom: 8%;
  width: 48%;
  padding: 0;
  background: transparent;
  cursor: crosshair;
}
.rhythm-left { left: 1%; }
.rhythm-right { right: 1%; }
.rhythm-zone span {
  position: absolute;
  bottom: 9%;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--mustard);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  opacity: 0;
}
.rhythm-left span { left: 22%; transform: rotate(-2deg); }
.rhythm-right span { right: 22%; transform: rotate(2deg); }
.rhythm-zone:hover span, .rhythm-zone:focus-visible span { opacity: 1; }

.roadmap-wall {
  position: absolute;
  z-index: 6;
  top: 7%;
  right: 4%;
  width: min(370px, 42%);
  padding: 14px 16px 12px;
  color: #e5d6b4;
  background: rgba(8, 8, 7, .88);
  border-top: 4px solid var(--mustard);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .36);
  transform: rotate(.5deg);
  pointer-events: none;
}
.roadmap-wall p { margin: 0 0 9px; color: var(--mustard); font-size: clamp(10px, 1vw, 13px); font-weight: 900; letter-spacing: .08em; }
.roadmap-wall ul { margin: 0; padding-left: 17px; }
.roadmap-wall li { margin: 4px 0; font-size: clamp(8px, .82vw, 11px); line-height: 1.25; }

.broadcast-zone {
  position: absolute;
  z-index: 6;
  left: 31%;
  top: 23%;
  width: 39%;
  height: 52%;
  padding: 0;
  background: transparent;
  cursor: crosshair;
  touch-action: none;
}
.broadcast-zone span {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%) rotate(-1deg);
  padding: 8px 10px;
  white-space: nowrap;
  background: var(--mustard);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  opacity: 0;
}
.broadcast-zone:hover span, .broadcast-zone:focus-visible span { opacity: 1; }
.scene-complete .broadcast-zone span { opacity: 1; background: var(--acid); }

.final-hotspots {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 4%;
  width: 92%;
  display: flex;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
}
.final-hotspots button {
  padding: 6px 8px;
  background: rgba(8, 8, 7, .9);
  color: var(--mustard);
  border-top: 2px solid var(--mustard);
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
}
.final-hotspots button:hover { color: var(--paper); }

.final-copy { display: grid; gap: 5px; margin-top: 12px; }
.final-copy strong { color: var(--mustard); font: 900 18px/1 Impact, sans-serif; letter-spacing: .05em; }
.final-copy span { color: var(--ghost); font-size: 9px; letter-spacing: .1em; }

.way-out, .control-hint {
  position: absolute;
  z-index: 8;
  right: 20px;
  bottom: 18px;
  padding: 0;
  background: transparent;
  color: var(--ghost);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}
.way-out { cursor: pointer; }
.way-out:hover { color: var(--mustard); }
.control-hint { right: auto; left: 50%; transform: translateX(-50%); pointer-events: none; }

.route-index, .chart-station {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #090908;
}
.route-index {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
}
.route-index::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/BANGZO_part2_01_confiscation.png');
  background-position: center;
  background-size: cover;
  filter: grayscale(1) brightness(.17);
  opacity: .6;
  z-index: -1;
}
.route-index h2, .chart-station h2 { margin: 0; font: 900 clamp(38px, 7vw, 100px)/.85 Impact, sans-serif; color: var(--paper); letter-spacing: -.02em; }
.route-index > div { display: grid; width: min(720px, 100%); margin: 30px 0; border-top: 1px solid #665e4d; }
.route-index > div button {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 12px 5px;
  color: var(--paper);
  background: transparent;
  border-bottom: 1px solid #665e4d;
  text-align: left;
  cursor: pointer;
  font-size: clamp(12px, 1.4vw, 17px);
  font-weight: 900;
}
.route-index > div button span { color: var(--mustard); }
.route-index > div button:hover:not(:disabled) { padding-left: 14px; color: var(--mustard); }
.route-index > div button:disabled { color: #57534a; cursor: not-allowed; }
.overlay-close, .chart-station header button {
  padding: 8px 0;
  color: var(--mustard);
  background: transparent;
  border-bottom: 2px solid var(--mustard);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.chart-station { display: grid; grid-template-rows: auto 1fr; padding: 20px; }
.chart-station header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 6px 0 17px; }
.chart-station h2 { font-size: clamp(34px, 5vw, 72px); }
.chart-station iframe { width: 100%; height: 100%; border: 1px solid #534c3d; background: #111; }

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) rotate(-1deg);
  padding: 10px 14px;
  color: var(--ink);
  background: var(--mustard);
  box-shadow: 7px 7px 0 rgba(0,0,0,.55);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

@media (max-width: 760px) {
  .intro-copy { top: 16px; left: 16px; transform: none; width: calc(100vw - 32px); }
  .intro h1 { font-size: 72px; }
  .tagline { margin-top: 10px; font-size: 14px; }
  .instruction { font-size: 10px; }
  .intro-stage { top: 23%; bottom: auto; }
  .sound-switch { bottom: 14px; right: 14px; }
  .utility { gap: 11px; top: 12px; left: 12px; right: 12px; font-size: 8px; }
  .utility strong { font-size: 13px; }
  .location-stamp { top: 47px; right: 12px; }
  .location-stamp strong { font-size: 17px; }
  .story-transmission { left: 10px; bottom: 10px; width: calc(100vw - 20px); max-height: 34svh; overflow: auto; }
  .scene-frame { width: 100vw; height: 100vw; }
  .utility { flex-wrap: wrap; row-gap: 6px; }
  .utility strong { width: 100%; }
  .location-stamp { top: 72px; max-width: 70vw; }
  .roadmap-wall { top: 4%; right: 3%; width: 55%; padding: 9px 10px; }
  .roadmap-wall li { font-size: 7px; }
  .control-hint { display: none; }
  .way-out { right: 12px; bottom: auto; top: 96px; font-size: 7px; }
  .final-hotspots { display: grid; grid-template-columns: 1fr 1fr; bottom: 1%; }
  .final-hotspots button { font-size: 6px; padding: 4px; }
  .chart-station { padding: 10px; }
  .chart-station header { align-items: flex-start; }
  .chart-station header button { max-width: 112px; font-size: 8px; }
  .route-index { padding: 18px; }
  .toast { bottom: 18px; max-width: 90vw; white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
