/* The game HUD stays readable while the scene gains a movable 3D camera. */
.world-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #b7d5d0;
  font: 700 12px/1.5 var(--font-jp);
  letter-spacing: .035em;
  text-align: center;
}
html[data-render-mode="3d"] .world-status { color: #a6e6d6; }
html[data-render-mode="3d"] #map-canvas { filter: none; }
html[data-render-mode="3d"] .map-panel::before { box-shadow: inset 0 1px 0 #ffffff18; }
.map-panel { position: relative; }
.map-camera {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100% - 24px);
  padding: 3px;
  border: 1px solid #bfe7dc4d;
  border-radius: 14px;
  color: #f5f5df;
  background: #123340e8;
  box-shadow: 0 3px 10px #061c2b40;
}
.map-camera[hidden] { display: none; }
.map-camera-label { padding: 0 7px; font: 700 10px/1 var(--font-display); letter-spacing: .08em; }
.map-camera button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #edf5df;
  font: 700 25px/1 var(--font-jp);
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
}
.map-camera button:hover { background: #ffffff1c; }
.map-camera button:active { transform: scale(.94); background: #94e1d438; }
.map-camera button::before, .map-camera button::after { display: none; }
@media (max-width: 560px) {
  .world-status { margin-top: 5px; font-size: 11px; }
  .map-camera { top: 8px; left: 8px; border-radius: 12px; }
  .map-camera-label { display: none; }
  /* Exploration gets the unused vertical space, not a centered landscape card.
     Scope to the visible map so battle questions keep their existing layout. */
  #screen-game:has(#map-panel:not(.hidden)) .battle-area {
    justify-content: flex-start;
    min-height: 290px;
  }
  #screen-game:has(#map-panel:not(.hidden)) .hud { padding: 7px 10px; }
  #screen-game:has(#map-panel:not(.hidden)) .relic-tray:empty { display: none; }
  #screen-game:has(#map-panel:not(.hidden)) .battle-status { min-height: 40px; padding-block: 5px; }
  #map-panel:not(.hidden) {
    flex: 1 1 0;
    align-self: stretch;
    min-height: 0;
    margin: 6px 6px 4px;
    padding: 0;
    justify-content: flex-start;
  }
  #map-panel:not(.hidden) #map-canvas {
    flex: 1 1 0;
    min-height: 0;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
  }
  #map-panel .map-hint { display: none; }
  #screen-game:has(#map-panel:not(.hidden)) .combo-zone { display: none; }
  .map-camera { gap: 4px; }
  .map-camera button { width: 48px; min-width: 48px; height: 48px; min-height: 48px; flex-basis: 48px; touch-action: manipulation; }
  #screen-game:has(#map-panel:not(.hidden)) .msg-window {
    min-height: 42px; margin: 6px 8px; padding: 8px 10px; font-size: 14px;
  }
  .skill-caption .giveup-btn { min-height: 44px; min-width: 72px; }
  .skill-btn { touch-action: manipulation; }
}
