/* ============================================================================
   GAME MENU UNIFICATION STYLES
   Shared hero, stats, preview, and CTA layout for MathsVault interactive games
   ============================================================================ */

:root {
    --game-primary: #6366F1;
    --game-secondary: #22D3EE;
    --game-surface: rgba(15, 23, 42, 0.88);
    --game-surface-alt: rgba(30, 41, 59, 0.72);
    --game-border: rgba(148, 163, 184, 0.32);
    --game-border-strong: rgba(148, 163, 184, 0.55);
    --game-text-primary: #E2E8F0;
    --game-text-muted: #94A3B8;
    --game-shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.55);
    --game-shadow-card: 0 18px 40px rgba(15, 23, 42, 0.4);
    --game-shadow-hover: 0 25px 70px rgba(37, 99, 235, 0.22);

    --menu-gradient-start: #0B1120;
    --menu-gradient-end: #0F172A;
    /* Overlay tints derived from the game theme colours */
    --menu-overlay-1: color-mix(in srgb, var(--game-primary) 18%, transparent);
    --menu-overlay-2: color-mix(in srgb, var(--game-secondary, var(--game-primary)) 28%, transparent);
    /* Fallback overlay if color-mix unsupported will use initial value below (overridden later by actual usage) */
    --menu-gradient-overlay: linear-gradient(135deg, rgba(14, 116, 144, 0.12) 0%, rgba(99, 102, 241, 0.18) 100%);

    --menu-spacing-xxs: 0.3rem;
    --menu-spacing-xs: 0.5rem;
    --menu-spacing-sm: 0.85rem;
    --menu-spacing-md: 1.25rem;
    --menu-spacing-lg: 1.85rem;
    --menu-spacing-xl: 2.6rem;
    --menu-spacing-xxl: 3.75rem;

    --menu-radius-sm: 12px;
    --menu-radius-md: 18px;
    --menu-radius-lg: 24px;

    --menu-transition-fast: 0.16s ease;
    --menu-transition: 0.26s ease;
    --menu-transition-slow: 0.42s ease;
    
    /* Menu container max width standard (ensures 9-wide badges fit) */
    --menu-container-max: 1200px;
}

/* ============================================================================
   SHARED GAME BASE STYLES
   Layout shell, buttons, modals, utilities – used across multiple games
   ============================================================================ */

/* Generic game page wrapper (used by individual games via body class) */
.game-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #1E293B;
    background: #f8fafc;
}

.game-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    background: transparent;
}

body.with-game-header .game-shell {
    padding-top: 1.5rem;
}

/* Shared screen toggling */
.game-screen,
.screen {
    display: none;
}

.game-screen.active,
.screen.active {
    display: block;
}

/* Flex variant for games that want full-height flex screens */
.game-screen.flex,
.screen.flex {
    display: none;
}

.game-screen.flex.active,
.screen.flex.active {
    display: flex;
    flex-direction: column;
}

/* ============================================================================
   SHARED BUTTON SYSTEM
   ============================================================================ */

.game-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}

/* Ensure all buttons have high z-index on mobile */
@media (max-width: 768px) {
    .game-btn,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-danger {
        position: relative;
        z-index: 10001;
    }
}

.game-btn:disabled,
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.game-btn-primary,
.btn-primary {
    background: var(--primary-color, #C90C0F);
    border-color: var(--primary-color, #C90C0F);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(201, 12, 15, 0.35);
}

.game-btn-primary:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover, #a00a0c);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(201, 12, 15, 0.45);
}

.game-btn-secondary,
.btn-secondary {
    background: #6b7280;
    border-color: #6b7280;
    color: #ffffff;
}

.game-btn-secondary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
}

