/* Vault 2: an illuminated stage, readable cards and a collector's journey. */
:root{--purple:#b69cff;--gold:#f5ce80;--realm-color:#b69cff}
.app{max-width:1260px}.eyebrow{font-size:12px;letter-spacing:1.7px}.brand{letter-spacing:2.5px}.brand>span{color:var(--gold)}.topline{padding-top:20px}.views{gap:8px}.views button{font-size:14px;padding:11px 20px}.views button[aria-pressed=true]{color:var(--purple);background:var(--glow)}
.wallet{display:flex;align-items:center;justify-content:space-between;text-align:left;flex-wrap:wrap;gap:8px;padding:26px 4px 22px}.wallet>.eyebrow{width:100%;font-size:11px;letter-spacing:2px}.balance{font-size:clamp(32px,5vw,43px);margin:0;line-height:1.1}.stats{gap:22px}.coin{font-size:.7em;margin-right:8px}.stats b{font-weight:600}
#tiers{gap:9px;margin-bottom:14px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.tier{min-width:132px;grid-template-columns:38px 1fr;padding:13px 11px;border-radius:13px}.tier-sprite{width:40px;height:40px}.tier strong{font-size:14px}.tier small{font-size:12px}.tier.active{box-shadow:inset 0 -2px 0 var(--tier-color)}
.stage{border-radius:24px;padding:22px 30px 25px;background:radial-gradient(ellipse at 50% 33%,var(--tier-glow),transparent 57%),linear-gradient(180deg,var(--surface),transparent);min-height:525px}.stage-top{align-items:start}.stage-top>div{text-align:left}.stage-top h1{font-size:22px;color:var(--text);font-weight:600;letter-spacing:-.5px;margin:8px 0 0}.stage-top .eyebrow{font-size:10px;letter-spacing:2px;color:var(--realm-color)}.stage-top .text-btn{font-size:12px;padding-top:0}.stage-top{min-height:54px}.chest{width:360px;height:280px;margin:4px 0 0;transition:opacity .4s,filter .3s;z-index:2}.chest-sprite{width:330px;height:330px;transition:filter .2s}.chest:not(:disabled):hover{transform:none}.chest:not(:disabled):hover .chest-sprite{filter:brightness(1.15)}.floor-ring{top:293px;width:300px;height:60px;border-color:var(--realm-color);opacity:.15;box-shadow:0 0 30px var(--tier-glow)}.halo{top:110px;width:450px;height:250px;filter:none}.vault-orbit{position:absolute;top:67px;width:290px;height:290px;border:1px solid var(--realm-color);opacity:.1;border-radius:50%;pointer-events:none}.vault-orbit:before,.vault-orbit:after{content:'';position:absolute;inset:15px;border:1px dashed var(--realm-color);border-radius:50%;transform:rotate(25deg)}.vault-orbit:after{inset:-18px;border-style:solid;opacity:.3}#vaultEffects{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}.chest-lore{position:absolute;top:299px;text-align:center;color:var(--muted);font-size:13px;max-width:400px;margin:0 20px;line-height:1.5;transition:opacity .2s;z-index:2}.charging .chest-lore,.revealed .chest-lore{opacity:0}.reward{margin-top:12px;min-height:70px}.reward>span{font-size:11px;color:var(--muted);letter-spacing:2px}.reward strong{font-size:30px;font-variant-numeric:tabular-nums}.open-btn{width:min(380px,100%);border-radius:14px;padding:17px 26px;font-size:15px;letter-spacing:1.5px;background:linear-gradient(100deg,#a97aef,#d0b2ff);box-shadow:0 6px 40px #a172ee20}.open-btn span{font-size:10px;letter-spacing:1px;margin-top:6px}.open-btn:active:not(:disabled){transform:scale(.98)}.open-btn:disabled{opacity:.75}.stage-controls{display:flex;justify-content:center;gap:20px;z-index:4;margin-top:9px}.stage-controls .text-btn{font-size:12px}.progress-wrap{margin-top:9px;max-width:480px}.progress-label{font-size:12px;line-height:1.5}.track{height:5px}.track div{background:linear-gradient(90deg,#a174e8,#d5bbff)}
.drop-card{left:50%;right:auto;top:96px;width:154px;margin-left:-77px;border-radius:15px;padding:8px;border:1px solid var(--reward-color);background:linear-gradient(145deg,#242036,#11101c);color:#f8f5ff;box-shadow:0 5px 35px #0008,0 0 38px color-mix(in srgb,var(--reward-color) 20%,transparent);transform-origin:50% 90%;will-change:transform,opacity;overflow:hidden}.drop-card:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,transparent 25%,#fff4 45%,transparent 62%);transform:translateX(-160%);z-index:1}.drop-card .card-art{aspect-ratio:1;border-radius:9px}.drop-card>span{font-size:14px;line-height:1.4;display:block;padding:4px 0 3px;font-weight:600}.drop-card>small{font-size:9px;letter-spacing:1px}.revealed .drop-card{animation:grandReveal .64s cubic-bezier(.16,1,.3,1) forwards}.settled .drop-card:before{animation:cardGleam .85s ease-out .15s forwards}.revealed .chest{animation:chestOpen .45s ease-out;opacity:.2}.revealed .chest-sprite{filter:saturate(.6)}.revealed .drop-card:hover{transform:translateY(-4px) rotate(-1deg);filter:none}.reveal-badge{position:absolute;top:73px;z-index:7;font-size:10px;letter-spacing:2px;color:var(--reward-color);animation:badgeArrive .4s ease-out .18s both}.treasure-light{top:68px;height:265px}.shockwave{top:175px}.jackpot .treasure-light{top:35px}.stage.jackpot{animation:stageImpact .22s ease-out}.quiet-effects .treasure-light,.quiet-effects .shockwave,.quiet-effects .vault-orbit{display:none}
@keyframes grandReveal{0%{opacity:0;transform:translateY(90px) scale(.2) rotateY(100deg) rotateZ(-12deg)}45%{opacity:1;transform:translateY(-9px) scale(1.08) rotateY(-8deg) rotateZ(2deg)}100%{opacity:1;transform:translateY(0) scale(1) rotateY(0) rotateZ(0)}}@keyframes cardGleam{to{transform:translateX(160%)}}@keyframes badgeArrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes charge{0%{transform:translateY(0)}25%{transform:translateY(4px) scale(1.03,.97)}48%{transform:translateY(-2px) rotate(-1deg)}65%{transform:translateX(3px) rotate(1deg)}78%{transform:translateX(-3px) rotate(-1deg)}90%{transform:translateX(2px) scale(1.03)}100%{transform:translateY(5px) scale(1.04,.93)}}
.next-goal{display:flex;align-items:center;gap:16px;padding:16px 20px;margin-top:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.goal-rail-icon{font-size:28px;color:var(--gold)}.next-goal>div{flex:1;min-width:0}.next-goal strong{font-size:14px;font-weight:500;display:block}.next-goal small{font-size:12px;color:var(--muted);display:block;margin-top:5px;line-height:1.5}.next-goal button{font-size:12px;color:var(--purple);flex-shrink:0}.section-title{margin-top:28px}.powers,.upgrades{gap:12px}.power,.upgrade{border-radius:15px;padding:19px 16px}.power small,.upgrade small{min-height:32px;font-size:12px;line-height:1.6}.power strong,.upgrade strong{font-size:15px}.power:disabled:not(.active){opacity:.5}.section-title>span{font-size:11px;letter-spacing:1px}.power.active{box-shadow:inset 0 -2px 0 var(--power-color)}
.page-title h1{font-size:34px}.page-title p{font-size:16px}.collection-grid{gap:16px}.collection-card{border-radius:16px;padding:10px;background:linear-gradient(150deg,var(--solid),var(--surface));transition:transform .2s,border-color .2s,box-shadow .2s}.collection-card:not(.unowned):hover{box-shadow:0 8px 25px #0003,0 0 15px color-mix(in srgb,var(--card-color) 15%,transparent)}.collection-card .card-art{border-radius:10px}.card-caption{padding:14px 4px 7px}.card-caption strong{font-size:15px}.card-caption small{font-size:11px;letter-spacing:1px}.card-count{font-size:12px;top:18px;right:18px}.unowned{opacity:.65}.unowned .card-art{filter:brightness(.2) saturate(.25)}.collection-tools{display:grid;grid-template-columns:1fr 200px;gap:12px;margin-bottom:16px}.collection-tools input,.collection-tools select{font-size:14px}.search-label{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.forge-entry{border:1px solid var(--line);border-radius:18px;padding:22px 24px;display:flex;align-items:center;gap:26px;margin-bottom:24px;background:radial-gradient(ellipse at 0 30%,var(--glow),transparent 70%),var(--surface)}.forge-entry>div{flex:1}.forge-entry .eyebrow{font-size:10px;color:var(--purple)}.forge-entry h2{margin:8px 0;font-size:21px}.forge-entry p{margin:0;font-size:14px;color:var(--muted);line-height:1.6;max-width:550px}.forge-entry button{flex-shrink:0}.forge-dialog{width:min(630px,calc(100vw - 28px))}.forge-dialog .dialog-head h2{margin-top:7px;font-size:24px}.forge-dialog .subtle{font-size:14px}.forge-dialog select{margin:10px 0 22px}.forge-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.forge-choice{padding:7px;border:1px solid var(--line);background:var(--surface);border-radius:11px;text-align:left}.forge-choice[aria-pressed=true]{border:2px solid var(--card-color);padding:6px;background:var(--glow)}.forge-choice .card-art{border-radius:6px}.forge-choice strong{display:block;font-size:12px;padding:7px 0 4px;line-height:1.5}.forge-choice small{font-size:10px;color:var(--card-color)}.forge-preview{margin:20px 0;color:var(--muted);font-size:14px;line-height:1.6}.forge-dialog>.primary-btn{width:100%}
.journey-rank{display:flex;align-items:center;gap:26px;padding:28px;border:1px solid var(--line);border-radius:20px;background:radial-gradient(ellipse at 0 50%,var(--glow),transparent 65%),var(--surface)}.rank-symbol{font-size:64px;color:var(--gold);line-height:1}.journey-rank h2{font-size:26px;margin:9px 0}.journey-rank p{font-size:14px;color:var(--muted);margin:0;line-height:1.5}.goal-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.goal-card{padding:18px 15px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}.goal-head{display:flex;justify-content:space-between;align-items:center;gap:4px}.goal-head>span{font-size:24px;color:var(--purple)}.goal-head small{font-size:12px;color:var(--muted)}.goal-card h3{font-size:15px;margin:13px 0 9px;line-height:1.4;min-height:42px}.goal-card p{color:var(--muted);font-size:12px;line-height:1.6;min-height:38px}.goal-reward{color:var(--gold);font-size:13px;margin:16px 0}.goal-card button{width:100%;padding:11px 5px;font-size:12px;min-height:39px}.goal-card.ready{border-color:var(--purple)}.goal-card.claimed{opacity:.65}.goal-card.claimed .goal-head>span{color:#8ecfa8}.history-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.history-card{border:1px solid var(--line);border-radius:12px;padding:7px;background:var(--surface);text-align:left}.history-card .card-art{border-radius:6px}.history-card strong{display:block;font-size:12px;margin:8px 0 5px;line-height:1.4}.history-card small{font-size:10px;color:var(--card-color);display:block}.history-card>span{font-size:11px;display:block;margin-top:7px;color:var(--muted)}.credits{color:var(--muted);font-size:12px;margin-bottom:30px;line-height:1.6}.credits summary{cursor:pointer}.credits a{color:var(--purple)}.credits p{font-size:12px}.detail-footer .secondary-btn:disabled{opacity:.4}body[data-theme=white] .stage-top .eyebrow{color:var(--purple)}body[data-theme=white] .reveal-badge{color:var(--text)}body[data-theme=white] .goal-reward,body[data-theme=white] .rank-symbol{color:var(--gold)}
body.focus-mode{overflow:hidden}.focus-mode header,.focus-mode .topline,.focus-mode .wallet,.focus-mode #tiers,.focus-mode .next-goal,.focus-mode .power-section,.focus-mode .upgrade-section,.focus-mode footer,.focus-mode .credits{display:none}.focus-mode #vaultView{display:block!important}.focus-mode .view:not(#vaultView){display:none!important}.focus-mode .app{padding:0}.focus-mode .stage{position:fixed;inset:0;z-index:20;border:0;border-radius:0;max-height:100dvh;overflow:auto;justify-content:center;background:radial-gradient(ellipse at 50% 38%,var(--tier-glow),transparent 50%),var(--bg);padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}.focus-mode .stage-top{position:absolute;top:max(24px,env(safe-area-inset-top));left:24px;right:24px;width:auto}.focus-mode .chest{height:280px}.focus-mode .drop-card{top:calc(50% - 155px)}.focus-mode .reveal-badge{top:calc(50% - 180px)}.focus-mode .chest-lore{top:calc(50% + 74px)}.focus-mode .halo,.focus-mode .vault-orbit{top:calc(50% - 150px)}.focus-mode .floor-ring{top:calc(50% + 30px)}.focus-mode .treasure-light{top:calc(50% - 140px)}.focus-mode .shockwave{top:calc(50% - 50px)}.focus-mode #notice{z-index:35}
@media(max-width:900px){.goal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.history-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:680px){.app{padding:0 14px}header{height:62px}.views{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.views button{font-size:13px;padding:11px 4px;border-radius:10px}.views span{font-size:10px;margin-left:2px}.account-tools{padding:0 1px}.account-tools .player-name{font-size:12px}.wallet{padding:21px 2px 18px;gap:12px}.wallet>.eyebrow{font-size:10px}.balance{font-size:34px}.stats{gap:12px;width:100%;justify-content:start;font-size:12px}.tier{min-width:126px;padding:11px 10px}.tier strong{font-size:13px}.tier small{font-size:11px}.tier-sprite{width:35px;height:35px}.stage{padding:18px 17px 22px;min-height:495px;border-radius:19px}.stage-top h1{font-size:20px}.stage-top .eyebrow{font-size:9px;letter-spacing:1.5px}.chest{width:300px;height:255px}.chest-sprite{width:300px;height:300px}.floor-ring{top:271px;width:245px;height:45px}.vault-orbit{top:78px;width:250px;height:250px}.halo{width:350px;height:230px;top:100px}.chest-lore{top:284px;font-size:12px;max-width:260px}.reward{margin-top:12px;min-height:64px}.reward strong{font-size:28px}.drop-card{top:92px;width:144px;margin-left:-72px;right:auto;left:50%}.drop-card>span{font-size:13px}.drop-card>small{font-size:9px}.revealed .drop-card{animation:grandReveal .6s cubic-bezier(.16,1,.3,1) forwards}.reveal-badge{top:70px;font-size:9px}.open-btn{font-size:14px;padding:16px 20px}.stage-controls{gap:15px}.stage-controls .text-btn{font-size:11px}.progress-label{font-size:11px}.next-goal{padding:13px 15px;gap:12px}.next-goal strong{font-size:13px}.next-goal small{font-size:11px}.next-goal button{max-width:105px;font-size:11px;line-height:1.5}.goal-rail-icon{font-size:24px}.powers,.upgrades{gap:8px}.power,.upgrade{padding:14px 11px}.power strong,.upgrade strong{font-size:13px}.power small,.upgrade small{font-size:11px;line-height:1.5;min-height:33px}.section-title>span{font-size:10px}.section-title h1,.section-title h2{font-size:17px}.page-title h1{font-size:28px}.page-title p{font-size:14px}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.collection-card{padding:7px;border-radius:12px}.card-caption{padding:10px 2px 5px}.card-caption strong{font-size:12px}.card-caption small{font-size:9px;letter-spacing:.5px}.card-count{font-size:10px;top:12px;right:12px}.forge-entry{display:block;padding:20px}.forge-entry h2{font-size:22px}.forge-entry p{font-size:14px}.forge-entry button{margin-top:17px;width:100%}.collection-tools{grid-template-columns:1fr 150px;gap:8px}.collection-tools input,.collection-tools select{font-size:13px;padding:12px 10px}.forge-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.forge-choice strong{font-size:14px}.forge-choice small{font-size:12px}.goal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.goal-card{padding:18px 16px}.goal-card h3{font-size:15px;min-height:42px}.goal-card p{font-size:13px}.history-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.journey-rank{padding:24px 20px;gap:20px}.journey-rank h2{font-size:23px}.rank-symbol{font-size:50px}.goal-card button{font-size:13px}.focus-mode .stage{min-height:0}.focus-mode .stage-top h1{font-size:20px}}
@media(max-width:390px){.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chest-sprite{width:285px;height:285px}.collection-tools{grid-template-columns:1fr}.views button{font-size:12px}.power strong,.upgrade strong{font-size:12px}.stats{font-size:11px}.goal-card{padding:15px 12px}}
@media(prefers-reduced-motion:reduce){.revealed .drop-card{animation:none;opacity:1;transform:none}.reveal-badge{animation:none}.drop-card:before{display:none}.revealed .chest{animation:none}.quiet-effects .drop-card:before{display:none}}

@media(max-width:390px){.chest{width:min(300px,100%)}}@media(max-height:600px){.focus-mode .stage{justify-content:flex-start;padding-top:82px}.focus-mode .chest{height:220px}.focus-mode .drop-card{top:96px;width:130px;margin-left:-65px}.focus-mode .reveal-badge{top:74px}.focus-mode .chest-lore{top:275px}.focus-mode .floor-ring{top:265px}.focus-mode .halo,.focus-mode .vault-orbit{top:80px}}

#vaultEffects{contain:strict}.charging .open-btn{background:linear-gradient(100deg,#8b66bd,#a887d8)}.collection-card:active:not(:disabled),.forge-choice:active:not(:disabled){transform:scale(.97)}.primary-btn:active:not(:disabled){transform:scale(.98)}.card-dialog .card-art{box-shadow:0 0 30px color-mix(in srgb,var(--card-color) 15%,transparent)}
