:root {
    --bg-color: #0d0d12;
    --panel-bg: rgba(26, 26, 35, 0.7);
    --accent-color: #00f2ff;
    --neon-pink: #ff00c1;
    --neon-green: #39ff14;
    --text-primary: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', 'Inter', -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 193, 0.03) 0%, transparent 40%);
}

.app-container {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 95vw;
    max-width: 1200px;
    height: 95vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.css-logo {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.logo-paddle {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 20px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-color);
}

.logo-ball {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-pink);
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--accent-color), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-wrapper {
    position: relative;
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    justify-content: center;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.message-box {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.glow-btn {
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--accent-color), var(--neon-pink));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.glow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 193, 0.4);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stats {
    display: flex;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.stat-item {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.stat-item span {
    color: var(--accent-color);
    margin-left: 0.5rem;
}

.signature {
    font-size: 0.9rem;
    color: #df00ff;
    text-shadow: 0 0 10px #df00ff, 0 0 20px #df00ff;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 600;
}

.help-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.help-item {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-item span {
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .app-container {
        padding: 1rem;
        height: 95vh;
    }
    .stats {
        gap: 1rem;
        padding: 0.8rem 1rem;
    }
    .help-section {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}
