:root {
    --bg-color: #74ebd5;
    --bg-gradient: linear-gradient(90deg, #ACB6E5 0%, #74ebd5 100%);
    --text-color: #333;
    --butt-color: #ffccaa;
    --butt-shadow: #eebb99;
    --meter-bg: #444;
    --meter-fill: #ffce00;
}

* {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* Bathroom Tile Background */
    background-color: #81ecec;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.2)),
        linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.2));
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;

    font-family: 'Fredoka One', cursive;
    /* Fun cartoon font */
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

/* --- UI Layer --- */
#ui-layer {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}

#score-board {
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: 4px solid #333;
    font-size: 2rem;
    box-shadow: 0 4px 0 #000000;
    color: #333;
}

#reset-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 40px;
    font-size: 2rem;
    font-family: inherit;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 6px 0 #b33939;
    pointer-events: auto;
    transition: transform 0.1s;
}

#reset-btn:active {
    transform: translate(-50%, -46%);
    box-shadow: 0 2px 0 #b33939;
}

.hidden {
    display: none !important;
}

/* --- The Scene --- */
#scene {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

/* --- The Character --- */
#character {
    position: relative;
    width: 350px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s;
    transform-origin: center bottom;
}

/* Base Cheek - Enhanced 3D Volume & Shape (BEAUTIFUL SKIN) */
.cheek {
    width: 185px;
    height: 215px;
    /* Professional photorealistic gradient - warm peachy tones */
    background:
        radial-gradient(ellipse at 35% 30%,
            #ffeedd 0%,
            #ffd7bc 15%,
            #ffccaa 35%,
            #f5b895 55%,
            #e8a67d 75%,
            #d89565 100%);
    border-radius: 50% 52% 48% 50%;
    position: absolute;
    top: 0;
    /* Professional multi-layer shadows and highlights */
    box-shadow:
        /* Deep inner shadow for depth */
        inset -20px -20px 40px rgba(200, 130, 80, 0.25),
        /* Bright highlight */
        inset 20px 15px 35px rgba(255, 255, 255, 0.6),
        /* Soft outer glow */
        0 8px 25px rgba(0, 0, 0, 0.15),
        /* Extra depth on bottom */
        0 12px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s;
}

.left-cheek {
    left: -5px;
    transform: rotate(8deg);
    transform-origin: bottom right;
}

.right-cheek {
    right: -5px;
    transform: rotate(-8deg);
    transform-origin: bottom left;
}

/* Primary highlight - bright spot where light hits */
.cheek::after {
    content: '';
    position: absolute;
    top: 18%;
    left: 25%;
    width: 45%;
    height: 35%;
    background: radial-gradient(ellipse,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 245, 230, 0.4) 30%,
            transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(3px);
}

/* The CRACK - subtle natural shadow between cheeks */
.cheek::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 65%;
    top: 18%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(200, 120, 80, 0.1) 15%,
            rgba(150, 90, 60, 0.25) 40%,
            rgba(120, 70, 50, 0.35) 50%,
            rgba(150, 90, 60, 0.25) 60%,
            rgba(200, 120, 80, 0.1) 85%,
            transparent 100%);
    border-radius: 3px;
    pointer-events: none;
    z-index: 3;
    filter: blur(1px);
}

.left-cheek::before {
    right: -3px;
}

.right-cheek::before {
    left: -3px;
}

.legs {
    position: absolute;
    bottom: -50px;
    width: 100%;
    height: 120px;
    z-index: 1;
}

