html, body
{
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: relative;
}

/* Background canvas */
canvas
{
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    cursor: crosshair;
}

/* FPS panel */
#stats
{
    position: fixed;
    bottom: 5px;
    right: 5px;
    top: auto !important;
    left: auto !important;
    z-index: 100;
    pointer-events: none !important;
    cursor: default !important;
}
#stats *, #stats canvas
{
    pointer-events: none !important;
}

/* dat.GUI controls */
.dg.ac
{
    z-index: 200 !important;
    position: absolute;
    top: 5px;
    right: 5px;
}
.dg, .dg *
{
    cursor: default !important;
}

/* Glowing title text */
#logo
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.30);
    text-shadow: 0 0 15px #00ccbb, 0 0 30px #0099cc;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Main login button */
#login-button
{
    position: absolute;
    top: calc(50% + 70px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #00ffee;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid #00ccff;
    padding: 10px 24px;
    min-width: 130px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #00ccff;
    box-shadow: 0 0 12px #00ccff, inset 0 0 6px #00ffee;
    cursor: pointer;
    z-index: 10;
    text-align: center;
    white-space: nowrap;
    opacity: 0.10;
    transition-property: background, border, box-shadow, transform, opacity;
    transition-duration: 0.2s,     0.2s,     0.2s,        0.2s,     0.6s;
    transition-timing-function: ease, ease, ease, ease, ease;
    cursor: default !important;
}

/* Hover or active-state visual lift */
#login-button:hover,
#login-button.lit
{
    opacity: 0.60;
}

/* Press-in effect */
#login-button:active
{
    transform: translateX(-50%) scale(0.95);
}

/* Angry red "denied" state */
#login-button.denied
{
    background: rgba(75, 0, 0, 0.35);
    border-color: #ff0033;
    color: #ff4444;
    box-shadow: 0 0 10px #ff0033, inset 0 0 6px #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

/* Hide "Open Controls" button from dat.GUI */
.dg .close-button
{
    display: none !important;
}