.game-page-nav{display:flex;align-items:stretch;flex:0 0 auto;isolation:isolate;width:min(100%,360px);min-height:40px;gap:4px;padding:4px;margin:8px auto 0;border:1px solid #e7def6;border-radius:15px;background:#eee7fa;box-sizing:border-box}
html[data-game-page=tournament]>body>.app-shell>.main,html[data-game-page=tournament]>body>#confetti{display:none!important}
#tournament-surface{display:block;flex:1 1 0;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;isolation:isolate;margin-top:16px;scrollbar-width:thin;scrollbar-color:#d6c8ed transparent}
.app-shell>.header,.app-shell>[data-game-pages]{position:relative;z-index:2;flex-shrink:0}
#tournament-surface[hidden],.page-route-status[hidden]{display:none!important}
.page-route-status{position:fixed;z-index:10000;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 24px);display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid #e3d8fa;border-radius:16px;background:#fff;color:#614589;box-shadow:0 6px 24px #43256920;font:700 12px/1.4 Manrope,'Segoe UI',sans-serif}
.page-route-status button{border:0;border-radius:9px;background:#7950e8;color:white;padding:8px 12px;font:inherit;cursor:pointer;white-space:nowrap}
.game-page-nav button{display:flex;align-items:center;justify-content:center;flex:1;gap:8px;min-width:0;padding:5px 12px;border:0;background:transparent;cursor:pointer;box-shadow:none;border-radius:11px;color:#5f4a77;font:800 12px/1.4 Manrope,'Segoe UI',sans-serif;text-decoration:none;white-space:nowrap;touch-action:manipulation;transition:background .18s,color .18s,box-shadow .18s}
.game-page-nav svg{width:17px;height:17px;flex:none}
.game-page-nav button:hover{color:#6039c2;background:#ffffff85}
.game-page-nav button[aria-selected=true]{background:#fff;color:#6f42df;box-shadow:0 2px 6px #6f42df12}
.game-page-nav button:focus-visible{outline:none;background:#e2d5ff;box-shadow:inset 0 0 0 2px #c8b1f5}
.has-game-pages .topbar{margin-bottom:0}
.shell>.game-page-nav{margin-bottom:18px}
.is-playing .shell>.game-page-nav{margin-top:4px;margin-bottom:6px}
@media(max-width:760px){.game-page-nav{width:100%;min-height:38px;margin-top:7px;padding:3px;border-radius:13px}.game-page-nav button{font-size:12px;padding-block:4px}.shell>.game-page-nav{margin-bottom:12px}}
@media(max-height:650px){.app-shell>.game-page-nav{margin-top:4px;min-height:34px}.app-shell>.game-page-nav button{padding-block:3px}}
@media(prefers-reduced-motion:reduce){.game-page-nav button{transition:none}}

@media(max-height:630px) and (max-width:760px){.is-playing .shell>.game-page-nav{min-height:30px;padding:2px;margin-top:2px;margin-bottom:4px}.is-playing .game-page-nav button{font-size:11px;padding-block:2px}.is-playing .game-page-nav svg{width:15px;height:15px}}

@media(max-width:760px){.app-shell>#tournament-surface{margin-top:12px}}
@media(max-height:650px){.app-shell>#tournament-surface{margin-top:7px}}

/* The status fits inside the existing tab; the header and tab widths never move. */
.game-page-nav .tournament-tab-status{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:43px;box-sizing:border-box;padding:3px 5px;border:1px solid #f1d080;border-radius:7px;background:linear-gradient(135deg,#fff7d7,#ffe6a3);color:#956011;font:800 10px/1.2 Manrope,'Segoe UI',sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.1px;box-shadow:0 1px 2px #ad781012}
.game-page-nav .tournament-tab-status[hidden]{display:none}
.game-page-nav .tournament-tab-status[data-kind=live]{min-width:0;gap:4px;border-color:#a7e5cb;background:#e3f8ed;color:#137c59}
.game-page-nav .tournament-tab-status[data-kind=live]::before{content:'';width:4px;height:4px;flex:none;border-radius:50%;background:currentColor}
.game-page-nav button{padding-inline:6px}
.game-page-nav button.has-tournament-status{gap:5px}
.game-page-nav button.has-tournament-status>svg{display:none}
