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

body {
    background-color: #0f172a;
    font-family: 'Outfit', sans-serif;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Ambient Effects */
.ambient-light {
    position: absolute;
    width: 60vh;
    height: 60vh;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, rgba(15,23,42,0) 70%);
    filter: blur(100px);
    opacity: 0.8;
    z-index: -1;
    animation: floatLight 10s ease-in-out infinite alternate;
}

@keyframes floatLight {
    0% { transform: translate(-30px, -30px); }
    100% { transform: translate(50px, 50px); }
}

.background-blobs {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.3;
    animation: floatingBlobs 25s infinite alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 40vw; height: 40vw;
    background: #d946ef;
}
.blob-2 {
    bottom: -10%; right: -10%;
    width: 40vw; height: 40vw;
    background: #06b6d4;
    animation-delay: -5s;
}

@keyframes floatingBlobs {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

/* Glass UI Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.game-container {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.header {
    text-align: center;
}

.text-gradient {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(to right, #06b6d4, #d946ef);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.layout {
    display: flex;
    gap: 2rem;
}

/* Canvas Board Wrapper */
.canvas-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    padding: 4px;
}

canvas {
    display: block;
    border-radius: 4px;
}

/* Sidebar Utilities */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    width: 200px;
    border-radius: 16px;
}

.info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.info-box span {
    font-size: 0.85rem;
    color: #94a3b8;
    letter-spacing: 1px;
    font-weight: 600;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: text-shadow 0.2s ease;
}

/* Neon Glow Button */
.neon-btn {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.neon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
    filter: brightness(1.15);
}

.controls-hint {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.8;
}

.controls-hint p:first-child {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    text-align: center;
}
