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

body {
    font-family: 'Arial Black', Arial, sans-serif;
    background: linear-gradient(45deg, #ff0080, #ff8c00, #ffd700, #00ff00, #00bfff, #8b00ff);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Temu-style Header */
.header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ff0000, #ff6600, #ffff00);
    border: 8px solid #fff;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

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

.flashy-text {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    text-shadow: 
        4px 4px 0px #000,
        -2px -2px 0px #000,
        2px -2px 0px #000,
        -2px 2px 0px #000,
        0 0 20px rgba(255, 255, 255, 0.8);
    animation: flash 1s ease-in-out infinite;
    margin-bottom: 10px;
}

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

.subtitle {
    font-size: 24px;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.price-tag {
    font-size: 72px;
    color: #00ff00;
    font-weight: 900;
    text-shadow: 
        3px 3px 0px #000,
        0 0 30px rgba(0, 255, 0, 0.8);
    margin-top: 10px;
    animation: bounce 1s ease-in-out infinite;
}

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

/* Screen Management */
.screen {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    border: 5px solid #ff0080;
}

.screen.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Start Screen */
.big-button {
    background: linear-gradient(135deg, #ff0080, #ff6600);
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    border: 6px solid #000;
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.6);
    transition: all 0.3s;
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 0, 128, 0.6); }
    50% { box-shadow: 0 10px 50px rgba(255, 0, 128, 1); }
}

.big-button:hover {
    transform: scale(1.1);
    animation: none;
}

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

.button-text {
    display: block;
    font-size: 36px;
    font-weight: 900;
    text-shadow: 3px 3px 0px #000;
    margin-bottom: 10px;
}

.button-subtext {
    display: block;
    font-size: 20px;
    opacity: 0.9;
}

.disclaimer {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Clue Screen */
.clue-number {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: #ff0080;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #000;
}

.clue-box {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    border: 5px solid #ff6600;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clue-text {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    text-align: center;
    line-height: 1.6;
}

.location-name {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    color: #ff0080;
    margin: 20px 0;
    text-shadow: 2px 2px 0px #000;
    padding: 15px;
    background: rgba(255, 0, 128, 0.1);
    border-radius: 10px;
    border: 3px dashed #ff0080;
}

.found-button {
    display: block;
    margin: 30px auto;
    padding: 20px 40px;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    border: 5px solid #000;
    border-radius: 15px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.5);
    transition: all 0.3s;
}

.found-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 255, 0, 0.8);
}

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

.letter-prompt {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    color: #ff0080;
    margin: 20px 0;
    text-shadow: 2px 2px 0px #000;
}

.submit-letter-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff0080, #ff6600);
    color: #fff;
    border: 5px solid #000;
    border-radius: 15px;
    cursor: pointer;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
    box-shadow: 0 5px 20px rgba(255, 0, 128, 0.5);
    transition: all 0.3s;
}

.submit-letter-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 0, 128, 0.8);
}

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

.progress-bar {
    width: 100%;
    height: 30px;
    background: #ddd;
    border-radius: 15px;
    border: 3px solid #000;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.letters-collected {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 0, 0.3);
    border-radius: 10px;
    border: 2px solid #ffd700;
}

#letters-display {
    font-size: 32px;
    color: #ff0080;
    font-weight: 900;
    letter-spacing: 5px;
    text-shadow: 2px 2px 0px #000;
}

/* Password Screen */
.password-title {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    color: #ff0080;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px #000;
}

.password-instructions {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.letters-collected-final {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    color: #ff0080;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 0, 128, 0.1);
    border-radius: 15px;
    border: 4px solid #ff0080;
    letter-spacing: 10px;
    text-shadow: 2px 2px 0px #000;
}

#password-input {
    width: 100%;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    border: 5px solid #000;
    border-radius: 15px;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 25px;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff0080, #ff6600);
    color: #fff;
    border: 5px solid #000;
    border-radius: 15px;
    cursor: pointer;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
    box-shadow: 0 5px 20px rgba(255, 0, 128, 0.5);
    transition: all 0.3s;
}

.submit-button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 0, 128, 0.8);
}

