/* ============================================
   LOVE QUIZ - STYLE
   ============================================ */

:root {
    --pink-100: #ffe0f0;
    --pink-200: #ffb6d5;
    --pink-300: #ff8cbf;
    --pink-400: #ff5fa8;
    --pink-500: #ff3391;
    --pink-600: #e6007a;
    --purple-400: #c77dff;
    --purple-500: #9b5de5;
    --purple-600: #7b2cbf;
    --purple-700: #5a189a;
    --bg-dark: #0d0015;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glow-pink: 0 0 30px rgba(255, 51, 145, 0.4);
    --glow-purple: 0 0 30px rgba(155, 93, 229, 0.4);
    --correct-color: #00e676;
    --wrong-color: #ff5252;
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Quicksand', sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(155, 93, 229, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 51, 145, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(90, 24, 154, 0.2) 0%, transparent 50%);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* ============ SCREENS ============ */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 10;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* ============ GLASS CARD ============ */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* ============ FLOATING HEARTS BG ============ */
.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    opacity: 0.15;
    animation: floatUp var(--duration) linear infinite;
    animation-delay: var(--delay);
    left: var(--left);
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh) rotate(0deg) scale(var(--scale));
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(var(--scale));
        opacity: 0;
    }
}

/* ============ SPARKLE CONTAINER ============ */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: sparkleAnim 0.8s ease-out forwards;
}

@keyframes sparkleAnim {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

/* ============ INTRO SCREEN ============ */
.intro-card {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.intro-emoji-float {
    position: relative;
    height: 60px;
    margin-bottom: 10px;
}

.float-emoji {
    position: absolute;
    left: 50%;
    font-size: 28px;
    animation: emojiFloat 3s ease-in-out infinite;
    animation-delay: var(--delay);
    transform: translateX(var(--x));
}

@keyframes emojiFloat {
    0%, 100% { transform: translateX(var(--x)) translateY(0); }
    50% { transform: translateX(var(--x)) translateY(-15px); }
}

.intro-title {
    margin-bottom: 16px;
}

.title-line {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.title-highlight {
    display: block;
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--pink-400), var(--purple-400), var(--pink-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255, 51, 145, 0.3));
}

.intro-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.intro-hearts {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.intro-hearts span {
    animation: heartPulse 1.5s ease-in-out infinite;
}

.intro-hearts span:nth-child(2) { animation-delay: 0.3s; }
.intro-hearts span:nth-child(3) { animation-delay: 0.6s; }

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.intro-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-start {
    position: relative;
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 25px rgba(255, 51, 145, 0.4);
}

.btn-start:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(255, 51, 145, 0.5);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.pulse-btn {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 25px rgba(255, 51, 145, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(255, 51, 145, 0.7), 0 0 60px rgba(155, 93, 229, 0.3); }
}

.intro-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 20px;
    font-style: italic;
}

/* ============ QUIZ SCREEN ============ */
.quiz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 50;
    background: rgba(13, 0, 21, 0.6);
    backdrop-filter: blur(10px);
}

.progress-bar-container {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pink-500), var(--purple-400));
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    filter: blur(3px);
}

.progress-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.score-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pink-300);
    min-width: 60px;
}

.score-icon {
    font-size: 1.3rem;
    animation: heartBeat 1s ease-in-out;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

.quiz-card {
    margin-top: 30px;
    transition: transform 0.3s ease;
}

.question-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--purple-400);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #fff, var(--pink-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.option-btn {
    position: relative;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    overflow: hidden;
    transform-origin: center;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 51, 145, 0.1), rgba(155, 93, 229, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-btn:hover {
    border-color: var(--pink-400);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(255, 51, 145, 0.2);
}

.option-btn:hover::before {
    opacity: 1;
}

.option-btn.correct {
    border-color: var(--correct-color) !important;
    background: rgba(0, 230, 118, 0.15) !important;
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.3) !important;
    transform: scale(1.03) !important;
}

