:root {
  --intro-gold: #d8b46e;
}

/* Event title: keep the full bilingual name readable on desktop and mobile. */
.brand-panel {
  width: min(920px, calc(100vw - 76px));
}

.eyebrow {
  display: grid;
  gap: 4px;
  line-height: 1.3;
}

.eyebrow > span {
  display: block;
}

.eyebrow .eyebrow-es {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.entrance-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  min-height: 560px;
  overflow: hidden;
  background: #07101a;
  isolation: isolate;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.entrance-intro::before {
  position: absolute;
  inset: -4%;
  z-index: -4;
  content: "";
  background: url("../entrance.png") center / cover no-repeat;
  filter: blur(22px) brightness(0.5) saturate(0.8);
  transform: scale(1.08);
}

.entrance-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entrance-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: rgba(3, 10, 18, 0.35);
  filter: saturate(0.9) contrast(1.04) brightness(0.9);
}

.entrance-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 8, 15, 0.48));
}

.entrance-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 244px;
  min-height: 64px;
  margin-bottom: clamp(32px, 6vh, 64px);
  padding: 0 12px 0 32px;
  overflow: hidden;
  color: #101821;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.18em;
  cursor: pointer;
  background: linear-gradient(135deg, #f4dfb2 0%, #dfbd77 48%, #c79443 100%);
  border: 1px solid rgba(255, 232, 186, 0.92);
  border-radius: 18px;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.62) inset,
    0 -1px 0 rgba(92, 57, 12, 0.22) inset,
    0 10px 34px rgba(216, 180, 110, 0.22);
  backdrop-filter: blur(18px) saturate(125%);
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.entrance-primary::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.12) 48%, transparent 74%);
  transform: translateX(-115%);
  transition: transform 0.7s ease;
}

