@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Serif+SC:wght@500;700&display=swap');

.world-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  color: #f4f7fb;
}

.world-screen[hidden] {
  display: none !important;
}

.world-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}

.world-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.55) 0%, rgba(8, 12, 20, 0.18) 38%, rgba(8, 12, 20, 0.72) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(255, 210, 140, 0.12), transparent 55%);
  pointer-events: none;
}

.world-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 48px);
  padding-top: clamp(64px, 8vw, 88px);
}

.world-brand {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', 'STKaiti', serif;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  margin: 0;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}

.world-tagline {
  margin: 10px 0 0;
  max-width: 28rem;
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(236, 242, 250, 0.88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.world-meta {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(210, 222, 236, 0.75);
}

.home-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
  width: min(1100px, 100%);
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
  width: 100%;
}

.home-shortcut {
  appearance: none;
  border: 1px solid rgba(255, 220, 160, 0.28);
  border-radius: 0;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  background:
    linear-gradient(135deg, rgba(40, 48, 64, 0.72), rgba(22, 28, 40, 0.55));
  backdrop-filter: blur(6px);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.home-shortcut:hover {
  border-color: rgba(255, 210, 140, 0.55);
  background:
    linear-gradient(135deg, rgba(52, 62, 82, 0.82), rgba(28, 36, 52, 0.68));
  transform: translateY(-1px);
}

.home-shortcut-name {
  display: block;
  font-family: 'Noto Serif SC', 'STKaiti', serif;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.home-shortcut-blurb {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(220, 230, 242, 0.72);
}

.home-regions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
  width: 100%;
}

.region-card {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  padding: 22px 18px 18px;
  background: rgba(12, 18, 28, 0.42);
  backdrop-filter: blur(8px);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.region-card:hover {
  background: rgba(18, 28, 42, 0.62);
  border-color: rgba(255, 220, 160, 0.45);
  transform: translateY(-3px);
}

.region-card-name {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.12em;
}

.region-card-blurb {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(220, 230, 240, 0.78);
}

.region-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.region-title-block h1 {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(36px, 5vw, 64px);
  margin: 0;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.region-title-block p {
  margin: 8px 0 0;
  color: rgba(230, 238, 248, 0.85);
}

.world-back {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 10px 16px;
  background: rgba(10, 14, 22, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  backdrop-filter: blur(6px);
}

.world-back:hover {
  background: rgba(20, 30, 44, 0.75);
}

.zone-panel,
.street-panel {
  margin-top: auto;
  width: min(720px, 100%);
  max-height: min(56vh, 520px);
  overflow: auto;
  padding: 16px;
  background: rgba(10, 14, 22, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.street-panel {
  width: min(560px, 100%);
  max-height: min(58vh, 540px);
}

.street-panel-hint {
  margin: -4px 0 12px;
  font-size: 12px;
  color: rgba(210, 222, 236, 0.72);
}

.zone-panel h2,
.street-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(230, 236, 244, 0.9);
}

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

.zone-card {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.zone-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 176, 112, 0.5);
  transform: translateY(-2px);
}

.zone-card-name {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.zone-card-blurb {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(220, 230, 240, 0.78);
}

.zone-card-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #9ec8a8;
}

.street-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.street-map-group {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.street-map-group.is-open {
  border-color: rgba(180, 210, 170, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

.street-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
}

.street-map-head::before {
  content: '▸';
  flex: 0 0 auto;
  width: 1em;
  color: rgba(200, 214, 228, 0.7);
  font-size: 12px;
}

.street-map-group.is-open .street-map-head::before {
  content: '▾';
}

.street-map-group.is-solo .street-map-head::before {
  content: '';
  width: 0;
}

.street-map-head:hover {
  background: rgba(255, 255, 255, 0.08);
}

.street-map-title {
  flex: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.street-map-count {
  font-size: 12px;
  color: #9ec8a8;
  white-space: nowrap;
}

.street-map-streets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 10px 28px;
}

.street-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}

.street-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(180, 210, 170, 0.45);
}

.street-item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.street-name {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.street-tag {
  font-size: 12px;
  color: #9ec8a8;
  white-space: nowrap;
}

.street-tag.is-soon {
  color: #c8b070;
}

.game-back-btn {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 7;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: rgba(30, 42, 58, 0.92);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.game-back-btn:hover {
  background: rgba(46, 62, 84, 0.96);
}

.app.is-nav-hidden {
  display: none !important;
}

@media (max-width: 900px) and (orientation: portrait) {
  .home-regions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-shortcuts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  .home-regions {
    grid-template-columns: 1fr;
  }

  .home-shortcuts {
    grid-template-columns: 1fr;
  }

  .region-top {
    flex-direction: column;
  }

  .street-panel,
  .zone-panel {
    max-height: 46vh;
  }

  .zone-grid {
    grid-template-columns: 1fr;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .home-regions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .zone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .street-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .street-map-streets {
    grid-column: 1 / -1;
  }
}