.game-btn-success,
.btn-success {
    background: var(--success-color, #22c55e);
    border-color: var(--success-color, #22c55e);
    color: #ffffff;
}

.game-btn-danger,
.btn-danger {
    background: var(--danger-color, #ef4444);
    border-color: var(--danger-color, #ef4444);
    color: #ffffff;
}

.game-btn-icon,
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game-btn-lg,
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.15rem;
}

/* ============================================================================
   SHARED MODAL SHELL
   ============================================================================ */

.game-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1000;
}

.game-modal.active {
    display: flex;
}

.game-modal__dialog {
    background: #ffffff;
    border-radius: 1rem;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    overflow: hidden;
}

.game-modal__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.game-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.game-modal__body {
    padding: 1.5rem;
    overflow-y: auto;
}

.game-modal__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.game-modal__close {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.game-modal__close:hover {
    background: #f3f4f6;
    color: #111827;
}

/* ============================================================================
   SHARED UTILITIES & ACCESSIBILITY
   ============================================================================ */

.hidden {
    display: none !important;
}

.text-centre,
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 3px solid var(--primary-color, #C90C0F);
    outline-offset: 2px;
}

/* ============================================================================
   TYPOGRAPHY BASELINE
   Enforce Rockwell family for all non-Font Awesome text across shared game UIs
   ============================================================================ */
body,
body.game-menu-active,
.game-menu-screen,
.game-menu-container,
.game-menu-screen *:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands),
.game-screen,
.game-screen *:not(i[class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif !important;
}

/* Ensure Font Awesome icons retain their own font family */
i[class*="fa-"]:before,
i[class*="fa-solid"]:before,
i[class*="fa-regular"]:before,
i[class*="fa-brands"]:before,
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 7 Pro", "Font Awesome 6 Pro", "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* ============================================================================
   BACKDROP & SCREEN WRAPPER
   ============================================================================ */

body.game-menu-active {
    background: radial-gradient(circle at top, color-mix(in srgb, var(--game-primary) 12%, transparent), transparent 55%),
                linear-gradient(160deg, var(--menu-gradient-start) 0%, var(--menu-gradient-end) 100%);
    min-height: 100vh;
    color: var(--game-text-primary);
}

.game-menu-screen {
    position: relative;
    min-height: 100vh;
    padding: 0; /* Padding moved to inner container to allow overlay to cover full area */
    display: none;
    overflow: hidden;
    color: var(--game-text-primary);
    isolation: isolate;
}

.game-menu-screen::before {
    content: "";
    position: fixed; /* Ensure backdrop spans full viewport width/height */
    inset: 0;
    background-image: var(--menu-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.28;
    filter: saturate(1.05);
    z-index: 0;
    pointer-events: none;
}

.game-menu-screen::after {
    content: "";
    position: fixed; /* Ensure overlay spans full viewport width/height */
    inset: 0;
    /* Theme-aware overlay: uses derived overlay stops (set inline per game) */
    background: linear-gradient(135deg, var(--menu-overlay-1, rgba(14, 116, 144, 0.12)) 0%, var(--menu-overlay-2, rgba(99, 102, 241, 0.18)) 100%);
    z-index: 0;
    pointer-events: none;
}

.game-menu-screen.active {
    display: block;
}

.game-menu-container {
    position: relative;
    z-index: 1;
    max-width: var(--menu-container-max, 1080px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(var(--menu-spacing-lg), 4vw, var(--menu-spacing-xxl));
    padding: clamp(48px, 6vw, 96px) clamp(16px, 4vw, 72px); /* Apply page padding to inner container */
    min-height: 100vh; /* Allow pushing badges to bottom */
}

/* Badge dropdown elements - positioned relative to container but outside flex flow on mobile */
.badge-dropdown-toggle,
.badge-dropdown-content {
    position: relative;
}

/* ============================================================================
   HERO AREA
   ============================================================================ */

.game-menu-hero {
    display: flex;
    flex-direction: column;
    gap: var(--menu-spacing-sm);
    align-items: center;
    text-align: center;
    order: 10;
}

.game-menu-hero__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--menu-spacing-sm);
}

.game-menu-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.0)), var(--game-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 15px 40px color-mix(in srgb, var(--game-primary) 45%, transparent);
    border: 2px solid color-mix(in srgb, var(--game-primary) 65%, transparent);
    color: var(--game-text-primary);
    font-size: 1.75rem;
}

.game-menu-hero h1 {
    font-size: clamp(2.8rem, 5vw, 3.9rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    color: #F1F5F9;
    text-shadow: 0 20px 45px rgba(15, 23, 42, 0.75);
    -webkit-text-stroke: 2px var(--game-primary);
    text-stroke: 2px var(--game-primary);
}

/* Exclusions: RPSD+ and Calculadle should not use stroked title or themed icon box */
.game-menu-screen.rpsdplus-menu .game-menu-hero__icon,
.game-menu-screen.calculadle-menu .game-menu-hero__icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(2, 132, 199, 0.4));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 15px 40px rgba(30, 64, 175, 0.35);
    border: none;
}
.game-menu-screen.rpsdplus-menu .game-menu-hero h1,
.game-menu-screen.calculadle-menu .game-menu-hero h1 {
    -webkit-text-stroke: 0;
    text-stroke: 0;
}

.game-menu-hero__subtitle {
    margin: 0;
    max-width: 780px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    color: var(--game-text-muted);
}

.game-menu-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--menu-spacing-xs);
    justify-content: center;
}

.game-menu-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(34, 211, 238, 0.16);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: #E0F2FE;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.game-menu-hero__meta {
    margin-top: var(--menu-spacing-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--menu-spacing-xs);
    justify-content: center;
}

.game-menu-hero__meta div {
    background: var(--game-surface-alt);
    border: 1px solid var(--game-border);
    border-radius: var(--menu-radius-sm);
    padding: 0.7rem 1rem;
    min-width: 140px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.game-menu-hero__meta dt {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--game-text-muted);
}

