@font-face {
  font-family: 'Rollerscript Rough';
  src: local('Rollerscript Rough'), local('Rollerscript-Rough');
  font-weight: normal;
  font-style: normal;
}

:root {
  --panel-bg: #ffab41;
  --panel-text: #1a1a1a;
  --panel-link: #111;
  --panel-heading: #111;
  --panel-border: rgba(0, 0, 0, 0.12);
  --panel-padding: 0.8em 1em;
  --panel-radius: 0.25em;
  --panel-font-size: calc(0.75em + 2px);
  --panel-line-height: 1.5;
  --panel-max-width: 26em;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Floating Navigation --- */
.floating-nav {
  --nav-bg: rgba(255, 255, 255, 0.08);
  --nav-text: rgba(255, 255, 255, 0.8);
  --nav-text-hover: rgba(255, 255, 255, 0.9);
  --nav-hover-bg: rgba(255, 255, 255, 0.1);
  --nav-active-bg: rgba(255, 255, 255, 0.15);
  --nav-border: rgba(255, 255, 255, 0.08);
  --nav-radius: 0.6rem;
  --nav-blur: 16px;
  --nav-font-size: 0.75rem;
  --nav-padding: 0.65rem 1.1rem;
  --nav-letter-spacing: 0.04em;

  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 0;
  padding: 0;
  max-width: 100vw;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  border-radius: 0 0 var(--nav-radius) var(--nav-radius);
  border: 1px solid var(--nav-border);
  border-top: none;
  pointer-events: none;
  overflow: hidden;
}

.floating-nav .nav-logo {
  pointer-events: auto;
  display: flex;
  align-items: center;
  padding: var(--nav-padding);
  flex-shrink: 0;
}

.floating-nav .nav-logo img {
  height: 1.4em;
  width: auto;
  opacity: 0.8;
}

.floating-nav button {
  pointer-events: auto;
  border: none;
  background: transparent;
  color: var(--nav-text);
  font-family: inherit;
  font-size: var(--nav-font-size);
  font-weight: 500;
  letter-spacing: var(--nav-letter-spacing);
  padding: var(--nav-padding);
  border-radius: 0;
  cursor: pointer;
  transition: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.floating-nav button:hover {
  background: var(--nav-hover-bg);
  color: var(--nav-text-hover);
}

.floating-nav button.active {
  background: var(--nav-active-bg);
  color: var(--nav-text-hover);
}

.floating-nav button.nav-special {
  color: #e8c47a;
}

.floating-nav button.nav-special:hover {
  color: #f5d99a;
}

@media (max-width: 480px) {
  .floating-nav {
    --nav-font-size: 0.7rem;
    --nav-padding: 0.5rem 0.5rem;
    --nav-letter-spacing: 0;
  }
  .info-dot__panel {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .floating-nav {
    --nav-font-size: 0.6rem;
    --nav-padding: 0.45rem 0.35rem;
  }
}

body.loading .scene,
body.loading .floating-nav {
  opacity: 0;
}

.scene,
.floating-nav {
  transition: opacity 0.8s ease;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #d0ad9a;
  font-family: system-ui, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

/* Scene container — scrollable with hidden scrollbar */
.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.scene::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Background image — sized by JS to fill viewport, overflows for scrolling */
.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--img-w);
  height: var(--img-h);
  z-index: 1;
  user-select: none;
  -webkit-user-drag: none;
  /* width/height set by JS */
}

/* Dusk image — layered on top, fades in/out */
.bg-image--dusk {
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.bg-image--dusk.active {
  opacity: 1;
}

/* Portal background — behind the wall image */
.portal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--img-w);
  height: var(--img-h);
  z-index: 0;
  pointer-events: none;
  object-fit: cover;
}

/* Post-processing canvas overlay — stays fixed to viewport */
.fx-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Tweakpane in top-right corner */
/* Hotspot layer — matches rendered image size/position exactly */
.hotspot-layer {
  position: absolute;
  z-index: 5;
  width: var(--img-w);
  height: var(--img-h);
}

.hotspot {
  position: absolute;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}

.hotspot-icon {
  display: none;
}

/* --- Hotspot styles (positions set by JS) --- */




/* TV screen — static/video fills the TV screen area (positioned by JS) */
.tv-screen {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  border-radius: 2px;
}

/* TV logo — default state */
.tv-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.tv-logo img {
  width: 70%;
  max-height: 60%;
  object-fit: contain;
  opacity: 0.8;
}

/* Play button above TV */
.hotspot--tv-play {
  font-family: system-ui, sans-serif;
  font-size: 1vw;
  letter-spacing: 0.15em;
}

.hotspot--tv-play .hotspot-icon {
  font-size: 1vw;
}

/* LED indicators — positions/sizes set from settings.json via JS */
.tv-led,
.hifi-led {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  z-index: 5;
  transition: none;
  pointer-events: none;
}

.tv-led.on,
.hifi-led.on {
  background: #33cc33;
  box-shadow: 0 0 6px 2px rgba(51, 204, 51, 0.6);
}

/* Transparent overlay — blocks YouTube controls, handles clicks */
.tv-interact {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: pointer;
  pointer-events: auto;
}

/* Custom TV timeline */
.tv-timeline {
  position: absolute;
  bottom: 4%;
  left: 5%;
  right: 5%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  z-index: 4;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: none;
}

.tv-screen:hover .tv-timeline {
  opacity: 1;
}

.tv-timeline-progress {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: none;
}

/* Volume indicator (right edge) */
.tv-volume {
  position: absolute;
  right: 3%;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: none;
}

.tv-volume.visible {
  opacity: 1;
}

.tv-volume-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  transition: none;
}

