@font-face {
  font-family: "Jumper Lilita One";
  src: url("/assets/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Jumper Baloo 2";
  src: url("/assets/fonts/Baloo2-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --jumper-stage-scale: 1;
  --jumper-purple: #6d25a8;
  --jumper-purple-dark: #47116f;
  --jumper-gold: #e6ad3d;
  --jumper-cream: #fff5cf;
}

html,
body.jumper-page {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body.jumper-page {
  position: fixed;
  inset: 0;
  background: #37aee8;
  color: #3e2254;
  font-family: "Jumper Baloo 2", "Trebuchet MS", sans-serif;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.jumper-page::before,
body.jumper-page::after {
  content: "";
  position: fixed;
  inset: -18px;
  pointer-events: none;
}

body.jumper-page::before {
  z-index: -2;
  background: url("/assets/images/jumper/cenario.webp") center / cover no-repeat;
  filter: blur(7px) saturate(.96);
  transform: scale(1.045);
}

body.jumper-page.game-phase-selection::before {
  background-image: url("/assets/images/jumper/boi-pulador-menu.webp");
}

body.jumper-page::after {
  z-index: -1;
  background: rgba(26, 57, 70, .2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.jumper-shell {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.jumper-card {
  position: absolute;
  top: 50%;
  left: 50%;
  isolation: isolate;
  width: 1280px;
  height: 720px;
  flex: 0 0 1280px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--jumper-stage-scale));
  transform-origin: center;
  background: #7dd8ff;
  box-shadow: 0 18px 48px rgba(17, 40, 47, .32);
}

#jumper-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 1280px;
  height: 720px;
  background: #7dd8ff;
}

.jumper-stage-wrap {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

.jumper-topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 94px;
  padding: 10px 18px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
  border-bottom: 4px solid #dca13a;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, rgba(255, 253, 239, .98), rgba(255, 231, 177, .96));
  box-shadow: 0 5px 0 rgba(153, 78, 18, .5), 0 12px 24px rgba(63, 36, 18, .2), inset 0 2px 0 #fff;
}

.jumper-hud,
.jumper-controls {
  display: flex;
  align-items: center;
}

.jumper-hud {
  min-width: 0;
  gap: 10px;
}

.jumper-hud-item,
.jumper-objective-pill,
.jumper-hearts {
  min-width: 0;
  height: 62px;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 3px solid #e2b65a;
  border-radius: 20px;
  background: rgba(255, 255, 255, .89);
  box-shadow: 0 4px 0 rgba(173, 96, 24, .34), inset 0 1px 0 #fff;
  color: #552b6b;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.jumper-hud-item strong {
  color: var(--jumper-purple);
  font-family: "Jumper Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-size: 32px;
  font-weight: 400;
}

.jumper-score-pill img,
.jumper-objective-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.jumper-objective-pill {
  color: #34703d;
  border-color: #a4c975;
  background: linear-gradient(180deg, #f7ffef, #e5f5ce);
}

.jumper-objective-icon {
  background: url("/assets/images/jumper/linha-chegada.png") center / 155% auto no-repeat;
}

.jumper-hearts {
  min-width: 150px;
  gap: 10px;
}

.jumper-hearts.is-low {
  animation: jumper-pulse .55s ease-in-out 2;
}

.jumper-life {
  position: relative;
  width: 31px;
  height: 28px;
  flex: 0 0 31px;
  margin: 3px;
  transform: rotate(-45deg) scale(.78);
  border: 3px solid #cc315d;
  border-radius: 5px 4px 5px 4px;
  background: #fff4f6;
}

.jumper-life::before,
.jumper-life::after {
  content: "";
  position: absolute;
  width: 31px;
  height: 28px;
  border: inherit;
  border-radius: 50%;
  background: inherit;
}

.jumper-life::before {
  top: -16px;
  left: -3px;
  border-bottom-color: transparent;
}

.jumper-life::after {
  top: -3px;
  left: 14px;
  border-left-color: transparent;
}

.jumper-life.is-filled,
.jumper-life.is-filled::before,
.jumper-life.is-filled::after {
  background: linear-gradient(135deg, #ff6f9f, #e62f68);
}

.jumper-life.is-empty {
  opacity: .42;
}

.jumper-controls {
  gap: 6px;
  pointer-events: auto;
}

.jumper-icon-btn {
  width: 88px;
  height: 88px;
  padding: 2px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 5px 4px rgba(61, 31, 17, .28));
  transition: transform .14s ease;
  touch-action: manipulation;
}

.jumper-icon-btn img {
  display: block;
  width: 92%;
  height: 92%;
  object-fit: contain;
  pointer-events: none;
}

.jumper-exit-btn img {
  width: 100%;
  height: 100%;
}

.jumper-icon-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.jumper-icon-btn:active {
  transform: scale(.92);
}

.jumper-jump-button {
  position: absolute;
  z-index: 9;
  right: 30px;
  bottom: 30px;
  width: 210px;
  min-height: 92px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 4px solid #ffdd68;
  border-radius: 30px;
  background: linear-gradient(180deg, #ff9c36, #ef661d);
  box-shadow: 0 9px 0 #b94d13, 0 16px 28px rgba(67, 27, 8, .28), inset 0 2px 0 rgba(255, 255, 255, .55);
  color: #fff;
  font-family: "Jumper Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-size: 31px;
  text-shadow: 0 3px 0 rgba(132, 52, 8, .5);
  touch-action: none;
}

.jumper-jump-button span {
  font-size: 38px;
}

.jumper-jump-button:active {
  transform: translateY(7px);
  box-shadow: 0 2px 0 #b94d13, 0 8px 16px rgba(67, 27, 8, .24);
}

.jumper-tip {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 34px;
  min-height: 58px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 255, 255, .88);
  border-radius: 22px;
  background: rgba(63, 27, 79, .8);
  box-shadow: 0 8px 20px rgba(35, 16, 41, .25);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.jumper-tip.is-hidden {
  opacity: 0;
  transform: translate(-50%, 12px);
}

.jumper-overlay {
  position: absolute;
  z-index: 30;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(36, 19, 39, .56);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.jumper-overlay[hidden] {
  display: none !important;
}

.jumper-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  overflow: hidden;
  border: 5px solid var(--jumper-gold);
  border-radius: 38px;
  background: radial-gradient(circle at 18% 10%, rgba(255, 255, 255, .94), transparent 22%), linear-gradient(180deg, #fffdf2, #fff0c2);
  box-shadow: 0 8px 0 #aa5b1c, 0 24px 56px rgba(21, 8, 28, .42), inset 0 2px 0 #fff;
  text-align: center;
}

.jumper-dialog h2 {
  margin: 0;
  color: #6825a5;
  font-family: "Jumper Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 0 #fff;
}

.jumper-dialog > p {
  margin: 0;
  color: #674d71;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
}

.jumper-pause-card {
  width: 680px;
  min-height: 430px;
  padding: 30px 42px;
  gap: 13px;
}

.jumper-pause-visual {
  width: 132px;
  height: 112px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 7px 6px rgba(75, 33, 12, .2));
}

.jumper-pause-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jumper-pause-actions,
.jumper-result-actions {
  display: grid;
  gap: 16px;
}

.jumper-pause-actions {
  width: 540px;
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jumper-pause-actions > *,
.jumper-result-actions > * {
  min-width: 0;
  min-height: 88px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 24px;
  font-family: "Jumper Baloo 2", "Trebuchet MS", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.jumper-pause-actions img,
.jumper-result-actions img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}

.jumper-pause-actions .secondary-btn,
.jumper-result-actions .secondary-btn {
  color: #5b386c;
  border: 3px solid #dda841;
  background: linear-gradient(180deg, #fffdf2, #ffe9b3);
  box-shadow: 0 6px 0 #ad641d;
}

.jumper-pause-actions .primary-btn,
.jumper-result-actions .primary-btn {
  color: #fff;
  border: 3px solid #b66ce4;
  background: linear-gradient(180deg, #974fd0, #6924a5);
  box-shadow: 0 6px 0 #481171;
}

.jumper-pause-actions > *:active,
.jumper-result-actions > *:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(80, 38, 16, .6);
}

.jumper-phase-overlay {
  z-index: 35;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 249, 226, .1) 54%, rgba(58, 25, 18, .12)), url("/assets/images/jumper/boi-pulador-menu.webp") center / cover no-repeat;
  backdrop-filter: none;
}

.jumper-phase-scene {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 26px 34px 34px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  text-align: center;
}

.jumper-phase-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(234, 249, 255, .18), rgba(255, 250, 232, .06) 48%, rgba(66, 39, 20, .12));
}

.jumper-phase-back {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 24px;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(0 7px 6px rgba(80, 39, 10, .3));
  transition: transform .15s ease;
  touch-action: manipulation;
}

.jumper-phase-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.jumper-phase-back:active {
  transform: scale(.94);
}

.jumper-phase-heading {
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: center;
  width: 760px;
  padding: 0 20px;
  text-shadow: 0 3px 0 rgba(255, 255, 255, .95), 0 7px 18px rgba(63, 25, 93, .2);
}

.jumper-phase-heading h2 {
  margin: 0;
  color: #7227b8;
  font-family: "Jumper Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-size: 66px;
  font-weight: 400;
  line-height: .98;
}

.jumper-phase-heading p {
  margin: 6px 0 0;
  color: #4d236e;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.05;
}

.jumper-phase-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 1180px;
  margin: 0 auto;
  padding: 20px;
  border: 4px solid rgba(238, 173, 52, .92);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 250, 229, .91), rgba(255, 238, 191, .89));
  box-shadow: 0 6px 0 rgba(169, 93, 18, .46), 0 20px 40px rgba(72, 40, 21, .25), inset 0 2px 0 rgba(255, 255, 255, .94);
  backdrop-filter: blur(3px);
}

.jumper-phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.jumper-phase-btn {
  position: relative;
  min-width: 0;
  min-height: 242px;
  padding: 22px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 8px;
  border: 4px solid #e7ad43;
  border-radius: 28px;
  background: linear-gradient(180deg, #fffdf3, #fff0c7);
  color: #3e2254;
  box-shadow: 0 7px 0 #bd6b20, 0 14px 24px rgba(92, 50, 24, .18), inset 0 2px 0 #fff;
  font-family: "Jumper Baloo 2", "Trebuchet MS", sans-serif;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  touch-action: manipulation;
}

.jumper-phase-btn:not(:disabled):hover,
.jumper-phase-btn:not(:disabled):focus-visible {
  transform: translateY(-4px);
  border-color: #8c3ac8;
  box-shadow: 0 9px 0 #6a259f, 0 18px 28px rgba(88, 34, 119, .24), inset 0 2px 0 #fff;
  outline: 4px solid rgba(255, 255, 255, .9);
  outline-offset: 2px;
}

.jumper-phase-btn:not(:disabled):active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #8e4a16, inset 0 2px 6px rgba(117, 62, 23, .13);
}

.jumper-phase-number {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 4px solid #f6c957;
  border-radius: 50%;
  background: linear-gradient(180deg, #9d50d6, #6825a5);
  box-shadow: 0 5px 0 #481377, inset 0 2px 0 rgba(255, 255, 255, .34);
  color: #fff;
  font-family: "Jumper Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-size: 40px;
  font-weight: 400;
}

.jumper-phase-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

.jumper-phase-btn strong {
  color: #4a2266;
  font-size: 28px;
  line-height: 1.05;
}

.jumper-phase-btn small {
  color: #775d62;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.08;
}

.jumper-phase-btn:disabled {
  cursor: not-allowed;
  color: #756c72;
  border-color: #c7aa75;
  background: linear-gradient(180deg, rgba(247, 240, 218, .96), rgba(226, 211, 174, .96));
  box-shadow: 0 5px 0 #9a7546, 0 12px 20px rgba(67, 52, 36, .16);
}

.jumper-phase-btn:disabled .jumper-phase-number {
  border-color: #cbb47e;
  background: linear-gradient(180deg, #a69aa9, #746a79);
  box-shadow: 0 5px 0 #554d59;
}

.jumper-phase-btn:disabled strong,
.jumper-phase-btn:disabled small {
  color: #726970;
}

.jumper-phase-lock {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #67566d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.jumper-phase-lock-icon {
  width: 62px;
  height: 44px;
  margin: -9px -6px -9px -10px;
  flex: 0 0 62px;
  background: url("/jogos/boi-pulador/assets/ui/ui_lock_screen.png") center / contain no-repeat;
}

.jumper-phase-lock-icon.is-premium {
  background-image: url("/assets/images/premium/premium-icon.png");
}

.jumper-result-card {
  width: 840px;
  min-height: 600px;
  padding: 22px 34px 28px;
  grid-template-rows: auto auto auto auto auto auto;
  gap: 8px;
}

.jumper-result-card::before,
.jumper-result-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  pointer-events: none;
  opacity: .32;
  background: url("/assets/images/jumper/estrela.png") center / contain no-repeat;
}

.jumper-result-card::before {
  top: -24px;
  left: -20px;
  transform: rotate(-18deg);
}

.jumper-result-card::after {
  right: -20px;
  bottom: -24px;
  transform: rotate(18deg);
}

.jumper-result-visual {
  justify-self: center;
  width: 132px;
  height: 112px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 8px 7px rgba(64, 31, 16, .2));
}

#jumper-result-overlay.is-success .jumper-result-visual {
  background-image: url("/assets/images/jumper/boi-pulador.png");
}

