/* Finale: a single crew plate, four composited chest frames and the existing Web collectible. */
.experience[data-chapter="award"] { background-color:#101b47; background-image:linear-gradient(90deg,#08102dd9 0%,#08102d9c 36%,#08102d40 70%,#08102d55),url('../assets/images/finale-straw-hats.webp'); background-position:center; background-size:cover; background-repeat:no-repeat; }
.experience[data-chapter="award"] #ribbon-canvas,.experience[data-chapter="award"] .celebration-marks { display:none; }
.award-scene .award-copy { text-shadow:0 3px 14px #07102c; }
.award-scene .award-halo,.award-scene .award-side-note,.award-scene .award-card,.award-scene .finale-burst { display:none!important; }
.award-scene .award-invitation .award-pull-control { display:none; }
.award-scene .award-invitation { margin-top:20px; }
.award-scene #reveal-award { display:inline-flex; align-items:center; min-height:44px; margin:0; padding:11px 18px; border-radius:999px; background:#ffe0a2; color:#172452; font-size:14px; font-weight:800; text-shadow:none; text-decoration:none; cursor:pointer; }
.award-scene #reveal-award:disabled { opacity:.8; cursor:default; }
.award-scene #reveal-award:focus-visible,.finale-chest:focus-visible { outline:3px solid #fff; outline-offset:5px; }
.award-scene .finale-summary { position:relative; z-index:4; background:#0b1746bd; padding:12px 18px; border-radius:12px; }
.finale-chest { position:relative; z-index:3; display:block; width:min(100%,480px); aspect-ratio:1.05; padding:0; border:0; background:transparent; cursor:pointer; transform:translateZ(0); transition:opacity .55s ease,scale .7s cubic-bezier(.18,.82,.2,1); -webkit-tap-highlight-color:transparent; }
.chest-frame { position:absolute; inset:0; display:block; background-image:url('../assets/images/finale-chest-stages.webp'); background-size:200% 200%; background-repeat:no-repeat; opacity:0; transition:opacity .42s ease; }
.frame-closed { background-position:0 0; opacity:1; }
.frame-cracked { background-position:100% 0; }
.frame-opening { background-position:0 100%; }
.frame-open { background-position:100% 100%; }
.award-scene:not([data-chest-step="0"]) .frame-closed { opacity:0; }
.award-scene[data-chest-step="1"] .frame-cracked { opacity:1; }
.award-scene:is([data-chest-step="2"],[data-chest-step="3"]) .frame-opening { opacity:1; }
.award-scene[data-chest-step="4"] .frame-open { opacity:1; }
.chest-glow { position:absolute; z-index:-1; inset:20%; border-radius:50%; background:radial-gradient(ellipse,#ffc75c66,transparent 70%); opacity:0; transform:scale(.6); transition:opacity .6s ease,transform .7s ease; }
.award-scene[data-chest-step="3"] .chest-glow,.award-scene[data-chest-step="4"] .chest-glow { opacity:1; transform:scale(2); }
.finale-chest.chest-tap { animation:chest-knock .48s cubic-bezier(.25,.7,.2,1); }
@keyframes chest-knock { 0%,100%{transform:translateZ(0) rotate(0)} 22%{transform:translate3d(-6px,2px,0) rotate(-3deg)} 48%{transform:translate3d(6px,-4px,0) rotate(3deg)} 72%{transform:translate3d(-2px,1px,0) rotate(-1deg)} }
.award-scene[data-award="revealed"] .finale-chest { opacity:0; scale:.72; pointer-events:none; }
.finale-winning-card { --card-paper:#252334; --card-ink:#fff9fc; --card-muted:#d0c5df; --card-accent:#afe260; --card-edge:#625675; --card-turn:-2deg; position:absolute; z-index:4; left:50%; top:50%; width:min(82%,315px,40dvh); container-type:inline-size; opacity:0; transform:translate(-50%,-42%) scale(.72); pointer-events:none; transition:transform .85s cubic-bezier(.16,1,.3,1),opacity .6s ease; }
.award-scene[data-award="revealed"] .finale-winning-card { opacity:1; transform:translate(-50%,-50%) scale(1); }
.finale-winning-card .spot-card.collectible-card { width:100%; height:auto; max-height:none; pointer-events:none; cursor:default; transform:rotate(-2deg); box-shadow:0 22px 45px #071127b3,0 0 0 3px #ffe1a299; }
.finale-winning-card .collectible-art { aspect-ratio:1.08; }
@media(max-width:680px) {
 .experience[data-chapter="award"] { background-position:50% center; background-image:linear-gradient(180deg,#091539d9 0%,#09153966 50%,#091539a6 100%),url('../assets/images/finale-straw-hats.webp'); }
 .award-scene .award-copy h2 { font-size:clamp(30px,8vw,48px); }
 .award-scene .award-copy .award-intro { margin-top:8px; }
 .award-scene .award-invitation { margin-top:10px; }
 .award-scene #reveal-award { font-size:12px; padding:8px 13px; }
 .finale-chest { width:min(90%,290px); }
 .finale-winning-card { width:min(70%,215px,30dvh); }
 .award-scene .finale-summary { padding:6px 8px; }
 .award-scene .award-disclaimer { font-size:11px; margin-top:10px; }
 .award-scene .award-celebrated { margin-top:8px; }
 .award-scene .recap-actions { gap:8px; margin-top:8px; }
 .award-scene .recap-actions button { font-size:11px; }
}
@media(max-height:550px) and (min-width:681px) {
 .finale-chest { width:min(85%,280px); }
 .finale-winning-card { width:min(94%,360px); }
 .finale-winning-card .spot-card.collectible-card { display:grid; grid-template-columns:40% 1fr; gap:3cqw; }
 .finale-winning-card .collectible-art { aspect-ratio:1; height:auto; }
 .award-scene .award-copy h2 { font-size:clamp(27px,7dvh,38px); }
 .award-scene .award-copy .award-intro { margin-top:8px; }
 .award-scene .award-invitation,.award-scene .award-celebrated,.award-scene .recap-actions { margin-top:8px; }
}
#experience:is(.motion-paused,.reduced-motion) :is(.finale-chest,.chest-frame,.chest-glow,.finale-winning-card) { animation:none!important; transition:none!important; }
@media(prefers-reduced-motion:reduce) { .finale-chest,.chest-frame,.chest-glow,.finale-winning-card { animation:none!important; transition:none!important; } }
