.game-page-main {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.game-mode-layout {
    box-sizing: border-box;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 1.5rem;
}

.trivia-game-main { max-width: none !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.trivia-game-main > .container:first-of-type,
.true-false-game-main > .container:first-of-type { box-sizing: border-box; width: min(1280px, calc(100% - 48px)); max-width: none; margin: 0 auto !important; padding: 0 !important; }
.trivia-game-main > .container:first-of-type .breadcrumb-container,
.true-false-game-main > .container:first-of-type .breadcrumb-container { padding: .5rem 0 0 !important; margin: 0 !important; }
.trivia-game-shell { box-sizing: border-box; width: min(1280px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 1.5rem; align-items: start; }
.trivia-game-shell > .game-layout { width: 100%; max-width: none !important; box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; }
.trivia-game-shell #game-card { position: relative; }
.trivia-game-shell .trivia-progress-wrap { width: min(72%, 620px) !important; margin-inline: auto; }
.true-false-game-main { max-width: none !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.true-false-game-shell { box-sizing: border-box; width: min(1280px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 1.5rem; align-items: start; }
.true-false-game-shell > .game-layout { width: 100%; max-width: none !important; box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; min-height: 0 !important; }
.true-false-game-shell #game-card { position: relative; }
.true-false-game-shell .true-false-progress-wrap { width: min(72%, 620px) !important; margin-inline: auto; }
.true-false-game-shell .tf-progress-row { justify-content: center !important; }
.true-false-game-shell .tf-progress-row #progress-badge { margin-inline: auto; }
.true-false-game-shell .tf-progress-row .like-btn { position: absolute; right: 0; }
.weekly-game-layout .true-false-progress-wrap { width: min(72%, 620px) !important; margin-inline: auto; }
.weekly-game-layout .tf-progress-row { justify-content: center !important; }
.weekly-game-layout .tf-progress-row .like-btn { position: absolute; right: 0; }
.tf-score-pill { position: absolute; top: 1rem; right: 1rem; display: flex; align-items: center; gap: .65rem; padding: .3rem .8rem; border-radius: 999px; background: #eef2ff; color: #6366f1; }
.tf-score-pill span { font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.tf-score-pill strong { color: #4338ca; font-size: 1.15rem; line-height: 1; }
.trivia-score-pill { position: absolute; top: 1rem; right: 1rem; display: flex; align-items: center; gap: .65rem; padding: .3rem .8rem; border-radius: 999px; background: #eef2ff; color: #6366f1; }
.trivia-score-pill span { font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.trivia-score-pill strong { color: #4338ca; font-size: 1.15rem; line-height: 1; }

.game-sound-toggle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 30;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    padding: .25rem .55rem;
    font: 600 .7rem/1.2 inherit;
    cursor: pointer;
}
.game-sound-toggle[aria-pressed="true"] { background: #ecfdf5; border-color: #bbf7d0; color: #15803d; }
.game-sound-toggle[aria-pressed="false"] { background: #fff1f2; border-color: #fecdd3; color: #be123c; }

.game-mode-breadcrumbs {
    grid-column: 1 / -1;
    width: 100%;
    padding: .5rem 0 0 !important;
    margin: 0 !important;
}

.game-mode-layout > .game-layout {
    width: 100%;
    max-width: none !important;
}

.game-mode-sidebar {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(30, 41, 59, 0.06);
}
.game-mode-sidebar__section + .game-mode-sidebar__section { margin-top: 1rem; }

.game-mode-sidebar h2 {
    margin: 0 0 .7rem;
    color: #1e293b;
    font-size: .95rem;
    line-height: 1.2;
}

.game-mode-sidebar__links {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.game-mode-sidebar__links a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .4rem;
    padding: .55rem .65rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #334155;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}

.game-mode-sidebar__links a:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.game-mode-sidebar__links a span:last-child {
    color: #94a3b8;
}
.game-mode-sidebar__links a small { display: block; max-width: 11rem; margin-top: .15rem; color: #94a3b8; font-size: .66rem; line-height: 1.25; font-weight: 400 !important; }
.game-mode-sidebar__links [hidden] { display: none; }
.game-mode-sidebar__more { margin-top: .55rem; border: 0; background: transparent; color: #4f46e5; font: 600 .75rem/1.2 inherit; cursor: pointer; padding: .2rem 0; }
.game-mode-sidebar__more:hover { color: #4338ca; text-decoration: underline; }

@media (max-width: 900px) {
    .true-false-game-shell { width: calc(100% - 1rem); }
    .true-false-game-shell { display: flex; flex-direction: column; gap: .75rem; }
    .true-false-game-shell .true-false-progress-wrap { width: 100% !important; margin-top: 2.25rem !important; }
    .weekly-game-layout .true-false-progress-wrap { width: 100% !important; margin-top: 2.25rem !important; }
    .trivia-game-main > .container:first-of-type,
    .true-false-game-main > .container:first-of-type { width: calc(100% - 1rem); }
    .trivia-game-shell { width: calc(100% - 1rem); display: flex; flex-direction: column; gap: .75rem; }
    .trivia-game-shell > .game-layout { min-height: 0 !important; }
    .game-mode-layout {
        width: min(100%, calc(100% - 1rem));
        display: flex;
        flex-direction: column;
        gap: .75rem;
    }

    .game-mode-sidebar {
        width: 100%;
        box-sizing: border-box;
        margin-top: 0;
    }

    .game-mode-sidebar__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }

    .trivia-game-shell .trivia-progress-wrap {
        width: 100% !important;
        margin-top: 2.25rem !important;
    }

    /* The final "Game/Spel" crumb is redundant in the compact mobile header. */
    .game-mode-breadcrumbs .breadcrumb-item.active { display: none; }
}
