.hall-lobby,
.hall-subhub,
.game-floor {
  animation: hallViewEnter 260ms ease both;
}

.hall-lobby {
  position: relative;
}

.hall-lobby-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 1px 2px 14px;
}

.hall-lobby-kicker,
.hall-view-header p {
  margin: 0;
  color: #7fdce9;
  font: 800 0.56rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.19em;
}

.hall-lobby-heading h2,
.hall-view-header h2 {
  margin: 4px 0 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: 0.055em;
}

.hall-lobby-open {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(126, 232, 199, 0.28);
  border-radius: 999px;
  color: #a5ebd5;
  background: rgba(57, 174, 140, 0.08);
  font: 800 0.48rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.11em;
}

.game-floor-entry {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 11px 15px;
  width: 100%;
  min-height: 184px;
  padding: 20px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(151, 220, 255, 0.3);
  border-top-color: rgba(151, 220, 255, 0.08);
  border-radius: 27px;
  color: #f5f8ff;
  background:
    linear-gradient(115deg, rgba(98, 190, 237, 0.14), transparent 35%),
    radial-gradient(circle at 88% 4%, rgba(201, 174, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(32, 48, 89, 0.96), rgba(13, 22, 49, 0.98));
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.3),
    inset 0 0 52px rgba(95, 186, 255, 0.035);
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 100ms ease;
}

.game-floor-entry::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.game-floor-entry::after {
  position: absolute;
  inset: -28% -18%;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  background:
    radial-gradient(circle at 23% 70%, rgba(126, 224, 255, 0.17), transparent 29%),
    radial-gradient(circle at 76% 24%, rgba(199, 166, 255, 0.14), transparent 31%),
    radial-gradient(circle at 58% 82%, rgba(246, 217, 142, 0.08), transparent 23%);
  filter: blur(12px);
  transform: translate3d(-2.5%, 1.5%, 0) scale(1);
  animation: hallEntryHaze 11.4s ease-in-out infinite alternate;
}

.game-floor-entry:hover,
.game-floor-entry:focus-visible {
  border-color: rgba(151, 220, 255, 0.55);
  border-top-color: rgba(151, 220, 255, 0.18);
  box-shadow: 0 24px 58px rgba(28, 119, 165, 0.19), inset 0 0 52px rgba(95, 186, 255, 0.045);
}

.game-floor-entry:active {
  transform: scale(0.988);
}

.game-floor-entry-mark {
  position: relative;
  z-index: 2;
  display: grid;
  grid-row: 1 / 3;
  width: 84px;
  height: 128px;
  place-items: center;
  border: 1px solid rgba(151, 220, 255, 0.39);
  border-radius: 43px 43px 14px 14px;
  background:
    radial-gradient(circle at 50% 28%, rgba(246, 217, 142, 0.21), transparent 24%),
    linear-gradient(180deg, rgba(86, 135, 192, 0.18), rgba(5, 13, 31, 0.76));
  box-shadow: inset 0 0 25px rgba(134, 233, 255, 0.08), 0 0 26px rgba(134, 233, 255, 0.07);
}

.game-floor-entry-mark::before,
.game-floor-entry-mark::after {
  position: absolute;
  content: "";
}

.game-floor-entry-mark::before {
  top: 15px;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(246, 217, 142, 0.52);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(246, 217, 142, 0.12), inset -8px -4px 0 rgba(246, 217, 142, 0.06);
  transform-origin: center;
  animation: hallBeaconRing 6.4s ease-in-out infinite;
}

.game-floor-entry-mark::after {
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 45px;
  background: linear-gradient(transparent, rgba(134, 233, 255, 0.38));
}

.game-floor-entry-mark i {
  position: absolute;
  top: 28px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f6d98e;
  box-shadow: 0 0 10px #f6d98e;
  transform-origin: center;
  animation: hallBeaconCore 6.4s ease-in-out infinite;
}

.game-floor-entry-mark b {
  align-self: end;
  margin-bottom: 19px;
  color: #caeff7;
  font: 800 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -0.05em;
}

.game-floor-entry-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: end;
  min-width: 0;
  padding-left: 9px;
  gap: 3px;
}

.game-floor-entry-copy small {
  color: #87dfed;
  font: 800 0.52rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
}

.game-floor-entry-copy strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.48rem, 7vw, 2rem);
  line-height: 1;
  letter-spacing: 0.045em;
}

.game-floor-entry-copy > span {
  color: #aebbd3;
  font-size: 0.68rem;
}

.game-floor-entry-status {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-self: start;
  gap: 2px 8px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(180, 213, 246, 0.12);
  border-radius: 11px;
  background: rgba(4, 11, 28, 0.32);
}