.leg {
    width: 55px;
    height: 130px;
    /* Smooth gradient matching skin tone */
    background: linear-gradient(to bottom,
            #e8a67d 0%,
            #d89565 50%,
            #c88555 100%);
    position: absolute;
    border-radius: 28px;
    box-shadow:
        /* Inner shadow for depth */
        inset -10px 0 15px rgba(150, 80, 50, 0.2),
        /* Outer shadow */
        5px 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: background 0.3s;
}



/* --- SKINS & TEXTURES --- */

/* Realistic Skin: Skin pores/imperfections via noise?? Too complex for pure CSS, sticking to High Quality Gradients */
/* "More Real" - slightly redder, more depth */
.skin-realistic .cheek {
    background: radial-gradient(ellipse at 40% 30%, #ffe0c0, #eec090 50%, #d09060 100%);
    box-shadow: inset -15px -15px 30px rgba(50, 20, 0, 0.15);
}

.skin-realistic .leg {
    background: linear-gradient(to right, #d09060, #c08050);
}

/* Hairy Skin: ULTRA REALISTIC HAIR */
.skin-hairy .cheek {
    width: 195px;
    /* Even wider, hairy butts are bigger */
    background: radial-gradient(circle at 30% 30%, #8b5a3c, #6b4423 60%, #4a2f1a 100%);
    box-shadow:
        inset -15px -15px 30px rgba(0, 0, 0, 0.3),
        8px 8px 20px rgba(0, 0, 0, 0.25);
}

/* Dense curly hair coverage */
.skin-hairy .cheek::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* Multiple layers of hair: long strands + stubble */
    background:
        /* Thick curly hairs */
        repeating-linear-gradient(93deg, transparent, transparent 8px, #2d1b0e 8px, #2d1b0e 10px, transparent 10px, transparent 20px),
        repeating-linear-gradient(87deg, transparent, transparent 7px, #3e2723 7px, #3e2723 9px, transparent 9px, transparent 18px),
        repeating-linear-gradient(96deg, transparent, transparent 9px, #2d1b0e 9px, #2d1b0e 11px, transparent 11px, transparent 22px),
        /* Dense stubble base */
        radial-gradient(circle at 30% 40%, #1a0f08 1px, transparent 2px),
        radial-gradient(circle at 60% 60%, #1a0f08 1px, transparent 2px),
        radial-gradient(circle at 45% 75%, #1a0f08 1px, transparent 2px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 5px 5px, 6px 6px, 7px 7px;
    background-position: 0 0, 0 0, 0 0, 0 0, 2px 2px, 4px 4px;
    opacity: 0.85;
    pointer-events: none;
}

/* Extra hair tufts on edges */
.skin-hairy .cheek::before {
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(29, 15, 8, 0.3) 20%,
            rgba(29, 15, 8, 0.5) 50%,
            rgba(29, 15, 8, 0.3) 80%,
            transparent 100%);
    width: 12px;
}

.skin-hairy .leg {
    background: linear-gradient(to right, #6b4423, #5a3318);
    box-shadow:
        inset -8px 0 12px rgba(0, 0, 0, 0.2),
        3px 3px 10px rgba(0, 0, 0, 0.2);
}

/* Add hair to legs too */
.skin-hairy .leg::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(#2d1b0e 0.8px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.6;
}

/* Robo Skin */
.skin-robo .cheek {
    border-radius: 25px 25px 45px 45px;
    background: linear-gradient(135deg, #e0e0e0 0%, #95a5a6 50%, #34495e 100%);
    border: 2px solid #7f8c8d;
    box-shadow:
        inset 5px 5px 10px rgba(255, 255, 255, 0.8),
        inset -5px -5px 20px rgba(0, 0, 0, 0.5);
}

.skin-robo .leg {
    background: linear-gradient(to right, #7f8c8d, #5a6872);
}

/* Alien Skin: SLIMY & WEIRD */
.skin-alien .cheek {
    width: 195px;
    /* Oddly shaped */
    background: radial-gradient(ellipse at 30% 30%, #c3ff00, #99cc00 40%, #667700 100%);
    box-shadow:
        0 0 25px #aaff00,
        inset 5px -10px 20px rgba(0, 0, 0, 0.3);
    border-radius: 45% 55% 60% 40%;
    /* Uneven alien shape */
}

/* Add slime drips */
.skin-alien .cheek::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(153, 204, 0, 0.6), transparent);
    border-radius: 0 0 50% 50%;
    filter: blur(2px);
}

.skin-alien .leg {
    background: linear-gradient(to right, #667700, #445500);
}

/* Zombie Skin: TRULY GROTESQUE DECAY */
.skin-zombie .cheek {
    width: 205px;
    /* EXTREMELY FAT from bloating */
    height: 235px;
    /* Sagging heavily */
    background: radial-gradient(ellipse at 40% 40%, #6b7c87, #4a5661 50%, #2d3741 100%);
    border-radius: 50% 50% 58% 42%;
    /* Uneven, drooping */
    box-shadow:
        inset -25px -30px 50px rgba(0, 0, 0, 0.5),
        12px 12px 35px rgba(0, 0, 0, 0.4);
}

/* Rotting flesh with wounds, stitches, and greenish decay */
.skin-zombie .cheek::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        /* Large bruise/rot patch */
        radial-gradient(circle at 30% 55%, rgba(60, 40, 80, 0.6) 0%, rgba(80, 20, 20, 0.5) 8%, transparent 18%),
        /* Green decay */
        radial-gradient(circle at 65% 35%, rgba(100, 120, 60, 0.4) 0%, rgba(80, 100, 40, 0.3) 10%, transparent 20%),
        /* Dark necrotic spot */
        radial-gradient(circle at 50% 75%, rgba(20, 15, 10, 0.7) 0%, rgba(40, 30, 20, 0.5) 7%, transparent 14%),
        /* Yellowish pus/infection */
        radial-gradient(circle at 75% 60%, rgba(160, 140, 60, 0.4) 0%, transparent 8%);
    pointer-events: none;
}

/* Stitches and scars */
.skin-zombie .cheek::before {
    content: '';
    position: absolute;
    width: 8px;
    /* Original width */
    height: 60%;
    /* Original height */
    top: 20%;
    /* Original top */
    background:
        /* Vertical stitch line */
        repeating-linear-gradient(0deg,
            transparent, transparent 8px,
            rgba(40, 30, 30, 0.8) 8px, rgba(40, 30, 30, 0.8) 10px,
            transparent 10px, transparent 12px,
            rgba(40, 30, 30, 0.6) 12px, rgba(40, 30, 30, 0.6) 13px);
    width: 3px;
    height: 70%;
    top: 15%;
    filter: blur(0.5px);
    border-radius: 4px;
    /* Keep original border-radius */
    pointer-events: none;
    /* Keep original pointer-events */
    z-index: 3;
    /* Keep original z-index */
}

.skin-zombie .leg {
    background: linear-gradient(to right, #4a5661, #2d3741);
    box-shadow:
        inset -8px 0 12px rgba(0, 0, 0, 0.3),
        3px 3px 10px rgba(0, 0, 0, 0.3);
}

/* Add decay spots to legs */
.skin-zombie .leg::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 40% 30%, rgba(80, 100, 40, 0.3) 5%, transparent 12%),
        radial-gradient(circle at 60% 70%, rgba(60, 40, 50, 0.4) 4%, transparent 10%);
    pointer-events: none;
}


/* Settings Modal UI */
.settings-content {
    width: 600px;
    max-width: 90%;
    position: relative;
}

#about-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffa502;
    color: white;
    border: 3px solid #333;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 #333;
    transition: transform 0.1s;
}

#about-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #333;
}

#skin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

/* About Modal & Credits Scroller */
#about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.about-content {
    width: 500px;
    height: 600px;
    background: #111;
    border: 8px solid #ffa502;
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#credits-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    background: #000;
    margin: 20px 0;
    border-radius: 10px;
}

#credits-scroller {
    position: absolute;
    width: 100%;
    top: 100%;
    animation: scrollCredits 15s linear infinite;
    text-align: center;
}

#credits-scroller h3 {
    font-size: 2.5rem;
    color: #ffa502;
    margin-bottom: 30px;
}

#credits-scroller p {
    font-size: 1.5rem;
    margin: 15px 0;
    font-family: 'Nunito', sans-serif;
}

@keyframes scrollCredits {
    0% {
        top: 100%;
    }

    100% {
        top: -120%;
    }
}

#close-about-btn {
    padding: 10px 30px;
    font-size: 1.5rem;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px auto 20px auto;
}


.skin-option {
    background: #f1f2f6;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.skin-option:hover {
    background: #dfe4ea;
    transform: translateY(-2px);
}

.skin-option.selected {
    border-color: #ff4757;
    background: #ffeaa7;
    font-weight: bold;
}

#close-settings-btn {
    padding: 10px 30px;
    font-size: 1.5rem;
    background: #2ed573;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}


.left-leg {
    left: 60px;
    transform: rotate(10deg);
}

.right-leg {
    right: 60px;
    transform: rotate(-10deg);
}

/* Face Overlay for Expressions */
#face-overlay {
    position: absolute;
    top: 50px;
    width: 100px;
    height: 60px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    /* Hidden by default, shows when straining/dizzy */
    transition: opacity 0.2s;
}

.eyes {
    display: flex;
    gap: 20px;
}

.eye {
    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
}

.mouth {
    margin-top: 10px;
    width: 20px;
    height: 10px;
    border-radius: 0 0 20px 20px;
    background: #333;
}

#fart-origin {
    position: absolute;
    bottom: 40%;
    /* Moved up to be between the cheeks */
    left: 50%;
    width: 5px;
    height: 5px;
    transform: translateX(-50%);
    z-index: 0;
}

/* --- Meter Layer --- */
#meter-container {
    width: 80%;
    max-width: 500px;
    margin-bottom: 40px;
    text-align: center;
}

