:root {
  --bg: #06080d;
  --ink: #f3f5f8;
  --ink-2: #c3cad8;
  --dim: #8d97ab;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --glass: rgba(8, 11, 18, 0.74);
  --glass-2: rgba(14, 18, 28, 0.86);
  --gold: #f2c46d;
  --gold-2: #ffd98f;
  --gold-ink: #1d1505;
  --display: "Segoe UI Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --ui: "Bahnschrift", "DIN Alternate", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
  --pad: clamp(14px, 2vw, 24px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--ui);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- header */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(var(--pad) - 4px) var(--pad) 28px;
  padding-top: max(calc(var(--pad) - 4px), env(safe-area-inset-top));
  background: linear-gradient(rgba(3, 4, 7, 0.78), rgba(3, 4, 7, 0));
  pointer-events: none;
  z-index: 5;
}
.brand {
  pointer-events: auto;
  color: var(--ink);
  text-decoration: none;
  font: 700 13px/1 var(--ui);
  letter-spacing: 0.24em;
}
.brand { text-transform: uppercase; }
.brand-wrap { display: grid; gap: 6px; }
.concept-line {
  font: 600 10px/1.2 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.brand b { color: var(--gold); font-weight: 700; }
.event {
  font: 600 11.5px/1.2 var(--ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  text-align: right;
}
.event .sep { color: var(--gold); }
.event .when-short { display: none; }
.top-right { display: flex; align-items: center; gap: 14px; }
.lang {
  pointer-events: auto;
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font: 700 11px/1 var(--ui);
  letter-spacing: 0.16em;
  cursor: pointer;
}
.lang:hover { background: rgba(255, 255, 255, 0.1); }
.unofficial { font-size: 11px; line-height: 1.4; color: var(--dim); }
.intro .unofficial {
  position: absolute;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 16px; right: 16px;
  text-align: center;
  opacity: clamp(0, calc(1 - var(--intro, 0) * 6), 1);
}
.mapinfo .unofficial { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- panels show per view */
.intro, .mapinfo, .bar, .look-hint, .ticket {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s, transform 0.25s ease;
}
.motion .mapinfo, .motion .bar, .motion .ticket { transform: translateY(10px); }
[data-view="intro"] .intro,
[data-view="map"] .mapinfo,
[data-view="section"] .bar-section,
[data-view="seat"] .bar-seat,
[data-view="seat"] .look-hint,
[data-view="ticket"] .ticket {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.45s var(--ease) 0.05s, visibility 0s, transform 0.55s var(--ease) 0.05s;
}
body.flying .mapinfo, body.flying .bar, body.flying .look-hint {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
.look-hint { pointer-events: none !important; }

/* ---------------------------------------------------------------- shared bits */
.eyebrow {
  font: 700 11px/1.2 var(--ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.ghost, .gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: 600 13px/1 var(--ui);
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.ghost { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.36); }
.ghost.quiet { border-color: transparent; color: var(--dim); background: none; padding: 0 10px; }
.ghost.quiet:hover { color: var(--ink); }
.gold { background: var(--gold); color: var(--gold-ink); border: 1px solid var(--gold); font-weight: 700; }
.gold:hover { background: var(--gold-2); }
.gold:disabled { opacity: 0.55; cursor: not-allowed; }
.motion .ghost:active, .motion .gold:active { transform: scale(0.97); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
em { font-style: normal; color: var(--gold); }

/* ---------------------------------------------------------------- intro */
.intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none !important;
  z-index: 2;
}
.intro > * { pointer-events: auto; }
.intro h1 {
  font: 900 clamp(30px, 5.4vw, 88px)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
  opacity: clamp(0, calc(1 - var(--intro, 0) * 5), 1);
  transform: translateY(calc(var(--intro, 0) * -140px)) scale(calc(1 + var(--intro, 0) * 0.6));
  padding: 0 16px;
}
.intro h1 em { color: var(--gold); }
.intro .hint {
  position: absolute;
  bottom: calc(40px + env(safe-area-inset-bottom));
  left: 0; right: 0;
  text-align: center;
  font: 600 11px/1.2 var(--ui);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: clamp(0, calc(1 - var(--intro, 0) * 6), 1);
}
.hint-still { display: none; }
html:not(.motion) .hint-motion { display: none; }
html:not(.motion) .hint-still { display: inline; letter-spacing: 0.16em; }
.motion .intro .hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 26px;
  margin: 12px auto 0;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.intro .enter {
  position: absolute;
  bottom: calc(110px + env(safe-area-inset-bottom));
  opacity: clamp(0, calc(1 - var(--intro, 0) * 8), 1);
}
.intro .progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}
.intro .progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(var(--intro, 0));
}

/* ---------------------------------------------------------------- seat map panel */
.mapinfo {
  position: fixed;
  left: var(--pad);
  bottom: var(--pad);
  width: 312px;
  padding: 18px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  z-index: 3;
}
.tiers { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 6px; }
.tiers button {
  width: 100%;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.tiers button:hover, .tiers button:focus-visible { background: rgba(255, 255, 255, 0.08); border-color: var(--line); }
.tiers i { grid-row: span 2; width: 10px; height: 10px; border-radius: 3px; background: var(--tier); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
.t-name { font: 700 14px/1.2 var(--ui); letter-spacing: 0.02em; }
.t-from { grid-row: span 2; font-size: 12px; color: var(--dim); text-align: right; }
.t-from b { display: block; font: 700 16px/1.1 var(--ui); color: var(--ink); letter-spacing: 0.02em; }
.t-open { font-size: 12px; color: var(--dim); }
.map-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.help { margin-top: 12px; font-size: 12px; color: var(--dim); }
.only-coarse { display: none; }
@media (pointer: coarse) { .only-fine { display: none; } .only-coarse { display: inline; } }

/* ---------------------------------------------------------------- bottom bars */
.bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--pad) + env(safe-area-inset-bottom));
  translate: -50% 0;
  width: min(1040px, calc(100% - 2 * var(--pad)));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 12px 12px 22px;
  border-radius: 20px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  z-index: 3;
}
.bar .who { flex: 1; min-width: 0; }
.bar .title { font: 600 16px/1.3 var(--ui); margin-top: 3px; color: var(--ink-2); }
.bar .title b { color: var(--ink); }
.bar .eyebrow { color: var(--ink); letter-spacing: 0.16em; }
.bar .legend { display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.bar .legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 12px rgba(242, 196, 109, 0.7); }
.bar .actions { display: flex; gap: 8px; }

.look-hint {
  position: fixed;
  top: 74px;
  left: 50%;
  translate: -50% 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.6);
  border: 1px solid var(--line);
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  z-index: 3;
}
body.looked .look-hint { opacity: 0 !important; transition: opacity 0.6s ease 0.4s !important; }

/* ---------------------------------------------------------------- tooltip */
.tip {
  position: fixed;
  left: 0; top: 0;
  z-index: 6;
  min-width: 170px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(7, 9, 14, 0.9);
  border: 1px solid var(--line-2);
  pointer-events: none;
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.tip[hidden] { display: none; }
.tip b { font: 700 14px/1.25 var(--ui); color: var(--ink); letter-spacing: 0.03em; }
.tip-meta { font-size: 12px; color: var(--dim); }
.tip-meta em { font-weight: 700; }

/* ---------------------------------------------------------------- ticket */
.ticket {
  position: fixed;
  left: 50%;
  bottom: calc(var(--pad) + env(safe-area-inset-bottom));
  translate: -50% 0;
  width: min(600px, calc(100% - 2 * var(--pad)));
  z-index: 4;
}
.stub {
  display: grid;
  grid-template-columns: 1fr 74px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f1e4, #efe4cc);
  color: #16120b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  -webkit-mask: radial-gradient(circle 12px at calc(100% - 74px) 0, transparent 11.5px, #000 12px) top / 100% 51% no-repeat,
                radial-gradient(circle 12px at calc(100% - 74px) 100%, transparent 11.5px, #000 12px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 12px at calc(100% - 74px) 0, transparent 11.5px, #000 12px) top / 100% 51% no-repeat,
        radial-gradient(circle 12px at calc(100% - 74px) 100%, transparent 11.5px, #000 12px) bottom / 100% 51% no-repeat;
}
.stub-main { padding: 22px 24px 20px; }
.stub .eyebrow { color: #8a6a2a; }
.stub h2 { font: 900 clamp(20px, 3vw, 28px)/1.1 var(--display); text-transform: uppercase; margin-top: 6px; outline: none; }
.t-when { margin-top: 4px; color: #5c5442; font-size: 13px; letter-spacing: 0.02em; }
.t-parts { display: flex; gap: 22px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed rgba(22, 18, 11, 0.25); }
.t-parts div { display: grid; gap: 2px; }
.t-parts dt { font: 700 10px/1 var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: #8a7b5c; }
.t-parts dd { margin: 0; font: 800 22px/1.1 var(--ui); }
.t-price { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 13px; color: #5c5442; }
.t-price b { font: 900 26px/1 var(--display); color: #16120b; }
.stub-side {
  border-left: 2px dashed rgba(22, 18, 11, 0.22);
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(0deg, rgba(22, 18, 11, 0.85) 0 2px, transparent 2px 5px, rgba(22, 18, 11, 0.85) 5px 6px, transparent 6px 9px) center / 26px 72% no-repeat;
}
.t-code { writing-mode: vertical-rl; font: 700 10px/1 var(--ui); letter-spacing: 0.3em; color: #6b6150; translate: 22px 0; }
.t-note { margin: 12px 0 0; padding: 8px 14px; border-radius: 12px; background: rgba(8, 11, 18, 0.78); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.t-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.t-actions .ghost { background: rgba(8, 11, 18, 0.7); }

/* ---------------------------------------------------------------- drawer */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  background: rgba(8, 10, 16, 0.94);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.drawer[hidden] { display: none; }
.motion .drawer { animation: slide-in 0.4s var(--ease); }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
.drawer header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; padding-top: max(20px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.drawer h2 { font: 800 18px/1.2 var(--ui); letter-spacing: 0.02em; outline: none; }
.drawer-body { overflow-y: auto; padding: 8px 12px 24px; overscroll-behavior: contain; }
.drawer h3 { display: flex; justify-content: space-between; font: 700 11px/1 var(--ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); padding: 18px 8px 8px; }
.drawer h3 span { color: var(--gold); letter-spacing: 0.08em; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drawer li button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}
.drawer li button:hover, .drawer li button:focus-visible { background: rgba(255, 255, 255, 0.07); }
.d-meta { color: var(--dim); font-size: 13px; white-space: nowrap; }
.d-meta b { color: var(--ink); }

/* ---------------------------------------------------------------- fade, loader, no-webgl */
.fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.17s ease; z-index: 4; }
.fade.on { opacity: 1; }
.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--bg);
  z-index: 9;
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}
.loader[hidden] { display: none; }
.loader i { width: 120px; height: 1px; background: rgba(255, 255, 255, 0.1); overflow: hidden; position: relative; }
.motion .loader i::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: load 1.2s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.nogl-note, .noscript { display: none; }
[data-nogl] #scene, [data-nogl] .mapinfo { display: none; }
[data-nogl] .nogl-note { display: block; position: fixed; top: 80px; left: var(--pad); right: 420px; color: var(--ink-2); }
.noscript { display: block; position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 10; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 899px) {
  .mapinfo {
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    padding: 14px;
  }
  .tiers { grid-template-columns: 1fr 1fr; margin: 10px 0 10px; }
  .tiers button { grid-template-columns: 8px 1fr; padding: 9px 10px; row-gap: 2px; }
  .tiers i { width: 8px; height: 8px; }
  .t-name { font-size: 13px; }
  .t-from { grid-row: auto; grid-column: 2; text-align: left; }
  .t-from b { display: inline; font-size: 13px; }
  .t-open { display: none; }
  .help { display: none; }
  .mapinfo .unofficial { display: none; }
  .bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 20px);
  }
  .bar .who { flex-basis: 100%; }
  .bar .title { font-size: 14px; }
  .bar .legend { order: 3; flex-basis: 100%; }
  .bar .actions { flex: 1; flex-wrap: wrap; }
  .bar .actions > * { flex: 1; padding: 0 10px; }
  .bar-section .legend { display: none; }
  .ticket { bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 20px); }
  .stub-main { padding: 18px; }
  .t-parts { gap: 16px; }
  .t-parts dd { font-size: 18px; }
  .t-actions > * { flex: 1; }
  .look-hint { top: 64px; }
}
@media (max-width: 560px) {
  .event span:first-child, .event .sep, .event .when-long { display: none; }
  .event .when-short { display: inline; }
  .brand { font-size: 12px; letter-spacing: 0.2em; }
}
