/* ==========================================================================
   EMOTION MAGIC MIRROR - CSS STYLESHEET
   Accurately matches the fairy-tale pastel iPad mockup:
   - 3-panel ornate vanity mirror with fairy lights & golden stars
   - Pastel periwinkle ribbon title & floating question capsule
   - Illustrated Pip the panda mascot with animated poses & golden star headband
   - 4 standing Polaroid emotion photo cards on wooden dressing table
   - Responsive multi-device support (Laptop, iPad/Tablet, Phone)
   ========================================================================== */

:root {
  --font-display: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Nunito', 'Be Vietnam Pro', sans-serif;
  
  --primary-purple: #7158E2;
  --ribbon-purple: #8C7AE6;
  --soft-yellow: #FFD200;
  --star-gold: #FFA800;
  --table-wood: #D29B68;
  
  --hud-shadow: 0 4px 14px rgba(113, 88, 226, 0.25);
  --card-shadow: 0 10px 24px rgba(80, 40, 20, 0.28);
  --card-hover-shadow: 0 16px 32px rgba(80, 40, 20, 0.38);
  --golden-glow: 0 0 0 4px #FFE082, 0 0 32px rgba(255, 215, 64, 0.95);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: linear-gradient(135deg, #FDEB71 0%, #F8BBD0 50%, #E1BEE7 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Camera Snapshot Flash Overlay */
.camera-flash-overlay {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  z-index: 999999;
  transition: opacity 0.08s ease-out;
}

.camera-flash-overlay.flashing {
  opacity: 0.94;
  transition: none;
}

/* ==========================================================================
   OUTER TABLET BEZEL (Matches Customer Mockup's Pastel iPad Frame)
   ========================================================================== */
.tablet-outer-bezel {
  position: relative;
  width: min(98vw, 1080px);
  height: min(96dvh, 760px);
  background: #FFE4E8;
  border: 12px solid #FFCDD2;
  border-radius: 38px;
  box-shadow: 
    0 20px 60px rgba(113, 88, 226, 0.28),
    0 4px 16px rgba(248, 187, 208, 0.6),
    inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Tablet Camera Dot on left edge */
.tablet-camera-dot {
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #424242;
  border: 1px solid #757575;
  z-index: 10;
}

/* ==========================================================================
   GAME APP CONTAINER
   ========================================================================== */
.game-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #E8F5E9 url('images/mirror_stage_bg.jpg') center bottom / cover no-repeat;
}

/* ==========================================================================
   TOP NAVIGATION HUD
   ========================================================================== */
.top-nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 2px 16px;
  height: 62px;
  flex-shrink: 0;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Circular HUD Buttons */
.btn-circle-hud {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--hud-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  outline: none;
}

.btn-circle-hud:hover {
  transform: scale(1.08);
}

.btn-circle-hud:active {
  transform: scale(0.92);
}

.btn-home {
  background: #FFFFFF;
  color: #7158E2;
  font-size: 20px;
}

.brand-badge {
  display: flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s;
}

.brand-badge:hover {
  transform: scale(1.04);
}

.brand-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* Yellow Sound Toggle Button */
.btn-yellow-sound {
  background: linear-gradient(135deg, #FFF176 0%, #FFD54F 50%, #FFA000 100%);
  border-color: #FFF9C4;
  font-size: 20px;
}

.btn-yellow-sound:not(.active) {
  filter: grayscale(0.8);
  opacity: 0.7;
}

/* Purple Star Progress Badge */
.progress-star-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #B39DDB 0%, #9575CD 100%);
  border: 3px solid #FFFFFF;
  border-radius: 22px;
  padding: 4px 14px;
  box-shadow: var(--hud-shadow);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13.5px;
}

.progress-star-badge .star-icon {
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(255, 168, 0, 0.4));
}

/* Parents Guide Pill */
.btn-pill-tip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #FFF9C4;
  border: 2px solid #FBC02D;
  border-radius: 20px;
  padding: 5px 12px;
  color: #F57F17;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(245, 127, 23, 0.2);
  transition: transform 0.15s;
}

