.bw-section {
  overflow: hidden;
  border-radius: var(--lcir-radius, 8px);
  border: 1px solid rgba(21, 109, 98, 0.28);
  background: var(--lcir-surface, #fff);
  box-shadow: 0 0 0 1px rgba(21, 109, 98, 0.08);
}

.bw-section--compact {
  margin: 0;
}

.bw-section__grid {
  display: grid;
  align-items: center;
  gap: 32px;
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .bw-section__grid {
    grid-template-columns: 1fr minmax(240px, 380px);
    gap: 40px;
    padding: 36px 32px;
  }
}

.bw-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lcir-brand, #156d62);
}

.bw-heading {
  margin: 8px 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--lcir-ink, #182033);
  line-height: 1.25;
}

@media (min-width: 640px) {
  .bw-heading {
    font-size: 1.9rem;
  }
}

.bw-desc {
  margin: 12px 0 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--lcir-muted, #647088);
}

.bw-spin {
  margin-top: 24px;
  min-width: 160px;
  cursor: pointer;
}

.bw-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bw-disclaimer {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--lcir-muted, #647088);
}

.bw-wheel-wrap {
  position: relative;
  margin: 0 auto;
  aspect-ratio: 1;
  width: 100%;
  max-width: 340px;
}

@media (min-width: 640px) {
  .bw-wheel-wrap {
    max-width: 380px;
  }
}

.bw-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--lcir-brand, #156d62);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.bw-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(45, 212, 191, 0.22), transparent 65%);
  pointer-events: none;
}

.bw-idle {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
}

.bw-idle.is-idle {
  animation: bw-wheel-idle 18s linear infinite;
}

.bw-rotor {
  height: 100%;
  width: 100%;
  border-radius: 50%;
  border: 8px solid var(--lcir-brand, #156d62);
  box-shadow:
    0 0 0 6px rgba(21, 109, 98, 0.16),
    inset 0 0 24px rgba(0, 0, 0, 0.2);
  will-change: transform;
}

.bw-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 50%;
}

.bw-launcher {
  position: fixed;
  bottom: 20px;
  right: 12px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

@media (min-width: 768px) {
  .bw-launcher {
    bottom: 24px;
    right: 24px;
  }
}

.bw-launcher[hidden],
.bw-overlay[hidden],
.bw-modal[hidden] {
  display: none !important;
}

.bw-launcher__dismiss {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--lcir-line, #dde3ec);
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 8px;
  font-size: 0.75rem;
  color: var(--lcir-muted, #647088);
  line-height: 1.4;
}

.bw-launcher__dismiss:hover {
  color: var(--lcir-ink, #182033);
}

.bw-launcher__btn {
  display: flex;
  max-width: 250px;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid rgba(21, 109, 98, 0.4);
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
  text-align: right;
  box-shadow: var(--lcir-shadow, 0 12px 40px rgba(24, 32, 51, 0.16));
  backdrop-filter: blur(8px);
  animation: bw-promo-bar 0.45s ease-out;
  transition: transform 0.2s ease;
  color: inherit;
  font: inherit;
}

.bw-launcher__btn:hover {
  transform: scale(1.02);
}

.bw-launcher__icon {
  position: relative;
  display: flex;
  height: 48px;
  width: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--lcir-brand, #156d62);
  background: var(--lcir-soft, #eef6f3);
}

.bw-launcher__ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(21, 109, 98, 0.7);
  animation: bw-wheel-idle 18s linear infinite;
}

.bw-launcher__dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: var(--lcir-brand, #156d62);
}

.bw-launcher__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bw-launcher__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lcir-brand, #156d62);
}

.bw-launcher__title {
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--lcir-ink, #182033);
}

.bw-launcher__cta {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--lcir-brand, #156d62);
}

.bw-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow-y: auto;
  background: rgba(247, 248, 251, 0.82);
  backdrop-filter: blur(6px);
  padding: 12px;
  animation: bw-popup-backdrop 0.25s ease-out;
}

@media (min-width: 640px) {
  .bw-overlay {
    padding: 24px;
  }
}

.bw-overlay__panel {
  position: relative;
  margin: 16px auto;
  width: 100%;
  max-width: 56rem;
  animation: bw-popup-panel 0.3s ease-out;
}

.bw-overlay__close,
.bw-modal__close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--lcir-muted, #647088);
}

.bw-overlay__close:hover,
.bw-modal__close:hover {
  color: var(--lcir-ink, #182033);
}

.bw-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 248, 251, 0.78);
  backdrop-filter: blur(6px);
  padding: 16px;
  animation: bw-popup-backdrop 0.25s ease-out;
}

.bw-modal__panel {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 32rem;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--lcir-line, #dde3ec);
  background: var(--lcir-surface, #fff);
  box-shadow: var(--lcir-shadow, 0 24px 60px rgba(24, 32, 51, 0.2));
  animation: bw-popup-panel 0.3s ease-out;
}

@media (min-width: 640px) {
  .bw-modal__panel {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.bw-modal__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
}

.bw-modal__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lcir-brand, #156d62);
}

.bw-modal__title {
  margin: 8px 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lcir-ink, #182033);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-modal__hint {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--lcir-muted, #647088);
  line-height: 1.5;
}

.bw-modal__prize {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  border-radius: 12px;
  border: 1px solid var(--lcir-line, #dde3ec);
  background: var(--lcir-soft, #eef6f3);
  padding: 12px;
}

.bw-modal__logo-wrap,
.bw-modal__card-logo {
  display: flex;
  height: 48px;
  width: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.bw-modal__logo-wrap img,
.bw-modal__card-logo img {
  max-width: 40px;
  max-height: 32px;
  object-fit: contain;
}

.bw-modal__prize-text {
  min-width: 0;
  flex: 1;
}

.bw-modal__prize-name {
  margin: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-modal__prize-bonus {
  margin: 2px 0 0;
  font-size: 0.875rem;
  color: var(--lcir-brand, #156d62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .bw-modal__actions {
    flex-direction: row;
    align-items: stretch;
  }
}

.bw-modal__cta {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.bw-modal__again {
  flex: 1;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--lcir-line, #dde3ec);
  background: #fff;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lcir-ink, #182033);
  transition: border-color 0.2s ease;
}

.bw-modal__again:hover {
  border-color: var(--lcir-brand, #156d62);
}

.bw-modal__aside {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  background: var(--lcir-soft, #eef6f3);
  padding: 24px;
}

@media (min-width: 640px) {
  .bw-modal__aside {
    min-height: 100%;
  }
}

.bw-modal__card {
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  border: 1px solid var(--lcir-line, #dde3ec);
  background: rgba(255, 255, 255, 0.96);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(24, 32, 51, 0.08);
}

.bw-modal__card-logo {
  margin: 0 auto;
  width: 56px;
  height: 56px;
}

.bw-modal__card-title {
  margin: 12px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.bw-modal__card-meta {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--lcir-muted, #647088);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes bw-wheel-idle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bw-promo-bar {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bw-popup-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bw-popup-panel {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-idle.is-idle,
  .bw-launcher__ring,
  .bw-launcher__btn,
  .bw-overlay,
  .bw-overlay__panel,
  .bw-modal,
  .bw-modal__panel {
    animation: none !important;
  }

  .bw-rotor {
    transition: none !important;
  }
}
