@charset "UTF-8";
:root {
  --scratch-blue-dark: #03164f;
  --scratch-blue: #0733ae;
  --scratch-blue-light: #1685ff;
  --scratch-yellow: #ffd51f;
  --scratch-pink: #ff3f87;
  --scratch-white: #ffffff;
  --scratch-shadow: #001344;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--scratch-white);
  background: var(--scratch-blue-dark);
  font-family: "Baloo 2", sans-serif;
}

button,
a {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 50;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 12px clamp(24px, 5vw, 82px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(1, 18, 73, 0.96);
  box-shadow: 0 14px 35px rgba(0, 10, 48, 0.28);
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: 142px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 40px);
}

.site-nav a {
  position: relative;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--scratch-yellow);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-button,
.hero-action,
.claim-button,
.win-button {
  border: 0;
  border-radius: 17px;
  color: #00164d;
  background: var(--scratch-yellow);
  box-shadow:
    0 7px 0 #d5a900,
    0 14px 28px rgba(0, 0, 0, 0.26);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.header-button {
  flex-shrink: 0;
  padding: 15px 24px;
}

.header-button:hover,
.hero-action:hover,
.claim-button:not(:disabled):hover,
.win-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.scratch-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-bottom: 70px;
  background:
    radial-gradient(
      circle at 78% 24%,
      rgba(0, 197, 255, 0.38),
      transparent 25%
    ),
    linear-gradient(135deg, #052184 0%, #0645ce 49%, #03257f 100%);
}

.background-rays {
  position: absolute;
  top: 25px;
  left: 50%;
  width: 1180px;
  height: 780px;
  pointer-events: none;
  opacity: 0.22;
  background: repeating-conic-gradient(
    from -12deg,
    rgba(255, 255, 255, 0.34) 0deg 5deg,
    transparent 5deg 18deg
  );
  transform: translateX(-14%);
  mask-image: radial-gradient(circle, #000 0%, transparent 67%);
}

.background-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px);
  background-size: 25px 25px;
}

.floating-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  font-family: "Lilita One", sans-serif;
  filter: drop-shadow(0 8px 5px rgba(0, 0, 0, 0.16));
  animation: floating-shape 4s ease-in-out infinite;
}

.floating-shape--star {
  top: 150px;
  left: 13%;
  color: var(--scratch-yellow);
  font-size: 58px;
}

.floating-shape--plus {
  top: 240px;
  left: 5%;
  color: var(--scratch-pink);
  font-size: 72px;
  transform: rotate(-12deg);
  animation-delay: -1s;
}

.floating-shape--circle {
  top: 170px;
  right: 28%;
  width: 50px;
  height: 50px;
  border: 9px solid #21a6ff;
  border-radius: 50%;
  animation-delay: -2s;
}

.floating-shape--cross {
  top: 630px;
  right: 5%;
  color: var(--scratch-pink);
  font-size: 70px;
  transform: rotate(13deg);
}

