body {
    background-image: url("bg.jpg");
    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    padding-bottom: 3.5rem;
    box-sizing: border-box;
}

header,
div[style] {
    color: #fff;
}

h1,
h2,
label {
    color: #fff;
    font-family: sans-serif;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 2px #000;
}

.settings-panel {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem 3rem;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.track-panel {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1.5rem;
    display: none;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.track-panel img {
    max-width: 100%;
    height: auto;
}

.button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

#randomize,
#reset {
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;

    padding: 0.75rem 2rem;
    /* was 2.5rem — a bit tighter so both fit on one line */
    margin-top: 0;
    /* spacing now handled by .button-row's margin-top + gap */

    border: none;
    border-radius: 50px;
    cursor: pointer;

    background: linear-gradient(135deg, #ff3b3b 0%, #ff8a00 50%, #ffcc00 100%);
    background-size: 200% 200%;
    box-shadow:
        0 6px 0 #b8280f,
        0 10px 20px rgba(0, 0, 0, 0.4);

    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);

    transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.4s ease;
    animation: shimmer 3s ease infinite;
}

#reset {
    margin-left: 1rem;
}

#randomize:hover,
#reset:hover {
    transform: translateY(-3px) scale(1.05);
    background-position: 100% 50%;
    box-shadow:
        0 9px 0 #b8280f,
        0 16px 24px rgba(0, 0, 0, 0.45);
}

#randomize:active,
#reset:active {
    transform: translateY(3px) scale(0.98);
    box-shadow:
        0 2px 0 #b8280f,
        0 4px 10px rgba(0, 0, 0, 0.4);
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.disclaimer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.checkbox-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    body {
        padding-bottom: 4.5rem;
        background-image: url("bg-mobile.jpg");
        background-size: cover;
    }

    .settings-panel,
    .track-panel {
        padding: 1.25rem 1.25rem;
        border-radius: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    label {
        font-size: 0.95rem;
    }

    #randomize,
    #reset {
        font-size: 1.1rem;
        padding: 0.65rem 1.5rem;
        width: 100%;
        margin-left: 0;
    }

    #reset {
        margin-top: 0.75rem;
    }

    .disclaimer {
        font-size: 0.68rem;
        line-height: 1.3;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
}