:root {
    --bg-color: #050510;
    --primary: #00f3ff;
    --secondary: #bc13fe;
    --warning: #ff3366;
    --text-main: #ffffff;
    --text-dim: #a0a0c0;
    --glass-bg: rgba(10, 10, 20, 0.6);
    --glass-border: rgba(0, 243, 255, 0.2);
    --font-heading: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay {
    position: relative;
    z-index: 10;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.brand {
    display: flex;
    flex-direction: column;
}

.logo-glitch {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 2px;
    position: relative;
    text-shadow: 2px 2px 0px var(--secondary);
}

.subtitle {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--primary);
    opacity: 0.8;
}

.status-indicator {
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.blink {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- Main Content --- */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    align-items: center;
}

/* Glass Panel Common */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Profile Card */
.profile-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 0 100%);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    margin-bottom: 10px;
    position: relative;
}

.profile-card h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    text-transform: uppercase;
}

.bio {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.6;
    border-left: 2px solid var(--secondary);
    padding-left: 15px;
}

.btn-primary-glow {
    margin-top: 20px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.btn-primary-glow:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

.tip {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 10px;
}

/* Nav Cards */
.category-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s;
    animation: slideIn 0.5s backwards;
    animation-delay: var(--delay);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.nav-card:hover {
    transform: translateX(-10px);
    border-color: var(--secondary);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* --- Footer --- */
footer {
    padding: 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.separator {
    margin: 0 10px;
    color: var(--primary);
}

/* --- HUD (Game UI) --- */
.hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none; /* Let clicks pass through to canvas if needed, but mostly for UI */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    transition: opacity 0.5s;
}

.hud.hidden {
    opacity: 0;
}

.hud-top {
    display: flex;
    justify-content: space-between;
}

.score-board, .distance-board {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: skewX(-15deg);
}

.label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

#score-val, #dist-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
}

.hud-center {
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.modal {
    background: rgba(5, 5, 16, 0.9);
    border: 2px solid var(--warning);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 50px rgba(255, 51, 102, 0.2);
}

.modal.hidden {
    display: none;
}

.modal h2 {
    font-family: var(--font-heading);
    color: var(--warning);
    font-size: 2rem;
    margin-bottom: 20px;
}

.btn-glitch {
    background: var(--warning);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    padding: 10px 20px;
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
}

.hud-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.controls-hint {
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
}

.health-bar {
    width: 300px;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--primary);
    transform: skewX(-15deg);
}

.health-fill {
    width: 100%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    header {
        padding: 20px;
    }
    
    .profile-card h1 {
        font-size: 2rem;
    }
}
