:root {
  --ml-yellow: #ffe600;
  --ml-navy: #2d3277;
  --dark-bg: #070e23;
  --gold-light: #fde047;
  --gold-main: #f59e0b;
  --wheel-size: min(85vw, 47vh, 348px);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--dark-bg);
  font-family: var(--font-main);
  color: #fff;
}

/* ============================================================
   Gate 1: Tela de Desbloqueio (Slider Mercado Livre)
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 22px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 230, 0, 0.38), transparent 55%),
    radial-gradient(120% 70% at 50% 110%, rgba(52, 131, 250, 0.14), transparent 55%),
    #ffffff;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gate.revealed {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.gate-brand {
  background: var(--ml-yellow);
  padding: 10px 22px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(255, 230, 0, 0.35);
}

.gate-logo {
  height: 36px;
  width: auto;
  display: block;
}

.gate-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ml-navy);
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.gate-title {
  font-size: clamp(24px, 6.8vw, 32px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 440px;
  color: #111827;
  text-wrap: balance;
}

.gate-sub {
  margin-top: 12px;
  color: #6b7280;
  font-size: clamp(14px, 3.8vw, 15.5px);
  max-width: 380px;
  line-height: 1.45;
}

.slider-wrap {
  margin-top: 44px;
  width: min(420px, 88vw);
}

.slider {
  position: relative;
  height: 64px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  box-shadow: inset 0 2px 5px rgba(16, 16, 20, 0.07), 0 10px 26px rgba(16, 16, 20, 0.07);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.slider-fill {
  position: absolute;
  left: 5px;
  top: 5px;
  height: 54px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe600 0%, #f59e0b 100%);
  opacity: 0.96;
  transition: width 0.24s ease-out;
}

.slider.dragging .slider-fill {
  transition: none;
}

.slider-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.2s;
  padding-left: 34px;
}

.slider.dragging .slider-label,
.slider.done .slider-label {
  opacity: 0;
}

.slider-handle {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe600 0%, #f59e0b 100%);
  display: grid;
  place-items: center;
  cursor: grab;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
  transform: translateX(0);
  transition: transform 0.24s ease-out;
  will-change: transform;
  overflow: hidden;
}

.slider.dragging .slider-handle {
  transition: none;
  cursor: grabbing;
}

.slider-handle svg {
  width: 24px;
  height: 24px;
  display: block;
  position: relative;
  z-index: 2;
}

.slider-handle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.65) 50%, transparent 68%);
  background-size: 220% 100%;
  animation: gateShimmer 2.2s linear infinite;
  pointer-events: none;
}

@keyframes gateShimmer {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

.slider-micro {
  margin-top: 20px;
  color: #9ca3af;
  font-size: 12.5px;
}

.slider-micro b {
  color: #4b5563;
  font-weight: 600;
}

/* ============================================================
   Gate 2: Progress Gate (Critérios de Elegibilidade)
   ============================================================ */
.progress-gate {
  position: fixed;
  inset: 0;
  z-index: 199;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #fefce8 0%, #eff6ff 55%, #fef9c3 100%);
  overflow-y: auto;
  transition: opacity 0.45s ease;
}

.progress-gate.active {
  display: flex;
}

.progress-gate.fading {
  opacity: 0;
  pointer-events: none;
}

.progress-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.progress-card {
  width: 100%;
  max-width: 410px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 43, 69, 0.14), 0 2px 6px rgba(15, 43, 69, 0.06);
  padding: 24px 20px 20px;
  position: relative;
  z-index: 1;
  animation: progressCardIn 0.45s ease-out;
  color: #111827;
}

.progress-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, #ffe600 20%, #f59e0b 50%, #ffe600 80%, transparent);
}

@keyframes progressCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.progress-logo-pill {
  background: var(--ml-yellow);
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto 14px;
}

.progress-logo {
  display: block;
  height: 26px;
  width: auto;
}

.progress-title {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111827;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
}

.progress-title span {
  color: #2d3277;
}

.progress-subtitle {
  font-size: 13.5px;
  line-height: 1.45;
  color: #4b5563;
  margin-bottom: 16px;
  text-align: center;
}

.stats {
  background: #f8fafc;
  border-radius: 16px;
  padding: 13px 13px 11px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.stats-title {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.stats-title-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.stat {
  margin-bottom: 11px;
}

.stat:last-child {
  margin-bottom: 0;
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12.5px;
  color: #334155;
  font-weight: 600;
}

.stat-value {
  font-size: 12px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.stat-value.done {
  color: #16a34a;
  font-weight: 700;
}

.bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3483fa, #2d3277);
  transition: width 0.25s ease-out;
}

.premio-gate {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b1a3d 0%, #172d66 60%, #2d3277 100%);
  border: 1px solid rgba(255, 230, 0, 0.45);
  box-shadow: 0 10px 24px rgba(11, 26, 61, 0.25);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  max-height: 0;
  margin: 0;
  padding: 0 12px;
  border-width: 0;
  transition: opacity 0.4s ease, transform 0.45s var(--ease-spring), max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}

.premio-gate.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  max-height: 120px;
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-width: 1px;
}

.premio-gate__mascote {
  width: 58px;
  height: auto;
  flex-shrink: 0;
}

.premio-gate__txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.premio-gate__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}