#jumper-result-overlay.is-failure .jumper-result-visual {
  background-image: url("/assets/images/jumper/boi-hit.png");
}

.jumper-overlay-kicker {
  color: #5d1e99;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#jumper-result-overlay.is-failure .jumper-overlay-kicker,
#jumper-result-overlay.is-failure h2 {
  color: #b94c32;
}

.jumper-result-stats {
  width: 600px;
  margin: 7px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jumper-result-stats div {
  min-width: 0;
  padding: 13px 8px;
  border: 3px solid #e6bd63;
  border-radius: 21px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 5px 0 rgba(180, 107, 30, .3), inset 0 1px 0 #fff;
}

.jumper-result-stats strong,
.jumper-result-stats span {
  display: block;
}

.jumper-result-stats strong {
  color: var(--jumper-purple);
  font-family: "Jumper Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.jumper-result-stats span {
  margin-top: 3px;
  color: #765c87;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.jumper-result-actions {
  width: 760px;
  margin-top: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jumper-result-actions:has(#jumper-next-btn[hidden]) {
  width: 540px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#jumper-next-btn img {
  transform: scale(1.75);
}

.jumper-card.is-phase-selection #jumper-canvas,
.jumper-card.is-phase-selection .jumper-stage-wrap,
.jumper-card.is-phase-selection .jumper-topbar {
  visibility: hidden;
  pointer-events: none;
}

@keyframes jumper-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@media (max-aspect-ratio: 16 / 9) {
  body.jumper-page::before {
    filter: blur(5px) saturate(.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
