* {
  box-sizing: border-box;
}

:root {
  --deuna-purple: #0D84FF;
  --deuna-purple-dark: #095FCB;
  --deuna-purple-mid: #34A2FF;
  --deuna-teal: #FFFFFF;
  --deuna-teal-dark: #DFF0FF;
  --deuna-yellow: #B8DAFF;
  --deuna-white: #FFFFFF;
  --deuna-soft: #F5FAFF;
}

html,
body {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

html {
  font-size: 10px;
  line-height: 1.5;
}

@media screen and (max-width: 400px), (max-height: 400px) {
  html {
    font-size: calc(5px + 1vmin);
  }
}
body {
  color: #000;
  display: flex;
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  text-align: center;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h3 {
  font-weight: 700;
}

h1 {
  font-size: 3.6rem;
  line-height: 4rem;
}

h3 {
  font-size: 2.4rem;
  line-height: 3.2rem;
}

img {
  display: block;
}

p {
  font-size: 2rem;
  line-height: 2.8rem;
}

.background,
.background__stars {
  height: 100%;
  width: 100%;
}

/* GCash theme: vivid blue base with soft white and pale blue glow */
.background {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.09) 22rem, transparent 36rem),
    radial-gradient(circle at 85% 78%, rgba(184, 218, 255, 0.22) 0, rgba(184, 218, 255, 0.08) 20rem, transparent 35rem),
    linear-gradient(160deg, var(--deuna-purple-mid) 0%, var(--deuna-purple) 48%, var(--deuna-purple-dark) 100%);
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding-top: 7rem;
  position: absolute;
  z-index: 0;
}

.background__left,
.background__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.background__left__bottom,
.background__right__bottom {
  position: relative;
}

.background__right__top {
  margin-top: 50%;
}

.background__cloud {
  display: block;
  opacity: 0.26;
  filter: hue-rotate(190deg) saturate(1.5) brightness(1.18);
}

.background__cloud-left-1 {
  height: 8.4rem;
  width: 9.3rem;
}

.background__cloud-left-2 {
  height: 11.7rem;
  width: 14.6rem;
}

.background__cloud-left-3,
.background__cloud-left-4 {
  bottom: 0;
  position: absolute;
}

.background__cloud-left-3 {
  height: 14.5rem;
  width: 16.9rem;
}

.background__cloud-left-4 {
  height: 14.2rem;
  width: 13.1rem;
}

.background__cloud-right-1 {
  height: 11.5rem;
  width: 11.4rem;
}

.background__cloud-right-2,
.background__cloud-right-3 {
  bottom: 0;
  right: 0;
  position: absolute;
}

.background__cloud-right-2 {
  height: 14.5rem;
  width: 20.5rem;
}

.background__cloud-right-3 {
  height: 8.7rem;
  width: 17.3rem;
}