.game-menu-hero__meta dd {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #F8FAFC;
}

/* ============================================================================
   STAT PREVIEW GRID
   ============================================================================ */

.game-menu-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--menu-spacing-sm);
    order: 20;
}

.stat-card {
    background: var(--game-surface);
    border: 2px solid color-mix(in srgb, var(--game-primary) 35%, transparent);
    border-radius: var(--menu-radius-md);
    padding: var(--menu-spacing-md);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
    box-shadow: var(--game-shadow-card);
    transition: transform var(--menu-transition), box-shadow var(--menu-transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--game-shadow-hover);
}

.stat-value {
    font-size: clamp(1.9rem, 3.5vw, 2.35rem);
    font-weight: 700;
    color: var(--game-primary);
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================================
   DAILY / FEATURE PREVIEW
   ============================================================================ */

.game-menu-preview {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--menu-spacing-md);
    align-items: center;
    /* Theme-tinted background and border */
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--game-primary) 22%, transparent),
        color-mix(in srgb, var(--game-secondary, var(--game-primary)) 15%, transparent)
    );
    border: 2px solid color-mix(in srgb, var(--game-primary) 35%, transparent);
    border-radius: var(--menu-radius-lg);
    padding: clamp(1rem, 2.5vw, 1.8rem);
    box-shadow: 0 22px 55px color-mix(in srgb, var(--game-primary) 35%, transparent);
    order: 30;
}

/* Quick Start bar – visually match the preview bar and span full width */
.game-quick-start {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--menu-spacing-sm);
    align-items: center;
    /* Theme-tinted background and border (match preview styling) */
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--game-primary) 22%, transparent),
        color-mix(in srgb, var(--game-secondary, var(--game-primary)) 15%, transparent)
    );
    border: 1px solid color-mix(in srgb, var(--game-primary) 35%, transparent);
    border-radius: var(--menu-radius-lg);
    padding: clamp(1rem, 2.5vw, 1.8rem);
    box-shadow: 0 22px 55px color-mix(in srgb, var(--game-primary) 35%, transparent);
    order: 35; /* just after preview (30), before actions (40) */
}

.game-quick-start__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #F1F5F9;
}

.game-quick-start__buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--menu-spacing-xs);
}

.game-quick-start__buttons .qs-btn,
.game-quick-start__buttons .difficulty-pill {
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: rgba(30, 41, 59, 0.65);
    color: #E2E8F0;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform var(--menu-transition-fast), border-color var(--menu-transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.game-quick-start__buttons .qs-btn:hover,
.game-quick-start__buttons .difficulty-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 234, 212, 0.55);
}

.game-menu-preview__badge {
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.4);
    border: 1px solid rgba(191, 219, 254, 0.45);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #DBEAFE;
    font-size: 0.85rem;
}

.game-menu-preview__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #E2E8F0;
}

.game-menu-preview__date {
    font-weight: 600;
    font-size: 1.05rem;
}

.game-menu-preview__countdown {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.8);
    letter-spacing: 0.04em;
}

.game-menu-preview__extras {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.45rem;
}

.game-menu-preview__extras li {
    display: flex;
    justify-content: space-between;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.85);
}

.game-menu-preview__extras strong {
    font-weight: 600;
    color: #F8FAFC;
}

.game-menu-preview__status {
    padding: 0.45rem 1.1rem;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #BBF7D0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================================================
   CTA STACK
   ============================================================================ */

.game-menu-actions,
.game-menu-options {
	display: grid;
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	justify-items: center;
	align-items: stretch;
	justify-content: center; /* centre the grid within the container */
	order: 40;
}

.game-menu-button {
    border: 2px solid var(--game-primary);
    border-radius: var(--menu-radius-lg);
    background: #0F172A; /* solid dark blue base */
    color: var(--game-primary); /* theme coloured text */
    /* Compact sizing per standards */
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    text-align: center; /* centred label per standards summary */
    cursor: pointer;
    transition: transform var(--menu-transition), box-shadow var(--menu-transition), border-color var(--menu-transition);
    box-shadow: var(--game-shadow-card);
    width: 100%;
    max-width: 280px; /* per standards (~280px per item) */
}

.game-menu-button:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--game-shadow-hover);
}

.game-menu-button:active {
    transform: translateY(-1px);
}

.game-menu-button.primary {
    background: #0F172A; /* keep solid base for primary too */
    border-color: var(--game-primary);
    box-shadow: 0 18px 45px color-mix(in srgb, var(--game-primary) 35%, transparent);
}

.game-menu-button.primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 25px 70px color-mix(in srgb, var(--game-primary) 45%, transparent);
}

.game-menu-button.secondary {
    /* Same base treatment as primary, but without the heavy box shadow */
    background: #0F172A;
    border: 2px solid var(--game-primary);
    box-shadow: var(--game-shadow-card);
}