.tv-static {
  position: absolute;
  inset: 0;
}

.tv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  overflow: hidden;
  scrollbar-width: none;
  border: none;
}

.tv-video.active {
  display: block;
  opacity: 0.85;
  mix-blend-mode: screen;
}

#ytPlayer {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: none;
}

#ytPlayer.active {
  display: block;
  opacity: 0.85;
  mix-blend-mode: screen;
}


/* TV glare — diagonal light reflection */
.tv-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 25%,
    transparent 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* TV vignette — dark edges like a real screen */
.tv-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px 10px rgba(0, 0, 0, 0.4),
              inset 0 0 80px 20px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 3;
}

/* TV scanlines — subtle horizontal lines */
.tv-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 3;
}

.tv-static canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* Lamp */
.hotspot--lamp {
  border-radius: 50%;
}

/* Speakers */
.speaker {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: none;
}

.speaker--left {
}

.speaker--right {
}


/* Wall text — typography overlaid on the image */
.wall-text {
  position: absolute;
  color: inherit;
  pointer-events: none;
  user-select: none;
  line-height: 1.5;
  display: none;
}

/* Tour dates — above the TV */
.wall-text--dates {
  left: 19%;
  top: 49.5%;
  width: 27%;
  font-family: "Permanent Marker", "Rock Salt", system-ui, sans-serif;
}

.wall-text__heading {
  font-size: 1.4em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
  color: inherit;
  font-weight: normal;
}

.wall-text__list {
  list-style: none;
  font-size: 0.85em;
}

.wall-text__list li {
  display: flex;
  gap: 0.8em;
  margin-bottom: 0.25em;
}

.wall-text__list .date {
  font-weight: bold;
  min-width: 4em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wall-text__list .venue {
  flex: 1;
}

.wall-text__list .city {
  opacity: 0.6;
  font-style: italic;
}

/* Band members — above the vinyl */
.wall-text--members {
  left: 48%;
  top: 42%;
  width: 14%;
  font-family: "Caveat", "Northwell", system-ui, sans-serif;
  font-size: 0.75em;
  line-height: 1.6;
}

.wall-text--members p {
  margin: 0 0 0.15em;
  white-space: nowrap;
}

.wall-text--members span {
  opacity: 0.6;
}

/* Right wall text */
.wall-text--right {
  left: 85%;
  top: 23%;
  width: 12%;
  font-family: "Caveat", "Northwell", system-ui, sans-serif;
  font-size: 0.7em;
  line-height: 1.6;
  text-align: left;
}

.wall-text--right .wall-text__heading {
  font-size: 1.6em;
  margin-bottom: 0.3em;
}

.wall-text--right p {
  margin: 0 0 0.15em;
  opacity: 0.6;
}


/* --- Info dots --- */
.info-dot {
  position: absolute;
  z-index: 20;
  cursor: default;
  transform: translate(-50%, -50%);
}

.info-dot__circle {
  cursor: pointer;
}

.info-dot__circle {
  position: relative;
  transition: transform 0.15s ease-out;
}

/* Larger invisible hit area */
.info-dot__circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3em;
  height: 3em;
  border-radius: 50%;
}

