/* Rocky Race Theme - SpongeBob Colors */

.main-content {
    display: block;
}

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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(180deg, #87CEEB 0%, #5F9EA0 30%, #4682B4 60%, #4169E1 100%);
    background-attachment: fixed;
    color: #2C3E50;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('flowers.svg') repeat;
    background-size: 500px auto;
    opacity: 0.12;
    z-index: -2;
    pointer-events: none;
    animation: flowerDrift 30s linear infinite;
}

@keyframes flowerDrift {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

/* Background Animation - SpongeBob Bubbles */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    contain: layout style paint;
}

.bubble {
    position: absolute;
    left: var(--left);
    bottom: -50px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 15%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(173, 216, 230, 0.3) 0%, transparent 50%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(173, 216, 230, 0.2) 50%, transparent 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        inset -8px -8px 15px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    animation: bubbleRise 10s infinite linear;
    animation-delay: var(--delay);
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 25%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    transform: translateZ(0);
    will-change: transform;
}

.bubble::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 15%;
    height: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    transform: translateZ(0);
    will-change: transform;
}

@keyframes bubbleRise {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate3d(5px, -25vh, 0) scale(1.05);
        opacity: 0.8;
    }
    50% {
        transform: translate3d(-3px, -50vh, 0) scale(1.1);
        opacity: 0.9;
    }
    75% {
        transform: translate3d(4px, -75vh, 0) scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: translate3d(0, -100vh, 0) scale(0.9);
        opacity: 0;
    }
}

/* SpongeBob Jellyfish */
.jellyfish {
    position: absolute;
    width: 120px;
    height: 150px;
    top: 20%;
    left: 15%;
    z-index: -1;
    animation: jellyfishFloat 25s infinite ease-in-out;
    transform: translateZ(0);
    will-change: transform;
    opacity: 0.75;
}

.jellyfish-bell {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 65px;
    background: radial-gradient(ellipse at 50% 35%, 
        rgba(255, 182, 193, 0.95) 0%, 
        rgba(255, 105, 180, 0.9) 25%,
        rgba(255, 20, 147, 0.85) 50%, 
        rgba(218, 112, 214, 0.8) 75%,
        rgba(186, 85, 211, 0.7) 100%);
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    box-shadow: 
        inset 0 -20px 30px rgba(255, 20, 147, 0.5),
        inset 0 15px 20px rgba(255, 182, 193, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 105, 180, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    filter: blur(0.5px);
}

.jellyfish-bell::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 
        35px 0 0 rgba(255, 255, 255, 0.7),
        17px 15px 0 rgba(255, 255, 255, 0.6);
}

.tentacle {
    position: absolute;
    top: 60px;
    left: 50%;
    width: 3px;
    height: 70px;
    background: linear-gradient(to bottom, 
        rgba(255, 105, 180, 0.95) 0%,
        rgba(255, 20, 147, 0.8) 20%,
        rgba(218, 112, 214, 0.6) 50%,
        rgba(186, 85, 211, 0.4) 75%,
        transparent 100%);
    border-radius: 2px;
    transform-origin: top center;
    transform: translateX(-50%);
    filter: blur(0.5px);
}

.tentacle-1 {
    left: calc(50% - 35px);
    animation: tentacleWave1 2s ease-in-out infinite;
    animation-delay: 0s;
}

.tentacle-2 {
    left: calc(50% - 25px);
    animation: tentacleWave2 2.2s ease-in-out infinite;
    animation-delay: 0.2s;
}

.tentacle-3 {
    left: calc(50% - 15px);
    animation: tentacleWave3 2.1s ease-in-out infinite;
    animation-delay: 0.1s;
}

.tentacle-4 {
    left: calc(50% - 5px);
    animation: tentacleWave4 2.3s ease-in-out infinite;
    animation-delay: 0.3s;
}

.tentacle-5 {
    left: calc(50% + 5px);
    animation: tentacleWave5 2.15s ease-in-out infinite;
    animation-delay: 0.15s;
}

.tentacle-6 {
    left: calc(50% + 15px);
    animation: tentacleWave6 2.25s ease-in-out infinite;
    animation-delay: 0.25s;
}

.tentacle-7 {
    left: calc(50% + 25px);
    animation: tentacleWave7 2.1s ease-in-out infinite;
    animation-delay: 0.1s;
}

