body {
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a40 100%);
    color: white;
    font-family: 'Space Mono', 'Courier New', monospace;
    font-weight: 400;
}

#container {
    width: 100vw;
    height: 100vh;
}

#info {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    pointer-events: auto;
    background: rgba(0,0,0,0.6);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

#info p {
    margin: 8px 0;
    font-size: 14px;
    opacity: 0.9;
}

#stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

#objectCount, #gravityStatus, #massTotal {
    font-size: 16px;
    margin: 8px 0;
    padding: 5px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 3px solid #00ccff;
}

#gravityStatus {
    border-left-color: #ff6600;
}

#massTotal {
    border-left-color: #00ff88;
}

h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
    background: linear-gradient(45deg, #00ccff, #ff6600, #00ff88);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#controls {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

#controls button {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

#controls button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#controls button:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

#controls button:hover:before {
    left: 100%;
}

#controls button.active {
    background: linear-gradient(45deg, rgba(0,204,255,0.3), rgba(0,255,136,0.3));
    border-color: #00ccff;
    box-shadow: 0 0 20px rgba(0,204,255,0.4), inset 0 0 20px rgba(0,255,136,0.1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,204,255,0.4), inset 0 0 20px rgba(0,255,136,0.1); }
    50% { box-shadow: 0 0 30px rgba(0,204,255,0.6), inset 0 0 30px rgba(0,255,136,0.2); }
}

#controls button:active {
    transform: scale(0.95);
}

#score {
    font-size: 24px;
    color: #00ff00;
    margin-top: 10px;
}

#objectCount {
    font-size: 18px;
    color: #00ccff;
    margin-top: 10px;
}

#gameOver {
    display: none !important;
}