/* Site theme tokens (navbar.css depends on these) */
:root {
    --primary-blue: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-purple: #8b5cf6;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-page: #f8fafc;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --border-light: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] {
    --primary-blue: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-purple: #a78bfa;
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --bg-card: #1e293b;
    --bg-page: #0f172a;
    --text-dark: #f1f5f9;
    --text-medium: #94a3b8;
    --text-light: #64748b;
    --border-light: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

body.game-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.game-page .navbar.is-game-hidden {
    display: none !important;
}

body.game-page .game-page-shell {
    min-height: 100vh;
    width: 100%;
}

body.game-page .game-page-shell.with-site-navbar {
    padding-top: 60px;
    box-sizing: border-box;
}

body.game-page .game-page-shell.with-site-navbar #game-container {
    height: calc(100vh - 60px);
}

body.game-page .game-page-shell:not(.with-site-navbar) #game-container {
    height: 100vh;
}

/* Keep site navbar theme toggle readable over game styles */
body.game-page .navbar .theme-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    margin-top: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-medium);
    box-shadow: none;
    text-transform: none;
    font-size: inherit;
    font-weight: normal;
    touch-action: auto;
    user-select: none;
}

body.game-page .navbar .theme-toggle:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.06);
    transform: none;
    box-shadow: none;
}

[data-theme='dark'] body.game-page .navbar .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.game-page .navbar .theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.game-page .navbar .theme-toggle .sun-icon circle,
body.game-page .navbar .theme-toggle .sun-icon line {
    fill: none;
    stroke: currentColor;
}

body.game-page .navbar .theme-toggle .moon-icon path {
    fill: currentColor;
    stroke: none;
}
