/* ImageGen storyboard: seal, gold shaft, portrait reveal. Transform/opacity only in timelines. */
.chest-opening090{--chest-color:#78cbe6;--chest-secondary:#244771;display:grid!important;grid-template-columns:minmax(190px,32%) minmax(0,1fr);grid-template-rows:minmax(0,1fr) 42px!important;background:radial-gradient(ellipse at 20% 65%,#263259,#080f20 70%);isolation:isolate;gap:12px;padding:16px!important}
.chest-opening090[data-chest=elite]{--chest-color:#c3a0ff;--chest-secondary:#5e288d}.chest-opening090[data-chest=royal],.chest-opening090[data-chest=promotion]{--chest-color:#ffe19b;--chest-secondary:#944fc6}
.chest-stage090{position:relative;grid-row:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #b8995840;background:linear-gradient(180deg,#070e2000,#16182d90);contain:paint}
.chest-stage090>.pixel-chest{position:absolute;top:40%;width:min(86%,240px)!important;height:auto!important;aspect-ratio:1;margin:0!important;z-index:3;background-image:url('assets/pixel-20261109/chest090.png')!important;background-size:200% 100%!important;background-position:0 0!important;filter:none!important;animation:chest-charge090 .75s ease-out both}
.chest-stage090>.pixel-chest.opened{background-position:100% 0!important;animation:chest-impact090 .55s ease-out both}.chest-opening090[data-chest=supply] .pixel-chest{filter:saturate(.45) hue-rotate(145deg)!important}.chest-opening090[data-chest=elite] .pixel-chest{filter:hue-rotate(15deg)!important}
.chest-label090,.chest-status090{position:absolute;left:4px;right:4px;text-align:center;z-index:5}.chest-label090{top:9%;font-size:clamp(14px,1.8vw,23px);color:var(--chest-color);text-shadow:0 2px #000;letter-spacing:2px}.chest-status090{bottom:6%;font-size:11px!important;color:#d4c2e5!important}
.chest-ring090{position:absolute;width:80%;aspect-ratio:1;top:49%;border:3px double var(--chest-color);box-shadow:0 0 22px var(--chest-secondary),inset 0 0 15px var(--chest-secondary);transform:rotateX(65deg) rotateZ(45deg);border-radius:50%;opacity:.65}.chest-ring090:after{content:'';position:absolute;inset:13%;border:2px dashed var(--chest-color);border-radius:50%}
.chest-rays090{position:absolute;inset:12% -35% -40%;background:repeating-conic-gradient(from 0deg,transparent 0 17deg,var(--chest-secondary) 18deg 23deg,transparent 24deg 36deg);opacity:0;transform:scale(.4)}
.chest-beam090{position:absolute;top:10%;bottom:25%;width:30%;background:linear-gradient(0deg,var(--chest-color),#f6d98488,transparent);clip-path:polygon(10% 0,90% 0,65% 100%,35% 100%);opacity:0;transform-origin:50% 100%}
.chest-burst090{position:absolute;top:56%;left:50%;width:30px;height:30px;border:4px solid var(--chest-color);border-radius:50%;opacity:0}
.chest-spark090{position:absolute;left:50%;top:65%;width:5px;height:8px;background:var(--chest-color);opacity:0;pointer-events:none}
[data-phase=reveal] .chest-rays090{animation:chest-rays090 1.2s ease-out both}[data-phase=reveal] .chest-beam090{animation:chest-beam090 1.5s ease-out both}[data-phase=reveal] .chest-burst090{animation:chest-ring090 .75s ease-out both}[data-phase=reveal] .chest-spark090{animation:chest-spark090 1.2s var(--delay) ease-out both}
[data-phase=complete] .chest-rays090{opacity:.18;transform:scale(1)}[data-phase=complete] .chest-beam090{opacity:.2}
.chest-opening090 .loot-cards{grid-column:2;grid-row:1;display:grid!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:max-content;align-content:center;overflow:auto!important;padding:8px;gap:12px;min-width:0}
.chest-opening090 .loot-card{position:relative;min-height:145px;padding:10px 5px;background:linear-gradient(145deg,#243954,#111b2d);border:2px solid #708eb0;box-shadow:inset 0 0 0 3px #080f22,0 3px 0 #020714;animation:loot-rise090 .5s cubic-bezier(.16,1,.3,1) both}
.chest-opening090 .loot-card img{width:84px;height:84px}.chest-opening090 .loot-card strong{font-size:11px;white-space:normal;overflow:visible}.chest-opening090 .loot-card>span{font-size:15px;margin-top:4px}.chest-opening090 .loot-card.tier-3{border-color:#d4a0ff;background:radial-gradient(ellipse at top,#633785,#211936);box-shadow:inset 0 0 0 3px #1d0e35,0 0 12px #b872ec60}.chest-opening090 .loot-card.tier-4{border-color:#ffe3a1;background:radial-gradient(ellipse at top,#82642e,#322638);box-shadow:inset 0 0 0 3px #382614,0 0 20px #f4bf6860}.chest-opening090 .loot-card.tier-4:before{content:'전설';color:#ffe4a6;font-size:10px;letter-spacing:2px}.chest-opening090 .loot-card.tier-3:before{content:'유니크';color:#e2baff;font-size:10px}
.chest-opening090 .opening-controls{grid-column:1/-1;grid-row:2;display:flex;justify-content:center;gap:12px;z-index:6}.chest-opening090 .opening-controls button{min-width:120px;min-height:38px}
#resultChest044.chest-award090{position:relative;overflow:hidden;border:2px solid #c2a0ff!important;background:linear-gradient(110deg,#352450,#603c7a,#30223e)!important;box-shadow:0 0 18px #c288fc55;color:#fff2d2!important;animation:award-pop090 .7s ease-out both}
#resultChest044.chest-upgraded090{border-color:#ffe19b!important;box-shadow:0 0 28px #ffca7170,inset 0 0 18px #d1904b44;background:linear-gradient(110deg,#3a254f,#7d552e,#392652)!important}
#resultChest044.chest-award090:after{content:'';position:absolute;inset:-50%;background:linear-gradient(110deg,transparent 40%,#fff2b855 49%,transparent 58%);transform:translateX(-80%);animation:award-shine090 1.3s .4s ease-out 2;pointer-events:none}
@keyframes chest-charge090{0%{transform:translateY(8px) scale(.9)}50%{transform:translateY(-4px) rotate(-2deg)}70%{transform:rotate(2deg)}100%{transform:none}}@keyframes chest-impact090{0%{transform:scale(.92)}30%{transform:scale(1.09) translateY(-4px)}100%{transform:none}}@keyframes chest-rays090{0%{opacity:0;transform:scale(.4) rotate(-10deg)}25%{opacity:.7}100%{opacity:.18;transform:scale(1) rotate(8deg)}}@keyframes chest-beam090{0%{opacity:0;transform:scaleY(.1)}20%{opacity:1;transform:scaleY(1)}100%{opacity:.2}}@keyframes chest-ring090{0%{opacity:1;transform:translate(-50%,-50%) scale(.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(10)}}@keyframes chest-spark090{0%{opacity:0;transform:rotate(var(--angle)) translateX(10px)}20%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--distance)) rotate(90deg)}}@keyframes loot-rise090{from{opacity:0;transform:translateY(22px) scale(.85) rotateY(45deg)}to{opacity:1;transform:none}}@keyframes award-pop090{0%{transform:scale(.85);opacity:.4}60%{transform:scale(1.04)}100%{transform:none;opacity:1}}@keyframes award-shine090{to{transform:translateX(80%)}}
@media(max-height:450px){.chest-opening090{grid-template-columns:minmax(135px,27%) minmax(0,1fr);gap:6px;padding:8px!important;grid-template-rows:minmax(0,1fr) 36px!important}.chest-stage090>.pixel-chest{top:22%;width:min(90%,180px)!important}.chest-label090{top:4%;font-size:13px}.chest-status090{bottom:3%;font-size:9px!important}.chest-opening090 .loot-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-content:start;gap:7px;padding:4px}.chest-opening090 .loot-card{min-height:104px;padding:4px}.chest-opening090 .loot-card img{width:55px;height:55px}.chest-opening090 .loot-card strong{font-size:9px}.chest-opening090 .opening-controls button{min-height:32px}}
@media(max-width:600px){.chest-opening090 .loot-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(prefers-reduced-motion:reduce){.chest-opening090 *,.chest-award090,.chest-award090:after{animation:none!important}}
html[data-reduced-effects=true] .chest-opening090 *,html[data-reduced-effects=true] .chest-award090,html[data-reduced-effects=true] .chest-award090:after{animation:none!important}
.chest-stage090{container-type:size}.chest-stage090>.pixel-chest{top:25%;width:min(86%,240px,70cqh)!important}
.chest-opening090 .loot-cards{align-content:start}
