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

body {
    color: #F2E6CC;
    font-family: 'Anton', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow-x: hidden;

    /* Warm cloudy sky — sepia-tinted storm */
    background:
        radial-gradient(ellipse at 20% 40%, rgba(140, 110, 70, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 25%, rgba(160, 130, 80, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 75%, rgba(80, 60, 40, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 55%, rgba(120, 100, 65, 0.25) 0%, transparent 35%),
        linear-gradient(180deg,
            #1a1610 0%,
            #2a2418 20%,
            #3d3425 40%,
            #4a3e2c 55%,
            #3d3425 70%,
            #2a2418 85%,
            #1a1610 100%
        );
    background-attachment: fixed;
}

/* -- Film Grain Overlay -- */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* -- Tiled Cover Art Background -- */

.bg-covers {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    filter: blur(4px);
    overflow: hidden;
}

.bg-covers img {
    width: calc(100% / 3);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .bg-covers img {
        width: calc(100% / 4);
    }
}

@media (min-width: 1200px) {
    .bg-covers img {
        width: calc(100% / 5);
    }
}

/* -- Dark Overlay (45%) -- */

.bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

/* -- Main Content -- */

.container {
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* -- Title -- */

.title {
    font-size: clamp(2.8rem, 12vw, 7rem);
    line-height: 1;
    color: #F2E6CC;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow:
        3px 3px 0 rgba(0, 0, 0, 0.9),
        -1px -1px 0 rgba(100, 80, 50, 0.5),
        0 0 30px rgba(180, 140, 60, 0.15),
        4px 4px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 1.5rem;
    user-select: none;
}

/* -- Button -- */

.btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(160px, 35vw, 240px);
    height: clamp(160px, 35vw, 240px);
}

.smash-button {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #F2E6CC;
    background-color: #8B2020;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid #C4A44A;
    border-radius: 50%;
    width: clamp(160px, 35vw, 240px);
    height: clamp(160px, 35vw, 240px);
    padding: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease, background-image 0.3s ease;
    box-shadow:
        0 6px 0 #5a1414,
        0 8px 20px rgba(139, 32, 32, 0.4);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin: 0 auto;
    line-height: 1.15;
}

.btn-text {
    position: relative;
    z-index: 2;
    text-shadow:
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6);
}

.smash-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 0 #5a1414,
        0 12px 30px rgba(139, 32, 32, 0.5);
}

.smash-button:active {
    transform: translateY(4px);
    box-shadow:
        0 2px 0 #5a1414,
        0 4px 10px rgba(139, 32, 32, 0.2);
}

/* Loading state */
.smash-button.loading {
    animation: loading-pulse 0.6s ease-in-out infinite alternate;
}

.smash-button.loading::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid transparent;
    border-top-color: #C4A44A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes loading-pulse {
    from { background-color: #8B2020; }
    to { background-color: #6d1818; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Playing state */
.smash-button.playing {
    animation: playing-pulse 0.3s ease-in-out infinite alternate;
    box-shadow:
        0 2px 0 #5a1414,
        0 0 30px rgba(139, 32, 32, 0.5);
    font-size: clamp(0.85rem, 2.5vw, 1.15rem);
    letter-spacing: 0.05em;
}

.smash-button.playing::before,
.smash-button.playing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 3px solid #C4A44A;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-expand 1s ease-out infinite;
}

.smash-button.playing::after {
    animation-delay: 0.5s;
}

@keyframes playing-pulse {
    from { background-color: #8B2020; border-color: #C4A44A; }
    to { background-color: #A52828; border-color: #D4B45A; }
}

@keyframes ring-expand {
    0% { width: 100%; height: 100%; opacity: 0.6; border-width: 3px; }
    100% { width: 200%; height: 200%; opacity: 0; border-width: 1px; }
}