.option-btn.wrong {
    border-color: var(--wrong-color) !important;
    background: rgba(255, 82, 82, 0.15) !important;
}

.option-btn:disabled {
    cursor: default;
    pointer-events: none;
}

.option-label {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.option-btn:hover .option-label {
    background: rgba(255, 51, 145, 0.3);
}

.option-btn.correct .option-label {
    background: rgba(0, 230, 118, 0.3);
}

.option-btn.wrong .option-label {
    background: rgba(255, 82, 82, 0.3);
}

/* ============ WRONG ANSWER ANIMATIONS ============ */
.anim-shake {
    animation: wrongShake 0.6s ease;
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-15px) rotate(-2deg); }
    20% { transform: translateX(15px) rotate(2deg); }
    30% { transform: translateX(-12px) rotate(-1deg); }
    40% { transform: translateX(12px) rotate(1deg); }
    50% { transform: translateX(-8px); }
    60% { transform: translateX(8px); }
    70% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.anim-bounce-out {
    animation: wrongBounce 0.8s ease forwards;
}

@keyframes wrongBounce {
    0% { transform: translateY(0); }
    20% { transform: translateY(-30px); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(-15px); }
    80% { transform: translateY(5px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0); }
}

.anim-spin {
    animation: wrongSpin 0.7s ease;
}

@keyframes wrongSpin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(0.9); }
    50% { transform: rotate(180deg) scale(0.85); }
    75% { transform: rotate(270deg) scale(0.9); }
    100% { transform: rotate(360deg) scale(1); }
}

.anim-jelly {
    animation: wrongJelly 0.8s ease;
}

@keyframes wrongJelly {
    0% { transform: scale(1, 1); }
    15% { transform: scale(1.15, 0.85); }
    30% { transform: scale(0.85, 1.15); }
    45% { transform: scale(1.1, 0.9); }
    60% { transform: scale(0.95, 1.05); }
    75% { transform: scale(1.03, 0.97); }
    100% { transform: scale(1, 1); }
}

.anim-flip {
    animation: wrongFlip 0.8s ease;
    perspective: 600px;
}

@keyframes wrongFlip {
    0% { transform: perspective(600px) rotateX(0deg); }
    50% { transform: perspective(600px) rotateX(180deg); }
    100% { transform: perspective(600px) rotateX(360deg); }
}

.anim-slide-left {
    animation: wrongSlideLeft 0.7s ease;
}

@keyframes wrongSlideLeft {
    0% { transform: translateX(0); opacity: 1; }
    30% { transform: translateX(-60px); opacity: 0.5; }
    60% { transform: translateX(30px); opacity: 0.8; }
    100% { transform: translateX(0); opacity: 1; }
}

.anim-rubber {
    animation: wrongRubber 0.8s ease;
}

@keyframes wrongRubber {
    0% { transform: scaleX(1); }
    15% { transform: scaleX(1.25) scaleY(0.75); }
    30% { transform: scaleX(0.75) scaleY(1.25); }
    45% { transform: scaleX(1.15) scaleY(0.85); }
    60% { transform: scaleX(0.95) scaleY(1.05); }
    75% { transform: scaleX(1.05) scaleY(0.95); }
    100% { transform: scaleX(1) scaleY(1); }
}

.anim-swing {
    animation: wrongSwing 0.8s ease;
    transform-origin: top center;
}

@keyframes wrongSwing {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-5deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

.anim-zoom-out {
    animation: wrongZoomOut 0.7s ease;
}

@keyframes wrongZoomOut {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.3); opacity: 0.3; }
    100% { transform: scale(1); opacity: 1; }
}

.anim-skew {
    animation: wrongSkew 0.7s ease;
}

@keyframes wrongSkew {
    0% { transform: skewX(0deg); }
    20% { transform: skewX(-15deg); }
    40% { transform: skewX(10deg); }
    60% { transform: skewX(-5deg); }
    80% { transform: skewX(3deg); }
    100% { transform: skewX(0deg); }
}

.anim-flash-red {
    animation: wrongFlashRed 0.6s ease;
}

