/* =====================================================================
   topbar.css - THE top bar of the Boxing Underdog website (homepage + UNDERDOG TV), the phone tab bar and the
   menu sheet. Markup and behaviour: topbar.js (same folder).
   Source: Tools/monologic-site/shared-nav/ - never edit a copy (README.md: how each site takes it in).
   Self-contained: its own tokens (--tb-*), its own reset for its elements (zero specificity, never the host's
   controls in .tb-tools), nothing of either site's stylesheet needed. Same visual language as both sites:
   Oswald display / Inter UI / JetBrains Mono, red #ff3838, gold #e9b949, near-black.
   Host hooks (a site sets them on :root): --tb-maxw, --tb-gutter (the bar follows the page's grid),
   --tb-z, --tb-tabbar-z, --tb-sheet-z (stacking next to the page's own layers); a host with its own controls in
   .tb-tools styles their compact form under .tb.tb-fit-tools (the fit guard of topbar.js).
   Gives the pages --tb-h (bar height), --tab-h (tab bar height) and --tab-space (the room the tab bar takes at the
   bottom of the screen: 0 without it, its height + the home indicator with it) for their offsets.
   Steps: 1400 (PC badge off), 1280 (language into WIĘCEJ), 1180 (GRA and RANKINGI into WIĘCEJ, short labels),
   760 (phone: compact bar, tab bar, menu sheet), 380 (smallest phones), 319 (a zoomed-in phone: the call to action
   as its icon); a phone on its side (landscape, at most 500 px tall): a lower bar and a lower tab bar.
   Unity preprocesses template files: never three curly braces in a row here.
   ===================================================================== */

:root{--tb-h:72px;--tab-h:62px;--tab-space:0px}
@media(max-width:760px){:root{--tb-h:58px;--tab-space:calc(var(--tab-h) + env(safe-area-inset-bottom))}}
@media(orientation:landscape) and (max-height:500px){:root{--tb-h:52px;--tab-h:48px}}

.tb,.tabbar,.sheet{
  --tb-red:#ff3838;--tb-red-glow:rgba(255,56,56,.35);
  --tb-gold:#e9b949;--tb-gold-hi:#ffd54a;--tb-gold-soft:#c79a3a;--tb-gold-glow:rgba(233,185,73,.35);
  --tb-tx:#b8b8c8;--tb-tx-low:#6b6b78;
  --tb-bd:rgba(255,255,255,.08);--tb-bd-2:rgba(255,255,255,.14);--tb-bd-gold:rgba(233,185,73,.45);
  --tb-f-head:'Oswald',system-ui,sans-serif;--tb-f-body:'Inter',system-ui,sans-serif;--tb-f-mono:'JetBrains Mono',ui-monospace,monospace;
  --tb-ease:cubic-bezier(.2,.7,.2,1);--tb-ease-out:cubic-bezier(.16,1,.3,1);
  font-family:var(--tb-f-body);font-size:16px;font-weight:400;font-style:normal;line-height:1.6;color:var(--tb-tx);
  letter-spacing:normal;word-spacing:normal;text-align:left;text-transform:none;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}

/* ---------- reset of the bar's own elements (zero specificity: every rule below wins; the host's controls in
   .tb-tools keep their own look) ---------- */
:where(.tb,.tabbar,.sheet) :where(:not(.tb-tools,.tb-tools *)){box-sizing:border-box;margin:0;padding:0}
:where(.tb,.tabbar,.sheet) :where(button:not(.tb-tools *)){font:inherit;color:inherit;background:none;border:0;border-radius:0;cursor:pointer;text-align:inherit}
:where(.tb,.tabbar,.sheet) :where(a:not(.tb-tools *)){color:inherit;text-decoration:none}
/* the bar's buttons keep the browser's own line height whatever the host's button rule says */
.tb button:not(.tb-tools *),.tabbar button,.sheet button{line-height:normal}
.tb [hidden],.tabbar [hidden],.sheet[hidden],.sheet [hidden]{display:none!important}
.tb-sprite{position:absolute;width:0;height:0;overflow:hidden}
.tb .ic,.tabbar .ic,.sheet .ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.tb-vh{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
:where(.tb,.tabbar,.sheet) :where(a:not(.tb-tools *),button:not(.tb-tools *)):focus-visible{outline:2px solid var(--tb-gold);outline-offset:3px}

/* =====================================================================
   TOP BAR
   ===================================================================== */
.tb{position:fixed;top:0;left:0;right:0;z-index:var(--tb-z,100);height:var(--tb-h);
  background:linear-gradient(180deg,rgba(5,6,8,.82) 0%,rgba(5,6,8,.4) 62%,rgba(5,6,8,0) 100%);
  border-bottom:1px solid transparent;
  transition:background-color .22s,box-shadow .22s,border-color .22s,opacity .32s var(--tb-ease),transform .32s var(--tb-ease)}
/* the page scrolled under it, or the host's page sits right under it (setSolid) */
.tb.elevated,.tb.is-solid{background:rgba(8,9,12,.9);border-bottom-color:var(--tb-bd);
  -webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);box-shadow:0 10px 32px rgba(0,0,0,.38)}
.tb-in{--tb-gap:clamp(14px,1.6vw,30px);max-width:var(--tb-maxw,1720px);height:100%;margin:0 auto;padding:0 var(--tb-gutter,clamp(18px,5vw,64px));
  display:flex;align-items:center;gap:var(--tb-gap)}
