:root {
    --linebound-player: #8b6cff; /* INSTÄLLNING - Färg på spelarens element. */
    --linebound-ai: #4cc9f0; /* INSTÄLLNING - Färg på motståndarens element. */
    --linebound-neutral: #3f3f46; /* INSTÄLLNING - Färg på omarkerade linjer. */
    --linebound-dot: #fafafa; /* INSTÄLLNING - Färg på prickarna. */

    /* Layout */
    --linebound-page-top-offset: 40px; /* INSTÄLLNING - Avståndet från toppen för hela layouten. */
    --linebound-board-max-size: min(600px, calc(100vh - 350px)); /* INSTÄLLNING - Maxstorlek på spelplanen. */
}

.fade-in-up.delay-1 {
    padding-top: var(--linebound-page-top-offset);
}

#game-container {
    position: relative;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-lg);
    background-color: #050507;
    box-shadow: 0 0 50px rgba(139, 108, 255, 0.03), inset 0 0 30px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    cursor: crosshair;
}

.turn-player {
    color: var(--linebound-player) !important;
    text-shadow: 0 0 15px rgba(139, 108, 255, 0.5) !important;
}

.turn-ai {
    color: var(--linebound-ai) !important;
    text-shadow: 0 0 15px rgba(76, 201, 240, 0.5) !important;
}

.btn-size {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.btn-size:hover {
    color: var(--text);
}

.btn-size.active {
    color: var(--linebound-player);
    background: rgba(139, 108, 255, 0.15);
}


/* INSTÄLLNING - Global Mobile Fallback Fix */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}
@media (max-width: 800px) {
    canvas, .game-canvas, #game-container, #game-stage, #app {
        max-width: 100% !important;
        height: auto;
    }
    .panel, .sidebar, .menu, #ui, #overlay {
        max-width: 100% !important;
        box-sizing: border-box;
    }
}
