:root {
  color-scheme: dark;
  --black: #050306;
  --bronze: #d9ad7c;
  --camera-speed: 760ms;
  --camera-easing: cubic-bezier(.22, .72, .24, 1);
}
* { box-sizing: border-box; }
html { background: var(--black); }
body {
  margin: 0;
  color: #fbefda;
  font: 16px/1.4 "Segoe UI", system-ui, sans-serif;
}
h1, h2, p { margin: 0; }
button, a { color: inherit; }
button { font: inherit; }
button:focus-visible, a:focus-visible {
  outline: 2px solid #fff2cb;
  outline-offset: 5px;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.street {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  height: 100svh;
  min-height: 320px;
  background: #050306;
}
.world {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}
.street[data-ready="true"] .world {
  transition: transform var(--camera-speed) var(--camera-easing);
}
.world::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  content: "";
  transform: scaleY(-1);
  background:
    linear-gradient(0deg, #05030622, #050306ef 19%, #050306 25%),
    url("assets/avenue.webp") center / 100% 100%;
}
.panorama {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.street[data-ready="true"] .panorama { object-fit: fill; }
.street:not([data-ready="true"]) .venue { visibility: hidden; }
.street::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, #0b070d55, transparent 12%, transparent 84%, #09060b72);
}
.venue {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --accent: #f8c772;
  --metal: #bc793f;
}
.venue[data-venue="xwin"] { --accent: #ffd5f5; --metal: #b97c67; }
.venue[data-venue="tonplay"] { --accent: #a9f1dd; --metal: #9d784a; }
.facade-hit {
  position: absolute;
  z-index: 2;
  left: var(--hit-x);
  top: var(--hit-y);
  width: var(--hit-w);
  height: var(--hit-h);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  touch-action: manipulation;
  pointer-events: auto;
}
/* Spill a little extra neon light across the selected marquee. */
@media (any-hover: hover) and (any-pointer: fine) {
  .facade-hit:hover {
    background: radial-gradient(ellipse 47% 24% at 50% 49%, color-mix(in srgb, var(--accent) 24%, transparent), transparent);
  }
}
.facade-hit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -5px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.street:not([data-view="overview"]) .facade-hit {
  visibility: hidden;
  pointer-events: none;
}
.venue[data-venue="cybet"] { --accent: #ffde9a; --metal: #bc8442; }
.cybet-marquee {
  position: absolute;
  left: 1362px;
  top: 333px;
  width: 350px;
  height: 80px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg,#452411,#2d170e 17%,#482415 50%,#331c10 82%,#502c14);
  box-shadow: inset 0 2px 5px #f9b4535c, inset 0 -3px 7px #200d08;
}
.cybet-marquee span {
  font: 500 77px/.9 "Segoe UI",Arial,sans-serif;
  letter-spacing: .095em;
  padding-left: .095em;
  color: #5d2a14;
  -webkit-text-stroke: 1.8px #fff0aa;
  text-shadow: 0 0 4px #fffcb8,0 0 9px #ff7e13,0 0 16px #eb5a0a;
}
.wall-copy, .billboard-hit {
  position: absolute;
  left: var(--wall-x); top: var(--wall-y);
  width: var(--wall-w); height: var(--wall-h);
}
.wall-copy {
  --glass: #451631;
  overflow: hidden;
  color: var(--accent);
  text-align: center;
  background:
    linear-gradient(119deg,transparent 30%,#fff3cd12 31%,transparent 48%),
    radial-gradient(ellipse at top, var(--glass), #150c16 90%);
  box-shadow: inset 0 0 4px 1px #050305,0 0 4px color-mix(in srgb,var(--accent) 42%,transparent);
}
.venue[data-venue="tonplay"] .wall-copy { --glass: #084e48; }
.venue[data-venue="cybet"] .wall-copy { --glass: #723115; }
.wall-copy::before {
  content: "";
  position: absolute;
  inset: 2px;
  pointer-events: none;
  border: .65px solid color-mix(in srgb,var(--accent) 50%,transparent);
  box-shadow: inset 0 0 4px color-mix(in srgb,var(--accent) 25%,transparent);
}
.poster-face,.billboard-detail {
  position: absolute;
  inset: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.poster-crest {
  font: 16px/1 Georgia,serif;
  text-shadow: 0 0 5px currentColor;
}
.poster-crest::before,.poster-crest::after { content: "─"; font: 8px serif; vertical-align: middle; margin-inline: 3px; opacity: .7; }
.poster-face small { font: 650 7.4px/1.16 "Segoe UI",sans-serif; text-transform: uppercase; letter-spacing: .045em; }
.poster-face strong { font: 700 22px/1 Georgia,serif; letter-spacing: -.055em; color: #fff4d9; }
.poster-face strong i { font: 500 8px/1 Georgia,serif; }
.poster-more { font: 650 5.7px/1.3 "Segoe UI",sans-serif; border-bottom: .65px solid currentColor; }
.billboard-detail { display: none; inset: 5px; gap: 3px; }
.poster-brand { font: 750 4.3px/1 "Segoe UI",sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.billboard-detail h3 { margin: 0; color: #fff6df; font: 700 8.3px/1.09 Georgia,serif; }
.billboard-detail p { font: 500 5.3px/1.25 "Segoe UI",sans-serif; color: #fff2e5; }
.billboard-detail a { pointer-events: auto; font: 750 5.5px/1.3 "Segoe UI",sans-serif; padding: 2.5px 0; text-underline-offset: 1px; }
.billboard-hit { visibility: hidden; pointer-events: none; border: 0; background: none; padding: 0; cursor: zoom-in; touch-action: manipulation; }
.venue[data-active="true"] .billboard-hit { visibility: visible; pointer-events: auto; }
.street[data-inspect="true"] .venue[data-active="true"] .poster-face,
.street[data-inspect="true"] .billboard-hit { display: none; }
.street[data-inspect="true"] .venue[data-active="true"] .billboard-detail { display: flex; }
.venue[data-active="true"]:has(.billboard-hit:hover) .wall-copy {
  box-shadow: inset 0 0 4px #fff1c16b,0 0 12px color-mix(in srgb,var(--accent) 50%,transparent);
}
.street-nav {
  position: absolute;
  z-index: 5;
  left: max(22px, env(safe-area-inset-left));
  right: max(22px, env(safe-area-inset-right));
  bottom: max(42px, calc(env(safe-area-inset-bottom) + 20px));
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  color: #ffe2ab;
}
.street-nav button {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 108px; min-height: 48px; padding: 4px 15px;
  border: 1px solid #c69c63bd; border-radius: 4px;
  box-shadow: inset 0 0 0 3px #211817, inset 0 0 0 4px #66503a, 0 4px 15px #0009;
  color: inherit; background: linear-gradient(#342924,#161115); cursor: pointer;
  pointer-events: auto;
  font: 700 16px/1 Georgia,serif;
}
.street-nav button:hover { color: #fff6e2; text-shadow: 0 0 9px #ffc16c; }
.street-nav button span[aria-hidden] { font: 32px/.8 Georgia,serif; }

.street-back {
  position: absolute;
  z-index: 5;
  top: max(16px, env(safe-area-inset-top));
  left: max(17px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  min-height: 44px;
  border: 1px solid #d9ad7c8c;
  border-radius: 4px;
  background: #0e090ce8;
  color: #ffe1af;
  font-size: 14px;
  cursor: pointer;
}
.street-back:hover { border-color: #ffdaa1; background: #24181d; }
.street-back span[aria-hidden] { font-size: 22px; }
.age {
  position: absolute;
  z-index: 4;
  bottom: max(10px, env(safe-area-inset-bottom));
  right: max(13px, env(safe-area-inset-right));
  text-align: right;
  color: #faeadacc;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
.noscript { position: fixed; z-index: 6; bottom: 20px; left: 18px; }
.noscript a { margin-right: 12px; }

@media (max-aspect-ratio: 1/1) {
  .street[data-view="overview"] {
    background:
      radial-gradient(ellipse 68% 46% at 9% 57%, #30142a 0%, transparent 66%),
      radial-gradient(ellipse 51% 41% at 50% 57%, #15332e 0%, transparent 67%),
      radial-gradient(ellipse 65% 45% at 93% 56%, #3b2119 0%, transparent 66%),
      #050306;
  }
  .street[data-view="overview"] .world::after {
    transform-origin: center top;
    transform: translateY(210%) scaleY(-2.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --camera-speed: 0ms; }
  .wall-copy { transition: none; }
}