.tb-brand{flex:none;display:flex;align-items:center;border-radius:8px}
.tb-brand:focus-visible{outline:2px solid var(--tb-gold);outline-offset:6px}
/* the wordmark: cut out of the square logo asset (1400 px square, wordmark 115..1338 x 464..828), or the wordmark
   file itself (tb-logo-wm) - the same size either way */
.tb-logo{--lw:128px;position:relative;display:block;flex:none;width:var(--lw);height:calc(var(--lw) * .2976);overflow:hidden}
.tb-logo img{position:absolute;max-width:none;width:calc(var(--lw) * 1.14473);height:auto;left:calc(var(--lw) * -.09403);top:calc(var(--lw) * -.37939)}
.tb-logo.tb-logo-wm img{position:static;display:block;width:100%;height:100%;object-fit:contain}

.tb-nav{flex:1;min-width:0;display:flex;align-items:center;gap:clamp(0px,.4vw,8px)}
.tb-link{position:relative;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 12px;border-radius:10px;
  font-family:var(--tb-f-head);font-size:14.5px;font-weight:600;letter-spacing:.11em;text-transform:uppercase;white-space:nowrap;
  color:rgba(255,255,255,.72);transition:color .16s}
.tb-link:hover,.tb-link.is-open{color:#fff}
.tb-link::after{content:"";position:absolute;left:12px;right:12px;bottom:2px;height:2px;border-radius:2px;background:var(--tb-red);
  box-shadow:0 0 12px var(--tb-red-glow);transform:scaleX(0);transform-origin:center;transition:transform .22s var(--tb-ease)}
.tb-link[aria-current="page"]{color:#fff}
.tb-link[aria-current="page"]::after{transform:scaleX(1)}
.tb-link:focus-visible{outline:2px solid var(--tb-gold);outline-offset:2px}
/* the three ways to watch stand out: an icon each */
.tb-watch .ic{width:18px;height:18px;color:#ff6b6b}
.tb-watch:hover .ic{color:#ff8a8a}
.tb-pc{display:inline-grid;place-items:center;height:17px;padding:0 5px;border:1px solid rgba(255,255,255,.26);border-radius:5px;
  font-family:var(--tb-f-mono);font-size:10px;font-weight:700;letter-spacing:.04em;color:rgba(255,255,255,.66);line-height:1}
.tb-short{display:none}
.tb-live-ic{position:relative;display:inline-grid;place-items:center}
.tb .live-dot,.tabbar .live-dot{display:none;position:absolute;top:-3px;right:-4px;width:9px;height:9px;border-radius:50%;background:var(--tb-red);
  box-shadow:0 0 0 2px rgba(8,9,12,.9),0 0 12px var(--tb-red);animation:tb-pulse 1.6s infinite}
html.is-live .tb .live-dot,html.is-live .tabbar .live-dot{display:block}
.tb .live-sr{display:none!important}
html.is-live .tb .live-sr{display:inline!important}
html.is-live .tb-live{color:#fff}
@keyframes tb-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}

/* WIĘCEJ + account menus (disclosure panels) */
.tb-more,.tb-acct{position:relative}
.tb-more-btn .ic-chev,.tb-acct-btn .ic-chev{width:16px;height:16px;transition:transform .2s var(--tb-ease)}
.tb-more-btn.is-open .ic-chev,.tb-acct-btn.is-open .ic-chev{transform:rotate(180deg)}
.tb-more-btn.has-active{color:#fff}
.tb-more-btn.has-active::after{transform:scaleX(1)}
.tb-pop{position:absolute;top:calc(100% + 12px);left:0;z-index:130;min-width:318px;padding:8px;border-radius:18px;
  background:rgba(14,16,21,.97);border:1px solid var(--tb-bd-2);box-shadow:0 26px 70px rgba(0,0,0,.62);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);transform:translateX(var(--shift,0px));animation:tbPop .18s var(--tb-ease-out)}
.tb-acct-pop{left:auto;right:0;min-width:264px}
@keyframes tbPop{from{opacity:0;transform:translate(var(--shift,0px),-6px)}to{opacity:1;transform:translate(var(--shift,0px),0)}}
.tb-pop-list{display:flex;flex-direction:column}
.tb-pop-item{display:flex;align-items:center;gap:13px;width:100%;padding:10px 12px;border-radius:11px;text-align:left;color:var(--tb-tx);transition:background-color .14s}
.tb-pop-item>.ic{width:21px;height:21px;color:var(--tb-gold)}
.tb-pop-item span{display:flex;flex-direction:column;min-width:0}
.tb-pop-item b{font-family:var(--tb-f-head);font-size:15px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#fff;line-height:1.25}
.tb-pop-item small{font-size:12.5px;color:var(--tb-tx-low);line-height:1.35}
.tb-pop-item:hover,.tb-pop-item:focus-visible{background:rgba(255,255,255,.07);outline:none}
.tb-pop-item:focus-visible{box-shadow:inset 0 0 0 2px var(--tb-gold)}
.tb-pop-item[aria-current="page"] b{color:var(--tb-gold)}
.tb-pop-foot{display:flex;align-items:center;gap:6px;margin-top:6px;padding:10px 6px 4px;border-top:1px solid var(--tb-bd)}
.tb-social{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 11px;border-radius:10px;font-size:13px;font-weight:600;color:var(--tb-tx)}
.tb-social .ic{width:18px;height:18px}
.tb-social:hover{background:rgba(255,255,255,.07);color:#fff}
.tb-pop-head{display:flex;align-items:center;gap:12px;padding:10px 12px 14px;margin-bottom:6px;border-bottom:1px solid var(--tb-bd)}
.tb-pop-head b{display:block;font-family:var(--tb-f-head);font-size:17px;letter-spacing:.04em;color:#fff;max-width:18ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-pop-head small{font-size:12.5px;color:var(--tb-tx-low)}
.tb-narrow{display:none!important}

/* right side: the host's own controls, language, account, the call to action */
.tb-actions{flex:none;display:flex;align-items:center;gap:10px;margin-left:auto}
.tb-testing-tag{position:fixed;z-index:320;top:calc(var(--tb-h) + 7px);right:12px;display:flex;gap:6px;align-items:center;
  padding:5px 8px;border:1px solid rgba(233,185,73,.55);border-radius:5px;background:rgba(10,10,13,.92);
  color:#f5d372;font:700 10px/1.2 ui-monospace,SFMono-Regular,monospace;letter-spacing:.08em;pointer-events:none}
.tb-testing-tag em{font-style:normal;color:#fff;letter-spacing:0}
@media(max-width:600px){.tb-testing-tag em{display:none}}
.tb-tools{display:flex;align-items:center;gap:8px}
.tb .lang,.sheet .lang{display:inline-flex;padding:3px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid var(--tb-bd)}
.tb .lang button,.sheet .lang button{min-width:36px;height:30px;padding:0 9px;border-radius:999px;font-family:var(--tb-f-mono);font-size:12px;font-weight:700;
  letter-spacing:.04em;color:var(--tb-tx-low);transition:color .15s,background-color .15s}
.tb .lang button:hover,.sheet .lang button:hover{color:#fff}
.tb .lang button.on,.sheet .lang button.on{background:#fff;color:#0b0c10}
.tb .lang button:focus-visible,.sheet .lang button:focus-visible{outline:2px solid var(--tb-gold);outline-offset:2px}
.tb-login,.tb-acct-btn{display:inline-flex;align-items:center;gap:8px;height:42px;border-radius:999px;border:1px solid var(--tb-bd-2);
  background:rgba(255,255,255,.05);color:#fff;transition:background-color .15s,border-color .15s}
.tb-login{padding:0 17px 0 13px;font-family:var(--tb-f-head);font-size:14px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
.tb-login .ic{width:19px;height:19px}
/* the account's controls: buttons on the homepage, links to it on UNDERDOG TV - the same box either way */
.tb-login,.sheet-guest .tb-btn{line-height:normal}
.tb-login:hover,.tb-acct-btn:hover,.tb-acct-btn.is-open{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.3)}
.tb-login:focus-visible,.tb-acct-btn:focus-visible{outline:2px solid var(--tb-gold);outline-offset:2px}
.tb-acct{display:none}
html.tb-logged .tb-acct{display:block}
html.tb-logged .tb-login{display:none!important}
/* notifications are a signed-in player's: no bell and no "You" group for a guest (topbar.js renderUnread) */
html:not(.tb-logged) .tb-bell,html:not(.tb-logged) .sheet-you{display:none!important}
.tb-acct-btn{padding:0 11px 0 4px;font-size:14px;font-weight:600}
.tb-acct-name{max-width:12ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-ava{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,var(--tb-gold-hi),var(--tb-gold-soft));
  color:#1a1200;font-family:var(--tb-f-head);font-size:13px;font-weight:700;letter-spacing:.03em}
.tb-ava-lg{width:44px;height:44px;font-size:16px}
/* the account's next step (site-account.js: connect the game / Discord, join the server): a button beside the account,
   the first row of its menu, a dot on the avatar; the fit guard's account step keeps its icon only */
.tb-next{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px 0 12px;border-radius:999px;white-space:nowrap;
  font-family:var(--tb-f-head);font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;line-height:normal;
  border:1px solid var(--tb-bd-gold);background:rgba(233,185,73,.1);color:var(--tb-gold-hi);box-shadow:0 0 0 0 var(--tb-gold-glow);
  transition:background-color .15s,border-color .15s,box-shadow .2s}
.tb-next .ic{width:18px;height:18px}
.tb-next:hover{background:rgba(233,185,73,.2);border-color:var(--tb-gold);box-shadow:0 6px 20px var(--tb-gold-glow)}
.tb-next:focus-visible{outline:2px solid var(--tb-gold);outline-offset:2px}
.tb-next.tb-next-discord,.tb-next.tb-next-server{border-color:rgba(88,101,242,.6);background:rgba(88,101,242,.16);color:#d5d9ff}
.tb-next.tb-next-discord:hover,.tb-next.tb-next-server:hover{background:rgba(88,101,242,.3);border-color:#5865f2;box-shadow:0 6px 20px rgba(88,101,242,.35)}
.tb .tb-next[hidden],.sheet .tb-btn[hidden]{display:none!important}
html:not(.tb-logged) .tb-next{display:none!important}
.tb-acct-btn{position:relative}
.tb-acct-btn.has-next::after{content:"";position:absolute;top:2px;left:30px;width:10px;height:10px;border-radius:50%;background:var(--tb-gold-hi);
  box-shadow:0 0 0 2px #0b0c10}
.tb-pop-next{margin:2px 0 8px;border:1px solid var(--tb-bd-gold);background:rgba(233,185,73,.08);border-radius:12px}
.tb-pop-next b{display:block;color:var(--tb-gold-hi)}
.tb-pop-next small{display:block;font-size:12px;color:var(--tb-tx-low);text-transform:none;letter-spacing:0;font-family:var(--tb-f-body)}
.tb-pop-next:hover{background:rgba(233,185,73,.16)}
.tb .tb-pop-next[hidden]{display:none!important}
/* the Discord picture (site-account.js) */
.tb-ava.tb-ava-img{background:#1e1f24;overflow:hidden}
.tb-ava img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
/* the site's "Zaloguj": gold, the one call to log in (Tools/network/ACCOUNTS_PLAN.md); once per visit a single shine
   passes over it (site-account.js adds tb-shine; never with reduced motion) */
.tb.tb-site .tb-login{position:relative;overflow:hidden;border-color:transparent;color:#1a1200;
  background:linear-gradient(135deg,var(--tb-gold-hi),var(--tb-gold-soft));box-shadow:0 6px 20px var(--tb-gold-glow)}
.tb.tb-site .tb-login:hover{background:linear-gradient(135deg,#ffe07a,var(--tb-gold));border-color:transparent;box-shadow:0 8px 26px var(--tb-gold-glow)}
.tb.tb-site .tb-login::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:45%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.75),transparent);transform:skewX(-18deg);opacity:0}
html.tb-shine .tb.tb-site .tb-login::after{animation:tb-shine 1.1s .9s var(--tb-ease) 1 both}
@keyframes tb-shine{0%{left:-60%;opacity:1}100%{left:130%;opacity:1}}
@media(prefers-reduced-motion:reduce){html.tb-shine .tb.tb-site .tb-login::after{animation:none}}
.tb-quest{display:inline-flex;align-items:center;gap:9px;height:42px;padding:0 19px 0 14px;border-radius:999px;
  background:linear-gradient(180deg,#fff 0%,#e7e9ee 100%);color:#0b0c10;font-family:'Inter',system-ui,sans-serif;font-weight:700;font-size:14.5px;
  letter-spacing:.01em;white-space:nowrap;text-decoration:none;
  box-shadow:0 10px 28px rgba(0,0,0,.35),inset 0 -1px 0 rgba(0,0,0,.08);transition:transform .16s cubic-bezier(.2,.7,.2,1),box-shadow .16s cubic-bezier(.2,.7,.2,1)}
.tb-quest .ic{width:21px;height:21px}
.tb-quest:hover{transform:translateY(-1px);box-shadow:0 14px 36px rgba(0,0,0,.45),0 0 0 4px rgba(255,255,255,.14)}
.tb-quest:focus-visible{outline:3px solid #e9b949;outline-offset:3px}

/* narrower windows: the same bar, things move into WIĘCEJ */
@media(min-width:2200px){
  .tb-logo{--lw:150px}
  .tb-link{font-size:16px}
}
@media(max-width:1439px){
  .tb-in{--tb-gap:14px}
  .tb-link{padding:0 10px;letter-spacing:.09em}
  .tb-link::after{left:10px;right:10px}
}
@media(max-width:1400px){
  .tb-in{--tb-gap:12px;padding:0 var(--tb-gutter,36px)}
  .tb-link{padding:0 7px;letter-spacing:.07em}
  .tb-link::after{left:7px;right:7px}
  .tb-pc{display:none}
  .tb-actions{gap:8px}
}
@media(max-width:1279px){
  .tb .tb-lang{display:none}
  .tb-pop-foot .tb-narrow{display:inline-flex!important}
  .tb-pop-foot{flex-wrap:wrap}
}
/* tablets: logo - FILMY - 3D - NA ŻYWO - WIĘCEJ (GRA, RANKINGI and the language move into WIĘCEJ) */
@media(max-width:1179px){
  .tb-wide{display:none}
  .tb-narrow{display:flex!important}
  .tb[data-tb-active="ranking"] .tb-more-btn{color:#fff}
  .tb[data-tb-active="ranking"] .tb-more-btn::after{transform:scaleX(1)}
  .tb-pop-foot .lang.tb-narrow{display:inline-flex!important;margin-right:auto}
  .tb-full{display:none}
  .tb-short{display:inline}
  .tb-login{width:42px;padding:0;justify-content:center}
  .tb-login span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tb-acct-name{display:none}
  .tb-next{width:42px;padding:0;justify-content:center}
  .tb-next span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tb-quest{padding:0 16px 0 12px}
}

/* the fit guard (topbar.js, every host): the row did not fit, one step at a time */
.tb.tb-fit-account .tb-login{width:42px;padding:0;justify-content:center}
.tb.tb-fit-account .tb-login span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tb.tb-fit-account .tb-acct-name{display:none}
.tb.tb-fit-account .tb-next{width:42px;padding:0;justify-content:center}
.tb.tb-fit-account .tb-next span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tb.tb-fit-tight .tb-in{--tb-gap:8px}
.tb.tb-fit-tight .tb-nav{gap:0}
.tb.tb-fit-tight .tb-link{padding:0 5px;letter-spacing:.06em}
.tb.tb-fit-tight .tb-link::after{left:5px;right:5px}
.tb.tb-fit-tight .tb-actions{gap:6px}
.tb.tb-fit-icons .tb-watch>.ic{display:none}
html:not(.is-live) .tb.tb-fit-icons .tb-watch .tb-live-ic{display:none}
.tb.tb-fit-cta .tb-quest{width:42px;padding:0;justify-content:center}
.tb.tb-fit-cta .tb-quest span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* =====================================================================
   PHONES: compact bar, tab bar, menu sheet
   ===================================================================== */
.tabbar{display:none}
@media(max-width:760px){
  .tb-in{--tb-gap:10px;padding:0 var(--tb-gutter,14px)}
  .tb-logo{--lw:112px}
  .tb-nav,.tb-login,.tb-acct,.tb-next{display:none!important}
  .tb .tb-lang{display:inline-flex}
  .tb .tb-lang button{min-width:32px;height:28px;padding:0 7px;font-size:11.5px}
  .tb-quest{height:38px;padding:0 14px 0 11px;font-size:14px}
  .tb-quest .ic{width:19px;height:19px}
  .tb-actions{gap:8px}

  .tabbar{position:fixed;left:0;right:0;bottom:0;z-index:var(--tb-tabbar-z,95);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    height:calc(var(--tab-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
    background:rgba(9,10,14,.92);border-top:1px solid var(--tb-bd-2);-webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%)}
  .tabbar .tab{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;
    color:rgba(255,255,255,.56);font-family:var(--tb-f-head);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
    -webkit-tap-highlight-color:transparent;transition:color .16s}
  .tabbar .tab .ic{width:23px;height:23px}
  .tab-g{position:relative;display:grid;place-items:center}
  .tab-l{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tabbar .tab[data-tab="films"],.tabbar .tab[data-tab="replays"],.tabbar .tab[data-tab="live"]{color:rgba(255,255,255,.8)}
  .tabbar .tab[data-tab="films"] .ic,.tabbar .tab[data-tab="replays"] .ic,.tabbar .tab[data-tab="live"] .ic{color:#ff6b6b}
  .tabbar .tab.is-on,.tabbar .tab[aria-expanded="true"]{color:#fff}
  .tabbar .tab.is-on::before{content:"";position:absolute;top:-1px;left:26%;right:26%;height:3px;border-radius:0 0 3px 3px;background:var(--tb-red);box-shadow:0 0 14px var(--tb-red-glow)}
  .tabbar .tab:focus-visible{outline:2px solid var(--tb-gold);outline-offset:-4px;border-radius:12px}
  .tabbar .tab .live-dot{top:-2px;right:-5px}
}
@media(max-width:380px){
  .tb-logo{--lw:100px}
  .tb-quest{padding:0 12px 0 10px}
}
/* a zoomed-in phone (under 320 px of page): the call to action keeps its icon and its name for screen readers */
@media(max-width:319px){
  .tb-in{--tb-gap:8px;padding:0 12px}
  .tb-logo{--lw:92px}
  .tb .tb-quest{width:38px;padding:0;justify-content:center}
  .tb .tb-quest .tb-short{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
/* a phone on its side: every pixel of height goes to the page - a lower bar, the tab bar's icon beside its name */
@media(orientation:landscape) and (max-height:500px){
  .tb-logo{--lw:100px}
  .tb .tb-quest{height:36px}
  .tb .lang button{height:26px}
  .tabbar .tab{flex-direction:row;gap:8px;font-size:11px}
  .tabbar .tab .ic{width:20px;height:20px}
}

.sheet{position:fixed;inset:0;z-index:var(--tb-sheet-z,300)}
.sheet-scrim{position:absolute;inset:0;background:rgba(3,4,6,.62);opacity:0;transition:opacity .24s var(--tb-ease)}
.sheet.is-open .sheet-scrim{opacity:1}
.sheet-panel{position:absolute;left:0;right:0;bottom:0;max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain;
  padding:6px 16px calc(18px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:#0e1016;border-top:1px solid var(--tb-bd-2);
  box-shadow:0 -24px 70px rgba(0,0,0,.6);transform:translateY(102%);transition:transform .26s var(--tb-ease-out)}
.sheet.is-open .sheet-panel{transform:none}
html.tb-sheet-open,html.tb-sheet-open body{overflow:hidden}
.sheet-grab{width:42px;height:4px;margin:6px auto 2px;border-radius:4px;background:rgba(255,255,255,.2)}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:6px 2px 12px}
.sheet-title{font-family:var(--tb-f-head);font-size:24px;font-weight:700;line-height:1.02;letter-spacing:.06em;text-transform:uppercase;color:#fff}
.sheet-x{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;border:1px solid var(--tb-bd-2);color:var(--tb-tx)}
.sheet-x:focus-visible{outline:2px solid var(--tb-gold);outline-offset:2px}
.sheet-acct{display:flex;align-items:center;gap:12px;padding:14px;margin-bottom:12px;border-radius:18px;
  background:linear-gradient(150deg,rgba(233,185,73,.13),rgba(233,185,73,.03));border:1px solid var(--tb-bd-gold)}
.sheet-acct p{flex:1;min-width:0;margin:0;line-height:1.35}
.sheet-acct p b{display:block;font-family:var(--tb-f-head);font-size:15.5px;letter-spacing:.05em;text-transform:uppercase;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet-acct p span{font-size:13px;color:var(--tb-tx)}
.sheet-acct-ic{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:13px;background:rgba(233,185,73,.16);color:var(--tb-gold)}
.sheet-user{display:none}
html.tb-logged .sheet-guest{display:none}
html.tb-logged .sheet-user{display:flex;flex-wrap:wrap}
.sheet-acct-btns{display:flex;gap:8px;width:100%}
.sheet-acct-btns .tb-btn{flex:1}
.sheet-links{display:flex;flex-direction:column;overflow:hidden;border-radius:18px;border:1px solid var(--tb-bd);background:rgba(255,255,255,.025)}
.sheet-links a{display:flex;align-items:center;gap:14px;min-height:54px;padding:0 16px;border-bottom:1px solid var(--tb-bd);
  font-family:var(--tb-f-head);font-size:16px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#fff}
.sheet-links a:last-child{border-bottom:none}
.sheet-links .ic{width:21px;height:21px;color:var(--tb-gold)}
.sheet-links .sheet-chev{margin-left:auto;width:18px;height:18px;color:var(--tb-tx-low)}
.sheet-links a[aria-current="page"]{background:rgba(233,185,73,.09)}
.sheet-links a:focus-visible{outline:2px solid var(--tb-gold);outline-offset:-2px}
.sheet-row{display:flex;align-items:center;justify-content:space-between;padding:16px 4px}
.sheet-row-l{display:flex;align-items:center;gap:10px;font-size:14.5px;font-weight:600;color:var(--tb-tx)}
.sheet .sheet-row .lang button{min-width:48px;height:34px;font-size:13px}
.sheet-social{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.sheet-social a{display:flex;align-items:center;justify-content:center;gap:9px;height:50px;border-radius:15px;border:1px solid var(--tb-bd-2);background:rgba(255,255,255,.04);font-weight:600;color:#fff}
.sheet-legal{display:block;margin-top:14px;text-align:center;font-size:13px;color:var(--tb-tx-low);text-decoration:underline;text-underline-offset:3px}

/* the sheet's buttons */
.tb-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 22px;border-radius:999px;
  font-family:var(--tb-f-head);font-size:14px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;transition:.2s}
.tb-btn .ic{width:19px;height:19px}
.tb-btn-sm{padding:9px 16px;font-size:13px}
.tb-btn-gold{background:linear-gradient(135deg,var(--tb-gold-hi),var(--tb-gold-soft));color:#1a1200;box-shadow:0 8px 24px var(--tb-gold-glow)}
.tb-btn-gold:hover{transform:translateY(-2px);box-shadow:0 12px 34px var(--tb-gold-glow)}
.tb-btn-ghost{border:1.5px solid var(--tb-bd-2);color:#fff}
.tb-btn-ghost:hover{border-color:var(--tb-gold);background:rgba(233,185,73,.08)}
.tb-btn-red{background:var(--tb-red);color:#fff;box-shadow:0 8px 24px var(--tb-red-glow)}
.tb-btn-red:hover{background:#ff5252;transform:translateY(-2px);box-shadow:0 12px 34px var(--tb-red-glow)}
.tb-btn:focus-visible{outline:3px solid var(--tb-gold);outline-offset:3px}
.sheet-quest{width:100%;height:56px;font-size:16px;border-radius:16px}

/* =====================================================================
   PROFILE SITE (topbar.js: the one structure of the website, used by previews and the testing copy)
   GRA · NA ŻYWO · POWTÓRKI 3D · FILMY · REŻYSERKA · TURNIEJE · LIGI · RANKING | search, Discord, bell, account,
   language, call to action (out of room: the pages of OGLĄDAJ fold into OGLĄDAJ and its menu - the fit guard,
   topbar.js); phone: GRA · OGLĄDAJ · TURNIEJE · RANKING · MENU, the pages of OGLĄDAJ as a row under the bar.
   Everything here is scoped to the profile's own classes - the production bar never matches these rules.
   ===================================================================== */
html.tb-site-on{--tb-row-h:72px;--tb-sub-h:0px;--tb-h:calc(var(--tb-row-h) + var(--tb-sub-h))}
@media(max-width:760px){
  html.tb-site-on{--tb-row-h:58px}
  html.tb-site-on.tb-has-sub{--tb-sub-h:42px}
}
/* a phone on its side, and a short phone (at most 700 px tall: 320x568, 375x667, 280x653), keeps its height for the
   page - the first screen's action stays above the tab bar; the section's pages are in MENU (groups Gra, Oglądaj) */
@media(orientation:landscape) and (max-height:500px){
  html.tb-site-on{--tb-row-h:52px}
  html.tb-site-on.tb-has-sub{--tb-sub-h:0px}
  .tb-site .tb-sub{display:none!important}
}
@media(max-width:760px) and (max-height:700px){
  html.tb-site-on.tb-has-sub{--tb-sub-h:0px}
  .tb-site .tb-sub{display:none!important}
}
.tb.tb-site .tb-in{height:var(--tb-row-h)}
.tb-site .tb-link[aria-current="true"]{color:#fff}
.tb-site .tb-link[aria-current="true"]::after{transform:scaleX(1)}
.tb-site .tb-sec .ic,.tb-site .tb-wx .ic{width:18px;height:18px;color:rgba(255,255,255,.55);transition:color .16s}
.tb-site .tb-sec:hover .ic,.tb-site .tb-sec[aria-current] .ic,.tb-site .tb-wx:hover .ic,.tb-site .tb-wx[aria-current] .ic{color:#fff}
/* the pages of OGLĄDAJ stand in the bar; out of room REŻYSERKA leaves first, then the three fold into OGLĄDAJ, which
   opens the menu of its pages */
.tb-site .tb-watch-all{display:none}
.tb.tb-site.tb-fit-watch .tb-watch-all{display:inline-flex}
.tb.tb-site.tb-fit-watch .tb-wx,.tb.tb-site.tb-fit-studio .tb-wx[data-tb="studio"]{display:none}
.tb-site .tb-wx .tb-pc{margin-left:-2px}
.tb-site .tb-nav{position:relative}
.tb-site .tb-watch-all .ic-chev{width:14px;height:14px;margin-left:-3px;color:rgba(255,255,255,.6);transition:transform .2s var(--tb-ease)}
.tb-site .tb-watch-all.is-open .ic-chev{transform:rotate(180deg)}
.tb-site .tb-watch-all.is-open{color:#fff}
.tb-watch-pop{top:calc(100% + 14px)}

/* the game's Discord, next to the bell: in its own colour, so the community is always one click away */
.tb-site .tb-discord{color:#c9ceff;background:rgba(88,101,242,.16);border-color:rgba(88,101,242,.55)}
.tb-site .tb-discord:hover{color:#fff;background:#5865f2;border-color:#5865f2}
.tb-site .tb-discord .ic{width:21px;height:21px}
.tb.tb-site.tb-fit-discord .tb-discord{display:none}
.tb-site .tb-live .ic,.tb-site .tb-live:hover .ic{color:#ff6b6b}
.tb-live-n{display:none;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--tb-red);color:#fff;
  font-family:var(--tb-f-mono);font-size:11px;font-weight:700;letter-spacing:0;line-height:18px;text-align:center}
html.is-live .tb-live-n:not(:empty){display:inline-block}

/* big, tall screens (3000x1150 and more - Damian's 3427x1352 monitor, a 3382x1253 page in the browser): the pages
   grow (style.css --ui-zoom 1.25), the bar grows with them */
@media(min-width:3000px) and (min-height:1150px){
  html.tb-site-on{--tb-row-h:92px}
  .tb.tb-site .tb-logo{--lw:176px}
  .tb.tb-site .tb-link{height:54px;padding:0 16px;font-size:19px}
  .tb.tb-site .tb-link::after{left:16px;right:16px}
  .tb.tb-site .tb-sec .ic,.tb.tb-site .tb-wx .ic{width:23px;height:23px}
  .tb.tb-site .tb-actions{gap:14px}
  .tb.tb-site .tb-ico{width:54px;height:54px}
  .tb.tb-site .tb-ico .ic{width:24px;height:24px}
  .tb.tb-site .tb-login,.tb.tb-site .tb-acct-btn{height:54px;font-size:16px}
  .tb.tb-site .tb-quest{height:54px;padding:0 24px 0 18px;font-size:17px}
  .tb.tb-site .tb-quest .ic{width:24px;height:24px}
  .tb.tb-site .lang button{min-width:46px;height:38px;font-size:14px}
  .tb-site .tb-live-n{min-width:22px;height:22px;line-height:22px;font-size:13px}
}

/* the second row (phones only, the pages of OGLĄDAJ): equal tabs under the bar, the bar's red line under the page
   you are on */
.tb-sub{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:var(--tb-sub-h);padding:0 6px;border-top:1px solid rgba(255,255,255,.07)}
.tb-sub-link{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;padding:0 4px;
  font-family:var(--tb-f-body);font-size:clamp(11.5px,3.5vw,13.5px);font-weight:600;white-space:nowrap;color:rgba(255,255,255,.62);transition:color .15s}
.tb-sub-link .ic,.tb-sub .tb-full,.tb-sub .tb-pc{display:none}
.tb-sub-link::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:2px;border-radius:2px 2px 0 0;background:var(--tb-red);
  box-shadow:0 0 12px var(--tb-red-glow);transform:scaleX(0);transition:transform .22s var(--tb-ease)}
.tb-sub-link[aria-current="page"]{color:#fff}
.tb-sub-link[aria-current="page"]::after{transform:scaleX(1)}
.tb-sub-link:focus-visible{outline:2px solid var(--tb-gold);outline-offset:-4px;border-radius:8px}
.tb-sub .tb-short{display:inline;overflow:hidden;text-overflow:clip}

/* icon buttons: search, bell */
.tb-find{position:relative}
.tb-ico{position:relative;display:inline-grid;place-items:center;width:42px;height:42px;border-radius:999px;border:1px solid var(--tb-bd-2);
  background:rgba(255,255,255,.05);color:#fff;transition:background-color .15s,border-color .15s}
.tb-ico:hover,.tb-ico.is-open{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.3)}
.tb-ico:focus-visible{outline:2px solid var(--tb-gold);outline-offset:2px}
.tb-ico[aria-current="page"]{border-color:var(--tb-gold);color:var(--tb-gold)}
.tb-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--tb-red);
  color:#fff;font-family:var(--tb-f-mono);font-size:10.5px;font-weight:700;font-style:normal;line-height:18px;text-align:center;
  box-shadow:0 0 0 2px rgba(8,9,12,.92)}
.tb-badge-in{position:static;margin-left:auto;box-shadow:none}
.tb-pop-item .tb-badge-in{margin-left:auto}
.tabbar .tab-g .tb-badge{top:-6px;right:-9px}
.tb-search-pop{left:auto;right:0;min-width:360px;padding:10px}
.tb-search{display:flex;align-items:center;gap:8px}
.tb-search .ic{margin-left:6px;color:var(--tb-tx)}
.tb-search input{flex:1;min-width:0;height:42px;padding:0 12px;border-radius:12px;border:1px solid var(--tb-bd-2);background:rgba(255,255,255,.05);
  color:#fff;font:500 16px/1.2 var(--tb-f-body);outline:none}
.tb-search input::placeholder{color:var(--tb-tx-low)}
.tb-search input:focus-visible{border-color:var(--tb-gold);box-shadow:0 0 0 2px rgba(233,185,73,.35)}
.tb-search-go{height:42px;padding:0 16px;border-radius:12px;background:#fff;color:#0b0c10;font-family:var(--tb-f-head);font-size:13.5px;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase}
.tb-search-go:focus-visible{outline:2px solid var(--tb-gold);outline-offset:2px}
.tb-site .tb-acct-pop .tb-pop-item{min-height:44px}

/* the testing copy's tag and the "new version" note sit out of the way of the bar and its menus */
html.tb-site-on .tb-testing-tag{top:auto;bottom:calc(var(--tab-space,0px) + 8px);left:8px;right:auto;opacity:.85}
.tb-release{position:fixed;z-index:330;left:50%;bottom:calc(var(--tab-space,0px) + 16px);transform:translateX(-50%);display:flex;align-items:center;gap:14px;
  max-width:calc(100vw - 24px);padding:10px 10px 10px 18px;border-radius:999px;background:#fff;color:#0b0c10;box-shadow:0 18px 48px rgba(0,0,0,.5);
  font:600 14px/1.3 'Inter',system-ui,sans-serif}
.tb-release button{flex:none;height:36px;padding:0 16px;border:0;border-radius:999px;background:var(--tb-red,#ff3838);color:#fff;cursor:pointer;
  font:600 13.5px/1 'Oswald',system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.tb-release button:focus-visible{outline:3px solid #e9b949;outline-offset:2px}

/* narrower computers: the five items stay, everything else condenses (the steps of the fit guard, topbar.js) */
@media(max-width:1279px){ .tb.tb-site .tb-lang{display:inline-flex} }
.tb.tb-site.tb-fit-lang .tb-lang button.on{display:none}
.tb.tb-site.tb-fit-icons .tb-sec>.ic,.tb.tb-site.tb-fit-icons .tb-wx>.ic{display:none}
html:not(.is-live) .tb.tb-site.tb-fit-icons .tb-live .tb-live-ic{display:none}
.tb.tb-site.tb-fit-small .tb-link{font-size:12.5px;letter-spacing:.04em;padding:0 5px}
.tb.tb-site.tb-fit-small .tb-link::after{left:5px;right:5px}
.tb.tb-site.tb-fit-small .tb-logo{--lw:106px}
.tb.tb-site.tb-fit-small .tb-actions{gap:5px}

/* phones: logo · bell · call to action; the tab bar; the grouped menu */
@media(max-width:760px){
  .tb.tb-site .tb-lang,.tb.tb-site .tb-find,.tb.tb-site .tb-discord{display:none}
  .tb-site .tb-ico{width:38px;height:38px}
  .tabbar-site .tab{letter-spacing:.06em;font-size:clamp(10px,2.95vw,11px)}
  .tabbar-site .tab-l{overflow:visible;text-overflow:clip}
  .tabbar-site .tab[data-tab="watch"]{color:rgba(255,255,255,.8)}
  .tabbar-site .tab[data-tab="watch"] .ic{color:#ff6b6b}
  .tabbar-site .tab.is-on{color:#fff}
}
@media(max-width:360px){
  .tb.tb-site .tb-quest{width:38px;padding:0;justify-content:center}
  .tb.tb-site .tb-quest .tb-short{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  /* the narrowest phones: each tab as wide as its word (TOURNAMENTS, RANKINGS), never cut, never under 48 px */
  .tabbar.tabbar-site{grid-template-columns:repeat(5,auto);justify-content:space-between;padding-left:4px;padding-right:4px}
  .tabbar-site .tab{min-width:48px;padding:0 3px;letter-spacing:.01em}
}
.sheet-site .sheet-search{margin:0 0 14px}
.sheet-site .sheet-search input{height:48px;border-radius:14px}
.sheet-site .sheet-search .tb-search-go{height:48px;border-radius:14px}
.sheet-group{margin:18px 4px 8px;font-family:var(--tb-f-mono);font-size:11.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--tb-tx-low)}
.sheet-site .sheet-acct{margin-bottom:4px}
.sheet-site .sheet-links a{min-height:50px}
.sheet-site .sheet-row{margin-top:10px}
/* the Discord card of the menu sheet, right above the call to action */
.sheet-discord{display:flex;align-items:center;gap:14px;margin:14px 0 10px;padding:14px 14px 14px 16px;border-radius:16px;
  background:linear-gradient(135deg,#5865f2 0%,#4450d6 100%);color:#fff;box-shadow:0 12px 32px rgba(88,101,242,.3)}
.sheet-discord>.ic{width:30px;height:30px}
.sheet-discord span{display:flex;flex-direction:column;flex:1;min-width:0}
.sheet-discord b{font-family:var(--tb-f-head);font-size:17px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;line-height:1.2}
.sheet-discord small{font-size:13px;line-height:1.35;color:rgba(255,255,255,.85)}
.sheet-discord .sheet-chev{width:18px;height:18px;color:#fff}
.sheet-discord:focus-visible{outline:3px solid var(--tb-gold);outline-offset:3px}
/* the other channels: a quiet link under the call to action (Discord has its card) */
.sheet-site .sheet-social{display:flex;justify-content:center;margin:12px 0 0}
.sheet-site .sheet-social a{height:44px;padding:0 16px;border:0;background:none;color:var(--tb-tx)}
.sheet-site .sheet-social a:hover{color:#fff}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media(prefers-reduced-motion:reduce){
  .sheet-panel,.sheet-scrim{transition:none}
  .tb .live-dot,.tabbar .live-dot{animation:none!important}
  .tb-pop{animation:none}
}
