/* Shared mode surfaces: readable at phone widths, stable before scripts run. */
:is(.hub-page,.verse-page,.life-page){--mode-accent:#adbbff;--mode-surface:#151e32;--mode-border:#91a8df30;box-sizing:border-box;width:100%;max-width:1280px!important;margin:24px auto!important;padding:clamp(16px,3vw,36px)!important;color:#eef3ff;min-width:0}
#verse-aux{--mode-accent:#f3b5da}#verse-imposter{--mode-accent:#bda9ff}#verse-quiz{--mode-accent:#f6d686}#verse-debates{--mode-accent:#86dcd5}#life-builder-page{--mode-accent:#9adebf}#ranked-tournament-page{--mode-accent:#e9cd88}
:is(.hub-page,.verse-page,.life-page) *{box-sizing:border-box}
:is(.hub-heading,.verse-heading,.life-heading){position:relative;padding:24px 0 28px!important;margin:0 0 26px!important;border-bottom:1px solid var(--mode-border);background:none!important;min-width:0}
:is(.hub-heading,.verse-heading,.life-heading) h1{font-size:clamp(2rem,4.4vw,3.8rem)!important;line-height:1.1!important;letter-spacing:-.045em!important;margin:12px 0!important;overflow-wrap:anywhere;color:#f6f8ff!important}
:is(.hub-heading,.verse-heading,.life-heading) .ai-eyebrow{color:var(--mode-accent)!important;letter-spacing:.16em;font-size:11px}
:is(.hub-heading,.verse-heading,.life-heading) p{max-width:680px;line-height:1.7;color:#b1bed5}
:is(.hub-heading,.verse-heading)>button{justify-self:start;width:fit-content;padding:9px 14px!important;font-size:12px!important;background:#ffffff07!important;border:1px solid var(--mode-border)!important;border-radius:24px!important;margin-bottom:10px}
:is(.hub-page,.verse-page,.life-page) :is(h2,h3,strong){overflow-wrap:anywhere}
:is(.hub-page,.verse-page,.life-page) :is(.hub-hero,.verse-panel,.life-empty,.life-stage,.life-record,.hub-character){background:linear-gradient(140deg,#1e2940,#121b2d)!important;border:1px solid var(--mode-border)!important;border-radius:22px!important;box-shadow:0 12px 38px #02081825!important;padding:clamp(20px,3vw,34px)!important;min-width:0}
:is(.hub-page,.verse-page,.life-page) :is(.hub-hero,.verse-panel) h2{font-size:clamp(1.35rem,2.4vw,2rem);line-height:1.2;letter-spacing:-.025em;margin-top:0}
:is(.hub-page,.verse-page,.life-page) :is(p,small){line-height:1.65}
:is(.hub-page,.verse-page,.life-page) button{min-height:44px;border-radius:12px;transition:background .15s,border-color .15s;touch-action:manipulation;white-space:normal}
:is(.hub-page,.verse-page,.life-page) button:hover:not(:disabled){border-color:var(--mode-accent);filter:brightness(1.08)}
:is(.hub-page,.verse-page,.life-page) button:disabled{cursor:not-allowed}
:is(.hub-page,.verse-page,.life-page) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-width:0;max-width:100%;background:#0c1527!important;border:1px solid #91a8df40!important;color:#edf3ff!important;border-radius:10px!important;padding:12px!important;font-size:16px!important;min-height:46px}
:is(.hub-page,.verse-page,.life-page) :is(input[type=checkbox],input[type=radio]){accent-color:var(--mode-accent);width:18px;height:18px;flex:none}
:is(.hub-page,.verse-page,.life-page) [hidden]{display:none!important}
:is(.hub-page,.verse-page,.life-page) [role=status]:not(:empty){padding:12px 16px;background:#e7bd6910;border:1px solid #e7bd6938;border-radius:12px;color:#f3d69f;overflow-wrap:anywhere}
.hub-page .hub-board button{min-width:0;min-height:105px;padding:15px;background:#152239;border-color:#51688750}
.hub-page .hub-board button:not(:disabled):hover{background:#263351}
.hub-page .hub-board button strong{font-size:14px;line-height:1.45;white-space:normal}
.hub-page .hub-board span{color:var(--mode-accent);font-size:10px;letter-spacing:.08em}
.hub-page .hub-board small{font-size:12px;line-height:1.5}
.hub-page .hub-history{border:1px solid var(--mode-border);background:#101d30;padding:18px;border-radius:14px}
.hub-page .hub-pool{gap:12px;max-height:560px}.hub-page .hub-pool button{background:#162239;border-color:var(--mode-border)}
.hub-page .hub-pool button.selected{outline:2px solid var(--mode-accent);outline-offset:-2px;background:#303550}
.verse-page .verse-cards{gap:20px}.verse-page .verse-portrait{border-radius:16px;background:#0a1220}
.verse-page .quiz-board{border-radius:16px;overflow:auto;gap:10px;padding:10px;background:#091325;border:1px solid var(--mode-border);overscroll-behavior-x:contain}
.verse-page .quiz-category h3{border-radius:12px;background:#21314c;color:#eee1b6;border:1px solid #dfc78233;line-height:1.4}
.verse-page .quiz-category button{border-radius:12px;background:linear-gradient(135deg,#263b63,#202d49);border-color:#7d9bd14d;color:#f6d686;font-size:28px}
.verse-page .quiz-category button:disabled{background:#101a2b;border-color:#ffffff0c;color:#6f819e;opacity:.6}
.verse-page .imp-role-list label{border-radius:12px!important;background:#101b2d!important}.verse-page .imp-role-list label:has(:checked){border-color:var(--mode-accent)!important;background:#40325655!important}
.verse-page .imp-origin-list{background:#0d1628;padding:10px;border-radius:14px}
.verse-page .aux-artist{border-radius:20px!important;border-color:#c4a1de55!important;min-height:250px!important}
.verse-page .aux-artist strong{font-size:clamp(16px,1.8vw,22px);line-height:1.4}
.life-page .life-worlds{gap:12px}.life-page .life-worlds button{border-radius:16px!important;min-height:74px;background:#18243a!important;border:1px solid var(--mode-border)!important}
.life-page .life-worlds button[aria-pressed=true]{background:#1a3b3c!important;border-color:var(--mode-accent)!important}
.life-page .life-record li{padding:15px 0;border-bottom:1px solid #ffffff12}.life-page .life-record li strong{line-height:1.4}
.life-page .life-empty{padding:50px 24px!important;text-align:center}
/* Ranked tournament setup and immutable room rules. */
.tourney-intro{padding:clamp(24px,5vw,54px);border-radius:24px;border:1px solid #cbb27840;background:radial-gradient(ellipse at top right,#ac843329,transparent 65%),#172238;margin-bottom:24px}
.tourney-intro h2{font-size:clamp(30px,4vw,50px);line-height:1.08;letter-spacing:-.04em;max-width:680px;margin:18px 0}.tourney-intro p{max-width:700px;color:#c0cbe0}
.tourney-intro .ai-eyebrow{color:#ead49c}.tourney-steps{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.tourney-steps span{padding:10px 14px;background:#ffffff08;border:1px solid #ffffff10;border-radius:30px;font-size:12px;color:#dbcba5}
.tourney-setup{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:24px;align-items:start}.tourney-join{position:sticky;top:24px}.tourney-join hr{border:0;border-top:1px solid var(--mode-border);margin:28px 0}
.tourney-fields{display:grid;grid-template-columns:2fr 1fr;gap:16px}.tourney-setup label{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-size:13px;color:#c4d0e3}.tourney-setup input,.tourney-setup select{width:100%}
.tourney-build-types{border:0;padding:0;margin:20px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.tourney-build-types legend{font-size:12px;color:#b3c3dd;margin-bottom:10px}.tourney-build-types label{margin:0;flex-direction:row;align-items:flex-start;border:1px solid #a5b4da33;border-radius:14px;padding:16px;cursor:pointer}.tourney-build-types label:has(:checked){background:#bea25817;border-color:#dfc78a}.tourney-build-types input{width:18px!important;margin-top:3px}.tourney-build-types strong,.tourney-build-types small{display:block}.tourney-build-types strong{font-size:15px;color:#eef2ff}.tourney-build-types small{font-size:11px;color:#9eafc9;margin-top:5px}
.tourney-stat-preview{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:22px}.tourney-stat-preview span{padding:6px 9px;background:#8d9fc614;border:1px solid #b7c7e11c;border-radius:7px;color:#acbddb;font-size:11px}
.tourney-filters{border:1px solid var(--mode-border);border-radius:14px;padding:16px;background:#09142655}.tourney-filters summary{cursor:pointer;font-weight:700;font-size:14px}.tourney-filters summary span{display:inline-block;font-size:11px;background:#8596b921;border-radius:20px;padding:4px 9px;margin-left:8px;color:#c9d6eb}.tourney-filters>p{font-size:12px}.tourney-filters .hub-actions{margin:12px 0}.tourney-filters button{font-size:12px;min-height:36px;padding:7px 12px;background:#ffffff08}
.tourney-origins{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-height:260px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.tourney-origins label{margin:0;display:flex;flex-direction:row;align-items:center;padding:9px;background:#ffffff04;border-radius:8px;gap:8px;font-size:12px}.tourney-origins input{width:18px!important}.tourney-origins span{flex:1;overflow-wrap:anywhere}.tourney-origins small{color:#869ab8;font-size:10px}
#ranked-tournament-page :is([data-create],[data-join]){width:100%;background:#d6bd80;color:#142039;border-color:#efd8a3}#ranked-tournament-page [data-pool-note]{font-size:12px}
.tourney-rules{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:20px 0;padding:16px 20px;border:1px solid var(--mode-border);border-radius:14px;background:#162239}.tourney-rules>span{color:#aebed8;font-size:12px}.tourney-rules details{width:100%;font-size:12px}.tourney-rules p{max-height:140px;overflow:auto}
.tourney-bracket{scroll-snap-type:x proximity}.tourney-bracket>section{scroll-snap-align:start}.tourney-bracket h3{font-size:11px;text-transform:uppercase;letter-spacing:.15em;color:#c8b985}.tourney-current{outline-color:#e5c782!important}
/* Full names and forms must grow the card, not clip or become ellipses. */
#anime-filter-options.v56-category-filter .anime-filter-option{transition:none!important;animation:none!important}
body :is(#character-name,#battle-character-name,#ddor-roll-name,.ddor-roll-name,.cpu-pick h3,.cw-selected h2,.hub-character h2){white-space:normal!important;text-overflow:clip!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:normal!important;max-height:none!important;height:auto!important;min-width:0!important;max-width:100%!important;-webkit-line-clamp:unset!important;line-height:1.25!important}
body :is(#character-form,#character-anime,#battle-character-form,#battle-character-anime,.cw-selected p,.cpu-pick p){white-space:normal!important;overflow-wrap:anywhere!important;max-height:none!important}
@media(max-width:760px){
 .tourney-setup,.tourney-fields{grid-template-columns:1fr}.tourney-join{position:static}.tourney-build-types{grid-template-columns:1fr 1fr}.tourney-origins{grid-template-columns:1fr}
 :is(.hub-page,.verse-page,.life-page){margin:8px auto!important;padding:16px!important}
 :is(.hub-page,.verse-page,.life-page) :is(.hub-hero,.verse-panel,.life-stage,.life-record,.hub-character){padding:20px!important;border-radius:18px!important}
 .hub-page .hub-draft,.hub-page .hub-columns{grid-template-columns:minmax(0,1fr)}.hub-page .hub-board{gap:8px}.hub-page .hub-board button{padding:12px;min-height:100px}
 .hub-heading h1,.verse-heading h1,.life-heading h1{font-size:32px!important}.hub-page .hub-actions>*{max-width:100%}
 body :is(#roll-card,#battle-roll-card,.cpu-pick,.ddor-roll-card){height:auto!important;max-height:none!important;min-width:0!important}
 body :is(.center-panel,.battle-roll-panel,.cpu-center){max-height:none!important;min-width:0!important}
 body :is(.filled-name,.filled-details,.cpu-slot-row button>span){white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere!important;-webkit-line-clamp:unset!important;max-height:none!important}
 body .slot-box{height:auto!important;min-height:62px}body :is(.filled-slot,.filled-info){min-width:0!important;height:auto!important}
}
@media(max-width:380px){.tourney-build-types{grid-template-columns:1fr}.hub-page .hub-board{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){:is(.hub-page,.verse-page,.life-page) *{scroll-behavior:auto!important;transition:none!important}}

/* Ranked tournament waiting room. */
#ranked-tournament-page .tl-kicker{display:block;font-size:10px;font-weight:800;letter-spacing:.18em;color:#dcc48b}
#ranked-tournament-page .tl-banner{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:24px 0 28px;padding:30px;border:1px solid #d6bc793b;border-radius:20px;background:radial-gradient(ellipse at right top,#a7793429,transparent 70%),linear-gradient(120deg,#182b40,#222238)}
#ranked-tournament-page .tl-banner h2{font-size:clamp(26px,3vw,38px);letter-spacing:-.04em;line-height:1.15;margin:12px 0}
#ranked-tournament-page .tl-banner p{color:#b8c7dc;font-size:14px;margin:0;line-height:1.6}
#ranked-tournament-page .tl-phase{display:flex;align-items:center;gap:8px;white-space:nowrap;padding:9px 12px;border:1px solid #7cd6b336;border-radius:30px;background:#63bd9b0c;font-size:12px;color:#a5e4cf}
#ranked-tournament-page .tl-phase i{width:6px;height:6px;background:#90dec4;border-radius:50%}
#ranked-tournament-page .tl-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:22px;align-items:start}
#ranked-tournament-page .tl-panel{min-width:0;padding:26px;border:1px solid #899cba36;border-radius:20px;background:#142238}
#ranked-tournament-page .tl-panel h3{font-size:21px;margin:8px 0;letter-spacing:-.02em}
#ranked-tournament-page .tl-panel-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}
#ranked-tournament-page .tl-count{font-size:32px;line-height:1;color:#eed498;font-weight:800}.tl-count small{font-size:17px;color:#8e9fba;font-weight:400}
#ranked-tournament-page .tl-subtitle{font-size:12px;color:#a9bad1;margin:12px 0 22px}
#ranked-tournament-page .tl-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}
#ranked-tournament-page .tl-player{display:flex;align-items:center;gap:12px;padding:15px 12px;border:1px solid #9cb7d127;border-radius:12px;background:#101c2f;min-width:0;position:relative;flex-wrap:wrap}
#ranked-tournament-page .tl-you{border-color:#d7bd7c77;background:linear-gradient(120deg,#d7bd7c0e,#0e1e30)}
#ranked-tournament-page .tl-avatar{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;color:#e8d7ac;background:#d8bd7b14;border:1px solid #d8bd7b30;font-size:17px;font-weight:700}
#ranked-tournament-page .tl-player-info{flex:1;min-width:80px}.tl-player-info strong{display:block;font-size:14px;line-height:1.45;overflow-wrap:anywhere;color:#f0f3fa}.tl-player-info>span{display:block;font-size:11px;color:#a3b4ce;margin-top:5px}
#ranked-tournament-page .tl-player-tag{font-size:8px;letter-spacing:.12em;padding:4px 6px;border-radius:5px;background:#8191b41a;color:#c0cde0}
#ranked-tournament-page .tl-empty{border-style:dashed;background:transparent}.tl-empty .tl-avatar{background:transparent!important;border-color:#aab9d526!important;color:#8699b8!important}.tl-empty .tl-player-info strong{font-weight:500;color:#94a6c0}.tl-empty .tl-player-info>span{font-size:10px;color:#8093b0}
#ranked-tournament-page .tl-lineup-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #9cb7d11a;margin-top:22px;padding-top:16px;color:#9badc8;font-size:11px}
#ranked-tournament-page .tl-lineup-footer button{font-size:11px;padding:8px 12px;background:#ffffff06;border-color:#9cb7d130}
#ranked-tournament-page .tl-sidebar{display:grid;gap:18px}
#ranked-tournament-page .tl-invite{background:linear-gradient(145deg,#283044,#19263b);border-color:#d7bd7c4a}
#ranked-tournament-page .tl-invite label{font-size:11px;color:#b3c1d8;margin:18px 0 8px}
#ranked-tournament-page .tl-code{display:block;box-sizing:border-box;width:100%;font-family:ui-monospace,monospace;letter-spacing:.13em;font-weight:700;font-size:clamp(20px,2vw,26px);background:#111d30;border-color:#ad946340;color:#f2dca9;text-align:center;padding:16px 8px}
#ranked-tournament-page .tl-invite button{width:100%;margin-top:12px;background:#d8c18a;color:#152238;border-color:#e6d29f;font-size:13px}
#ranked-tournament-page .tl-invite details{margin-top:15px;font-size:11px;color:#adbed6}.tl-invite details input{box-sizing:border-box;width:100%;margin-top:8px;font-size:11px!important}
#ranked-tournament-page :is(.tl-invite,.tl-pool) summary{cursor:pointer}
#ranked-tournament-page .tl-locked{font-size:8px;letter-spacing:.1em;color:#adbed3}
#ranked-tournament-page .tl-build-name{display:block;font-size:17px;margin-top:16px;color:#efdaaa;overflow-wrap:anywhere}
#ranked-tournament-page .tl-format>p{font-size:11px;color:#aebfd6;line-height:1.6}.tl-format .tourney-stat-preview{margin:14px 0}.tl-format .tourney-stat-preview span{font-size:10px}
#ranked-tournament-page .tl-pool{border-top:1px solid #9cb7d122;border-bottom:1px solid #9cb7d122;padding:14px 0;font-size:12px}.tl-pool summary span{float:right;color:#c9b98f;font-size:10px}.tl-pool>div{display:flex;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto;margin-top:12px}.tl-pool>div span{padding:5px 8px;border-radius:6px;background:#ffffff07;overflow-wrap:anywhere}
#ranked-tournament-page .tl-rule-list{padding:0;list-style:none;font-size:11px;color:#bdcce0;margin:16px 0 0}.tl-rule-list li{margin-top:9px}.tl-rule-list li::before{content:'✓';margin-right:8px;color:#91d7bd}
#ranked-tournament-page .tl-launch{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:22px;padding:28px;border:1px solid #d6bc7947;border-radius:20px;background:linear-gradient(120deg,#273045,#25243a)}
#ranked-tournament-page .tl-launch h3{font-size:23px;line-height:1.25;margin:10px 0;overflow-wrap:anywhere}.tl-launch p{font-size:12px;line-height:1.7;max-width:640px;color:#b6c5db;margin:0}
#ranked-tournament-page .tl-launch-actions{display:grid;gap:8px;min-width:210px}.tl-launch-actions .tl-start{background:#e3cb92;color:#142238;border-color:#f2dfb1}.tl-launch-actions .tl-start:disabled{background:#4c4b4f;color:#c2bec2;border-color:#716b65}.tl-launch-actions .tl-leave{background:transparent;border-color:transparent;color:#d8b4bd;font-size:12px}.tl-waiting{font-size:12px;padding:12px;text-align:center;color:#cfbfdc}
#ranked-tournament-page .tl-footnote{font-size:11px;color:#94a9c6;text-align:center;line-height:1.7;margin:18px 0}
@media(max-width:1000px){#ranked-tournament-page .tl-roster{grid-template-columns:1fr}}
@media(max-width:760px){#ranked-tournament-page .tl-layout{grid-template-columns:1fr}#ranked-tournament-page .tl-banner,#ranked-tournament-page .tl-launch{flex-direction:column;align-items:stretch;padding:22px}#ranked-tournament-page .tl-phase{align-self:flex-start}#ranked-tournament-page .tl-panel{padding:20px}#ranked-tournament-page .tl-launch-actions{min-width:0;width:100%}#ranked-tournament-page .tl-banner h2{font-size:29px}#ranked-tournament-page .tl-roster{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#ranked-tournament-page .tl-roster{grid-template-columns:1fr}#ranked-tournament-page .tl-pool summary span{float:none;margin-left:8px}}

/* Tournament match: portraits and choices, with numerical ratings kept server-side. */
#ranked-tournament-page .tm-matchhead{padding:22px 26px;border:1px solid #d8bd7b40;background:linear-gradient(120deg,#1d3045,#28263c);border-radius:20px;margin:24px 0}
#ranked-tournament-page .tm-match-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:#aabed3;margin-bottom:20px}
#ranked-tournament-page .tm-versus{display:grid;grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr);gap:20px;align-items:center}.tm-vs{color:#d8bd7b;font-size:17px;text-align:center;font-weight:800}
#ranked-tournament-page .tm-player{min-width:0}.tm-player strong{display:block;font-size:clamp(17px,2vw,24px);overflow-wrap:anywhere;line-height:1.3}.tm-player strong small{font-size:8px;background:#d8bd7b24;padding:4px 6px;border-radius:4px;color:#f3d69d;vertical-align:middle}.tm-player>span{display:block;font-size:11px;color:#aac0d6;margin:8px 0}.tm-player progress{display:block;width:100%;height:5px;border:0;border-radius:10px;accent-color:#dfc38b}.tm-player progress::-webkit-progress-bar{background:#ffffff13;border-radius:10px}.tm-player progress::-webkit-progress-value{background:#dfc38b;border-radius:10px}
#ranked-tournament-page .tm-arena{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.5fr);gap:24px;align-items:start}
#ranked-tournament-page .tm-roll{position:sticky;top:18px;min-width:0;border:1px solid #d4ba7b59;border-radius:22px;background:radial-gradient(ellipse at 50% 40%,#b49b4324,transparent 80%),#142338;overflow:hidden}
#ranked-tournament-page .tm-roll-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px;font-size:11px;color:#b7c8dc}
#ranked-tournament-page .tm-art{position:relative;display:grid;place-items:center;aspect-ratio:4/3;background:#0b1424;overflow:hidden;isolation:isolate}
#ranked-tournament-page .tm-art img{display:block;width:100%;height:100%;object-fit:contain;min-width:0;position:absolute;inset:0;z-index:1}#ranked-tournament-page .tm-art img[hidden]{display:none}
#ranked-tournament-page .tm-art-fallback{display:none;font-size:12px;color:#9aacc7;padding:12px;text-align:center}.tm-no-image .tm-art-fallback{display:block!important}
#ranked-tournament-page .tm-character-info{padding:22px;text-align:center}.tm-character-info h2{font-size:clamp(23px,2.8vw,32px);line-height:1.15;overflow-wrap:anywhere;margin:0 0 12px!important;letter-spacing:-.03em}.tm-character-info p{font-size:12px;color:#a8bdd4;margin:6px 0;overflow-wrap:anywhere}.tm-character-info .tm-form{font-size:15px;color:#e7cf9d}
#ranked-tournament-page .tm-deadline{border-top:1px solid #ffffff14;text-align:center;margin:0;padding:14px;font-size:11px;color:#b8c7db}
#ranked-tournament-page .tm-section-heading{margin:6px 0 18px}.tm-section-heading h3{font-size:23px;margin:9px 0;line-height:1.25}.tm-section-heading p{font-size:12px;color:#aebed5;margin:0}
#ranked-tournament-page .tm-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#ranked-tournament-page .tm-slot{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:12px;min-width:0;min-height:104px;padding:17px;border-radius:13px;background:#16273d;border:1px solid #92a6c143;color:#e3eaf5;transition:background .15s,border-color .15s}
#ranked-tournament-page .tm-slot:not(:disabled):hover{border-color:#e4c98b;background:#333447}#ranked-tournament-page .tm-slot:focus-visible{outline:3px solid #e4c98b;outline-offset:2px}
#ranked-tournament-page .tm-slot:disabled{opacity:1;cursor:default}.tm-slot .tm-stat{color:#bcceea;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;line-height:1.4}.tm-slot>strong{font-size:13px;color:#e3cc99;font-weight:500}.tm-slot.tm-filled{background:#101f32!important;border-color:#78bba538!important}.tm-slot.tm-filled .tm-stat{color:#98d6bb}
#ranked-tournament-page .tm-slot-pick{display:flex;gap:10px;align-items:center;min-width:0}.tm-slot-pick>div:last-child{min-width:0}.tm-slot-pick strong{display:block;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.tm-slot-pick small{display:block;font-size:10px;font-weight:400;line-height:1.5;color:#a6bad3;margin-top:4px;overflow-wrap:anywhere}
#ranked-tournament-page .tm-thumb{width:44px;height:52px;aspect-ratio:auto;flex:0 0 44px;border-radius:7px}.tm-thumb img{object-fit:cover!important}.tm-thumb .tm-art-fallback{font-size:8px!important;padding:2px!important}
#ranked-tournament-page .tm-opponent{margin:26px 0;padding:22px;border:1px solid #a2b5d12b;border-radius:16px;background:#142237}.tm-opponent summary{cursor:pointer;font-weight:600;color:#c4d1e8;font-size:14px}.tm-opponent .tm-slots{margin-top:20px}
#ranked-tournament-page .tm-wait{padding:40px 26px;margin-bottom:24px;border:1px solid #8ed3b737;border-radius:20px;background:linear-gradient(125deg,#17323e,#22263d)}.tm-wait h2{font-size:28px;line-height:1.2;margin:12px 0}.tm-wait p{color:#b5c8dd;font-size:14px}
@media(max-width:760px){#ranked-tournament-page .tm-arena{grid-template-columns:1fr}#ranked-tournament-page .tm-roll{position:static}#ranked-tournament-page .tm-roll>.tm-art{aspect-ratio:4/3;max-height:340px}#ranked-tournament-page .tm-matchhead{padding:18px}#ranked-tournament-page .tm-versus{grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);gap:10px}#ranked-tournament-page .tm-slot{padding:12px;min-height:96px}#ranked-tournament-page .tm-slot-pick{flex-wrap:wrap}#ranked-tournament-page .tm-character-info{padding:18px}#ranked-tournament-page .tm-section-heading h3{font-size:22px}}
@media(max-width:350px){#ranked-tournament-page .tm-slots{grid-template-columns:1fr}}

/* Reveal only completed results; animation runs once per result in this tab. */
#ranked-tournament-page .tm-result{position:relative;isolation:isolate;overflow:hidden;margin:26px 0;padding:30px;text-align:center;border:1px solid #e6c47288;border-radius:24px;background:radial-gradient(ellipse at 50% 0,#b18a3440,transparent 65%),linear-gradient(125deg,#1d2d44,#29213e);scroll-margin-top:20px}
#ranked-tournament-page .tm-result h2{position:relative;font-size:clamp(28px,4vw,46px);line-height:1.15;margin:12px 0;overflow-wrap:anywhere;color:#fff1c9}
#ranked-tournament-page .tm-result>p{color:#c3cee1;font-size:14px;line-height:1.6}.tm-result-crown{font-size:64px;line-height:1.2;color:#f7d986;margin:10px 0}
#ranked-tournament-page .tm-result-scores{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:620px;margin:24px auto 0}
.tm-result-scores>div{display:flex;flex-direction:column;gap:8px;padding:22px 12px;background:#0e192aaa;border:1px solid #8d9eba40;border-radius:16px;min-width:0}.tm-result-scores span{overflow-wrap:anywhere;font-size:16px;font-weight:700}.tm-result-scores strong{font-size:clamp(34px,5vw,58px);font-variant-numeric:tabular-nums;color:#e8efff;line-height:1.1}.tm-result-scores small{font-size:10px;letter-spacing:.08em;color:#b8c9df}.tm-result-scores .tm-score-winner{border-color:#edcf81;background:linear-gradient(130deg,#5b492a77,#1b2b3dcc)}.tm-score-winner strong,.tm-score-winner small{color:#f7d986}
#ranked-tournament-page .tm-bracket-score{font-size:13px;line-height:1.6;color:#efd89c;font-variant-numeric:tabular-nums}
.tm-result-sparks{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}.tm-result-sparks i{position:absolute;left:calc(5% + var(--spark) * 8%);top:0;width:7px;height:15px;background:#f0d188;opacity:0}.tm-result-sparks i:nth-child(3n){background:#baa0f3}.tm-result-sparks i:nth-child(3n + 1){background:#8cd6cb}
.tm-reveal .tm-result-crown{animation:tm-crown-in 1.1s ease-out both}.tm-reveal h2{animation:tm-result-in .7s .25s ease-out both}.tm-reveal .tm-result-scores{animation:tm-result-in .7s .55s ease-out both}.tm-reveal .tm-score-winner{animation:tm-winner-glow 1.3s .6s ease-out both}.tm-reveal .tm-result-sparks i{animation:tm-confetti 2.1s calc(var(--spark) * .055s) ease-out both}
@keyframes tm-crown-in{0%{opacity:0;transform:translateY(16px) scale(.45) rotate(-12deg)}65%{opacity:1;transform:translateY(-3px) scale(1.12) rotate(4deg)}100%{opacity:1;transform:none}}
@keyframes tm-result-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes tm-winner-glow{0%,100%{box-shadow:0 0 0 #f2d28700}45%{box-shadow:0 0 32px #f2d28766}}
@keyframes tm-confetti{0%{opacity:0;transform:translateY(-20px) rotate(0)}15%{opacity:.8}100%{opacity:0;transform:translateY(440px) rotate(250deg)}}
@media(max-width:600px){#ranked-tournament-page .tm-result{padding:24px 16px}.tm-result-scores>div{padding:18px 8px}#ranked-tournament-page .tm-result-scores{gap:10px}.tm-result-scores span{font-size:14px}}
@media(prefers-reduced-motion:reduce){.tm-reveal .tm-result-crown,.tm-reveal h2,.tm-reveal .tm-result-scores,.tm-reveal .tm-score-winner,.tm-reveal .tm-result-sparks i{animation:none!important}.tm-result-sparks{display:none}}

/* v122: mobile placed names need real width, including while tools are open. */
@media(max-width:760px){
 body :is(#draft-page,#character-battles-page) .slot-box{flex-wrap:wrap;align-content:start;align-items:flex-start}
 body :is(#draft-page,#character-battles-page) .slot-box .slot-card{box-sizing:border-box;width:100%!important;max-width:100%;flex:1 0 100%!important;flex-wrap:wrap;align-items:center;gap:8px;transition:none}
 body :is(#draft-page,#character-battles-page) .slot-box .filled-slot{box-sizing:border-box;flex:1 1 125px!important;width:auto!important;min-width:min(100%,125px)!important;max-width:100%!important}
 body :is(#draft-page,#character-battles-page) .slot-box :is(.filled-name,.filled-details){display:block;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;line-height:1.3!important;-webkit-line-clamp:unset!important;max-height:none!important}
 body :is(#draft-page,#character-battles-page) .slot-box .slot-img{box-sizing:border-box;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;flex:0 0 56px!important}
 body :is(#draft-page,#character-battles-page) .slot-box .slot-actions{margin-left:auto;max-width:100%!important;transition:none}
 /* Scroll the whole multi-fighter table together instead of crushing columns. */
 body #draft-page :is(.fighter-table,.battle-table){display:block;min-width:0!important;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 body #draft-page :is(.multi-header-row,.multi-stat-row){grid-template-columns:95px repeat(var(--column-count,1),minmax(145px,1fr))!important;min-width:calc(95px + var(--column-count,1)*152px);overflow:visible!important}
}
