/* Award ceremony. Keep the arena visible until this scene is ready to paint. */
.ceremony {
  --ice: #97f0ff;
  --gold: #ffe168;
  --navy: #0b1e31;
  --winners: #9dffe0;
  --losers: #b6d3f2;
  position: fixed;
  inset: 0;
  z-index: 15;
  isolation: isolate;
  display: grid;
  grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  height: 100dvh;
  padding: max(15px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
    max(13px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow: hidden;
  color: #f4fdff;
  font-family: Inter, system-ui, sans-serif;
  text-align: center;
  text-shadow: 0 2px 4px #051322;
  background-color: #203d68;
  background-image: linear-gradient(180deg, #051827b8 0%, #17386122 38%, #061a2a36 68%, #041725d9 100%),
    url("ceremonia.webp"), radial-gradient(ellipse at 50% 37%, #47a8c3 0%, #264e77 47%, #172542 92%);
  background-position: center;
  background-size: cover;
}

.ceremony[hidden], .ceremony [hidden] { display: none !important; }
.ceremony-header, .ceremony-floor, .ceremony-footer { position: relative; z-index: 2; }
.ceremony-header { display: grid; justify-items: center; align-content: start; }
.ceremony-kicker {
  display: block;
  margin: 0;
  color: #c1f4ff;
  font-size: clamp(.67rem, 1.35vmin, .85rem);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ceremony-header h1 {
  margin: .03em 0 .13em;
  color: #fff0a1;
  font-size: clamp(2.15rem, 9vmin, 6.4rem);
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.065em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px #a15a25, 0 4px #492b26, 0 7px 14px #030f27cc;
}
.ceremony[data-outcome="lose"] .ceremony-header h1 {
  color: #e2edfa;
  text-shadow: 0 2px #657792, 0 4px #23344d, 0 7px 14px #030f27cc;
}
.ceremony-score {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px;
  border: 1px solid #a9e3ff71;
  border-radius: 7px;
  background: #0a1c32f5;
  box-shadow: 0 3px 0 #06142488;
  font-size: clamp(.77rem, 1.7vmin, .95rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.ceremony-score span {
  display: inline-flex; align-items: baseline; gap: .55em; padding: .15em .7em;
  border-radius: 3px; color: white;
}
.ceremony-score span[data-team="blue"] { background: #185d83; box-shadow: inset 0 2px #87e8ff; }
.ceremony-score span[data-team="red"] { background: #8c3f4d; box-shadow: inset 0 2px #ffafa4; }
.ceremony-score b { font-size: 1.3em; }
.ceremony-score i { color: #95abc2; font-style: normal; }

.ceremony-floor {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) minmax(260px, 2fr) minmax(128px, 1fr);
  gap: clamp(8px, 2.5vw, 42px);
  align-items: end;
  width: min(1140px, 100%);
  margin-inline: auto;
}
.ceremony-team {
  position: relative;
  min-width: 0;
  padding: clamp(6px, 1.25vw, 16px);
  border: 1px solid #83aec891;
  border-top: 3px solid var(--side);
  border-radius: 9px;
  background: linear-gradient(165deg, #152b47e8, #0b1b31ec);
  box-shadow: 0 4px 0 #061325a6, 0 14px 22px #0715264a;
  opacity: 1;
  transform: translateY(0);
  transition: transform .45s ease-out, opacity .45s ease-out;
}
.team-winners { --side: var(--winners); grid-column: 1; }
.team-losers { --side: var(--losers); grid-column: 3; }
.ceremony[data-phase="start"] .ceremony-team { opacity: 0; transform: translateY(12px); }
.ceremony-team h2 {
  margin: 0 0 clamp(4px, 1vmin, 10px); color: var(--side);
  font-size: clamp(.77rem, 1.75vmin, 1.13rem); font-weight: 850; line-height: 1.12;
}
.ceremony-team ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(4px, 1vmin, 9px);
  margin: 0; padding: 0; list-style: none;
}
.ceremony-team li { min-width: 0; position: relative; }
.ceremony-team li > span {
  display: block; overflow: hidden; width: 100%; text-overflow: ellipsis; white-space: nowrap;
  font-size: clamp(.65rem, 1.43vmin, .83rem); line-height: 1.18; font-weight: 750;
}
.team-actor {
  position: relative; isolation: isolate;
  width: min(100%, clamp(45px, 8.5vmin, 90px));
  aspect-ratio: 1.24;
  margin-inline: auto;
  --motion-delay: 0s;
}
.ceremony-team li:nth-child(2) .team-actor { --motion-delay: -.34s; }
.ceremony-team li:nth-child(3) .team-actor { --motion-delay: -.66s; }
.ceremony-team li:nth-child(4) .team-actor { --motion-delay: -.13s; }
.team-actor img, .podium-portrait img {
  display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 3px 2px #041123a6);
}
.team-actor img { transform-origin: center 88%; }
.team-emote {
  position: absolute; right: 2%; top: 2%; color: var(--emote);
  font-size: clamp(13px, 2.8vmin, 26px); font-weight: 950; line-height: 1;
  font-style: normal; text-shadow: 0 1px #081a2e, 1px 0 #081a2e, 0 2px 4px #081a2e;
}
.team-winners .team-emote { --emote: #ffe76b; }
.team-losers .team-emote { --emote: #72dfff; }
.ceremony.celebrating .team-winners .team-actor img {
  animation: ceremony-cheer 1.15s ease-in-out var(--motion-delay) infinite;
}
.ceremony.celebrating .team-winners .team-emote {
  animation: ceremony-spark 1.15s ease-out var(--motion-delay) infinite;
}
.team-losers .team-actor img { transform: rotate(-6deg); }
.ceremony.celebrating .team-losers .team-actor img {
  animation: ceremony-sigh 2.2s ease-in-out var(--motion-delay) infinite;
}
.ceremony.celebrating .team-losers .team-emote {
  animation: ceremony-tear 1.6s ease-in var(--motion-delay) infinite;
}

.ceremony-podium {
  position: relative; isolation: isolate; grid-column: 2; grid-row: 1;
  display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end;
  gap: clamp(3px, .55vw, 9px); min-width: 0;
  padding-bottom: 7px;
}
.ceremony-podium::before {
  content: ""; position: absolute; z-index: -1; left: -4%; right: -4%; bottom: -3px;
  height: 12px; border: 1px solid #b3d5ce8a; border-radius: 50%;
  background: linear-gradient(#699fa1, #284761); box-shadow: 0 4px 9px #0a163899;
}
.podium-entry {
  --metal: #82c5ed; --lit: #d7eeff; --base: #426588; --wall: clamp(64px, 11.8vmin, 124px);
  position: relative;
  min-width: 0;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end;
  opacity: 0; transform: translateY(10px) scale(.97); transform-origin: center bottom;
  transition: opacity .36s ease-out, transform .46s cubic-bezier(.2,.8,.25,1.12);
}
.podium-entry[data-rank="1"] { --metal: #ffcb4d; --lit: #ffec91; --base: #9a5d1c; --wall: clamp(80px, 15.2vmin, 155px); z-index: 1; }
.podium-entry[data-rank="3"] { --metal: #ec9d6f; --lit: #ffd8ae; --base: #915339; --wall: clamp(58px, 10.3vmin, 108px); }
.podium-entry.revealed { opacity: 1; transform: translateY(0) scale(1); }
.podium-portrait {
  position: relative; display: grid; align-items: end; justify-items: center;
  height: clamp(48px, 11vmin, 118px); z-index: 1; margin-bottom: -3px;
}
.podium-entry[data-rank="1"] .podium-portrait { height: clamp(62px, 14.3vmin, 150px); }
.podium-portrait img {
  position: absolute; inset: 0;
  object-position: center bottom;
}
.podium-portrait::before {
  content: ""; position: absolute; inset: -10% -12% -12%; z-index: -1; opacity: .65;
  background: radial-gradient(ellipse, var(--metal), transparent 65%);
}
.podium-block {
  position: relative;
  height: var(--wall);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 2px; padding: clamp(5px, 1.15vmin, 11px) 3px 3px;
  border: 2px solid #142337; border-top: 5px solid var(--lit); border-radius: 5px 5px 3px 3px;
  color: #fff;
  background: linear-gradient(125deg, #ffffff20, transparent 38%), linear-gradient(180deg, var(--metal), var(--base) 55%, #24354d 130%);
  box-shadow: inset 3px 0 #ffffff55, inset -3px 0 #16233646, 0 3px 0 #142337;
  text-shadow: 0 1px 2px #1e2337, 0 2px 4px #1e233799;
}
.podium-number {
  color: #18293c; text-shadow: 0 1px #ffffff90; font-size: clamp(1.1rem, 4.4vmin, 2.7rem);
  font-style: italic; font-weight: 950; letter-spacing: -.07em; line-height: .97;
}
.podium-block strong, .podium-block small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.podium-block strong { white-space: nowrap; font-size: clamp(.7rem, 1.95vmin, 1.16rem); font-weight: 850; line-height: 1.1; }
.podium-block small { font-size: clamp(.64rem, 1.55vmin, .88rem); font-weight: 700; line-height: 1.12; }
.ceremony-footer {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px;
  min-height: 67px; width: 100%;
}
.ceremony-footer p {
  margin: 0; max-width: 95%; border-radius: 20px; padding: 3px 12px;
  background: #102539ce; font-size: clamp(.77rem, 1.55vmin, .95rem); font-weight: 700; line-height: 1.32;
}
.ceremony-footer p:empty { visibility: hidden; }
.ceremony-accept {
  min-width: 140px; min-height: 44px; padding: 5px 21px; border: 2px solid #291f19;
  border-radius: 7px; color: #222f39;
  background: linear-gradient(#ffe985, #ffc242); box-shadow: inset 0 2px #fff8bd, 0 3px #824f25;
  font-size: 1rem; font-weight: 900; line-height: 1.1; text-shadow: none;
}
.ceremony-accept:hover { filter: brightness(1.08); }
.ceremony-accept:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.ceremony .ceremony-accept[hidden] {
  display: inline-block !important; visibility: hidden; pointer-events: none;
}

.ceremony-confetti { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.ceremony-confetti i {
  --pos: 3%; --delay: -.2s; --paper: #ffdc67; --drift: 28px;
  position: absolute; top: -15px; left: var(--pos); width: 7px; height: 12px;
  opacity: 0; border-radius: 2px; background: var(--paper);
}
.ceremony-confetti i:nth-child(6n+2) { --pos: 22%; --delay: -1.7s; --paper: #55e7d1; --drift: -37px; }
.ceremony-confetti i:nth-child(6n+3) { --pos: 36%; --delay: -.95s; --paper: #eb91cd; --drift: 25px; }
.ceremony-confetti i:nth-child(6n+4) { --pos: 59%; --delay: -2.75s; --paper: #8dd8ff; --drift: -37px; }
.ceremony-confetti i:nth-child(6n+5) { --pos: 76%; --delay: -.45s; --paper: #ffc878; --drift: 40px; }
.ceremony-confetti i:nth-child(6n) { --pos: 91%; --delay: -2.25s; --paper: #54e4c3; --drift: -22px; }
.ceremony-confetti i:nth-child(n+7) { margin-left: 4.5%; }
.ceremony:is(.celebrating, [data-phase="done"]) .ceremony-confetti i { animation: ceremony-fall 4.1s linear var(--delay) infinite; }
.ceremony:is(.celebrating, [data-phase="done"]) .ceremony-confetti i:nth-child(n+7) { animation-duration: 5.3s; }
.ceremony:is(.celebrating, [data-phase="done"]) .ceremony-confetti i:nth-child(n+13) { animation-duration: 4.7s; margin-left: 8.2%; }
.ceremony:is(.celebrating, [data-phase="done"]) .ceremony-confetti i:nth-child(n+19) { animation-duration: 5.75s; margin-left: -4.1%; }
.ceremony:is(.celebrating, [data-phase="done"]) .ceremony-confetti i:nth-child(n+25) { animation-duration: 6.25s; margin-left: -1.6%; }
.ceremony:is(.celebrating, [data-phase="done"]) .ceremony-confetti i:nth-child(n+31) { animation-duration: 6.8s; margin-left: 10.5%; }

@keyframes ceremony-cheer {
  0%, 57%, 100% { transform: translateY(0) rotate(-2deg); }
  23% { transform: translateY(-11%) rotate(6deg); }
  68% { transform: translateY(-4%) rotate(-4deg); }
}
@keyframes ceremony-spark {
  0%, 100% { transform: scale(.85) rotate(-14deg); opacity: .6; }
  32% { transform: translateY(-17%) scale(1.12) rotate(11deg); opacity: 1; }
}
@keyframes ceremony-sigh {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  55% { transform: translateY(5%) rotate(-9deg) scaleY(.96); }
}
@keyframes ceremony-tear {
  0% { transform: translateY(-22%); opacity: 0; }
  17%, 66% { opacity: 1; }
  100% { transform: translateY(72%); opacity: 0; }
}
@keyframes ceremony-fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  8%, 72% { opacity: .8; }
  100% { transform: translate(var(--drift), 93vh) rotate(420deg); opacity: 0; }
}
@media (orientation: portrait) and (max-width: 760px) {
  .ceremony { padding-inline: max(9px, env(safe-area-inset-left)) max(9px, env(safe-area-inset-right)); }
  .ceremony-floor {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: clamp(12px, 3.1vh, 25px) 7px;
    align-self: center;
  }
  .ceremony-podium { grid-column: 1/-1; grid-row: 1; width: min(94%, 500px); justify-self: center; }
  .team-winners, .team-losers { grid-row: 2; align-self: stretch; }
  .team-winners { grid-column: 1; }
  .team-losers { grid-column: 2; }
  .team-actor { width: min(100%, clamp(39px, 7.3vh, 70px)); }
  .podium-portrait { height: clamp(45px, 7.9vh, 90px); }
  .podium-entry[data-rank="1"] .podium-portrait { height: clamp(60px, 9.6vh, 110px); }
  .podium-entry { --wall: clamp(65px, 10.1vh, 90px); }
  .podium-entry[data-rank="1"] { --wall: clamp(80px, 12.1vh, 110px); }
  .podium-entry[data-rank="3"] { --wall: clamp(58px, 8.6vh, 78px); }
  .podium-block small { max-width: 12ch; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .ceremony {
    padding-block: max(5px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-bottom));
    padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
  }
  .ceremony-header h1 { margin: 0 0 .11em; font-size: clamp(1.75rem, 8vh, 2.55rem); }
  .ceremony-kicker { font-size: .62rem; }
  .ceremony-score { font-size: .7rem; }
  .ceremony-floor { gap: 8px; grid-template-columns: minmax(99px, 1fr) minmax(230px, 2fr) minmax(99px, 1fr); }
  .ceremony-team { padding: 5px; }
  .ceremony-team h2 { margin-bottom: 3px; }
  .team-actor { width: min(100%, 12vh); }
  .podium-portrait { height: clamp(39px, 14vh, 68px); }
  .podium-entry[data-rank="1"] .podium-portrait { height: clamp(48px, 17vh, 85px); }
  .ceremony-footer { flex-direction: row; justify-content: center; min-height: 44px; gap: 10px; }
  .ceremony-accept { min-width: 106px; }
}
@media (prefers-reduced-motion: reduce) {
  .ceremony *, .ceremony *::before, .ceremony *::after {
    animation: none !important; transition: none !important;
  }
  .ceremony-confetti { display: none; }
}

/* Fine lettering sits on the same dark inset on each metal finish. */
.podium-block strong {
  padding: 1px .3em; border-radius: 3px;
  color: #fff; background: #182439c9; text-shadow: none;
}

/* Once the awards settle, retain readable winning and losing poses. */
.ceremony[data-phase="done"] .ceremony-team .team-actor img,
.ceremony[data-phase="done"] .ceremony-team .team-emote { animation: none; }
.ceremony[data-phase="done"] .team-winners .team-actor img { transform: translateY(-4%) rotate(4deg); }
.ceremony[data-phase="done"] .team-winners .team-emote { opacity: 1; transform: rotate(9deg); }
.ceremony[data-phase="done"] .team-losers .team-actor img { transform: translateY(3%) rotate(-7deg) scaleY(.97); }
.ceremony[data-phase="done"] .team-losers .team-emote { opacity: .9; transform: translateY(25%); }
.ceremony-confetti { transition: opacity .6s ease-out; }
.ceremony[data-phase="done"] .ceremony-confetti { opacity: 0; }
.ceremony[data-phase="done"] .ceremony-confetti i { animation-play-state: paused; }

/* Keep the four-decimal BALAS receipt distinct from weapon ammunition. */
.podium-block { min-height: 86px; }
.podium-block small { max-width: 100%; }
.podium-block .podium-reward {
  margin-top: 2px;
  padding: 2px 4px;
  border-radius: 3px;
  color: #fff1a3;
  background: #182439dc;
  font-size: clamp(.6rem, 1.35vmin, .81rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: none;
}
.game-badge #match-quota { color: #ffe296; }

/* An exhausted tank never enters combat or displays a retry loop. */
.cover[data-mode="limit"] { align-items: center; padding-block: 20px; }
.cover[data-mode="limit"] .load-box > :not(#load-limit) { display: none; }
#load-limit {
  padding: clamp(20px, 4vw, 34px);
  border: 2px solid #e4bf78;
  border-radius: 16px;
  background: #231e2cf2;
  box-shadow: 0 12px 45px #0009, inset 0 1px #fff3;
}
#load-limit h2 { margin: 16px 0 12px; color: #fff0bd; font-size: clamp(23px, 4vw, 34px); line-height: 1.08; }
#load-limit p { color: #f2e6dd; line-height: 1.5; }
#load-limit #quota-reset { color: #cfc0cc; font-size: .85rem; }
.quota-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.quota-actions a { padding: 11px 14px; border-radius: 7px; border: 1px solid #d7b67f; font-weight: 800; text-decoration: none; }
.quota-actions a:first-child { background: #ffd26a; color: #30202b; }
.quota-actions a:last-child { background: #463548; color: #fff3df; }
/* Gold is gameplay progression, separate from the BALAS podium reward. */
.ceremony-gold{color:#ffe08b!important;font-weight:800!important;font-size:clamp(12px,1.3vw,17px)!important;margin:4px 0 12px!important;text-shadow:0 2px #3a242a}

/* Arena celebration: slow moving stage beams, warm podium lighting and gold sparks. */
.ceremony::before,.ceremony::after{
  content:"";position:absolute;z-index:0;pointer-events:none;bottom:-18%;
  width:38%;height:142%;transform-origin:50% 100%;opacity:.66;
  background:linear-gradient(0deg,#ffda9d08 3%,#ffe5ac44 52%,#fff5c775 100%);
  clip-path:polygon(0 0,100% 0,54% 100%,46% 100%);
  animation:ceremony-beam-left 7.5s ease-in-out infinite alternate;
}
.ceremony::before{left:0;transform:rotate(-16deg)}
.ceremony::after{right:0;transform:rotate(16deg);background:linear-gradient(0deg,#bca9ff04 3%,#d1bfff30 52%,#fff0bc65 100%);animation-name:ceremony-beam-right;animation-delay:-3.7s}
.ceremony[data-outcome="lose"]::before,.ceremony[data-outcome="lose"]::after{--beam-low:.18;--beam-high:.3;opacity:.3}
.ceremony-header h1{position:relative;isolation:isolate}
.ceremony-header h1::before{content:"";position:absolute;inset:-35% -40%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,#ffc15866 0%,#ffa13622 32%,transparent 68%);animation:ceremony-title-aura 3.4s ease-in-out infinite alternate}
.ceremony[data-outcome="lose"] .ceremony-header h1::before{background:radial-gradient(ellipse,#8aaaff33,transparent 68%)}
.ceremony-podium::after{content:"";position:absolute;z-index:-1;inset:-40% -16% -12%;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 50% 96%,#ffd06788,transparent 55%),radial-gradient(circle at 10% 32%,#fff9bd 0 2px,transparent 3px),radial-gradient(circle at 88% 19%,#ffd46e 0 2px,transparent 3px),radial-gradient(circle at 77% 55%,#ffe996 0 1px,transparent 2px),radial-gradient(circle at 20% 70%,#fff1ac 0 1px,transparent 2px);transform:scale(.9);transition:opacity .5s ease,transform .7s ease}
.ceremony[data-phase="gold"] .ceremony-podium::after,.ceremony[data-phase="done"] .ceremony-podium::after{opacity:1;transform:scale(1)}
.ceremony .podium-entry[data-rank="1"].revealed .podium-portrait::before{opacity:.9;background:radial-gradient(ellipse,#ffdf7999,#efad3030 45%,transparent 70%)}
.ceremony .team-winners{border-color:#f5d3769c;border-top-color:#fff1a0;box-shadow:0 4px 0 #061325a6,0 0 22px #e9af2c24,inset 0 1px #fff5b933}
.ceremony .team-winners h2{color:#fff0a1}
.ceremony[data-phase="done"] .ceremony-confetti{opacity:.36}
.ceremony[data-phase="done"] .ceremony-confetti i{animation-play-state:running;animation-duration:8s}
.ceremony-confetti i:nth-child(3n){width:5px;height:14px;border-radius:0;box-shadow:0 0 5px #ffe2a477}
.ceremony-accept{box-shadow:inset 0 2px #fff8bd,0 3px #824f25,0 0 24px #ffc94832}
@keyframes ceremony-beam-left{from{transform:rotate(-16deg);opacity:var(--beam-low,.43)}to{transform:rotate(13deg);opacity:var(--beam-high,.7)}}
@keyframes ceremony-beam-right{from{transform:rotate(18deg);opacity:var(--beam-low,.4)}to{transform:rotate(-11deg);opacity:var(--beam-high,.68)}}
@keyframes ceremony-title-aura{from{opacity:.55;transform:scale(.95)}to{opacity:.9;transform:scale(1.07)}}
@media(max-width:600px){.ceremony::before,.ceremony::after{width:65%;height:125%;bottom:-10%}.ceremony::before{left:-28%}.ceremony::after{right:-28%}}
@media(prefers-reduced-motion:reduce){
  .ceremony::before,.ceremony::after,.ceremony-header h1::before{animation:none!important;opacity:.35}
  .ceremony .ceremony-confetti{display:none}
  .ceremony-podium::after{transition:none}
}
.static-motion .ceremony::before,.static-motion .ceremony::after,.static-motion .ceremony-header h1::before{animation:none!important;opacity:.35}
.static-motion .ceremony .ceremony-confetti{display:none}

/* Let the bronze step grow enough for the complete pilot and BALAS receipt. */
.podium-block{height:auto;min-height:max(100px,var(--wall));padding-bottom:8px}
.podium-block>*{flex-shrink:0}
.ceremony-footer .ceremony-rule{color:#d9e7f4;font-size:clamp(.72rem,1.35vmin,.86rem);font-weight:600}

/* v54 · The podium carries the same winged trophy and comic gold victory ribbon. */
.ceremony-header{width:min(720px,100%)}
.ceremony-victory-banner{position:relative;isolation:isolate;width:min(570px,88vw);padding:6px 28px 10px;margin:60px 0 10px;filter:drop-shadow(0 5px 0 #23142d)}
.ceremony-victory-banner::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,#dc6e2c,#ffc954 18%,#fff0a4 49%,#ffd365 80%,#e78031);clip-path:polygon(4% 0,96% 0,100% 78%,94% 78%,93% 100%,7% 100%,6% 78%,0 78%)}
.ceremony-victory-banner::after{content:"";position:absolute;inset:5px 20px 11px;border-block:1px solid #a65b3488;z-index:-1}
.ceremony-header .ceremony-victory-banner h1{margin:0;color:#fff6bf;font-size:clamp(2.35rem,8.8vmin,5.6rem);font-weight:1000;line-height:1.05;letter-spacing:-.065em;-webkit-text-stroke:2px #4b2432;paint-order:stroke fill;text-shadow:1px 2px #a04a2c,2px 4px #783126,3px 6px #301a29;transform:rotate(-2deg);padding-right:5px}
.ceremony-header .ceremony-victory-banner h1::before{display:none}
.ceremony-victory-emblem{position:absolute;left:50%;top:-73px;translate:-50% 0;width:114px;height:71px;object-fit:contain;filter:drop-shadow(0 3px 0 #23142d);animation:ceremony-emblem-enter .45s cubic-bezier(.18,.85,.24,1.14) both}
.ceremony-header>.br-scene-logo{position:absolute;top:2px;left:3px;width:69px!important;max-width:16vw;filter:drop-shadow(0 3px 2px #201127)}
.ceremony-header .ceremony-kicker{display:none}
.ceremony-score{border-color:#e5b66a;background:linear-gradient(135deg,#54293d,#2a192e);box-shadow:0 3px #1d1329,inset 0 1px #ffe8aa33}
.ceremony-score span[data-team="blue"]{background:linear-gradient(115deg,#129ac4,#245db2);box-shadow:inset 0 2px #b4f4ff}
.ceremony-score span[data-team="red"]{background:linear-gradient(115deg,#f05b6d,#ac234c);box-shadow:inset 0 2px #ffd2c4}
.ceremony[data-outcome="lose"] .ceremony-victory-banner::before{background:linear-gradient(100deg,#79586c,#d6bdd1 18%,#f0dfea 49%,#b895b2 80%,#79586c)}
.ceremony[data-outcome="lose"] .ceremony-victory-emblem{filter:grayscale(.8) drop-shadow(0 3px 0 #23142d)}
.ceremony[data-outcome="lose"] .ceremony-header .ceremony-victory-banner h1{color:#fff0f0;-webkit-text-stroke-color:#493047;text-shadow:1px 2px #77506b,2px 4px #493047,3px 6px #291a2c}
.ceremony[data-phase="done"] .ceremony-confetti{opacity:0}
.ceremony[data-phase="done"] .ceremony-confetti i{animation-play-state:paused}
@keyframes ceremony-emblem-enter{from{opacity:0;transform:translateY(-12px) scale(.7)}to{opacity:1;transform:none}}
@media(orientation:portrait) and (max-width:760px){.ceremony-victory-banner{width:92%;padding:6px 14px 10px;margin:53px 0 9px}.ceremony-header .ceremony-victory-banner h1{font-size:clamp(38px,11vw,65px);-webkit-text-stroke-width:1.5px}.ceremony-header .ceremony-kicker{margin-top:34px;font-size:10px}.ceremony-victory-emblem{width:106px;height:66px;top:-65px}.ceremony-header>.br-scene-logo{top:0;left:4px;width:56px!important}}
@media(max-height:520px) and (min-width:701px){.ceremony-victory-banner{width:min(390px,52vw);padding:3px 24px 6px;margin:36px 0 7px}.ceremony-header .ceremony-victory-banner h1{font-size:clamp(31px,9vh,46px);-webkit-text-stroke-width:1.4px}.ceremony-victory-emblem{width:77px;height:48px;top:-47px}.ceremony-header .ceremony-kicker{margin-top:21px;font-size:9px;line-height:1.15}.ceremony-header>.br-scene-logo{width:49px!important;left:10px;top:4px}.ceremony-score{font-size:11px;padding:2px}}
@media(prefers-reduced-motion:reduce){.ceremony-victory-emblem{animation:none!important}}
.static-motion .ceremony-victory-emblem{animation:none!important}