@keyframes wrongFlashRed {
    0%, 100% { background-color: rgba(255, 82, 82, 0.15); }
    25% { background-color: rgba(255, 82, 82, 0.5); }
    50% { background-color: rgba(255, 82, 82, 0.15); }
    75% { background-color: rgba(255, 82, 82, 0.4); }
}

.anim-dizzy {
    animation: wrongDizzy 0.9s ease;
}

@keyframes wrongDizzy {
    0% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(15deg) scale(0.95); }
    40% { transform: rotate(-10deg) scale(1.05) translateX(5px); }
    60% { transform: rotate(8deg) scale(0.97) translateX(-5px); }
    80% { transform: rotate(-5deg) scale(1.02); }
    100% { transform: rotate(0deg) scale(1); }
}

.anim-hinge {
    animation: wrongHinge 0.8s ease;
    transform-origin: left top;
}

@keyframes wrongHinge {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(20deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.anim-squeeze {
    animation: wrongSqueeze 0.6s ease;
}

@keyframes wrongSqueeze {
    0% { transform: scale(1); }
    25% { transform: scaleY(0.5) scaleX(1.3); }
    50% { transform: scaleY(1.2) scaleX(0.8); }
    75% { transform: scaleY(0.9) scaleX(1.1); }
    100% { transform: scale(1); }
}

.anim-wave {
    animation: wrongWave 0.8s ease;
}

@keyframes wrongWave {
    0%, 100% { transform: translateY(0); }
    15% { transform: translateY(-10px); }
    30% { transform: translateY(8px); }
    45% { transform: translateY(-6px); }
    60% { transform: translateY(4px); }
    75% { transform: translateY(-2px); }
}

/* ============ CORRECT ANSWER ============ */
.correct-celebration {
    animation: correctPop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes correctPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.08); }
    60% { transform: scale(0.97); }
    100% { transform: scale(1.03); }
}

/* ============ REACTION OVERLAY ============ */
.reaction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 60;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reaction-overlay.show {
    opacity: 1;
}

.reaction-content {
    font-size: 4rem;
    animation: reactionPop 0.8s ease;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

@keyframes reactionPop {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    50% { transform: scale(1.3) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 0; }
}

/* ============ EASTER EGG SCREEN ============ */
.easter-card {
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.easter-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: emojiDance 1s ease-in-out infinite;
}

@keyframes emojiDance {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.1); }
    50% { transform: rotate(-5deg) scale(1.05); }
    75% { transform: rotate(5deg) scale(1.08); }
}

.easter-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.easter-text .highlight {
    color: var(--pink-300);
    font-weight: 700;
}

.btn-next {
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    border: 2px solid var(--pink-400);
    border-radius: 50px;
    background: transparent;
    color: var(--pink-300);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.btn-next:hover {
    background: rgba(255, 51, 145, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--glow-pink);
}

.btn-next.dodging {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dodge-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--pink-300);
    white-space: nowrap;
    animation: fadeInUp 0.4s ease;
}

/* ============ LOADING SCREEN ============ */
.loading-card {
    text-align: center;
}

.loading-heart {
    margin-bottom: 24px;
}

.heart-beat {
    font-size: 4rem;
    display: inline-block;
    animation: loadingHeart 1s ease-in-out infinite;
}

@keyframes loadingHeart {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}

.loading-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--pink-300), var(--purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pink-400);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.loading-facts {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    min-height: 24px;
    animation: fadeInUp 0.5s ease;
}

/* ============ RESULT SCREEN ============ */
.result-card {
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--pink-500) transparent;
}

.result-card::-webkit-scrollbar {
    width: 6px;
}

.result-card::-webkit-scrollbar-thumb {
    background: var(--pink-500);
    border-radius: 3px;
}

.result-header {
    margin-bottom: 30px;
}

.result-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--pink-400);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    background: rgba(255, 51, 145, 0.1);
    animation: resultPop 1s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    flex-direction: column;
}

