@font-face {
    font-family: 'Poppins';
    src: url("Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #fce4ec;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.content-left {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.title-main {
    font-size: 92px;
    line-height: 0.95;
    font-weight: 900;
    color: #3b2a54;
    text-shadow: 4px 4px 0px #ffffff;
}

.title-quiz {
    font-size: 105px;
    font-weight: 900;
    color: #ff6584;
    text-shadow: 4px 4px 0px #ffffff;
    display: inline-block;
}

.cursor-icon {
    position: absolute;
    right: -110px;
    bottom: -290px;
    width: 75px;
    height: auto;
    z-index: 11;
    animation: cursorClick 2.5s ease-in-out infinite;
}

.subtitle {
    font-size: 24px;
    line-height: 1.4;
    color: #4a3e56;
    font-weight: 600;
    margin-bottom: 40px;
    max-width: 480px;
}

a {
    text-decoration: none;
    display: inline-block;
}

.start-btn {
    background: linear-gradient(180deg, #ff758c 0%, #ff5277 100%);
    color: white;
    border: 4px solid #ffffff;
    padding: 20px 65px;
    font-size: 30px;
    font-weight: bold;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 82, 119, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.start-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 35px rgba(255, 82, 119, 0.6);
}

.play-arrow {
    font-size: 22px;
}

.image-card {
    position: absolute;
    top: 5%;
    left: 55%;
    width: 190px;
    height: auto;
    z-index: 5;
    animation: rotateCardOne 2.8s ease-in-out infinite alternate;
}

.color-palette {
    position: absolute;
    top: 3%;
    right: 2%;
    width: 160px;
    height: auto;
    z-index: 5;
    animation: rotateCardTwo 3.2s ease-in-out infinite alternate;
}

.cat-wrapper {
    position: absolute;
    right: 4%;
    bottom: 2%;
    z-index: 8;
    width: 540px;
}

.cat-character {
    width: 100%;
    height: auto;
    display: block;
}

.cat-marks {
    position: absolute;
    top: -40px;
    left: 130px;
    width: 65px;
    height: auto;
    z-index: 9;
    animation: popMarksInPlace 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes rotateCardOne {
    0% {
        transform: scale(1) rotate(-4deg);
    }
    100% {
        transform: scale(1.12) rotate(6deg);
    }
}

@keyframes rotateCardTwo {
    0% {
        transform: scale(1) rotate(5deg);
    }
    100% {
        transform: scale(1.14) rotate(-6deg);
    }
}

@keyframes popMarksInPlace {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.35) rotate(8deg);
        opacity: 0.75;
    }
}

@keyframes cursorClick {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.18) rotate(-10deg);
    }
}



.menu-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 850px;
    width: 90%;
}

.top-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.badge {
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #ffccd8;
    border-radius: 40px;
    padding: 12px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(255, 180, 200, 0.35);
    min-width: 110px;
    justify-content: center;
}

.badge-icon,
.star-icon,
.trophy-icon {
    width: 25px !important;
    height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.badge2 {
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #ffccd8;
    border-radius: 40px;
    padding: 12px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(255, 180, 200, 0.35);
    min-width: 210px;
    justify-content: center;
}

.badge-icon2,
.star-icon2,
.trophy-icon2 {
    width: 75px !important;
    height: 75px !important;
    max-width: 75px !important;
    max-height: 75px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.star-icon {
    animation: starPulse 2s ease-in-out infinite;
}

.trophy-icon {
    animation: trophyBounce 2.5s ease-in-out infinite;
}

.badge-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-label {
    font-size: 18px;
    font-weight: 800;
    color: #4a3e56;
}

.badge-value {
    font-size: 40px;
    font-weight: 900;
    color: #ff5277;
    line-height: 1;
}

.level-switcher {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.lvl-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #ffccd8;
    color: #7a6e85;
    padding: 14px 36px;
    border-radius: 25px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px rgba(255, 180, 200, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lvl-btn:hover:not(.locked) {
    transform: translateY(-3px);
    border-color: #ff758c;
    color: #ff758c;
}

.lvl-btn2 {
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #ffccd8;
    color: #7a6e85;
    padding: 14px 36px;
    border-radius: 25px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px rgba(255, 180, 200, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lvl-btn2:hover:not(.locked) {
    transform: translateY(-3px);
    border-color: #ff758c;
    color: #ff758c;
}

.lvl-btn2.active {
    /* background: #ff5277; */
    color: #ff5277;
    border-color: #ff5277;
    box-shadow: 0 8px 22px rgba(255, 82, 119, 0.45);
}

.lvl-btn.active {
    /* background: #ff5277; */
    color: #ff5277;
    border-color: #ff5277;
    box-shadow: 0 8px 22px rgba(255, 82, 119, 0.45);
}

.lvl-btn.locked {
    opacity: 0.7;
    cursor: not-allowed;
    background: #f7efff;
}

.play-btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.play-quiz-btn {
    background: linear-gradient(180deg, #ff6b8b 0%, #ff3b68 100%);
    color: #ffffff;
    border: 5px solid #ffffff;
    padding: 16px 60px;
    font-size: 34px;
    font-weight: 900;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255, 59, 104, 0.45);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.play-quiz-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 59, 104, 0.55);
}

.play-icon {
    font-size: 26px;
}

.subtext {
    font-size: 19px;
    font-weight: 700;
    color: #4a3e56;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.howto-cards-container {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.howto-card {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #ffe3ec;
    border-radius: 28px;
    padding: 20px 22px;
    width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 22px rgba(255, 190, 210, 0.3);
    transition: transform 0.2s;
}

.howto-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.eye-circle {
    background: #eef2ff;
}

.cursor-circle {
    background: #ffeef2;
}

.trophy-circle {
    background: #fff8eb;
}

.howto-icon {
    width: 32px;
    height: auto;
}

.card-title {
    font-size: 20px;
    font-weight: 900;
    color: #2c1e40;
    margin-bottom: 5px;
}

.card-desc {
    font-size: 13.5px;
    font-weight: 600;
    color: #7c6e88;
    text-align: center;
    line-height: 1.3;
}

.cat-side-wrapper {
    position: absolute;
    right: 2%;
    bottom: 2%;
    z-index: 8;
    width: 420px;
    pointer-events: none;
}

.cat-side-img {
    width: 100%;
    height: auto;
    display: block;
    animation: catBreathing 3s ease-in-out infinite alternate;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.15) rotate(10deg);
    }
}

@keyframes trophyBounce {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.1) translateY(-4px);
    }
}

@keyframes catBreathing {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.03);
    }
}



