.gamble{--gamble-gold: #f0d36a;--app-chip-group-height: 35px;--app-chip-btn-height: calc(var(--app-chip-group-height) - (2 * var(--app-chip-group-pad)) - 2px);--app-chip-standalone-height: var(--app-chip-group-height)}.gamble__intro{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.gamble__intro{justify-content:center;text-align:center}.gamble__toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.gamble__toolbar>[data-gamble-clear]{margin-left:auto}.gamble h2,.gamble h3,.gamble h4,.gamble p{margin:0}.gamble__intro h2{margin:.3rem 0 .5rem;font-size:1.65rem}.gamble__intro p,.gamble__note,.gamble__empty{color:var(--text-secondary);line-height:1.6}.gamble__eyebrow,.gamble__meta{font-size:.72rem;letter-spacing:.06em;color:var(--accent-muted)}.gamble__controls{display:flex;align-items:center;flex-wrap:wrap;gap:.8rem;min-width:0;max-width:100%;color:var(--text-secondary);font-size:.85rem}.gamble__setting{height:var(--app-chip-group-height);white-space:nowrap}.gamble__setting,.gamble__toolbar>[data-gamble-clear]{background:var(--surface-frost-bg);backdrop-filter:blur(var(--backdrop-blur)) saturate(var(--backdrop-frost-sat));-webkit-backdrop-filter:blur(var(--backdrop-blur)) saturate(var(--backdrop-frost-sat))}.gamble__setting:hover,.gamble__toolbar>[data-gamble-clear]:hover{background:var(--surface-frost-bg-hover)}.gamble__toolbar>[data-gamble-clear]{height:var(--app-chip-group-height);box-sizing:border-box}.gamble--no-animation *,.gamble--no-animation *:before{animation:none!important;transition:none!important}.gamble--no-animation .gamble__reward.is-revealed:before{display:none}.gamble__controls .app-chip-group{width:auto;flex-wrap:nowrap}.gamble__amount-label{position:relative;z-index:1;display:flex;align-items:center;align-self:stretch;margin:calc(-1 * var(--app-chip-group-pad)) 0 calc(-1 * var(--app-chip-group-pad)) calc(-1 * var(--app-chip-group-pad));padding:0 .65rem;border-right:1px solid var(--line-strong);border-radius:var(--radius-sm) 0 0 var(--radius-sm);background:var(--surface-inset-dark-strong);white-space:nowrap;font-size:.8rem;color:var(--text-secondary)}.gamble__controls .app-chip-group__btn{width:3rem;min-width:0}.gamble__choices{--app-chip-group-height: 40px;--app-chip-group-pad: 2px;--app-chip-btn-height: calc(var(--app-chip-group-height) - (2 * var(--app-chip-group-pad)) - 2px);--app-chip-standalone-height: var(--app-chip-group-height);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:.8rem}.gamble__choices>*{box-sizing:border-box;min-height:10.08rem}.gamble__other-chests{display:flex;flex-direction:column;gap:var(--content-gap-sm);min-width:0}.gamble__other-list{display:flex;flex-wrap:nowrap;align-items:center;gap:.4rem;min-width:0;min-height:calc(42px + .4rem);overflow-x:auto;padding:.2rem 0}.gamble__other-list>span{flex-shrink:0}.gamble__other-chest{display:flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:4px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-frost-bg);color:var(--text-secondary);font:inherit;font-size:.7rem;cursor:help;transition:background .15s,border-color .15s}.gamble__other-chest:hover,.gamble__other-chest:focus-visible{background:var(--surface-frost-bg-hover);border-color:var(--line-strong)}.gamble__other-chest :is(img,app-image){width:32px;height:32px;object-fit:contain;opacity:.4;filter:grayscale(.3)}.gamble__choices>.gamble__choice,.gamble__choice-wrap{justify-content:center;text-align:center}.gamble__choice{display:flex;align-items:center;flex-direction:column;gap:.4rem;padding:.4rem .8rem;border:1px solid var(--line);border-radius:var(--radius);color:var(--text);font:inherit;cursor:pointer;transition:border-color .15s,background .15s}.gamble__choices>.gamble__choice:hover,.gamble__choice-wrap:hover,.gamble__choice-wrap:has(:focus-visible){border-color:var(--accent-border);background:var(--surface-panel-bg-hover)}.gamble__choice strong{font-size:1.05rem}.gamble__choice>span:not(.gamble__choice-icon){font-size:.75rem;color:var(--text-secondary);text-align:center}.gamble__choice-icon{color:var(--accent-muted);font-size:1.8rem}.gamble__choice-image{width:32px;height:32px;object-fit:contain}.gamble__choice-wrap{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.4rem;padding:.8rem 0 .4rem;min-width:0;border:1px solid var(--line);border-radius:var(--radius);transition:border-color .15s,background .15s}.gamble__choice-wrap>.gamble__choice{flex:1;justify-content:center;width:100%;padding:0 .8rem;border:none;background:transparent}.gamble__choice-wrap>.gamble__choice:after{content:"";position:absolute;inset:0;border-radius:inherit}.gamble__choice-wrap>.gamble__choice:focus-visible{outline:none}.gamble__choice-wrap:has(>.gamble__choice:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.gamble__chest-filter,.gamble__passive-filters{position:relative;z-index:1;flex-shrink:0}.gamble__chest-filter{margin:0 .5rem;width:fit-content;max-width:calc(100% - 1rem);flex-wrap:nowrap;overflow-x:auto}.gamble[aria-busy=true] .gamble__chest-filter,.gamble[aria-busy=true] .gamble__passive-wrap>.gamble__choice{visibility:hidden}.gamble__chest-filter .app-chip-group__btn{flex-shrink:0;min-width:42px;padding:0 .4rem}.gamble__chest-filter .app-chip-group__btn:has(.gamble__choice-image){width:var(--app-chip-btn-height);min-width:var(--app-chip-btn-height);padding:0}.gamble__chest-filter :is(img,app-image){width:32px;height:32px;object-fit:contain}.gamble__passive-filters{display:flex;flex-wrap:wrap;gap:.4rem;width:calc(100% - 1.6rem);max-width:22rem}.gamble__passive-filters>.app-picker{flex:1 1 130px;min-width:0}.gamble__passive-filters>[hidden]{display:none}.gamble__passive-filters .app-picker__toggle{height:var(--app-chip-group-height);font-size:.75rem}.gamble__passive-filters .app-picker__menu{min-width:min(230px,80vw);max-height:min(320px,50vh);overflow-y:auto;background:var(--surface-frost-bg);backdrop-filter:blur(var(--backdrop-blur)) saturate(var(--backdrop-frost-sat));-webkit-backdrop-filter:blur(var(--backdrop-blur)) saturate(var(--backdrop-frost-sat))}.gamble__passive-filters [data-gamble-passive-class] .app-picker__menu{width:max-content;min-width:max(110%,16rem);max-width:calc(100vw - 40px)}.gamble__class-option-row{position:relative;display:flex;align-items:center;gap:.3rem}.gamble__class-option-row .gamble__class-option:after{content:"";position:absolute;inset:0;border-radius:var(--radius-2xs)}.gamble__class-option-row:hover,.gamble__class-option-row:has(:focus-visible){background:var(--control-bg-hover);border-radius:var(--radius-2xs)}.gamble__class-option-row .app-picker__option:not(.is-selected):is(:hover,:focus-visible){color:var(--text-secondary)}.gamble__class-option-row:has(.gamble__class-option.is-selected){background:var(--accent-soft);border-radius:var(--radius-2xs)}.gamble__class-option-row:has(.gamble__class-option.is-selected):is(:hover,:has(:focus-visible)),.app-picker--entry .gamble__class-option-row .gamble__spec-tag.is-selected:is(:hover,:focus-visible){background:linear-gradient(var(--control-bg-hover),var(--control-bg-hover)),var(--accent-soft)}.app-picker--entry .gamble__class-option-row .gamble__class-option:is(:hover,:focus-visible,.is-selected){background:transparent}.gamble__class-option-row .gamble__spec-tag{position:relative;z-index:1}.gamble__class-option-row .gamble__class-option{flex:1;width:auto;min-width:0;padding-top:1px;padding-bottom:1px;border:0;text-align:left}.gamble__class-option-row .gamble__spec-tag{flex:0 0 auto;width:auto;padding:.25rem .4rem;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:.7rem;white-space:nowrap}.gamble__class-option-row .gamble__class-option,.gamble__passive-filters [data-gamble-passive-skill] .app-picker__option{box-sizing:border-box;height:34px;min-height:34px;padding-top:1px;padding-bottom:1px}.gamble__passive-wrap{backdrop-filter:none;-webkit-backdrop-filter:none}.gamble__passive-wrap>.gamble__choice{min-height:calc(72px + .7rem + 1.5em);font-size:.75rem;line-height:1.5}.gamble__passive-wrap>.gamble__choice,.gamble__passive-wrap>.gamble__choice>*{flex-shrink:0}.gamble__passive-wrap.has-specific-skill [data-gamble-passive-description]{position:absolute;top:var(--passive-description-top);bottom:0;left:.8rem;right:.8rem;display:flex;align-items:center;justify-content:center}.gamble__passive-wrap:has(.is-open){z-index:5}.gamble__passive-icons{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:.15rem;width:100%;max-height:calc(72px + .3rem);overflow-y:auto}.gamble__passive-icons.is-hidden{display:none}.gamble__passive-icons :is(img,app-image){width:24px;height:24px;object-fit:contain}.gamble__passive-filters .app-picker__icon{width:28px;height:28px;object-fit:contain}.gamble__passive-filters .app-picker__toggle{padding-top:2px;padding-bottom:2px}.gamble button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.gamble__note{font-size:.75rem}.gamble__history{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:.45rem;list-style:none;padding:0;margin:0 0 1rem}.gamble__row{min-width:0}.gamble__history--paged{min-height:var(--gamble-history-height, 0px);align-content:start}.gamble__pages{display:flex;gap:.4rem;overflow-x:auto;padding:.25rem}.gamble__pages .gamble__button{flex-shrink:0;min-width:2.5rem}.gamble__pages [aria-current=page]{color:var(--accent-muted);background:var(--accent-soft);border-color:var(--accent-border)}.gamble__history-icon{--gamble-item-color: var(--text-secondary);position:relative;display:grid;place-items:center;width:100%;height:auto;aspect-ratio:1;box-sizing:border-box;padding:3px;border:1px solid var(--line);border-radius:var(--radius);background:color-mix(in srgb,var(--gamble-item-color) 12%,var(--surface-panel-bg));cursor:help;transition:background .15s,border-color .15s,transform .15s}.gamble__history-icon:hover,.gamble__history-icon:focus-visible{border-color:var(--gamble-item-color);background:color-mix(in srgb,var(--gamble-item-color) 20%,var(--surface-panel-bg));transform:translateY(-2px)}.gamble__history-icon .gamble__image{width:32px;height:32px;padding:0;background:none}.gamble__history-icon:is(.is-legendary,.is-perfect){border-color:var(--gamble-gold);outline:2px solid var(--gamble-gold);outline-offset:-2px}.gamble__history-icon:is(.is-legendary,.is-perfect):after{content:"\2726";position:absolute;right:0;bottom:0;display:grid;place-items:center;width:15px;height:15px;border-radius:var(--radius) 0 0 0;color:#211b09;background:var(--gamble-gold);font-size:.75rem;line-height:1}.gamble-tooltip{--gamble-gold: #f0d36a;max-width:min(440px,calc(100vw - 24px))}.gamble-tooltip p,.gamble-tooltip h4{margin:0}.gamble-tooltip .gamble__description{max-height:55vh;overflow:auto}.gamble__tooltip-heading{display:flex;align-items:center;gap:.65rem;margin-bottom:.65rem}.gamble-tooltip .gamble__tooltip-heading .gamble__image{width:32px;height:32px;padding:0;box-sizing:border-box;background:none;border:none;border-radius:0;box-shadow:none}.gamble__tooltip-titles{min-width:0}.gamble__tooltip-heading .gamble__name{margin:0 0 .3rem!important}.gamble__tooltip-heading .gamble__tags{margin-bottom:0}.gamble__tags{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.65rem}.gamble__tag{padding:.1rem .38rem;border-radius:var(--radius-xs);background:var(--control-bg);color:var(--text-secondary);font-size:.65rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;line-height:1.3}.gamble__tag--class_emblem{color:var(--accent-muted);background:var(--accent-soft)}.gamble__tag--aura_emblem{color:#7dd3fc;background:#7dd3fc1f}.gamble__tag--passive_emblem{color:#d8b4fe;background:#d8b4fe1f}.gamble__tag--spirit_emblem{color:#b0dfb4;background:#b0dfb41f}.gamble__tag--gold{color:var(--gamble-gold);background:#f0d36a1f}.gamble__item{display:flex;align-items:flex-start;gap:1rem;min-width:0}.gamble__image{flex-shrink:0;width:32px;height:32px;object-fit:contain;background:var(--control-bg);border-radius:var(--radius);padding:0}.gamble__item-body{min-width:0;overflow-wrap:anywhere}.gamble__name{font-size:1rem;margin:.35rem 0 .55rem!important}.gamble__description{font-size:.82rem;color:var(--text-secondary);line-height:1.65;white-space:pre-line}:is(.gamble__item--legendary,.gamble__item--perfect) .gamble__meta,:is(.gamble__item--legendary,.gamble__item--perfect) .gamble__name{color:var(--gamble-gold)}.gamble__button{font:inherit;font-size:.8rem;padding:.55rem .8rem;color:var(--text);background:var(--control-bg);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer}.gamble__button:hover{background:var(--control-bg-hover);border-color:var(--accent-border)}.gamble__button--primary{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent-muted)}.gamble__dialog{width:min(var(--gamble-dialog-width, 1080px),calc(100vw - 2rem));max-height:calc(100dvh - 3rem);box-sizing:border-box;margin:auto;padding:1.5rem;overflow:auto;border:1px solid var(--accent-border);border-radius:calc(var(--radius) * 2);background:var(--surface-glass-strong);color:var(--text)}.gamble__dialog,.gamble__dialog *{user-select:none;-webkit-user-select:none}.gamble__dialog{overflow:hidden;box-shadow:none}.gamble__dialog.is-jackpot{border-color:var(--gamble-gold)}.gamble__dialog.is-jackpot .gamble__eyebrow{color:var(--gamble-gold)}.gamble__dialog.is-jackpot [data-gamble-again]{color:var(--gamble-gold);border-color:var(--gamble-gold);background:color-mix(in srgb,var(--gamble-gold) 12%,var(--control-bg))}.gamble__dialog.is-jackpot [data-gamble-again]:hover{background:color-mix(in srgb,var(--gamble-gold) 20%,var(--control-bg))}.gamble__dialog.is-jackpot [data-gamble-again]:focus-visible{outline-color:var(--gamble-gold)}.gamble__jackpot-badge{display:inline-block;padding:.15em .45em;border-radius:var(--radius-xs);background:var(--gamble-gold);color:#211b09;font-size:.85em;font-weight:800;line-height:1.25;letter-spacing:.06em;text-transform:uppercase;vertical-align:middle}.gamble__dialog>.gamble__rewards{margin-inline:auto}.gamble__dialog::backdrop{background:#070b12c9;backdrop-filter:blur(6px)}.gamble__dialog[open]{animation:gamble-dialog-in .2s ease-out}.gamble__dialog-heading,.gamble__dialog-footer{display:flex;align-items:center;justify-content:center;gap:1rem;text-align:center}.gamble__dialog-heading{margin-bottom:1.5rem}.gamble__dialog-heading h2{margin-top:.3rem;font-size:1.4rem}.gamble__dialog-footer :is([data-gamble-skip],[data-gamble-done],[data-gamble-again]){width:min(220px,100%);min-width:0;box-sizing:border-box;padding:.85rem .6rem;font-size:1rem;font-weight:600}.gamble__dialog-footer [data-gamble-skip]{width:min(calc(440px + 1rem),100%)}.gamble__dialog-footer{margin-top:1.5rem}.gamble__rewards{display:grid;grid-template-columns:repeat(var(--gamble-columns, 5),minmax(0,1fr));gap:.7rem;align-items:start}.gamble__rewards--single{grid-template-columns:minmax(0,1fr)}.gamble__reward{position:relative;isolation:isolate;min-width:0;min-height:180px;padding:1rem .7rem;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:color-mix(in srgb,var(--gamble-item-color, var(--text-secondary)) 3%,var(--surface-box-bg))}.gamble__reward .gamble__item{flex-direction:column;align-items:center;gap:.6rem}.gamble__reward .gamble__item-body{width:100%}.gamble__reward .gamble__name,.gamble__reward .gamble__meta{text-align:center}.gamble__reward .gamble__name{font-size:.85rem}.gamble__reward .gamble__description{font-size:.75rem}.gamble__reward .gamble__image{background:none}.gamble__reward--compact{height:var(--gamble-reward-height, 310px);box-sizing:border-box}.gamble__reward--compact>.gamble__item{height:100%}.gamble__reward--compact .gamble__item-body{display:flex;flex:1;flex-direction:column;align-items:center;min-height:0}.gamble__reward--compact .gamble__meta{line-height:1.3;flex-shrink:0}.gamble__reward--compact .gamble__name{line-height:1.25;flex-shrink:0}.gamble__reward--compact .gamble__description{width:100%;flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding-right:.25rem}.gamble__reward--compact .gamble__description:focus-visible{outline:1px solid var(--accent-border);outline-offset:-1px}.gamble__rewards--bulk{gap:.45rem}.gamble__rewards--bulk .gamble__reward{min-height:160px;padding:.6rem .5rem}.gamble__rewards--bulk .gamble__item{gap:.25rem}.gamble__rewards--bulk .gamble__meta{font-size:.62rem;letter-spacing:.02em}.gamble__rewards--bulk .gamble__name{font-size:.75rem;margin:.2rem 0 .35rem!important}.gamble__rewards--bulk .gamble__description{font-size:.7rem;line-height:1.45}.gamble__rewards--bulk .gamble__reward.is-revealed{animation-duration:.22s}.gamble__measurement{position:fixed;top:0;left:0;visibility:hidden;pointer-events:none}.gamble__measurement .gamble__reward--compact,.gamble__measurement .gamble__item{height:auto}.gamble__measurement .gamble__description{flex:none;overflow:visible}.gamble__reward.is-revealed{border-color:color-mix(in srgb,var(--gamble-item-color, var(--text-secondary)) 60%,transparent);animation:gamble-reveal .45s ease-out both}.gamble__reward.is-revealed:before{content:"";position:absolute;z-index:-1;width:240px;height:240px;top:-65px;left:calc(50% - 120px);background:repeating-conic-gradient(from 0deg,transparent 0deg 20deg,color-mix(in srgb,var(--gamble-item-color, var(--text-secondary)) 15%,transparent) 20deg 30deg);mask-image:radial-gradient(circle,#000,transparent 70%);animation:gamble-rays 12s linear infinite}.gamble__reward:is(.is-legendary,.is-perfect){border-color:transparent;background:linear-gradient(#f0d36a0a,#f0d36a0a),color-mix(in srgb,var(--gamble-item-color, var(--text-secondary)) 3%,var(--surface-box-bg))}.gamble__jackpot-border{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.gamble__jackpot-border rect{width:calc(100% - 2px);height:calc(100% - 2px);fill:none;stroke:var(--gamble-gold);stroke-width:2px;stroke-dasharray:8 6;animation:gamble-border-march 1.2s linear infinite}@keyframes gamble-border-march{to{stroke-dashoffset:-28}}.gamble__reward:is(.is-legendary,.is-perfect):before{background:repeating-conic-gradient(transparent 0deg 20deg,#f0d36a45 20deg 30deg)}.gamble__slot{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% - 16px);max-height:288px;width:96px;overflow:hidden;mask-image:linear-gradient(transparent,#000 30% 70%,transparent)}.gamble__reel{position:absolute;top:calc(50% - 144px);left:0;display:flex;flex-direction:column;animation:gamble-reel 1.1s linear infinite}.gamble__reel-icon{display:block;box-sizing:border-box;flex:0 0 32px;width:32px;height:32px;margin:32px;padding:0;object-fit:contain}.gamble__confetti{position:fixed;z-index:5;inset:0;width:100vw;height:100dvh;overflow:hidden;pointer-events:none}.gamble__confetti-piece{position:absolute;width:6px;height:10px;background:var(--gamble-gold);opacity:0;animation:gamble-confetti var(--confetti-duration) linear var(--confetti-delay) both}.gamble__confetti-piece:nth-child(3n){background:#fff0b5;width:4px;height:6px}.gamble__confetti-piece:nth-child(3n+1){background:#c99732}.gamble__confetti-piece:nth-child(7n){width:5px;height:5px;border-radius:50%}@keyframes gamble-confetti{0%{opacity:0;transform:translate(0) rotate(0) scale(.5)}8%{opacity:1}28%{transform:translate(calc(var(--confetti-x) * .65),var(--confetti-rise)) rotate(var(--confetti-turn))}80%{opacity:1}to{opacity:0;transform:translate(var(--confetti-x),var(--confetti-fall)) rotate(calc(var(--confetti-turn) * 2)) scale(.75)}}@keyframes gamble-reel{to{transform:translateY(-1536px)}}@keyframes gamble-dialog-in{0%{opacity:0}to{opacity:1}}@keyframes gamble-reveal{0%{opacity:.25;transform:translateY(10px) scale(.93)}65%{transform:translateY(-3px) scale(1.02)}to{opacity:1;transform:none}}@keyframes gamble-rays{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.gamble button:disabled{opacity:.45;cursor:default}.gamble [hidden]{display:none!important}@media(max-width:760px){.gamble__choices{grid-template-columns:repeat(2,minmax(0,1fr))}.gamble__dialog{padding:1rem}.gamble__passive-filters .app-picker__menu{left:auto;right:0}}@media(max-width:400px){.gamble__item{gap:.6rem}}@media(max-width:360px){.gamble__choices>*{min-height:13rem}}@media(prefers-reduced-motion:reduce){.gamble *,.gamble *:before{animation:none!important;transition:none!important}.gamble__reward.is-revealed:before{display:none}}
