:root {
    --bg-color: #0d0f1a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --accent-glow: 0 0 20px rgba(100, 200, 255, 0.3);
    --neon-blue: #00f3ff;
    --neon-pink: #bc13fe;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1a1c2e 0%, #0d0f1a 100%);
}

.app-container {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
}

/* Game Layout */
.game-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    min-width: 120px;
}

.info-box {
    text-align: center;
}

.info-box h3 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.info-box div {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Canvas & Board */
.game-board-container {
    position: relative;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#game-canvas {
    display: block;
    background-color: rgb(15, 15, 20);
    /* Grid background effect */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    /* Assuming 20px block size */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Overlay */
#game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 15, 26, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 4px;
}

.hidden {
    display: none !important;
}

#overlay-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
}

#overlay-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.glow-btn {
    background: transparent;
    color: white;
    border: 1px solid var(--neon-blue);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.glow-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

/* AdSense */
.adsense-wrapper {
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.adsense-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.ad-placeholder {
    width: 160px;
    height: 600px;
    /* standard skyscraper */
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }

    .adsense-wrapper {
        width: 100%;
        max-width: 500px;
    }

    .ad-placeholder {
        width: 100%;
        height: 100px;
        /* Responsive height */
    }
}