﻿.bf-roulette {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.bf-roulette.is-open {
  display: flex;
}

.bf-roulette__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 16, 0.72);
}

.bf-roulette__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  align-items: center;
  width: min(773px, 100%);
  min-height: 336px;
  padding: 14px;
  border: 2px solid #f2c14a;
  border-radius: 18px;
  background: radial-gradient(ellipse 55% 35% at 0% 40%, rgba(0, 255, 255, 0.95) 0%, rgba(0, 200, 230, 0.5) 40%, transparent 100%), radial-gradient(ellipse 55% 35% at 100% 40%, rgba(210, 0, 255, 0.95) 0%, rgba(160, 0, 230, 0.5) 40%, transparent 100%), linear-gradient(110deg, #001329 0%, #08072c 50%, #18002e 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  color: #f4f7fb;
  box-sizing: border-box;
}

.bf-roulette__wheel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 8px rgba(255, 255, 255, 0.25), inset 0 2px 5px rgba(255, 255, 255, 0.7), inset 0 -5px 10px rgba(0, 0, 0, 0.4);
}

.bf-roulette__wheel img {
  display: block;
  width: 292px;
  height: auto;
  max-width: 100%;
  position: relative;
  z-index: 3;
}

/* Reflexo da lente */
.bf-roulette__wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%), radial-gradient(ellipse at 70% 100%, rgba(150, 200, 255, 0.25), transparent 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%, rgba(10, 20, 40, 0.18));
}

/* Brilho difuso */
.bf-roulette__wheel::after {
  content: "";
  position: absolute;
  top: 5%;
  left: 20%;
  width: 60%;
  height: 25%;
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(12px);
}

/*.bf-roulette__wheel img {
  display: block;
  width: 292px;
  height: auto;
  max-width: 100%;
}*/
.bf-roulette__panel {
  padding: 16px;
  text-align: center;
  text-align: -webkit-center;
}

.bf-roulette__logo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-family: Nunito, Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.4px;
}

.bf-roulette__logo-black,
.bf-roulette__logo-friday {
  display: inline-block;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.bf-roulette__logo-black {
  background-image: linear-gradient(180deg, #fff1a6 0%, #ffd84a 46%, #f0a400 100%);
  filter: drop-shadow(0 2px 0 rgba(80, 40, 0, 0.45));
}

.bf-roulette__logo-friday {
  background-image: linear-gradient(100deg, #8cf6ff 0%, #2ad4f2 42%, #5dffb0 100%);
  filter: drop-shadow(0 2px 0 rgba(0, 40, 60, 0.35));
}

.bf-roulette__title {
  margin: 10px 0 14px;
  color: #f6c445;
  font-family: Nunito, Arial, sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: pretty;
}

.bf-roulette__input {
  width: 100%;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #2c3142;
  font-family: Nunito, Arial, sans-serif;
  font-size: 14px;
  text-align: center;
  box-sizing: border-box;
}

.bf-roulette__input::placeholder {
  color: #9aa3b5;
}

.bf-roulette__input:focus {
  outline: 3px solid rgba(46, 200, 232, 0.55);
  outline-offset: 2px;
}

.bf-roulette__input.is-invalid {
  outline: 2px solid #ff6b8a;
}

.bf-roulette__error {
  min-height: 18px;
  margin: 6px 0 0;
  color: #ff8aa3;
  font-family: Nunito, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.bf-roulette__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96%;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: Nunito, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
}

.bf-roulette__btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.bf-roulette__btn--primary {
  margin-top: 4px;
  border: 0;
  background: linear-gradient(180deg, #53daf4 0%, #1eb4d6 100%);
  color: #150F16;
  /*box-shadow: 0 3px 0 $bf-cyan-deep;*/
}

.bf-roulette__btn--primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.bf-roulette__btn--ghost {
  margin-top: 10px;
  border: 2px solid #2ec8e8;
  background: transparent;
  color: #66C8BF;
}

.bf-roulette__btn--ghost:hover:not(:disabled) {
  background: rgba(46, 200, 232, 0.12);
}

.bf-roulette__legal {
  margin: 10px 0 0;
  color: #b7b0c4;
  font-family: Nunito, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.bf-roulette__legal a {
  color: inherit;
  text-decoration: underline;
}

.bf-roulette__success {
  display: none;
}

.bf-roulette.is-success .bf-roulette__form {
  display: none;
}

.bf-roulette.is-success .bf-roulette__success {
  display: block;
}

.bf-roulette__success p {
  margin: 0 0 16px;
  color: #f4f7fb;
  font-family: Nunito, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .bf-roulette__dialog {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px 16px 18px;
  }
  .bf-roulette__wheel img {
    width: min(240px, 72vw);
  }
  .bf-roulette__logo {
    font-size: 26px;
  }
  .bf-roulette__title {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-roulette__btn {
    transition: none;
  }
}