.game-floor-entry-status small {
  grid-column: 1 / 2;
  color: #f1d88f;
  font: 800 0.48rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}

.game-floor-entry-status strong {
  grid-column: 1 / 2;
  overflow: hidden;
  color: #dce8f7;
  font-size: 0.64rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.game-floor-entry-status i {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  color: #8ee6f2;
  font: 800 0.5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
  letter-spacing: 0.08em;
}

.game-floor-entry-arrow {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 9px;
  color: rgba(184, 226, 246, 0.54);
  font: 800 0.48rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.11em;
}

.game-floor-dust {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.game-floor-dust i {
  position: absolute;
  top: var(--hall-y);
  left: var(--hall-x);
  width: var(--hall-size);
  height: var(--hall-size);
  border-radius: 50%;
  background: var(--hall-color);
  box-shadow: 0 0 8px var(--hall-color);
  opacity: var(--hall-opacity);
  animation: hallDustFloat var(--hall-duration) ease-in-out var(--hall-delay) infinite alternate;
}

.hall-destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.hall-destination-grid .hall-destination-observatory {
  grid-column: 1 / -1;
  min-height: 71px;
  margin: 0;
}

.hall-destination {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 123px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(190, 210, 240, 0.16);
  border-radius: 19px;
  color: #f2f5fc;
  background: linear-gradient(145deg, rgba(31, 42, 75, 0.88), rgba(13, 20, 42, 0.94));
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.07);
  text-align: left;
  transition: border-color 160ms ease, transform 100ms ease;
}

.hall-destination::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 83% 14%, rgba(var(--hall-accent), 0.17), transparent 42%);
}

.hall-destination-records {
  --hall-accent: 234, 202, 134;
  border-color: rgba(230, 199, 132, 0.22);
}

.hall-destination-arcade {
  --hall-accent: 229, 108, 193;
  border-color: rgba(197, 119, 213, 0.22);
}

.hall-destination:hover,
.hall-destination:focus-visible {
  border-color: rgba(var(--hall-accent), 0.48);
}

.hall-destination:active {
  transform: scale(0.978);
}

