.hub-nav{position:relative;z-index:4;display:flex;gap:10px;justify-content:center;margin:24px auto 0;flex-wrap:wrap}.hub-nav button{background:#48325f;border:1px solid #9774b5;border-bottom:4px solid #251636;border-radius:11px;padding:13px 18px;color:#f5e9ff;font:bold 12px 'Trebuchet MS',sans-serif;letter-spacing:.7px}#wallet{color:#ffe498;font-size:12px;display:block;margin-top:8px}#loadout-preview{position:relative;text-align:center;color:#d8c3f3;font-size:11px;margin-top:14px;z-index:3}.character-stage{top:24%;height:42%}.game-bottom{margin-top:30px}#lobby{padding-bottom:20px}.hub-dialog{width:1000px;max-width:calc(100vw - 24px);max-height:90svh;overflow:auto;background:#221730;color:#f7eeff;border:2px solid #9875b3;border-radius:22px;padding:26px;box-shadow:0 30px 120px #0009}.hub-dialog::backdrop,#promotion-dialog::backdrop{background:#10071bcc;backdrop-filter:blur(7px)}.hub-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.hub-heading h2{font-size:26px;margin:0}#hub-tabs{display:flex;gap:8px;margin:22px 0;flex-wrap:wrap}#hub-tabs button{background:#402c55;color:#e8d4ff;border:1px solid #84629a;border-radius:9px;padding:10px 16px}#hub-tabs button[aria-pressed=true]{background:#d6ff82;color:#253719}#hub-content>p{font-size:13px;color:#d0bbdf;line-height:1.8}.equipped-line{background:#422b5a;padding:13px;border-radius:10px;font-size:13px;margin:16px 0}.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.spell-card{background:linear-gradient(135deg,#473061,#2d2041);border:2px solid #695179;border-radius:15px;padding:16px;display:flex;flex-direction:column}.spell-card.equipped{border-color:#c7f780}.card-art{font-size:42px;color:#ddc1ff;height:70px;display:grid;place-items:center;background:radial-gradient(ellipse,#c5a4fb22,transparent);margin-bottom:12px}.spell-card small{font-size:10px;color:#c4acd6}.spell-card h3{margin:9px 0 3px;font-size:18px}.spell-card p{font-size:12px;color:#d4c0e5;line-height:1.6;flex:1}.spell-card button{padding:10px;color:#dfffac;border:1px solid #927da6;background:#241931;border-radius:8px;font-size:12px;font-weight:bold}.spell-card button:disabled{color:#a794b9;border-color:#63546d;cursor:default}.bind-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:25px 0}.bind-grid label{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#3a294e;padding:14px;border-radius:10px;font-size:13px}.bind-grid button{min-width:85px;padding:9px;background:#21152e;border:1px solid #b18ed1;border-radius:7px;color:#e5ffc0}.road-stop{display:flex;gap:20px;align-items:center;border-left:4px solid #674c7e;padding:20px;background:#31213f;margin:10px 0;border-radius:12px}.road-stop.reached{border-left-color:#c6ff85}.road-stop>span{font-size:36px;color:#d5ff98;min-width:40px;text-align:center}.road-stop h3{font-size:20px;margin:0}.road-stop p{font-size:13px;color:#d0b9df}.road-stop small{color:#c2a6d4}.treasure-icon{text-align:center;font-size:100px;color:#ffe399;text-shadow:0 8px #9e6f5d}.rank-choice{background:#3a2750;padding:20px;margin-top:22px;border-radius:12px}.rank-choice button{margin:5px}.loot-message{font-size:17px!important;color:#e6ffb8!important}.hub-dialog button:disabled{opacity:.65;cursor:default}#promotion-dialog{max-width:calc(100vw - 24px);width:480px;text-align:center;background:radial-gradient(ellipse at top,#7f4fa7,#291b40);color:#fff;border:2px solid #ceffaa;border-radius:24px;padding:35px}#promotion-icon{font-size:90px;color:#d9ff93;display:block;text-shadow:0 0 45px #c3ff96;animation:rank-pop .8s cubic-bezier(.2,1.6,.4,1)}#promotion-dialog h2{font-size:30px}#promotion-dialog p{color:#e4c8ff;line-height:1.7}#promotion-dialog button{display:block;margin:14px auto 0}#promotion-close{font-size:12px}.status-legend{font-size:11px;color:#b8dbe0}@keyframes rank-pop{from{transform:scale(.2) rotate(-30deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}@media(max-width:750px){.card-grid{grid-template-columns:1fr 1fr}.hub-dialog{padding:16px}.hub-nav{gap:7px}.hub-nav button{font-size:10px;padding:11px}.hub-heading h2{font-size:22px}.bind-grid{grid-template-columns:1fr}.character-stage{height:240px}.game-bottom{margin-top:25px}}@media(max-width:430px){.card-grid{grid-template-columns:1fr}.hub-nav{justify-content:start}.spell-card{padding:14px}.card-art{height:40px;font-size:34px}}@media(prefers-reduced-motion:reduce){#promotion-icon{animation:none}}

.treasure-icon{position:relative;width:150px;height:100px;margin:34px auto 28px;border:6px solid #c6daf5;border-radius:18px 18px 12px 12px;background:linear-gradient(135deg,#668ed4,#293e73);font-size:0;box-shadow:0 9px #11091e55,0 0 55px #b776e433}.treasure-icon:before{content:'';position:absolute;left:-6px;right:-6px;top:30px;height:7px;background:#c6daf5}.treasure-icon:after{content:'✦';position:absolute;left:51px;top:21px;background:#e1eeff;color:#485f8c;border-radius:6px;padding:4px 9px;font-size:24px}.treasure-icon.royal{border-color:#f8d97e;background:linear-gradient(135deg,#bd6ee3,#542885);box-shadow:0 9px #11091e55,0 0 65px #fbd26c66}.treasure-icon.royal:before,.treasure-icon.royal:after{background:#f8d97e}.loot-message:not(:empty){animation:loot-pop .4s ease-out}@keyframes loot-pop{from{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){.loot-message:not(:empty){animation:none}}

.discord-link{position:relative;z-index:5;display:block;width:max-content;margin:16px auto 0;padding:8px 17px;border-radius:20px;background:#5865f244;color:#e1e4ff;font-size:12px;text-decoration:none;border:1px solid #8e97f577}.discord-link:hover{background:#5865f2}.card-art{height:auto;margin:0 0 12px}.card-art img{width:100%;max-height:180px;object-fit:contain}.spell-card{transition:transform .18s,border-color .18s}.spell-card:hover{transform:translateY(-3px)}.spell-card.rank-locked .card-art{filter:saturate(.3);opacity:.55}.deck-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.deck-heading small{letter-spacing:2px;color:#c6a1fb}.deck-heading h3{margin:7px 0;font-size:23px}.deck-heading>b{color:#ffdf90}.battle-deck{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:18px;background:linear-gradient(#17182f,#292140);border-radius:20px;border:1px solid #625280;box-shadow:inset 0 -5px 0 #100e20}.deck-slot{display:flex;flex-direction:column;align-items:center;padding:10px;border:2px solid #73678c;border-bottom:5px solid #554569;border-radius:13px;background:linear-gradient(#4f4267,#302b44);color:#fff;min-width:0;cursor:pointer}.deck-slot img{width:100%;max-height:130px;object-fit:contain}.deck-slot strong{font-size:14px;margin:6px 0}.deck-slot small{font-size:9px;color:#c8c2de;margin-top:7px}.deck-slot span{font-size:10px;color:#c8c2de}.deck-slot.selected{border-color:#d5ff89;background:linear-gradient(#525e45,#2c3940);box-shadow:0 0 24px #ceff8022}.deck-slot.universal{opacity:.65;cursor:default}.collection-help{color:#c5b2d9;font-size:13px;line-height:1.7;margin:22px 0}.copy-track{height:8px;background:#161125;border:1px solid #6d5d85;border-radius:8px;overflow:hidden}.copy-track i{height:100%;display:block;background:linear-gradient(90deg,#5ebeb3,#c6ff89);transition:width .5s}.copy-count{margin:7px 0 12px;text-align:center}#loadout-preview{display:flex;justify-content:center;gap:15px}#loadout-preview span{display:flex;align-items:center;gap:5px}#loadout-preview img{width:32px;height:32px}#rank-emblem{background:none!important;border:none!important;width:75px!important;height:75px!important;padding:0!important}#rank-emblem img{width:100%;height:100%;object-fit:contain}.road-stop>span{width:90px;flex-shrink:0}.road-stop img{width:90px;height:90px}#promotion-icon img{width:170px;height:170px}.spell .icon img,[data-spell] .icon img{width:40px;height:40px;object-fit:contain}
#chest-dialog{width:540px;max-width:calc(100vw - 24px);max-height:95svh;overflow:auto;border:2px solid #b291e7;border-radius:28px;padding:32px;background:radial-gradient(ellipse at 50% 40%,#594480,#19192e 75%);color:#fff;text-align:center;box-shadow:0 30px 100px #0009}#chest-dialog::backdrop{background:#080a19ed;backdrop-filter:blur(12px)}#chest-content>small{letter-spacing:4px;color:#ffd888;font-weight:bold}#chest-content h2{font-size:27px;margin:18px 0}.chest-stage{position:relative;min-height:280px;display:flex;flex-direction:column;justify-content:center;align-items:center}.chest-stage>.treasure-icon{transform:scale(1.4);animation:chest-idle 1.8s infinite}.chest-rays{position:absolute;inset:-30px;background:repeating-conic-gradient(from 0deg,transparent 0deg 20deg,#b194ed18 20deg 35deg);mask-image:radial-gradient(#000,transparent 68%);animation:chest-turn 35s linear infinite}.opened{animation:reward-arrive .4s cubic-bezier(.15,1.3,.5,1)}.revealed-card{position:relative;width:190px;filter:drop-shadow(0 0 24px #d69aff55)}.revealed-card img{width:100%}.revealed-card strong{position:absolute;bottom:5px;right:-10px;background:#e1ff91;color:#26332d;border:3px solid #fff;border-radius:12px;padding:4px 12px;font-size:28px}.chest-stage .copy-track{width:210px;margin:8px 0 22px}.coin-art{height:130px;width:130px;display:grid;place-items:center;border-radius:50%;border:9px solid #ffefad;background:linear-gradient(135deg,#ffeea1,#db902c);color:#fff3b9;font-size:70px;box-shadow:0 8px #956525,0 0 55px #ffd98655;margin:20px}.loot-amount{font-size:27px;color:#ffe496;margin:20px}.loot-summary{width:100%;text-align:left;padding:12px}.loot-summary>b{display:block;text-align:center;color:#ffdd88;font-size:24px;margin:12px}.loot-summary>div{display:flex;align-items:center;gap:14px;margin:12px 0;border:1px solid #8674a3;border-radius:12px;padding:7px;background:#1c183855}.loot-summary img{width:62px;height:60px}.loot-summary span{font-size:14px}#chest-next{display:block;margin:16px auto}#chest-skip{margin:10px}.chest-save-note{font-size:11px;color:#b3a4ce}button:focus-visible,a:focus-visible{outline:3px solid #e0ffa1;outline-offset:4px}@keyframes chest-idle{0%,100%{transform:scale(1.4) rotate(-3deg)}50%{transform:scale(1.45) rotate(3deg)}}@keyframes chest-turn{to{transform:rotate(360deg)}}@keyframes reward-arrive{from{opacity:0;transform:translateY(25px) scale(.8)}to{opacity:1;transform:none}}@media(max-width:600px){.battle-deck{gap:5px;padding:8px}.deck-slot{padding:5px}.deck-slot strong{font-size:11px}.deck-slot small{font-size:8px}.deck-slot span{display:none}.deck-heading h3{font-size:19px}.card-grid{grid-template-columns:repeat(2,1fr)}.spell-card{padding:10px}.spell-card h3{font-size:16px}.deck-slot img{min-height:65px}.road-stop>span,.road-stop img{width:66px}#loadout-preview{gap:6px;font-size:9px}}@media(prefers-reduced-motion:reduce){.chest-rays,.chest-stage>.treasure-icon,.opened{animation:none}.spell-card,.copy-track i{transition:none}}

#chest-dialog{overflow-x:hidden}.revealed-card img,.card-art img{aspect-ratio:12/11}.reveal-name{font-size:19px;color:#ead9ff;margin:0 0 12px}.chest-stage:has(.revealed-card){min-height:300px}.revealed-card{min-height:174px}

img[src*="rank-2400"]{filter:drop-shadow(0 0 10px #4affdbaa);animation:ascendant-glow 2.8s ease-in-out infinite}@keyframes ascendant-glow{50%{filter:drop-shadow(0 0 19px #4affdbdd)}}@media(prefers-reduced-motion:reduce){img[src*="rank-2400"]{animation:none}}

.treasure-icon{width:230px;height:184px;background:url('art/chest-standard.svg') center/contain no-repeat;border:0;box-shadow:none;border-radius:0}.treasure-icon:before,.treasure-icon:after{display:none}.treasure-icon.royal{background:url('art/chest-royal.svg') center/contain no-repeat;border:0;box-shadow:none;filter:drop-shadow(0 0 18px #d6a1ff55)}.chest-stage>.treasure-icon{width:240px;height:200px}.battle-deck{grid-template-columns:repeat(5,1fr)}.bottom{grid-template-columns:repeat(5,1fr)}.spell[data-spell=ultimate]{order:5;border-color:#c4a16c;background:linear-gradient(135deg,#443355,#201b30)}.rarity-card{border-color:var(--rarity);box-shadow:inset 0 4px 0 var(--rarity)}.rarity-card.equipped{outline:2px solid #d6ff97}.loot-summary img{border-radius:7px}@media(max-width:750px){.bottom{grid-template-columns:repeat(2,1fr)}.battle-deck{grid-template-columns:repeat(3,1fr)}.deck-slot.universal{grid-column:auto}.spell[data-spell=ultimate]{grid-column:1/-1}}

.drop-odds{margin:18px 0;padding:14px;border:1px solid #7f679d;border-radius:10px;font-size:12px;line-height:1.8;color:#d4c4e8}.drop-odds summary{cursor:pointer;color:#e1ffb0}

.team-queue{position:relative;z-index:5;display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:22px auto 0}.team-queue label{font-size:11px;letter-spacing:1px;color:#ddd1f0}.team-queue select{background:#45315f;border:2px solid #9273b1;color:#fff;font-weight:bold;padding:10px 18px}.team-queue small{width:100%;text-align:center;color:#c7b4dd;font-size:11px}.team-roster{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 0}.team-roster[hidden]{display:none}.team-roster>section{padding:12px;background:#172d3c;border:1px solid #60bad077;border-radius:12px}.team-roster>section+section{background:#382333;border-color:#e48f9d77}.team-roster section>strong{font-size:11px;letter-spacing:1.5px;color:#9ee7ff}.team-roster section+section>strong{color:#ffb0bc}.roster-member{display:grid;grid-template-columns:1fr auto;gap:4px;padding:9px 0;border-bottom:1px solid #ffffff13;font-size:11px}.roster-member small{grid-column:1/-1;color:#c9c3d7;font-size:10px}.roster-member.eliminated{opacity:.4}.spell[hidden]{display:none}.deck-slot.universal:has(strong:first-child){justify-content:center;min-height:160px}.team-roster~.arena .hud{top:10px}@media(max-width:650px){.team-roster{gap:6px}.team-roster>section{padding:8px}.roster-member{font-size:10px}.team-queue select{max-width:90vw}}

.league-block{width:340px;max-width:54vw}.league-block .rank-progress-box{width:100%;margin:14px 0 0;padding:10px 13px;background:#241a3bdd;border:1px solid #9c80bd44;border-radius:10px}.league-block .rank-label{font-size:10px}.league-block .rank-track{height:7px;margin-top:7px}.game-bottom{justify-content:center}.game-bottom .menu-controls{text-align:center}.league-block .rank-mini{width:100%}@media(max-width:650px){.league-block{max-width:53vw}.league-block .rank-mini{gap:6px}.league-block #rank-name{font-size:15px}.league-block #rank-emblem{width:48px!important;height:48px!important}.league-block .rank-label{font-size:9px;gap:7px}}

@media(min-width:1050px){#match:has(#team-roster:not([hidden])){max-width:1500px;display:grid;grid-template-columns:160px minmax(0,1fr)160px;gap:12px;padding:10px 20px 20px}#match[hidden]{display:none!important}#match:has(#team-roster:not([hidden]))>.heading{grid-column:1/-1;margin:0 0 4px}#match:has(#team-roster:not([hidden]))>.arena{grid-column:2;grid-row:2}#match:has(#team-roster:not([hidden]))>.bottom{grid-column:2;margin-top:0;grid-template-columns:repeat(2,1fr)}#match:has(#team-roster:not([hidden]))>.bottom .spell{min-height:56px;padding:8px}#match:has(#team-roster:not([hidden]))>.bottom .spell[data-spell=ultimate]{grid-column:1/-1}#match:has(#team-roster:not([hidden]))>.footer{grid-column:2;margin-top:0}#match>#team-roster:not([hidden]){display:contents}#team-roster:not([hidden])>section{grid-row:2;grid-column:1;align-self:start}#team-roster:not([hidden])>section+section{grid-column:3}.roster-member{grid-template-columns:1fr}.roster-member small{overflow-wrap:anywhere;line-height:1.6}.team-roster~.arena .hud{left:14px;right:14px;gap:8px}.team-roster~.arena .name{font-size:9px;letter-spacing:0}}

@media(min-width:1050px){#match:has(#team-roster:not([hidden])){max-width:clamp(960px,calc((100svh - 350px)*1.8 + 384px),1500px)}}
