/* Result: same composition as the reference, data in DOM. */
#ui .sheet.result-r6 {
  padding: 124px 0 20px;
  overflow: visible;
  background: rgba(17, 24, 55, 0.22);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
#ui .result .card.r6 {
  position: absolute;
  left: 50%;
  top: calc(50% + 52px);
  translate: -50% -50%;
  display: grid;
  align-items: stretch;
  grid-template-rows: 108px 174px 70px 190px 98px 40px;
  gap: 8px;
  width: 890px;
  height: 780px;
  min-width: 890px;
  max-width: none;
  max-height: none;
  padding: 24px 40px;
  border: 6px solid #201249;
  border-radius: 55px;
  outline: none;
  color: #fff;
  background:
    linear-gradient(
      132deg,
      transparent 20%,
      #7970ff12 20%,
      #7970ff12 33%,
      transparent 33%,
      transparent 70%,
      #7770ff0d 70%
    ),
    linear-gradient(160deg, #5541e4, #3d32bb 55%, #3029a1);
  box-shadow:
    inset 0 0 0 6px #947cff,
    inset 0 -10px 0 #2d218e,
    0 12px 0 #17113a,
    0 25px 40px #17113a66;
  transform: scale(var(--result-scale, 0.7));
  transform-origin: center;
  font-family: var(--pop);
  text-align: center;
}
#ui .result .card.r6.bump,
#ui .result .card.r6.bump2 {
  animation: result-card-hit 0.16s ease-out;
}
@keyframes result-card-hit {
  50% {
    filter: brightness(1.06);
  }
}
#ui .result .card.r6::before,
#ui .result .card.r6::after {
  display: none;
}
#ui .r6 .result-ninja {
  position: absolute;
  width: 370px;
  height: auto;
  left: -72px;
  bottom: calc(100% - 24px);
  pointer-events: none;
  z-index: 2;
}
#ui .r6 .result-header {
  min-width: 0;
  transform: translateY(-12px);
}
#ui .r6 .rib {
  background: none;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
