/* A five-card opening fills the table, with room for the controls below. */
:root{--ph:min(420px,58svh,76vw)}
body{background:radial-gradient(ellipse at 50% 40%,#f4f2ed,#eae7e0)}
.scene .card:not(.mystery) .face{border:1px solid #fff9!important;background:linear-gradient(140deg,#fff8,var(--paper))!important;box-shadow:inset 0 0 0 1px #fff5,0 16px 24px -15px #211a374f}
.scene .card.common{--paper:#f6e1cf;--spirit:#9d7058}
.scene .card.uncommon{--paper:#d6efb6;--spirit:#4f753c}
.scene .card.rare{--paper:#90c1e6;--spirit:#204a81}
.scene .card.epic{--paper:#8275cf;--spirit:#e9d7ff}
.scene .card.ultra{--paper:#f3cc59;--spirit:#886216}
.scene .card:not(.mystery) .win{left:6%;right:6%;top:4.3%;height:60%;border-radius:4cqw;box-shadow:inset 0 0 0 1px #fff6}
.scene .card:not(.mystery) .name{top:69%;left:7%;right:7%;font:750 8.7cqw/1.1 system-ui,sans-serif;letter-spacing:-.04em;color:#282723}
.scene .card:not(.mystery) .type{top:72%;left:auto;right:7%;font:700 3cqw/1 system-ui,sans-serif;letter-spacing:0;background:#ffffff32;padding:1.5cqw 2cqw;border-radius:3cqw;color:#30342c}
.scene .card:not(.mystery) .creature-move{display:none}
.scene .card:not(.mystery) .rule{top:83%;left:7%;right:7%;opacity:.22}
.scene .card:not(.mystery) .rar,.scene .card:not(.mystery) .no{font-size:3.3cqw;color:#403c35!important}
.scene .card.epic .name,.scene .card.epic .rar,.scene .card.epic .no{color:#fff!important}
.scene .card .holo{mix-blend-mode:color-dodge;opacity:calc(.22 + var(--hyp)*.5)}
.scene .card .glare{opacity:calc(.12 + var(--hyp)*.3)}
.scene[data-count="5"] .card{--cw:min(248px,17.7vw,calc((100svh - 390px)/1.4));--ch:calc(var(--cw)*1.4)}
.scene .card .face{transform-origin:50% 50%;backface-visibility:hidden}
.scene .card{cursor:pointer}
.scene .card:focus-visible{outline:3px solid #b9943c;outline-offset:8px;border-radius:12px}
.scene .card.mystery .slab{background:#d7c89f}
.scene .card.mystery .face{box-shadow:inset 0 0 0 5px #fff9,inset 0 0 0 7px #cfbc83,0 18px 30px -16px #46351955}
.scene .card.mystery .face:before{background:radial-gradient(ellipse at 40% 30%,#fff9,transparent 65%);text-shadow:0 2px 0 #fff8}
.scene .card.just-revealed .glare{animation:spirit-sheen .85s ease-out}
@keyframes spirit-sheen{0%{opacity:0;translate:-100% 0}35%{opacity:.85}100%{opacity:0;translate:100% 0}}
body.revealing .mode-indicator,body.revealing .stage-label{opacity:.45;transition:opacity .5s}
@media(max-width:760px){
 .scene[data-count="5"] .card{--cw:min(240px,64vw);--ch:calc(var(--cw)*1.4)}
 .revealing .bottom-dock{bottom:51px}
 .revealing .result-bar h2{font-size:22px;margin:0 0 8px}
 .revealing .pack-total{margin:4px 0 8px}
 .revealing .result-actions button{padding:9px}
}
@media(prefers-reduced-motion:reduce){.scene .card.just-revealed .glare{animation:none}}
.scene .card.mystery .face{background:#15151b url('assets/spirit-card-back-v1.png') center/100% 100% no-repeat!important;border:1px solid #d8b65d;box-shadow:inset 0 0 0 1px #ffedb055,0 18px 30px -16px #201b2855}
.scene .card.mystery .face:before,.scene .card.mystery .face:after{display:none}
.scene .card.mystery .no{visibility:hidden}
.collection-item.mystery .buddy-art{background:#15151b url('assets/spirit-card-back-v1.png') center/contain no-repeat;aspect-ratio:5/7}
.collection-item.mystery .buddy-art>span{visibility:hidden}
