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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C1810;
}

.container {
    max-width: 400px;
    width: 90%;
    text-align: center;
    padding: 20px;
}

.app-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 30px;
    color: #8B4513;
    font-weight: 500;
}

.debug-info {
    background: rgba(255, 255, 255, 0.3);
    padding: 12px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #8B4513;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.image-container {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.protardio-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: slideIn 0.6s ease-out;
}

.placeholder {
    font-size: 4rem;
    opacity: 0.4;
    color: #8B4513;
}

.action-button {
    background: linear-gradient(45deg, #FF6347, #FF4500);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 99, 71, 0.4);
    margin: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 99, 71, 0.6);
    background: linear-gradient(45deg, #FF4500, #FF6347);
}

.action-button:disabled {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    color: #8B4513;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-button {
    background: linear-gradient(45deg, #32CD32, #228B22);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.4);
}

.share-button:hover {
    background: linear-gradient(45deg, #228B22, #32CD32);
    box-shadow: 0 8px 25px rgba(50, 205, 50, 0.6);
}

.status-message {
    background: rgba(255, 255, 255, 0.25);
    padding: 18px;
    border-radius: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #8B4513;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.cooldown-timer {
    font-size: 1.3rem;
    font-weight: bold;
    color: #B22222;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading .placeholder {
    animation: pulse 1.5s infinite;
}

@keyframes slideIn {
    from { 
        transform: scale(0.8) rotate(-5deg); 
        opacity: 0; 
    }
    to { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

.reset-button {
    background: linear-gradient(45deg, #DAA520, #B8860B);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.reset-button:hover {
    background: linear-gradient(45deg, #B8860B, #DAA520);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.6);
}

.protardio-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #8B4513;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}