.game-menu-button.tertiary {
    /* Match primary/secondary visual treatment so all CTAs look consistent */
    background: #0F172A;
    border: 2px solid var(--game-primary);
    box-shadow: var(--game-shadow-card);
}

.game-menu-button.outline {
    background: transparent;
    border: 2px solid color-mix(in srgb, var(--game-primary) 55%, transparent);
}

.game-menu-button-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.12);
    border: 2px solid color-mix(in srgb, var(--game-primary) 40%, transparent);
    font-size: 1.25rem;
    color: var(--game-primary);
}

.game-menu-button-text {
    font-size: 1.1rem;
    font-weight: 600;
    align-self: center;
}

.game-menu-button-subtext {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    color: #E2E8F0;
    border: 1px solid var(--game-border);
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: var(--game-shadow-card);
    pointer-events: none;
    display: none;
    z-index: 10;
}

.game-menu-button:hover .game-menu-button-subtext {
    display: block;
}

.game-menu-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================================
   DAILY BUTTON AUTO-HIDE
   Auto-hide Daily Challenge button when today's challenge is completed.
   Convention:
     - Root menu element (.game-menu-screen) sets data-daily-state="completed"
     - Daily button carries data-role="play-daily"
   ============================================================================ */
.game-menu-screen[data-daily-state="completed"] .game-menu-actions [data-role="play-daily"] {
    display: none !important;
}

/* ============================================================================
   DAILY NUDGE MODAL (shared)
   Shown once per day on first visit when daily is available.
   ============================================================================ */
.game-menu-nudge-overlay[hidden] { display: none !important; }
.game-menu-nudge-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.game-menu-nudge-modal {
    background: var(--game-surface, rgba(15, 23, 42, 0.92));
    border: 1px solid var(--game-border, rgba(148,163,184,0.3));
    border-radius: 18px;
    padding: 1.5rem;
    width: min(520px, 92vw);
    color: var(--game-text-primary, #E2E8F0);
    position: relative;
    box-shadow: var(--game-shadow-card, 0 18px 40px rgba(15, 23, 42, 0.4));
    text-align: center;
}
.game-menu-nudge-modal .nudge-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(148,163,184,0.12);
    color: var(--game-text-primary, #E2E8F0);
    cursor: pointer;
    font-size: 1.25rem;
}
.game-menu-nudge-modal .nudge-close:hover {
    background: rgba(148,163,184,0.22);
}
.game-menu-nudge-modal .nudge-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--game-secondary, #22D3EE);
}
.game-menu-nudge-modal .nudge-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}
.game-menu-nudge-modal .nudge-subtitle {
    margin: 0 0 1rem 0;
    color: var(--game-text-muted, #94A3B8);
}
.game-menu-nudge-modal .nudge-actions {
    display: grid;
    justify-items: center;
}
.game-menu-nudge-modal .nudge-play {
    padding: 0.85rem 1.25rem;
}

/* Ensure nudge modal buttons have high z-index on mobile */
@media (max-width: 768px) {
    .game-menu-nudge-modal .nudge-close,
    .game-menu-nudge-modal .nudge-play {
        position: relative;
        z-index: 10001;
    }
}

/* ============================================================================
   CARD SLOT (QUICK START / CUSTOM BLOCKS)
   ============================================================================ */

.game-menu-card,
.play-card {
    background: var(--game-surface);
    border: 1px solid var(--game-border);
    border-radius: var(--menu-radius-lg);
    padding: var(--menu-spacing-md);
    box-shadow: var(--game-shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--menu-spacing-sm);
    order: 45;
}

/* Make Quick Start cards span full container width */
/* Quick Start moved outside actions; no special row management needed here */
.play-card.quick-start .difficulty-buttons,
.game-menu-card.quick-start .difficulty-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--menu-spacing-xs);
}

/* Badges at bottom */
.badge-display-section {
    order: 50;
    margin-top: auto;
    position: relative;
    z-index: 1;
    /* Theme-tinted container styling to match preview/quick-start */
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--game-primary) 18%, transparent),
        color-mix(in srgb, var(--game-secondary, var(--game-primary)) 12%, transparent)
    );
    border: 1px solid color-mix(in srgb, var(--game-primary) 30%, transparent);
    border-radius: var(--menu-radius-lg);
    padding: clamp(1rem, 2.2vw, 1.6rem);
    box-shadow: 0 18px 45px color-mix(in srgb, var(--game-primary) 30%, transparent);
}

/* Hide badge section when game screen is active */
body:not(.game-menu-active) .badge-display-section {
    display: none;
}

/* Hide mobile dropdown elements on desktop */
.badge-dropdown-toggle,
.badge-dropdown-content {
    display: none;
}

.game-menu-card__header,
.play-card h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.game-menu-card__subtext,
.play-card .hint-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--game-text-muted);
    line-height: 1.55;
}

