/* DraftArena 1.5.0 — ladder/home redesign without ornamental rank frames. Inspired, not copied. */
#main.page-home,#main.page-ladder,#main.page-profile{position:relative;isolation:isolate}
#main.page-home::before,#main.page-ladder::before,#main.page-profile::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;background-image:radial-gradient(rgba(151,212,255,.12) 1px,transparent 1px);background-size:28px 28px;opacity:.18;mask-image:linear-gradient(180deg,rgba(255,255,255,.55),transparent 92%);}\n#main.page-home::after,#main.page-ladder::after,#main.page-profile::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(circle at 18% 12%,rgba(56,126,255,.20),transparent 26%),radial-gradient(circle at 82% 18%,rgba(78,190,255,.12),transparent 24%),linear-gradient(180deg,rgba(7,17,46,.25),rgba(6,14,36,.78) 42%,rgba(5,12,28,.96));}
#main.page-ladder > *,#main.page-home > *,#main.page-profile > *{position:relative;z-index:1}
.ambient-particles{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.ambient-particles span{position:absolute;display:block;width:4px;height:4px;border-radius:50%;background:radial-gradient(circle,#9ed8ff,rgba(255,255,255,0));opacity:.14;filter:blur(.2px);animation:particle-float 14s linear infinite}
.ambient-particles span:nth-child(1){left:8%;top:80%;animation-duration:17s;animation-delay:-2s}
.ambient-particles span:nth-child(2){left:18%;top:62%;width:3px;height:3px;animation-duration:13s;animation-delay:-7s}
.ambient-particles span:nth-child(3){left:32%;top:88%;width:5px;height:5px;animation-duration:19s;animation-delay:-4s}
.ambient-particles span:nth-child(4){left:49%;top:78%;width:3px;height:3px;animation-duration:16s;animation-delay:-9s}
.ambient-particles span:nth-child(5){left:65%;top:84%;animation-duration:15s;animation-delay:-1s}
.ambient-particles span:nth-child(6){left:78%;top:68%;width:5px;height:5px;animation-duration:18s;animation-delay:-12s}
.ambient-particles span:nth-child(7){left:87%;top:90%;width:3px;height:3px;animation-duration:14s;animation-delay:-5s}
.ambient-particles span:nth-child(8){left:57%;top:58%;width:2px;height:2px;animation-duration:12s;animation-delay:-11s}
@keyframes particle-float{from{transform:translate3d(0,0,0) scale(.9);opacity:.08}50%{opacity:.22}to{transform:translate3d(0,-145px,0) scale(1.15);opacity:0}}
.hero-pro,.podium-section-pro,.ladder-showcase{position:relative;overflow:hidden}
.hero-pro{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.88fr);gap:28px;align-items:center}
.hero-showcase{position:relative;z-index:1}
.leader-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.podium-grid-pro{align-items:stretch}
.leader-card{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:430px;border-radius:28px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(15,21,31,.96),rgba(11,15,24,.98));overflow:hidden;box-shadow:0 26px 70px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.06);color:#f8efe2;transition:transform .18s ease, box-shadow .18s ease,border-color .18s ease}
.leader-card:hover{transform:translateY(-4px);border-color:rgba(243,201,116,.32);box-shadow:0 34px 80px rgba(0,0,0,.4)}
.leader-card.compact{min-height:350px}
.leader-card-media{position:absolute;inset:0 0 35% 0;display:flex;align-items:flex-end;justify-content:center;padding:20px}
.leader-card-backdrop{position:absolute;inset:0;background:radial-gradient(circle at 50% 18%,rgba(99,173,255,.2),transparent 45%),linear-gradient(180deg,rgba(255,255,255,.03),rgba(0,0,0,.3));overflow:hidden}
.leader-card-backdrop::after{content:'';position:absolute;inset:auto -10% 0;height:46%;background:linear-gradient(180deg,rgba(10,13,18,0),rgba(10,13,18,.95) 72%)}
.class-backdrop{position:absolute;inset:-5% -5% auto -5%;width:110%;height:110%;object-fit:cover;object-position:center 24%;opacity:.28;filter:saturate(.9) blur(.3px)}
.profile-card-backdrop{inset:0;width:100%;height:100%;opacity:.22}
.leader-card-rank{position:absolute;top:18px;left:18px;display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:36px;padding:0 12px;border-radius:999px;background:rgba(6,12,22,.62);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.08);font-weight:900;font-size:13px;color:#f6d38d;letter-spacing:.08em;z-index:2}
.leader-card-avatar{position:relative;z-index:1;width:min(72%,270px);aspect-ratio:1/1.14;border-radius:28px;overflow:hidden;border:1px solid rgba(255,255,255,.09);background:radial-gradient(circle at 50% 18%,rgba(255,255,255,.12),rgba(10,14,22,.4));box-shadow:0 22px 58px rgba(0,0,0,.4)}
.leader-card.compact .leader-card-avatar{width:min(74%,220px)}
.leader-card-avatar img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 18%}
.leader-card-avatar img.illustration{object-fit:contain;object-position:center bottom;padding:8px;background:radial-gradient(circle at 50% 30%,rgba(255,255,255,.06),rgba(0,0,0,0))}
.leader-card-body{position:relative;z-index:2;display:flex;flex-direction:column;gap:12px;padding:22px 22px 24px;margin-top:auto;background:linear-gradient(180deg,rgba(8,11,18,0),rgba(8,11,18,.68) 18%,rgba(8,11,18,.96))}
.leader-card-head{display:flex;flex-direction:column;gap:10px}
.leader-card-head strong{font-size:clamp(22px,2vw,28px);line-height:1.1;letter-spacing:-.02em}
.leader-card.compact .leader-card-head strong{font-size:clamp(18px,1.6vw,24px)}
.league-pill{width:fit-content}
.leader-card-meta{font-size:12px;color:#c7d2de;min-height:18px}
.leader-card-meta span{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.leader-card-meta .team-logo{width:16px;height:16px}
.leader-card-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.leader-card-stats span{display:flex;flex-direction:column;gap:4px;padding:12px 13px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035)}
.leader-card-stats b{font-size:22px;color:#fff6e7;line-height:1}
.leader-card-stats small{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#9fb2c5}
.home-ladder-pro .leader-card-grid{margin-top:10px}
.home-metrics.pro{border-radius:22px;overflow:hidden}
.podium-section-pro{padding:28px;border:1px solid rgba(255,255,255,.07);border-radius:28px;background:linear-gradient(180deg,rgba(16,20,28,.96),rgba(10,13,20,.98));box-shadow:0 24px 70px rgba(0,0,0,.25);margin-bottom:28px}
.podium-section-pro .podium-heading{position:relative;z-index:1;margin-bottom:18px}
.podium-grid-pro .leader-card:nth-child(2){transform:translateY(-18px);border-color:rgba(243,201,116,.22)}
.podium-grid-pro .leader-card:nth-child(2):hover{transform:translateY(-22px)}
.ladder-table-panel{background:linear-gradient(180deg,rgba(15,19,28,.96),rgba(9,12,18,.98));border:1px solid rgba(255,255,255,.07)}
.showcase-player-card-pro{border:1px solid rgba(255,255,255,.08);border-radius:26px;overflow:hidden;background:linear-gradient(180deg,rgba(15,21,31,.96),rgba(9,13,20,.99));box-shadow:0 24px 56px rgba(0,0,0,.28)}
.showcase-art-pro{position:relative;min-height:420px;overflow:hidden}
.showcase-art-pro::after{content:'';position:absolute;inset:auto 0 0;height:42%;background:linear-gradient(180deg,rgba(9,13,20,0),rgba(9,13,20,.94))}
.showcase-player-card-pro .showcase-character{position:relative;z-index:1}
.showcase-player-card-pro .showcase-card-caption{position:relative;z-index:2;background:none;border-top:1px solid rgba(255,255,255,.06)}
@media(max-width:1180px){.hero-pro{grid-template-columns:1fr}.leader-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.podium-grid-pro .leader-card:nth-child(2){transform:none}.podium-grid-pro .leader-card:nth-child(2):hover{transform:translateY(-4px)}}
@media(max-width:760px){.leader-card-grid{grid-template-columns:1fr}.leader-card,.leader-card.compact{min-height:320px}.leader-card-media{inset:0 0 33% 0}.leader-card-avatar{width:min(68%,200px)}.hero-pro{gap:18px}.podium-section-pro{padding:18px}}
@media(prefers-reduced-motion:reduce){.ambient-particles span,.leader-card,.podium-grid-pro .leader-card:nth-child(2){animation:none!important;transition:none!important;transform:none!important}}
/* Draft 1.5.0 — make bans visual and the order unmistakable. */
.draft-order-flow{display:grid;grid-template-columns:repeat(16,minmax(64px,1fr));gap:8px;margin:0 0 18px;overflow-x:auto;padding-bottom:4px}
.draft-order-step{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 8px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,#201e1b,#171717);min-width:64px;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.draft-order-step b{font-size:11px;color:#cbb58d}
.draft-order-step small{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#e9dfcd;text-align:center}
.team-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;font-size:13px;font-weight:900;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.3)}
.team-badge.ban{background:linear-gradient(180deg,#c44747,#8c1e1e)}
.team-badge.pick{background:linear-gradient(180deg,#43b967,#1e7f44)}
.team-badge.team-A::after,.team-badge.team-B::after{content:''}
.draft-order-step.is-current{border-color:#f0c678;box-shadow:0 0 0 1px rgba(240,198,120,.18),0 10px 26px rgba(0,0,0,.28)}
.draft-banned{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:16px}
.draft-ban-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 6px;border-radius:12px;border:1px solid rgba(255,255,255,.07);background:#191816;min-height:150px;text-align:center}
.draft-ban-card small{font-size:10px;color:#cfb488;letter-spacing:.1em;text-transform:uppercase}
.draft-ban-card strong{font-size:12px;line-height:1.2;color:#f0e7d5;overflow-wrap:anywhere}
.draft-ban-image{width:100%;aspect-ratio:4/5;border-radius:10px;overflow:hidden;background:linear-gradient(150deg,#322b21,#181818);border:1px solid #83673d}
.draft-ban-image .draft-face-image{width:100%;height:100%;display:block;object-fit:cover;object-position:center 24%}
.draft-action-list{gap:8px}
.draft-action{display:inline-flex;align-items:center;gap:7px}
@media(max-width:1180px){.draft-order-flow{grid-template-columns:repeat(8,minmax(64px,1fr))}.draft-banned{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.draft-order-flow{grid-template-columns:repeat(4,minmax(64px,1fr))}.draft-banned{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* DraftArena 1.5.2 — compact home, blue ambient stage inspired by AAN, profile cards. */
.hero-pro{grid-template-columns:minmax(0,1.05fr) minmax(290px,.84fr);gap:20px;padding:22px 24px;min-height:0}
.hero-pro .hero-copy h1{font-size:clamp(34px,4.2vw,58px);line-height:.98;margin-bottom:10px}
.hero-pro .hero-copy p{font-size:15px;max-width:56ch;margin-bottom:14px}
.hero-pro .hero-actions{gap:10px}.hero-pro .hero-bottom{margin-top:6px}
.home-metrics.pro{margin:14px 0 4px}.home-section{margin-top:18px}
.class-backdrop{object-position:56% 24%}
.player-showcase.profile-showcase-compact{grid-template-columns:minmax(0,1.08fr) minmax(280px,.85fr) minmax(0,.86fr);gap:18px;padding:20px;border-radius:24px;background:linear-gradient(180deg,rgba(12,19,43,.94),rgba(8,13,30,.97));border:1px solid rgba(113,161,255,.12);box-shadow:0 26px 70px rgba(0,0,0,.22)}
.profile-identity-card h2{font-size:clamp(32px,3.6vw,56px);line-height:.95;margin-bottom:10px}.profile-quick-meta{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:12px;color:#b9c7ea}.profile-quick-meta span{font-size:13px}
.profile-aside-compact .showcase-panel{min-height:100%;background:linear-gradient(180deg,rgba(12,18,40,.92),rgba(8,13,27,.95));border:1px solid rgba(116,158,255,.11)}
.performance-content.compact{gap:10px}.profile-progress-copy{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#bdd1f3}
.profile-hub{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.9fr);gap:20px;margin-top:20px;align-items:start}.profile-side-stack{display:grid;gap:20px}
.profile-recent-panel,.profile-used-panel,.profile-summary-panel{background:linear-gradient(180deg,rgba(15,21,45,.96),rgba(8,12,27,.98));border:1px solid rgba(119,160,255,.11)}
.profile-recent-list{display:flex;flex-direction:column;gap:12px;padding:18px}
.profile-match-card{display:grid;grid-template-columns:30px 58px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.profile-match-card.win{background:linear-gradient(90deg,rgba(59,117,255,.22),rgba(16,25,52,.9));border-color:rgba(87,146,255,.3)}
.profile-match-card.loss{background:linear-gradient(90deg,rgba(167,46,74,.22),rgba(34,16,26,.9));border-color:rgba(209,87,110,.24)}
.profile-match-result{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:rgba(255,255,255,.08);font-weight:900;font-size:14px}.profile-match-card.win .profile-match-result{color:#9dcbff}.profile-match-card.loss .profile-match-result{color:#ffc1ce}
.profile-match-lead,.profile-match-placeholder{width:58px;height:58px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.05);display:grid;place-items:center;border:1px solid rgba(255,255,255,.08)}
.profile-match-lead .draft-face-image{width:100%;height:100%;display:block;object-fit:cover;object-position:center 22%}.profile-match-placeholder{font-weight:900;color:#9db7e9}
.profile-match-main{min-width:0;display:flex;flex-direction:column;gap:5px}.profile-match-main strong{font-size:18px;letter-spacing:-.02em}.profile-match-main small{color:#aec2e8;font-size:12px}
.profile-match-classes{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.profile-mini-class{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;overflow:hidden;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}.profile-mini-class .draft-face-image{width:100%;height:100%;display:block;object-fit:cover;object-position:center 24%}
.profile-match-metrics{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:78px}.profile-match-metrics b{font-size:16px}.profile-match-metrics small{font-size:12px;color:#c2d2f2}.profile-match-actions .btn{white-space:nowrap}
.profile-used-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px}.profile-used-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:14px 10px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}.profile-used-card strong{font-size:14px}.profile-used-card small{font-size:12px;color:#adc0e7}
.profile-used-art{width:100%;max-width:96px;aspect-ratio:1/1;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));display:grid;place-items:center}.profile-used-art .draft-face-image{width:100%;height:100%;display:block;object-fit:cover;object-position:center 22%}.profile-used-art.empty{font-size:28px;color:#7890be}
.profile-summary-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-achievement-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
@media(max-width:1180px){.player-showcase.profile-showcase-compact{grid-template-columns:1fr}.profile-hub{grid-template-columns:1fr}.profile-match-card{grid-template-columns:30px 58px minmax(0,1fr) auto}.profile-match-actions{grid-column:3/-1;justify-self:end}}
@media(max-width:760px){.hero-pro{padding:18px}.profile-recent-list,.profile-used-grid{padding:14px}.profile-match-card{grid-template-columns:30px 52px minmax(0,1fr);gap:10px}.profile-match-metrics,.profile-match-actions{grid-column:2 / -1;justify-self:start;align-items:flex-start}.profile-used-grid{grid-template-columns:1fr}.profile-summary-stats{grid-template-columns:1fr}}

/* DraftArena 1.5.3 — extra compact home and simplified ladder/profile cards. */
.hero-pro{grid-template-columns:minmax(0,1fr) minmax(260px,.78fr);gap:16px;padding:18px 20px}
.hero-pro .hero-copy h1{font-size:clamp(30px,3.6vw,48px);margin-bottom:8px}
.hero-pro .hero-copy p{font-size:14px;max-width:52ch;margin-bottom:12px}
.hero-pro .hero-actions .btn{padding:10px 14px}.hero-pro .hero-kicker{margin-bottom:8px}.hero-pro .hero-bottom{font-size:12px}
.home-metrics.pro{margin:10px 0 0}.home-metrics.pro div{padding:12px 10px}.home-metrics.pro strong{font-size:24px}.home-section{margin-top:14px}
.reference-card .reference-record,.reference-card .reference-player-title,.reference-card .reference-top-classes{text-align:center}
.table-ladder-minimal .table-player-minimal{display:inline-flex;align-items:center;min-width:0}.table-ladder-minimal .namecell .player-link{font-weight:700}
.ladder-rank-logo{display:inline-flex;align-items:center;justify-content:center;font-size:28px;line-height:1;filter:drop-shadow(0 2px 6px rgba(0,0,0,.32))}
.table-ladder-minimal td:nth-child(3),.table-ladder-minimal th:nth-child(3){text-align:center;width:88px}
.profile-used-grid{gap:10px;padding:16px}.profile-used-card{gap:8px;padding:10px 8px;border-radius:16px}.profile-used-art{max-width:72px;border-radius:14px}.profile-used-card strong{font-size:13px}.profile-used-card small{font-size:11px}
.showcase-player-card-pro .showcase-art-pro{min-height:370px}.showcase-player-card-pro .showcase-character{filter:drop-shadow(0 10px 24px rgba(0,0,0,.28))}
@media(max-width:760px){.hero-pro{padding:16px}}

/* v1.5.9 — KTA character shown directly, WITHOUT player card or classic class layer. */
.player-showcase.profile-showcase-compact.profile-no-artwork-layer{background:transparent!important;box-shadow:none!important;border:0!important;isolation:isolate}
.player-showcase.profile-no-artwork-layer::before{display:none!important}
.profile-kta-portrait{align-self:center;justify-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:390px;margin:0;padding:0;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;overflow:visible!important}
.profile-kta-artwork{display:block;width:auto;height:auto;max-width:100%;max-height:500px;object-fit:contain;object-position:center center;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;filter:none!important;image-rendering:auto}
.profile-kta-portrait figcaption{max-width:100%;font:900 clamp(20px,2.4vw,31px)/1.12 Impact,'Arial Narrow',sans-serif;text-transform:uppercase;text-align:center;color:#f4f2ed;overflow-wrap:anywhere;text-shadow:0 2px 9px #0008}
.profile-used-note{margin:0 16px 16px;color:#bac7d1;font-size:12px;line-height:1.55;border-left:2px solid #cba16a;padding-left:11px}
@media(max-width:1180px){.profile-kta-portrait{min-height:280px}.profile-kta-artwork{max-height:440px}}
@media(max-width:680px){.profile-kta-portrait{min-height:190px}.profile-kta-artwork{max-height:380px}}