.info-dot:hover .info-dot__circle {
  transform: scale(1.15);
}

/* === Style: Dot (outline only with pulse) === */
.hotspot-style-dot .info-dot__circle {
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: transparent;
  border: 0.1em solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 0 0 0.4em rgba(255, 255, 255, 0); }
}
.hotspot-style-dot .info-dot:hover .info-dot__circle {
  border-color: rgba(255, 255, 255, 0.8);
}
.hotspot-style-dot .info-dot.active .info-dot__circle {
  border-color: rgba(255, 255, 255, 0.9);
  animation: none;
}

/* === Style: Pin (thumbtack) === */
.hotspot-style-pin .info-dot__circle {
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e85d4a, #b33425);
  box-shadow: 0.05em 0.1em 0.2em rgba(0,0,0,0.4), inset 0 -0.05em 0.1em rgba(0,0,0,0.2);
  border: none;
}
.hotspot-style-pin .info-dot__circle::after {
  content: "";
  position: absolute;
  bottom: -0.35em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.08em;
  height: 0.4em;
  background: linear-gradient(to bottom, #888, #666);
  border-radius: 0 0 0.02em 0.02em;
}
.hotspot-style-pin .info-dot.active .info-dot__circle {
  background: radial-gradient(circle at 35% 35%, #ff7a6a, #e85d4a);
}

/* === Style: Pencil circle (hand-drawn) === */
.hotspot-style-pencil .info-dot__circle {
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: transparent;
  border: 0.12em solid rgba(60, 50, 40, 0.5);
  border-top-color: rgba(60, 50, 40, 0.3);
  border-right-color: rgba(60, 50, 40, 0.6);
  transform: rotate(-5deg);
  filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='0.5' numOctaves='2'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='1'/%3E%3C/filter%3E%3C/svg%3E#r");
}
.hotspot-style-pencil .info-dot.active .info-dot__circle {
  border-color: rgba(60, 50, 40, 0.8);
}

/* === Style: Glow (warm light leak) === */
.hotspot-style-glow .info-dot__circle {
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 140, 0.6) 0%, rgba(255, 180, 100, 0.2) 40%, transparent 70%);
  border: none;
  animation: glowPulse 3s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}
.hotspot-style-glow .info-dot.active .info-dot__circle {
  background: radial-gradient(circle, rgba(255, 210, 140, 0.8) 0%, rgba(255, 180, 100, 0.3) 40%, transparent 70%);
  animation: none;
}

/* === Style: Asterisk (chalk mark) === */
.hotspot-style-asterisk .info-dot__circle {
  width: 1.2em;
  height: 1.2em;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  color: rgba(60, 50, 40, 0.6);
  font-family: "DK Cool Crayon", "Caveat", cursive;
  line-height: 1;
}
.hotspot-style-asterisk .info-dot__circle::after {
  content: "✳";
  font-size: 1.2em;
}
.hotspot-style-asterisk .info-dot:hover .info-dot__circle {
  color: rgba(60, 50, 40, 0.9);
}
.hotspot-style-asterisk .info-dot.active .info-dot__circle {
  color: rgba(60, 50, 40, 0.9);
}