@keyframes floating-shape {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

.scratch-hero {
  position: relative;
  z-index: 3;
  width: min(1460px, calc(100% - 70px));
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(430px, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  padding: 70px 0 40px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-pill,
.game-heading > span {
  display: inline-flex;
  padding: 11px 20px;
  border-radius: 13px;
  color: #061a54;
  background: var(--scratch-yellow);
  box-shadow:
    0 6px 0 #d1a900,
    0 12px 24px rgba(0, 0, 0, 0.22);
  font-family: "Lilita One", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.hero-copy h1 {
  margin: 28px 0 22px;
  font-family: "Lilita One", sans-serif;
  font-size: clamp(5rem, 8.2vw, 8.6rem);
  line-height: 0.74;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  filter: drop-shadow(0 12px 0 rgba(0, 16, 75, 0.75));
}

.hero-copy h1 span,
.hero-copy h1 strong {
  display: block;
}

.hero-copy h1 strong {
  color: var(--scratch-yellow);
  font-weight: inherit;
}

.hero-copy p {
  max-width: 540px;
  margin: 0;
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  line-height: 1.42;
  font-weight: 700;
}

.hero-action {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  padding: 15px 24px;
  text-transform: uppercase;
}

.hero-character {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.character-rays {
  position: absolute;
  width: 610px;
  height: 610px;
  border-radius: 50%;
  opacity: 0.32;
  background: repeating-conic-gradient(
    rgba(255, 255, 255, 0.45) 0deg 8deg,
    transparent 8deg 21deg
  );
  mask-image: radial-gradient(circle, #000 10%, transparent 68%);
  animation: rotate-rays 38s linear infinite;
}

@keyframes rotate-rays {
  to {
    transform: rotate(360deg);
  }
}

.character-image {
  position: relative;
  z-index: 2;
  width: min(580px, 92%);
  filter:
    drop-shadow(0 20px 3px rgba(0, 22, 78, 0.38))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));
  animation: character-bounce 3s ease-in-out infinite;
}

@keyframes character-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.speech-bubble {
  position: absolute;
  top: 55px;
  right: 6%;
  z-index: 5;
  padding: 18px 24px;
  border: 5px solid #fff;
  border-radius: 18px;
  color: #0a2a86;
  background: #fff;
  box-shadow: 0 10px 0 rgba(0, 15, 70, 0.42);
  font-family: "Lilita One", sans-serif;
  font-size: 1.55rem;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 35%;
  border-width: 20px 14px 0;
  border-style: solid;
  border-color: #fff transparent transparent;
}

.speech-bubble strong {
  display: block;
  color: var(--scratch-pink);
}

.byr-coin {
  position: absolute;
  right: 3%;
  bottom: 80px;
  z-index: 6;
  width: 155px;
  height: 155px;
  display: grid;
  place-items: center;
  border: 11px double #ffed7b;
  border-radius: 50%;
  color: #9b5f00;
  background:
    radial-gradient(circle at 34% 27%, #fff7a6, transparent 15%),
    linear-gradient(145deg, #ffe86b, #efa800 66%, #9e5f00);
  box-shadow:
    inset 0 0 0 5px #d88d00,
    0 14px 0 #8e5400,
    0 25px 34px rgba(0, 0, 0, 0.34);
  font-family: "Lilita One", sans-serif;
  font-size: 2.2rem;
  transform: rotate(8deg);
}

.scratch-game {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 50px));
  margin: 25px auto 0;
}

.game-heading {
  max-width: 730px;
  margin: 0 auto 35px;
  text-align: center;
}

.game-heading h2 {
  margin: 26px 0 8px;
  font-family: "Lilita One", sans-serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 8px 0 rgba(0, 18, 78, 0.55);
}

.game-heading p {
  margin: 0;
  color: #d5e5ff;
  font-size: 1.1rem;
  font-weight: 700;
}

.scratch-ticket {
  position: relative;
  padding: 30px 52px 25px;
  border: 5px solid #d7e7ff;
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.72), transparent 21%),
    repeating-linear-gradient(
      135deg,
      rgba(23, 94, 181, 0.08) 0 2px,
      transparent 2px 8px
    ),
    #a8cbf7;
  box-shadow:
    0 10px 0 #28599a,
    0 25px 44px rgba(0, 8, 55, 0.48);
  transform: rotate(0.7deg);
}

.ticket-cut {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 90px;
  border: 5px solid #d7e7ff;
  border-radius: 50%;
  background: #0733ae;
  transform: translateY(-50%);
}

.ticket-cut--left {
  left: -26px;
}

.ticket-cut--right {
  right: -26px;
}

.ticket-header {
  min-height: 67px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: #083b96;
  font-family: "Lilita One", sans-serif;
  text-transform: uppercase;
}

.ticket-header > div:first-child span,
.ticket-header > div:first-child strong {
  display: block;
}

.ticket-header > div:first-child span {
  font-size: 1.3rem;
}

.ticket-header > div:first-child strong {
  font-size: 1.65rem;
}

.ticket-header img {
  width: 100px;
  filter: drop-shadow(0 5px 2px rgba(0, 30, 90, 0.22));
}

.ticket-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 1.7rem;
}

.ticket-header__right span {
  font-size: 3rem;
  transform: rotate(15deg);
}

.scratch-area {
  position: relative;
  height: 390px;
  overflow: hidden;
  border: 8px solid #416c9f;
  border-radius: 35px;
  background: #fff;
  box-shadow:
    inset 0 0 0 4px #173e73,
    0 10px 20px rgba(0, 37, 92, 0.28);
  isolation: isolate;
}

.prize-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: #062966;
  text-align: center;
  background:
    radial-gradient(circle at 50% 33%, #fff0a0 0, transparent 29%),
    repeating-conic-gradient(
      from -10deg at 50% 50%,
      rgba(18, 103, 213, 0.08) 0deg 8deg,
      transparent 8deg 22deg
    ),
    #f8fbff;
}

.prize-kicker {
  color: #0e55b5;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.prize-icon {
  margin: 12px 0 3px;
  font-size: 6rem;
  line-height: 1;
}

.prize-content h3 {
  margin: 0;
  font-family: "Lilita One", sans-serif;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.prize-content p {
  margin: 10px 0 0;
  color: #0c5cc2;
  font-family: "Lilita One", sans-serif;
  font-size: 1.55rem;
}

#scratchCanvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  cursor: none;
  touch-action: none;
}

.scratch-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 18px;
  pointer-events: none;
  color: #31435c;
  transform: translate(-50%, -50%);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.scratch-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.94);
}

