.ts-command-bar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: clamp(0px, 1.35vw, 26px);
    color: #e9deca;
    font: 600 15px/1.3 system-ui, sans-serif;
}
.ts-command-bar--footer {
    position: fixed;
    inset: auto 0 0;
    z-index: 7700;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 8px clamp(8px, 1.25vw, 24px) max(3px, env(safe-area-inset-bottom));
    min-height: 48px;
    background: rgba(18, 15, 12, .58);
    backdrop-filter: blur(7px);
    text-shadow: 0 1px 3px #000;
    border-bottom: 1px solid #d7ba7855;
}
.ts-command-bar--footer::before {
    content: "";
    position: absolute;
    inset: 8px clamp(8px, 1.25vw, 24px) auto;
    border-top: 1px solid #dfc58b26;
    pointer-events: none;
}
.ts-command-bar button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: 7px clamp(4px, .7vw, 14px);
    min-height: 32px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
}
.ts-command-bar button[hidden] { display: none !important; }
.ts-command-bar button span { color: #d4b777; }
.ts-command-bar button:hover { color: #ffdfa4; background: #dfc58b0c; }
.ts-command-bar button:focus-visible, .ts-command-close:focus-visible { outline: 2px solid #e6c37d; outline-offset: -2px; }
.ts-command-bar small { margin-inline-start: auto; color: #b5b1ab; font-size: 10px; font-weight: 400; white-space: nowrap; }
.duel-header-actions:has(.ts-command-bar) { display: flex; align-items: center; }
.ts-command-bar--duel { gap: 2px; margin-inline-start: 8px; font-size: 12px; }
.ts-command-bar--duel small { margin-inline-start: 5px; }
.ts-command-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #080604bf;
    color: #f1e6d0;
}
.ts-command-dialog iframe { display: block; width: 100%; height: 100%; border: 0; }
.ts-command-close {
    position: absolute;
    z-index: 1;
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    width: 38px;
    height: 38px;
    border: 1px solid #c7a66b;
    border-radius: 4px;
    background: #211b15;
    color: #f1e6d0;
    font: 24px/1 system-ui, sans-serif;
    cursor: pointer;
}
@media (max-width: 1050px) {
    .ts-command-bar--duel small { display: none; }
}
@media (max-width: 640px) {
    .ts-command-bar { font-size: clamp(9px, 2.5vw, 13px); justify-content: space-around; }
    .ts-command-bar small { display: none; }
    .ts-command-bar--duel button { min-height: 26px; padding: 3px; }
}

.ts-command-reservation { min-height: calc(56px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0; }
@media (pointer: coarse) and (max-width: 900px) {
    .has-game-navigation .ts-command-bar--footer { bottom: var(--ts-mobile-nav-h, 64px); }
}

/* The translucent background must never receive clicks. */
.ts-command-bar--footer { pointer-events: none; }
.ts-command-bar--footer button { pointer-events: auto; }

html body.game-menu-page.launch-deck-page:has(.ts-command-bar--footer) .launch-shell {
    min-height: 0 !important;
    max-height: var(--ts-launch-available-height, calc(100dvh - var(--game-nav-size, 80px) - 56px)) !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #b394615e transparent;
}
.launch-deck-page .ts-command-reservation { display: none; }

@media (min-width: 1051px) {
    html[data-sovereign="2"] body.has-game-navigation.launch-deck-page .launch-onboarding {
        height: var(--ts-launch-form-height, calc(100svh - 306px)) !important;
    }
}

.ts-command-dialog[data-panel='friends']{background:#0b142431}
