/* Native shiny portrait and the approved level-up V2's finite JRPG vocabulary. */
.shiny-celebration-live {
  position: fixed;
  inset: 0;
  z-index: 13;
  pointer-events: none;
  overflow: hidden;
}
/* Keep the central capture readable if the trainer gains a level concurrently.
   Its normal lifetime still runs; member celebrations beside the HUD remain. */
#game-shell:has(.shiny-celebration-live:not([hidden]))
  .level-up-live
  .trainer-celebration {
  visibility: hidden;
}
.shiny-celebration-live [hidden] {
  display: none !important;
}
.shiny-celebration-anchor {
  position: absolute;
  width: 440px;
  height: 320px;
  transform-origin: top left;
}
.shiny-celebration-stage {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  color: #ffdf88;
  text-align: center;
  pointer-events: none;
}
.shiny-celebration-stage::before {
  content: "";
  position: absolute;
  inset: -20px -36px;
  z-index: -2;
  background: radial-gradient(
    ellipse,
    #071322e0 0%,
    #071322b3 42%,
    #07132240 62%,
    #07132200 72%
  );
}
.shiny-celebration-content {
  position: relative;
  padding: 24px 20px 16px;
}
.shiny-celebration-headline {
  margin: 0 0 10px;
  color: #fff0b9;
  font: 400 46px/1 var(--ui-font-display);
  white-space: nowrap;
  text-shadow:
    0 3px #253132,
    1px 0 #071323,
    -1px 0 #071323;
}
.shiny-celebration-headline > span {
  display: inline-block;
}
.shiny-celebration-trainer {
  margin: 0 auto 8px;
  max-width: 390px;
  color: #e2dbbe;
  font: 600 16px/1.3 var(--ui-font-body);
  overflow-wrap: anywhere;
  text-shadow: 0 2px #091420;
}
.shiny-celebration-portrait {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
  image-rendering: pixelated;
}
.shiny-celebration-name {
  display: block;
  font: 400 38px/1 var(--ui-font-display);
  overflow-wrap: anywhere;
  text-shadow:
    0 3px #4c4232,
    0 5px #122129;
}
.shiny-celebration-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 8px;
  margin-top: 12px;
}
.shiny-celebration-flourish > i {
  width: 32px;
  height: 1px;
  background: #ffe3a05c;
}
.shiny-celebration-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.shiny-celebration-star {
  display: block;
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff4cf;
  clip-path: polygon(
    42% 0,
    58% 0,
    58% 25%,
    75% 25%,
    75% 42%,
    100% 42%,
    100% 58%,
    75% 58%,
    75% 75%,
    58% 75%,
    58% 100%,
    42% 100%,
    42% 75%,
    25% 75%,
    25% 58%,
    0 58%,
    0 42%,
    25% 42%,
    25% 25%,
    42% 25%
  );
}
.shiny-celebration-star-cool {
  background: #a9f4e0;
}
.shiny-celebration-mote {
  clip-path: none;
  background: #ebd89d;
}
.shiny-celebration-flourish > .shiny-celebration-star {
  position: static;
  width: 8px;
  height: 8px;
  background: #fff1b9;
}
.shiny-celebration-aura {
  position: absolute;
  inset: 5px 15px 15px;
  z-index: -1;
  background: radial-gradient(ellipse, #c3e1b34a, #97d4c225 35%, #58969c00 70%);
  opacity: 0;
  pointer-events: none;
}
.shiny-celebration-beam {
  position: absolute;
  z-index: 2;
  top: 48px;
  left: 7px;
  right: 7px;
  height: 3px;
  background: linear-gradient(
    90deg,
    #ffecae00,
    #fae7a8 24%,
    #fff8de 50%,
    #fae7a8 76%,
    #ffecae00
  );
  box-shadow:
    0 -3px #ffe6aa12,
    0 3px #ffe6aa12;
  opacity: 0;
  pointer-events: none;
}
.shiny-celebration-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