.meter-label {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
}

#power-bar-bg {
    width: 100%;
    height: 40px;
    background: #333;
    border-radius: 20px;
    border: 4px solid #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#power-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7bed9f, #ffa502, #ff4757);
    border-radius: 15px;
    transition: width 0.05s linear;
    /* Smooth visual update manually handled in JS mostly */
}

/* Zone Markers (Visual Guides) */
#zones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: none;
}

.zone {
    height: 100%;
    opacity: 0.2;
}

.zone.weak {
    width: 30%;
    background: grey;
    border-right: 1px solid white;
}

.zone.good {
    width: 50%;
    background: blue;
    border-right: 1px solid white;
}

.zone.mega {
    width: 15%;
    background: gold;
    border-right: 1px solid white;
}

.zone.danger {
    width: 5%;
    background: red;
}

#feedback-text {
    margin-top: 15px;
    height: 30px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff4757;
    text-shadow: 3px 3px 0px white;
    letter-spacing: 2px;
}

#instructions-text {
    margin-top: 10px;
    font-size: 1rem;
    color: rgba(51, 51, 51, 0.7);
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
    text-align: center;
}


/* --- Animations --- */
@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.shaking {
    animation: shake 0.5s infinite;
}

/* Particle Classes (Dynamically added) */
.particle {
    position: absolute;
    pointer-events: none;
    font-size: 2rem;
    z-index: 10;
}

