/* ============================
   Base Layout
   ============================ */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0e0e0e;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================
   Container
   ============================ */

.container {
    text-align: center;
    max-width: 420px;
    padding: 24px;
}

h1 {
    margin-bottom: 24px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================
   Audio Button
   ============================ */

.audio-btn {
    font-size: 18px;
    padding: 12px 36px;
    margin-bottom: 28px;

    border-radius: 999px;
    border: none;
    background: #222;
    color: #fff;

    cursor: pointer;
}

.audio-btn:active {
    transform: scale(0.97);
}

/* ============================
   Arcade Button (Pure CSS)
   ============================ */

.arcade-button {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background:
        radial-gradient(circle at 30% 30%,
            #ff6b6b,
            #e60000 60%,
            #b00000 100%);

    box-shadow:
        inset -8px -12px 0 rgba(0, 0, 0, 0.35),
        inset 8px 8px 0 rgba(255, 255, 255, 0.25),
        0 16px 0 #7a0000,
        0 22px 24px rgba(0, 0, 0, 0.6);

    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;

    margin: 16px 0 28px;

    transition:
        transform 0.08s ease,
        box-shadow 0.08s ease;
}

/* Pressed effect */
.arcade-button:active:not(.disabled) {
    transform: translateY(6px);

    box-shadow:
        inset -6px -8px 0 rgba(0, 0, 0, 0.4),
        inset 6px 6px 0 rgba(255, 255, 255, 0.2),
        0 10px 0 #7a0000,
        0 14px 16px rgba(0, 0, 0, 0.6);
}

/* Disabled state */
.arcade-button.disabled,
.arcade-button:disabled {
    background:
        radial-gradient(circle at 30% 30%,
            #777,
            #555 60%,
            #333 100%);

    box-shadow:
        inset -6px -8px 0 rgba(0, 0, 0, 0.5),
        0 12px 0 #222;

    color: #cccccc;
    cursor: not-allowed;
}

/* ============================
   Stats Section
   ============================ */

.stats {
    margin-top: 16px;
    opacity: 0.85;
}

.stats p {
    margin: 6px 0;
    font-size: 15px;
}
/* ============================
   Light Switch
   ============================ */

.switch-form {
    margin: 32px 0;
}

.switch-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

/* Hide checkbox */
.switch-wrapper input {
    display: none;
}

/* Switch body */
.switch {
    width: 90px;
    height: 48px;
    background: #222;
    border-radius: 24px;
    position: relative;

    box-shadow:
        inset 0 0 6px rgba(0,0,0,0.8),
        0 6px 12px rgba(0,0,0,0.6);

    transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Handle */
.switch-handle {
    width: 40px;
    height: 40px;
    background: linear-gradient(#eee, #aaa);
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;

    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.6),
        inset 0 -2px 4px rgba(0,0,0,0.4),
        0 4px 8px rgba(0,0,0,0.6);

    transition: transform 0.2s ease;
}

/* ON state */
.switch-wrapper input:checked + .switch {
    background: #2ecc71;

    box-shadow:
        0 0 20px rgba(46, 204, 113, 0.9),
        0 0 40px rgba(46, 204, 113, 0.6),
        inset 0 0 6px rgba(0,0,0,0.6);
}

.switch-wrapper input:checked + .switch .switch-handle {
    transform: translateX(42px);
}

/* Label */
.switch-label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Disabled lock */
.switch-wrapper input:disabled + .switch {
    cursor: not-allowed;
}

.switch-wrapper input:disabled + .switch .switch-handle {
    opacity: 0.85;
}
