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

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --accent-gold: #d4af37;
    --accent-gold-light: #f0d878;
    --accent-gold-dark: #b8941d;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --border-color: #222222;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f0d878 50%, #d4af37 100%);
    --gradient-dark: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: var(--text-primary);
    position: relative;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 1s ease forwards;
}

.brand {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--accent-gold);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Button Styles */
.button-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.button-halo {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

.fart-button {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(212, 175, 55, 0.1),
        inset 0 0 60px rgba(212, 175, 55, 0.05);
}

.fart-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s ease;
}

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

.fart-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 80px rgba(212, 175, 55, 0.2),
        inset 0 0 80px rgba(212, 175, 55, 0.1);
    border-color: var(--accent-gold-light);
}

.fart-button:active {
    transform: scale(0.98);
}

.button-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    animation: float 3s ease-in-out infinite;
}

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

.button-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-transform: uppercase;
}

/* Sound Selector */
.sound-selector {
    margin-bottom: 50px;
}

.selector-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.sound-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.sound-btn {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sound-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-3px);
}

.sound-btn.active {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.sound-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.sound-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Stats Panel */
.stats-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.volume-icon {
    font-size: 1.2rem;
    opacity: 0.6;
}

#volume {
    width: 200px;
    height: 4px;
    -webkit-appearance: none;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transition: transform 0.2s ease;
}

#volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 40px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .sound-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-panel {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 100px;
        height: 1px;
    }
    
    .fart-button {
        width: 220px;
        height: 220px;
    }
    
    .button-halo {
        width: 260px;
        height: 260px;
    }
}
