/* The hall bar both pages share (see hall.mjs): the crystal skull, and the treasures beside it. */
.hall {
  --reserve: bottom;
  position: fixed;
  z-index: 2;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 6px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / 80%), inset 0 1px rgb(255 255 255 / 4%);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  translate: -50% 0;
  animation: rise 1s var(--ease) 0.35s backwards;
}

/* The treasures' frame opens over the skull's page with the bar already where it was. */
.is-embedded .hall {
  animation: none;
}

.hall-items {
  display: flex;
  gap: 2px;
}

.hall-item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 15px 6px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.hall-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.hall-item:hover {
  color: var(--text);
}

.hall-item[aria-checked="true"] {
  border-color: rgb(230 211 163 / 26%);
  background: rgb(230 211 163 / 12%);
  color: #fff;
}

@media (max-width: 640px) {
  .hall {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    max-width: none;
    padding: 5px;
    border-radius: 22px;
    translate: none;
  }

  .hall-items {
    flex: 1;
    justify-content: space-between;
  }

  .hall-item {
    flex-direction: column;
    gap: 3px;
    min-height: 0;
    padding: 6px 7px 5px;
    border-radius: 16px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
}

/* English names are longer: on narrow screens they break onto two lines (Crystal / Skull), each under its icon. */
@media (max-width: 820px) {
  html[lang='en'] .hall-item {
    line-height: 1.15;
    letter-spacing: 0.01em;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  html[lang='en'] .hall-items .hall-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }
}