.entrance-primary::after {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 30px;
  color: #f3d79d;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  content: "→";
  background: linear-gradient(145deg, #111b25, #071019);
  border: 1px solid rgba(28, 22, 12, 0.38);
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease;
}

.entrance-primary:hover {
  color: #07111a;
  border-color: #ffe8b7;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.09) inset,
    0 10px 34px rgba(216, 180, 110, 0.24);
  transform: translateY(-3px);
}

.entrance-primary:hover::before {
  transform: translateX(115%);
}

.entrance-primary:hover::after {
  transform: translateX(2px);
}

.entrance-primary:focus-visible {
  outline: 3px solid rgba(242, 214, 151, 0.5);
  outline-offset: 5px;
}

@media (max-width: 780px) {
  .entrance-intro {
    display: block;
    min-height: 100svh;
    background:
      radial-gradient(circle at 50% 42%, rgba(31, 61, 80, 0.46), transparent 42%),
      #040a11;
  }

  .entrance-intro::before {
    inset: -12%;
    background-position: 54% center;
    filter: blur(34px) brightness(0.38) saturate(0.78);
    transform: scale(1.18);
  }

  .entrance-photo {
    inset: auto 14px auto 14px;
    top: 45%;
    width: calc(100% - 28px);
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    background: #08121d;
    border: 1px solid rgba(239, 215, 168, 0.42);
    border-radius: 22px;
    box-shadow:
      0 36px 80px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 14px 38px rgba(35, 78, 103, 0.22);
    filter: saturate(0.9) contrast(1.04) brightness(0.92);
    transform: translateY(-50%);
  }

  .entrance-shade {
    background:
      radial-gradient(circle at 50% 45%, transparent 0 22%, rgba(3, 9, 15, 0.2) 58%),
      linear-gradient(180deg, rgba(2, 7, 12, 0.2), rgba(2, 7, 12, 0.54));
  }

  .entrance-primary {
    position: absolute;
    right: 22px;
    bottom: max(26px, env(safe-area-inset-bottom));
    left: 22px;
    width: auto;
    min-width: 0;
    min-height: 62px;
    margin: 0;
    padding-left: 28px;
    border-radius: 17px;
    box-shadow:
      0 24px 62px rgba(0, 0, 0, 0.46),
      0 1px 0 rgba(255, 255, 255, 0.62) inset,
      0 12px 36px rgba(216, 180, 110, 0.22);
  }

  .entrance-primary::after {
    margin-left: 22px;
  }
}

@media (max-width: 780px) and (orientation: landscape) {
  .entrance-photo {
    inset: 14px 18px 14px 18px;
    top: auto;
    width: calc(100% - 36px);
    height: calc(100% - 28px);
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 20px;
    transform: none;
  }

  .entrance-primary {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    left: auto;
    width: 238px;
    min-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entrance-intro {
    transition-duration: 0.01ms;
  }
}

/* Independent venue wayfinding controls */
.floor-controls button.guide-toggle {
  position: relative;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  overflow: hidden;
  color: #dbe5ea;
  font-weight: 650;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, rgba(20, 31, 43, 0.92), rgba(7, 13, 20, 0.96));
  border-color: rgba(184, 203, 214, 0.24);
  border-radius: 7px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.floor-controls button.guide-toggle::before {
  width: 7px;
  height: 7px;
  content: "";
  background: #6f7c85;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(111, 124, 133, 0.12);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.floor-controls button.guide-toggle:hover {
  color: #fff;
  background: linear-gradient(145deg, rgba(28, 43, 57, 0.98), rgba(9, 17, 25, 0.98));
  border-color: rgba(218, 230, 236, 0.48);
  transform: translateY(-1px);
}

.floor-controls button.guide-toggle.safety-guide {
  color: #ffc4bf;
  border-color: rgba(239, 107, 103, 0.42);
}

.floor-controls button.guide-toggle.safety-guide::before {
  background: #ef6b67;
  box-shadow: 0 0 0 3px rgba(239, 107, 103, 0.15);
}

.floor-controls button.guide-toggle.safety-guide.active {
  color: #fff8f6;
  background: linear-gradient(135deg, #9e3537 0%, #d45450 58%, #ef7e6f 100%);
  border-color: #ff9f92;
  box-shadow:
    0 9px 26px rgba(178, 55, 54, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.floor-controls button.guide-toggle.safety-guide.active::before {
  background: #fff5ef;
  box-shadow: 0 0 0 3px rgba(255, 245, 239, 0.22), 0 0 13px rgba(255, 236, 225, 0.72);
}

.floor-controls button.guide-toggle.zone-guide {
  color: #f1d9a8;
  border-color: rgba(214, 173, 98, 0.44);
}

.floor-controls button.guide-toggle.zone-guide::before {
  background: #d6ad62;
  box-shadow: 0 0 0 3px rgba(214, 173, 98, 0.15);
}

.floor-controls button.guide-toggle.zone-guide.active {
  color: #10202b;
  background: linear-gradient(135deg, #e9cf95 0%, #d6ad62 50%, #80bbc2 100%);
  border-color: #f2dda9;
  box-shadow:
    0 9px 26px rgba(157, 127, 68, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.floor-controls button.guide-toggle.zone-guide.active::before {
  background: #0f202b;
  box-shadow: 0 0 0 3px rgba(15, 32, 43, 0.14);
}

.floor-controls button.guide-toggle:focus-visible {
  outline: 2px solid rgba(242, 221, 169, 0.78);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .floor-controls button.guide-toggle {
    flex-basis: calc(50% - 5px);
    min-width: 0;
    min-height: 36px;
    font-size: 10px;
  }

  .zone-panel {
    bottom: 168px;
  }
}

/* Premium bilingual interface */
.entrance-primary {
  min-width: 284px;
  min-height: 70px;
  padding: 0 13px 0 30px;
  color: #f6ead2;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(145deg, rgba(17, 30, 42, 0.94), rgba(5, 12, 19, 0.97));
  border-color: rgba(226, 190, 119, 0.72);
  border-radius: 14px;
  box-shadow:
    0 26px 72px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(214, 173, 98, 0.18) inset,
    0 0 0 1px rgba(3, 8, 13, 0.66);
}

.entrance-primary > span,
.entrance-primary > small {
  position: relative;
  z-index: 1;
  display: block;
}

.entrance-primary > span {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: 0.18em;
}

.entrance-primary > small {
  margin-left: 16px;
  color: #d9b66f;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.22em;
}

.entrance-primary::after {
  width: 42px;
  height: 42px;
  margin-left: 22px;
  color: #12202b;
  background: linear-gradient(145deg, #f1d49a, #c89748);
  border-color: rgba(255, 236, 196, 0.82);
  border-radius: 11px;
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.48) inset;
}

.entrance-primary:hover {
  color: #fff9ee;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.12), transparent 48%),
    linear-gradient(145deg, rgba(23, 40, 54, 0.98), rgba(7, 15, 23, 0.99));
  border-color: #ebca88;
}

.floor-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  width: min(900px, calc(100vw - 490px));
  padding: 9px;
  background: linear-gradient(145deg, rgba(11, 20, 29, 0.96), rgba(4, 10, 16, 0.97));
  border-color: rgba(198, 214, 224, 0.2);
  border-radius: 10px;
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.46),
    0 1px 0 rgba(255, 255, 255, 0.045) inset;
}

.floor-controls button,
.floor-controls button.guide-toggle {
  min-width: 0;
  min-height: 52px;
  padding: 7px 15px;
  border-color: rgba(183, 199, 209, 0.16);
  border-radius: 8px;
}

.floor-controls button.guide-toggle {
  gap: 10px;
}

.control-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
  line-height: 1.05;
}

.control-copy b {
  color: inherit;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.control-copy small {
  color: color-mix(in srgb, currentColor 72%, #82909a);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.floor-controls button.active .control-copy small {
  color: rgba(13, 24, 32, 0.66);
}

.floor-controls button.tour {
  margin-left: 0;
}

.zone-panel {
  top: 32px;
  bottom: auto;
  width: min(390px, calc(100vw - 76px));
  padding: 22px 24px 23px;
  background: linear-gradient(145deg, rgba(10, 18, 27, 0.97), rgba(5, 11, 17, 0.97));
  border-color: rgba(214, 173, 98, 0.36);
  border-radius: 10px;
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.zone-panel h2 {
  font-size: 19px;
  line-height: 1.28;
}

.zone-panel p {
  font-size: 11px;
  line-height: 1.62;
}

@media (max-width: 1120px) and (min-width: 761px) {
  .floor-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100vw - 390px);
  }
}

@media (max-width: 760px) {
  .brand-panel {
    width: calc(100vw - 36px);
  }

  .eyebrow {
    gap: 2px;
    font-size: 8px;
    line-height: 1.22;
  }

  .eyebrow .eyebrow-es {
    font-size: 6.5px;
    letter-spacing: 0.06em;
  }

  .entrance-primary {
    min-height: 66px;
    padding-left: 23px;
  }

  .entrance-primary > span {
    font-size: 14px;
  }

  .entrance-primary > small {
    margin-left: 12px;
  }

  .floor-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: auto;
    max-height: 31svh;
    padding: 7px;
    overflow-y: auto;
    border-radius: 10px;
  }

  .floor-controls button,
  .floor-controls button.guide-toggle,
  .floor-controls button.tour,
  .floor-controls button.labels {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    min-height: 46px;
    margin-left: 0;
    padding: 6px 10px;
  }

  .floor-controls button.guide-toggle {
    flex-basis: calc(50% - 6px);
  }

  .control-copy b {
    font-size: 9px;
  }

  .control-copy small {
    overflow: hidden;
    font-size: 6.5px;
    letter-spacing: 0.09em;
    text-overflow: ellipsis;
  }

  .zone-panel {
    top: clamp(152px, 20svh, 200px);
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    max-height: 126px;
    padding: 11px 14px 12px;
    overflow: hidden;
    pointer-events: none;
  }

  .zone-panel h2 {
    display: -webkit-box;
    margin: 6px 0 4px;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .zone-panel p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 7.5px;
    line-height: 1.36;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .zone-panel span {
    display: block;
    font-size: 7.5px;
    line-height: 1.35;
  }

  .brand-panel h1 em {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.48em;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 760px) and (max-height: 700px) and (orientation: portrait) {
  .zone-panel {
    top: 132px;
    max-height: 78px;
    padding: 9px 12px 10px;
  }

  .zone-panel h2 {
    margin-bottom: 0;
    font-size: 11.5px;
  }

  .zone-panel p {
    display: none;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .floor-controls {
    max-height: 42svh;
  }

  .zone-panel {
    top: 18px;
    right: 18px;
    bottom: auto;
    left: auto;
    width: min(320px, 44vw);
    max-height: 92px;
    padding: 10px 12px;
  }

  .zone-panel p {
    display: none;
  }
}
