.game-player-page {
    height: 100dvh;
    overflow: hidden;
}

.l3-page.game-player {
    --game-header-height: 60px;
    --game-header-side: 204px;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    padding: 0;
}

.game-player::before,
.game-player::after {
    content: none;
}

.game-player .l3-topbar {
    grid-template-columns: var(--game-header-side) minmax(0, 1fr) var(--game-header-side);
    gap: 24px;
    flex: 0 0 var(--game-header-height);
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(58, 74, 105, .1);
}

.game-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.game-player .l3-logo {
    justify-content: flex-start;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
}

.game-player .l3-logo img {
    width: 152px;
    max-width: 100%;
}

.game-title {
    overflow: hidden;
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-menu-button,
.game-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #303b52;
    cursor: pointer;
}

.game-menu-button svg,
.game-search-toggle svg {
    width: 22px;
    height: 22px;
}

.game-menu-button:hover,
.game-search-toggle:hover {
    background: #f0f3f8;
}

.game-player .l3-logo:focus-visible,
.game-menu-button:focus-visible,
.game-search-toggle:focus-visible,
.game-menu-link:focus-visible {
    outline: 2px solid #3278d2;
    outline-offset: 3px;
}

.game-search-area {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.game-player .l3-search {
    width: 100%;
    height: 36px;
    margin: 0;
    padding: 2px;
    border: 2px solid #3278d2;
    border-radius: 999px;
    background: #3278d2;
    box-shadow: 0 2px 6px rgba(58, 74, 105, .12);
}

.game-player .l3-search:focus-within {
    border-color: #3278d2;
    box-shadow: 0 0 0 2px rgba(50, 120, 210, .12);
}

.game-player .l3-search input {
    height: 100%;
    padding: 0 12px;
    border-radius: 0 999px 999px 0;
    font-size: 14px;
    font-weight: 600;
}

.game-player .l3-search-icon {
    width: 30px;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, .75);
    border-left: 0;
    border-radius: 999px 0 0 999px;
    background: transparent;
}

.game-player .l3-search svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.game-search-toggle {
    display: none;
}

.game-menu-panel {
    position: fixed;
    inset: var(--game-header-height) auto 0 0;
    width: 240px;
    height: calc(100dvh - var(--game-header-height));
    max-height: none;
    margin: 0;
    padding: 16px 12px;
    overflow-y: auto;
    border: 0;
    border-right: 1px solid #e7ebf1;
    background: #fff;
    color: var(--ink);
    box-shadow: 6px 0 18px rgba(58, 74, 105, .1);
}

.game-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
}

.game-menu-link svg {
    width: 20px;
    height: 20px;
}

.game-menu-link:hover {
    background: #f3f5f9;
}

.game-menu-link.is-active {
    background: #edf4ff;
    color: #0754bd;
}

.game-menu-categories {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e7ebf1;
}

.game-search-panel {
    position: fixed;
    inset: calc(var(--game-header-height) + 8px) 12px auto auto;
    width: min(320px, calc(100vw - 24px));
    margin: 0;
    padding: 8px;
    border: 1px solid #e7ebf1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(58, 74, 105, .15);
}

.game-page {
    display: flex;
    flex: 1;
    min-height: 0;
}

.game-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 640px) {
    .game-player .l3-topbar:has(.evaluation-back) {
        grid-template-columns: auto minmax(0, 1fr) 80px;
    }
    .l3-page.game-player {
        --game-header-height: 56px;
    }

    .game-player .l3-topbar {
        grid-template-columns: auto minmax(0, 1fr) 40px;
        gap: 8px;
        padding: 0 12px;
    }

    .game-player .l3-logo img {
        width: 116px;
    }

    .game-title {
        font-size: 18px;
    }

    .game-player .game-desktop-search {
        display: none;
    }

    .game-search-toggle {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .game-player .game-identity:has(~ .game-search-area .evaluation-back) .l3-logo {
        display: none;
    }
    .game-player .l3-logo img {
        width: 100px;
    }

    .game-title {
        font-size: 16px;
    }
}
