body {
    font-family: 'Luckiest Guy', cursive; 
    background-color: #FDECF0;
    color: #3E2723;
    transition: background-color 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
    line-height: 1.6; 
    letter-spacing: 0.5px;
    overflow-x: hidden;
}

.game-container {
    background-color: #F8BBD0;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25), 0 0 0 10px #E91E63;
    max-width: 900px; 
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease-out; 
}

.game-header {
    background: linear-gradient(135deg, #FFF176, #FFEB3B);
    border-bottom: 5px solid #FBC02D;
    color: #3E2723;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    padding: 1rem 1.5rem;
}

.game-title {
    font-family: 'Press Start 2P', cursive; 
    font-size: clamp(1.4rem, 4.5vw, 2rem); 
    margin-bottom: 0;
    color: #4A3F35;
}

/* --- Styles for start.html --- */
.landing-page-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #FDECF0; /* Consistent light pink background */
}

.landing-container {
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent white overlay */
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 8px 32px 0 rgba(104, 29, 66, 0.37); /* Softer shadow with pinkish hue */
    max-width: 700px;
    width: 100%;
}

.landing-hero {
    position: relative; /* For overlaying title if needed */
}

.landing-image {
    border-radius: 15px;
    border: 5px solid #FFF176; /* Yellow border from moodboard */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 350px; /* Control image height */
    object-fit: cover; /* Ensure image covers the area well */
    width: 100%;
}

.landing-title {
    font-family: 'Press Start 2P', cursive;
    color: #D81B60; /* Deep Pink/Magenta */
    margin-top: 20px; /* Space above title if image is separate */
    text-shadow: 2px 2px 0px #FFF176, 4px 4px 0px #FBC02D; /* Yellow/Orange shadow */
    font-size: clamp(2rem, 6vw, 3.5rem); /* Responsive title */
}

.landing-description {
    font-family: 'Luckiest Guy', cursive;
    color: #4A3F35; /* Dark brown/grey */
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 30px;
}

.landing-points {
    font-family: 'Luckiest Guy', cursive;
    color: #4A3F35; /* Dark brown/grey */
    font-size: 0.5rem;
    margin-bottom: 5px;
}

.btn-start-game {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(145deg, #FFEB3B, #FBC02D); /* Bright Yellow gradient */
    color: #D81B60; /* Deep Pink text */
    padding: 18px 35px;
    border-radius: 50px;
    border: 4px solid #D81B60; /* Deep Pink border */
    text-decoration: none;
    font-size: clamp(1rem, 2.8vw, 1.5rem);
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Elastic transition */
    display: inline-block;
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.4); /* Pink shadow */
    transform-origin: center center;
}