#ui .r6 .rib::before,
#ui .r6 .rib::after {
  display: none;
}
#ui .result .r6 .rib h2 {
  margin: 0;
  font: 400 84px/1.06 var(--pop);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #ffd64b;
  -webkit-text-stroke: 9px #572208;
  paint-order: stroke fill;
  text-shadow:
    0 7px 0 #b25a12,
    0 11px 0 #301246;
  white-space: nowrap;
}
#ui .result .r6 .rib h2 span {
  display: inline-block;
  transform-origin: center 100%;
}
#ui .r6 .lvname {
  margin: 5px 0 0;
  font: 400 29px/1.2 var(--pop);
  color: #d7caff;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: 0 3px 0 #26175f;
}
#ui .r6 .got {
  margin: 0;
  font-size: 20px;
  color: #fff0a7;
}
#ui .r6 .got:empty {
  display: none;
}
#ui .r6 .result-collection {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}
#ui .r6 .result-sparkles {
  position: absolute;
  top: 12px;
  width: 52px;
  height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px #ffdf6070);
  pointer-events: none;
}
#ui .r6 .result-sparkles.left {
  left: calc(50% - 290px);
}
#ui .r6 .result-sparkles.right {
  right: calc(50% - 290px);
  transform: scaleX(-1);
}
#ui .r6 .bigstars {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  gap: 18px;
  margin: 0;
}
#ui .r6 .result-star {
  position: relative;
  display: block;
  width: 140px;
  height: 120px;
}
#ui .r6 .result-star svg,
#ui .r6 .result-star img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  rotate: 0deg;
  translate: none;
  animation: none;
  object-fit: contain;
}
#ui .r6 .result-star svg {
  fill: #4134a7;
  stroke: #8170ef;
  stroke-width: 1.9;
  filter: drop-shadow(2px 0 0 #20134d) drop-shadow(-2px 0 0 #20134d) drop-shadow(0 -2px 0 #20134d)
    drop-shadow(0 4px 0 #20134d);
}
#ui .r6 .result-star img {
  display: none;
}
#ui .r6 .result-star.on svg {
  display: none;
}
#ui .r6 .result-star.on img {
  display: block;
  animation: result-star-in 0.32s backwards;
}
#ui .r6 .result-star:nth-child(2) img {
  animation-delay: 0.15s;
}
#ui .r6 .result-star:nth-child(3) img {
  animation-delay: 0.3s;
}
@keyframes result-star-in {
  from {
    opacity: 0;
    scale: 0.4;
  }
  65% {
    scale: 1.12;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
/* The star HITS: falls from above huge, smashes into the card (thud), bounces twice and settles. The flash bursts on
   impact (::after) and a shine crosses the star right after (::before, clipped to its shape). */
#ui .r6 .result-star.on.pre img {
  opacity: 0;
  animation: none;
}
#ui .r6 .result-star.on.pre.hit img {
  animation: result-star-slam 0.52s cubic-bezier(0.3, 0.8, 0.4, 1) both;
}
@keyframes result-star-slam {
  0% {
    opacity: 0;
    scale: 3.4;
    rotate: -28deg;
  }
  16% {
    opacity: 1;
  }
  36% {
    scale: 0.78;
    rotate: 7deg;
  }
  52% {
    scale: 1.2;
    rotate: -4deg;
  }
  68% {
    scale: 0.94;
    rotate: 2deg;
  }
  84% {
    scale: 1.05;
    rotate: 0deg;
  }
  100% {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
  }
}
#ui .r6 .result-star::after,
#ui .r6 .result-star::before {
  content: '';
  position: absolute;
  pointer-events: none;
  opacity: 0;
}
#ui .r6 .result-star::after {
  inset: -70%;
  z-index: 3;
  background: radial-gradient(
    circle,
    #fff 0,
    #fffbe6f0 14%,
    #ffd96a99 32%,
    #ffb12a33 50%,
    transparent 68%
  );
  mix-blend-mode: screen;
}
#ui .r6 .result-star.on.hit::after {
  animation: result-star-flash 0.5s ease-out 0.18s both;
}
@keyframes result-star-flash {
  0% {
    opacity: 0;
    scale: 0.2;
  }
  22% {
    opacity: 1;
    scale: 0.9;
  }
  100% {
    opacity: 0;
    scale: 1.5;
  }
}
#ui .r6 .result-star::before {
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, transparent 38%, #ffffffcc 50%, transparent 62%) no-repeat;
  background-size: 320% 100%;
  background-position: 160% 0;
  -webkit-mask: var(--star-img) center / contain no-repeat;
  mask: var(--star-img) center / contain no-repeat;
}
#ui .r6 .result-star.on.hit::before {
  animation: result-star-shine 0.7s ease-in-out 0.62s both;
}
@keyframes result-star-shine {
  0% {
    opacity: 1;
    background-position: 160% 0;
  }
  100% {
    opacity: 1;
    background-position: -60% 0;
  }
}
/* the card takes the blow of each star (light) and of the stamp (strong): a short jolt that returns */
#ui .result .card.r6.bump {
  animation: result-card-thud 0.28s ease-out;
}
#ui .result .card.r6.bump2 {
  animation: result-card-thud2 0.36s ease-out;
}
@keyframes result-card-thud {
  0% {
    translate: -50% -50%;
  }
  18% {
    translate: calc(-50% + 4px) calc(-50% + 7px);
  }
  40% {
    translate: calc(-50% - 3px) calc(-50% - 2px);
  }
  65% {
    translate: calc(-50% + 2px) calc(-50% + 1px);
  }
  100% {
    translate: -50% -50%;
  }
}
@keyframes result-card-thud2 {
  0% {
    translate: -50% -50%;
    filter: brightness(1.12);
  }
  16% {
    translate: calc(-50% - 7px) calc(-50% + 11px);
  }
  38% {
    translate: calc(-50% + 6px) calc(-50% - 4px);
  }
  62% {
    translate: calc(-50% - 3px) calc(-50% + 2px);
  }
  100% {
    translate: -50% -50%;
    filter: none;
  }
}
#ui .r6 .result-collection p {
  margin: 0;
  color: #cdbfff;
  font: 400 20px/1 var(--pop);
  text-transform: uppercase;
  text-shadow: 0 2px 0 #2b1c75;
}
#ui .r6 #rCount {
  font: 400 34px/1 var(--pop);
  text-shadow: 0 3px 0 #25175f;
}
#ui .r6 .result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 66px 0 92px;
  border-radius: 35px;
  background: #291d78b3;
  box-shadow: inset 0 1px 0 #8c75e855;
}
#ui .r6 .pts {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font: 400 52px/1 var(--pop);
  animation: none;
}
#ui .r6 .pts svg {
  width: 44px;
  height: 44px;
}
#ui .r6 .pts small,
#ui .r6 .grade small {
  position: static;
  color: #b9a7ff;
  font: 400 22px/1 var(--pop);
  text-transform: uppercase;
  letter-spacing: 0;
}
#ui .r6 .best {
  position: absolute;
  top: -16px;
  left: 58px;
  color: #ffe384;
  font: 400 14px/1 var(--pop);
  white-space: nowrap;
}
#ui .r6 .grade {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  width: auto;
  height: 32px;
  min-height: 0;
  margin: 0;
  padding: 0 0 0 86px;
  border: 0;
  border-left: 2px solid #8b73df;
  background: none;
  box-shadow: none;
}
#ui .r6 .grade::before,
#ui .r6 .grade::after {
  display: none;
}
#ui .r6 .grade b {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0;
  border: 4px solid #1761b8;
  border-radius: 50%;
  font: 400 62px/1 var(--pop);
  color: #fff;
  background: linear-gradient(135deg, #80d5ff, #278bed 70%);
  box-shadow:
    inset 0 4px 0 #a5e9ff,
    0 5px 0 #18296f;
  text-shadow: 0 4px 0 #2064ba;
  rotate: -8deg;
  animation: none;
}
#ui .r6 .result-metrics {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-self: stretch;
  min-height: 0;
  gap: 4px;
  margin: 0;
}
#ui .r6 .result-metric {
  display: grid;
  grid-template-columns: 80px 180px 140px 150px 1fr;
  align-items: center;
  padding: 5px 16px 5px 12px;
  border-radius: 27px;
  background: #251a70c9;
  box-shadow: inset 0 1px 0 #8d76ec44;
  text-align: left;
}
#ui .r6 .result-metric > svg {
  width: 46px;
  height: 46px;
  scale: 1.3;
}
#ui .r6 .result-metric dt {
  font: 400 22px/1 var(--pop);
  color: #cbbcff;
  text-transform: uppercase;
}
#ui .r6 .result-metric dd {
  margin: 0;
  font: 400 38px/1 var(--pop);
  color: #fff;
}
#ui .r6 .result-goal {
  color: #b9a7f8;
  font: 400 22px/1 var(--pop);
}
#ui .r6 .result-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #ffbf66;
  font: 400 19px/1.1 var(--pop);
  text-transform: uppercase;
  white-space: nowrap;
}
#ui .r6 .result-status svg {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 4px;
  background: #4dc815;
  box-shadow: 0 3px 0 #177b10;
}
#ui .r6 .ok .result-status {
  color: #a4f276;
}
#ui .r6 .acts {
  display: grid;
  grid-template-columns: 3fr 5fr;
  align-items: stretch;
  gap: 22px;
  margin: 8px 0 0;
}
#ui .result .r6 .acts .btn {
  width: auto;
  min-height: 0;
  height: 88px;
  padding: 0 24px;
  border-radius: 28px;
  font: 400 35px/1 var(--pop);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
