/* The main Home panel is a readable tournament overview, with the market attached. */
#home .home-tournament{display:flex;flex-direction:column;align-items:stretch;min-height:0;background:radial-gradient(ellipse at 4% 0,#6d5d3c38,transparent 48%),linear-gradient(130deg,#253449,#122132);border-color:#a3927177}
#home .home-tournament::before{display:none}
#home .home-tournament-header{display:flex;align-items:center;gap:14px;padding:18px 20px 14px}
#home .home-tournament-emblem{width:62px;height:62px;object-fit:contain;flex:none}
#home .home-tournament-heading{flex:1;min-width:0}
#home .home-tournament h1{font-size:clamp(24px,2.1vw,32px);line-height:1.2;margin:5px 0 6px}
#home .home-tournament .home-eyebrow{font-size:15px;letter-spacing:.11em}
#home .home-tournament #home-lead{display:block;font-size:15px;line-height:1.4;color:#bdc8d5;margin:0}
#home .home-tournament-status{display:flex;flex-direction:column;align-items:end;gap:8px;max-width:140px;text-align:right}
#home #home-tournament-state{font-size:15px;color:#a9bdce;line-height:1.4}
#home #home-tournament-state[data-state="live"]{color:#9fc8b3}
#home #home-tournament-state[data-state="offline"]{color:#d7b78e}
#home #home-tournament-refresh{font-size:15px;padding:5px 10px;background:#152638}
#home .home-tournament-body{display:grid;grid-template-columns:1fr 1.13fr;gap:20px;padding:0 20px 16px}
#home .home-tournament-body>section{min-width:0}
#home .home-tournament-section-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;min-height:28px;margin:0 0 8px}
#home .home-tournament-section-heading h2{font:500 15px var(--font-ui);color:#d8e1eb;margin:0}
#home .home-text-link{border:0;border-bottom:1px solid #a2b6c84d;background:none;color:#b4c6d9;font:15px var(--font-ui);cursor:pointer;padding:4px 0;white-space:nowrap}
#home .home-text-link:disabled{opacity:.4;cursor:default}
#home .home-standing{display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:3px;min-height:32px;box-sizing:border-box;border-bottom:1px solid #a8b8c61c;font-size:15px;font-variant-numeric:tabular-nums}
#home .home-rank{flex:0 0 18px;text-align:center;font-size:15px;color:#c8ab76}
#home .home-rival{display:block;flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#e0e6ed;font-weight:400}
#home .home-rival small{color:#9aafc4;font-size:15px;font-weight:400}
#home .home-standing .home-rival small{margin-left:8px;color:#e0c598}
#home .home-standing b{font-size:15px;font-weight:500;color:#c8d7e6}
#home .home-standing.is-you{background:#b3935530;border:1px solid #b79d645c;margin-top:4px}
#home .home-defense-summary{font-size:15px;line-height:1.3;color:#9fb3c8;min-height:13px;margin:0 0 3px}
#home .home-defense-summary.has-news{color:#e2c68b}
#home .home-defense-entry{display:flex;align-items:center;gap:9px;padding:7px 6px;border:0;border-bottom:1px solid #91a7bc24;border-left:2px solid transparent;border-radius:0;box-sizing:border-box;width:100%;text-align:left;font:15px var(--font-ui);color:inherit;background:transparent}
#home button.home-defense-entry{cursor:pointer}
#home .home-defense-entry.is-new{border-left-color:#d1b675;background:linear-gradient(90deg,#bfa36a10,transparent)}
#home button.home-defense-entry:hover{background:#627d9430}
#home .home-defense-entry>img{width:24px;height:24px;object-fit:contain;flex:none}
#home .home-defense-entry small{display:block;line-height:1.4;margin-top:3px}
#home .home-defense-entry b{font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}
#home .positive{color:#9bcebc}#home .negative{color:#dda0a4}
#home .home-log-empty{font-size:15px;line-height:1.6;color:#a6bbcc;min-height:100px;margin:0;padding:8px 0;display:flex;gap:12px;align-items:center}
#home .home-log-empty img{height:42px;width:42px;object-fit:contain;opacity:.65}
#home .is-stale .home-standing,#home .is-stale .home-defense-entry{opacity:.6}
#home .home-market-bar{display:flex;align-items:center;gap:12px;padding:12px 20px;margin-top:auto;border-top:1px solid #a391626b;background:linear-gradient(100deg,#79613d28,#172638);box-sizing:border-box}
#home .home-weekly{display:flex;align-items:center;gap:12px;margin:0 20px 16px;padding:14px;border:1px solid #d0b47680;border-radius:5px;background:linear-gradient(110deg,#76613c38,#173244)}
#home .home-weekly[hidden]{display:none}
#home .home-weekly>img{width:38px;height:38px;object-fit:contain;flex:none}
#home .home-weekly>div{flex:1;min-width:0}
#home .home-weekly strong{display:block;font:500 16px/1.3 var(--font-display);color:#efd9ad}
#home .home-weekly span{display:block;margin-top:5px;font:15px/1.4 var(--font-ui);color:#c7d3df}
#home .home-weekly button{min-height:40px;font-size:15px;white-space:nowrap}
@media(max-width:600px){#home .home-weekly{flex-wrap:wrap;margin:0 16px 16px}#home .home-weekly button{width:100%}}
#home .home-market-icon{width:42px;height:42px;object-fit:contain}
#home .home-market-copy{flex:1;min-width:0}
#home .home-market-copy strong{display:block;font:500 16px var(--font-display);color:#ecd4a7;line-height:1.3}
#home .home-market-copy>span{display:block;font-size:15px;line-height:1.4;color:#a8bacb;margin-top:4px}
#home .home-token-balance{flex:none;text-align:right;min-width:60px;padding-right:6px}
#home #shopbal{display:block;font-size:22px;font-weight:500;line-height:1;color:#f2d898;font-variant-numeric:tabular-nums}
#home .home-token-balance>span{display:block;font-size:15px;color:#bdc7d0;margin-top:5px}
#home #shopcard{font-size:15px;min-height:36px;padding:9px 15px;white-space:nowrap}
#home .home-starter-panel,#home .home-tournament-empty{padding:4px 20px 20px;min-height:125px;box-sizing:border-box}
#home .home-starter-panel p,#home .home-tournament-empty p{margin:0 0 16px;font-size:15px;line-height:1.6;color:#bdcbd9;max-width:520px}
#home .home-wheel .roul{justify-content:center}
#shopsheet>.card{width:min(1060px,calc(100vw - 40px));max-width:none;height:auto;max-height:calc(100dvh - 48px);overflow-y:auto;box-sizing:border-box;padding:24px;border-radius:8px;border:1px solid #94a0ac;background:linear-gradient(130deg,#29384a,#111d2b);box-shadow:0 24px 90px #0009;scrollbar-width:thin;scrollbar-color:#617587 #152231}
#shopsheet h2{font:500 30px var(--font-display);color:#ecd7b3;letter-spacing:-.015em;margin:0 0 12px;text-align:center}
#shopsheet .shopbal2{font-size:15px;color:#d4dde7;min-height:34px}
#shopsheet .shopbal2 b{color:#edcd8e}
#shopsheet .shopbal2 .token-icon{width:34px;height:34px}
#shopsheet .shopbal-note,#shopsheet .shopnote{font:15px/1.5 var(--font-ui);color:#acbfd1;text-align:center}
#shopsheet #shoprenew{margin:8px 0 18px}
#shopsheet .shoptabs{gap:10px;margin:0 0 18px}
#shopsheet .shoptab{min-height:42px;font:500 15px var(--font-ui);border-radius:4px;background:#162738;border-color:#748b9f77;color:#c7d6e6}
#shopsheet .shoptab.on{background:#28444c;border-color:#9abcba;color:#e2eee9;box-shadow:none}
#shopsheet .shopgrid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
#shopsheet .shopcell{border-radius:5px;padding:8px;gap:10px;border-color:#869bb14d;background:#132235}
#shopsheet .shopcell .ucard{box-sizing:border-box;padding:3px;border-radius:3px;box-shadow:none;border:1px solid #869ab36b;filter:none}
#shopsheet .shopcell .ucard::after{display:none}
#shopsheet .shopcell .art{height:auto;aspect-ratio:4/5;border-radius:2px}
#shopsheet .shopcell .sc-n{white-space:normal;line-height:1.4;min-height:2.8em;font-size:15px}
#shopsheet .si-b{min-height:36px;border-radius:4px;border-color:#b49c6980;background:#3c3a2d;color:#ebd19d;font:500 15px var(--font-ui)}
#shopsheet .si-b:disabled{opacity:.5;cursor:default}
#shopsheet .shopcell .si-b{margin-top:auto}
#shopsheet .shopit{display:flex;align-items:center;gap:14px;margin:0 0 10px;padding:12px;border-radius:5px;border:1px solid #869bb14d;background:#132235}
#shopsheet .si-ic{width:42px;height:42px;object-fit:contain}
#shopsheet .si-n{font-size:15px;flex:1;color:#d9e1ec}
#shopsheet>.card>.actbtn{margin:20px auto 0;width:min(320px,100%);min-height:40px;background:#1c3043;border:1px solid #7b96aa88;border-radius:4px;color:#d5e2ef;font-family:var(--font-ui)}
#shopsheet :is(button,[tabindex]):focus-visible{outline:2px solid #ecd49b;outline-offset:3px}
@media(min-width:1000px) and (max-height:800px){
 #home .home-tournament-header{padding:12px 16px 10px;gap:10px}
 #home .home-tournament-emblem{width:46px;height:46px}
 #home .home-tournament h1{font-size:25px;margin:3px 0 4px}
 #home .home-tournament-body{padding:0 16px 12px;gap:16px}
 #home .home-standing{min-height:29px;padding:6px}
 #home .home-defense-entry{padding-top:5px;padding-bottom:5px}
 #home .home-market-bar{padding:10px 16px}
 #home .home-market-icon{width:36px;height:36px}
 #home .home-market-copy>span{font-size:15px}
}
@media(max-width:1199px){
 #home .home-tournament-emblem{display:none}
 #home .home-market-copy>span{display:none}
 #home .home-tournament-section-heading{align-items:start;flex-direction:column;gap:2px}
 #home .home-tournament h1{font-size:24px}
}
@media(max-width:999px){
 #home .home-tournament-header{padding:16px;align-items:start;gap:10px}
 #home .home-tournament-body{grid-template-columns:1fr;padding:0 16px 16px;gap:18px}
 #home .home-tournament-section-heading{flex-direction:row;align-items:center;gap:10px;margin-bottom:8px}
 #home .home-tournament h1{font-size:26px}
 #home .home-tournament-status{max-width:86px}
 #home .home-standing{font-size:15px;padding:8px;min-height:36px}
 #home .home-defense-entry{font-size:15px;padding:8px 6px}
 #home .home-market-bar{padding:14px 16px;gap:10px;flex-wrap:wrap}
 #home .home-market-copy{flex-basis:45%}
 #home .home-market-copy strong{font-size:18px}
 #home .home-token-balance{margin-left:auto}
 #home #shopcard{width:100%;min-height:40px;font-size:15px}
 #shopsheet>.card{width:calc(100vw - 24px);padding:16px;max-height:calc(100dvh - 24px)}
 #shopsheet .shopgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #shopsheet h2{font-size:26px}
 #shopsheet .shoptab{font-size:15px}
}

#home .home-standings .home-tournament-section-heading{justify-content:flex-end}
#home .home-standing.is-promoting{background:linear-gradient(90deg,#42786540,#2a54491c);box-shadow:inset 3px 0 #78bca0}
#home .home-standing.is-promoting b{color:#b8e4cd}
#home .home-standing.is-promoting.is-you{border-color:#98bd9388}
.league-promotion{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:24px;color:#a3dcc0;vertical-align:middle}
.league-promotion svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1199px){#home .home-standings .home-tournament-section-heading{align-items:flex-end}}
