


      body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
          radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
          radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
          radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
        pointer-events: none;
        z-index: 1;
        animation: backgroundPulse 10s ease-in-out infinite;
      }

      @keyframes backgroundPulse {
        0%, 100% {
          opacity: 1;
        }
        50% {
          opacity: 0.7;
        }
      }

      body::after {
        content: '';
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 30%;
        background: linear-gradient(180deg, transparent 0%, rgba(34, 139, 34, 0.2) 100%);
        pointer-events: none;
        z-index: 1;
      }

      .game-container {
        width: 100%;
        height: 100vh;
        position: relative;
        overflow: hidden;
        z-index: 2;
      }

      .ui-panel {
        position: absolute;
        top: clamp(10px, 3vw, 20px);
        left: clamp(10px, 3vw, 20px);
        background: rgba(255, 255, 255, 0.95);
        padding: clamp(12px, 3vw, 20px);
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 100;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        animation: slideInLeft 0.8s ease-out;
        transition: all 0.3s ease;
      }

      .ui-panel:hover {
        transform: translateY(-2px);
        box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
      }




      .score {
        font-size: clamp(18px, 4vw, 24px);
        font-weight: bold;
        background: linear-gradient(135deg, var(--success-color), var(--accent-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .score::before {
        content: '🎯';
        font-size: 1.2em;
      }

      .level {
        font-size: clamp(16px, 3.5vw, 20px);
        font-weight: 600;
        background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .level::before {
        content: '⭐';
        font-size: 1.1em;
      }

      .question-panel {
        position: absolute;
        top: clamp(10px, 3vw, 20px);
        right: clamp(10px, 3vw, 20px);
        background: rgba(255, 255, 255, 0.95);
        padding: clamp(15px, 4vw, 25px);
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
        max-width: clamp(280px, 40vw, 350px);
        z-index: 100;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        animation: slideInRight 0.8s ease-out;
        transition: all 0.3s ease;
      }

      .question-panel:hover {
        transform: translateY(-2px);
        box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
      }

      .question {
        font-size: clamp(14px, 3.5vw, 18px);
        margin-bottom: 15px;
        color: var(--text-primary);
        font-weight: 600;
        line-height: 1.4;
        position: relative;
        padding-left: 25px;
      }

      .question::before {
        content: '❓';
        position: absolute;
        left: 0;
        top: 0;
        font-size: 1.2em;
        animation: bounce 2s ease-in-out infinite;
      }

      @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
          transform: translateY(0);
        }
        40% {
          transform: translateY(-5px);
        }
        60% {
          transform: translateY(-3px);
        }
      }

      .options {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .option {
        padding: clamp(8px, 2.5vw, 12px);
        background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 255, 255, 0.8));
        border: 2px solid var(--border-color);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: clamp(12px, 3vw, 14px);
        font-weight: 500;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(5px);
      }

      .option::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s;
      }

      .option:hover::before {
        left: 100%;
      }

      .option:hover {
        background: linear-gradient(135deg, var(--cyan-color), var(--primary-color));
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
      }

      .option.selected {
        background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
        animation: selectPulse 0.6s ease-out;
      }

      @keyframes selectPulse {
        0% {
          transform: translateY(-2px) scale(1);
        }
        50% {
          transform: translateY(-2px) scale(1.1);
        }
        100% {
          transform: translateY(-2px) scale(1.02);
        }
      }

      .slingshot {
        position: absolute;
        bottom: clamp(80px, 15vw, 120px);
        left: clamp(60px, 12vw, 100px);
        width: clamp(60px, 12vw, 90px);
        height: clamp(90px, 18vw, 130px);
        z-index: 50;
        animation: fadeInUp 1s ease-out;
      }

      .slingshot-frame {
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #8b4513, #654321, #3e2723);
        clip-path: polygon(20% 100%, 45% 0%, 55% 0%, 80% 100%);
        position: relative;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
        transition: all 0.3s ease;
      }

      .slingshot-frame::before {
        content: '';
        position: absolute;
        top: 5%;
        left: 46%;
        width: 8%;
        height: 15%;
        background: linear-gradient(135deg, #a0522d, #654321);
        border-radius: 50%;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
      }

      .slingshot-frame::after {
        content: '';
        position: absolute;
        top: 15%;
        left: 25%;
        width: 50%;
        height: 3px;
        background: linear-gradient(90deg, transparent, #654321, transparent);
        border-radius: 1px;
      }

      .slingshot:hover .slingshot-frame {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
      }

      .slingshot-band {
        position: absolute;
        top: 5%;
        left: 48%;
        width: 4px;
        height: 60px;
        background: linear-gradient(180deg, #d2691e, #8b4513, #654321);
        transform-origin: top center;
        border-radius: 2px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
      }

      .slingshot-band::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background: #654321;
        border-radius: 50%;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
      }

      .slingshot:active .slingshot-band {
        transform: scaleY(0.9);
        background: linear-gradient(180deg, #cd853f, #a0522d);
      }

      .projectile {
        position: absolute;
        width: clamp(20px, 4vw, 26px);
        height: clamp(20px, 4vw, 26px);
        background: radial-gradient(circle at 35% 35%, #ff8566, #ff6b47, #ff4757, #dc143c);
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4), 
                    inset -2px -2px 6px rgba(0, 0, 0, 0.3),
                    inset 3px 3px 6px rgba(255, 255, 255, 0.4);
        transition: all 0.1s ease;
        border: 2px solid rgba(255, 255, 255, 0.3);
        position: relative;
        animation: projectileIdle 2s ease-in-out infinite;
        cursor: pointer;
      }

      @keyframes projectileIdle {
        0%, 100% {
          transform: translateY(0) scale(1);
          box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4), 
                      inset -2px -2px 6px rgba(0, 0, 0, 0.3),
                      inset 3px 3px 6px rgba(255, 255, 255, 0.4);
        }
        50% {
          transform: translateY(-3px) scale(1.05);
          box-shadow: 0 8px 16px rgba(220, 20, 60, 0.5), 
                      inset -3px -3px 8px rgba(0, 0, 0, 0.4),
                      inset 4px 4px 8px rgba(255, 255, 255, 0.5);
        }
      }

      .projectile::before {
        content: '';
        position: absolute;
        top: 25%;
        left: 30%;
        width: 35%;
        height: 35%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
        border-radius: 50%;
        animation: shine 3s ease-in-out infinite;
      }

      @keyframes shine {
        0%, 100% {
          opacity: 0.7;
          transform: scale(1);
        }
        50% {
          opacity: 1;
          transform: scale(1.1);
        }
      }

      .projectile::after {
        content: '';
        position: absolute;
        bottom: 15%;
        right: 20%;
        width: 20%;
        height: 20%;
        background: radial-gradient(circle, rgba(139, 0, 0, 0.4), transparent);
        border-radius: 50%;
        filter: blur(2px);
      }

      .target {
        position: absolute;
        width: clamp(85px, 15vw, 115px);
        height: clamp(85px, 15vw, 115px);
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        animation: targetFloat 3s ease-in-out infinite;
        z-index: 40;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
      }

      @keyframes targetFloat {
        0%, 100% {
          transform: translateY(0) rotate(0deg);
        }
        33% {
          transform: translateY(-10px) rotate(3deg);
        }
        66% {
          transform: translateY(-5px) rotate(-2deg);
        }
      }

      .target-circle {
        width: 100%;
        height: 100%;
        background: radial-gradient(
          circle at 35% 35%,
          #ff8a80 0%,
          #ff6b6b 20%,
          #ff4757 50%,
          #e53e3e 80%,
          #c53030 100%
        );
        border-radius: 50%;
        border: 5px solid white;
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4), 
                    inset 0 3px 8px rgba(255, 255, 255, 0.3),
                    inset 0 -3px 8px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: clamp(11px, 2.5vw, 14px);
        text-align: center;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(2px);
        transition: all 0.3s ease;
        padding: 8px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
      }

      .target-circle::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient(
          from 0deg,
          transparent,
          rgba(255, 255, 255, 0.15),
          transparent 30%
        );
        animation: targetSpin 4s linear infinite;
        border-radius: 50%;
      }

      @keyframes targetSpin {
        to {
          transform: rotate(360deg);
        }
      }

      .target-circle::after {
        content: '';
        position: absolute;
        top: 15%;
        left: 20%;
        width: 30%;
        height: 30%;
        background: radial-gradient(
          circle,
          rgba(255, 255, 255, 0.4) 0%,
          rgba(255, 255, 255, 0.1) 50%,
          transparent 70%
        );
        border-radius: 50%;
        filter: blur(2px);
      }

      .target:hover {
        z-index: 45;
        filter: drop-shadow(0 8px 20px rgba(255, 71, 87, 0.5));
      }

      .target:hover .target-circle {
        transform: scale(1.15) rotate(5deg);
        box-shadow: 0 10px 30px rgba(255, 71, 87, 0.6), 
                    inset 0 4px 10px rgba(255, 255, 255, 0.4),
                    inset 0 -4px 10px rgba(0, 0, 0, 0.25);
        background: radial-gradient(
          circle at 35% 35%,
          #ffa794 0%,
          #ff8a80 20%,
          #ff5722 50%,
          #e53935 80%,
          #c62828 100%
        );
        border-width: 6px;
      }

      .target.hit {
        animation: targetHit 0.6s ease-out forwards;
      }

      @keyframes targetHit {
        0% {
          transform: scale(1) rotate(0deg);
          opacity: 1;
        }
        25% {
          transform: scale(1.2) rotate(90deg);
          opacity: 0.8;
        }
        50% {
          transform: scale(1.3) rotate(180deg);
          opacity: 0.5;
        }
        100% {
          transform: scale(0) rotate(360deg);
          opacity: 0;
        }
      }

      .clouds {
        position: absolute;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
      }

      .cloud {
        position: absolute;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
        border-radius: 100px;
        opacity: 0.85;
        animation: float 20s infinite linear;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      }

      .cloud:before {
        content: "";
        position: absolute;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
        border-radius: 100px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
      }

      .cloud:after {
        content: "";
        position: absolute;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
        border-radius: 100px;
      }

      .cloud1 {
        width: 100px;
        height: 45px;
        top: 15%;
        left: -120px;
      }

      .cloud1:before {
        width: 55px;
        height: 55px;
        top: -28px;
        left: 12px;
      }

      .cloud1:after {
        width: 45px;
        height: 45px;
        top: -20px;
        right: 15px;
      }

      .cloud2 {
        width: 75px;
        height: 35px;
        top: 35%;
        left: -90px;
        animation-delay: -10s;
      }

      .cloud2:before {
        width: 45px;
        height: 45px;
        top: -22px;
        left: 10px;
      }

      .cloud2:after {
        width: 35px;
        height: 35px;
        top: -15px;
        right: 12px;
      }

      .cloud3 {
        width: 85px;
        height: 40px;
        top: 60%;
        left: -100px;
        animation-delay: -5s;
      }

      .cloud3:before {
        width: 50px;
        height: 50px;
        top: -25px;
        left: 15px;
      }

      .cloud3:after {
        width: 40px;
        height: 40px;
        top: -18px;
        right: 18px;
      }

      @keyframes float {
        from {
          transform: translateX(0);
        }
        to {
          transform: translateX(calc(100vw + 150px));
        }
      }

      /* Mobile Optimizations */
      @media (max-width: 768px) {
        body::after {
          height: 20%;
        }

        .ui-panel {
          top: 10px;
          left: 10px;
          padding: 12px;
          border-radius: 15px;
        }

        .question-panel {
          top: 10px;
          right: 10px;
          padding: 15px;
          max-width: calc(100vw - 140px);
        }

        .slingshot {
          bottom: 100px;
          left: 40px;
          width: 70px;
          height: 100px;
        }

        .fire-button {
          bottom: 20px;
          padding: 12px 25px;
          font-size: 16px;
        }

        .target {
          width: 85px;
          height: 85px;
        }

        .target-circle {
          font-size: 11px;
          padding: 6px;
        }

        .cloud1, .cloud2, .cloud3 {
          opacity: 0.6;
        }
      }

      @media (max-width: 480px) {
        .ui-panel {
          top: 5px;
          left: 5px;
          padding: 10px;
        }

        .question-panel {
          top: 5px;
          right: 5px;
          padding: 12px;
          max-width: calc(100vw - 100px);
        }

        .question {
          font-size: 14px;
          margin-bottom: 12px;
          padding-left: 20px;
        }

        .option {
          padding: 8px;
          font-size: 12px;
        }

        .slingshot {
          bottom: 80px;
          left: 30px;
          width: 60px;
          height: 90px;
        }

        .target {
          width: 75px;
          height: 75px;
        }

        .projectile {
          width: 18px;
          height: 18px;
        }

        .cloud1, .cloud2, .cloud3 {
          display: none;
        }
      }

      @media (min-width: 1200px) {
        .ui-panel {
          padding: 25px;
        }

        .question-panel {
          padding: 30px;
          max-width: 400px;
        }

        .target {
          width: 125px;
          height: 125px;
        }

        .target-circle {
          font-size: 16px;
          padding: 10px;
        }

        .projectile {
          width: 28px;
          height: 28px;
        }

        .slingshot {
          width: 95px;
          height: 140px;
        }
      }

      /* Enhanced animations for better UX */
      @keyframes scoreIncrease {
        0% {
          transform: scale(1);
        }
        50% {
          transform: scale(1.2);
          color: var(--success-color);
        }
        100% {
          transform: scale(1);
        }
      }

      .score-animation {
        animation: scoreIncrease 0.6s ease-out;
      }

      /* Accessibility improvements */
      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }

      /* Focus states for keyboard navigation */
      .option:focus,
      .fire-button:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
      }

      .fire-button {
        position: absolute;
        bottom: clamp(20px, 5vw, 40px);
        left: 50%;
        transform: translateX(-50%);
        padding: clamp(12px, 3vw, 18px) clamp(25px, 6vw, 35px);
        font-size: clamp(16px, 4vw, 22px);
        font-weight: bold;
        background: linear-gradient(135deg, #ff6347, #ff4500, #e53935);
        color: white;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(255, 99, 71, 0.4);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        position: relative;
        overflow: hidden;
        text-transform: uppercase;
        letter-spacing: 1px;
        animation: fireButtonPulse 2s ease-in-out infinite;
      }

      @keyframes fireButtonPulse {
        0%, 100% {
          box-shadow: 0 6px 20px rgba(255, 99, 71, 0.4);
        }
        50% {
          box-shadow: 0 8px 25px rgba(255, 99, 71, 0.6);
        }
      }

      .fire-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s;
      }

      .fire-button:hover::before {
        left: 100%;
      }

      .fire-button:hover {
        transform: translateX(-50%) scale(1.08) translateY(-3px);
        box-shadow: 0 12px 30px rgba(255, 99, 71, 0.6);
        background: linear-gradient(135deg, #ff7961, #ff6347, #f4511e);
      }

      .fire-button:active {
        transform: translateX(-50%) scale(1.02) translateY(-1px);
      }

      .fire-button:disabled {
        background: linear-gradient(135deg, #9ca3af, #6b7280);
        cursor: not-allowed;
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        animation: none;
      }

      .fire-button:disabled::before {
        display: none;
      }

      .feedback {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: clamp(24px, 6vw, 42px);
        font-weight: bold;
        padding: clamp(15px, 4vw, 25px);
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 200;
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        text-align: center;
        min-width: 200px;
      }

      .feedback.correct {
        background: linear-gradient(135deg, var(--success-color), var(--accent-color));
        color: white;
        animation: feedbackCorrect 0.6s ease-out;
      }

      @keyframes feedbackCorrect {
        0% {
          transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
        }
        50% {
          transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
        }
        100% {
          transform: translate(-50%, -50%) scale(1) rotate(0deg);
        }
      }

      .feedback.incorrect {
        background: linear-gradient(135deg, var(--danger-color), #f87171);
        color: white;
        animation: feedbackIncorrect 0.6s ease-out;
      }

      @keyframes feedbackIncorrect {
        0% {
          transform: translate(-50%, -50%) scale(0.5);
        }
        25% {
          transform: translate(-50%, -50%) scale(1.1) rotate(-5deg);
        }
        75% {
          transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
        }
        100% {
          transform: translate(-50%, -50%) scale(1) rotate(0deg);
        }
      }

            .feedback.show {
              opacity: 1;
            }
      
            /* Additional animations */
            @keyframes floatUp {
              0% {
                opacity: 1;
                transform: translateY(0);
              }
              100% {
                opacity: 0;
                transform: translateY(-60px);
              }
            }
      
            @keyframes explode {
              0% {
                transform: translate(0, 0) scale(1);
                opacity: 1;
              }
              100% {
                transform: translate(var(--random-x), var(--random-y)) scale(0);
                opacity: 0;
              }
            }
      
            @keyframes levelUpAnim {
              0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.5);
              }
              50% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.2);
              }
              100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(1);
              }
            }
      
            @keyframes targetShake {
              0%, 100% {
                transform: translateX(0);
              }
              25% {
                transform: translateX(-10px);
              }
              75% {
                transform: translateX(10px);
              }
            }

      /* Accessibility Styles */
      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
      }

      /* Focus visible styles for keyboard navigation */
      button:focus-visible,
      .option:focus-visible {
        outline: 3px solid #ff6347;
        outline-offset: 3px;
        box-shadow: 0 0 0 6px rgba(255, 99, 71, 0.3);
      }

      /* Reduced motion support */
      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }

