/* ===== Launcher Button ===== */
#sc-launcher { text-align: center; padding: 40px 0; }
#sc-open-btn {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #00e5ff;
    border: 2px solid #00e5ff;
    padding: 16px 40px;
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0,229,255,0.4);
    transition: box-shadow .2s, transform .1s;
}
#sc-open-btn:hover { box-shadow: 0 0 40px rgba(0,229,255,0.8); transform: scale(1.04); }

/* ===== Modal ===== */
#sc-modal {
    position: fixed; inset: 0; z-index: 999999;
    background: #000;
    display: flex !important; /* overriden by JS show/hide */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
#sc-modal[style*="display:none"],
#sc-modal[style*="display: none"] { display: none !important; }

/* ===== Canvas ===== */
#sc-canvas {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}

/* ===== HUD ===== */
#sc-hud {
    position: absolute; top: 12px; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 16px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #00e5ff;
    z-index: 10;
    pointer-events: none;
}
#sc-close-btn {
    pointer-events: all;
    background: rgba(255,255,255,0.1);
    border: 1px solid #00e5ff;
    color: #00e5ff;
    font-size: 1.2rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}
#sc-close-btn:hover { background: rgba(0,229,255,0.2); }

/* ===== On-screen controls ===== */
#sc-controls {
    position: absolute;
    bottom: 18px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    z-index: 10;
    user-select: none;
}
.sc-ctrl-row { display: flex; gap: 6px; justify-content: center; }
.sc-btn {
    background: rgba(0,229,255,0.12);
    border: 1.5px solid #00e5ff;
    color: #00e5ff;
    font-size: 1.3rem;
    width: 54px; height: 54px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .1s, transform .05s;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.sc-btn:active, .sc-btn.active {
    background: rgba(0,229,255,0.35);
    transform: scale(0.93);
}
.sc-btn-boost { width: 110px; font-size: 1rem; letter-spacing: 1px; }
.sc-btn-fire  { width: 110px; font-size: 1rem; letter-spacing: 1px; }
.sc-ctrl-actions { gap: 10px; }

@media (min-width: 768px) {
    .sc-btn { width: 60px; height: 60px; }
    .sc-btn-boost, .sc-btn-fire { width: 120px; }
}
