/* The legendary field stays in the footer, with the venue fully operable. */
.legend-presence[hidden] {
  display: none !important;
}
.legend-presence {
  --legend-color: #e8b866;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid var(--legend-color);
  border-radius: 12px;
  color: #fff0cd;
  background: linear-gradient(115deg, #202c3e 0%, #182f39 58%, #323047 100%);
  box-shadow:
    inset 3px 0 var(--legend-color),
    0 2px 12px #172a3826;
  text-align: left;
  min-width: 0;
}
.legend-presence::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.2;
  background: radial-gradient(
    ellipse at 0% 100%,
    var(--legend-color),
    transparent 68%
  );
}
.legend-presence-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.legend-presence-heading b {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #ffe0a3;
}
.legend-presence-heading span {
  font-size: 11px;
  color: #ffedc5;
}
.legend-presence p {
  margin: 5px 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: #fff4df;
}
.legend-presence > strong {
  display: block;
  font-size: 12px;
  line-height: 1.65;
  color: #fff7df;
}
.legend-presence > small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
  color: #d0d6d7;
}
.artist-legend-field {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #c1a26e;
  background: #faf4e6;
  color: #463b30;
  line-height: 1.8;
  font-size: 12px;
}
.artist-legend-field b {
  color: #775321;
}
@media (max-width: 600px) {
  .legend-presence {
    padding: 8px 10px;
    border-radius: 9px;
  }
  .legend-presence p,
  .legend-presence > strong {
    font-size: 11px;
  }
  .legend-presence-heading b {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .legend-presence {
    scroll-behavior: auto;
  }
}

#artistCutin #cutinField {
  display: block;
  margin-top: 7px;
  max-width: 100%;
  font-size: clamp(9px, 1.1vw, 13px);
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #ffe4a1;
  font-weight: 700;
  overflow-wrap: anywhere;
}
#artistCutin #cutinField[hidden] {
  display: none;
}
@media (max-height: 480px) {
  #artistCutin #cutinField {
    margin-top: 2px;
    font-size: 9px;
  }
}

/* v182: persistent stage takeover, entirely transparent to pointer input. */
#venueAtmosphere[data-legend-active="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 2px solid var(--legend-color, #ffda8b);
  box-shadow: inset 0 0 26px 5px var(--legend-color, #ffda8b);
  opacity: 0.55;
}
.legend-presence {
  border-width: 2px;
  box-shadow:
    inset 5px 0 var(--legend-color),
    0 0 18px #e8c67c35;
}
.legend-presence-heading b {
  font-size: 12px;
  color: #fff0b5;
}
@media (prefers-reduced-motion: reduce) {
  #venueAtmosphere[data-legend-active="true"]::after {
    opacity: 0.4;
  }
}
