/* Monster Band Happy New Year card: what's different from the Monster Jukebox's style.css (built from the birthday
   card's party.css). */

/* One song: no song deck, sticker book, grown-ups' panel or help button. */
.deck, #help-btn, #book-btn, #set-btn { display: none !important; }

/* The night sky behind the stage, and the words on a night banner. */
:root { --bg: #0b1236; }
.stage-wrap { background: #0b1236; }
.lyrics { background: #fffbe8; }
/* A narrow card frame (phones, small tablets): there's no room for the words between the corner buttons, so the
   words go just under the buttons and use the full width. (Tall frames keep style.css's own rule.) */
@media (max-width: 860px) and (min-aspect-ratio: 4/5) {
  .lyrics { top: calc(var(--top) + var(--btn) + 10px); max-width: calc(100% - 20px); font-size: clamp(16px, min(4.6vw, 6.4vh), 32px); line-height: 1.3; }
  .hint { top: calc(var(--top) + var(--btn) + 110px); }
}
/* very narrow frames: "Play again!" stays clear of the Play button */
@media (max-width: 380px) { #again { gap: 5px; padding: 0 11px; font-size: 14px; left: calc(env(safe-area-inset-left, 0px) + 8px); } }

/* Stars and string lights twinkle (js/scene.js draws them). */
.twinkle-a { animation: ny-twinkle 2.2s ease-in-out infinite alternate; }
.twinkle-b { animation: ny-twinkle 3.1s ease-in-out -1.2s infinite alternate; }
.twinkle-c { animation: ny-twinkle 1.7s ease-in-out -.6s infinite alternate; }
@keyframes ny-twinkle { from { opacity: .25; } to { opacity: 1; } }
.bulb { animation: ny-bulb 1.4s ease-in-out infinite alternate; }
.bulb:nth-child(3n) { animation-delay: -.5s; } .bulb:nth-child(3n+1) { animation-delay: -1s; }
@keyframes ny-bulb { from { opacity: .45; } to { opacity: 1; } }
.lantern { transform-box: fill-box; transform-origin: 50% 0; animation: ny-swing 2.6s ease-in-out infinite alternate; }
@keyframes ny-swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* The opening panel: New Year hats on the faces, and who the card is from. */
.party-faces { margin-top: 18px; }
.party-faces .f i { position: absolute; left: 50%; top: -24px; width: 30px; height: 24px; margin-left: -15px; transform: rotate(-8deg);
  background: linear-gradient(#2c2c48 0 62%, #ffd23a 62% 80%, #2c2c48 80%); border-radius: 3px 3px 0 0; box-shadow: 0 3px 0 -1px #23233a; }
.party-faces .f1 i { top: -26px; width: 24px; height: 28px; margin-left: -12px; transform: rotate(8deg); border-radius: 0;
  background: repeating-linear-gradient(-40deg, #3b5bdb 0 6px, #c9d4e6 6px 11px); clip-path: polygon(50% 0, 100% 100%, 0 100%); box-shadow: none; }
.party-faces .f2 i { top: -16px; width: 30px; height: 15px; margin-left: -15px; transform: rotate(-4deg); border-radius: 0; box-shadow: none;
  background: #ffd23a; clip-path: polygon(0 100%, 8% 30%, 25% 70%, 50% 0, 75% 70%, 92% 30%, 100% 100%); }
.party-faces .f3 i { top: -16px; width: 22px; height: 15px; margin-left: -11px; transform: rotate(10deg); border-radius: 0; box-shadow: none;
  background: #ffd23a; clip-path: polygon(0 100%, 5% 10%, 30% 55%, 50% 0, 70% 55%, 95% 10%, 100% 100%); }
#help-title { font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-size: clamp(30px, 7vmin, 46px); color: #3b3b98; margin-top: 4px; }
.splash-card .from-line { font: 700 clamp(18px, 4vmin, 24px) "Fredoka", "Nunito", system-ui, sans-serif; color: #b8860b !important; margin: -4px 0 16px !important; }

/* "Happy New Year" in the sky, the name, the countdown clock and the year on the outfits. */
.ny-title, .ny-name { font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-weight: 700; paint-order: stroke; stroke: #1a1f3d; stroke-linejoin: round; }
.ny-title { font-size: 86px; fill: #ffd23a; stroke-width: 8px; fill-opacity: 0; }
.ny-title.mid { font-size: 72px; }
.ny-name { font-size: 68px; fill: #ff8fc7; stroke-width: 7px; }
.ny-count { font: 700 92px "Fredoka", "Nunito", system-ui, sans-serif; fill: #1a1f3d; }
.ny-sign { font: 700 20px "Fredoka", "Nunito", system-ui, sans-serif; fill: #59607f; letter-spacing: 1px; transition: fill .3s; }
.ny-sign.lit { fill: #ffd23a; }
.ny-tiara { font: 700 13px "Fredoka", "Nunito", system-ui, sans-serif; fill: #7a4a00; }
.ny-glass { font: 700 12px "Fredoka", "Nunito", system-ui, sans-serif; fill: #7a2a12; }

/* "Play again!" in the top left corner when the party is over (the same button as the Thanksgiving Choir card). */
#again { position: fixed; z-index: 10; top: var(--top); left: calc(env(safe-area-inset-left, 0px) + 12px); height: var(--btn);
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; margin: 0;
  border: 3px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); border-radius: 999px 900px 980px 940px;
  background: #ef5350; color: #fff; font: 800 clamp(15px, 3vmin, 22px) "Nunito", system-ui, sans-serif;
  cursor: pointer; touch-action: manipulation; transition: transform .08s; transform: rotate(-2deg);
  animation: wiggle-again 2.4s ease-in-out infinite; }
#again[hidden] { display: none; }
#again:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }
#again:focus-visible { outline: 3px dashed #ffd23a; outline-offset: 3px; }
@keyframes wiggle-again { 0%, 80%, 100% { rotate: 0deg; } 85% { rotate: -4deg; } 90% { rotate: 4deg; } 95% { rotate: -2deg; } }

/* No moon on this card (js/scene.js still draws it for the shared code that moves it). */
.sky-sun { display: none !important; }

@media (prefers-reduced-motion: reduce) { #again, .twinkle-a, .twinkle-b, .twinkle-c, .bulb, .lantern { animation: none; } }

/* The LLERRAH.COM banner a balloon tows across a tall sky would sit behind "Happy New Year": not on this card. */
.sky-tow { display: none; }

/* ?shot=1 (the pictures): no buttons or words. */
body.shot #controls, body.shot #tools, body.shot #lyrics, body.shot #hint { display: none !important; }