.btn-start-game:hover {
    background: linear-gradient(145deg, #FFF176, #FFEB3B); /* Slightly lighter yellow */
    color: #AD1457; /* Darker Pink text on hover */
    transform: scale(1.1) rotate(-3deg); /* Scale and slight rotation */
    box-shadow: 0 10px 25px rgba(216, 27, 96, 0.6); /* Enhanced shadow */
    border-color: #AD1457;
}

.btn-start-game:active {
    background: linear-gradient(145deg, #FBC02D, #F9A825); /* Darker yellow when pressed */
    transform: scale(0.95) rotate(2deg); /* Scale down and rotate other way */
    box-shadow: 0 2px 10px rgba(216, 27, 96, 0.5), inset 0 2px 5px rgba(0,0,0,0.2); /* Inset shadow */
}

.landing-disclaimer {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    color: #6D4C41; /* Muted brown */
    margin-top: 40px;
}


/* --- Styles for matchgame.html (continued) --- */

/* Screenshot area */
.game-screenshot-container {
    background-color: #4A3F35;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    min-height: 200px; 
    max-width: 1024px; /* Cap maximum width */
    width: 100%; /* Responsive width up to max */
    margin: 0 auto; /* Center the container */
    overflow: hidden;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.game-screenshot {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    border-radius: 8px;
    border: 3px solid #FBC02D;
    object-fit: contain; /* Prevent cropping while fitting container */
}

/* Audio Control Button Styling */
.audio-controls {
    margin-top: 10px; 
}
.btn-audio-control {
    background-color: #FFC107; /* Yellow from moodboard */
    color: #4A3F35; /* Dark text */
    border: 3px solid #F57F17; /* Darker Orange/Yellow border */
    width: 50px;
    height: 50px;
    border-radius: 50%; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}
.btn-audio-control:hover {
    background-color: #FFD54F; 
    transform: scale(1.05);
}
.btn-audio-control:active {
    transform: scale(0.95); 
}
.btn-audio-control.playing { 
    background-color: #66BB6A; /* Green from moodboard (character color) */
    border-color: #388E3C; /* Darker green */
    color: white;
}
.btn-audio-control.playing:hover {
    background-color: #81C784;
}
.btn-audio-control svg {
    width: 24px;
    height: 24px;
}

.seek-bar-container {
    padding: 10px 0;
}

.seek-bar {
    height: 8px;
    background: linear-gradient(to right, #007bff 0%, #007bff var(--progress, 0%), #e9ecef var(--progress, 0%), #e9ecef 100%);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.seek-bar::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.seek-bar::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.audio-controls .btn {
    font-family: 'Luckiest Guy', cursive;
    transition: all 0.2s ease;
}

.audio-controls .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.audio-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Sentence area styling */
.sentence-container {
    background-color: rgba(255, 235, 59, 0.15); /* Very light yellow, semi-transparent */
    border: 3px dashed #FBC02D; /* Dashed yellow border */
    backdrop-filter: blur(2px); 
    padding: 10px; 
    border-radius: 12px;
}

.dialog-line {
    text-align: left;
    padding: 8px 12px; 
    margin-bottom: 8px; 
    border-radius: 8px; 
    line-height: 1.7; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.dialog-line:last-child {
    margin-bottom: 0;
}

.sentence-part {
    display: inline; 
    position: relative; 
    margin: 0 1px; 
    padding: 0.1em 0; 
    transition: transform 0.2s ease-out, filter 0.2s ease-out;
}

.sentence-part-text {
    padding: 0.15em 0.35em; 
    border-radius: 5px;
    display: inline-block; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Softer shadow */
    line-height: 1.5; 
}

.sentence-part-translatable .sentence-part-text {
    cursor: pointer; 
}

.sentence-part-translatable:hover .sentence-part-text {
    transform: scale(1.03); 
    filter: brightness(1.1); /* Slightly less bright on hover */
}

.sentence-part .translation-popup {
    position: absolute;
    bottom: 100%; 
    left: 50%; 
    transform: translateX(-50%) translateY(-8px); 
    background-color: #FFFDE7; 
    color: #3E2723; 
    padding: 8px 12px; 
    border-radius: 10px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.25); 
    border: 2px solid #FFAB00; 
    font-size: clamp(0.75em, 1.8vw, 0.9em); 
    min-width: 120px; 
    max-width: 250px; 
    text-align: center;
    word-wrap: break-word; 
    z-index: 1000; 
    font-family: 'Arial', sans-serif; 
    display: none; 
}
.sentence-part .translation-popup[x-show] { 
    display: block; 
}

/* Matching Game Pills */
.pill {
    padding: 10px 5px; 
    border: 3px solid transparent; 
    min-height: 55px; 
    border-radius: 10px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Luckiest Guy', cursive; 
    font-weight: normal; 
    line-height: 1.25; 
    word-break: break-word; 
    overflow-wrap: break-word; 
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out, border-color 0.2s ease-out;
    flex-grow: 1; 
    box-shadow: 0 3px 5px rgba(0,0,0,0.25), inset 0 -2px 2px rgba(0,0,0,0.15);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2); 
}

.pill.font-size-large { font-size: clamp(0.9rem, 3vw, 1.4rem); }
.pill.font-size-medium { font-size: clamp(0.8rem, 2.6vw, 1.1rem); }
.pill.font-size-small { font-size: clamp(0.7rem, 2vw, 0.9rem); }

.pill:hover:not(:disabled):not(.matched):not(.selected) {
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 7px 10px rgba(0,0,0,0.3), inset 0 -1px 1px rgba(0,0,0,0.1);
    filter: brightness(1.12);
    border-color: rgba(74, 63, 53, 0.4); /* Darker border on hover */
}

.pill.selected {
    box-shadow: 0 0 15px 4px var(--selected-glow-color, #FF8F00), 0 6px 10px rgba(0,0,0,0.4); /* Orange glow */
    filter: brightness(1.2);
    z-index: 10; 
    animation: selected-pill-pulse 1.5s infinite ease-in-out; 
}

@keyframes selected-pill-pulse {
    0% {
        transform: scale(1.03);
        border-color: #F57C00; /* Orange */
        box-shadow: 0 0 12px 3px #F57C00, 0 5px 8px rgba(0,0,0,0.35);
    }
    33% {
        transform: scale(1.07); 
        border-color: #FFA000; /* Lighter Orange */
        box-shadow: 0 0 18px 6px #FFA000, 0 7px 12px rgba(0,0,0,0.4);
    }
    66% {
        transform: scale(1.03); 
        border-color: #FFB300; /* Yellow-Orange */
        box-shadow: 0 0 12px 3px #FFB300, 0 5px 8px rgba(0,0,0,0.35);
    }
    100% {
        transform: scale(1.03);
        border-color: #F57C00; 
        box-shadow: 0 0 12px 3px #F57C00, 0 5px 8px rgba(0,0,0,0.35);
    }
}

.pill.matched {
    opacity: 0.6; 
    filter: grayscale(50%) brightness(0.8); 
    pointer-events: none; 
    transform: scale(0.93); 
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.35);
    animation: none; 
    border-color: transparent; 
}
.pill.matched::after { 
    content: '✔'; 
    font-size: 1.3em;
    color: #FFFDE7; /* Light yellow checkmark */
    text-shadow: 0 0 5px rgba(0,0,0,0.7); 
    position: absolute; 
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.pill.matched.animate-pop { 
    animation: pop-effect-matched 0.3s ease-out;
}
@keyframes pop-effect-matched {
    0% { transform: scale(0.93); } 
    50% { transform: scale(1.18); } 
    100% { transform: scale(0.93); } 
}

.pill.animate-shake { 
    animation: shake-effect 0.6s cubic-bezier(.36,.07,.19,.97); 
}
@keyframes shake-effect { 
    0%, 100% { transform: translateX(0) rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px) rotate(-1deg); }
    20%, 40%, 60%, 80% { transform: translateX(4px) rotate(1deg); }
}

.ordered-lines-container, .dialogue-pool-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    min-height: 120px;
    border-radius: 12px;
}

.ordered-lines-container h4, .dialogue-pool-container h4 {
    color: #495057;
    font-family: 'Luckiest Guy', cursive;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.game-controls {
    padding: 20px 0;
}

.game-controls .btn {
    min-width: 120px;
    font-family: 'Luckiest Guy', cursive;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.game-controls .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.game-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pill .confetti-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.page-mistake-flash-stronger { 
    animation: page-flash-red-stronger 0.6s ease-out; 
}
@keyframes page-flash-red-stronger { 
    0%, 100% { background-color: #FDECF0; } /* Original light pink */
    25% { background-color: #FF8A80; } /* Lighter Red/Pink flash */
    50% { background-color: #FF5252; } /* Stronger Red/Pink flash */
    75% { background-color: #FF8A80; } 
}

.game-container.game-error-shake {
    animation: game-container-shake-effect 0.6s cubic-bezier(.36,.07,.19,.97);
}
@keyframes game-container-shake-effect {
    0%, 100% { transform: translateX(0) rotate(0); }
    15%, 45%, 75% { transform: translateX(-5px) rotate(-0.5deg); } 
    30%, 60%, 90% { transform: translateX(5px) rotate(0.5deg); }
}

.pill.final-match-animation { 
    animation: final-pulse-gamey 0.7s infinite alternate; 
    opacity: 1 !important; 
    filter: grayscale(0%) brightness(1.15) !important; 
}
@keyframes final-pulse-gamey { 
    from { transform: scale(0.95); box-shadow: 0 0 12px 3px currentColor, inset 0 0 6px rgba(255,255,255,0.3);}
    to   { transform: scale(1.05); box-shadow: 0 0 28px 10px currentColor, inset 0 0 12px rgba(255,255,255,0.5);}
}

.next-button-container button {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #AED581, #8BC34A); /* Green from moodboard (character) */
    color: white;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    padding: clamp(10px, 3vw, 16px) clamp(22px, 5.5vw, 32px);
    border-radius: 50px; 
    border: 3px solid #558B2F; /* Darker green */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 4px 7px rgba(0,0,0,0.3);
}
.next-button-container button:hover {
    background: linear-gradient(135deg, #9CCC65, #7CB342);
    transform: scale(1.07) rotate(-2.5deg); 
    box-shadow: 0 9px 18px rgba(0,0,0,0.35);
}

.confetti-burst {
    position: absolute; top: 50%; left: 50%;
    width: 1px; height: 1px; 
    pointer-events: none; 
    visibility: hidden; 
}
.confetti-burst[x-show="true"] {
    visibility: visible; 
}
.confetti-burst::before,
.confetti-burst::after { 
    content: ''; position: absolute; display: block;
    border-radius: 50%; opacity: 0;
    animation: confetti-particle-effect 0.8s ease-out forwards;
}
.confetti-burst[x-show="true"]::before {
    animation-delay: 0s; background-color: #FFF176; /* Yellow confetti */
    width: 8px; height: 8px;
}
.confetti-burst[x-show="true"]::after {
    animation-delay: 0.1s; background-color: #EC407A; /* Pink confetti */
    width: 10px; height: 10px;
}
@keyframes confetti-particle-effect { 
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
    100% {
        transform: translate(calc(-50% + (0.5 * 70px)), calc(-50% + (-0.8 * 90px))) scale(0) rotate(360deg);
        opacity: 0;
    }
}
.pill.matched .confetti-burst[x-show="true"]::before { background-color: #AED581; } 
.pill.matched .confetti-burst[x-show="true"]::after { background-color: #FFF176; } 

/* Loading and Error States */
.loading-indicator p { font-size: 1.2rem; color: #4A3F35; font-family: 'Press Start 2P', cursive;}
.spinner-grow { width: 2rem; height: 2rem; margin: 0 0.35rem; }
/* Spinner colors to match theme */
.loading-indicator .text-primary { color: #EC407A !important; filter: brightness(1.2); } /* Pink */
.loading-indicator .text-success { color: #AED581 !important; filter: brightness(1.2); } /* Green */
.loading-indicator .text-danger { color: #FFA000 !important; filter: brightness(1.2); }  /* Orange */


.error-message { 
    background-color: rgba(239, 83, 80, 0.9); /* Reddish-pink */
    color: #fff; 
    border: 2px solid #D32F2F; 
    text-align: center; 
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    text-shadow: 1px 1px 1px #000;
    padding: 10px 15px;
    border-radius: 8px;
}
.error-message h4 { color: #fff; margin-bottom: 0.5rem; font-size: 1rem; }
.sound-error-message { 
    background-color: rgba(255, 202, 40, 0.9); /* Amber */
    color: #3E2723; 
    border: 1px solid #FFA000; 
    font-size: 0.75rem; 
    word-break: break-word; 
    font-family: 'Press Start 2P', cursive;
    padding: 8px 12px;
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) { /* Tablet and smaller */
    .landing-container { padding: 20px; }
    .landing-title { font-size: clamp(1.8rem, 5vw, 3rem); }
    .landing-description { font-size: clamp(1rem, 2.2vw, 1.3rem); }
    .btn-start-game { padding: 15px 30px; font-size: clamp(0.9rem, 2.5vw, 1.3rem); }
}

@media (max-width: 480px) { /* Mobile */
    body, .landing-page-body { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .game-container { padding: 15px; box-shadow: 0 6px 15px rgba(0,0,0,0.2), 0 0 0 6px #E91E63; }
    .game-header { padding: 0.75rem 1rem; }
    .landing-container { padding: 15px; }
    .landing-title { margin-top: 15px; }
    .landing-description { margin-bottom: 20px; }
    .btn-start-game { padding: 12px 25px; }

    .pill.font-size-large { font-size: 0.8rem; }
    .pill.font-size-medium { font-size: 0.7rem; }
    .pill.font-size-small { font-size: 0.6rem; }
    .dialog-line { font-size: 0.9rem; padding: 6px 10px; margin-bottom: 6px;}
    .sentence-part .translation-popup { min-width: 90px; padding: 5px 7px; font-size: 0.75em; }
    .game-title { font-size: 1.1rem; }
    .score-display { font-size: 0.8rem; padding: 6px clamp(8px, 2vw, 15px); }
    .btn-audio-control { width: 40px; height: 40px; } 
    .btn-audio-control svg { width: 20px; height: 20px; }
}
@media (max-width: 350px) { 
    .game-container { padding: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.2), 0 0 0 4px #E91E63; }
    .pill { min-height: 45px; padding: 7px 3px; } 
    .dialog-line { font-size: 0.8rem; padding: 5px 8px;}
    .game-title { font-size: 0.9rem; } 
    .score-display { font-size: 0.7rem; padding: 4px 8px;}
    .next-button-container button { font-size: 0.8rem; padding: 8px 18px;}
    .landing-title { font-size: clamp(1.5rem, 7vw, 2.5rem); }
    .btn-start-game { padding: 10px 20px; font-size: clamp(0.8rem, 3vw, 1.1rem); }
}

/* Alpine transition helpers */
[x-cloak] { display: none !important; } 
[x-transition] { transition: opacity 0.3s ease, transform 0.3s ease; }
[x-transition.enter] { opacity: 0; transform: scale(0.95); }
[x-transition.enter-start] { opacity: 0; transform: scale(0.95); } 
[x-transition.enter-end] { opacity: 1; transform: scale(1); }   
[x-transition.leave] { opacity: 1; transform: scale(1); }
[x-transition.leave-start] { opacity: 1; transform: scale(1); } 
[x-transition.leave-end] { opacity: 0; transform: scale(0.95); } 
[x-transition.scale.origin.bottom] { transform-origin: bottom; }

/* Victory Modal Styles (MatchWords specific) */
.victory-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1055;
    backdrop-filter: blur(3px);
}

.victory-modal-container {
    width: 90%;
    max-width: 500px;
    margin: 20px;
}

.victory-modal-content {
    background: linear-gradient(135deg, #FFFDE7, #FFF9C4);
    border: 4px solid #FBC02D;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: victory-modal-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes victory-modal-bounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.victory-modal-header {
    background: linear-gradient(135deg, #FFC107, #FFB300);
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #F57F17;
}

.victory-modal-header h2 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2rem;
    color: #4A3F35;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: victory-title-glow 2s ease-in-out infinite alternate;
}

@keyframes victory-title-glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 193, 7, 0.8);
    }
}

.victory-modal-body {
    padding: 30px 20px;
    text-align: center;
}

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

@keyframes victory-emoji-bounce {
    from {
        transform: scale(1) rotate(-5deg);
    }
    to {
        transform: scale(1.1) rotate(5deg);
    }
}

.victory-modal-body p {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #4A3F35;
    margin: 0;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.victory-modal-footer {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #FFF9C4, #FFFDE7);
    border-top: 2px solid #FFD54F;
}

.victory-modal-button {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    color: white;
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 50px;
    border: 3px solid #388E3C;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.victory-modal-button:hover {
    background: linear-gradient(135deg, #81C784, #66BB6A);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.victory-modal-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile responsiveness for victory modal */
@media (max-width: 768px) {
    .victory-modal-container {
        width: 95%;
        margin: 10px;
    }
    
    .victory-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .victory-emoji {
        font-size: 3rem;
    }
    
    .victory-modal-body p {
        font-size: 0.8rem;
    }
    
    .victory-modal-button {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .victory-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .victory-emoji {
        font-size: 2.5rem;
    }
    
    .victory-modal-body p {
        font-size: 0.7rem;
    }
    
    .victory-modal-button {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
}