.premio-gate__valor {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ml-yellow);
}

.premio-gate__sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
}

.note {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin: 8px 0 12px;
  min-height: 16px;
}

.gate-claim-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffe600 0%, #f59e0b 100%);
  color: #2b1800;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.12s, opacity 0.25s;
}

.gate-claim-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.gate-claim-btn:active {
  transform: scale(0.97);
}

.progress-footnote {
  font-size: 10.5px;
  line-height: 1.45;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
}

.ml-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

.ml-loader.active {
  display: flex;
}

.ml-loader-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(45, 50, 119, 0.1);
  border-top-color: #ffe600;
  border-right-color: #3483fa;
  animation: mlSpin 0.9s linear infinite;
  margin-bottom: 16px;
}

.ml-loader-text {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

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

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 230, 0, 0.12) 0%, rgba(11, 26, 61, 0.55) 48%, rgba(4, 9, 22, 0.92) 100%),
    url('assets/fundo-vertical.webp') no-repeat center center / cover;
  z-index: 0;
  pointer-events: none;
}

.app-wrap {
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: max(10px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
}

/* ============================================================
   Topbar Oficial Mercado Livre (Alto Contraste)
   ============================================================ */
.ml-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  z-index: 10;
}

.ml-brand-pill {
  background: var(--ml-yellow);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(255, 230, 0, 0.25);
}

.ml-logo {
  height: 24px;
  width: auto;
  display: block;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 28, 63, 0.85);
  border: 1px solid rgba(255, 230, 0, 0.4);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ml-yellow);
  font-variant-numeric: tabular-nums;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.sound-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 28, 63, 0.85);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sound-btn[data-muted="true"] .sound-wave {
  opacity: 0.2;
}

/* ============================================================
   HUD Card (Título, Saldo e Progresso)
   ============================================================ */
.hud-card {
  background: linear-gradient(180deg, rgba(19, 36, 82, 0.92) 0%, rgba(10, 20, 48, 0.94) 100%);
  border: 1px solid rgba(255, 230, 0, 0.35);
  border-radius: 18px;
  padding: 11px 14px 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  margin-top: 8px;
  z-index: 6;
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.campaign-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ml-yellow);
  margin-bottom: 2px;
}

.hero-title {
  font-size: clamp(17px, 4.8vw, 21px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.balance-box {
  background: rgba(255, 230, 0, 0.12);
  border: 1px solid rgba(255, 230, 0, 0.45);
  border-radius: 12px;
  padding: 5px 11px;
  text-align: right;
  flex-shrink: 0;
}

.balance-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.05em;
}

.balance-value {
  font-size: 14px;
  font-weight: 900;
  color: var(--ml-yellow);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.progress-area {
  margin-top: 8px;
}

.progress-asset {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}

.progress-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 5px;
}

.progress-caption strong {
  color: var(--ml-yellow);
}

.goal-hint {
  color: #93c5fd;
  font-weight: 600;
}

/* ============================================================
   Cena da Roleta + Prêmios nos Setores
   ============================================================ */
.scene {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.spark {
  position: absolute;
  background: radial-gradient(circle, #fff 15%, #ffe600 65%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkTwinkle 1.6s ease-out forwards;
}

@keyframes sparkTwinkle {
  0% { transform: scale(0.2); opacity: 0; }
  45% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.3) translateY(-28px); opacity: 0; }
}

.scene-tree {
  position: absolute;
  bottom: -14px;
  right: -28px;
  width: clamp(74px, 20vw, 94px);
  height: auto;
  opacity: 0.72;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6));
}

.scene-mascot {
  position: absolute;
  bottom: -24px;
  left: -20px;
  width: clamp(76px, 22vw, 98px);
  height: auto;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.75));
  animation: floatMascot 3.6s ease-in-out infinite;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-6px) rotate(1.5deg); }
}

.scene-chest {
  position: absolute;
  bottom: -28px;
  right: 36px;
  width: clamp(62px, 17vw, 76px);
  height: auto;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.75));
  animation: chestPulse 2.8s ease-in-out infinite alternate;
}

@keyframes chestPulse {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.04); }
}

/* Container da Roleta (adaptativo à altura da tela) */
.wheel-wrap {
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  z-index: 3;
}

.wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 0, 0.22) 0%, rgba(255, 230, 0, 0.05) 55%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.wheel-wrap.is-hit .wheel-disc {
  animation: wheelHit 0.45s ease-out;
}

