.new-year-scene {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; opacity: 0;
}
.new-year-scene::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 32%, #100b14aa 69%, #120b17df);
}
.fireworks { position: absolute; inset: 0; width: 100%; height: 100%; }
.new-year-message {
  position: absolute; right: max(6%, calc((100% - 1250px)/2)); bottom: 9%;
  width: min(41%, 510px); text-align: center; color: #fff0d6;
  text-shadow: 0 3px 16px #11070b, 0 2px 6px #1b080b;
  opacity: 0;
}
.new-year-message::before {
  content: ""; display: block; height: 1px; width: 54%; margin: 0 auto 15px;
  background: linear-gradient(90deg, transparent, #e8c38e, transparent);
}
.new-year-message strong {
  display: block; font-style: italic; font-size: clamp(1.5rem,3vw,2.85rem);
  font-weight: 900; line-height: 1; letter-spacing: -.045em; text-transform: uppercase;
}
.new-year-message b {
  display: block; margin: 2px 0 7px; line-height: .96; font: italic 950 clamp(5rem,12vw,10.5rem) / .97 system-ui,sans-serif;
  letter-spacing: -.085em; padding-right: .085em; color: #ffd18c;
  background: linear-gradient(175deg,#fff6dc 12%,#ffd283 50%,#e4a14e 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 4px 17px #1b040ad8);
}
.new-year-message span { font-size: clamp(.88rem,1.4vw,1.08rem); font-weight: 700; color: #fff1db; }
.new-year-scene.is-playing { animation: new-year-stage 7s linear both; }
.is-playing .new-year-message { animation: new-year-message 7s both; }
@keyframes new-year-stage { 0%,100% { opacity: 0; } 9%,83% { opacity: 1; } }
@keyframes new-year-message {
  0%,17% { opacity: 0; transform: translateY(13px) scale(.975); }
  32%,84% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}
@media(max-width:720px) {
  .new-year-scene { position:relative; height:0; background:#131019; }
  .new-year-scene::before { background:radial-gradient(ellipse at 54% 88%,#3e162b 0,transparent 76%); }
  .new-year-scene.is-playing { animation:new-year-stage 7s both, new-year-strip 7s both; }
  .new-year-message { right:6%; left:6%; bottom:7%; width:auto; }
  .new-year-message b { font-size: clamp(4.1rem, 18vw, 7rem); }
  @keyframes new-year-strip { 0%,100% { height:0; } 7%,90% { height:230px; } }
}
@media(prefers-reduced-motion:reduce) {
  .fireworks { display:none; }
  .new-year-scene.is-playing { animation-timing-function:steps(1,end); }
  .is-playing .new-year-message { animation:new-year-static 7s steps(1,end) both; }
  @keyframes new-year-static { from { opacity:1; } to { opacity:0; } }
}
