/* SP-93, SP-114: the highlight on the public match page, the big screen and
   the court screen. An alert, like the toss: the screen dims, the edges flash
   red, the title slams in in red, the raider runs in (a raid) or the team's
   logo pops (a tackle, an all out), a big "+N" for 3 points or more and the
   score counting up; a few seconds, then the page as it was. No box. */
.moment { position: fixed; inset: 0; z-index: 6000; display: flex; align-items: center; justify-content: center;
  padding: 3vmin; background: rgba(12, 12, 14, .9); color: #FFFFFF; opacity: 0; transition: opacity .3s ease;
  pointer-events: none; text-align: center; }
.moment[hidden] { display: none; }
.moment.is-in { opacity: 1; animation: moment-alert .9s ease-out 2; }
.moment__card { display: flex; flex-direction: column; align-items: center; gap: 1.5vmin; max-width: 94vw; }
.moment__pic { display: block; object-fit: contain; }
.moment__pic[hidden] { display: none; }
.moment__pic[data-pic="raider"] { width: min(46vmin, 420px); height: auto; }
.moment__pic[data-pic="logo"] { width: min(26vmin, 240px); height: min(26vmin, 240px); border-radius: 50%; background: #FFFFFF; }
.moment.is-in .moment__pic[data-pic="raider"] { animation: moment-run .6s cubic-bezier(.2, .8, .3, 1); }
.moment.is-in .moment__pic[data-pic="logo"] { animation: moment-pop .5s ease-out; }
.moment__title { font-size: clamp(40px, 11vmin, 160px); font-weight: 900; line-height: 1; letter-spacing: .04em;
  text-transform: uppercase; color: #E53935; text-shadow: 0 0 3vmin rgba(229, 57, 53, .55); }
.moment.is-in .moment__title { animation: moment-slam .55s cubic-bezier(.2, .9, .3, 1.2); }
.moment[data-kind="golden_raid"] .moment__title { color: #F2A516; text-shadow: 0 0 3vmin rgba(242, 165, 22, .5); }
.moment__team { font-size: clamp(20px, 5vmin, 64px); font-weight: 800; letter-spacing: .02em; }
.moment__team:empty { display: none; }
/* The sentence is for screen readers only; the screen shows the alert */
.moment__line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* SP-114: 3 points or more: a big "+N", then the score counts up */
.moment__pts { display: flex; align-items: baseline; justify-content: center; gap: 4vmin; }
.moment__pts[hidden] { display: none; }
.moment__plus { font-size: clamp(90px, 30vmin, 360px); font-weight: 900; line-height: .9; color: #E53935;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 4vmin rgba(229, 57, 53, .6); }
.moment.is-in .moment__plus { animation: moment-pop .5s ease-out .15s both; }
.moment__score { font-size: clamp(48px, 15vmin, 180px); font-weight: 900; line-height: 1; color: #FFFFFF;
  font-variant-numeric: tabular-nums; }
.moment.is-counted .moment__score { color: #2EC27E; }   /* added: the new score in green */
@keyframes moment-alert { 0% { box-shadow: inset 0 0 0 0 rgba(229, 57, 53, 0); }
  30% { box-shadow: inset 0 0 0 1.6vmin rgba(229, 57, 53, .95); } 100% { box-shadow: inset 0 0 0 0 rgba(229, 57, 53, 0); } }
@keyframes moment-slam { 0% { transform: scale(2.6); opacity: 0; } 60% { transform: scale(.94); opacity: 1; }
  80% { transform: translateX(-1vmin); } 90% { transform: translateX(1vmin); } 100% { transform: none; } }
@keyframes moment-run { from { transform: translateX(-60vw); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes moment-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .moment { transition: none; }
  .moment.is-in, .moment.is-in .moment__title, .moment.is-in .moment__pic[data-pic], .moment.is-in .moment__plus { animation: none; }
}
