@font-face {
      font-family: 'Poppins';
      src: url('/assets/fonts/poppins-regular.woff2') format('woff2');
      font-weight: 400;
      font-display: optional;
    }
    @font-face {
      font-family: 'Poppins';
      src: url('/assets/fonts/poppins-bold.woff2') format('woff2');
      font-weight: 700;
      font-display: optional;
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    html, body {
      height: 100%;
      margin: 0;
    }
    body {
      background: #023777 url('/assets/bg2.webp') no-repeat center/cover;
      font-family: 'Poppins', sans-serif;
      display: flex;
      flex-direction: column;
      color: white;
      overflow: auto;
      min-height: 100dvh;
    }
    .main-box {
      min-height: 100dvh;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding-top: calc(30px + env(safe-area-inset-top));
      padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
    .content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      min-height: calc(100dvh - 90px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
      padding: 20px 0;
      gap: 10px;
    }
    .panda-img {
      width: 250px;
      height: auto;
      object-fit: contain;
    }
    header {
      flex-shrink: 0;
      padding: 10px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: #00285D;
      font-size: 26px;
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 1000;
    }
    .header-left {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: bold;
    }
    .score-level-container {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50px;
      padding: 5px 12px;
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 16px;
    }
    #score, #level {
      color: white;
      font-size: 16px;
    }
    .panda-container {
      position: relative;
      width: 100%;
      max-width: 400px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: -20px;
      max-height: 50vh;
    }
    .operation-on-panel {
      position: absolute;
      top: 64%;
      left: 53%;
      transform: translate(-50%, -50%);
      font-size: 28px;
      color: black;
      font-weight: bold;
      white-space: nowrap;
      text-align: center;
      width: auto;
      min-width: 120px;
      padding: 8px 12px;
      border-radius: 5px;
    }
    .blurred {
      filter: blur(5px);
    }
    .answer-text {
      transition: filter 0.3s ease;
    }
    .answer-text.blurred {
      filter: blur(5px);
    }
    .question-counter-container {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 10px auto;
    }
    .question-counter {
      font-size: 18.5px;
      color: white;
      font-weight: normal;
      text-align: center;
    }
    .stop-button {
      background: #F44336;
      color: white;
      border: none;
      border-radius: 40px;
      width: 80px;
      height: 36px;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      box-shadow: 0 4px 0 #C62828, 0 4px 12px rgba(0, 0, 0, 0.2);
      transition: transform 0.1s ease, box-shadow 0.2s ease;
      margin-bottom: 10px;
    }
    .stop-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 0 #C62828, 0 6px 14px rgba(0, 0, 0, 0.25);
    }
    .stop-button:active {
      transform: translateY(2px);
      box-shadow: 0 2px 0 #C62828, 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    .answers {
      display: flex;
      justify-content: center;
      gap: 30px;
      flex-wrap: wrap;
      width: 100%;
      max-width: 300px;
    }
    .answers button {
      font-size: 26px;
      width: 65px;
      height: 65px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      border-radius: 50%;
      background-color: #ffffff;
      color: #1A2A44;
      font-weight: bold;
      cursor: pointer;
      box-shadow: 0 7px 4px rgba(0, 0, 0, 0.3);
      transition: transform 0.1s ease;
      line-height: 1;
      overflow: hidden;
      white-space: nowrap;
      text-align: center;
      position: relative;
    }
    .answers button:active {
      transform: translateY(2px);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    .answers button.correct {
      background-color: #4CAF50;
      color: white;
    }
    .answers button.correct .answer-text {
      color: white;
    }
    .answers button.wrong {
      background-color: #F44336;
      color: white;
    }
    .answers button.wrong .answer-text {
      color: white;
    }
    .answers button.neutral {
      background-color: #B0BEC5;
      color: white;
    }
    .answers button.neutral .answer-text {
      color: white;
    }
    .timer-footer-container {
      width: 100vw;
      height: 12px;
      position: absolute;
      bottom: 60px;
      left: 0;
      margin: 0;
      padding: 0;
      z-index: 1000;
    }
    .timer-wrapper {
      height: 10px;
      width: 100%;
      background-color: rgba(255, 255, 255, 0.3);
      border: none;
      border-radius: 0;
      overflow: hidden;
      margin: 0;
      padding: 0;
    }
    .timer-bar {
      height: 100%;
      width: 0%;
      background-color: #00AFFF;
      transition: width 10s linear;
    }
    .start-button {
      background: linear-gradient(to bottom, #FFD74A, #FFA000);
      color: #1A2A44;
      border: none;
      border-radius: 40px;
      width: 180px;
      height: 52px;
      font-size: 22px;
      font-weight: bold;
      cursor: pointer;
      box-shadow: 0 4px 0 #C77700, 0 4px 12px rgba(0, 0, 0, 0.2);
      transition: transform 0.1s ease, box-shadow 0.2s ease;
      margin-bottom: 20px;
    }
    .start-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 0 #C77700, 0 6px 14px rgba(0, 0, 0, 0.25);
    }
    .start-button:active {
      transform: translateY(2px);
      box-shadow: 0 2px 0 #C77700, 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    .hidden {
      display: none !important;
    }
    footer {
      flex-shrink: 0;
      background: linear-gradient(to bottom, #00285D, #001D42);
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 5px 0;
      width: 100%;
      position: fixed;
      bottom: 0;
      left: 0;
      z-index: 1000;
      min-height: 60px;
    }
    .footer-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: white;
      cursor: pointer;
      flex: 1;
      padding: 5px 0px 4px 0px;
    }
    .footer-item img {
      width: 24px;
      height: auto;
      margin-bottom: 0px;
    }
    .footer-item span {
      font-size: 14px;
    }
    .yellow {
      color: yellow;
    }
    .options-container {
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      padding: 15px;
      text-align: center;
      display: grid;
      gap: 10px;
      grid-template-columns: 1fr;
    }
    .options-container h2 {
      font-size: 28px;
      margin-bottom: 10px;
      color: white;
    }
    .options-section {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      padding: 10px;
      margin-bottom: 10px;
    }
    .options-section label {
      display: block;
      font-size: 18px;
      margin-bottom: 5px;
      color: white;
    }
    .options-section input[type="number"] {
      width: 80px;
      padding: 4px;
      font-size: 14px;
      border-radius: 4px;
      border: none;
      background: white;
      color: #1A2A44;
    }
    .options-section .checkbox-group {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
      gap: 5px;
      justify-content: center;
    }
    .options-section .checkbox-group label {
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .options-section button {
      background: #F44336;
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 4px;
      font-size: 18px;
      cursor: pointer;
      margin-top: 5px;
      transition: background 0.3s;
    }
    .options-section button:hover {
      background: #d32f2f;
    }
    .stats-container {
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      padding: 15px;
      text-align: center;
      display: grid;
      gap: 10px;
      grid-template-columns: 1fr;
    }
    .stats-container h2 {
      font-size: 28px;
      margin-bottom: 10px;
      color: white;
    }
    .stats-section {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      padding: 10px;
      margin-bottom: 10px;
    }
    .stats-section p {
      font-size: 18px;
      margin: 5px 0;
      color: white;
      font-weight: bold;
    }
    .stats-section ul {
      list-style: none;
      padding: 0;
      font-size: 16px;
      color: white;
      text-align: left;
    }
    .stats-section ul li {
      margin: 5px 0;
    }
    .browser-mode .main-box {
      min-height: 100svh;
    }
    .browser-mode .content {
      min-height: calc(100svh - 90px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
    /* ✅ Animations Panda */
@keyframes panda-happy {
  0%   { transform: scale(1) rotate(0); }
  20%  { transform: scale(1.1) rotate(-5deg); }
  40%  { transform: scale(1.1) rotate(5deg); }
  60%  { transform: scale(1.1) rotate(-5deg); }
  80%  { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes panda-sad {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-10px); }
  40%  { transform: translateX(10px); }
  60%  { transform: translateX(-10px); }
  80%  { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

.panda-happy {
  animation: panda-happy 0.8s ease;
}

.panda-sad {
  animation: panda-sad 0.6s ease;
}
.confetti {
  position: fixed;
  top: 0;
  border-radius: 2px;
  opacity: 0.9;
  transform: rotate(0deg);
  animation: fallConfetti linear forwards;
}

@keyframes fallConfetti {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateX(var(--endX)) translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}


   /* @media (max-height: 600px) or (max-width: 400px) {
      .panda-img {
        width: 200px;
      }
      .operation-on-panel {
        font-size: 24px;
        padding: 6px 10px;
        min-width: 100px;
      }
      .answers button {
        width: 50px;
        height: 50px;
        font-size: 20px;
      }
      .main-box {
        padding-top: calc(20px + env(safe-area-inset-top));
        padding-bottom: calc(50px + env(safe-area-inset-bottom));
      }
      .content {
        min-height: calc(100dvh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
      }
      .browser-mode .content {
        min-height: calc(100svh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
      }
    } */