.background__stars {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.background__star {
  position: absolute;
  filter: hue-rotate(180deg) saturate(1.6) brightness(1.5);
}

.background__star-1 {
  height: 2.4rem;
  left: 2rem;
  top: 32%;
  width: 2.4rem;
}

.background__star-2 {
  bottom: 32%;
  height: 3.2rem;
  left: 4rem;
  width: 3.2rem;
}

.background__star-3 {
  height: 3.2rem;
  opacity: 0.75;
  right: 3rem;
  top: 8%;
  width: 3.2rem;
}

.background__star-4 {
  height: 1.6rem;
  opacity: 0.3;
  right: 6rem;
  top: 50%;
  width: 1.6rem;
}

.background__star-5 {
  height: 2.4rem;
  right: -1rem;
  top: 63%;
  width: 2.4rem;
}

.background__star-6 {
  bottom: 10%;
  height: 2.6rem;
  right: 40%;
  width: 2.6rem;
}

.modal {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 1.2rem;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.modal__window {
  background: rgba(255, 255, 255, 0.98);
  border: 0.2rem solid rgba(13, 132, 255, 0.18);
  border-radius: 1.8rem;
  box-shadow: 0 2.4rem 6rem rgba(9, 53, 114, 0.24);
  max-width: 38.4rem;
  padding: 2.2rem;
}

.modal__brand {
  height: auto;
  margin: 0 auto 1.4rem;
  max-width: 23rem;
  width: 78%;
}

.modal__window__title {
  color: var(--deuna-purple);
  margin-bottom: 1.2rem;
}

.modal__window__text {
  color: rgba(23, 74, 153, 0.76);
  font-size: 2rem;
  font-weight: 700;
  line-height: 2.8rem;
  margin-bottom: 3.2rem;
}

/* deuna! teal CTA button */
.modal__window__button {
  background: linear-gradient(135deg, #0D84FF, #095FCB);
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2.4rem rgba(13, 132, 255, 0.22);
  color: #FFFFFF;
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 3.2rem;
  padding: 0.8rem;
  text-transform: uppercase;
}

.game {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 2.8rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

@media screen and (orientation: landscape) and (max-height: 550px) {
  .game {
    flex-direction: row;
  }
}
.game__header {
  max-width: 55rem;
  text-transform: uppercase;
}

.game__brand {
  height: auto;
  margin: 0 auto 1.8rem;
  max-width: 31rem;
  width: min(72vw, 31rem);
}

.game__header__h1 {
  color: #fff;
}

/* deuna! teal accent */
.game__header__h1 b {
  color: var(--deuna-teal);
}

.game__header__h3 {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.game__header__text {
  color: #fff;
  text-transform: initial;
}

.game__main {
  max-height: 35.7rem;
  max-width: 35.7rem;
  position: relative;
}

.game__main__image {
  filter: drop-shadow(0 2.2rem 3.2rem rgba(18, 7, 27, 0.38));
  transform: rotate(0);
  transition: transform 1s;
  max-height: 100%;
  max-width: 100%;
}

.game__main__image-rotate-1 {
  transform: rotate(8deg);
}

.game__main__image-rotate-2 {
  transform: rotate(-8deg);
}

.game__main__image-hand {
  bottom: 5.5rem;
  height: 8rem;
  position: absolute;
  right: 7rem;
  width: 8rem;
}

.game__main__image-hand-animation-pulse {
  animation: handPulse 2s ease-in-out infinite;
}

@keyframes handPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
.game__main__bonus-container {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

/* bonus values in pale GCash blue */
.game__main__bonus-value {
  animation: fadeOut 3s forwards;
  color: var(--deuna-yellow);
  text-shadow: 0 0.2rem 0.8rem rgba(0, 43, 61, 0.30);
  font-size: 2.4rem;
  font-weight: 700;
  opacity: 1;
  position: absolute;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.game__footer {
  bottom: 2.8rem;
  left: 2.8rem;
  position: absolute;
  right: 2.8rem;
}

/* progress bar: purple track, teal fill */
.game__progress {
  align-items: center;
  background-color: rgba(0, 43, 61, 0.40);
  border-radius: 1.6rem;
  color: #fff;
  display: flex;
  height: 5.6rem;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.game__progress__bar {
  bottom: 0;
  background: linear-gradient(90deg, #6DB6FF, #0D84FF);
  left: 0;
  position: absolute;
  top: 0;
  transition: width 1s linear;
  width: 0;
  z-index: 0;
}

.game__progress__text {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 2.8rem;
  position: relative;
  z-index: 1;
}

/* final screen: Banco Guayaquil magenta with soft white/pink glow */
.game-final-screen {
  align-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.08) 20rem, transparent 35rem),
    radial-gradient(circle at 50% 90%, rgba(184, 218, 255, 0.18) 0, rgba(184, 218, 255, 0.06) 20rem, transparent 36rem),
    linear-gradient(165deg, var(--deuna-purple-mid), var(--deuna-purple-dark));
  bottom: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  left: 0;
  padding: 2.8rem;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 2;
  overflow: hidden;
}

@media screen and (orientation: landscape) and (max-height: 550px) {
  .game-final-screen {
    flex-direction: row;
  }
}
.game-final-screen .game__header {
  max-width: 35.7rem;
}

.game-final-screen .game__header__h3 {
  color: rgba(255, 255, 255, 0.76);
}

.game-final-screen .game__main__image {
  transform: scale(1.45);
}

/* final CTA button: deuna! teal */
.game__button {
  background: linear-gradient(135deg, #0D84FF, #095FCB);
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2.4rem rgba(13, 132, 255, 0.22);
  color: #FFFFFF;
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 3.2rem;
  padding: 1.2rem;
  text-transform: uppercase;
  width: 100%;
  margin: auto;
  max-width: 42rem;
}

.color-yellow {
  color: var(--deuna-yellow);
}

.blur {
  filter: blur(8px);
}

.hidden {
  display: none;
}

.visible {
  animation: makeVisible 1s ease forwards;
  display: flex;
  opacity: 0;
}

@keyframes makeVisible {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
html[dir=rtl] .background__cloud {
  transform: scaleX(-1);
}
