/* ------------------------------------------------------------
   EMERGENCY STOP BUTTON (red square button)
------------------------------------------------------------ */
#drift-off-button {
    background: #d60000;          /* solid red button */
    color: #ffffff;               /* white STOP text */
    border: 3px solid #8b0000;    /* darker red outline */
    width: 30px;                  /* square shape */
    height: 30px;
    padding: 0;                   /* no padding */
    border-radius: 4px;           /* slightly rounded corners */
    cursor: pointer;
    box-shadow: 0 4px 0 #8b0000, 0 0 10px rgba(214,0,0,0.4);
    transition: all 0.1s ease-in-out;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.55rem;           /* small but readable */
    font-weight: 700;             /* bold STOP text */
    line-height: 1;
    text-transform: uppercase;    /* STOP in caps */
}

/* Hover effect */
#drift-off-button:hover {
    background: #ff1a1a;
    box-shadow: 0 4px 0 #8b0000, 0 0 14px rgba(214,0,0,0.6);
}

/* Pressed effect */
#drift-off-button:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #8b0000;
}

/* Mobile centering */
@media (max-width: 600px) {
    #drift-off-button {
        margin: 1rem auto;
    }
}
/* ------------------------------------------------------------
   SLIDER ROW LAYOUT
------------------------------------------------------------ */
.drift-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.6rem 0;
}

.drift-slider label {
    width: 110px;
    text-align: right;
    font-size: 1rem;
    color: #000;
    font-weight: 600;
}

.drift-slider input[type="range"] {
    width: 320px;
    max-width: 100%;
    height: 8px;
    appearance: none;
    background: #ccc;
    border-radius: 6px;
    outline: none;
    position: relative;
}

/* WebKit track fill */
.drift-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(to right, #6bb8ff var(--value, 0%), #ccc var(--value, 0%));
    border-radius: 6px;
}

/* Firefox track fill */
.drift-slider input[type="range"]::-moz-range-track {
    height: 8px;
    background: #ccc;
    border-radius: 6px;
}
.drift-slider input[type="range"]::-moz-range-progress {
    height: 8px;
    background: #6bb8ff;
    border-radius: 6px;
}

/* WebKit thumb */
.drift-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #a8d4ff;
    border-radius: 50%;
    border: 2px solid #ffffffaa;
    box-shadow: 0 3px 6px #00000055;
    cursor: pointer;
    margin-top: -6px;
}

/* Firefox thumb */
.drift-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #a8d4ff;
    border-radius: 50%;
    border: 2px solid #ffffffaa;
    box-shadow: 0 3px 6px #00000055;
    cursor: pointer;
}

/* ------------------------------------------------------------
   MOBILE LAYOUT (shorter sliders + centred stop button)
------------------------------------------------------------ */
@media (max-width: 600px) {

    /* Centre the emergency stop button */
    #drift-off-button {
        margin: 1rem auto;
    }

    .drift-slider {
        gap: 0.6rem;
        padding: 0 1rem;
    }

    .drift-slider label {
        width: 80px;
        font-size: 0.85rem;
    }

    .drift-slider input[type="range"] {
        width: 180px;
        max-width: 60%;
        height: 12px;
    }
}


/* Desktop: centre the whole app */
@media (min-width: 601px) {
    #drift-app {
        max-width: 700px;     
        margin: 0 auto;       
    }
}

/* Mobile: keep full width (no change) */
@media (max-width: 600px) {
    #drift-app {
        width: 100%;
        margin: 0;
    }
}

#drift-off-button {
    margin-left: auto;
    margin-right: auto;
    display: block;
}




#drift-meta {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

#drift-meta:hover {
    opacity: 1;
}

#drift-backlink {
    color: inherit;
    text-decoration: none;
    margin-right: 0.5rem;
}

#drift-version {
    font-family: monospace;
}
