/* Byte Spin — roleta e raspadinha. Cores vêm do tema (byte-core.css). */

.spin-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.spin-headline { margin: 0; text-align: center; font-size: 1.35rem; line-height: 1.25; }
.spin-sub { margin: -8px 0 0; text-align: center; color: var(--c-muted); }

/* ---------- roleta ---------- */
.spin-wheel-wrap {
  position: relative;
  width: min(86vw, 48dvh, 420px);
  aspect-ratio: 1;
}
.spin-wheel { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: var(--shadow); }
.spin-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid var(--c-text);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  z-index: 2;
}
.spin-hub {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-surface);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  overflow: hidden;
}
.spin-hub img { width: 80%; height: 80%; object-fit: contain; }

/* ---------- raspadinha ---------- */
.spin-card {
  position: relative;
  width: min(86vw, 380px);
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  touch-action: none;
}
.spin-card-prize {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
}
.spin-card-prize .spin-prize-icon { font-size: 2.6rem; line-height: 1; }
.spin-card-prize strong { font-size: 1.3rem; }
.spin-scratch { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; transition: opacity 500ms; }
.spin-scratch.is-done { opacity: 0; pointer-events: none; }

/* ---------- resultado ---------- */
.spin-result-icon { font-size: 3.5rem; line-height: 1; }
.spin-code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border: 2px dashed var(--c-primary);
  border-radius: var(--radius);
  color: var(--c-primary);
  user-select: all;
  -webkit-user-select: all;
}
.spin-rules { font-size: 0.75rem; color: var(--c-muted); }
