* {
  box-sizing: border-box;
}

html {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #f7fbff;
  background: radial-gradient(circle at top left, rgba(71, 107, 255, 0.28), transparent 36%), radial-gradient(circle at bottom right, rgba(255, 176, 46, 0.2), transparent 30%), #071126;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.game-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.game-card {
  width: min(100%, 520px);
  padding: clamp(28px, 6vw, 52px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(12, 28, 57, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.brand-badge,
.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #221500;
  background: linear-gradient(135deg, #ffd45a, #ff9f1c);
  border-radius: 999px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 7vw, 3.45rem);
  line-height: 1;
}

.game-subtitle,
.completion-copy,
.contact-note {
  color: #9fb1c9;
  line-height: 1.65;
}

.dice-stage {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 36px 0 24px;
}

.die {
  width: clamp(92px, 24vw, 126px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: clamp(2.4rem, 10vw, 4.5rem);
  font-weight: 800;
  color: #15100a;
  background: linear-gradient(145deg, #ffffff, #dbe6f2);
  border: 8px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.die.is-rolling {
  animation: shake 0.45s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(-8deg) translateY(-4px);
  }
  75% {
    transform: rotate(8deg) translateY(4px);
  }
}
.result-text {
  min-height: 24px;
  margin-bottom: 22px;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  padding: 17px 22px;
  color: #241700;
  background: linear-gradient(135deg, #ffd45a, #ff9f1c);
  box-shadow: 0 14px 30px rgba(255, 167, 42, 0.26);
}

.secondary-button {
  margin-top: 12px;
  padding: 13px 20px;
  color: #9fb1c9;
  background: rgba(255, 255, 255, 0.06);
}

.primary-button:hover,
.secondary-button:hover,
.contact-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.completion-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  background: rgba(2, 7, 18, 0.78);
  backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.completion-overlay.is-visible {
  visibility: visible;
  opacity: 1;
}

.completion-modal {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background: linear-gradient(180deg, #12264b 0%, #09162e 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.completion-overlay.is-visible .completion-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.55rem;
}

.success-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #102011;
  background: linear-gradient(135deg, #79f29c, #25d366);
  box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.1);
  font-size: 2rem;
  font-weight: 900;
}

.completion-modal {
  text-align: center;
}
.completion-modal h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.85rem, 6vw, 2.65rem);
}

.reward-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  padding: 16px 18px;
  text-align: left;
  border: 1px solid rgba(255, 212, 90, 0.22);
  border-radius: 16px;
  background: rgba(255, 212, 90, 0.08);
}
.reward-summary span {
  color: #9fb1c9;
  font-size: 0.9rem;
}
.reward-summary strong {
  color: #ffd45a;
  text-align: right;
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.contact-button {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 15px;
  color: #f7fbff;
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.contact-button--live:hover {
  border-color: rgba(139, 92, 246, 0.75);
  background: rgba(139, 92, 246, 0.13);
}
.contact-button--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.75);
  background: rgba(37, 211, 102, 0.13);
}
.contact-button--telegram:hover {
  border-color: rgba(34, 158, 217, 0.75);
  background: rgba(34, 158, 217, 0.13);
}

.contact-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 1.35rem;
}

.contact-content {
  display: grid;
  gap: 4px;
}
.contact-content small {
  color: #9fb1c9;
}

.contact-arrow {
  color: #9fb1c9;
  font-size: 1.65rem;
}

.contact-note {
  margin: 18px 0 0;
  font-size: 0.82rem;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .game-shell {
    padding: 14px;
  }
  .game-card,
  .completion-modal {
    border-radius: 22px;
  }
  .completion-overlay {
    align-items: end;
    padding: 0;
  }
  .completion-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }
  .reward-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .reward-summary strong {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}