#ui .r6 #bNext svg {
  order: 2;
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 5;
  flex-shrink: 0;
}
#ui .r6 #bAgain svg {
  width: 43px;
  height: 43px;
}
#ui .r6 #bNext::after {
  display: none;
}
#ui .r6 #bNext {
  --b-hi: #75ff3b;
  --b-lo: #1bc908;
  --b-ink: #195514;
  --gloss: linear-gradient(#ffffff12, #ffffff00 52%);
  border-color: #172d29;
  box-shadow:
    inset 0 4px 0 #c3ff8e,
    inset 0 0 0 4px #90ff5c,
    inset 0 -8px 0 #19a608,
    0 7px 0 #152444;
}
#ui .r6 #bAgain {
  --b-hi: #a38aff;
  --b-lo: #6240ed;
  --b-ink: #2d186e;
  --gloss: linear-gradient(#ffffff18, #ffffff00 52%);
  box-shadow:
    inset 0 4px 0 #dccbff,
    inset 0 0 0 4px #987bff,
    inset 0 -8px 0 #4931c5,
    0 7px 0 #20124c;
}
#ui .r6 .result-map {
  justify-self: center;
  align-self: center;
  border: 0;
  background: none;
  color: #c3b4ff;
  font: 400 23px/1.2 var(--pop);
  padding: 4px 10px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 6px;
  cursor: pointer;
}
#ui .r6 button:focus-visible {
  outline: 4px solid #fff3a7;
  outline-offset: 5px;
}
#ui .r6 .result-map:hover {
  color: #fff;
}
/* "Ver fases" only appears after the buttons (they come down at 2 s): before, it stood alone and got accidental clicks.
   Hidden (and unclickable) during the wait. */