/* === Style: Leaf (botanical sprout) === */
.hotspot-style-leaf .info-dot__circle {
  width: 1em;
  height: 1em;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hotspot-style-leaf .info-dot__circle::after {
  content: "🌿";
  font-size: 0.9em;
  filter: drop-shadow(0 0.05em 0.1em rgba(0,0,0,0.3));
  transition: none;
}
.hotspot-style-leaf .info-dot:hover .info-dot__circle::after {
  transform: scale(1.2) rotate(10deg);
}
.hotspot-style-leaf .info-dot.active .info-dot__circle::after {
  transform: scale(1.3);
}

.info-dot__badge {
  position: absolute;
  left: calc(100% + 0.3em);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #e85d4a;
  padding: 0.15em 0.4em;
  border-radius: 0.3em;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.info-dot__panel {
  position: absolute;
  bottom: calc(100% + 1.2em);
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-bg);
  color: var(--panel-text);
  padding: var(--panel-padding);
  border-radius: var(--panel-radius);
  width: max-content;
  max-width: var(--panel-max-width);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--panel-font-size);
  line-height: var(--panel-line-height);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.info-dot.active .info-dot__panel {
  opacity: 1;
  pointer-events: auto;
  z-index: 30;
}

.info-dot__panel h3 {
  margin: 0 0 0.2em;
  font-size: 1em;
  font-weight: 700;
  color: var(--panel-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.info-dot__panel p {
  margin: 0.15em 0;
  font-size: 0.85em;
  color: var(--panel-text);
}

.info-dot__panel a {
  color: var(--panel-link);
  text-decoration: none;
  font-weight: 500;
}

.info-dot__panel a:hover {
  text-decoration: underline;
}

.info-dot__panel .desc {
  font-size: 0.85em;
  color: var(--panel-text);
  line-height: 1.45;
  margin: 0.4em 0;
}

.info-dot__panel .links {
  margin-top: 0.6em;
  padding-top: 0.5em;
  border-top: 1px solid var(--panel-border);
}

.info-dot__panel .links:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.info-dot__panel .links a {
  display: inline-block;
  margin-right: 0.8em;
}

.info-dot__panel .links--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3em 0.8em;
}

.info-dot__panel .links--grid a {
  margin-right: 0;
}

.info-dot__panel .members {
  margin-top: 0.4em;
}

.info-dot__panel .members p {
  white-space: nowrap;
}

/* === Dagblock Calendar === */
.dagblock {
  width: 4.5em;
  height: 5.2em;
  background: #ede5db;
  border-radius: 0;
  box-shadow: 0.2em 0.1em 0.4em rgba(0, 0, 0, 0.25);
  opacity: 0.88;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.3em 0.4em;
  cursor: pointer;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #2a2a2a;
  position: relative;
}

.dagblock__venue,
.dagblock__city,
.dagblock__date,
.dagblock__month,
.dagblock__shows {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.dagblock.loaded .dagblock__venue,
.dagblock.loaded .dagblock__city,
.dagblock.loaded .dagblock__date,
.dagblock.loaded .dagblock__month,
.dagblock.loaded .dagblock__shows {
  opacity: 1;
}

.dagblock::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 0.15em;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 0.3em,
    rgba(0, 0, 0, 0.15) 0.3em,
    rgba(0, 0, 0, 0.15) 0.35em
  );
  border-radius: 0 0 0.05em 0.05em;
}

.dagblock__venue {
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 0.15em;
  text-align: center;
}

.dagblock__city {
  font-size: 0.38em;
  color: #555;
  text-align: center;
}

.dagblock__date {
  font-size: 1.9em;
  font-weight: 700;
  line-height: 1;
  color: #1a1a1a;
}

.dagblock__month {
  font-size: 0.6em;
  font-style: italic;
  margin-top: -0.05em;
}

.dagblock__shows {
  font-size: 0.35em;
  margin-top: 0.3em;
  color: #555;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

#infoCalendar {
  z-index: 10;
}

#infoCalendar .info-dot__circle {
  position: absolute;
  top: -0.4em;
  right: -0.4em;
  z-index: 1;
}

/* Shows list in panel */
.shows-list .show-item {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.3em 0;
  border-bottom: 1px solid var(--panel-border);
}

.shows-list .show-item:last-child {
  border-bottom: none;
}

.shows-list .show-venue {
  font-weight: 600;
}

.shows-list .show-city {
  font-size: 0.85em;
}

.shows-list .show-date {
  white-space: nowrap;
  font-size: 0.85em;
}