/* Comic Text */
.comic-text {
    position: absolute;
    pointer-events: none;
    font-family: 'Fredoka One', cursive;
    color: white;
    font-weight: 900;
    font-size: 2.5rem;
    text-shadow:
        2px 2px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    z-index: 50;
    white-space: nowrap;
}

.comic-text-big {
    font-size: 4rem;
    color: #ffce00;
    text-shadow:
        4px 4px 0 #000,
        -2px -2px 0 #000;
}


/* Character States */
.character-dizzy .left-eye,
.character-dizzy .right-eye {
    background: transparent;
    border: 3px solid #333;
    width: 20px;
    height: 20px;
    border-radius: 0;
    position: relative;
    transform: rotate(45deg);
    /* X eyes */
}

/* Make X eyes actually look like X */
.character-dizzy .left-eye::after,
.character-dizzy .right-eye::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #333;
    transform: translate(-50%, -50%) rotate(90deg);
    /* Cross */
    /* This logic is a bit messy for simple CSS shapes, let's keep it simple: just boxes for eyes */
}

.character-dizzy .cheek {
    background-color: #aaddaa;
}

/* Green face */
.character-dizzy .mouth {
    height: 5px;
    width: 25px;
    border-radius: 10px;
    transform: translateY(5px) rotate(-15deg);
}

/* Exploded State - Hidden */
.character-exploded {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

/* Gas Tank Styles */
#gas-tank-wrapper {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 90;
}

.tank-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

#gas-tank {
    width: 40px;
    height: 300px;
    background: rgba(255, 255, 255, 0.5);
    border: 4px solid #333;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

#gas-tank-fill {
    width: 100%;
    height: 0%;
    /* Starts empty, fills UP */
    background: linear-gradient(to top, #2ecc71, #f1c40f, #e74c3c);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: height 0.1s linear;
}

.tank-warning {
    font-size: 2rem;
    margin-top: 5px;
    opacity: 0;
}

.warning-active {
    animation: flash 0.5s infinite;
    opacity: 1;
}

@keyframes flash {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Bubbles in the tank */
.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.b1 {
    width: 10px;
    height: 10px;
    left: 10px;
    bottom: -20px;
    animation: rise 4s infinite linear;
}

.b2 {
    width: 6px;
    height: 6px;
    left: 20px;
    bottom: -20px;
    animation: rise 3s infinite linear 1s;
}

.b3 {
    width: 8px;
    height: 8px;
    left: 5px;
    bottom: -20px;
    animation: rise 5s infinite linear 0.5s;
}

@keyframes rise {
    0% {
        bottom: -20px;
    }

    100% {
        bottom: 100%;
    }
}

/* Splat Visuals */
.splat {
    position: absolute;
    font-size: 5rem;
    pointer-events: none;
    z-index: 200;
    filter: drop-shadow(0 0 10px rgba(93, 64, 55, 0.5));
}

/* Modal Styles */
#game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    border: 8px solid #5d4037;
    text-align: center;
    box-shadow: 0 20px 0 rgba(0, 0, 0, 0.4);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content h1 {
    color: #5d4037;
    font-size: 3rem;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.final-score {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.shame-text {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 30px;
    font-style: italic;
}

#modal-restart-btn {
    padding: 20px 50px;
    font-size: 2rem;
    font-family: inherit;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 6px 0 #b33939;
    transition: transform 0.1s;
}

#modal-restart-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #b33939;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}