.tentacle-8 {
    left: calc(50% + 35px);
    animation: tentacleWave8 2.2s ease-in-out infinite;
    animation-delay: 0.2s;
}

@keyframes jellyfishFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    25% {
        transform: translate3d(30vw, 20vh, 0) rotate(5deg);
    }
    50% {
        transform: translate3d(60vw, 10vh, 0) rotate(-5deg);
    }
    75% {
        transform: translate3d(40vw, 30vh, 0) rotate(3deg);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

@keyframes tentacleWave1 {
    0%, 100% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    25% { transform: translateX(-50%) rotate(8deg) translateY(3px); }
    50% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    75% { transform: translateX(-50%) rotate(-8deg) translateY(-3px); }
}

@keyframes tentacleWave2 {
    0%, 100% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    25% { transform: translateX(-50%) rotate(-10deg) translateY(2px); }
    50% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    75% { transform: translateX(-50%) rotate(10deg) translateY(-2px); }
}

@keyframes tentacleWave3 {
    0%, 100% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    25% { transform: translateX(-50%) rotate(12deg) translateY(4px); }
    50% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    75% { transform: translateX(-50%) rotate(-12deg) translateY(-4px); }
}

@keyframes tentacleWave4 {
    0%, 100% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    25% { transform: translateX(-50%) rotate(-8deg) translateY(3px); }
    50% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    75% { transform: translateX(-50%) rotate(8deg) translateY(-3px); }
}

@keyframes tentacleWave5 {
    0%, 100% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    25% { transform: translateX(-50%) rotate(10deg) translateY(2px); }
    50% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    75% { transform: translateX(-50%) rotate(-10deg) translateY(-2px); }
}

@keyframes tentacleWave6 {
    0%, 100% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    25% { transform: translateX(-50%) rotate(-12deg) translateY(4px); }
    50% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    75% { transform: translateX(-50%) rotate(12deg) translateY(-4px); }
}

@keyframes tentacleWave7 {
    0%, 100% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    25% { transform: translateX(-50%) rotate(9deg) translateY(3px); }
    50% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    75% { transform: translateX(-50%) rotate(-9deg) translateY(-3px); }
}

@keyframes tentacleWave8 {
    0%, 100% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    25% { transform: translateX(-50%) rotate(-11deg) translateY(2px); }
    50% { transform: translateX(-50%) rotate(0deg) translateY(0); }
    75% { transform: translateX(-50%) rotate(11deg) translateY(-2px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header-left {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.header-top {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.header-social-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.about-button, .copy-ca-button {
    background: transparent;
    border: 2px solid #5D4037;
    border-radius: 10px;
    padding: 10px 18px;
    color: #5D4037;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.about-button:hover, .copy-ca-button:hover {
    transform: scale(1.05);
    border-color: #8B4513;
    color: #8B4513;
    background: rgba(93, 64, 55, 0.1);
}

/* Race Game Section */
.race-game-section {
    margin-bottom: 40px;
    padding: 20px;
}

.race-game-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px 0;
    box-shadow: none;
    backdrop-filter: none;
    text-align: center;
}

.race-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #C0392B;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.6);
}

.race-subtitle {
    font-size: 1.2rem;
    color: #2C3E50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
}

.race-track-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.race-track {
    position: relative;
    width: 100%;
    height: 360px;
    background: 
        repeating-linear-gradient(
            0deg,
            #F4E4BC 0px,
            #F4E4BC 3px,
            #E8D5A3 3px,
            #E8D5A3 6px,
            #F4E4BC 6px,
            #F4E4BC 9px,
            #DDC896 9px,
            #DDC896 12px
        ),
        linear-gradient(180deg, #F4E4BC 0%, #E8D5A3 30%, #F4E4BC 60%, #DDC896 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 30px rgba(244, 228, 188, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 6px rgba(255, 255, 255, 0.2),
        0 0 0 10px rgba(244, 228, 188, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.race-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 30%, rgba(255, 182, 193, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(255, 218, 185, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(173, 216, 230, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.race-track::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 20%;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: flowerFloat 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes flowerFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Track Background */
.track-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.12) 60px,
            rgba(255, 255, 255, 0.12) 62px
        );
    opacity: 0.3;
    z-index: 1;
}

/* Lane Markings */
.lane-markings {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lane-marking {
    position: absolute;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 25px,
        #000000 25px,
        #000000 35px,
        transparent 35px,
        transparent 60px
    );
    opacity: 0.9;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.lane-marking:nth-child(1) {
    top: 37.5%;
    transform: translateY(-50%);
}

.lane-marking:nth-child(2) {
    top: 66%;
    transform: translateY(-50%);
}

/* Starting Line */
.start-line {
    position: absolute;
    left: 0 !important;
    right: auto !important;
    top: 0;
    width: 70px;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            #FFB6C1 0px,
            #FFB6C1 20px,
            #FFD700 20px,
            #FFD700 40px
        );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 
        4px 0 15px rgba(255, 182, 193, 0.6),
        inset 0 0 20px rgba(255, 215, 0, 0.3);
    border-right: 5px solid #FFD700;
    border-radius: 30px 0 0 30px;
}

.start-line::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.start-line::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite 1s;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.start-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF6B9D, #FFB6C1, #FFD700);
    padding: 10px 14px;
    border-radius: 12px;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.4);
    transform: rotate(-90deg);
    white-space: nowrap;
    letter-spacing: 4px;
    box-shadow: 
        0 5px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 0 15px rgba(255, 182, 193, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.7);
}

/* Finish Line */
.finish-line {
    position: absolute;
    right: 0 !important;
    left: auto !important;
    top: 0;
    width: 70px;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            #87CEEB 0px,
            #87CEEB 20px,
            #FFD700 20px,
            #FFD700 40px
        );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 
        -4px 0 15px rgba(135, 206, 235, 0.6),
        inset 0 0 20px rgba(255, 215, 0, 0.3);
    border-left: 5px solid #FFD700;
    border-radius: 0 30px 30px 0;
}

.finish-flag {
    width: 45px;
    height: 32px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF6B6B);
    border: 4px solid #FFFFFF;
    margin-bottom: 12px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 0 15px rgba(255, 215, 0, 0.6);
    position: relative;
    animation: flagWave 3s ease-in-out infinite;
}

@keyframes flagWave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

.finish-flag::after {
    content: '🏁';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.finish-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: #FFFFFF;
    background: linear-gradient(135deg, #87CEEB, #4682B4, #FFD700);
    padding: 10px 14px;
    border-radius: 12px;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.4);
    transform: rotate(-90deg);
    white-space: nowrap;
    letter-spacing: 4px;
    box-shadow: 
        0 5px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 0 15px rgba(135, 206, 235, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.7);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* Track Details - Decorative Elements */
.track-details {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.track-line {
    position: absolute;
    font-size: 2.5rem;
    animation: flowerFloat 6s ease-in-out infinite;
    opacity: 0.8;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.track-line-1 {
    left: 20%;
    top: 20%;
    animation-delay: 0s;
}

.track-line-2 {
    left: 50%;
    top: 60%;
    animation-delay: 2s;
}

.track-line-3 {
    left: 75%;
    top: 30%;
    animation-delay: 4s;
}

@keyframes flowerFloat {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-15px) rotate(10deg) scale(1.1);
    }
}

/* Racer Containers */
.racer-container {
    position: absolute;
    left: 70px;
    width: 90px;
    height: 90px;
    z-index: 4;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.racer-lane-1 {
    top: 18%;
    transform: translateY(-50%);
}

.racer-lane-2 {
    top: 50%;
    transform: translateY(-50%);
}

.racer-lane-3 {
    top: 82%;
    transform: translateY(-50%);
}

.racer-label {
    position: absolute;
    top: -10px;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rocky-label {
    background: linear-gradient(135deg, #5D4037, #8B4513);
    color: #FFFFFF;
    border: 2px solid #F4D03F;
}

.gary-label {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    color: #FFFFFF;
    border: 2px solid #FFD700;
}

.snellie-label {
    background: linear-gradient(135deg, #E91E63, #C2185B);
    color: #FFFFFF;
    border: 2px solid #FFD700;
}

.racer-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
    background: transparent;
}

.racer-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    background: transparent;
}

.racer-lane-1 .racer-fallback {
    background: transparent;
}

.racer-lane-2 .racer-fallback {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    border: 3px solid #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.racer-lane-2 .racer-fallback::before {
    content: '🐌';
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.racer-lane-3 .racer-fallback {
    background: transparent;
}

@keyframes racerBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* Progress Bars */
.race-progress-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.racer-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-label {
    font-size: 1rem;
    font-weight: 900;
    color: #2C3E50;
    min-width: 70px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
}

.progress-bar {
    flex: 1;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.rocky-progress-bar {
    border-color: #5D4037;
}

.gary-progress-bar {
    border-color: #1E88E5;
}

.snellie-progress-bar {
    border-color: #E91E63;
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.rocky-progress {
    background: linear-gradient(90deg, #8B4513, #A0522D, #8B4513);
    background-size: 200% 100%;
    animation: progressShine 2s linear infinite;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}

.gary-progress {
    background: linear-gradient(90deg, #1E88E5, #42A5F5, #1E88E5);
    background-size: 200% 100%;
    animation: progressShine 2s linear infinite;
    box-shadow: 0 0 10px rgba(30, 136, 229, 0.5);
}

.snellie-progress {
    background: linear-gradient(90deg, #E91E63, #F06292, #E91E63);
    background-size: 200% 100%;
    animation: progressShine 2s linear infinite;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

@keyframes progressShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.progress-percent {
    font-size: 1rem;
    font-weight: 900;
    color: #2C3E50;
    min-width: 45px;
    text-align: right;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Mission Section */
.mission-section {
    margin-bottom: 40px;
    padding: 20px;
}

.mission-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 30px 0;
    text-align: center;
    box-shadow: none;
    position: relative;
    overflow: visible;
    backdrop-filter: none;
}

.mission-container::before {
    display: none;
}

.mission-icon {
    font-size: 4rem;
    color: #F4D03F;
    margin-bottom: 20px;
    animation: iconPulse 2s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

.mission-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #5D4037;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #C0392B;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.mission-description {
    font-size: 1.2rem;
    color: #2C3E50;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
}

.call-to-action {
    background: transparent;
    border-radius: 0;
    padding: 25px 0;
    border: none;
}

.cta-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #C0392B;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.buy-button {
    background: linear-gradient(45deg, #27AE60, #2ECC71);
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.buy-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.5s;
}

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

.buy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.info-button {
    background: transparent;
    border: 2px solid #5D4037;
    border-radius: 10px;
    padding: 15px 30px;
    color: #5D4037;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.info-button:hover {
    transform: scale(1.05);
    border-color: #8B4513;
    color: #8B4513;
    background: rgba(93, 64, 55, 0.1);
}

.title {
    font-size: 4rem;
    font-weight: 900;
    color: #5D4037;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
}

.coin-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 10px;
}

.coin-name {
    color: #5D4037;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Floating Content - Character Image */
.floating-content {
    position: relative;
    width: 100%;
    min-height: 300px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rocky-character-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    animation: floatImage 6s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    border-radius: 50%;
    background: transparent;
    padding: 0;
    backdrop-filter: none;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.rocky-character-image.spinning {
    animation: coinSpin 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes coinSpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(7200deg);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.95;
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
        opacity: 1;
    }
}

/* Social Buttons */
.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border: none;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    background: transparent;
}

.x-link {
    color: #000000;
}

.x-link:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    color: #333333;
}

.telegram-link {
    color: #0088cc;
}

.telegram-link:hover {
    background: rgba(0, 136, 204, 0.1);
    transform: scale(1.05);
    color: #006699;
}

/* Removed character panel and interactive panel - no longer needed */

.tap-button {
    background: linear-gradient(45deg, #27AE60, #2ECC71);
    border: none;
    border-radius: 15px;
    padding: 20px 40px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    margin-top: 20px;
}

.tap-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.5s;
}

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

.tap-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.5);
}

.tap-button:active {
    transform: scale(0.95);
}

.contract-box {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #F4D03F;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contract-box:hover {
    border-color: #F7DC6F;
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.25);
}

.contract-label {
    font-size: 0.9rem;
    color: #2C3E50;
    margin-bottom: 10px;
    font-weight: bold;
}

.contract-address {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #27AE60;
    word-break: break-all;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.copy-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #C0392B;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.copy-text:hover {
    color: #E74C3C;
    transform: scale(1.05);
}

.social-button {
    background: linear-gradient(45deg, #C0392B, #E74C3C);
    border: none;
    border-radius: 15px;
    padding: 15px 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.social-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5);
}

.x-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.telegram-button {
    background: linear-gradient(45deg, #0088cc, #00a8ff);
    border: none;
    border-radius: 15px;
    padding: 15px 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.telegram-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
}

.whitepaper-button {
    background: linear-gradient(45deg, #F4D03F, #F7DC6F);
    border: none;
    border-radius: 15px;
    padding: 15px 25px;
    color: #2C3E50;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.whitepaper-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.5);
}

.stats-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #2C3E50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.stat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.stat-dot.session {
    background: #C0392B;
}

.stat-dot.total {
    background: #27AE60;
}

.stat-dot.community {
    background: #F4D03F;
}

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

.reset-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #27AE60;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.reset-link:hover {
    color: #2ECC71;
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    background: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    backdrop-filter: none;
    color: #2C3E50;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    margin-top: 20px;
    padding: 20px 30px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.disclaimer p {
    font-size: 0.9rem;
    color: #2C3E50;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    font-size: 35px;
    animation: confettiFall 2s linear forwards;
    text-shadow: 0 0 10px currentColor;
    will-change: transform, opacity;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Responsive Design */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
}

@media (max-width: 768px) {
    .header {
        margin-bottom: 30px;
    }
    
    .header-left {
        position: relative;
        margin-bottom: 15px;
    }
    
    .header-top {
        position: relative;
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
    }
    
    .header-buttons {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-button, .copy-ca-button {
        font-size: 0.85rem;
        padding: 10px 18px;
        min-width: 120px;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .header-social-links {
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .coin-name {
        font-size: 1.2rem;
    }
    
    .rocky-character-image {
        width: 250px;
        height: 250px;
    }
    
    .floating-content {
        min-height: 250px;
        margin-bottom: 30px;
    }
    
    .race-game-section {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .race-title {
        font-size: 2rem;
    }
    
    .race-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .tap-button {
        font-size: 1.5rem;
        padding: 15px 30px;
    }
    
    .mission-section {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .mission-title {
        font-size: 2rem;
        padding: 0 10px;
    }
    
    .mission-description {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .cta-text {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .buy-button, .info-button {
        font-size: 1.1rem;
        padding: 12px 25px;
        width: 100%;
        max-width: 300px;
    }
    
    .race-track {
        height: 240px;
    }
    
    .racer-container {
        width: 70px;
        height: 70px;
    }
    
    .racer-label {
        font-size: 0.65rem;
        top: -8px;
    }
    
    .progress-label {
        font-size: 0.9rem;
        min-width: 60px;
    }
    
    .progress-percent {
        font-size: 0.9rem;
        min-width: 40px;
    }
    
    .progress-bar {
        height: 22px;
    }
    
    .race-progress-container {
        gap: 12px;
        margin-top: 20px;
    }
    
    .footer {
        margin-top: 30px;
        padding: 15px 0;
        font-size: 0.9rem;
    }
    
    .disclaimer {
        padding: 15px 20px;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .disclaimer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        margin-bottom: 25px;
    }
    
    .header-left {
        position: relative;
        margin-bottom: 10px;
    }
    
    .header-top {
        margin-bottom: 15px;
    }
    
    .header-buttons {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .about-button, .copy-ca-button {
        font-size: 0.75rem;
        padding: 8px 14px;
        min-width: 100px;
    }
    
    .header-social-links {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .coin-name {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .rocky-character-image {
        width: 180px;
        height: 180px;
    }
    
    .floating-content {
        min-height: 180px;
        margin-bottom: 25px;
    }
    
    .race-game-section {
        padding: 10px;
        margin-bottom: 25px;
    }
    
    .race-title {
        font-size: 1.8rem;
    }
    
    .race-subtitle {
        font-size: 0.9rem;
        padding: 0 5px;
        line-height: 1.4;
    }
    
    .tap-button {
        font-size: 1.1rem;
        padding: 12px 20px;
    }
    
    .mission-section {
        padding: 10px;
        margin-bottom: 25px;
    }
    
    .mission-title {
        font-size: 1.5rem;
        padding: 0 5px;
        line-height: 1.3;
    }
    
    .mission-description {
        font-size: 1rem;
        padding: 0 5px;
        line-height: 1.5;
    }
    
    .cta-text {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 10px;
    }
    
    .buy-button, .info-button {
        font-size: 1rem;
        padding: 12px 20px;
        width: 100%;
        max-width: 280px;
    }
    
    .race-track {
        height: 200px;
    }
    
    .racer-container {
        width: 55px;
        height: 55px;
    }
    
    .racer-label {
        font-size: 0.55rem;
        top: -6px;
        padding: 2px 4px;
    }
    
    .progress-label {
        font-size: 0.75rem;
        min-width: 45px;
    }
    
    .progress-percent {
        font-size: 0.75rem;
        min-width: 30px;
    }
    
    .progress-bar {
        height: 20px;
    }
    
    .race-progress-container {
        gap: 10px;
        margin-top: 15px;
    }
    
    .start-line, .finish-line {
        width: 50px;
    }
    
    .start-text, .finish-text {
        font-size: 1rem;
        padding: 8px 10px;
    }
    
    .track-line {
        font-size: 1.5rem;
    }
    
    .footer {
        margin-top: 25px;
        padding: 15px 0;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    
    .disclaimer {
        padding: 12px 15px;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .disclaimer p {
        font-size: 0.75rem;
        padding: 0 5px;
        line-height: 1.5;
    }
    
    .jellyfish {
        width: 80px;
        height: 100px;
        opacity: 0.6;
    }
    
    .jellyfish-bell {
        width: 60px;
        height: 50px;
    }
    
    .tentacle {
        height: 50px;
        width: 2px;
    }
}

/* Thank You Pop-up Styles */
.thank-you-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #F4D03F, #F7DC6F);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(244, 208, 63, 0.3);
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    min-width: 300px;
    max-width: 350px;
}

.thank-you-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #2C3E50;
}

.popup-icon {
    font-size: 30px;
    animation: pulse 2s infinite;
}

.popup-text {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

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

/* Modal Mobile Optimization */
@media (max-width: 768px) {
    .modal-container {
        padding: 25px 15px !important;
        max-width: 95% !important;
        width: 95% !important;
        border-radius: 15px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .modal-container h1 {
        font-size: 2rem !important;
        margin-bottom: 20px !important;
        line-height: 1.2 !important;
    }
    
    .modal-container h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }
    
    .modal-container p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
        padding: 0 5px !important;
    }
    
    .modal-container ul {
        font-size: 0.95rem !important;
    }
    
    .modal-container li {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
    }
    
    .modal-container div[style*="padding: 30px"] {
        padding: 20px 15px !important;
    }
    
    .modal-container div[style*="padding: 25px"] {
        padding: 15px 10px !important;
    }
    
    .modal-container div[style*="padding: 20px"] {
        padding: 15px 10px !important;
    }
    
    .modal-container div[style*="padding: 40px"] {
        padding: 25px 15px !important;
    }
    
    .modal-container button[style*="position: fixed"] {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .modal-container {
        padding: 20px 10px !important;
        max-width: 98% !important;
        width: 98% !important;
        border-radius: 12px !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
    }
    
    .modal-container h1 {
        font-size: 1.6rem !important;
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
        padding: 0 5px !important;
    }
    
    .modal-container h2 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
        padding: 0 5px !important;
    }
    
    .modal-container p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
        padding: 0 5px !important;
    }
    
    .modal-container ul {
        font-size: 0.85rem !important;
        padding: 0 !important;
    }
    
    .modal-container li {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
        padding: 0 5px !important;
    }
    
    .modal-container div[style*="padding"] {
        padding: 12px 8px !important;
    }
    
    .modal-container div[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }
    
    .modal-container div[style*="font-size: 1.5rem"] {
        font-size: 1.2rem !important;
    }
    
    .modal-container button[style*="position: fixed"] {
        top: 8px !important;
        right: 8px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 1.3rem !important;
    }
}

/* Mobile responsive for popup */
@media (max-width: 768px) {
    .thank-you-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .popup-content {
        gap: 10px;
    }
    
    .popup-icon {
        font-size: 24px;
    }
    
    .popup-text {
        font-size: 14px;
    }
}
