/* Global Styles & Body */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0b0c10;
    color: #c5c6c7;
    overflow: hidden;
}

/* Typography */
.g-text {
    font-family: 'Orbitron', sans-serif;
    color: #66fcf1;
    text-shadow: 0 0 5px #66fcf1, 0 0 10px #66fcf1;
}

.game-over-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-shadow: 0 0 10px #ff0055, 0 0 20px #ff0055;
}

/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #1f2833, #66fcf1);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #45a29e, #1f2833);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #ff0055;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-center 12s infinite alternate ease-in-out;
    opacity: 0.3;
}

@keyframes float {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(50px) scale(1.05); }
}

@keyframes float-center {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-45%, -55%) scale(1.2); }
}

/* Neo-Glass Containers */
.neo-glass {
    background: rgba(31, 40, 51, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(102, 252, 241, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Canvas Area */
.canvas-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    border: 2px solid rgba(102, 252, 241, 0.4);
}

canvas {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    /* Cursor hidden while playing */
}

/* Overlays */
.glass-overlay {
    position: absolute;
    top: 0; left: 0; w-100; h-100;
    width: 100%; height: 100%;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.glass-overlay.d-none {
    display: none !important;
}

/* Custom Inputs and Buttons */
.glass-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px 0 0 8px;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #66fcf1;
    color: #fff;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}

.btn-neon {
    background: transparent;
    color: #66fcf1;
    border: 2px solid #66fcf1;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}

.btn-neon:hover {
    background: #66fcf1;
    color: #0b0c10;
    box-shadow: 0 0 20px #66fcf1;
}

.btn-neon.btn-lg {
    border-radius: 8px;
}

.restart-btn {
    border-radius: 8px;
}

/* Leaderboard */
.leaderboard-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 600px;
}

.leaderboard-list {
    overflow-y: auto;
}
.leaderboard-list::-webkit-scrollbar {
    width: 6px;
}
.leaderboard-list::-webkit-scrollbar-thumb {
    background: #45a29e;
    border-radius: 3px;
}

.lb-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.lb-item:hover {
    background: rgba(102, 252, 241, 0.1);
    border-color: rgba(102, 252, 241, 0.3);
    transform: translateX(5px);
}

.lb-rank {
    font-family: 'Orbitron', sans-serif;
    color: #45a29e;
    width: 25px;
    font-weight: bold;
}

.lb-name {
    flex-grow: 1;
    font-weight: 600;
}

.lb-score {
    font-family: 'Orbitron', sans-serif;
    color: #66fcf1;
    font-weight: bold;
}