.difficulty-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--menu-spacing-xs);
}

.difficulty-pill {
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: rgba(30, 41, 59, 0.65);
    color: #E2E8F0;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform var(--menu-transition-fast), border-color var(--menu-transition-fast);
}

.difficulty-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 234, 212, 0.55);
}

.difficulty-pill.easy { border-color: rgba(16, 185, 129, 0.45); }
.difficulty-pill.medium { border-color: rgba(59, 130, 246, 0.45); }
.difficulty-pill.hard { border-color: rgba(250, 204, 21, 0.45); }
.difficulty-pill.expert { border-color: rgba(248, 113, 113, 0.45); }
.difficulty-pill.mini { border-color: rgba(129, 140, 248, 0.45); }

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 1024px) {
    .game-menu-container {
        padding: clamp(32px, 5vw, 64px) clamp(16px, 5vw, 48px);
    }

    .game-menu-actions,
    .game-menu-options {
        grid-auto-columns: minmax(200px, 1fr);
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
    }

    .game-menu-preview {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .game-menu-preview__status {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    /* Compact mobile layout - fit everything in one view */
    .game-menu-container {
        padding: clamp(24px, 4vw, 32px) clamp(16px, 4vw, 24px);
        gap: var(--menu-spacing-md);
        min-height: auto;
        max-height: 100vh;
        overflow-y: auto;
    }

    /* Hide hero icon on mobile */
    .game-menu-hero__icon {
        display: none !important;
    }

    .game-menu-hero h1 {
        font-size: clamp(2rem, 5vw, 2.5rem) !important;
        margin: 0;
        -webkit-text-stroke: 2px var(--game-primary) !important;
        text-stroke: 2px var(--game-primary) !important;
    }

    /* Override ALL game-specific title overrides on mobile - must be more specific than game CSS */
    .game-menu-screen .mathdle-menu .game-menu-hero__title h1,
    .game-menu-screen .mathdle-menu .game-menu-hero h1,
    .game-menu-screen .calculadle-menu .game-menu-hero__title h1,
    .game-menu-screen .calculadle-menu .game-menu-hero h1,
    .game-menu-screen .solitaire-menu .game-menu-hero__title h1,
    .game-menu-screen .solitaire-menu .game-menu-hero h1,
    .game-menu-screen .yahtzee-menu .game-menu-hero__title h1,
    .game-menu-screen .yahtzee-menu .game-menu-hero h1,
    .game-menu-screen .guesswho-menu .game-menu-hero__title h1,
    .game-menu-screen .guesswho-menu .game-menu-hero h1,
    .game-menu-screen .numero-uno-menu .game-menu-hero__title h1,
    .game-menu-screen .numero-uno-menu .game-menu-hero h1,
    .game-menu-screen .countdown-menu .game-menu-hero__title h1,
    .game-menu-screen .countdown-menu .game-menu-hero h1,
    .game-menu-screen .triggle-menu .game-menu-hero__title h1,
    .game-menu-screen .triggle-menu .game-menu-hero h1,
    .game-menu-screen .battleships-menu .game-menu-hero__title h1,
    .game-menu-screen .battleships-menu .game-menu-hero h1,
    .game-menu-screen .pwordle-menu .game-menu-hero__title h1,
    .game-menu-screen .pwordle-menu .game-menu-hero h1,
    .game-menu-screen .connections-menu .game-menu-hero__title h1,
    .game-menu-screen .connections-menu .game-menu-hero h1,
    .game-menu-screen .sudoku-menu .game-menu-hero__title h1,
    .game-menu-screen .sudoku-menu .game-menu-hero h1,
    .game-menu-screen .rpsdplus-menu .game-menu-hero__title h1,
    .game-menu-screen .rpsdplus-menu .game-menu-hero h1 {
        font-size: clamp(2rem, 5vw, 2.5rem) !important;
        -webkit-text-stroke: 2px var(--game-primary) !important;
        text-stroke: 2px var(--game-primary) !important;
    }

    .game-menu-hero__subtitle {
        display: none;
    }

    .game-menu-hero__badges {
        display: none;
    }

    .game-menu-hero__meta {
        display: none;
    }

    /* Compact horizontal stats - one line */
    .game-menu-stats {
        display: flex;
        flex-direction: row;
        gap: var(--menu-spacing-xs);
        grid-template-columns: none;
        order: 20;
    }

    .stat-card {
        flex: 1;
        min-width: 0;
        padding: var(--menu-spacing-sm);
        gap: 0.25rem;
    }

    .stat-value {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
        line-height: 1.2;
    }

    .stat-label {
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .stat-label i {
        font-size: 0.7rem;
    }

    /* Hide preview block on mobile */
    .game-menu-preview {
        display: none !important;
    }

    /* Hide quick start block on mobile */
    .game-quick-start {
        display: none !important;
    }

    /* Full width buttons in single column */
    .game-menu-actions,
    .game-menu-options {
        display: flex;
        flex-direction: column;
        gap: var(--menu-spacing-xs);
        grid-template-columns: none;
        grid-auto-flow: none;
        order: 30;
    }

    .game-menu-button {
        width: 100%;
        max-width: 100%;
        grid-template-columns: auto 1fr;
        text-align: left;
        align-items: center;
        position: relative;
        z-index: 10001;
        padding: 0.85rem 1rem;
    }

    .game-menu-button-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .game-menu-button-text {
        justify-self: flex-start;
        text-align: left;
    }

    /* Hide desktop badge display section on mobile */
    .badge-display-section {
        display: none !important;
    }

    /* Badge dropdown toggle and content - inside container but full width */
    .badge-dropdown-toggle,
    .badge-dropdown-content {
        order: 40;
        margin-top: var(--menu-spacing-xs);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Badge dropdown toggle button - show on mobile */
    .badge-dropdown-toggle {
        display: grid;
        width: 100%;
        border: 2px solid var(--game-primary);
        border-radius: var(--menu-radius-lg);
        background: #0F172A;
        color: var(--game-primary);
        padding: 0.85rem 1rem;
        grid-template-columns: auto 1fr auto;
        gap: 0.85rem;
        align-items: center;
        cursor: pointer;
        transition: transform var(--menu-transition), box-shadow var(--menu-transition), border-color var(--menu-transition);
        box-shadow: var(--game-shadow-card);
        position: relative;
        z-index: 10001;
    }

    .badge-dropdown-toggle:hover {
        transform: translateY(-2px);
        border-color: rgba(99, 102, 241, 0.5);
        box-shadow: var(--game-shadow-hover);
    }

    .badge-dropdown-toggle-icon {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border-radius: 16px;
        background: rgba(148, 163, 184, 0.12);
        border: 2px solid color-mix(in srgb, var(--game-primary) 40%, transparent);
        font-size: 1.25rem;
        color: var(--game-primary);
        flex-shrink: 0;
    }

    .badge-dropdown-toggle-text {
        font-size: 1.1rem;
        font-weight: 600;
        text-align: left;
    }

    .badge-dropdown-toggle-chevron {
        font-size: 0.9rem;
        color: var(--game-primary);
        transition: transform var(--menu-transition);
        flex-shrink: 0;
    }

    .badge-dropdown-toggle.open .badge-dropdown-toggle-chevron {
        transform: rotate(180deg);
    }

    /* Badge dropdown content - hidden by default */
    .badge-dropdown-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--menu-transition-slow), padding var(--menu-transition-slow);
        padding: 0;
        margin-top: var(--menu-spacing-xs);
        background: var(--game-surface);
        border: 2px solid color-mix(in srgb, var(--game-primary) 35%, transparent);
        border-radius: var(--menu-radius-md);
        box-shadow: var(--game-shadow-card);
    }

    .badge-dropdown-content.open {
        max-height: 60vh;
        padding: var(--menu-spacing-md);
        overflow-y: auto;
    }

    .badge-dropdown-content .badge-display-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .badge-dropdown-content .badge-display-image {
        width: 60px;
        height: 60px;
    }

    .badge-dropdown-content .badge-display-item {
        max-width: 100px;
    }

    .badge-dropdown-content .badge-display-name {
        font-size: 0.7rem;
    }

    /* Ensure all button types have high z-index on mobile */
    .qs-btn,
    .difficulty-pill {
        position: relative;
        z-index: 10001;
    }
}

@media (max-width: 480px) {
    /* Ensure consistent title size on very small mobile (480px breakpoint) */
    .game-menu-hero h1 {
        font-size: clamp(2rem, 5vw, 2.5rem) !important;
        -webkit-text-stroke: 2px var(--game-primary) !important;
        text-stroke: 2px var(--game-primary) !important;
    }

    /* Override ALL game-specific title overrides on very small mobile (480px breakpoint) */
    .game-menu-screen .mathdle-menu .game-menu-hero__title h1,
    .game-menu-screen .mathdle-menu .game-menu-hero h1,
    .game-menu-screen .calculadle-menu .game-menu-hero__title h1,
    .game-menu-screen .calculadle-menu .game-menu-hero h1,
    .game-menu-screen .solitaire-menu .game-menu-hero__title h1,
    .game-menu-screen .solitaire-menu .game-menu-hero h1,
    .game-menu-screen .yahtzee-menu .game-menu-hero__title h1,
    .game-menu-screen .yahtzee-menu .game-menu-hero h1,
    .game-menu-screen .guesswho-menu .game-menu-hero__title h1,
    .game-menu-screen .guesswho-menu .game-menu-hero h1,
    .game-menu-screen .numero-uno-menu .game-menu-hero__title h1,
    .game-menu-screen .numero-uno-menu .game-menu-hero h1,
    .game-menu-screen .countdown-menu .game-menu-hero__title h1,
    .game-menu-screen .countdown-menu .game-menu-hero h1,
    .game-menu-screen .triggle-menu .game-menu-hero__title h1,
    .game-menu-screen .triggle-menu .game-menu-hero h1,
    .game-menu-screen .battleships-menu .game-menu-hero__title h1,
    .game-menu-screen .battleships-menu .game-menu-hero h1,
    .game-menu-screen .pwordle-menu .game-menu-hero__title h1,
    .game-menu-screen .pwordle-menu .game-menu-hero h1,
    .game-menu-screen .connections-menu .game-menu-hero__title h1,
    .game-menu-screen .connections-menu .game-menu-hero h1,
    .game-menu-screen .sudoku-menu .game-menu-hero__title h1,
    .game-menu-screen .sudoku-menu .game-menu-hero h1,
    .game-menu-screen .rpsdplus-menu .game-menu-hero__title h1,
    .game-menu-screen .rpsdplus-menu .game-menu-hero h1 {
        font-size: clamp(2rem, 5vw, 2.5rem) !important;
        -webkit-text-stroke: 2px var(--game-primary) !important;
        text-stroke: 2px var(--game-primary) !important;
    }
}

@media (max-width: 540px) {
    .game-menu-container {
        padding: clamp(20px, 3vw, 24px) clamp(12px, 3vw, 16px);
        gap: var(--menu-spacing-sm);
    }

    .game-menu-hero h1 {
        font-size: clamp(2rem, 5vw, 2.5rem) !important;
        -webkit-text-stroke: 2px var(--game-primary) !important;
        text-stroke: 2px var(--game-primary) !important;
    }

    /* Override ALL game-specific title overrides on small mobile - must be more specific than game CSS */
    .game-menu-screen .mathdle-menu .game-menu-hero__title h1,
    .game-menu-screen .mathdle-menu .game-menu-hero h1,
    .game-menu-screen .calculadle-menu .game-menu-hero__title h1,
    .game-menu-screen .calculadle-menu .game-menu-hero h1,
    .game-menu-screen .solitaire-menu .game-menu-hero__title h1,
    .game-menu-screen .solitaire-menu .game-menu-hero h1,
    .game-menu-screen .yahtzee-menu .game-menu-hero__title h1,
    .game-menu-screen .yahtzee-menu .game-menu-hero h1,
    .game-menu-screen .guesswho-menu .game-menu-hero__title h1,
    .game-menu-screen .guesswho-menu .game-menu-hero h1,
    .game-menu-screen .numero-uno-menu .game-menu-hero__title h1,
    .game-menu-screen .numero-uno-menu .game-menu-hero h1,
    .game-menu-screen .countdown-menu .game-menu-hero__title h1,
    .game-menu-screen .countdown-menu .game-menu-hero h1,
    .game-menu-screen .triggle-menu .game-menu-hero__title h1,
    .game-menu-screen .triggle-menu .game-menu-hero h1,
    .game-menu-screen .battleships-menu .game-menu-hero__title h1,
    .game-menu-screen .battleships-menu .game-menu-hero h1,
    .game-menu-screen .pwordle-menu .game-menu-hero__title h1,
    .game-menu-screen .pwordle-menu .game-menu-hero h1,
    .game-menu-screen .connections-menu .game-menu-hero__title h1,
    .game-menu-screen .connections-menu .game-menu-hero h1,
    .game-menu-screen .sudoku-menu .game-menu-hero__title h1,
    .game-menu-screen .sudoku-menu .game-menu-hero h1,
    .game-menu-screen .rpsdplus-menu .game-menu-hero__title h1,
    .game-menu-screen .rpsdplus-menu .game-menu-hero h1 {
        font-size: clamp(2rem, 5vw, 2.5rem) !important;
        -webkit-text-stroke: 2px var(--game-primary) !important;
        text-stroke: 2px var(--game-primary) !important;
    }

    .stat-card {
        padding: var(--menu-spacing-xs);
    }

    .stat-value {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .game-menu-button {
        padding: 0.75rem 0.9rem;
    }

    .game-menu-button-text {
        font-size: 1rem;
    }

    .badge-dropdown-toggle {
        padding: 0.75rem 0.9rem;
    }

    .badge-dropdown-toggle-text {
        font-size: 1rem;
    }

    .badge-dropdown-content .badge-display-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    /* Ensure buttons remain on top on smaller mobile screens */
    .game-menu-button,
    .badge-dropdown-toggle,
    .qs-btn,
    .difficulty-pill {
        position: relative;
        z-index: 10001;
    }
}


/* Force mobile view - applies mobile styles regardless of screen size */
body.force-mobile-view {
    /* Override all desktop media queries to use mobile styles */
}

body.force-mobile-view .game-menu-hero__icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

body.force-mobile-view .game-menu-hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
}

body.force-mobile-view .game-menu-stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

body.force-mobile-view .game-menu-button {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
    position: relative;
    z-index: 10001;
}

body.force-mobile-view .game-menu-button-icon {
    margin: 0 auto;
}

body.force-mobile-view .game-menu-button-text,
body.force-mobile-view .game-menu-button-subtext {
    justify-self: center;
    text-align: center;
}

body.force-mobile-view .game-menu-container {
    padding: clamp(32px, 5vw, 64px) clamp(16px, 5vw, 48px);
}

body.force-mobile-view .game-menu-actions,
body.force-mobile-view .game-menu-options {
    grid-auto-columns: minmax(200px, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
}

body.force-mobile-view .game-menu-preview {
    grid-template-columns: 1fr;
    text-align: center;
}

body.force-mobile-view .game-menu-preview__status {
    justify-self: center;
}

/* Force desktop view - prevents mobile styles from applying */
body.force-desktop-view {
    /* Override mobile media queries to use desktop styles */
}

body.force-desktop-view .game-menu-hero__icon {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
}

body.force-desktop-view .game-menu-hero h1 {
    font-size: clamp(2.8rem, 5vw, 3.9rem);
}

body.force-desktop-view .game-menu-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.force-desktop-view .game-menu-button {
    grid-template-columns: auto 1fr;
    text-align: left;
}

body.force-desktop-view .game-menu-button-icon {
    margin: 0;
}

body.force-desktop-view .game-menu-container {
    padding: clamp(48px, 6vw, 96px) clamp(16px, 4vw, 72px);
}

body.force-desktop-view .game-menu-actions,
body.force-desktop-view .game-menu-options {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-flow: row;
}

body.force-desktop-view .game-menu-preview {
    grid-template-columns: auto 1fr auto;
    text-align: left;
}

@media (max-width: 768px) {
    .jonners-view-toggle {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .view-toggle-btn {
        padding: 0.55rem 0.85rem;
        font-size: 0.85rem;
    }
    
    .toggle-label {
        font-size: 0.8rem;
    }
    
    /* On actual mobile devices, respect the force classes */
    body.force-desktop-view .game-menu-hero__icon {
        width: 64px !important;
        height: 64px !important;
        font-size: 1.75rem !important;
    }
    
    body.force-desktop-view .game-menu-hero h1 {
        font-size: clamp(2.8rem, 5vw, 3.9rem) !important;
    }
    
    body.force-desktop-view .game-menu-stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    }
    
    body.force-desktop-view .game-menu-button {
        grid-template-columns: auto 1fr !important;
        text-align: left !important;
    }
    
    body.force-desktop-view .game-menu-button-icon {
        margin: 0 !important;
    }
    
    body.force-desktop-view .game-menu-container {
        padding: clamp(48px, 6vw, 96px) clamp(16px, 4vw, 72px) !important;
    }
    
    body.force-desktop-view .game-menu-actions,
    body.force-desktop-view .game-menu-options {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        grid-auto-flow: row !important;
    }
    
    body.force-desktop-view .game-menu-preview {
        grid-template-columns: auto 1fr auto !important;
        text-align: left !important;
    }
    
}

/* ============================================================================
   FULLSCREEN MODE (Jonners only)
   ============================================================================ */

body.fullscreen-mode {
    overflow: hidden;
}

/* Hide game header when in fullscreen */
body.fullscreen-mode .game-header,
body.fullscreen-mode .game-top-bar,
body.fullscreen-mode .game-header-mobile-nav,
body.fullscreen-mode .game-header-mobile-overlay {
    display: none !important;
}

/* Fullscreen mode for game menu screens */
body.fullscreen-mode .game-menu-screen {
    padding-top: 0;
}

body.fullscreen-mode .game-menu-container {
    padding-top: clamp(16px, 3vw, 48px);
}


/* Hide any other navigation/header elements in fullscreen */
body.fullscreen-mode header,
body.fullscreen-mode nav,
body.fullscreen-mode .mobile-nav,
body.fullscreen-mode .mobile-overlay,
body.fullscreen-mode .burger-menu {
    display: none !important;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.game-menu-hidden {
    display: none !important;
}

.game-menu-text-center {
    text-align: center;
}

.game-menu-mb-sm { margin-bottom: var(--menu-spacing-sm); }
.game-menu-mb-md { margin-bottom: var(--menu-spacing-md); }
.game-menu-mb-lg { margin-bottom: var(--menu-spacing-lg); }
.game-menu-mt-sm { margin-top: var(--menu-spacing-sm); }
.game-menu-mt-md { margin-top: var(--menu-spacing-md); }
.game-menu-mt-lg { margin-top: var(--menu-spacing-lg); }