.hint-coin,
.coin-cursor {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #815000;
  background:
    radial-gradient(circle at 35% 28%, #fff8a1, transparent 18%),
    linear-gradient(145deg, #ffe567, #eba506);
  box-shadow:
    inset 0 0 0 4px #bd7900,
    0 6px 0 #875200,
    0 12px 17px rgba(0, 0, 0, 0.24);
  font-family: "Lilita One", sans-serif;
}

.hint-coin {
  width: 65px;
  height: 65px;
}

.scratch-hint strong,
.scratch-hint span {
  display: block;
}

.scratch-hint strong {
  font-family: "Lilita One", sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.scratch-hint span {
  font-weight: 800;
}

.coin-cursor {
  position: absolute;
  z-index: 8;
  width: 54px;
  height: 54px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-14deg);
  transition: opacity 100ms ease;
}

.coin-cursor.is-visible {
  opacity: 1;
}

.ticket-stars {
  overflow: hidden;
  margin-top: 16px;
  color: #346bb1;
  font-size: 1.4rem;
  letter-spacing: 12px;
  white-space: nowrap;
}

.scratch-progress {
  width: min(850px, 90%);
  margin: 32px auto 0;
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-weight: 800;
}

.progress-track {
  height: 15px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(0, 18, 70, 0.72);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #4bdf8f,
    var(--scratch-yellow),
    #ff8e24
  );
  box-shadow: 0 0 20px rgba(255, 213, 31, 0.54);
  transition: width 100ms linear;
}

.claim-button {
  width: min(470px, 90%);
  min-height: 62px;
  display: block;
  margin: 26px auto 0;
  font-family: "Lilita One", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.claim-button:disabled {
  color: rgba(0, 22, 77, 0.62);
  background: #adad70;
  box-shadow: 0 7px 0 #777748;
  cursor: not-allowed;
  filter: saturate(0.4);
}

.game-status {
  min-height: 26px;
  margin: 18px 0 0;
  color: #dceaff;
  font-weight: 700;
  text-align: center;
}

.test-reset-button:not([hidden]) {
  display: block;
  margin: 12px auto 0;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #9fc1f3;
  background: rgba(0, 23, 78, 0.52);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.scratch-ticket.is-revealed {
  animation: winning-ticket 620ms ease;
}

@keyframes winning-ticket {
  0% {
    transform: rotate(0.7deg) scale(1);
  }

  35% {
    transform: rotate(-1.3deg) scale(1.035);
  }

  70% {
    transform: rotate(1.2deg) scale(0.99);
  }

  100% {
    transform: rotate(0.7deg) scale(1);
  }
}

.games-strip {
  position: relative;
  z-index: 4;
  width: min(1120px, calc(100% - 50px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 70px auto 0;
  padding: 13px;
  border: 2px solid rgba(99, 172, 255, 0.64);
  border-radius: 27px;
  background: rgba(0, 23, 82, 0.78);
  box-shadow: 0 20px 35px rgba(0, 10, 47, 0.28);
}

.game-option {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 2px solid transparent;
  border-radius: 20px;
  color: #dceaff;
  text-decoration: none;
}

.game-option.is-active {
  border-color: var(--scratch-yellow);
  color: var(--scratch-yellow);
  background: rgba(0, 19, 70, 0.7);
}

.game-option > span {
  font-size: 2.4rem;
}

.game-option strong,
.game-option small {
  display: block;
}

.game-option strong {
  font-size: 1.05rem;
}

.game-option small {
  color: #a9c4ec;
}

.back-to-games {
  display: block;
  margin: 32px auto 0;
  color: #b7d0f4;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.win-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 10, 48, 0.82);
  backdrop-filter: blur(10px);
  transition: opacity 250ms ease;
}

.win-overlay.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.win-card {
  position: relative;
  z-index: 2;
  width: min(470px, 100%);
  padding: 38px;
  border: 5px solid #fff;
  border-radius: 34px;
  color: #072a72;
  background:
    repeating-conic-gradient(
      rgba(43, 126, 235, 0.08) 0deg 8deg,
      transparent 8deg 22deg
    ),
    #fff;
  box-shadow:
    0 12px 0 #0a5ccb,
    0 30px 70px rgba(0, 0, 0, 0.43);
  text-align: center;
  animation: win-card-pop 480ms ease both;
}

@keyframes win-card-pop {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(-4deg);
  }

  70% {
    transform: scale(1.06) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.win-close {
  position: absolute;
  top: 14px;
  right: 17px;
  border: 0;
  color: #1b4f9a;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}

.win-kicker {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: #09296c;
  background: var(--scratch-yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.win-icon {
  margin: 20px 0 10px;
  font-size: 6.5rem;
}

.win-card h2 {
  margin: 0;
  font-family: "Lilita One", sans-serif;
  font-size: 3.2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.win-card p {
  margin: 12px 0 25px;
  color: #1761bb;
  font-size: 1.25rem;
  font-weight: 900;
}

.win-code {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #072a72;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  text-align: center;
}
.win-code[hidden] {
  display: none;
}
.win-code > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #8fc0ff;
  text-transform: uppercase;
}
.win-code-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 10px 0 9px;
}
.win-code-row strong {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  border-radius: 12px;
  background: #02163f;
  border: 2px dashed rgba(255, 211, 30, 0.55);
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: #ffd94a;
  overflow-x: auto;
  user-select: all;
}
.win-code-copy {
  flex-shrink: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--scratch-yellow, #ffd51f);
  color: #072a72;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #d5a900;
  transition: transform 0.15s, box-shadow 0.15s;
}
.win-code-copy:hover {
  transform: translateY(-2px);
}
.win-code-copy:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #d5a900;
}
.win-code-copy.copied {
  background: #36d98b;
  box-shadow: 0 4px 0 #1c8a44;
  color: #06251a;
}
.win-code small {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #bcd8ff;
}

.win-button {
  display: inline-flex;
  padding: 14px 24px;
  text-transform: uppercase;
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -30px;
  width: 12px;
  height: 22px;
  border-radius: 3px;
  animation: confetti-fall var(--duration) linear forwards;
}

@keyframes confetti-fall {
  to {
    transform:
      translate3d(var(--drift), 110vh, 0)
      rotate(var(--rotation));
  }
}

@media (max-width: 1050px) {
  .site-nav {
    display: none;
  }

  .scratch-hero {
    grid-template-columns: 1fr;
    padding-top: 65px;
    text-align: center;
  }

  .hero-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-character {
    min-height: 500px;
  }

  .character-image {
    width: min(560px, 82%);
  }

  .hero-copy h1 {
    font-size: clamp(5rem, 14vw, 8rem);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
    padding: 10px 18px;
  }

  .brand img {
    width: 112px;
  }

  .header-button {
    padding: 12px 15px;
    font-size: 0.78rem;
  }

  .scratch-hero {
    width: calc(100% - 30px);
    min-height: auto;
    padding: 55px 0 20px;
  }

  .hero-copy h1 {
    font-size: clamp(4.2rem, 21vw, 6.6rem);
  }

  .hero-character {
    min-height: 390px;
  }

  .speech-bubble {
    top: 25px;
    right: 2%;
    padding: 13px 17px;
    font-size: 1.1rem;
  }

  .byr-coin {
    right: 0;
    bottom: 40px;
    width: 105px;
    height: 105px;
    border-width: 8px;
    font-size: 1.5rem;
  }

  .scratch-game {
    width: calc(100% - 25px);
  }

  .scratch-ticket {
    padding: 18px 20px;
    border-width: 4px;
    border-radius: 20px;
  }

  .ticket-header {
    grid-template-columns: 1fr auto;
  }

  .ticket-header img {
    display: none;
  }

  .ticket-header__right {
    font-size: 1.1rem;
  }

  .ticket-header > div:first-child span {
    font-size: 0.9rem;
  }

  .ticket-header > div:first-child strong {
    font-size: 1.15rem;
  }

  .scratch-area {
    height: 310px;
    border-width: 5px;
    border-radius: 24px;
  }

  .ticket-stars {
    font-size: 1rem;
    letter-spacing: 6px;
  }

  .games-strip {
    width: calc(100% - 25px);
    grid-template-columns: 1fr 1fr;
  }

  .game-option {
    min-height: 76px;
  }
}

@media (max-width: 480px) {
  .floating-shape {
    opacity: 0.5;
  }

  .hero-action {
    display: none;
  }

  .character-image {
    width: 100%;
  }

  .scratch-hint {
    gap: 11px;
  }

  .hint-coin {
    width: 52px;
    height: 52px;
    font-size: 0.8rem;
  }

  .scratch-hint strong {
    font-size: 1.25rem;
  }

  .scratch-hint span {
    font-size: 0.82rem;
  }

  .games-strip {
    grid-template-columns: 1fr;
  }

  .win-card {
    padding: 34px 20px;
  }
}
/* =========================================================
   FASE 4.1 — EFECTOS VISUALES PREMIUM
   ========================================================= */

.scratch-particles {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
}

.scratch-dust {
  position: absolute;
  width: var(--dust-size);
  height: var(--dust-size);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #8f969d);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
  animation: scratch-dust-fly 620ms ease-out forwards;
}

@keyframes scratch-dust-fly {
  0% {
    opacity: 0.95;
    transform:
      translate(-50%, -50%)
      scale(1)
      rotate(0deg);
  }

  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--dust-x)),
        calc(-50% + var(--dust-y))
      )
      scale(0.15)
      rotate(var(--dust-rotation));
  }
}

.prize-shine {
  position: absolute;
  top: -30%;
  left: -70%;
  z-index: 3;
  width: 40%;
  height: 160%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  filter: blur(2px);
  transform: rotate(15deg);
}

.prize-shine.is-active {
  opacity: 1;
  animation: prize-shine-pass 1.1s ease forwards;
}

@keyframes prize-shine-pass {
  0% {
    left: -70%;
    opacity: 0;
  }

  20% {
    opacity: 0.9;
  }

  100% {
    left: 135%;
    opacity: 0;
  }
}

.prize-content.is-winning {
  animation: prize-content-pop 720ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes prize-content-pop {
  0% {
    opacity: 0;
    transform: scale(0.68) rotate(-4deg);
  }

  55% {
    opacity: 1;
    transform: scale(1.08) rotate(1deg);
  }

  78% {
    transform: scale(0.97) rotate(-0.4deg);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.scratch-ticket.is-celebrating {
  animation: ticket-celebration 680ms ease;
}

@keyframes ticket-celebration {
  0% {
    transform: rotate(0.7deg) scale(1);
  }

  18% {
    transform: rotate(-1.2deg) scale(1.018);
  }

  36% {
    transform: rotate(1.2deg) scale(1.03);
  }

  54% {
    transform: rotate(-0.6deg) scale(1.018);
  }

  75% {
    transform: rotate(0.3deg) scale(1.01);
  }

  100% {
    transform: rotate(0.7deg) scale(1);
  }
}

.scratch-area.is-glowing {
  animation: scratch-area-glow 1.6s ease-in-out infinite alternate;
}

@keyframes scratch-area-glow {
  from {
    box-shadow:
      inset 0 0 0 4px #173e73,
      0 10px 20px rgba(0, 37, 92, 0.28),
      0 0 0 rgba(255, 213, 31, 0);
  }

  to {
    box-shadow:
      inset 0 0 0 4px #173e73,
      0 10px 20px rgba(0, 37, 92, 0.28),
      0 0 34px rgba(255, 213, 31, 0.65);
  }
}

.coin-cursor.is-scratching {
  animation: coin-scratch-motion 180ms linear infinite alternate;
}

@keyframes coin-scratch-motion {
  from {
    transform:
      translate(-50%, -50%)
      rotate(-18deg)
      scale(1);
  }

  to {
    transform:
      translate(-50%, -50%)
      rotate(-8deg)
      scale(1.06);
  }
}

.character-image.is-celebrating {
  animation: character-win-jump 760ms cubic-bezier(0.2, 1.3, 0.35, 1);
}

@keyframes character-win-jump {
  0% {
    transform: translateY(0) rotate(-1deg) scale(1);
  }

  35% {
    transform: translateY(-42px) rotate(4deg) scale(1.06);
  }

  65% {
    transform: translateY(6px) rotate(-2deg) scale(0.98);
  }

  100% {
    transform: translateY(0) rotate(-1deg) scale(1);
  }
}