/* ==== Base Styling ==== */
body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: radial-gradient(circle at top, #1a2a6c, #2e3b8d, #000);
    color: #fff;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==== Title ==== */
h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ff4b5c;
    text-shadow: 0 0 10px #ff4b5c, 0 0 20px #ff1e40, 0 0 40px #ff0033;
    animation: glowPulse 2s infinite alternate;
}

/* ==== Score Display ==== */
#score-display {
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: bold;
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    border: 2px solid #00ffcc;
    text-shadow: 0 0 8px #00ffcc;
    animation: fadeInUp 1.2s ease;
}

/* ==== Game Container ==== */
#game-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* responsive */
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 1s ease;
}

/* ==== Color Boxes ==== */
.color-box {
    width: 130px;
    height: 130px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.color-box::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(25deg);
    transition: 0.5s;
    opacity: 0;
}

.color-box:hover::after {
    top: -20%;
    left: -20%;
    opacity: 1;
}

.color-box:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 0 25px rgba(255,255,255,0.4), 
                0 0 40px rgba(255,255,255,0.3);
    filter: brightness(1.2);
}

/* ==== Animations ==== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    from { text-shadow: 0 0 10px #ff4b5c, 0 0 20px #ff1e40, 0 0 40px #ff0033; }
    to { text-shadow: 0 0 20px #ff758c, 0 0 40px #ff3c61, 0 0 60px #ff1e40; }
}
