/* ==========================================================================
   Fullscreen Toddler Page Selector (Zero Dead Space, Giant Screen-Filling Buttons)
   ========================================================================== */

.page-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #FDE68A 0%, #FCA5A5 45%, #C4B5FD 100%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 20px 28px 24px;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s;
  opacity: 1;
  box-sizing: border-box;
}

.page-picker-overlay.hidden {
  transform: translateY(100vh);
  opacity: 0;
  pointer-events: none;
}

.picker-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.picker-title-badge {
  background: #FFFFFF;
  padding: 16px 40px;
  border-radius: 50px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 38px;
  font-weight: 900;
  color: #0F172A;
}

/* Full-Screen Edge-to-Edge Cards Grid - Fills Entire Screen With Zero Dead Space */
.cards-grid {
  flex: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
  box-sizing: border-box;
  padding-bottom: 8px;
}

.toddler-card {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 36px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16), 0 5px 0 #CBD5E1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s;
  border: 4px solid #FFFFFF;
  box-sizing: border-box;
}

.toddler-card:active {
  transform: scale(0.95) translateY(6px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.card-preview-box {
  width: 100%;
  flex: 1;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  background: #F8FAFC;
}

.card-preview-box svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-label {
  font-size: 30px;
  font-weight: 900;
  color: #1E293B;
  text-align: center;
  margin-top: 10px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
  }
  .card-label {
    font-size: 24px;
  }
  .picker-title-badge {
    font-size: 28px;
    padding: 12px 28px;
  }
}