.btn-pill-tip:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   CENTER CURVED TITLE RIBBON (Matches Customer Reference Image)
   ========================================================================== */
.nav-center-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.ribbon-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #B2A4FF 0%, #8C7AE6 45%, #7158E2 100%);
  padding: 6px 28px;
  border-radius: 8px 8px 20px 20px;
  border: 3px solid #FFFFFF;
  box-shadow: 0 6px 18px rgba(113, 88, 226, 0.38);
  transform: perspective(400px) rotateX(4deg);
}

/* 3D Ribbon Tail Left & Right */
.ribbon-banner::before, .ribbon-banner::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 22px;
  height: 28px;
  background: #574B90;
  z-index: -1;
}

.ribbon-banner::before {
  left: -14px;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.ribbon-banner::after {
  right: -14px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.ribbon-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  text-shadow: 
    -2px -2px 0 #574B90,  
     2px -2px 0 #574B90,
    -2px  2px 0 #574B90,
     2px  2px 0 #574B90,
     0 3px 6px rgba(0, 0, 0, 0.3);
}

.ribbon-sparkle {
  font-size: 16px;
  animation: sparkleTwinkle 1.5s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  0% { transform: scale(0.8) rotate(0deg); opacity: 0.7; }
  100% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

/* ==========================================================================
   SCREENS LOGIC
   ========================================================================== */
.game-screen {
  display: none !important;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

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

/* ==========================================================================
   SCREEN 2: MAIN GAME PLAY
   ========================================================================== */
#game-screen {
  position: relative;
  justify-content: space-between;
  align-items: center;
  padding: 2px 14px 10px 14px;
}

/* 1. Question Capsule (Matches Reference Image) */
.question-capsule-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 15;
  margin-top: 2px;
}

.question-pill-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 3.5px solid transparent;
  background-image: 
    linear-gradient(#FFFFFF, #FFFFFF), 
    linear-gradient(90deg, #FF9A9E, #FBC2EB, #A18CD1, #84FAB0, #8FD3F4);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 28px;
  padding: 5px 16px 5px 22px;
  box-shadow: 0 6px 18px rgba(113, 88, 226, 0.22);
}

.question-en {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.2vh, 19px);
  font-weight: 800;
  color: #4A148C;
  letter-spacing: 0.2px;
}

.btn-audio-speak {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFF9C4;
  border: 2px solid #FBC02D;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(245, 127, 23, 0.25);
  transition: transform 0.15s;
}

.btn-audio-speak:hover {
  transform: scale(1.12);
}

.btn-audio-speak:active {
  transform: scale(0.9);
}

.question-vn-hint {
  font-size: 11px;
  font-weight: 600;
  color: #5E35B1;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 2. Magic Triptych Mirror Center Stage */
.mirror-triptych-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Center Oval Mirror Glass Viewport with Pip inside */
.center-mirror-glass {
  position: relative;
  width: clamp(170px, 32vh, 250px);
  height: clamp(180px, 34vh, 265px);
  border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

/* Shutter flash effect */
.shutter-flash-box {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0);
  pointer-events: none;
  z-index: 8;
  transition: background 0.1s;
}

.shutter-flash-box.shutter-burst {
  background: rgba(255, 255, 255, 0.85);
}

/* Pip Avatar inside mirror */
.pip-character-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.pip-stage-img {
  max-width: 95%;
  max-height: 96%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  animation: pipGentleFloat 3s ease-in-out infinite alternate;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pipGentleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.pip-stage-img.celebrate {
  animation: pipVictoryBounce 0.7s ease-in-out infinite alternate !important;
}

@keyframes pipVictoryBounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-12px) scale(1.08); }
}

/* Magic Camera Badge */
.camera-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #FFA800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* 3. Bottom Wooden Shelf: 4 Polaroid Photo Cards */
.cards-shelf-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 4px 10px 10px 10px;
  z-index: 20;
  flex-shrink: 0;
}

.cards-shelf-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 2vw, 24px);
  max-width: 900px;
  width: 100%;
}

/* Individual Polaroid Card */
.polaroid-card {
  flex: 0 1 clamp(100px, 14vw, 155px);
  position: relative;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 6px 6px 8px 6px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s, filter 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 3px solid #FFFDF7;
}

