
#storyEnding #endingCard.prize-page{width:min(96vw,1400px);max-width:1400px;background:linear-gradient(135deg,#07131fee,#151022f7);border:2px solid #ff26c8;box-shadow:0 0 30px #00cfff55;padding:clamp(10px,2vw,26px);max-height:96dvh;overflow:auto}#storyEnding #endingCard.prize-page.prize-preview:has(.prize-chest) #endingTitle{font-size:0;height:clamp(100px,19vw,235px);margin:0;background:url('assets/cp27/prize-preview.webp') center top/100% auto no-repeat}#storyEnding #endingCard.prize-page #endingText{font:bold clamp(12px,1.3vw,18px)/1.3 Arial;color:#fff}#storyEnding #endingCard.prize-page #endingBoxes{display:grid;grid-template-columns:repeat(30,minmax(0,1fr));gap:8px;margin:8px 0}#storyEnding #endingCard.prize-page #endingBoxes .prize-chest{grid-column:span 6;min-width:0;position:relative;background:#080c15;border:2px solid #ff29c6;border-radius:8px;padding:0;aspect-ratio:1.2;font-size:0;overflow:hidden;box-shadow:0 0 12px #ff29c644}#storyEnding #endingCard.prize-page #endingBoxes:has(.prize-chest:nth-child(11)) .prize-chest:nth-child(n+6){grid-column:span 5}.prize-chest-art{display:block;width:100%;height:80%;background:url('assets/cp27/chest-sheet.webp') 0.9% 82.7%/477.7% 389% no-repeat;filter:hue-rotate(var(--chest-hue,0deg));transition:filter .2s,transform .25s}.prize-chest-caption{position:absolute;inset:auto 2px 0;padding:7px 2px;background:#060911e8;border-top:2px solid #ffe22a;font:900 clamp(10px,1.3vw,19px)/1.1 'Arial Narrow',Arial;color:#fff;white-space:normal}.prize-chest:is(:hover,:focus-visible){outline:3px solid #ffe22a;transform:translateY(-3px)}.prize-chest.chest-opening .prize-chest-art{background-position:99% 0%;background-size:471% 308%;transform:scale(1.04);filter:hue-rotate(var(--chest-hue)) brightness(1.3)}.prize-chest.chest-open .prize-chest-art{background-position:99% 48%;background-size:471% 313%}.prize-chest.chest-reveal .prize-chest-art{background-position:100% 100%;background-size:421% 281%;filter:brightness(1.7)}#endingBoxes[data-opening=true] .prize-chest:not(.chest-opening){opacity:.35}#storyEnding #endingCard.prize-page #endingAction,#storyEnding #endingCard.prize-page #endingExit{border:2px solid #ff29c8;background:#111325;color:white;padding:12px 24px;min-height:44px}@media(max-width:650px){#storyEnding #endingCard.prize-page #endingBoxes .prize-chest,#storyEnding #endingCard.prize-page #endingBoxes:has(.prize-chest:nth-child(11)) .prize-chest:nth-child(n+6){grid-column:span 10}#storyEnding #endingCard.prize-page.prize-preview:has(.prize-chest) #endingTitle{height:19vw;min-height:90px}}

#storyEnding #endingCard.prize-page{display:block;width:min(96vw,1400px);height:auto;max-height:94dvh;align-content:start}#storyEnding #endingCard.prize-page.prize-preview:has(.prize-chest) #endingTitle{width:100%;height:auto;aspect-ratio:5.22;min-height:0;background-position:center top}#storyEnding #endingCard.prize-page #endingBoxes{width:100%;max-height:none;overflow:visible}#storyEnding #endingCard.prize-page #endingBoxes .prize-chest{width:100%;height:auto;aspect-ratio:1.12;background:#080c15;margin:0;padding:0;font-size:0;min-height:0;color:white}#storyEnding #endingCard.prize-page #endingBoxes .prize-chest-art{height:78%;display:block}#storyEnding #endingCard.prize-page #endingBoxes .prize-chest-caption{font:900 clamp(10px,1.3vw,18px)/1.1 Arial;padding:6px 2px}#storyEnding #endingCard.prize-page #endingText{margin:8px 0}#storyEnding #endingCard.prize-page .ending-actions{margin-top:12px}
#storyEnding #endingCard.prize-page #endingCast:empty{display:none}

#storyEnding #endingCard.prize-page .prize-chest-art{filter:hue-rotate(var(--chest-hue,0deg)) grayscale(var(--chest-gray,0))}#storyEnding #endingCard.prize-page .chest-opening .prize-chest-art{filter:hue-rotate(var(--chest-hue,0deg)) grayscale(var(--chest-gray,0)) brightness(1.3)}

#storyEnding #endingCard.prize-page .prize-chest-art{position:relative}#storyEnding #endingCard.prize-page .prize-chest-art:after{content:'?';position:absolute;left:38%;top:30%;font:900 clamp(35px,6vw,80px)/1 Arial;color:#ffdf38;text-shadow:0 0 8px #ff8500,0 0 15px #ff9a00}#storyEnding #endingCard.prize-page .chest-opening .prize-chest-art:after{display:none}
#storyEnding #endingCard.prize-page.prize-preview:has(.prize-chest) #endingText{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#storyEnding #endingCard.prize-page #endingBoxes .prize-chest{aspect-ratio:1.35}#storyEnding #endingCard.prize-page .prize-chest-art:after{display:none}#storyEnding #endingCard.prize-page .prize-chest:after{content:'?';position:absolute;left:40%;top:25%;font:900 clamp(35px,5vw,70px)/1 Arial;color:#ffe435;text-shadow:0 0 8px #ff8500,0 0 15px #ff9a00;pointer-events:none}#storyEnding #endingCard.prize-page .chest-opening:after{display:none}
#storyEnding #endingCard.prize-page #endingBoxes .prize-chest.chest-opening{opacity:1!important;filter:none}