#ui .r6 .result-map {
  animation: result-map-in 0.25s ease-out 2.35s backwards;
}
@keyframes result-map-in {
  from {
    opacity: 0;
    visibility: hidden;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
}
#ui .r6 .result-star img,
#ui .r6 .result-ninja {
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #ui .r6 .result-star.on img,
  #ui .r6 .result-map,
  #ui .r6 .result-star::before,
  #ui .r6 .result-star::after {
    animation: none;
  }
  #ui .r6 .result-star.on.pre img {
    opacity: 1;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .sheet.result-r6 {
    padding: 44px 0 4px;
  }
  #ui .result .card.r6 {
    left: calc(50% + var(--result-shift, 0px));
    top: calc(50% + 20px);
    height: 342px;
    padding: 12px 28px;
    border-radius: 32px;
    gap: 6px 24px;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 52px 80px 50px 70px 24px;
    grid-template-areas: 'header header' 'collection metrics' 'summary metrics' 'actions actions' 'map map';
  }
  #ui .r6 .result-header {
    grid-area: header;
    transform: translateY(-5px);
  }
  #ui .r6 .result-ninja {
    width: 160px;
    left: 12px;
    bottom: calc(100% - 16px);
  }
  #ui .result .r6 .rib h2 {
    font-size: 38px;
    -webkit-text-stroke-width: 5px;
    text-shadow:
      0 3px #b25a12,
      0 5px #301246;
  }
  #ui .r6 .lvname {
    font-size: 16px;
    margin: 0;
  }
  #ui .r6 .got {
    font-size: 13px;
  }
  #ui .r6 .result-collection {
    grid-area: collection;
  }
  #ui .r6 .bigstars {
    height: 54px;
    gap: 10px;
  }
  #ui .r6 .result-star {
    width: 57px;
    height: 54px;
  }
  #ui .r6 .result-sparkles {
    width: 22px;
    height: 30px;
    top: 3px;
  }
  #ui .r6 .result-sparkles.left {
    left: 4px;
  }
  #ui .r6 .result-sparkles.right {
    right: 4px;
  }
  #ui .r6 .result-collection p {
    font-size: 12px;
  }
  #ui .r6 #rCount {
    font-size: 18px;
  }
  #ui .r6 .result-summary {
    grid-area: summary;
    padding: 0 10px;
    gap: 8px;
  }
  #ui .r6 .pts {
    font-size: 26px;
    gap: 5px;
  }
  #ui .r6 .pts svg {
    width: 25px;
    height: 25px;
  }
  #ui .r6 .pts small,
  #ui .r6 .grade small {
    font-size: 10px;
  }
  #ui .r6 .grade {
    gap: 6px;
    padding: 0;
    border: 0;
  }
  #ui .r6 .grade b {
    width: 38px;
    height: 38px;
    font-size: 30px;
    border-width: 2px;
  }
  #ui .r6 .result-metrics {
    grid-area: metrics;
    gap: 4px;
  }
  #ui .r6 .result-metric {
    grid-template-columns: 32px 86px 66px 92px 1fr;
    padding: 4px 10px;
    border-radius: 16px;
  }
  #ui .r6 .result-metric > svg {
    width: 29px;
    height: 29px;
    scale: 1;
  }
  #ui .r6 .result-metric dt,
  #ui .r6 .result-goal {
    font-size: 17px;
  }
  #ui .r6 .result-metric dd {
    font-size: 25px;
  }
  #ui .r6 .result-status {
    font-size: 14px;
    gap: 5px;
  }
  #ui .r6 .result-status svg {
    width: 20px;
    height: 20px;
    padding: 2px;
  }
  #ui .r6 .acts {
    grid-area: actions;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    margin: 0;
  }
  #ui .result .r6 .acts .btn {
    height: 64px;
    font-size: 25px;
    border-radius: 18px;
    gap: 16px;
  }
  #ui .r6 #bAgain svg,
  #ui .r6 #bNext svg {
    width: 28px;
    height: 28px;
  }
  #ui .r6 .result-map {
    grid-area: map;
    font-size: 16px;
    padding: 2px 10px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  #ui .result .card.r6 {
    width: 520px;
    min-width: 520px;
    height: 756px;
    padding: 22px 24px;
    grid-template-rows: 105px 174px 65px 210px 76px 35px;
    gap: 7px;
    border-radius: 38px;
  }
  #ui .r6 .result-ninja {
    width: 250px;
    left: -25px;
    bottom: calc(100% - 16px);
  }
  #ui .r6 .result-sparkles {
    width: 34px;
    height: 46px;
  }
  #ui .r6 .result-sparkles.left {
    left: -4px;
  }
  #ui .r6 .result-sparkles.right {
    right: -4px;
  }
  #ui .r6 .bigstars {
    gap: 8px;
  }
  #ui .r6 .result-star {
    width: 126px;
  }
  #ui .result .r6 .rib h2 {
    font-size: 45px;
    -webkit-text-stroke-width: 6px;
  }
  #ui .r6 .lvname {
    font-size: 23px;
  }
  #ui .r6 .result-summary {
    padding: 0 16px;
  }
  #ui .r6 .pts {
    font-size: 40px;
    gap: 6px;
  }
  #ui .r6 .pts svg {
    width: 30px;
    height: 30px;
  }
  #ui .r6 .pts small,
  #ui .r6 .grade small {
    font-size: 17px;
  }
  #ui .r6 .grade {
    gap: 10px;
    padding: 0;
    border: 0;
  }
  #ui .r6 .grade b {
    width: 58px;
    height: 58px;
    font-size: 45px;
  }
  #ui .r6 .result-metric {
    grid-template-columns: 36px 85px 70px 102px 1fr;
    padding: 5px 10px;
  }
  #ui .r6 .result-metric > svg {
    width: 31px;
    height: 31px;
    scale: 1;
  }
  #ui .r6 .result-metric dt,
  #ui .r6 .result-goal {
    font-size: 20px;
  }
  #ui .r6 .result-metric dd {
    font-size: 28px;
  }
  #ui .r6 .result-status {
    font-size: 18px;
    white-space: normal;
    text-align: right;
    gap: 5px;
  }
  #ui .r6 .result-status svg {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
  }
  #ui .r6 .acts {
    gap: 14px;
    margin: 2px 0 0;
    grid-template-columns: 2fr 3fr;
  }
  #ui .result .r6 .acts .btn {
    height: 70px;
    padding: 0 12px;
    gap: 10px;
    font-size: 25px;
    border-radius: 20px;
  }
  #ui .r6 #bAgain svg,
  #ui .r6 #bNext svg {
    width: 28px;
    height: 28px;
  }
  #ui .r6 .result-map {
    font-size: 21px;
  }
  #ui .result .r6 #bNext.boss {
    font-size: 22px;
    gap: 5px;
  }
}

/* final screen ("She is free!"): the new outfit row pushes the header past its fixed line; the stars move down so they do not cover the text */
#ui .r6:has(.got:not(:empty)) .result-collection {
  translate: 0 16px;
}
@media (max-height: 540px) and (orientation: landscape) {
  #ui .r6:has(.got:not(:empty)) .result-collection {
    translate: 0 6px;
  }
}
/* End of src/ui/result.css */

/* End of dist-static/assets/result-BfWVmN3f.css */
