/*
 * street2-result: resultado em palco cheio (vitória em 3 tempos: impacto, pausa, carimbo).
 * O impacto e a pausa vêm do jogo (última captura + atraso de onResult); aqui fica o 3º tempo.
 * Pulável: um toque fora dos botões põe .skip e encerra as entradas.
 */
.modal.result-modal {
  padding: 0;
  align-items: stretch;
  backdrop-filter: none;
  background:
    var(--art-street-win-bg2, var(--art-street-win-bg, var(--art-street-plaza-scene))) center/cover
      no-repeat,
    #0b2a5c;
}
html.painted .modal-card.result.result-stage {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  animation: none;
  padding: clamp(10px, 3vh, 30px) clamp(14px, 4vw, 64px);
  overflow: hidden auto;
  text-align: center;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  grid-auto-rows: min-content;
  align-content: center;
  justify-items: center;
  column-gap: 2vw;
  row-gap: 10px;
}
.result-stage > * {
  grid-column: 2;
  position: relative;
  z-index: 2;
}
.result-stage > .result-hero {
  grid-column: 1;
  grid-row: 1 / span 14;
  align-self: center;
  width: 100%;
  height: min(88vh, 760px);
  display: grid;
  place-items: center;
  margin: 0;
}
.result-stage .result-hero {
  min-height: 0;
  overflow: visible;
}
.result-stage .result-hero img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 0 #07142c66);
}
/* Filho absoluto de grid mede pela área da grade, não pelo palco: os enfeites usam fixed (o palco ocupa a tela toda). */
.result-stage > .result-splash {
  position: fixed;
  left: 1vw;
  top: 50%;
  translate: 0 -50%;
  width: 44vw;
  height: auto;
  aspect-ratio: 1;
  z-index: 1;
  background: var(--art-street-hud-starburst) center/contain no-repeat;
}
.result-stage[data-outcome='loss'] > .result-splash,
.result-stage[data-outcome='draw'] > .result-splash {
  opacity: 0.35;
  filter: grayscale(0.6);
}
.result-stage > .big {
  --tilt: -5deg;
  margin: 0;
  transform: rotate(var(--tilt));
  font-family: var(--font-street);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(44px, 8vw, 112px);
  color: #ffd83a !important;
  -webkit-text-stroke: 0.13em var(--street-ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--street-ink);
}
.result-stage > .big.has-art {
  --tilt: 0deg;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.result-stage > .big.has-art img {
  display: block;
  width: min(100%, 640px);
  max-height: 38vh;
  object-fit: contain;
  filter: drop-shadow(0 6px 0 #07142c55);
}
.result-stage .muted,
.result-stage .result-detail,
.result-stage .loss-help {
  color: #fff;
  font-weight: 800;
  text-shadow:
    0 1px 0 var(--street-ink),
    0 0 8px #07142c;
  margin: 0;
}
.result-stage .result-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.result-stage .result-chips ~ .result-detail {
  display: none;
}
.result-stage .result-chip {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  column-gap: 9px;
  min-width: 156px;
  padding: 12px 26px 30px 22px;
  color: #fff;
  background: var(--art-street-hud-chip) center/100% 100% no-repeat;
}
.result-stage .result-chip img,
.result-stage .result-chip .result-clock {
  grid-row: 1 / 3;
  width: 50px;
  height: 54px;
  object-fit: contain;
  display: grid;
  place-items: center;
  color: #ffd83a;
}
.result-stage .result-chip .result-clock svg {
  width: 40px;
  height: 40px;
}
.result-stage .result-chip b {
  font-family: var(--font-street);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  -webkit-text-stroke: 0.16em var(--street-ink);
  paint-order: stroke fill;
}
.result-stage .result-chip small {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.result-stage .quote {
  margin: 2px 0;
  min-width: 260px;
  max-width: 460px;
  padding: 26px 40px 34px 66px;
  color: var(--street-ink) !important;
  background: var(--art-street-hud-bubble) center/100% 100% no-repeat;
  font-family: var(--font-street);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 21px);
  line-height: 1.15;
  text-transform: uppercase;
}
.result-stage > .result-rival {
  position: fixed;
  right: 1vw;
  bottom: calc(96px + 6vh);
  width: clamp(86px, 12vw, 180px);
  z-index: 1;
  filter: drop-shadow(0 4px 0 #07142c66);
}
html.painted .result-stage > .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 0;
  background: none !important;
  border: 0;
  box-shadow: none;
}
html.painted .result-stage > .actions > .btn {
  width: auto;
  min-width: 176px;
  height: 64px;
  min-height: 0;
  margin: 0;
  padding: 0 4px 6px;
  gap: 8px;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  color: #fff !important;
  border-style: solid;
  border-color: transparent;
  border-width: 0 34px;
  border-image: var(--art-street-hud-btn-brush-blue) 0 26% fill / 0 34px stretch;
  font-family: var(--font-street);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  -webkit-text-stroke: 0.2em var(--street-ink);
  paint-order: stroke fill;
  filter: drop-shadow(0 5px 0 #07142c80);
  transition: transform 0.09s ease-out;
}
html.painted .result-stage > .actions > .btn svg {
  width: 26px;
  height: 26px;
  -webkit-text-stroke: 0;
}
html.painted .result-stage > .actions > .btn.primary {
  order: 9;
  min-width: 270px;
  height: 86px;
  font-size: 32px;
  color: var(--street-ink) !important;
  -webkit-text-stroke: 0;
  border-image-source: var(--art-street-hud-btn-brush-yellow);
}
html.painted .result-stage > .actions > .btn:hover {
  transform: translateY(-2px);
}
html.painted .result-stage > .actions > .btn:active {
  transform: translateY(4px);
}

.puck-rain {
  position: fixed !important;
  inset: 0;
  z-index: 1 !important;
  pointer-events: none;
  overflow: hidden;
}
.puck-rain img {
  position: absolute;
  left: var(--x);
  top: -14%;
  width: calc(56px * var(--s));
  animation: puckFall 2.4s var(--d) cubic-bezier(0.35, 0, 0.75, 1) both;
}
@keyframes puckFall {
  to {
    transform: translateY(130vh) rotate(var(--r));
  }
}

/* Tempo 3: carimbo do título, herói, fichas, fala e botões, nessa ordem. */
@keyframes stampIn {
  0% {
    opacity: 0;
    transform: scale(2.3) rotate(-14deg);
  }
  55% {
    opacity: 1;
    transform: scale(0.94) rotate(var(--tilt));
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(var(--tilt));
  }
}
@keyframes heroIn {
  0% {
    opacity: 0;
    transform: translate(-22%, 26%) scale(0.72);
  }
  62% {
    opacity: 1;
    transform: translate(1%, -2%) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes splashIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-20deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  70% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.result-stage:not(.restored) > * {
  animation: popIn 0.3s 0.62s both;
}
.result-stage:not(.restored) > .big {
  animation: stampIn 0.44s 0.04s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.result-stage:not(.restored) > .result-splash {
  animation: splashIn 0.36s 0.1s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
.result-stage:not(.restored) > .result-hero {
  animation: heroIn 0.52s 0.16s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
.result-stage:not(.restored) > .puck-rain {
  animation: none;
}
.result-stage:not(.restored) > .result-chips {
  animation-delay: 0.46s;
}
.result-stage:not(.restored) > .quote {
  animation-delay: 0.6s;
}
.result-stage:not(.restored) > .result-rival {
  animation-delay: 0.78s;
}
.result-stage:not(.restored) > .actions {
  animation-delay: 0.86s;
}
.result-stage.skip,
.result-stage.skip * {
  animation-duration: 0.01s !important;
  animation-delay: 0s !important;
}
.result-stage.skip .puck-rain {
  display: none;
}

@media (orientation: portrait), (max-width: 720px) {
  html.painted .modal-card.result.result-stage {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: 8px;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .result-stage > * {
    grid-column: 1;
  }
  .result-stage > .result-hero {
    grid-row: auto;
    height: 34vh;
  }
  .result-stage > .result-splash {
    left: 50%;
    top: 0;
    translate: -50% 0;
    width: min(84vw, 44vh);
  }
  .result-stage > .result-rival {
    display: none;
  }
  .result-stage .result-chip {
    min-width: 104px;
    padding: 9px 16px 14px 14px;
  }
  .result-stage .result-chip img,
  .result-stage .result-chip .result-clock {
    width: 36px;
    height: 40px;
  }
  .result-stage .result-chip b {
    font-size: 24px;
  }
  html.painted .result-stage > .actions > .btn {
    min-width: 140px;
    height: 56px;
    font-size: 18px;
    border-width: 0 26px;
    border-image-width: 0 26px;
  }
  html.painted .result-stage > .actions > .btn.primary {
    min-width: 100%;
    height: 72px;
    font-size: 26px;
    order: -1;
  }
}
@media (max-height: 440px) and (orientation: landscape) {
  html.painted .modal-card.result.result-stage {
    padding: 6px 14px;
    row-gap: 4px;
  }
  .result-stage > .result-hero {
    display: grid !important;
    height: 92vh;
  }
  .result-stage > .big.has-art img {
    max-height: 34vh;
  }
  .result-stage > .big {
    font-size: 40px;
  }
  .result-stage .quote,
  .result-stage .muted,
  .result-stage > .result-rival {
    display: none;
  }
  .result-stage .result-chip {
    min-width: 112px;
    padding: 7px 16px 16px 12px;
  }
  .result-stage .result-chip img,
  .result-stage .result-chip .result-clock {
    width: 32px;
    height: 36px;
  }
  .result-stage .result-chip b {
    font-size: 22px;
  }
  .result-stage .result-chip small {
    font-size: 9px;
  }
  html.painted .result-stage > .actions > .btn {
    height: 48px;
    font-size: 16px;
    min-width: 120px;
  }
  html.painted .result-stage > .actions > .btn.primary {
    height: 58px;
    font-size: 22px;
    min-width: 190px;
  }
}

/* Estrelas da vitória (regra em winStars): vazias em azul-escuro, cheias em amarelo, entram uma a uma com carimbo. */
.result-stage .result-stars {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 0.8vw, 12px);
}
.result-stage .result-stars svg {
  width: clamp(40px, 6vw, 84px);
  aspect-ratio: 1;
  fill: #1d2f63;
  stroke: var(--street-ink);
  stroke-width: 2.2;
  stroke-linejoin: round;
  paint-order: stroke fill;
  overflow: visible;
  filter: drop-shadow(0 3px 0 #07142c88);
}
.result-stage .result-stars svg.on {
  fill: #ffd23c;
}
.result-stage:not(.restored) > .result-stars {
  animation: none;
}
.result-stage:not(.restored) > .result-stars svg {
  animation: popIn 0.32s calc(0.5s + var(--i) * 0.14s) cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
/* Fora do palco fixo (celular em pé) as fichas enfeite não passam por cima das estrelas. */
@media not ((orientation: landscape) and (min-width:761px) and (min-height:441px)) {
  .result-stage > .result-stars {
    position: relative;
    z-index: 3;
  }
}

/* End of src/street2-result.css */

/* End of assets/street2-result-7Gpwiw08.css */
