@font-face {
  font-family: 'uRegular';
  src: url(https://wavecdn.b-cdn.net/fonts/UnitPro-Regular.woff2) format('woff2'),
    url(https://wavecdn.b-cdn.net/fonts/UnitPro-Regular.woff) format('woff'),
    url(https://wavecdn.b-cdn.net/fonts/UnitPro-Regular.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'uMedi';
  src: url(https://wavecdn.b-cdn.net/fonts/UnitPro-Medium.woff2) format('woff2'),
    url(https://wavecdn.b-cdn.net/fonts/UnitPro-Medium.woff) format('woff'),
    url(https://wavecdn.b-cdn.net/fonts/UnitPro-Medium.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --reborn-green: #9adebe;
  --reborn-green-dark: #85d4ad;
  --reborn-green-deep: #5bb88d;
  --reborn-green-forest: #3d9468;
  --reborn-green-shadow: #2a7d58;
  --reborn-green-lime: #8ee85c;
  --reborn-green-neon: #c5f235;
  --reborn-green-bright: #52c47a;
  --reborn-gold: #c9a85c;
  --reborn-gold-light: #d4bc7a;
  --reborn-gold-deep: #a68b3a;
  --reborn-gold-shine: #e8d4a0;
  --reborn-green-light: #b8e8d0;
  --reborn-green-bg: #d6f2e5;
  --reborn-green-panel: #b8e8d0;
  --reborn-teal: #003f46;
  --reborn-heading: #222b47;
  --reborn-text: #222b47;
  --reborn-white: #ffffff;
  --reborn-gray--light: #f9f9fa;
  --promo-hero-green-bright: #5ba533;
  --promo-hero-green-mid: #4a9429;
  --promo-hero-green-deep: #3a7520;
  --promo-hero-green-rich: #2a5517;
  --promo-hero-green-shadow: #1e3d11;
  --promo-gold-light: #fcf6e4;
  --promo-gold-mid: #f5e8bc;
  --promo-gold-warm: #edd992;
  --promo-gold-deep: #dfc862;
  --promo-panel-green-base: #e6f4d7;
  --promo-panel-green-light: #f7fbf2;
  --promo-panel-green-mid: #eef8e4;
  --promo-panel-green-soft: #e6f4d7;
  --promo-panel-green: #d4edb8;
  --promo-panel-green-warm: #c8e8a8;
  --promo-panel-green-deep: #b8de98;
  --font: 'uRegular', Helvetica, Arial, sans-serif;
  --radius-btn: 4px;
  --radius-card: 20px;
  --reborn-cta: #ed4911;
  --reborn-scratch-green: #ed4910;
  --gizzmo-cta: #ed4911;
  --gizzmo-cta-hover: #d03f0c;
  --reborn-cta-hover: #d03f0c;
  --scratch-spot-size: 7.8125rem; /* 125px */
  --game-card-width: 28.125rem; /* 450px */
  --reborn-header-teal: #014045;
  --gizzmo-cdn: https://gizzmo.si/assets/gizzmo;
  --reborn-header-height: 64px;
}

@media (min-width: 768px) {
  :root {
    --reborn-header-height: 62px;
  }
}

@media (max-width: 449px) {
  :root {
    --scratch-spot-size: 6rem;
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  padding: 16px;
  font-family: var(--font);
  color: var(--reborn-text);
  background: var(--reborn-gray--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.is-scratching {
  overflow: hidden;
  touch-action: none;
}

body.has-reborn-header {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

body.has-reborn-header .page {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
  background: var(--reborn-gray--light);
  -webkit-overflow-scrolling: touch;
}

.page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--reborn-gray--light);
  background-image: url('images/bg-scratch-card-new.webp');
  background-repeat: no-repeat;
  background-position: 38% 30%;
  background-size: cover;
}

.site-topbar {
  flex-shrink: 0;
  width: 100%;
  background: #0b1123;
}

.site-topbar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  height: 62px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 5px 24px 0;
}

.site-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #ffffff;
  opacity: 0.7;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.15s ease-in-out;
}

.site-topbar__link:hover,
.site-topbar__link:focus-visible {
  opacity: 1;
  color: #ffffff;
}

.site-topbar__link--back {
  justify-self: start;
}

.site-topbar__link--phone {
  justify-self: end;
}

.site-topbar__icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.site-topbar__link-text {
  white-space: nowrap;
}

.site-topbar__logo {
  justify-self: center;
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.site-topbar__logo img {
  display: block;
  width: 168px;
  height: auto;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .site-topbar__inner {
    padding: 5px 16px 0;
    gap: 14px;
  }

  .site-topbar__link {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .site-topbar__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    height: 64px;
    padding: 0 14px;
  }

  .site-topbar__link-text {
    display: none;
  }

  .site-topbar__logo img {
    width: 154px;
  }
}


@media (max-width: 767px) {
  :root {
    --game-card-mobile-gap: 12px;
  }

  body.has-reborn-header .page {
    align-items: stretch;
    justify-content: center;
    flex: 1;
    min-height: 0;
    height: calc(100dvh - var(--reborn-header-height));
    max-height: calc(100dvh - var(--reborn-header-height));
    padding:
      var(--game-card-mobile-gap)
      12px
      max(var(--game-card-mobile-gap), env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: transparent;
    overflow-y: hidden;
  }

  .page__bg {
    position: fixed;
    top: var(--reborn-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('images/bg-scratch-card-new.jpg');
    background-position: 40% 10%;
    background-size: cover;
  }

  body.has-reborn-header {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .game-card {
    flex: 1 1 auto;
    align-self: stretch;
    min-height: auto !important;
    max-height: 620px;
    height: auto;
  }

  .game-card__hero {
    padding: 24px 20px 0;
  }

  .game-card__play {
    margin-top: 1.5rem;
    padding: 0 16px 1.25rem;
  }
}

.game-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--game-card-width);
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius-card);
  box-shadow:
    0 8px 24px rgba(0, 63, 70, 0.16),
    0 20px 48px rgba(0, 0, 0, 0.14),
    0 32px 64px rgba(0, 63, 70, 0.12);
}

.game-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

.game-card__bg--red {
  background: linear-gradient(
    180deg,
    #d5420f 0%,
    #ffc41d 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 46%, 0 62%);
}

.game-card__bg--green {
  background-color: #feffe0;
  background-image: linear-gradient(
    180deg,
    #feffe0 0%,
    #fdffa4 100%
  );
  clip-path: polygon(0 58%, 100% 42%, 100% 100%, 0 100%);
}

.game-card__bg--red::after,
.game-card__bg--green::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 88px 88px;
}

.game-card__bg--red::after {
  opacity: 0.36;
  mix-blend-mode: overlay;
  clip-path: polygon(0 0, 100% 0, 100% 46%, 0 62%);
}

.game-card__bg--green::after {
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-repeat: repeat;
  clip-path: polygon(0 58%, 100% 42%, 100% 100%, 0 100%);
}

.game-card__hero {
  position: relative;
  z-index: 2;
  padding: 36px 24px 0;
}

.game-card__title {
  margin: 0;
  font-family: 'uMedi', var(--font);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--reborn-white);
  text-align: center;
}

.game-card__play {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4.25rem;
  padding: 0 20px 2rem;
  touch-action: manipulation;
}

.scratch-board {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: calc(3 * var(--scratch-spot-size) + 2 * 1.125rem);
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.scratch-board__hint {
  margin: -1.75rem 0 0.75rem;
  font-family: 'uMedi', var(--font);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(1, 26, 23, 0.4);
}

.scratch-board__spots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 4vw, 18px);
  padding: 4px 0;
  contain: layout style;
}

.scratch-spot {
  flex: 0 0 var(--scratch-spot-size);
  width: var(--scratch-spot-size);
  contain: layout style paint;
}

.scratch-spot__area {
  position: relative;
  width: var(--scratch-spot-size);
  height: var(--scratch-spot-size);
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #fff8eb;
  border: 3px solid #fff6e0;
  box-sizing: border-box;
  touch-action: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.35s ease;
}

.scratch-spot__prize {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: var(--reborn-scratch-green);
  pointer-events: none;
}

.scratch-spot__brush {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: 'uMedi', var(--font);
  font-size: clamp(0.5625rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--reborn-white);
  background: none;
  border-radius: 0;
  box-shadow: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.scratch-spot--win .scratch-spot__brush {
  font-family: 'uMedi', var(--font);
  font-size: clamp(0.9375rem, 6vw, 1.25rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.scratch-spot--emoji .scratch-spot__brush {
  text-transform: none;
  letter-spacing: 0;
}

.scratch-spot__reveal-emoji {
  font-size: clamp(1.5rem, 7vw, 3.25rem);
  line-height: 1;
}

.scratch-spot__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  pointer-events: auto;
  cursor: grab;
  transition: opacity 0.35s ease;
  will-change: opacity;
}

.scratch-spot__canvas.is-fading,
.scratch-spot.is-revealed .scratch-spot__canvas {
  pointer-events: none;
  opacity: 0;
}

.scratch-spot.is-revealed .scratch-spot__area {
  border-color: #fff6e0;
}

.scratch-spot__label {
  display: none;
}

.scratch-board.is-complete .scratch-spot__canvas {
  pointer-events: none;
}

.game-card__subcopy {
  margin: 12px 0 0;
  padding: 0 8px;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--reborn-white);
}

.game-card__footer {
  position: relative;
  z-index: 2;
  padding: 0 20px 24px;
  margin-top: auto;
}

.game-card__legal {
  margin: 0;
  font-size: 0.625rem;
  line-height: 1.45;
  color: var(--reborn-white);
}

.game__title {
  margin: 0 0 20px;
  font-family: 'uMedi', var(--font);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--reborn-heading);
  text-align: center;
}

.game__subtitle {
  margin-bottom: 22px;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--reborn-text);
}

.btn {
  display: block;
  width: 100%;
  max-width: 328px;
  margin: 0 auto;
  padding: 18px 32px;
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'uMedi', var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn--primary {
  color: var(--reborn-white);
  background: var(--reborn-cta);
}

.btn--primary:hover:not(:disabled) {
  background: var(--reborn-cta-hover);
}

.btn--primary:active:not(:disabled) {
  opacity: 0.92;
}

.btn--primary__gizzmo {
  color: var(--reborn-white);
  background: var(--gizzmo-cta);
}

.btn--primary__gizzmo:hover:not(:disabled) {
  background: var(--gizzmo-cta-hover);
}

.btn--primary__gizzmo:active:not(:disabled) {
  opacity: 0.92;
}

.win-popup__cta {
  color: var(--reborn-white);
  background: var(--gizzmo-cta);
}

.win-popup__cta:hover {
  background: var(--gizzmo-cta-hover);
}

.win-popup__cta:active {
  opacity: 0.92;
}


body.has-win-popup {
  overflow: hidden;
}

.win-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.win-popup[hidden] {
  display: none;
}

.win-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(55, 60, 75, 0.55);
  backdrop-filter: blur(4px);
}

.win-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 750px;
  padding: 36px 24px;
  border-radius: 16px;
  background: var(--reborn-white);
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 63, 70, 0.2);
}

.win-popup__header {
  margin: 0 0 24px;
}

.win-popup__header .game__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: 'uMedi', var(--font);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--reborn-heading);
}

