/* ============================================
   CYBER::TOWER — Stylesheet
   ============================================ */

:root {
    --bg: #0a0a0f;
    --neon-blue: #00d4ff;
    --neon-green: #00ff88;
    --neon-pink: #ff2d78;
    --text: #c0c8d8;
    --text-bright: #e8eaf6;
    --text-dim: #556677;
    --font-head: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    overflow: hidden;
    background: var(--bg);
    font-family: var(--font-mono);
    color: var(--text);
}

canvas { display: block; }

/* ===== BLOCKER / START SCREEN ===== */

#blocker {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

#blocker.hidden { display: none; }

#blocker-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

#blocker-content h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    color: var(--neon-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 212, 255, 0.2);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

#blocker-content .pink {
    color: var(--neon-pink);
    text-shadow: 0 0 20px rgba(255, 45, 120, 0.5);
}

#blocker-content .subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.controls-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.control-row {
    font-size: 0.9rem;
    color: var(--text);
}

kbd {
    display: inline-block;
    padding: 0.2em 0.5em;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 3px;
    margin: 0 0.15em;
}

.click-hint {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--neon-pink);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== HUD ===== */

#hud {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 100;
}

#hud-floor {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    letter-spacing: 0.15em;
}

#hud-fragments {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

#hud-interact {
    position: fixed;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 100;
}

/* ===== CROSSHAIR ===== */

#crosshair {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: rgba(0, 212, 255, 0.5);
    pointer-events: none;
    z-index: 100;
    font-family: var(--font-mono);
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

/* ===== NOTIFICATION ===== */

#notification {
    position: fixed;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    text-align: center;
    max-width: 600px;
    padding: 1rem 2rem;
    background: rgba(0, 20, 40, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#notification.visible {
    opacity: 1;
}

/* ===== TOUCH CONTROLS ===== */

#touch-controls {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 90;
}

.joystick-zone {
    position: absolute;
    bottom: 2rem;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.06);
    border: 2px solid rgba(0, 212, 255, 0.15);
    pointer-events: auto;
    touch-action: none;
}

#joystick-left { left: 2rem; }
#joystick-right { right: 2rem; }

.joystick-thumb {
    position: absolute;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.25);
    border: 2px solid var(--neon-blue);
    transform: translate(-50%, -50%);
    top: 50%; left: 50%;
    pointer-events: none;
}

#touch-interact {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.12);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
}

#touch-jump {
    position: absolute;
    bottom: 2rem;
    right: calc(50% + 5rem);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.12);
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
}

#touch-throw {
    position: absolute;
    bottom: 2rem;
    left: calc(50% + 5rem);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255, 45, 120, 0.12);
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
}

/* ===== TERMINAL OVERLAY ===== */

#terminal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

#terminal-content {
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    background: rgba(0, 15, 30, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--text);
}

#terminal-content h2 {
    font-family: var(--font-head);
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

#terminal-content p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

#terminal-content input,
#terminal-content select {
    font-family: var(--font-mono);
    background: rgba(0, 0, 0, 0.6);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 0.5rem;
    font-size: 1rem;
    outline: none;
    width: 100%;
    margin: 0.5rem 0;
}

#terminal-content button,
.terminal-btn {
    font-family: var(--font-head);
    padding: 0.6rem 1.5rem;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 1rem;
    transition: background 0.2s;
}

#terminal-content button:hover,
.terminal-btn:hover {
    background: rgba(0, 212, 255, 0.25);
}

.terminal-btn.success {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.12);
}

.terminal-btn.success:hover {
    background: rgba(0, 255, 136, 0.25);
}

#terminal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 45, 120, 0.12);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    cursor: pointer;
    z-index: 501;
}

#terminal-close:hover {
    background: rgba(255, 45, 120, 0.25);
}

/* ===== TRANSITION OVERLAY ===== */

#transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

#transition-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== UTILITY ===== */

.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    #blocker-content h1 { font-size: 2rem; }
    #hud { padding: 0.5rem 1rem; }
    #hud-floor { font-size: 0.8rem; }
    #hud-fragments { font-size: 0.75rem; }
    #notification { font-size: 0.85rem; padding: 0.8rem 1.2rem; max-width: 85vw; }
}
