:root {
  --bg: #a8cf8e;
  --bg-deep: #8fbd72;
  --card: #ffffff;
  --text: #14161b;
  --muted: #6d7685;
  --green: #2ff06c;
  --shadow: 0 28px 80px rgba(71, 113, 49, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 68%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 44%, #b2d79b);
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(96px, env(safe-area-inset-bottom));
}

.card {
  width: min(520px, 100%);
  min-height: 404px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 72px 30px 84px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: auto 50% 92px auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(47, 240, 108, 0.28);
  opacity: 0;
  transform: translateX(50%) scale(0.4);
}

.card.is-success::before {
  animation: success-pop 900ms ease-out forwards;
}

.dice {
  position: relative;
  width: 178px;
  height: 154px;
  display: grid;
  place-items: center;
  transform: translateY(6px);
}

.dice-lottie {
  position: relative;
  z-index: 2;
  width: 178px;
  height: 154px;
}

.dice-lottie svg {
  display: block;
  width: 100%;
  height: 100%;
}

.status {
  display: grid;
  grid-template-columns: 20px minmax(0, auto);
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 4vw, 24px);
  line-height: 1.25;
  text-align: left;
}

.status-marker {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(47, 240, 108, 0.14);
}

.status strong {
  max-width: 420px;
}

.status.is-muted .status-marker {
  background: var(--muted);
  box-shadow: 0 0 0 5px rgba(109, 118, 133, 0.12);
}

.card.is-success .status-marker {
  animation: marker-pulse 1100ms ease-out infinite;
}

@keyframes marker-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(47, 240, 108, 0.14);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(47, 240, 108, 0);
  }
}

@keyframes success-pop {
  0% {
    opacity: 0.7;
    transform: translateX(50%) scale(0.4);
  }

  100% {
    opacity: 0;
    transform: translateX(50%) scale(24);
  }
}

@media (max-width: 420px) {
  .card {
    min-height: 370px;
    padding: 56px 22px 68px;
  }

  .status {
    font-size: 19px;
  }
}