.hall-destination-symbol {
  position: absolute;
  top: 10px;
  left: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(var(--hall-accent), 0.32);
  border-radius: 12px;
  color: rgba(var(--hall-accent), 0.92);
  background: rgba(var(--hall-accent), 0.06);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.hall-destination small {
  color: rgba(var(--hall-accent), 0.92);
  font: 800 0.47rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.hall-destination strong {
  margin-top: 3px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hall-destination > span:not(.hall-destination-symbol) {
  margin-top: 2px;
  color: #8998b4;
  font-size: 0.58rem;
}

.hall-destination > i {
  position: absolute;
  top: 16px;
  right: 14px;
  color: rgba(var(--hall-accent), 0.8);
  font-style: normal;
}

.hall-lobby-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 11px 0 0;
  color: #75839e;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
}

.hall-lobby-note span {
  color: #78ddb7;
  font-size: 0.45rem;
  text-shadow: 0 0 8px rgba(120, 221, 183, 0.58);
}

.hall-subhub {
  min-height: min(560px, calc(100svh - 160px));
}

.hall-view-header {
  display: grid;
  gap: 15px;
  margin-bottom: 16px;
  padding: 4px 2px 13px;
  border-bottom: 1px solid rgba(190, 214, 245, 0.13);
}

.hall-view-header > div {
  min-width: 0;
}

.hall-return-button {
  justify-self: start;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(164, 203, 231, 0.18);
  border-radius: 999px;
  color: #b8cadc;
  background: rgba(224, 239, 255, 0.055);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hall-return-button:active {
  transform: scale(0.96);
}

.hall-subhub-copy {
  margin: -4px 2px 20px;
  color: #8f9db8;
  font-size: 0.7rem;
  line-height: 1.8;
}

.hall-subhub-list {
  display: grid;
  gap: 12px;
}

.hall-subhub-list .exhibition-entry,
.hall-subhub-list .apocalypse-entry,
.hall-subhub-list .crane-entry {
  min-height: 88px;
  margin: 0;
}

.hall-record-wing {
  position: relative;
}

.hall-record-wing::before,
.hall-arcade-hub::before {
  position: absolute;
  inset: 120px -16px auto;
  z-index: -1;
  height: 340px;
  content: "";
  pointer-events: none;
  opacity: 0.65;
  background: radial-gradient(circle at 50% 0, rgba(232, 202, 139, 0.1), transparent 64%);
}

.hall-arcade-hub::before {
  background: radial-gradient(circle at 50% 0, rgba(224, 103, 194, 0.11), transparent 64%);
}

.arcade-reserved {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 11px 13px;
  border: 1px dashed rgba(186, 152, 218, 0.22);
  border-radius: 16px;
  color: #a69ab5;
  background: linear-gradient(110deg, rgba(31, 26, 48, 0.6), rgba(15, 22, 40, 0.66));
}

.arcade-reserved-mark {
  display: grid;
  width: 42px;
  height: 52px;
  place-items: center;
  border: 1px dashed rgba(226, 131, 207, 0.32);
  border-radius: 9px 9px 13px 13px;
  background: rgba(202, 98, 186, 0.045);
}

.arcade-reserved-mark i {
  font: 800 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
}

.arcade-reserved > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.arcade-reserved small {
  color: #9e81ae;
  font: 700 0.5rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.arcade-reserved strong {
  color: #c7bdcf;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.arcade-reserved b {
  overflow: hidden;
  color: #756e82;
  font-size: 0.58rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.arcade-reserved em {
  color: #715e79;
  font: 800 0.43rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
  letter-spacing: 0.08em;
  text-align: center;
}

.game-floor-header {
  margin-bottom: 13px;
}

.game-floor > .guide-card {
  margin-top: 0;
}

@keyframes hallViewEnter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hallBeaconCore {
  0%, 18%, 43%, 100% {
    opacity: 0.9;
    box-shadow: 0 0 10px #f6d98e;
    transform: scale(1);
  }
  25% {
    opacity: 1;
    box-shadow: 0 0 11px #f6d98e, 0 0 22px rgba(246, 217, 142, 0.6);
    transform: scale(1.22);
  }
  34% {
    opacity: 0.94;
    box-shadow: 0 0 13px rgba(246, 217, 142, 0.88);
    transform: scale(1.05);
  }
}

@keyframes hallBeaconRing {
  0%, 18%, 46%, 100% {
    opacity: 1;
    border-color: rgba(246, 217, 142, 0.52);
    box-shadow: 0 0 20px rgba(246, 217, 142, 0.12), inset -8px -4px 0 rgba(246, 217, 142, 0.06);
    transform: scale(1);
  }
  26% {
    opacity: 1;
    border-color: rgba(246, 217, 142, 0.72);
    box-shadow: 0 0 26px rgba(246, 217, 142, 0.2), inset -8px -4px 0 rgba(246, 217, 142, 0.07);
    transform: scale(1.025);
  }
  39% {
    opacity: 0.68;
    border-color: rgba(246, 217, 142, 0.3);
    box-shadow: 0 0 30px rgba(246, 217, 142, 0.08), inset -8px -4px 0 rgba(246, 217, 142, 0.035);
    transform: scale(1.08);
  }
}

@keyframes hallEntryHaze {
  to {
    opacity: 0.46;
    transform: translate3d(3.5%, -2%, 0) scale(1.055);
  }
}

@keyframes hallDustFloat {
  0% {
    opacity: 0.08;
    transform: translate3d(0, 0, 0) scale(0.72);
  }
  55% {
    opacity: var(--hall-opacity);
  }
  100% {
    opacity: 0.1;
    transform: translate3d(var(--hall-dx), var(--hall-dy), 0) scale(1.18);
  }
}

@media (max-width: 370px) {
  .hall-lobby-heading h2 {
    font-size: 1.08rem;
  }

  .hall-lobby-open {
    padding-inline: 6px;
    font-size: 0.43rem;
  }

  .game-floor-entry {
    grid-template-columns: 73px minmax(0, 1fr);
    gap: 9px 11px;
    min-height: 169px;
    padding: 15px 13px;
  }

  .game-floor-entry-mark {
    width: 70px;
    height: 116px;
  }

  .game-floor-entry-copy strong {
    font-size: 1.45rem;
  }

  .game-floor-entry-copy small {
    font-size: 0.45rem;
  }

  .game-floor-entry-copy {
    padding-left: 7px;
  }

  .game-floor-entry-status {
    padding: 7px;
  }

  .game-floor-entry-arrow {
    display: none;
  }

  .hall-destination {
    min-height: 114px;
    padding: 11px;
  }

  .hall-destination > span:not(.hall-destination-symbol) {
    font-size: 0.53rem;
  }

  .arcade-reserved {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    padding-inline: 10px;
  }

  .arcade-reserved em {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-lobby,
  .hall-subhub,
  .game-floor,
  .game-floor-entry::after,
  .game-floor-entry-mark::before,
  .game-floor-entry-mark i {
    animation: none;
  }

  .game-floor-dust {
    display: none;
  }
}