@keyframes resultPop {
    0% { transform: scale(0) rotate(-180deg); }
    60% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.result-score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pink-300);
    line-height: 1;
}

.result-score-total {
    font-size: 1rem;
    color: var(--text-muted);
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--pink-300), var(--purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.result-analysis {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.analysis-loading {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.result-analysis p {
    margin-bottom: 12px;
}

.result-analysis strong {
    color: var(--pink-300);
}

.btn-restart {
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    border: 2px solid var(--purple-400);
    border-radius: 50px;
    background: transparent;
    color: var(--purple-400);
    cursor: pointer;
    transition: var(--transition);
}

.btn-restart:hover {
    background: rgba(155, 93, 229, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

/* ============ CONFETTI CANVAS ============ */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
}

/* ============ UTILITY ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

.card-enter {
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-exit {
    animation: cardExit 0.4s ease forwards;
}

@keyframes cardExit {
    to { opacity: 0; transform: translateX(-60px) scale(0.95); }
}

/* ============ PARTICLE BURST ============ */
.particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 150;
    animation: particleBurst var(--duration) ease-out forwards;
}

@keyframes particleBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Heart particle */
.heart-particle {
    position: fixed;
    font-size: var(--size);
    pointer-events: none;
    z-index: 150;
    animation: heartRise var(--duration) ease-out forwards;
}

@keyframes heartRise {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(var(--ty)) rotate(var(--rotate)) scale(0);
        opacity: 0;
    }
}

/* ============ WRONG EMOJI RAIN ============ */
.emoji-rain {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 150;
    animation: emojiRain var(--duration) linear forwards;
    left: var(--left);
}

@keyframes emojiRain {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
    .glass-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .title-highlight {
        font-size: 2.2rem;
    }

    .title-line {
        font-size: 1.2rem;
    }

    .question-text {
        font-size: 1.15rem;
    }

    .option-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .result-score-circle {
        width: 100px;
        height: 100px;
    }

    .result-score-number {
        font-size: 2rem;
    }
}

/* ============ SPECIAL EFFECTS ============ */
.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #0077ff, #8b00ff, #ff0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 3s linear infinite;
}

@keyframes rainbowShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.glow-text {
    text-shadow: 0 0 10px var(--pink-400), 0 0 20px var(--pink-500), 0 0 40px var(--pink-600);
}

/* Sticker pop animation for correct answer */
.sticker-pop {
    position: fixed;
    font-size: 5rem;
    z-index: 200;
    pointer-events: none;
    animation: stickerPop 1.2s ease forwards;
}

@keyframes stickerPop {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; }
    30% { transform: scale(1.4) rotate(10deg); opacity: 1; }
    50% { transform: scale(1) rotate(-5deg); opacity: 1; }
    70% { transform: scale(1.1) rotate(3deg); opacity: 1; }
    100% { transform: scale(0.8) rotate(0deg); opacity: 0; }
}

/* Sad face rain for wrong */
.sad-rain {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 150;
    left: var(--x);
    top: -30px;
    animation: sadFall var(--dur) linear forwards;
    animation-delay: var(--delay);
}

@keyframes sadFall {
    0% { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Screen shake */
.screen-shake {
    animation: screenShake 0.4s ease;
}

@keyframes screenShake {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-4px, 2px); }
    40% { transform: translate(4px, -2px); }
    60% { transform: translate(-3px, 1px); }
    80% { transform: translate(3px, -1px); }
}

/* ============ MINI GAME STYLES ============ */
.mini-game-area {
    margin: 20px 0;
    animation: fadeInUp 0.5s ease;
}

.mg-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pink-300);
    margin-bottom: 12px;
    text-align: center;
}

