@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.hall-plan-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hall-plan-app,
.hall-plan-app body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body.hall-plan-app {
  background: #eef2f4;
  color: #212529;
  font-family: "Inter", Arial, sans-serif;
  touch-action: none;
}

.hall-plan-shell {
  position: fixed;
  inset: 0;
  min-width: 0;
  min-height: 0;
  background: #eef2f4;
  isolation: isolate;
}

.hall-plan-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.hall-plan-viewport.is-dragging {
  cursor: grabbing;
}

.hall-plan-image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hall-plan-image.is-animating {
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hall-plan-topbar {
  position: fixed;
  z-index: 20;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.hall-plan-action,
.hall-plan-control,
.hall-plan-legend-toggle,
.hall-plan-legend-close {
  box-sizing: border-box;
  min-width: 3rem;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hall-plan-action,
.hall-plan-control,
.hall-plan-legend-toggle {
  background: var(--primary-color, #ffeb00);
  color: var(--primary-text-color, #000000);
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.18);
}

.hall-plan-action:hover,
.hall-plan-action:focus-visible,
.hall-plan-control:hover,
.hall-plan-control:focus-visible,
.hall-plan-legend-toggle:hover,
.hall-plan-legend-toggle:focus-visible {
  background: var(--primary-color-dark, var(--primary-color, #ffeb00));
  color: var(--primary-text-color, #000000);
  outline: 3px solid rgba(var(--primary-color-rgb, 255, 235, 0), 0.35);
  outline-offset: 2px;
}

.hall-plan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1rem;
  pointer-events: auto;
}

.hall-plan-action svg,
.hall-plan-control svg,
.hall-plan-legend-close svg,
.hall-plan-launch svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hall-plan-controls {
  position: fixed;
  z-index: 20;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hall-plan-control {
  display: grid;
  place-items: center;
  padding: 0;
}

.hall-plan-control svg {
  width: 1.55rem;
  height: 1.55rem;
}

.hall-plan-legend-toggle {
  position: fixed;
  z-index: 20;
  left: max(0.75rem, env(safe-area-inset-left));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1rem 0 0.55rem;
}

.hall-plan-legend-toggle-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary-text-color, #000000);
  color: var(--primary-color, #ffeb00);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.hall-plan-legend-scrim {
  position: fixed;
  z-index: 29;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.hall-plan-legend {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(80dvh, 38rem);
  padding: 1.25rem max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  overflow-y: auto;
  border-top: 0.4rem solid var(--primary-color, #ffeb00);
  border-radius: 1.25rem 1.25rem 0 0;
  background: #ffffff;
  color: #212529;
  box-shadow: 0 -0.5rem 2rem rgba(0, 0, 0, 0.2);
}

.hall-plan-legend[hidden],
.hall-plan-legend-scrim[hidden] {
  display: none;
}

.hall-plan-legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hall-plan-legend-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.2;
}

.hall-plan-legend-close {
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--secondary-color, #ff6f00);
  color: var(--secondary-text-color, #000000);
}

.hall-plan-legend-close:hover,
.hall-plan-legend-close:focus-visible {
  background: var(--secondary-color-dark, var(--secondary-color, #ff6f00));
  color: var(--secondary-text-color, #000000);
  outline: 3px solid rgba(var(--secondary-color-rgb, 255, 111, 0), 0.4);
  outline-offset: 2px;
}

.hall-plan-legend-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hall-plan-legend-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.hall-plan-legend-symbol {
  display: grid;
  flex: 0 0 2.5rem;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--hall-plan-legend-color);
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
}

.hall-plan-legend-symbol svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hall-plan-launch {
  display: none;
}

@media (max-width: 767.98px) {
  .hall-plan-launch {
    position: fixed;
    z-index: 850;
    right: max(4.5rem, calc(3.75rem + env(safe-area-inset-right)));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: max(0.75rem, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--primary-color, #ffeb00);
    color: var(--primary-text-color, #000000);
    box-shadow: 0 0.35rem 1.3rem rgba(0, 0, 0, 0.25);
    font-weight: 700;
    text-decoration: none;
  }

  .hall-plan-launch:hover,
  .hall-plan-launch:focus-visible {
    background: var(--primary-color-dark, var(--primary-color, #ffeb00));
    color: var(--primary-text-color, #000000);
    outline: 3px solid rgba(var(--primary-color-rgb, 255, 235, 0), 0.4);
    outline-offset: 2px;
  }

  body.has-hall-plan-launch .to-top-button {
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) {
  .hall-plan-legend {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(25rem, 42vw);
    max-height: none;
    padding: 2rem;
    border-top: 0;
    border-left: 0.4rem solid var(--primary-color, #ffeb00);
    border-radius: 1.25rem 0 0 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-plan-image {
    will-change: auto;
  }

  .hall-plan-image.is-animating {
    transition: none;
  }
}
