.game-mode-switch{display:flex;align-items:center;gap:3px;border:1px solid #fff6;border-radius:9px;padding:4px;flex-shrink:0}.game-mode-switch button{font:700 12px 'Segoe UI',sans-serif;padding:8px 12px;border-radius:6px;color:#ffedf0;background:transparent;min-height:35px}.game-mode-switch button[aria-pressed=true]{color:#bc2941;background:#fff}.j-header-lights:has(+.j-header-actions){display:none}.tournament-view{width:100%;max-width:1160px;margin:0 auto;padding-bottom:28px}.tournament-view h1{font-size:28px;line-height:1.2;letter-spacing:-.6px;margin:4px 0 9px}.tournament-view h2{font-size:16px;color:#30496b;margin:0}.tournament-view p{font-size:13px;line-height:1.65;color:#667d96}.tournament-view small{font-size:12px;color:#6c819a}.t-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin:0 0 24px;flex-wrap:wrap}.t-heading>div{min-width:0;overflow-wrap:anywhere}.t-heading .j-button{flex-shrink:0}.t-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.t-entry form,.t-own-rooms,.t-members,.t-checkpoint,.t-results,.t-rounds>section,.t-command,.t-combat-log,.t-duel-result{background:#fff;border:1px solid #d6e1ee;border-radius:11px;padding:21px}.t-entry form h2{margin-bottom:18px}.t-entry label{display:flex;flex-direction:column;gap:7px;color:#526b89;font-size:12px;font-weight:700;margin-bottom:16px}.t-entry input{font:inherit;font-size:16px;width:100%;padding:11px;border:1px solid #bfcee0;border-radius:7px;color:#263f64;background:#fff}.t-access{margin-bottom:20px}.t-own-rooms{margin-top:23px}.t-own-rooms>div,.t-results>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;border-bottom:1px solid #e2eaf3}.t-own-rooms>div:last-child,.t-results>div:last-child{border-bottom:none}.t-own-rooms small{display:block;margin-top:4px}.t-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.t-error{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;background:#fff3f4;color:#97384c;border:1px solid #ebbdc6;border-radius:9px;padding:16px;margin-bottom:20px;font-size:13px}.t-error h2{color:#97384c}.t-members{padding:0;overflow:hidden}.t-members>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid #d6e1ee}.t-members>header>span{font-size:12px;color:#70859d}.t-members>article{display:grid;grid-template-columns:37px minmax(0,1fr) auto;gap:13px;align-items:center;padding:16px 20px;border-bottom:1px solid #e2eaf3}.t-members>article:last-child{border-bottom:none}.t-members strong{font-size:14px}.t-members small{display:block;margin-top:4px}.t-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#edf3fa;color:#536e90;font-weight:800}.t-member-status{font-size:12px;color:#566f8c}.t-lobby-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:22px 0}.t-prize{font-size:13px;color:#576e8b}.t-room-tools{display:flex;gap:15px;flex-wrap:wrap;margin-top:25px;padding-top:16px;border-top:1px solid #d6e1ee}.t-room-tools .j-button{font-size:12px}.t-checkpoint{text-align:center;padding:35px 20px}.t-checkpoint h2{margin-bottom:18px}.t-checkpoint .t-actions{justify-content:center}.t-checkpoint-team{display:flex;justify-content:center;flex-wrap:wrap;margin-bottom:20px}.t-checkpoint-team .sprite{width:72px;height:72px;object-fit:contain}.t-checkpoint>small{display:block;margin-top:18px}.t-rounds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.t-rounds>section{padding:16px;min-width:0}.t-rounds h2{font-size:14px;margin-bottom:16px}.t-fixture{padding:15px 0;border-top:1px solid #d6e1ee}.t-fixture>small{display:block;margin-bottom:7px}.t-fixture>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 0;font-size:13px}.t-fixture>div.is-winner{color:#247454}.t-fixture .j-button{width:100%;margin-top:12px;font-size:12px;min-height:40px}.t-pending-round{display:block;margin-top:13px;color:#71869f;font-size:12px}.t-table-wrap{overflow-x:auto;background:#fff;border:1px solid #d6e1ee;border-radius:10px}.t-table{width:100%;border-collapse:collapse;font-size:13px;min-width:380px}.t-table th,.t-table td{padding:16px;text-align:left;border-bottom:1px solid #d6e1ee;white-space:nowrap}.t-table thead th{font-size:11px;font-weight:700;color:#6a8099}.t-table tbody th{font-weight:700}.t-table tbody th small{display:block}.t-table tr:last-child>*{border-bottom:none}.t-table tr.is-you{background:#fff3f5}.t-table td:last-child,.t-table th:last-child{text-align:right}.t-results{margin-top:22px}.t-results>p{margin-top:15px}.t-champion{display:flex;align-items:center;gap:13px;background:#fff6dc;border:1px solid #e3cf8f;padding:20px;border-radius:10px;margin-bottom:22px}.t-champion>.icon{width:30px;height:30px;color:#a18022}.t-broadcast-teams{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px}.t-broadcast-teams article{background:#fff;border:1px solid #d6e1ee;border-radius:9px;padding:16px;min-width:0}.t-broadcast-teams article>span{display:block;font-size:12px;color:#70849c;margin:6px 0}.t-broadcast-teams article>div{display:flex;flex-wrap:wrap}.t-broadcast-teams .sprite{width:46px;height:46px;object-fit:contain}.t-broadcast-matches{display:flex;flex-wrap:wrap;gap:15px;margin-top:20px}.t-broadcast-matches>div{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.t-duel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.t-duelist{border:1px solid #cddcec;border-radius:11px;background:#fff;padding:20px;min-width:0}.t-duelist h2{font-size:15px}.t-active{display:flex;align-items:center;justify-content:center;gap:12px;min-height:170px}.t-active>.sprite{width:120px;height:120px;object-fit:contain;image-rendering:pixelated}.t-active>div{min-width:110px;max-width:220px;flex:1}.t-active strong{display:block;font-size:16px}.t-active span{display:block;font-size:12px;color:#71859e;margin:4px 0}.t-party{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.t-party>span{display:flex;flex-direction:column;align-items:center}.t-party .sprite{width:46px;height:46px;object-fit:contain}.t-party small{font-size:11px}.t-party .is-fainted{opacity:.45;filter:grayscale(1)}.t-command{margin-top:18px}.t-command h2{margin-bottom:16px}.t-moves{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.t-move{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px;border:1px solid #cbdcec;border-radius:8px;background:#f2f7fc;color:#304e70;font-size:14px}.t-move:hover{background:#e6eff9}.t-move:disabled,.t-switches button:disabled{opacity:.5;cursor:not-allowed}.t-switches{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.t-switches button{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #d6e1ee;border-radius:8px;background:#fff;color:#30496b;font-size:13px}.t-switches .sprite{width:42px;height:42px;object-fit:contain}.t-switches small{display:block}.t-combat-log{margin-top:18px;padding:15px 20px}.t-combat-log summary{font-size:13px;font-weight:700;color:#5a7392}.t-combat-log ol{font-size:12px;color:#677f99;padding-left:20px;margin-top:13px}.t-combat-log li{padding:3px 0}.t-duel-result{margin-top:20px;text-align:center}.t-duel-result p{margin:10px 0 15px}.t-spectator{margin-top:18px}.tournament-shell .j-layout{grid-template-columns:minmax(0,1fr)}
@media(min-width:1450px){.tournament-view{max-width:1300px}}
@media(max-width:1100px){.t-broadcast-teams{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.t-rounds{grid-template-columns:1fr}.t-entry{grid-template-columns:1fr}.t-duel{gap:10px}.t-duelist{padding:12px}.t-active{flex-direction:column;gap:0}.t-active>div{width:100%;max-width:none}.t-active>.sprite{width:95px;height:95px}.t-table th,.t-table td{padding:13px}.t-members>article{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:14px}.t-member-status{grid-column:2}.t-heading .j-button{min-height:42px}}
@media(max-width:500px){.game-mode-switch button{padding:7px 11px;min-height:36px}.tournament-view h1{font-size:24px}.t-broadcast-teams{grid-template-columns:1fr 1fr}.t-broadcast-teams .sprite{width:36px;height:36px}.t-party{gap:2px}.t-party .sprite{width:30px;height:30px}.t-active strong{font-size:14px}.t-move{padding:13px 10px;font-size:12px}.t-move small{font-size:11px}.t-moves{gap:8px}}

@media(max-width:520px){.j-navigation nav{flex-wrap:wrap;justify-content:flex-start}.j-navigation nav>button{flex:0 0 25%;min-width:0;min-height:52px;font-size:10px}.j-navigation nav>button.active:after{left:12px;right:12px}}

/* Equal outer columns centre the mode selector across the whole header. */
.j-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px}
.j-header .j-brand{grid-column:1;grid-row:1}
.game-mode-switch{grid-column:2;grid-row:1;justify-self:center}
.j-header-right{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.j-header-right .j-header-actions{flex-shrink:0}
.j-header .j-header-right .account-status{flex:0 1 auto;min-width:0}
.j-header-right .account-status>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){.j-header-right{gap:8px}.j-header-right .account-status-link{display:none}}
@media(min-width:721px) and (max-width:950px){.j-header .j-header-right .account-status{flex:none}.j-header-right .account-status>span:nth-child(2){position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media(max-width:720px){
  .j-header{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 12px}
  .j-header-right{display:contents}
  .j-header-actions{grid-column:2;grid-row:1;margin-left:0}
  .game-mode-switch{grid-column:1/-1;grid-row:2;justify-self:center;order:0}
  .j-header .j-header-right .account-status{grid-column:1/-1;grid-row:2;justify-self:end;order:0;max-width:calc((100vw - 220px)/2);margin:0;gap:4px;font-size:10px}
}

.t-entry select,.t-settings select{font:inherit;font-size:14px;width:100%;max-width:100%;padding:11px;border:1px solid #bfcee0;border-radius:7px;color:#263f64;background:#fff}.t-settings{margin-bottom:20px;padding:18px 20px;background:#fff;border:1px solid #d6e1ee;border-radius:10px}.t-settings h2{margin-bottom:14px}.t-settings form{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px}.t-settings label{display:flex;flex-direction:column;gap:7px;color:#526b89;font-size:12px;font-weight:700;min-width:0}.t-settings dl{display:flex;flex-wrap:wrap;gap:12px 30px;margin:0}.t-settings dl>div{display:flex;flex-direction:column;gap:5px;min-width:0}.t-settings dt{font-size:11px;color:#70859d}.t-settings dd{margin:0;font-size:13px;color:#30496b;overflow-wrap:anywhere}.t-entry select:disabled,.t-settings select:disabled{opacity:.7}@media(max-width:650px){.t-settings form{grid-template-columns:1fr}.t-entry select,.t-settings select{font-size:16px}}
