:root{color-scheme:dark;--al-bg:#0b0d12;--al-panel:#13161d;--al-border:#232833;--al-purple:#a997ff}
body{background:radial-gradient(circle at 100% 0,rgba(124,92,255,.10),transparent 28%),var(--al-bg);padding-bottom:calc(100px + env(safe-area-inset-bottom))}
.al-header{background:#111318}
.al-intro,.al-panel,.al-stat{background:#171b23;border-color:var(--al-border)}
.al-alliance-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title crests" "description description";align-items:start;gap:12px 16px;background:linear-gradient(140deg,rgba(124,92,255,.13),#151820 70%)}
.al-hero-badges{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:5px;max-height:134px;overflow-y:auto;scrollbar-width:thin}
.al-grid .al-stat strong{color:#fff}
.al-grid .al-stat:not(.al-stat-history) strong{padding-left:6px}
.al-hero-text{min-width:0;overflow-wrap:anywhere}
.al-hero-text{grid-area:title}.al-hero-crests{grid-area:crests}.al-alliance-hero .al-hero-description{grid-area:description;margin:0}
.al-hero-crests{min-width:110px;max-width:172px;align-self:center;border-radius:17px;border:1px solid rgba(169,151,255,.17);background:rgba(124,92,255,.075);padding:13px 12px;text-align:center}
.al-hero-crests-label{display:block;color:#a996e8;font-size:10px;font-weight:800;letter-spacing:.8px;margin-bottom:11px}
.al-hero-badges{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;align-items:center}
.al-hero-badge{width:37px;height:37px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#242637;font-size:19px}
.al-hero-badge img{width:34px;height:34px;object-fit:contain}
.al-hero-more{color:#d2c5ff;font-size:12px;font-weight:800}
.al-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.al-grid .al-stat{min-height:88px;padding:13px 14px;gap:12px;background:linear-gradient(135deg,rgba(124,92,255,.12),#191c23 70%)}
.al-grid .al-stat span{font-size:12px}
.al-grid .al-stat strong{font-size:24px;line-height:1.1}
.al-stat-history{cursor:pointer;text-decoration:none;color:inherit}
.al-stat-history strong{font-size:13px!important;color:#fff!important}
.al-stat-history:focus-visible,.al-nav-item:focus-visible{outline:2px solid #a997ff;outline-offset:2px}
.al-clan{background:#151820}
.al-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-height:calc(66px + env(safe-area-inset-bottom));padding:6px 6px calc(5px + env(safe-area-inset-bottom));border-top:1px solid var(--al-border);background:#13161d;box-shadow:0 -10px 25px rgba(0,0,0,.17)}
.al-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;border-radius:11px;color:#949baa;text-decoration:none;font-weight:700;font-size:10px;text-align:center;line-height:1.1}
.al-nav-item[aria-current=page]{color:#f1ecff;background:rgba(124,92,255,.15)}
.al-nav-icon{font-size:21px;line-height:1}
.al-page-heading{margin:5px 0 17px}.al-page-heading .al-kicker{display:block;margin-bottom:7px}.al-page-heading h2{font-size:24px;margin:0 0 5px}.al-page-heading p{margin:0;color:#969eaf;font-size:13px;line-height:1.5}
.al-switch{display:flex;gap:8px;margin:15px 0}.al-switch button{flex:1;padding:12px 8px;border-radius:11px;background:#1a1e28;border:1px solid var(--al-border);color:#aeb3c3;cursor:pointer;font-size:13px;font-weight:750}.al-switch button[aria-selected=true]{background:#251f3c;color:#eadfff;border-color:rgba(169,151,255,.35)}
.al-rows{display:grid;gap:10px}.al-row{padding:15px;border:1px solid var(--al-border);border-radius:15px;background:#151920;overflow-wrap:anywhere}.al-row h3{margin:0 0 8px;font-size:16px}.al-row p{margin:5px 0;color:#a9b0bd;font-size:13px;line-height:1.45}.al-row small,.al-subtle{color:#838c9b;font-size:11px}.al-row-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.al-row-title{display:flex;align-items:center;gap:8px;min-width:0;font-weight:750}.al-row-title img{width:29px;height:29px;object-fit:contain}.al-row-score{font-size:20px;color:#e8dfff;font-weight:800;white-space:nowrap}.al-muted{color:#aab1bf}.al-group-title{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:27px 0 12px}.al-group-title h3{font-size:17px;margin:0}.al-player-rank{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--al-border)}.al-player-rank:first-child{border-top:0}.al-player-rank span:first-child{color:#a998fa;font-weight:800;min-width:24px}.al-player-name{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:700;font-size:13px}.al-player-name small{display:block;margin-top:3px}.al-player-score{font-size:14px;color:#cdbfff;font-weight:800;text-align:right}
.al-history-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#d7dbe4!important;line-height:1.65!important}.al-history-edit{margin-top:10px}.al-form-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:14px}
.al-base-img{max-width:100%;max-height:250px;object-fit:contain;border-radius:9px;margin:10px 0;display:block}.al-empty{padding:20px;text-align:center;color:#939baa;border:1px solid var(--al-border);border-radius:14px;background:#151820;font-size:13px}
.al-battle{background:linear-gradient(135deg,#171923,#191722);text-align:center;padding:18px 15px}.al-battle-status{display:block;font-weight:800;letter-spacing:.6px;color:#ddd6ff!important}.al-battle-sides{display:grid;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);align-items:center;gap:5px;margin:18px 0}.al-battle-side{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.al-battle-side img{width:43px;height:43px;object-fit:contain}.al-battle-fallback{height:43px;font-size:30px}.al-battle-side strong{font-size:13px;overflow-wrap:anywhere}.al-battle-side b{font-size:23px;color:#f5f2ff}.al-battle-vs{font-size:23px}.al-battle-footer{display:block;border-top:1px solid var(--al-border);padding-top:12px}.al-community-form{margin:14px 0}.al-community-form h3{margin:0 0 14px}.al-community-form label{display:block;color:#b7bdc9;font-size:13px;font-weight:700;margin:12px 0}.al-community-form input:not([type=checkbox]):not([type=file]),.al-community-form select,.al-community-form textarea{box-sizing:border-box;display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #353946;border-radius:10px;background:#10131a;color:#f4f4f7;font:inherit;font-weight:400}.al-community-form input[type=file]{display:block;max-width:100%;margin-top:7px}.al-community-form input[type=checkbox]{accent-color:#7c5cff}.al-community-form .al-check{display:flex;align-items:center;gap:8px}.al-community-form :focus-visible{outline:2px solid #a997ff;outline-offset:2px}
.al-row>.al-battle{margin-top:14px}.al-rounds{margin-top:14px}.al-rounds summary{cursor:pointer;color:#c5b5ff;font-size:13px;font-weight:750}.al-rounds .al-battle{margin-top:10px}
@media(max-width:480px){.al-wrap{padding-left:14px;padding-right:14px}.al-alliance-hero{gap:9px;padding:17px 13px}.al-alliance-hero h2{font-size:24px}.al-hero-crests{min-width:92px;max-width:112px;padding:10px 6px}.al-hero-badge{width:31px;height:31px}.al-hero-badge img{width:29px;height:29px}.al-grid .al-stat{padding:10px;min-height:82px}.al-grid .al-stat span{font-size:10px}.al-grid .al-stat strong{font-size:23px}.al-stat-history strong{font-size:12px!important}.al-nav-item{font-size:9px}}

@media(max-width:1400px){
  .al-alliance-hero{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title crests" "description description";align-items:start;gap:12px 14px}
  .al-alliance-hero .al-hero-text h2{margin-bottom:0}
  .al-alliance-hero .al-hero-crests{width:auto;max-width:172px;min-width:0;align-self:start;justify-self:end;padding:10px 12px}
  .al-alliance-hero .al-hero-badges{flex-wrap:nowrap;justify-content:safe center;max-height:none;overflow-x:auto;overflow-y:hidden}
  .al-alliance-hero .al-hero-badge{flex:none}
}
@media(max-width:480px){
  .al-alliance-hero{column-gap:6px}
  .al-alliance-hero .al-hero-crests{max-width:118px;padding:9px 5px}
  .al-alliance-hero .al-hero-badge{width:27px;height:27px}
  .al-alliance-hero .al-hero-badge img{width:26px;height:26px}
  .al-alliance-hero .al-hero-crests-label{font-size:8px;letter-spacing:0;margin-bottom:6px}
}

.al-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
