/**
 * AI Wildlife Explorer — Layout Stylesheet
 * 1:1 Synchronized with Figma Mobile Frame (402px x 874px)
 */

/* Desktop wrapper */
.app-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  background: #E5B35C; /* Warm sandy backdrop on desktop */
  padding: 16px;
  overflow: hidden;
}

/* Mobile Viewport — Matches Figma Frame (402px x 874px), dynamic on mobile */
.mobile-viewport {
  position: relative;
  width: 100%;
  max-width: 402px;
  height: 874px;
  max-height: 100%;
  max-height: 100dvh;
  background: var(--bg-app);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 36px;
}

@media (max-width: 480px) {
  .app-container {
    padding: 0;
    background: var(--bg-app);
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
  }
  .mobile-viewport {
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Screens Viewport */
.screens-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.game-screen {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  position: relative;
  animation: screenFadeIn var(--t-fast) ease;
}

.game-screen.active {
  display: flex;
}

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

/* Full camera screens */
#screen-explore-gameplay,
#screen-quest-gameplay {
  padding: 0;
  background: var(--color-camera-bg);
}
