/* Prize presentation only: existing cloud panels, buttons and gameplay stay intact. */
.capsule-machine-art{line-height:0;pointer-events:none}
.capsule-machine-art svg,.capsule-machine-art img{display:block;width:100%;height:100%}
.machine-shop-art{width:180px;height:180px;max-width:100%;margin:-12px auto 0}
.prize-symbol{display:block;width:64px;height:64px;margin:6px auto;line-height:1;font-size:48px}
.prize-symbol svg{display:block;width:100%;height:100%}
#combinedPrizeReveal .machine-prize{background:linear-gradient(145deg,#fffaf0,#f0e9da);border:2px solid #e8dff2;box-shadow:0 5px 0 #aaa2bc,0 8px 12px #302b492b;margin-bottom:6px}
#combinedPrizeReveal .machine-prize.has-choice{border-color:#d4c5e9;box-shadow:0 5px 0 #a49bbf,0 8px 16px #302b4933}
.machine-showtime{position:relative;text-align:center}
.machine-showtime .machine-receipt-heading{text-align:left}
.machine-showtime .machine-cost{margin:2px 0 0}
.machine-reveal-stage{position:relative;height:250px;width:100%;isolation:isolate;overflow:hidden;pointer-events:none}
.reveal-machine{position:absolute;width:250px;height:250px;left:50%;top:0;transform:translateX(-50%);transition:opacity .25s,transform .4s;z-index:1}
.machine-showtime[data-phase="winding"] .machine-crank{transform-origin:199px 207px;animation:morlinsRevealMachineTurn .95s ease-in-out both;transform-box:view-box}
.machine-showtime[data-phase="winding"] .machine-globe-capsules{transform-origin:150px 125px;animation:morlinsRevealCapsuleMix .48s ease-in-out 2;transform-box:view-box}
.machine-showtime[data-phase="capsule"] .reveal-machine{transform:translateX(-50%) scale(.8);opacity:.85}
.machine-showtime[data-phase="capsule"] .machine-door{transform-origin:150px 230px;transform-box:view-box;animation:morlinsRevealDoorOpen .5s ease-out both}
.machine-showtime[data-phase="prize"] .reveal-machine{transform:translateX(-50%) scale(.7);opacity:.12}
.reveal-capsule{position:absolute;width:92px;height:92px;left:50%;top:55%;margin:-46px;z-index:3;opacity:0}
.capsule-top,.capsule-bottom{position:absolute;inset:0;display:block;border:4px solid #65738d;border-radius:50%;box-shadow:inset 0 4px 0 #ffffff75}
.capsule-top{background:linear-gradient(130deg,#d9cef0,#a4b7d6);clip-path:inset(0 0 50% 0);z-index:2}
.capsule-bottom{background:linear-gradient(130deg,#fff8e8,#ded3b9);clip-path:inset(50% 0 0 0)}
.capsule-top::after{content:'';position:absolute;left:2px;right:2px;top:40px;border-top:3px solid #65738d}
.capsule-shine{position:absolute;top:15px;left:20px;width:24px;height:10px;border-radius:50%;background:#fff9;transform:rotate(-25deg);z-index:3}
.machine-showtime[data-phase="capsule"] .reveal-capsule{animation:morlinsRevealCapsuleRoll .55s cubic-bezier(.2,.65,.3,1) both}
.machine-showtime[data-phase="prize"] .reveal-capsule{opacity:1}
.machine-showtime[data-phase="prize"] .capsule-top{animation:morlinsRevealCapsuleTop .55s ease-out both}
.machine-showtime[data-phase="prize"] .capsule-bottom{animation:morlinsRevealCapsuleBottom .55s ease-out both}
.machine-showtime[data-phase="prize"] .capsule-shine{display:none}
.reveal-prize{position:absolute;inset:18px 0 0;z-index:4;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0}
.reveal-prize .machine-skin{width:110px;height:125px;margin:0 auto 8px;filter:drop-shadow(0 7px 0 #27273b30)}
.reveal-prize .prize-symbol{width:112px;height:112px;margin:0 auto 12px;filter:drop-shadow(0 7px 0 #27273b30)}
#combinedPrizeReveal .reveal-prize h3{font-size:22px;line-height:1.15;color:#fff8e8;margin:0 0 8px;text-shadow:0 2px #36334b;max-width:100%;overflow-wrap:anywhere}
.reveal-prize small{font-size:11px;color:#eeebf6;line-height:1.4;max-width:180px}
.reveal-prize[data-rarity="Legendary"] h3{color:#ffedb8!important}
.machine-showtime[data-phase="prize"] .reveal-prize{opacity:1;animation:morlinsRevealPrizePop .6s cubic-bezier(.2,1.3,.4,1) both}
.reveal-glints{position:absolute;inset:35px 10px 15px;z-index:2;opacity:0}
.reveal-glints i{position:absolute;left:50%;top:45%;font-style:normal;font-size:17px;color:#e6daf7;transform:rotate(calc(var(--glint)*60deg)) translateY(-80px) rotate(calc(var(--glint)*-60deg))}
.machine-showtime[data-phase="prize"] .reveal-glints{animation:morlinsRevealGlintBloom .85s ease-out both}
.reveal-status{font-size:12px;line-height:1.45;color:#f0edf7!important;min-height:35px;margin:0!important}
.reveal-progress{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px 0 12px}
.reveal-pips{display:flex;gap:5px;flex-wrap:wrap;justify-content:center;max-width:170px}
.reveal-pips span{width:8px;height:8px;border:1px solid #d1d5eb;border-radius:50%;background:#444562}
.reveal-pips span.is-revealed{background:#f7e9c9;border-color:#f7e9c9}
.reveal-count{font-size:11px;white-space:nowrap;color:#e9e5f3}
#combinedPrizeReveal .machine-skip{width:100%;position:relative;z-index:5}
.reveal-safe{font-size:10px!important;line-height:1.45;color:#e2dfed!important;margin:9px 0 0!important}
@keyframes morlinsRevealMachineTurn{0%{transform:rotate(0)}20%{transform:rotate(-12deg)}100%{transform:rotate(360deg)}}
@keyframes morlinsRevealCapsuleMix{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-8px) rotate(-8deg)}70%{transform:translateY(-4px) rotate(7deg)}}
@keyframes morlinsRevealDoorOpen{0%{transform:scaleY(1)}50%,100%{transform:scaleY(.25)}}
@keyframes morlinsRevealCapsuleRoll{0%{opacity:0;transform:translateY(44px) scale(.2) rotate(-65deg)}22%{opacity:1}70%{transform:translateY(-15px) scale(1.06) rotate(12deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@keyframes morlinsRevealCapsuleTop{0%{transform:translate(0,0);opacity:1}100%{transform:translate(-60px,-92px) rotate(-30deg);opacity:0}}
@keyframes morlinsRevealCapsuleBottom{0%{transform:translate(0,0);opacity:1}100%{transform:translate(55px,80px) rotate(25deg);opacity:0}}
@keyframes morlinsRevealPrizePop{0%{opacity:0;transform:translateY(20px) scale(.55)}50%{opacity:1;transform:translateY(-7px) scale(1.08)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes morlinsRevealGlintBloom{0%{opacity:0;transform:scale(.55)}35%{opacity:.9}100%{opacity:0;transform:scale(1.1)}}
@media(max-height:700px){.machine-reveal-stage{height:210px}.reveal-machine{width:210px;height:210px}.reveal-prize{inset:4px 0 0}.reveal-prize .machine-skin{width:90px;height:102px}.reveal-prize .prize-symbol{width:90px;height:90px}#combinedPrizeReveal .reveal-prize h3{font-size:18px}.reveal-glints{inset:25px 0 10px}.reveal-glints i{transform:rotate(calc(var(--glint)*60deg)) translateY(-65px) rotate(calc(var(--glint)*-60deg))}}
@media(max-width:360px){.machine-shop-art{width:150px;height:150px}.machine-reveal-stage{height:200px}.reveal-machine{width:200px;height:200px}.machine-showtime .machine-cost{font-size:11px}.reveal-pips{gap:4px}.reveal-status{font-size:11px}.reveal-prize small{max-width:160px}}
@media(prefers-reduced-motion:reduce){.machine-showtime *{animation:none!important;transition:none!important}.machine-receipt-grid *{animation:none!important}}
@media(max-height:640px){
  .machine-reveal-stage{height:155px}.reveal-machine{width:155px;height:155px}
  .reveal-prize .machine-skin{width:66px;height:75px;margin-bottom:5px}
  .reveal-prize .prize-symbol{width:70px;height:70px;margin-bottom:7px}
  #combinedPrizeReveal .machine-showtime h2{font-size:19px}
  #combinedPrizeReveal .reveal-prize h3{font-size:17px;margin-bottom:5px}
  .reveal-glints i{transform:rotate(calc(var(--glint)*60deg)) translateY(-55px) rotate(calc(var(--glint)*-60deg))}
}
.machine-showtime[data-phase="capsule"] .machine-crank{transform-origin:199px 207px;transform-box:view-box;animation:morlinsRevealMachineTurn .5s ease-in-out both}
.machine-showtime[data-phase="capsule"] .machine-globe-capsules{transform-origin:150px 125px;transform-box:view-box;animation:morlinsRevealCapsuleMix .5s ease-in-out both}
.machine-art-fallback{display:block;font-size:12px;line-height:1.4;padding:14px 4px}