.quiz-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.quiz-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 4px solid #ffffff;
  border-radius: 35px;
  padding: 25px 30px 30px;
  width: 90%;
  max-width: 850px;
  box-shadow: 0 20px 40px rgba(147, 112, 219, 0.25);
  position: relative;
  z-index: 10;
  margin: auto;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.badge {
  background: #ffe3ec;
  border: 2px solid #ffb3c6;
  color: #5c3d75;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.stats-group {
  display: flex;
  gap: 10px;
}

.progress-wrapper {
  flex: 1;
  max-width: 260px;
  margin: 0 15px;
  background: #f0e6ff;
  height: 18px;
  border-radius: 12px;
  border: 2px solid #ffffff;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff758c 0%, #ff7eb3 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.question-box {
  background: #ffffff;
  border-radius: 25px;
  border: 3px solid #e2d4f7;
  padding: 25px;
  margin-bottom: 20px;
}

.question-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.q-badge {
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.question-title {
  color: #3a2e56;
  font-size: 1.35rem;
  font-weight: 600;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.option-card {
  border: 3px solid #f0e6ff;
  border-radius: 20px;
  padding: 10px;
  background: #faf8ff;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.option-card img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

.option-card:hover {
  transform: translateY(-4px);
  border-color: #c8b6ff;
}

.option-card.selected {
  border-color: #ff758c;
  background: #fff5f8;
  box-shadow: 0 0 0 4px rgba(255, 117, 140, 0.2);
}

.option-card.disabled {
  pointer-events: none;
}

.explanation-bar {
  border-radius: 20px;
  padding: 15px 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.explanation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.status-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.explanation-bar.hidden {
  display: none;
}

.explanation-bar.correct {
  background: #e8f5e9;
  border: 2px solid #81c784;
  color: #1b5e20;
}

.explanation-bar.wrong {
  background: #ffebee;
  border: 2px solid #e57373;
  color: #b71c1c;
}

.explanation-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.explanation-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.action-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.submit-btn {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  color: white;
  border: 3px solid #ffffff;
  padding: 12px 45px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 117, 140, 0.4);
  transition: all 0.2s ease;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.mascot-container {
  position: absolute;
  right: -130px;
  bottom: -20px;
  width: 180px;
  height: 180px;
  z-index: 20;
}

.mascot-container img {
  width: 250%;
  height: 250%;
  object-fit: contain;
  margin-top: -230px;
}

.mascot-container.bounce {
  animation: bounceAnim 0.5s ease;
}

@keyframes bounceAnim {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) translateY(-15px); }
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  display: none;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 35px;
  border-radius: 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  border: 4px solid #ffb3c6;
}

.modal-title {
  color: #3a2e56;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.modal-score {
  font-size: 2.5rem;
  color: #ff758c;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-msg {
  color: #5c3d75;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 500;
}

@media (max-width: 650px) {
  .options-grid { grid-template-columns: 1fr; }
  .mascot-container { right: -10px; bottom: -70px; }
  .top-header { flex-wrap: wrap; gap: 10px; }
}

.modal-content {
  background: white;
  padding: 40px 50px;
  border-radius: 35px;
  text-align: center;
  max-width: 650px;
  width: 90%;
  border: 4px solid #ffb3c6;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.victory-card {
      background: linear-gradient(135deg, #ffffff 0%, #fff0f5 100%);
      border: 5px solid #ffb3c6;
      box-shadow: 0 25px 50px rgba(255, 117, 140, 0.35);
}

.trophy-cat-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 10px auto;
  animation: victoryBounce 1s infinite alternate ease-in-out;
}

.hidden {
  display: none !important;
}

.modal-content.victory-card {
  max-width: 700px;
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grand-total-box {
  width: 100%;
  max-width: 500px;
  background: #ffe3ec;
  border: 3px dashed #ff758c;
  border-radius: 25px;
  padding: 15px 30px;
  margin: 15px auto;
}

.grand-total-title {
      font-size: 1rem;
      color: #5c3d75;
      font-weight: 600;
}

.grand-total-score {
      font-size: 2.2rem;
      color: #ff758c;
      font-weight: 700;
    }
    @keyframes victoryBounce {
      0% { transform: translateY(0) scale(1); }
      100% { transform: translateY(-10px) scale(1.05); }
    }


@media (min-width: 769px) and (max-width: 1024px) {
  .content-left {
    left: 6%;
    max-width: 440px;
  }

  .title-main {
    font-size: 72px;
  }

  .title-quiz {
    font-size: 82px;
  }

  .cursor-icon {
    right: -60px;
    bottom: -220px;
    width: 60px;
  }

  .cat-wrapper {
    width: 380px;
    right: 2%;
  }

  .image-card {
    left: 52%;
    width: 150px;
  }

  .color-palette {
    width: 130px;
  }

  .cat-side-wrapper {
    width: 280px;
    right: 1%;
  }

  .quiz-card {
    width: 88%;
    max-width: 720px;
    padding: 22px 25px;
  }

  .options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .mascot-container {
    position: absolute;
    right: -65px;
    bottom: -25px;
    width: 160px;
    height: 160px;
  }

  .mascot-container img {
    width: 210%;
    height: 210%;
    margin-top: -170px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
  }

  .splash-container,
  .menu-container {
    height: auto;
    min-height: 100vh;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .content-left {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    align-items: center;
    text-align: center;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .title-main {
    font-size: 54px;
  }

  .title-quiz {
    font-size: 64px;
  }

  .cursor-icon {
    display: none;
  }

  .subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .start-btn {
    padding: 15px 45px;
    font-size: 24px;
  }

  .image-card {
    width: 100px;
    top: 2%;
    left: 5%;
  }

  .color-palette {
    width: 95px;
    top: 2%;
    right: 5%;
  }

  .cat-wrapper {
    position: relative;
    right: auto;
    bottom: auto;
    width: 260px;
    margin-top: 15px;
  }

  .cat-marks {
    width: 45px;
    top: -25px;
    left: 65px;
  }

  .top-row {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
    margin-bottom: 20px;
  }

  .badge2 {
    width: 90%;
    max-width: 300px;
    padding: 10px 25px;
  }

  .badge-icon2,
  .star-icon2,
  .trophy-icon2 {
    width: 55px !important;
    height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
  }

  .badge-value {
    font-size: 32px;
  }

  .level-switcher {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .lvl-btn,
  .lvl-btn2 {
    padding: 10px 20px;
    font-size: 16px;
  }

  .play-quiz-btn {
    padding: 14px 40px;
    font-size: 24px;
  }

  .subtext {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .howto-cards-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .howto-card {
    width: 90%;
    max-width: 320px;
    padding: 16px 20px;
  }

  .cat-side-wrapper {
    position: relative;
    right: auto;
    bottom: auto;
    width: 220px;
    margin-top: 20px;
  }

  .quiz-card {
    width: 95%;
    padding: 18px 15px 25px;
    margin: 20px auto;
    border-radius: 25px;
  }

  .top-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
  }

  .progress-wrapper {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    margin: 5px 0 0;
  }

  .question-box {
    padding: 16px;
    border-radius: 20px;
  }

  .question-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .q-badge {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .question-title {
    font-size: 1.1rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .option-card {
    min-height: 140px;
    padding: 8px;
  }

  .action-footer {
    flex-direction: column;
    gap: 12px;
  }

  .submit-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 30px;
    font-size: 1.1rem;
  }

  .mascot-container {
    position: relative;
    right: auto;
    bottom: auto;
    width: 200px;
    height: 200px;
    margin: 5px auto 0;
  }

  .mascot-container img {
    width: 100%;
    height: 100%;
    margin-top: 0;
  }

  .modal-content,
  .modal-content.victory-card {
    padding: 25px 20px;
    width: 92%;
    border-radius: 25px;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-score {
    font-size: 2rem;
  }

  .trophy-cat-img {
    width: 110px;
    height: 110px;
  }

  .grand-total-box {
    padding: 12px 15px;
  }

  .grand-total-score {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .title-main {
    font-size: 42px;
  }

  .title-quiz {
    font-size: 50px;
  }

  .badge {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .question-title {
    font-size: 1rem;
  }

  .play-quiz-btn {
    font-size: 20px;
    padding: 12px 32px;
  }

  .mascot-container {
    width: 175px;
    height: 175px;
  }
}