/**
 * Mobile Responsive CSS for Game Pages
 * Bố cục mobile chuẩn cho Ai Là Triệu Phú
 */

/* ============================================
   GAME TIMER - FIXED POSITION (BOTTOM RIGHT)
   ============================================ */
.game-timer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 80px;
  height: 80px;
}

.timer-circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #1c3bac;
  border: 3px solid #c3790c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.timer-text {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.timer-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-circle {
  fill: none;
  stroke: #ffde20;
  stroke-width: 3;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-ring-circle.warning {
  stroke: #ffc107;
}

.timer-ring-circle.danger {
  stroke: #dc3545;
  animation: blink 0.5s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============================================
   MOBILE LAYOUT (< 768px)
   ============================================ */
@media screen and (max-width: 768px) {
  
  /* Timer ở giữa bên phải cho mobile */
  .game-timer {
    position: fixed;
    top: 45%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    width: 60px;
    height: 60px;
  }
  
  .timer-circle {
    width: 60px;
    height: 60px;
  }
  
  .timer-text {
    font-size: 20px;
  }
  
  /* ============================================
     HEADER / MENU
     ============================================ */
  .lContainer.play .menu {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .lContainer.play .menu .btn {
    padding: 5px 14px;
    font-size: 10px;
    min-width: auto;
    border-radius: 15px;
  }
  
  .lContainer.play .menu .btn i {
    font-size: 11px;
  }
  
  .lContainer.play .menu .btn .btn-text {
    display: none; /* Hide text on mobile, show only icons */
  }
  
  /* Make balance button slightly larger on mobile */
  .lContainer.play .menu__center .btn {
    padding: 7px 14px;
    font-size: 11px;
    border-radius: 15px;
  }
  
  .lContainer.play .menu__center .btn .btn-text {
    display: inline;
  }
  
  /* ============================================
     LOGO - KEEP ORIGINAL SIZE
     ============================================ */
  .lContainer.play .content .logo {
    margin-bottom: 1rem;
  }
  
  /* ============================================
     QUESTION
     ============================================ */
  .lContainer.play .content .group .question {
    font-size: 16px !important;
    padding: 12px 16px !important;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  /* ============================================
     ANSWER OPTIONS - VERTICAL LAYOUT
     ============================================ */
  .lContainer.play .content .group .answer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .lContainer.play .content .group .answer .option {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    border-radius: 999px !important;
    margin-right: 0 !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  
  .lContainer.play .content .group .answer .option .text-yellow {
    margin-right: 8px;
    font-weight: bold;
    font-size: 16px;
  }
  
  /* ============================================
     MONEY BOARD (PRIZE BOARD) - SAME AS DESKTOP
     ============================================ */
  
  .lContainer.play .money .moneyList {
    padding: 0.5rem;
  }
  
  .lContainer.play .money .moneyList__item {
    padding: 6px 10px;
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  .lContainer.play .money .moneyList__item .number {
    font-size: 12px;
  }
  
  /* ============================================
     MODALS
     ============================================ */
  .lContainer.play .modal,
  .lContainer.play .modal1,
  .lContainer.play .modal2,
  .lContainer.play .modal4 {
    padding: 1rem;
  }
  
  .lContainer.play .modal .value,
  .lContainer.play .modal1 .value,
  .lContainer.play .modal2 .value,
  .lContainer.play .modal4 .value {
    width: 95%;
    padding: 1.5rem 1rem;
  }
  
  .lContainer.play .modal .heading,
  .lContainer.play .modal1 .heading,
  .lContainer.play .modal2 .heading {
    font-size: 20px;
  }
  
  .lContainer.play .modal .title {
    font-size: 14px;
  }
  
  /* ============================================
     LIFELINE BUTTONS
     ============================================ */
  .lContainer.play .menu__right .btn {
    flex: 1 1 auto;
    min-width: 60px;
    max-width: 80px;
  }
  
  /* ============================================
     TIME COUNTER
     ============================================ */
  .lContainer.play .content .group .fix .time {
    font-size: 18px;
    padding: 8px 16px;
  }
  
  /* ============================================
     ANIMATIONS - DISABLE ON MOBILE FOR PERFORMANCE
     ============================================ */
  .lContainer.play .wow {
    animation: none !important;
    visibility: visible !important;
  }
  
  /* ============================================
     TOAST NOTIFICATIONS
     ============================================ */
  .toast-notification {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    width: calc(100% - 20px);
  }
  
}

/* ============================================
   SMALL MOBILE (< 480px)
   ============================================ */
@media screen and (max-width: 480px) {
  
  .lContainer.play .menu .btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .lContainer.play .content .group .question {
    font-size: 15px !important;
    padding: 10px 14px !important;
  }
  
  .lContainer.play .content .group .answer .option {
    padding: 12px 14px !important;
    font-size: 14px !important;
    border-radius: 999px !important;
  }
  
}

/* ============================================
   LANDSCAPE MODE
   ============================================ */
@media screen and (max-width: 768px) and (orientation: landscape) {
  
  .lContainer.play .content .group .answer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .lContainer.play .content .group .answer .option {
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
  }
  
}