.win-popup__header #winPopupSuccessTitle {
  font: inherit;
  color: inherit;
}

.win-popup__header .game__title .game__subtitle {
  margin: 0;
  font-family: var(--font);
}

.win-popup__prize-box {
  width: 100%;
  max-width: 23.75rem;
  margin: 0 auto 1.5rem;
  padding: 1.5rem 1.25rem 2rem;
  border: 1px solid #e0e3e8;
  border-radius: 0.625rem;
  background: #f0f1f3;
  box-shadow: inset 0 1px 2px rgba(55, 60, 75, 0.06);
}

.win-popup__prize-value {
  margin: 0 0 6px;
  font-family: 'uMedi', var(--font);
  font-size: clamp(2.5rem, 12vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--reborn-heading);
}

.win-popup__prize-detail {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-family: 'uMedi', var(--font);
  font-size: clamp(1rem, 4.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--reborn-heading);
}

.win-popup__disclaimer {
  margin: 1.5rem auto 0;
  padding: 0 2px;
  max-width: 36rem;
  font-family: var(--font);
  font-size: 0.75rem;
  line-height: 1.4;
  color: #8a8f9a;
  text-align: center;
}

.win-popup__disclaimer a {
  color: inherit;
  text-decoration: none;
}

.win-popup__disclaimer a:hover,
.win-popup__disclaimer a:focus {
  text-decoration: underline;
}

.win-popup__disclaimer[hidden] {
  display: none;
}

.win-popup__disclaimer sup {
  font-size: 0.65em;
  line-height: 0;
  vertical-align: super;
}

@media (min-width: 768px) {
  .win-popup__disclaimer {
    margin-top: 2.5rem;
    padding: 0;
  }

  .win-popup__header .game__title,
  .win-popup__header #winPopupSuccessTitle {
    font-size: 32px;
    line-height: 1.3;
  }

  .game-card__title {
    font-size: 32px;
    line-height: 1.3;
  }

  .game__title {
    font-size: 32px;
    line-height: 1.3;
  }
}

@media (max-width: 449px) {
  .scratch-spot--win .scratch-spot__brush {
    font-size: 1rem;
  }
}