.error-message {
    text-align: center;
    color: #ff0000;
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 10px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

/* Final Screen - Epileptic Celebration */
#final-screen {
    background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ffff00, #ff00ff, #00ffff);
    background-size: 400% 400%;
    animation: epilepticBg 0.1s linear infinite;
    border: 10px solid #fff;
    border-radius: 30px;
    box-shadow: 0 0 50px rgba(255, 0, 0, 1), inset 0 0 50px rgba(255, 255, 0, 0.8);
}

@keyframes epilepticBg {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg) brightness(1.5); }
    25% { background-position: 100% 50%; filter: hue-rotate(90deg) brightness(2); }
    50% { background-position: 50% 100%; filter: hue-rotate(180deg) brightness(1.5); }
    75% { background-position: 50% 0%; filter: hue-rotate(270deg) brightness(2); }
    100% { background-position: 0% 50%; filter: hue-rotate(360deg) brightness(1.5); }
}

.final-title {
    text-align: center;
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 
        4px 4px 0px #000,
        -4px -4px 0px #000,
        4px -4px 0px #000,
        -4px 4px 0px #000,
        0 0 30px rgba(255, 255, 255, 1);
    animation: epilepticFlash 0.15s linear infinite, epilepticPulse 0.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes epilepticFlash {
    0%, 100% { 
        color: #ff0000;
        transform: scale(1) rotate(0deg);
    }
    16.66% { 
        color: #00ff00;
        transform: scale(1.1) rotate(5deg);
    }
    33.33% { 
        color: #0000ff;
        transform: scale(0.9) rotate(-5deg);
    }
    50% { 
        color: #ffff00;
        transform: scale(1.15) rotate(3deg);
    }
    66.66% { 
        color: #ff00ff;
        transform: scale(0.95) rotate(-3deg);
    }
    83.33% { 
        color: #00ffff;
        transform: scale(1.05) rotate(2deg);
    }
}

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

.final-message {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    color: #000;
    line-height: 2;
    padding: 40px;
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    border-radius: 20px;
    border: 8px solid #000;
    margin: 20px 0;
    animation: epilepticShake 0.1s linear infinite, epilepticColor 0.2s linear infinite;
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.8),
        inset 0 0 20px rgba(255, 255, 0, 0.5);
}

@keyframes epilepticShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-3px, 3px) rotate(1deg); }
    50% { transform: translate(3px, -3px) rotate(-1deg); }
    75% { transform: translate(-2px, -2px) rotate(0.5deg); }
}

@keyframes epilepticColor {
    0%, 100% { 
        border-color: #ff0000;
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 0, 0.5);
    }
    25% { 
        border-color: #00ff00;
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.8), inset 0 0 20px rgba(255, 0, 255, 0.5);
    }
    50% { 
        border-color: #0000ff;
        box-shadow: 0 0 30px rgba(0, 0, 255, 0.8), inset 0 0 20px rgba(0, 255, 255, 0.5);
    }
    75% { 
        border-color: #ffff00;
        box-shadow: 0 0 30px rgba(255, 255, 0, 0.8), inset 0 0 20px rgba(255, 0, 0, 0.5);
    }
}

.celebration {
    text-align: center;
    font-size: 48px;
    margin-top: 30px;
    animation: epilepticBounce 0.2s ease-in-out infinite, epilepticRotate 0.3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
}

@keyframes epilepticBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.2); }
}

@keyframes epilepticRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.go-now {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #ff0000, #00ff00, #0000ff);
    background-size: 200% 200%;
    animation: epilepticBg 0.1s linear infinite, epilepticFlash 0.15s linear infinite;
    border: 8px solid #fff;
    border-radius: 20px;
    text-shadow: 
        3px 3px 0px #000,
        -3px -3px 0px #000;
    box-shadow: 0 0 40px rgba(255, 255, 255, 1);
}

/* Footer */
.footer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.scrolling-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    animation: scroll 10s linear infinite;
}

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

/* Responsive */
@media (max-width: 600px) {
    .flashy-text {
        font-size: 32px;
    }
    
    .price-tag {
        font-size: 48px;
    }
    
    .button-text {
        font-size: 24px;
    }
    
    .clue-text {
        font-size: 18px;
    }
    
    .location-name {
        font-size: 24px;
    }
}

