/* BS Gira e Vinci — stile Baccusardus */
.bsgv-wrap {
  --bsgv-wine: #671b30;
  --bsgv-deep: #280a14;
  --bsgv-gold: #e2ad46;
  --bsgv-cream: #fff7ea;
  --bsgv-paper: #fcf7ef;
  --bsgv-ink: #21191a;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}
.bsgv-stage {
  position: relative;
  padding: 18px 0 0;
}

/* messaggio gioco spento */
.bsgv-inactive {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 28px;
  text-align: center;
  background: var(--bsgv-cream);
  border: 1px solid rgba(103, 27, 48, 0.16);
}
.bsgv-inactive p {
  margin: 0;
  font-family: "Colossalis", Georgia, serif;
  font-size: 22px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--bsgv-wine);
}

/* puntatore in alto */
.bsgv-pointer {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 34px;
  height: 42px;
  background: var(--bsgv-gold);
  border: 3px solid var(--bsgv-cream);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  clip-path: polygon(50% 100%, 0 38%, 50% 0, 100% 38%);
  filter: drop-shadow(0 4px 5px rgba(20, 5, 10, 0.5));
}
.bsgv-wheel-holder {
  position: relative;
  width: min(440px, 88vw);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 6px;
  filter: drop-shadow(0 14px 16px rgba(20, 5, 10, 0.45));
}
.bsgv-wheel {
  width: 100%;
  height: 100%;
  transition: transform 5.2s cubic-bezier(0.16, 0.84, 0.2, 1);
  transform-origin: 50% 50%;
}
.bsgv-wheel .bsgv-seg-label {
  font-family: 'Colossalis', Georgia, serif;
  font-weight: 700;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: rgba(20, 5, 10, 0.18);
  stroke-width: 0.4px;
}

.bsgv-spin {
  display: inline-block;
  margin-top: 26px;
  min-height: 54px;
  padding: 0 34px;
  border: 0;
  border-radius: 4px;
  background: var(--bsgv-gold);
  color: var(--bsgv-deep);
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.bsgv-spin:hover {
  filter: brightness(0.93);
}
.bsgv-spin[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* pannello form + risultato */
.bsgv-panel,
.bsgv-result,
.bsgv-verify {
  margin-top: 30px;
  padding: 28px;
  background: var(--bsgv-cream);
  border: 1px solid rgba(103, 27, 48, 0.16);
  text-align: left;
}
.bsgv-kicker {
  margin: 0 0 6px;
  color: var(--bsgv-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bsgv-prize {
  margin: 0 0 8px;
  font-family: 'Colossalis', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--bsgv-wine);
  text-transform: uppercase;
}
.bsgv-sub {
  color: var(--bsgv-ink);
  font-size: 15px;
  line-height: 1.5;
}

.bsgv-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.bsgv-form .bsgv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bsgv-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bsgv-wine);
}
.bsgv-form input[type='text'],
.bsgv-form input[type='email'],
.bsgv-form input[type='tel'] {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(103, 27, 48, 0.16);
  background: var(--bsgv-paper);
  color: var(--bsgv-ink);
  font-size: 15px;
}
.bsgv-form input:focus {
  outline: none;
  border-color: var(--bsgv-wine);
}
.bsgv-form label.bsgv-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  text-transform: none;
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--bsgv-ink);
}
.bsgv-form label.bsgv-check input {
  flex: 0 0 auto;
  margin-top: 1px;
  width: 16px;
  height: 16px;
}
/* !important per battere gli stili del tema sui <button> generici */
.bsgv-wrap .bsgv-submit,
.bsgv-verify .bsgv-submit {
  display: inline-block;
  padding: 16px 24px;
  border: 0 !important;
  border-radius: 4px;
  background: var(--bsgv-gold) !important;
  background-color: var(--bsgv-gold) !important;
  background-image: none !important;
  color: var(--bsgv-deep) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer;
  white-space: normal;
  word-break: keep-all;
  transition: filter .15s ease;
}
.bsgv-wrap .bsgv-submit:hover,
.bsgv-verify .bsgv-submit:hover,
.bsgv-wrap .bsgv-submit:focus,
.bsgv-verify .bsgv-submit:focus,
.bsgv-wrap .bsgv-submit:active,
.bsgv-verify .bsgv-submit:active {
  background: var(--bsgv-gold) !important;
  background-color: var(--bsgv-gold) !important;
  color: var(--bsgv-deep) !important;
  filter: brightness(.93);
  outline: none;
}
/* Variante full-width per la pagina riscatto */
.bsgv-verify .bsgv-submit--block {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 16px auto 0;
  padding: 18px 18px;
}
.bsgv-error {
  color: var(--bsgv-wine);
  font-weight: 700;
  font-size: 14px;
}

/* risultato / verifica */
.bsgv-qr {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}
.bsgv-qr img,
.bsgv-qr canvas {
  width: 200px;
  height: 200px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(103, 27, 48, 0.16);
}
.bsgv-code {
  font-size: 16px;
  color: var(--bsgv-ink);
}
.bsgv-code strong {
  font-family: 'Colossalis', Georgia, serif;
  letter-spacing: 1px;
  color: var(--bsgv-wine);
}
.bsgv-result,
.bsgv-verify {
  text-align: center;
}
.bsgv-status {
  display: inline-block;
  margin: 8px 0;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}
.bsgv-status.ok {
  background: rgba(42, 140, 90, 0.12);
  color: #1d7a4d;
}
.bsgv-status.redeemed {
  background: rgba(103, 27, 48, 0.1);
  color: var(--bsgv-wine);
}
.bsgv-staff {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(103, 27, 48, 0.16);
  text-align: center;
}
.bsgv-staff-title {
  margin: 0 0 10px;
  font-family: 'Colossalis', Georgia, serif;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--bsgv-wine);
}
/* Disabled = solo cursor diverso, bg resta pieno per non sembrare "spento" */
.bsgv-wrap .bsgv-submit[disabled],
.bsgv-verify .bsgv-submit[disabled] {
  cursor: not-allowed;
  filter: brightness(.92) saturate(.8);
}

/* Badge "Riscattato" inline (sostituisce l'area cassa al successo) */
.bsgv-done {
  margin: 24px auto 0;
  padding: 22px 18px 20px;
  max-width: 380px;
  background: #1d7a4d;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(29,122,77,.25);
}
.bsgv-done-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #fff;
  color: #1d7a4d;
  font-size: 34px;
  line-height: 56px;
  font-weight: 900;
}
.bsgv-done-text {
  font-family: 'Colossalis', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bsgv-done-sub {
  margin-top: 6px;
  font-size: 13px;
  opacity: .92;
}
.bsgv-pin-label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bsgv-wine);
}
.bsgv-pin-input {
  display: block;
  width: 100%;
  max-width: 200px;
  margin-top: 6px;
  min-height: 48px;
  padding: 0 14px;
  text-align: center;
  font-family: 'Colossalis', Georgia, serif;
  font-size: 22px;
  letter-spacing: 6px;
  background: var(--bsgv-paper);
  border: 1px solid rgba(103, 27, 48, 0.16);
  color: var(--bsgv-ink);
  border-radius: 0;
  margin: 10px auto;
}
.bsgv-pin-input:focus {
  outline: none;
  border-color: var(--bsgv-wine);
}

@media (max-width: 520px) {
  .bsgv-form .bsgv-row {
    grid-template-columns: 1fr;
  }
  .bsgv-prize {
    font-size: 26px;
  }
}
