.bwheel-screen {
  width: min(100%, 420px);
  margin: 0 auto;
  min-height: calc(var(--tg-viewport-height, 100dvh) - 40px);
  display: flex;
  flex-direction: column;
}

.bwheel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bwheel-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bwheel-hint {
  margin: 0 0 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff66;
  line-height: 1.45;
}

.bwheel-status {
  margin: 6px 0 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff8c;
}

.bwheel-status__cd {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffffe6;
  font-variant-numeric: tabular-nums;
}

.bwheel-screen > .mines-btn {
  margin-bottom: 14px;
  flex-shrink: 0;
}

.bwheel-wrap {
  position: relative;
  width: min(100%, 320px);
  height: min(100vw - 48px, 320px);
  margin: 0 auto 18px;
  flex-shrink: 0;
}

.bwheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 5;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid #f2f4f8;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.bwheel-disc {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 3px solid #ffffff22;
  box-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, 0.22),
    0 14px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  will-change: transform;
}

.bwheel-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from calc(-360deg / 30),
    transparent 0deg calc(360deg / 15 - 0.7deg),
    rgba(255, 255, 255, 0.14) calc(360deg / 15 - 0.7deg) calc(360deg / 15)
  );
  pointer-events: none;
  z-index: 1;
}

.bwheel-disc__item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 26px;
  margin: -13px -26px;
  transform: rotate(var(--angle)) translateY(-112px) rotate(calc(-1 * var(--angle)));
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}

.bwheel-seg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.bwheel-seg__text {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bwheel-seg__star {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.bwheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2a2e38 0%, #12141a 100%);
  border: 2px solid #ffffff28;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.roulette-modal__title .star-icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}

.bwheel-modal__code {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff0f;
  border: 1px solid #ffffff14;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.bwheel-modal__note {
  margin: 0 0 18px;
  font-size: 13px;
  color: #ffffff8c;
  line-height: 1.45;
}

.app-scroll.is-bonus-wheel {
  background: radial-gradient(120% 90% at 50% 18%, #1c2433, #0b0d12 72%);
}