.polaroid-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--card-hover-shadow);
}

.polaroid-card:active {
  transform: scale(0.96);
}

.polaroid-img {
  width: 100%;
  height: auto;
  aspect-ratio: 220 / 280;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Golden Star Glow upon Correct Pick (Matches 'SURPRISED' card in reference image) */
.polaroid-card.selected {
  box-shadow: var(--golden-glow), 0 14px 28px rgba(80, 40, 20, 0.4);
  border-color: #FFE082;
  transform: translateY(-10px) scale(1.06);
  animation: goldenStarPulse 1.2s ease-in-out infinite alternate;
}

@keyframes goldenStarPulse {
  0% { box-shadow: 0 0 0 4px #FFE082, 0 0 20px rgba(255, 215, 64, 0.8); }
  100% { box-shadow: 0 0 0 5px #FFF9C4, 0 0 38px rgba(255, 215, 64, 1); }
}

/* Shake on Wrong Pick */
.polaroid-card.wrong-shake {
  animation: wrongShake 0.45s ease-in-out;
  border-color: #FF5252;
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px) rotate(-2deg); }
  40%, 80% { transform: translateX(8px) rotate(2deg); }
}

/* ==========================================================================
   SCREEN 1: START SCREEN
   ========================================================================== */
#start-screen {
  justify-content: center;
  align-items: center;
  padding: 14px;
}

.start-card {
  background: rgba(255, 255, 255, 0.94);
  border: 4px solid #BA68C8;
  border-radius: 32px;
  box-shadow: 0 16px 44px rgba(113, 88, 226, 0.28);
  width: 100%;
  max-width: 480px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.school-tag .badge-tag {
  background: #EDE7F6;
  color: #5E35B1;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 12px;
  display: inline-block;
}

.start-ribbon-title .title-main {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vh, 34px);
  font-weight: 900;
  color: #4A148C;
}

.start-ribbon-title .title-sub {
  font-size: 15px;
  font-weight: 700;
  color: #D81B60;
  font-style: italic;
}

.hero-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.preview-bubble {
  background: #FFF9C4;
  border: 2px solid #FBC02D;
  border-radius: 18px;
  padding: 6px 16px;
  max-width: 320px;
}

.preview-bubble .bubble-text {
  font-size: 14px;
  font-weight: 800;
  color: #F57F17;
  display: block;
}

.preview-bubble .bubble-sub {
  font-size: 11px;
  font-weight: 600;
  color: #E65100;
}

