/* Indique e ganhe (assets/referral.js): faixa piscando no topo, trilha de prêmios, roleta e endereço do copo. */
.ref-bar {
  position: relative;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  padding: 6px 40px 6px 12px;
  background: linear-gradient(90deg, #12301c, #1f4a10, #12301c);
  background-size: 200% 100%;
  border-bottom: 2px solid #c9f562;
  color: #fff;
  font-size: 13px;
  animation: ref-shine 3s linear infinite;
}
.ref-bar[hidden] {
  display: none;
}
.ref-bar p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  margin: 0;
  text-align: center;
}
.ref-bar-badge {
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 6px;
  background: #c9f562;
  color: #000;
  font-weight: 900;
  letter-spacing: 0.05em;
  animation: ref-blink 1s steps(1, end) infinite;
}
.ref-bar-cta {
  padding: 3px 12px;
  font-size: 12px;
  border-radius: 999px;
  background: #c9f562;
  color: #000 !important;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  animation: ref-pulse 1.2s ease-in-out infinite;
}
.ref-bar-hide {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}
.ref-bar.in-main {
  z-index: 1;
  margin: -14px 0 10px;
  border: 2px solid #c9f562;
  border-radius: 14px;
}
.ref-bar.prize {
  background: linear-gradient(90deg, #3a2a00, #6b4d00, #3a2a00);
  background-size: 200% 100%;
  border-bottom-color: #ffd54a;
}
.ref-bar.prize .ref-bar-badge,
.ref-bar.prize .ref-bar-cta {
  background: #ffd54a;
}
.ref-trail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.ref-trail li {
  display: grid;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.ref-trail li b {
  font-size: 11px;
  color: var(--muted);
}
.ref-trail li span {
  font-size: 15px;
  font-weight: 800;
}
.ref-trail li.done {
  border-color: var(--lime, #c9f562);
  background: color-mix(in srgb, var(--lime, #c9f562) 14%, transparent);
}
.ref-trail li.done span::before {
  content: '✓ ';
  color: var(--lime, #c9f562);
}
.ref-status {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
}
.ref-status span {
  color: var(--muted);
  font-size: 12px;
}
.ref-spin-cta {
  width: 100%;
  margin: 0 0 14px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #ffd54a;
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  animation: ref-pulse 1.2s ease-in-out infinite;
}
.ref-prizes-box,
.ref-rules {
  margin-top: 12px;
  font-size: 12.5px;
}
.ref-prizes-box summary,
.ref-rules summary {
  color: var(--lime, #c9f562);
  font-weight: 700;
  cursor: pointer;
}
.ref-prizes {
  margin: 8px 0 0;
  padding-left: 4px;
  list-style: none;
  line-height: 1.7;
}
.ref-rules ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}
.ref-address {
  margin: 0 0 14px;
  padding: 14px;
  border: 2px dashed #ffd54a;
  border-radius: 12px;
}
.ref-address h4 {
  margin: 0 0 10px;
}
.ref-address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.ref-address-grid label {
  font-size: 11px;
}
.ref-address-msg {
  margin: 8px 0 0;
  font-size: 12px;
}
.ref-address-msg.error {
  color: #ff8a80;
}
.ref-wheel-dialog {
  width: min(400px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line, #2a3a2f);
  border-radius: 18px;
  background: #0f1c14;
  color: #fff;
  text-align: center;
}
.ref-wheel-dialog::backdrop {
  background: #000b;
}
.ref-wheel-dialog h3 {
  margin: 0 0 14px;
}
.ref-wheel-stage {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 14px;
}
.ref-wheel {
  position: absolute;
  inset: 0;
  border: 6px solid #c9f562;
  border-radius: 50%;
  background: conic-gradient(#1f4a10 0 45deg, #6b4d00 45deg 90deg, #1f4a10 90deg 135deg, #12301c 135deg 180deg, #1f4a10 180deg 225deg, #6b4d00 225deg 270deg, #1f4a10 270deg 315deg, #12301c 315deg 360deg);
}
.ref-wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  margin: -10px 0 0 -40px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transform-origin: 50% 50%;
}
.ref-wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 2;
  color: #ffd54a;
  font-size: 28px;
  transform: translateX(-50%);
}
.ref-wheel-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 76px;
  height: 76px;
  margin: 0;
  border: 4px solid #000;
  border-radius: 50%;
  background: #ffd54a;
  color: #000;
  font: inherit;
  font-weight: 900;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.ref-wheel-result {
  min-height: 24px;
  font-size: 16px;
}
.ref-wheel-result p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #cfcfcf;
}
.ref-wheel-again,
.ref-wheel-close {
  margin: 12px 6px 0;
  padding: 8px 16px;
  border: 1px solid #c9f562;
  border-radius: 999px;
  background: none;
  color: #c9f562;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
@keyframes ref-blink {
  50% {
    background: transparent;
    color: #c9f562;
    box-shadow: inset 0 0 0 2px #c9f562;
  }
}
@keyframes ref-pulse {
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 16px #c9f562;
  }
}
@keyframes ref-shine {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 640px) {
  .ref-bar {
    font-size: 13px;
  }
  .ref-trail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ref-bar,
  .ref-bar-badge,
  .ref-bar-cta,
  .ref-spin-cta {
    animation: none;
  }
}
