/* Victory chest only reveals the existing choice; it never grants extra loot. */
#reward-options[hidden],#reward-chest[hidden]{display:none!important}
.reward-chest{text-align:center;padding:16px 0 8px;overflow:hidden}
.chest-drop-label{font:700 12px 'Barlow Condensed',sans-serif;letter-spacing:3px;color:#e9c982}
#reward-modal .chest-open-button{display:block;margin:0 auto;padding:0 24px 15px;background:transparent;border:0;box-shadow:none;width:min(440px,100%);text-align:center;cursor:pointer;color:#ffdf98}
.chest-scene{display:block;height:244px;position:relative;isolation:isolate}
.chest-ground{position:absolute;left:50%;top:185px;width:210px;height:30px;transform:translateX(-50%);border-radius:50%;background:#02060780;filter:blur(9px)}
.chest-rays{position:absolute;inset:0;background:repeating-conic-gradient(from 0deg at 50% 65%,#f8d77918 0deg 10deg,transparent 10deg 25deg);mask-image:radial-gradient(ellipse at 50% 65%,#000 5%,transparent 65%);animation:chest-breathe 3s ease-in-out infinite}
.loot-chest{position:absolute;left:50%;top:63px;width:172px;height:130px;transform:translateX(-50%);filter:drop-shadow(0 4px 0 #101614);animation:chest-land .65s cubic-bezier(.22,.85,.35,1) both}
.chest-base{position:absolute;inset:53px 0 0;border:5px solid #b7823e;border-radius:3px 3px 11px 11px;background:repeating-linear-gradient(0deg,#573c2c 0 15px,#332a24 16px 18px);box-shadow:inset 0 0 0 3px #e0b46a,inset 0 -10px 0 #0003,5px 5px 0 #211e1a}
.chest-base:before,.chest-base:after{content:'';position:absolute;top:0;bottom:0;width:15px;background:linear-gradient(90deg,#947047,#f4d68c,#a47b46);border-inline:2px solid #4a3928}
.chest-base:before{left:19px}.chest-base:after{right:19px}
.chest-lid{position:absolute;z-index:3;left:-4px;right:-4px;top:0;height:61px;transform-origin:50% 95%;border:5px solid #d4a65d;border-radius:50px 50px 5px 5px;background:linear-gradient(90deg,#9b723f 0 10%,#5a4130 10% 20%,#c49353 20% 29%,#75513a 29% 71%,#c49353 71% 80%,#5a4130 80% 90%,#9b723f 90%);box-shadow:inset 0 6px 0 #f4d99a55,0 4px 0 #241d18}
.chest-lock{position:absolute;z-index:4;left:67px;top:49px;width:38px;height:39px;background:linear-gradient(120deg,#fff0af,#d2a34f 55%,#8e6233);border:3px solid #533d28;border-radius:5px;color:#63442c;font-size:27px;line-height:34px;box-shadow:0 3px 0 #221b16}
.chest-light{position:absolute;z-index:2;left:8px;right:8px;top:40px;height:25px;background:#fff5b6;opacity:0;box-shadow:0 -15px 35px 15px #ffcf62;filter:blur(2px)}
.chest-open-label{display:flex;justify-content:center;gap:38px;margin:4px auto 0;padding:13px 20px;width:230px;max-width:100%;box-sizing:border-box;border:1px solid #dbb96b;border-radius:5px;background:linear-gradient(#80643a,#483e2b);font-size:14px;font-weight:800;letter-spacing:2px;box-shadow:0 3px 0 #171e21}
.chest-open-button:hover .chest-open-label{background:#947442;color:#fff3c7}.chest-open-button:focus-visible{outline:2px solid #f4d791!important;outline-offset:4px}
#chest-status{color:#b8c5bf;font-size:12px;margin:15px 0 0;min-height:20px}
.chest-spark{position:absolute;z-index:5;left:50%;top:64%;width:5px;height:9px;border-radius:1px;background:#ffe8a2;opacity:0;transform:rotate(var(--angle)) translateY(-25px);box-shadow:0 0 8px #ffdb78}
.is-opening .loot-chest{animation:chest-rattle .22s ease-in-out 2}
.is-opening .chest-lid{animation:chest-lid-open .6s .16s ease-out forwards}
.is-opening .chest-lock{animation:chest-lock-pop .4s ease-in forwards}
.is-opening .chest-light{animation:chest-glow .6s .18s ease-out forwards}
.is-opening .chest-spark{animation:chest-burst .65s .18s ease-out forwards}
.is-opening .chest-rays{opacity:1;filter:brightness(2)}
.is-opening .chest-open-label{opacity:.4}
.chest-reveal .reward-card{animation:chest-card-in .6s cubic-bezier(.18,.8,.25,1) both}.chest-reveal .reward-card:nth-child(2){animation-delay:.1s}.chest-reveal .reward-card:nth-child(3){animation-delay:.2s}
@keyframes chest-land{0%{transform:translate(-50%,-80px) rotate(-7deg);opacity:0}60%{transform:translate(-50%,9px) rotate(2deg);opacity:1}80%{transform:translate(-50%,-8px)}100%{transform:translate(-50%,0)}}
@keyframes chest-breathe{50%{opacity:.45;transform:scale(.9)}}
@keyframes chest-rattle{25%{transform:translateX(-50%) rotate(-3deg)}75%{transform:translateX(-50%) rotate(3deg)}}
@keyframes chest-lid-open{to{transform:translateY(-37px) perspective(250px) rotateX(-65deg);filter:brightness(1.3)}}
@keyframes chest-lock-pop{to{transform:translateY(40px) rotate(20deg);opacity:0}}
@keyframes chest-glow{to{opacity:1;height:40px;transform:translateY(-20px)}}
@keyframes chest-burst{15%{opacity:1}to{opacity:0;transform:rotate(var(--angle)) translateY(-125px) rotate(90deg)}}
@keyframes chest-card-in{from{opacity:0;transform:translateY(65px) scale(.78) rotate(-3deg);filter:brightness(1.6)}to{opacity:1;transform:none;filter:none}}
@media(max-width:650px){.chest-scene{height:215px}.loot-chest{top:40px}.chest-ground{top:165px}.chest-open-label{font-size:12px}.reward-chest{padding-top:8px}}
@media(prefers-reduced-motion:reduce){.reward-chest *, .chest-reveal .reward-card{animation:none!important;transition:none!important}.is-opening .chest-lid{transform:translateY(-30px)}.is-opening .chest-light{opacity:.8}.is-opening .chest-lock{opacity:0}}

/* Keep the opening artwork bright when its interaction is locked. */
#reward-modal .chest-open-button:disabled{opacity:1;filter:none;cursor:default}

