.hall-page {
  margin: 0;
  min-height: 100dvh;
  background: #c4b57a;
  overflow: hidden;
}

.hall-root {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: #c9bc86;
}

#hall-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.hall-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.85rem, env(safe-area-inset-top)) 1rem 0.75rem max(1rem, env(safe-area-inset-left));
  pointer-events: none;
  background: linear-gradient(180deg, rgba(90, 74, 40, 0.55), transparent 90%);
}

.hall-top .item-back,
.hall-top__meta {
  pointer-events: auto;
}

.hall-top .item-back {
  color: #2a2214;
  background: rgba(255, 244, 200, 0.75);
  border-radius: 0.4rem;
  padding: 0.35rem 0.65rem;
}

.hall-top__meta {
  text-align: right;
}

.hall-top__title {
  margin: 0;
  font-family: "Unbounded", "Onest", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2a2214;
}

.hall-top__status {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: rgba(42, 34, 20, 0.72);
}

.hall-hud {
  position: absolute;
  left: 50%;
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
  z-index: 5;
  width: min(22rem, calc(100% - 2rem));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.hall-hud__btn {
  pointer-events: auto;
  margin-top: 0;
}

.hall-hud__btn.hidden {
  display: none;
}

.hall-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hall-crosshair::before,
.hall-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 244, 210, 0.85);
  box-shadow: 0 0 0 1px rgba(40, 32, 16, 0.35);
}

.hall-crosshair::before {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  margin-left: -1px;
}

.hall-crosshair::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
}

.hall-crosshair__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: rgba(255, 244, 210, 0.95);
}

.hall-speech {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 6;
  transform: translate(-50%, 0);
  width: min(28rem, calc(100% - 2rem));
  margin: 0;
  padding: 0.7rem 1rem 0.85rem;
  border-radius: 0.55rem;
  background: rgba(28, 22, 12, 0.78);
  border: 1px solid rgba(255, 230, 160, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.hall-speech.hidden {
  display: none;
}

.hall-speech__name {
  margin: 0 0 0.3rem;
  font-family: "Unbounded", "Onest", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffe9a0;
}

.hall-speech__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 244, 220, 0.92);
}

body.hall-ui-mode .hall-crosshair {
  opacity: 0.25;
}

.hall-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse 60% 45% at 50% 40%, rgba(255, 230, 140, 0.35), transparent 60%),
    rgba(180, 160, 90, 0.88);
  backdrop-filter: blur(4px);
}

.hall-overlay.hidden {
  display: none;
}

.hall-overlay__card {
  width: min(26rem, 100%);
  text-align: center;
}

.hall-overlay__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(60, 48, 20, 0.7);
}

.hall-overlay__title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: -0.03em;
  color: #241c10;
}

.hall-overlay__text {
  margin: 0.85rem auto 1.25rem;
  max-width: 24rem;
  color: rgba(40, 32, 16, 0.78);
  line-height: 1.55;
  font-size: 0.92rem;
}

.hall-overlay__card .btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.hall-hint {
  position: absolute;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 4;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(60, 48, 24, 0.45);
  color: rgba(255, 244, 210, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.hall-stamina {
  position: absolute;
  left: 50%;
  bottom: max(3.2rem, calc(env(safe-area-inset-bottom) + 2.8rem));
  z-index: 5;
  width: min(14rem, 42vw);
  height: 0.45rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(20, 16, 10, 0.55);
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 244, 200, 0.15);
}

.hall-stamina__fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c4a35a, #e8d090);
  transition: width 0.08s linear, background 0.2s ease;
}

.hall-stamina__fill.is-low {
  background: linear-gradient(90deg, #a84a28, #e09050);
}

.hall-stamina__fill.is-empty {
  background: #5a2a18;
}

.hall-mission {
  position: absolute;
  left: 50%;
  top: max(3.4rem, calc(env(safe-area-inset-top) + 2.8rem));
  z-index: 5;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 0.45rem;
  background: rgba(30, 24, 14, 0.72);
  color: #f3e6c4;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  text-align: center;
  max-width: min(26rem, calc(100% - 2rem));
}

.hall-mission.is-done {
  background: rgba(30, 90, 70, 0.8);
  color: #d8ffe8;
}

.hall-actions {
  position: absolute;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: auto;
}

.hall-action-btn {
  min-width: 5.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 244, 200, 0.35);
  border-radius: 0.45rem;
  background: rgba(40, 32, 18, 0.72);
  color: #f6ecd0;
  font-family: "Onest", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.hall-action-btn.is-on {
  background: rgba(210, 170, 60, 0.85);
  color: #1c160c;
  border-color: rgba(255, 230, 140, 0.7);
}

.hall-action-btn--hold.is-on {
  background: rgba(180, 90, 40, 0.9);
  color: #fff4e0;
}

body.hall-ui-mode #hall-canvas {
  cursor: default;
}

body.hall-ui-mode .hall-actions,
body.hall-ui-mode .hall-hud__btn,
body.hall-ui-mode .hall-top .item-back {
  pointer-events: auto;
  z-index: 12;
}

body.hall-ui-mode .hall-actions {
  outline: 1px solid rgba(255, 230, 140, 0.35);
  border-radius: 0.55rem;
  padding: 0.2rem;
  background: rgba(20, 16, 10, 0.35);
}

.hall-mobile {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.hall-stick {
  position: absolute;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  border: 1px solid rgba(60, 48, 24, 0.35);
  background: rgba(255, 244, 200, 0.35);
  pointer-events: auto;
  touch-action: none;
}

.hall-stick__knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4rem;
  height: 2.4rem;
  margin: -1.2rem 0 0 -1.2rem;
  border-radius: 50%;
  background: rgba(90, 70, 30, 0.85);
}

.hall-look-zone {
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 55%;
  border: 0;
  background: transparent;
  pointer-events: auto;
  touch-action: none;
}

@media (hover: none) and (pointer: coarse) {
  .hall-mobile {
    display: block;
  }

  .hall-hint {
    display: none;
  }

  .hall-hud {
    bottom: max(9rem, calc(env(safe-area-inset-bottom) + 8rem));
  }

  .hall-stamina {
    bottom: max(8.4rem, calc(env(safe-area-inset-bottom) + 7.6rem));
  }

  .hall-actions {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(1.2rem, env(safe-area-inset-bottom));
  }
}