@keyframes wheelHit {
  0% { transform: scale(1); }
  45% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Ponteiro no topo (12h) */
.pointer-container {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 44px;
  z-index: 10;
  pointer-events: none;
}

.pointer-inner {
  width: 100%;
  height: 100%;
  transform-origin: 50% 12%;
  will-change: transform;
}

.pointer-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.8));
}

/* Disco giratório */
.wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transform-origin: 50% 50%;
  will-change: transform;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.78));
}

.wheel-face {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* ============================================================
   Ícones e Rótulos nos 8 Setores da Roleta
   ============================================================ */
.wheel-sectors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.sector {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--deg));
}

.sector-inner {
  position: absolute;
  top: 0;
  left: 0;
  /* Posiciona o centro de cada item a ~30.5% do diâmetro da roleta acima do eixo */
  transform: translate(-50%, calc(-0.305 * var(--wheel-size) - 50%));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 64px;
  text-align: center;
}

.sector-icon {
  width: clamp(28px, 8vw, 36px);
  height: clamp(28px, 8vw, 36px);
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.sector-icon.is-chest {
  width: clamp(32px, 9vw, 40px);
  height: clamp(32px, 9vw, 40px);
}

.sector-icon.is-tall {
  width: clamp(24px, 7vw, 30px);
  height: clamp(30px, 8.5vw, 38px);
}

.sector-label {
  font-size: clamp(9.5px, 2.5vw, 11.5px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.sector-blue .sector-label {
  color: #ffe600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.sector-yellow .sector-label {
  color: #0b1a3d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Botão de Girar (Pill Dourado Proporcional sem Overflow)
   ============================================================ */
.action-footer {
  text-align: center;
  padding: 4px 0 4px;
  flex-shrink: 0;
  z-index: 6;
}

.spin-button {
  border: 2px solid #fff3a1;
  background: linear-gradient(180deg, #fff07a 0%, #ffd028 45%, #f59e0b 90%, #d97706 100%);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  width: min(86%, 290px);
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.85),
    0 5px 0 #92400e,
    0 12px 26px rgba(245, 158, 11, 0.48);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  animation: btnPulse 2.2s ease-in-out infinite;
  overflow: hidden;
}

.spin-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.52) 50%, transparent 72%);
  background-size: 220% 100%;
  animation: btnShimmer 2.6s linear infinite;
  pointer-events: none;
}

@keyframes btnShimmer {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.spin-button:active:not(:disabled) {
  transform: translateY(3px) scale(0.97);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.65),
    0 2px 0 #92400e,
    0 6px 14px rgba(245, 158, 11, 0.4);
  animation: none;
}

.spin-button:disabled {
  filter: grayscale(0.75) opacity(0.65);
  cursor: not-allowed;
  animation: none;
}

.btn-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(245, 158, 11, 0.45));
}

.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
}

.btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  animation: spinIcon 3.5s linear infinite;
}

@keyframes spinIcon {
  100% { transform: rotate(360deg); }
}

.btn-label {
  font-size: clamp(16px, 4.6vw, 18.5px);
  font-weight: 900;
  color: #3a1c00;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.footer-note {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* ============================================================
   Modais
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: linear-gradient(180deg, #172856 0%, #0a122b 100%);
  border: 2px solid rgba(255, 230, 0, 0.5);
  border-radius: 26px;
  width: 100%;
  max-width: 360px;
  padding: 28px 22px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 230, 0, 0.22);
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-spring);
}

.modal-backdrop.show .modal-card {
  transform: scale(1);
}

.modal-shine {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 230, 0, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.modal-icon-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-prize-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.65));
  animation: prizeBob 2s infinite ease-in-out;
}

@keyframes prizeBob {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.07) translateY(-5px); }
}

.modal-tag {
  display: inline-block;
  background: var(--ml-yellow);
  color: #151b38;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.modal-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  margin-top: 6px;
  line-height: 1.4;
}

.prize-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prize-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
}

.prize-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--ml-yellow);
  text-shadow: 0 0 12px rgba(255, 230, 0, 0.4);
}

.claim-btn {
  width: 100%;
  background: linear-gradient(180deg, #ffe600 0%, #f59e0b 100%);
  border: 0;
  border-radius: 16px;
  padding: 15px;
  font-size: 15.5px;
  font-weight: 900;
  color: #2b1800;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  transition: transform 0.1s ease;
}

.claim-btn:active {
  transform: scale(0.97);
}

.modal-urgency {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.modal-urgency strong {
  color: var(--ml-yellow);
  font-variant-numeric: tabular-nums;
}

@media (max-height: 680px) {
  .hud-card { padding: 8px 12px; margin-top: 4px; }
  .progress-asset { max-width: 240px; }
  .spin-button { height: 58px; }
}