.preview-pip-avatar {
  width: clamp(110px, 18vh, 150px);
  height: clamp(110px, 18vh, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-pip-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
  animation: pipGentleFloat 2.5s ease-in-out infinite alternate;
}

.btn-play-bounce {
  background: linear-gradient(135deg, #FFB300 0%, #FF9800 50%, #F57C00 100%);
  border: 3.5px solid #FFE082;
  border-radius: 28px;
  padding: 12px 48px;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(245, 124, 0, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-play-bounce:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px rgba(245, 124, 0, 0.52);
}

.btn-play-bounce:active {
  transform: scale(0.96);
}

.btn-play-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.btn-play-sub {
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.95;
}

/* ==========================================================================
   SCREEN 3: VICTORY & PHOTO ALBUM
   ========================================================================== */
#victory-screen {
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.victory-card {
  background: rgba(255, 255, 255, 0.95);
  border: 4px solid #AB47BC;
  border-radius: 32px;
  box-shadow: 0 16px 44px rgba(113, 88, 226, 0.28);
  width: 100%;
  max-width: 580px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.victory-trophy {
  font-size: 42px;
  animation: trophySpin 1.2s ease-in-out infinite alternate;
}

@keyframes trophySpin {
  0% { transform: scale(1) rotate(-5deg); }
  100% { transform: scale(1.15) rotate(5deg); }
}

.victory-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #4A148C;
}

.victory-title-sub {
  font-size: 14px;
  font-weight: 700;
  color: #D81B60;
  font-style: italic;
}

.victory-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #2E7D32;
}

.victory-subtitle-sub {
  font-size: 11px;
  color: #616161;
}

/* Collected Photo Album Grid */
.album-container {
  width: 100%;
  background: #F3E5F5;
  border: 2px dashed #BA68C8;
  border-radius: 20px;
  padding: 10px 12px;
}

.album-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #6A1B9A;
  margin-bottom: 8px;
}

.album-title-vn {
  font-size: 10.5px;
  font-weight: 600;
  color: #8E24AA;
}

.album-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.album-photo-item {
  width: 68px;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.album-photo-item:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 6px 14px rgba(113, 88, 226, 0.3);
}

.album-card-thumb {
  width: 100%;
  aspect-ratio: 220 / 280;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.album-photo-word {
  font-size: 9.5px;
  font-weight: 800;
  color: #4A148C;
  margin-top: 2px;
}

/* ==========================================================================
   PARENT TIP MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49, 27, 146, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 4px solid #BA68C8;
}

.modal-header {
  padding: 14px 18px;
  background: #EDE7F6;
  border-bottom: 2px solid #D1C4E9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title {
  font-size: 15px;
  font-weight: 800;
  color: #4A148C;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #BA68C8;
  color: #7B1FA2;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.5;
  color: #37474F;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-section h4 {
  color: #5E35B1;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.modal-footer {
  padding: 12px 18px;
  background: #FAFAFA;
  border-top: 1px solid #EEEEEE;
  display: flex;
  justify-content: flex-end;
}

.btn-modal-ok {
  background: #7E57C2;
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Phone, Tablet, Laptop)
   ========================================================================== */
@media screen and (max-width: 650px) {
  .tablet-outer-bezel {
    width: 100vw;
    height: 100dvh;
    border: none;
    border-radius: 0;
  }

  .tablet-camera-dot {
    display: none;
  }

  .top-nav {
    height: 50px;
    padding: 4px 6px;
    gap: 4px;
  }

  .nav-left, .nav-right {
    gap: 4px;
  }

  .ribbon-banner {
    padding: 4px 8px;
    white-space: nowrap;
    border-radius: 6px 6px 14px 14px;
  }

  .ribbon-banner::before, .ribbon-banner::after {
    display: none;
  }

  .ribbon-text {
    font-size: 13px;
    white-space: nowrap;
  }

  .btn-circle-hud {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .brand-badge {
    padding: 2px 6px;
    border-radius: 12px;
  }

  .brand-logo {
    height: 20px;
  }

  .progress-star-badge {
    padding: 3px 6px;
    font-size: 10.5px;
    white-space: nowrap;
    gap: 3px;
  }

  .progress-star-badge .star-icon {
    font-size: 12px;
  }

  .btn-pill-tip {
    padding: 3px 6px;
  }

  .btn-pill-tip .tip-label {
    display: none;
  }

  .question-capsule-container {
    margin-top: 2px;
  }

  .question-pill-box {
    padding: 4px 10px;
    border-radius: 20px;
  }

  .question-en {
    font-size: 13px;
  }

  .btn-audio-speak {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .question-vn-hint {
    font-size: 10px;
    padding: 0 4px;
    text-align: center;
  }

  .center-mirror-glass {
    width: clamp(150px, 34vh, 220px);
    height: clamp(160px, 36vh, 230px);
  }

  .cards-shelf-container {
    padding: 2px 4px 8px 4px;
  }

  .cards-shelf-row {
    gap: 6px;
    justify-content: center;
  }

  .polaroid-card {
    flex: 0 1 22.5%;
    min-width: 0;
    padding: 3px 3px 4px 3px;
    border-radius: 8px;
    border-width: 2px;
  }
}

@media screen and (max-height: 600px) {
  .top-nav {
    height: 44px;
  }

  .ribbon-banner {
    padding: 3px 12px;
  }

  .ribbon-text {
    font-size: 15px;
  }

  .center-mirror-glass {
    height: clamp(140px, 30vh, 180px);
    width: clamp(130px, 28vh, 170px);
  }

  .cards-shelf-container {
    padding-bottom: 4px;
  }

  .polaroid-card {
    max-width: 90px;
    padding: 4px;
  }
}