.mg-counter {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

.mg-counter span {
    color: var(--pink-300);
    font-size: 1.1rem;
    font-weight: 700;
}

.mg-success {
    color: var(--correct-color) !important;
    font-size: 1.3rem !important;
    animation: correctPop 0.5s ease;
    padding: 20px 0;
}

/* --- Heart Clicker --- */
.mg-heart-btn {
    font-size: 4rem;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.15s ease;
    user-select: none;
    filter: drop-shadow(0 0 15px rgba(255, 51, 145, 0.5));
    margin: 10px 0;
}

.mg-heart-btn:hover {
    filter: drop-shadow(0 0 25px rgba(255, 51, 145, 0.8));
}

.mg-heart-btn:active {
    transform: scale(0.9) !important;
}

.mg-progress-bar {
    width: 80%;
    max-width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 12px auto 0;
    overflow: hidden;
}

.mg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink-500), var(--purple-400));
    border-radius: 8px;
    transition: width 0.2s ease;
    width: 0%;
}

/* --- Arrow Shooter --- */
.mg-arrow-field {
    position: relative;
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: crosshair;
    margin-top: 8px;
}

.mg-target-heart {
    position: absolute;
    font-size: 2.5rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    user-select: none;
    filter: drop-shadow(0 0 10px rgba(255, 51, 145, 0.6));
    cursor: pointer;
    transform-origin: center;
}

.mg-arrow {
    position: absolute;
    font-size: 1.5rem;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: arrowHit 0.5s ease forwards;
}

@keyframes arrowHit {
    0% { transform: translate(-50%, -50%) scale(1.5) rotate(-45deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.5) rotate(0deg); opacity: 0; }
}

.mg-miss {
    position: absolute;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wrong-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: missFloat 0.8s ease forwards;
}

@keyframes missFloat {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -100%) scale(0.7); }
}

/* --- Dice Roll --- */
.mg-dice {
    font-size: 5rem;
    display: inline-block;
    transition: transform 0.1s ease;
    user-select: none;
    filter: drop-shadow(0 0 15px rgba(155, 93, 229, 0.5));
    margin: 10px 0;
}

.mg-dice-result {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 12px 0;
    min-height: 40px;
}

.mg-roll-btn {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    border: 2px solid var(--purple-400);
    border-radius: 50px;
    background: rgba(155, 93, 229, 0.15);
    color: var(--purple-400);
    cursor: pointer;
    transition: var(--transition);
}

.mg-roll-btn:hover:not(:disabled) {
    background: rgba(155, 93, 229, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.mg-roll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Catch Hearts --- */
.mg-catch-field {
    position: relative;
    width: 100%;
    height: 220px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-top: 8px;
}

.mg-falling-heart {
    position: absolute;
    font-size: 2rem;
    top: -30px;
    cursor: pointer;
    user-select: none;
    animation: heartFall var(--anim-dur, 3s) linear forwards;
    animation-duration: inherit;
    z-index: 5;
    filter: drop-shadow(0 0 8px rgba(255, 51, 145, 0.4));
    transition: transform 0.1s, opacity 0.2s;
}

.mg-falling-heart:hover {
    transform: scale(1.3);
}

@keyframes heartFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    80% { opacity: 1; }
    100% {
        transform: translateY(250px) rotate(360deg);
        opacity: 0;
    }
}

/* --- Pop Bubbles --- */
.mg-bubble-field {
    position: relative;
    width: 100%;
    height: 220px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-top: 8px;
}

.mg-bubble {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    bottom: -50px;
    animation: bubbleRise var(--anim-dur, 4s) ease-in forwards;
    animation-duration: inherit;
    backdrop-filter: blur(5px);
    z-index: 5;
    transition: transform 0.1s, opacity 0.15s;
}

.mg-bubble:hover {
    transform: scale(1.2);
    filter: brightness(1.3);
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        transform: translateY(-10px) scale(1);
        opacity: 1;
    }
    90% { opacity: 1; }
    100% {
        transform: translateY(-280px) scale(0.8);
        opacity: 0;
    }
}

/* Easter card scroll for mini games */
.easter-card {
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--pink-500) transparent;
}

.easter-card::-webkit-scrollbar {
    width: 4px;
}

.easter-card::-webkit-scrollbar-thumb {
    background: var(--pink-500);
    border-radius: 2px;
}
