.climb-preview { max-width: 380px; }
.climb-stage { position: relative; width: 100%; height: 370px; overflow: hidden; }
.climb-actor { position: absolute; top: 40px; left: 50%; width: 220px; height: 220px; z-index: 1; transform: translate(-50%, 130px); clip-path: inset(0 0 35% 0); }
.climb-frames, .wave-after-climb { position: absolute; inset: 0; width: 100%; height: 100%; }
.climb-frames { background: url('./assets/penguin-climb-sample.png') 0 0 / 400% 300% no-repeat; }
.wave-after-climb { opacity: 0; }
.climb-bubble { position: absolute; top: 0; left: 50%; z-index: 5; width: min(280px, calc(100% - 8px)); transform: translateX(-50%); border: 1.5px solid #ccb4a1; border-radius: 17px; background: #fffcf5; padding: 12px; margin: 0; text-align: center; font-size: 14px; line-height: 1.7; }
.climb-bubble::after { content: ''; position: absolute; top: 100%; left: calc(50% - 8px); border: 8px solid transparent; border-top-color: #ccb4a1; }
.preview-wall { position: absolute; z-index: 2; left: 50%; top: 170px; width: min(310px, calc(100% - 8px)); height: 150px; transform: translateX(-50%); border: 2px solid #c9ad96; border-top: 10px solid #e5cbb1; border-radius: 7px 7px 10px 10px; background-color: #f0dfcb; background-image: linear-gradient(#d6bda5 1px, transparent 1px), linear-gradient(90deg,#d6bda5 1px,transparent 1px); background-size: 100% 34px,68px 68px; transition: opacity .45s ease; }
[data-phase="peek"] .climb-actor { animation: sample-peek .9s ease-out both; }
[data-phase="climb"] .climb-actor { clip-path: none; animation: sample-climb 1.8s ease-in-out both; }
[data-phase="climb"] .climb-frames { animation: sample-climb-frames 1.8s steps(1,end) forwards; }
.climb-stage .climb-actor.in-front { z-index: 3; }
[data-phase="landed"] .climb-actor { clip-path: none; transform: translate(-50%,70px); }
[data-phase="landed"] .climb-frames { opacity: 0; }
[data-phase="landed"] .wave-after-climb { opacity: 1; }
[data-phase="landed"] .preview-wall { opacity: 0; }
.preview-link { text-align: center; font-size: 12px; margin-top: 20px; }
.preview-link a { color: #896b5e; }
@keyframes sample-peek { from { transform: translate(-50%,130px); } to { transform: translate(-50%,-5px); } }
@keyframes sample-climb { 0% { transform: translate(-50%,-5px); } 33% { transform: translate(-50%,-40px); } 58% { transform: translate(-50%,-75px); } 88% { transform: translate(-50%,73px); } 95% { transform: translate(-50%,65px); } 100% { transform: translate(-50%,70px); } }
@keyframes sample-climb-frames {
0.00000% { background-position: 0.000000% 0.000000%; }
8.33333% { background-position: 33.333333% 0.000000%; }
16.66667% { background-position: 66.666667% 0.000000%; }
25.00000% { background-position: 100.000000% 0.000000%; }
33.33333% { background-position: 0.000000% 50.000000%; }
41.66667% { background-position: 33.333333% 50.000000%; }
50.00000% { background-position: 66.666667% 50.000000%; }
58.33333% { background-position: 100.000000% 50.000000%; }
66.66667% { background-position: 0.000000% 100.000000%; }
75.00000% { background-position: 33.333333% 100.000000%; }
83.33333% { background-position: 66.666667% 100.000000%; }
91.66667% { background-position: 100.000000% 100.000000%; }
100% { background-position: 100% 100%; }
}
@media (prefers-reduced-motion:reduce) { .climb-actor { animation: none !important; } [data-phase="peek"] .climb-actor { transform: translate(-50%,-5px); } [data-phase="climb"] .climb-actor { transform: translate(-50%,-30px); } .climb-frames { animation: none !important; } .preview-wall { transition: none; } }
