/* Sandcastle: laid out like Get Dressed (it uses that game's .dr- styles for the scene, cards and typing
   line); these are its own touches. The photos on the results card and in the album use the same
   drawings, so the scene's styles aren't tied to the game screen. */
.game.sandcastle { background: #e6f7ff; }
.game.sandcastle .dr-scene { background: #58b8f5; }
.game.sandcastle .sc-me { transform-box: fill-box; transform-origin: 50% 100%; }
.game.sandcastle .hud .btn.ghost { background: #fff; }

/* something new on the beach */
.sc-pop { transform-box: fill-box; transform-origin: 50% 100%; animation: dr-pop .6s cubic-bezier(.2, 1.7, .4, 1); }
.sc-fadein { animation: sc-fadein .9s ease-out; }
@keyframes sc-fadein { from { opacity: 0; } to { opacity: 1; } }

/* the beach, gently moving */
.sc-cloud { animation: sc-drift 26s ease-in-out infinite alternate; }
@keyframes sc-drift { from { transform: translateX(-40px); } to { transform: translateX(50px); } }
.sc-rays { transform-box: fill-box; transform-origin: 50% 50%; animation: sc-spin 40s linear infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-glint { animation: sc-glint 3.4s ease-in-out infinite alternate; }
@keyframes sc-glint { from { opacity: .15; transform: translateX(-10px); } to { opacity: 1; transform: translateX(12px); } }
.sc-tide { animation: sc-tide 5s ease-in-out infinite alternate; }
@keyframes sc-tide { from { transform: translateY(-14px); } to { transform: translateY(14px); } }
.sc-cloth { transform-box: fill-box; transform-origin: 0 50%; animation: sc-flap 1.4s ease-in-out infinite alternate; }
@keyframes sc-flap { from { transform: skewY(-5deg) scaleX(1); } to { transform: skewY(5deg) scaleX(.93); } }
.sc-bob { animation: sc-bob 3.4s ease-in-out infinite alternate; }
@keyframes sc-bob { from { transform: translateY(-5px) rotate(-1.5deg); } to { transform: translateY(5px) rotate(1.5deg); } }
.sc-kite { transform-box: fill-box; transform-origin: 50% 100%; animation: sc-kite 3s ease-in-out infinite alternate; }
@keyframes sc-kite { from { transform: rotate(-7deg); } to { transform: rotate(8deg) translateY(-8px); } }
.sc-jump { animation: sc-jump 6s ease-in-out infinite; }
@keyframes sc-jump { 0%, 62%, 100% { transform: translateY(34px); opacity: 0; } 66% { opacity: 1; } 78% { transform: translate(34px, -46px) rotate(8deg); opacity: 1; } 92% { transform: translate(70px, 34px) rotate(28deg); opacity: 1; } 96% { opacity: 0; } }
.sc-lava { animation: sc-lava 2.2s ease-in-out infinite alternate; }
@keyframes sc-lava { from { opacity: .35; } to { opacity: 1; } }
.sc-twinkle { transform-box: fill-box; transform-origin: 50% 50%; animation: sc-twinkle 1.5s ease-in-out infinite alternate; }
@keyframes sc-twinkle { from { transform: scale(.3); opacity: .3; } to { transform: scale(1.1); opacity: 1; } }

/* sunset */
.sc-disc { fill: #ffd93f; transition: fill 4.5s ease-in; }
.sc-rays { opacity: 1; transition: opacity 3s ease-in; }
.sc-sun { transition: transform 5.5s ease-in-out; }
.sc-dusk { opacity: 0; transition: opacity 4.5s ease-in; }
.sc-warm { opacity: 0; pointer-events: none; transition: opacity 4.5s ease-in; }
.sc-stars { opacity: 0; transition: opacity 3s ease-in 3s; }
.sc-win { fill: #5a3f66; transition: fill 2s ease-in 2.5s; }
.sc-beam { transition: opacity 2s ease-in 3s; }
.sc-scene.sunset .sc-sun { transform: translate(-50px, 260px); }
.sc-scene.sunset .sc-disc { fill: #ff7a3c; }
.sc-scene.sunset .sc-rays { opacity: 0; }
.sc-scene.sunset .sc-dusk { opacity: 1; }
.sc-scene.sunset .sc-warm { opacity: .2; }
.sc-scene.sunset .sc-stars { opacity: 1; }
.sc-scene.sunset .sc-win { fill: #ffe27a; }
.sc-scene.sunset .sc-beam { opacity: .5; }

/* the camera flash */
.game.sandcastle .sc-flash { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; pointer-events: none; }
.game.sandcastle .sc-flash.go { animation: sc-flash .5s ease-out; }
@keyframes sc-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

/* the photo on the results card, and the album */
.sc-photo svg { width: 248px; height: 155px; background: none; }
.sc-album-modal .sc-album { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-height: 62vh; overflow: auto; padding: 10px; }
.sc-album .sc-photo { padding-bottom: 8px; }
.sc-album .sc-photo:nth-child(2n) { transform: rotate(2deg); }
