/* ==========================================================================
   Graduation Avatar — Francesco 2.0
   Responsive & Mobile-First Optimizations
   ========================================================================== */

/* Safe Area Insets & Viewport Height */
@supports (min-height: 100dvh) {
  html, body, #app {
    min-height: 100dvh;
    height: 100dvh;
  }
}

/* Small Smartphone Viewports (< 375px) */
@media (max-width: 374px) {
  .intro-title {
    font-size: 26px;
  }
  .intro-subtitle {
    font-size: 14px;
  }
  .mii-character {
    width: 135px;
    height: 200px;
  }
  .mii-recipient {
    width: 130px;
    height: 195px;
  }
  .dialogue-box {
    padding: 14px 16px 12px 16px;
    min-height: 105px;
  }
  .dialogue-text {
    font-size: 14.5px;
  }
  .question-title {
    font-size: 15px;
  }
  .answer-btn {
    min-height: 48px;
    font-size: 14px;
    padding: 10px 14px;
  }
  .final-heading {
    font-size: 30px;
  }
}

/* Medium to Large Smartphone Viewports (375px - 430px) */
@media (min-width: 375px) and (max-width: 480px) {
  .scene-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .dialogue-text {
    font-size: 16px;
  }
}

/* Desktop & Tablet Display (Centered Clean Smartphone Presentation) */
@media (min-width: 481px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    background: radial-gradient(circle at 50% 20%, #1F2430 0%, #0D0E12 100%);
  }

  #app {
    height: 844px;
    max-height: 90vh;
    border-radius: 36px;
    border: 8px solid #2B303C;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  /* Desktop notch simulation bar for nice polish */
  #app::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1A1C24;
    border-radius: 20px;
    z-index: 101;
    pointer-events: none;
  }
}
