:root {
    --cream: #F5F1E8;
    --sand: #E8DCC4;
    --earth: #C9B79C;
    --deep-earth: #A68A6D;
    --moss: #8B9B7E;
    --text-dark: #4A4238;
    --text-medium: #6B5D52;
}

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

body {
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 155, 126, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 183, 156, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
    z-index: 0;
    animation: subtleShift 20s ease-in-out infinite;
}

@keyframes subtleShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

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

.app-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 300;
    color: var(--text-medium);
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInTitle 1s ease-out 0.3s forwards;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.peace-button {
    position: relative;
    background: linear-gradient(135deg, var(--sand) 0%, var(--earth) 100%);
    border: none;
    border-radius: 50%;
    width: min(280px, 70vw);
    height: min(280px, 70vw);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    opacity: 0;
    animation: fadeInButton 1s ease-out 0.6s forwards;
}

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.peace-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.06),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}

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

.peace-button.playing {
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 10px 40px rgba(139, 155, 126, 0.2),
            0 2px 8px rgba(0, 0, 0, 0.04),
            inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 15px 60px rgba(139, 155, 126, 0.25),
            0 5px 20px rgba(139, 155, 126, 0.1),
            inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    }
}

.button-text {
    font-family: 'Cormorant', serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
    letter-spacing: 0.02em;
    z-index: 2;
    position: relative;
    padding: 0 2rem;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    pointer-events: none;
}

.peace-button:active .ripple {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.subtitle {
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 300;
    color: var(--text-medium);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInSubtitle 1s ease-out 0.9s forwards;
}

@keyframes fadeInSubtitle {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    
    .app-title {
        margin-bottom: 2.5rem;
    }
    
    .subtitle {
        margin-top: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.peace-button:focus-visible {
    outline: 3px solid var(--moss);
    outline-offset: 8px;
}
