/* ===================================================
   Thinko Kids Mobile, Tablet & Touch Optimizations
   =================================================== */

html, body {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Prevent accidental text selection inside games and buttons */
.game-container, 
.game-card, 
.game-area, 
.letter-btn, 
.card, 
.btn, 
button, 
.clickable,
.shape,
.facility-item {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Big touch target for kids fingers */
button, .btn, .letter-btn, .choice-btn {
  min-height: 44px;
  touch-action: manipulation;
}

/* Smooth bouncing on touch */
button:active, .btn:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

/* ===================================================
   Responsive Typography (Fluid Headings)
   =================================================== */
@media (max-width: 991px) {
  .display-1 {
    font-size: clamp(2rem, 7vw, 4rem) !important;
    line-height: 1.2 !important;
  }
  .display-2 {
    font-size: clamp(1.8rem, 6vw, 3.2rem) !important;
    line-height: 1.25 !important;
  }
  .display-3 {
    font-size: clamp(1.6rem, 5vw, 2.8rem) !important;
  }
}

/* ===================================================
   Header Carousel & Hero Responsive Adjustments
   =================================================== */
@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    min-height: 480px;
  }
  .header-carousel .owl-carousel-item img {
    min-height: 480px;
    object-fit: cover;
  }
  .header-carousel .container {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .header-carousel p {
    font-size: 0.95rem !important;
    line-height: 1.5;
  }
  .header-carousel .d-flex.gap-3 {
    flex-direction: column;
    gap: 10px !important;
  }
  .header-carousel .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ===================================================
   Navbar Mobile Layout
   =================================================== */
@media (max-width: 991px) {
  .navbar-nav {
    padding: 15px 0;
    text-align: center;
  }
  .navbar-nav .nav-link {
    padding: 10px 0;
    font-size: 16px;
  }
  .navbar .d-flex.align-items-center {
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 15px;
    gap: 8px !important;
  }
}

/* ===================================================
   Games Grid & Cards Responsive Adjustments
   =================================================== */
@media (max-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    padding: 0 12px !important;
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr !important;
  }
  .game-card {
    padding: 16px 14px !important;
  }
}

/* ===================================================
   Interactive Alphabet & Letter Buttons
   =================================================== */
.alphabet-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .letter-btn {
    width: 58px !important;
    height: 58px !important;
    font-size: 22px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 480px) {
  .letter-btn {
    width: 46px !important;
    height: 46px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
  }
}

/* ===================================================
   Fullscreen Floating Toggle Button
   =================================================== */
.thinko-fullscreen-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 99999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}
.thinko-fullscreen-btn:hover {
  background: #FE5D37;
  color: #fff;
  transform: scale(1.1);
}

/* ===================================================
   Floating Install FAB Button Mobile Adjustments
   =================================================== */
@media (max-width: 576px) {
  .thinko-install-fab {
    bottom: 16px !important;
    right: 16px !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
    gap: 6px !important;
  }
  .thinko-install-fab img {
    width: 22px !important;
    height: 22px !important;
  }
}
