* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212; /* डार्क नाइट थीम */
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* पूरी स्क्रीन को भरने वाला कंटेनर */
.main-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 500px; /* डेस्कटॉप पर भी सही दिखेगा */
    margin: 0 auto;
}

/* हेडर - पिंक ग्लो इफेक्ट */
.header {
    padding: 20px;
    text-align: center;
    background: #1f1f1f;
}

.header h2 {
    color: #ff007f;
    letter-spacing: 5px;
    text-shadow: 0 0 10px #ff007f;
}

/* स्कोर बोर्ड - प्रोफेशनल लुक */
.score-container {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #1a1a1a;
}

.score-box {
    text-align: center;
    background: #252525;
    padding: 10px 30px;
    border-radius: 15px;
    border: 1px solid #333;
}

.score-box p {
    font-size: 10px;
    color: #888;
    margin-bottom: 5px;
}

.score-box span {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

/* ग्रिड एरिया - मोबाइल के हिसाब से एडजस्टमेंट */
.board-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #2a2a2a 0%, #121212 100%);
}

.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 8 बराबर कॉलम */
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 12px;
    width: 95vw; /* मोबाइल चौड़ाई */
    max-width: 380px;
    aspect-ratio: 1/1; /* ग्रिड हमेशा चकोर रहेगा */
}

.square {
    width: 100%;
    height: 100%;
    border-radius: 8px; /* थोड़ी गोलाई */
    cursor: pointer;
}

/* कैंडीज का प्रीमियम लुक */
.red    { background: radial-gradient(circle at 30% 30%, #ff4d4d, #b30000); box-shadow: 0 4px #800000; }
.blue   { background: radial-gradient(circle at 30% 30%, #4d94ff, #0047b3); box-shadow: 0 4px #002b6b; }
.green  { background: radial-gradient(circle at 30% 30%, #5cd65c, #1f7a1f); box-shadow: 0 4px #145214; }
.yellow { background: radial-gradient(circle at 30% 30%, #ffff66, #b3b300); box-shadow: 0 4px #808000; }
.purple { background: radial-gradient(circle at 30% 30%, #b366ff, #5c00e6); box-shadow: 0 4px #3d0099; }
.orange { background: radial-gradient(circle at 30% 30%, #ff944d, #b35900); box-shadow: 0 4px #804000; }

.blank { background: none !important; box-shadow: none !important; }

/* बॉटम नेविगेशन */
.footer-nav {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #1f1f1f;
    border-top: 1px solid #333;
}

.nav-item {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.nav-item.active {
    color: #ff007f;
}