/* Bonus wheel (/bonus/wheel) — подключение в resources/views/index.blade.php.
   Раньше блок был в wheel.vue; вынесено в статику: корректный text/css с Laravel public/. */
.wheel-page-new .baraban-li-name {
  color: #e8ffc4;
  font-size: clamp(9px, 1.1vw, 12px);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 2px #0a0e1f;
}

.wheel-page-new .ba-pole {
  position: absolute !important;
  bottom: auto !important;
  padding: 0 !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(380px, 88vw) !important;
  max-width: 400px !important;
  /* Выше .baraban::before (указатель ba-sel.png, z-index 30), иначе стрелка наезжает на модалку */
  z-index: 45 !important;
  pointer-events: auto !important;
}

.wheel-page-new .ba-pole--used,
.wheel-page-new .ba-pole--ready {
  background: rgba(10, 14, 31, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 18px;
  border: none;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.wheel-page-new .ba-pole__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 32px 24px;
  gap: 6px;
}

.wheel-page-new .ba-pole .baraban-title {
  font-size: 18px;
  font-weight: 800;
  color: #d3f85a;
  letter-spacing: 0.12em;
  padding-bottom: 0;
}
.wheel-page-new .ba-pole .baraban-text {
  margin-bottom: 0;
  text-align: center;
}
.wheel-page-new .ba-pole .baraban-text p {
  margin: 4px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}
.wheel-page-new .ba-pole .baraban-text span {
  color: #d3f85a;
  font-weight: 600;
}

.wheel-page-new .ba-timer-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}

.wheel-page-new .ba-pole .bonus-timer {
  width: 100%;
  display: flex;
  justify-content: center;
}
.wheel-page-new .ba-pole .bonus-timer .countdown-row {
  justify-content: center;
}

.wheel-page-new .ba-spin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  margin-top: 10px;
  background: linear-gradient(135deg, #d3f85a 0%, #b8e040 100%);
  color: #0f1118;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Unbounded', Montserrat, sans-serif;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(211, 248, 90, 0.25);
}
.wheel-page-new .ba-spin-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(211, 248, 90, 0.35);
}
.wheel-page-new .ba-spin-btn--disabled {
  background: rgba(40, 44, 58, 0.9);
  color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  pointer-events: none;
}

.wheel-page-new {
  font-family: 'Unbounded', Montserrat, sans-serif;
  padding-bottom: 40px;
}
/* РџРѕР»РЅР°СЏ С€РёСЂРёРЅР°: РЅРµ РёСЃРїРѕР»СЊР·СѓРµРј Bootstrap .container (РєРѕРЅС„Р»РёРєС‚ СЃ legacy margin/var(--wrap)) */
.wheel-page-new--root {
  width: 100% !important;
  max-width: min(1720px, 100vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
  box-sizing: border-box !important;
}
.wheel-page-new--root > .c-title {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
.wheel-page-new__accent {
  color: #d3f85a;
  font-style: normal;
}
.wheel-page-new__heading {
  font-family: 'Unbounded', Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.wheel-page-new__page-title {
  border-top-color: rgba(211, 248, 90, 0.18) !important;
}
.wheel-page-new__drops-title {
  position: relative !important;
  z-index: 2 !important;
  margin-top: 8px !important;
  background: none !important;
  border-bottom: 1px solid rgba(211, 248, 90, 0.14);
  padding-bottom: 18px !important;
  margin-bottom: 24px !important;
  clear: both !important;
}
.wheel-page-new__drops-title span {
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: 'Unbounded', Montserrat, sans-serif;
  letter-spacing: 0.06em;
}

/* РЎРµС‚РєР°: legacy .baraban-item РёРјРµР» width:471px РІ app.css вЂ” СЃР±СЂР°СЃС‹РІР°РµРј */
.wheel-page-new__drops-grid.baraban-wrap {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 22px;
  justify-content: stretch !important;
  justify-items: stretch;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}
.wheel-page-new__drops-grid.baraban-wrap .baraban-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  min-height: 0 !important;
  gap: 12px !important;
  padding: 12px 14px !important;
}
.wheel-page-new__drops-grid .baraban-item-pole {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
@media (max-width: 640px) {
  .wheel-page-new__drops-grid.baraban-wrap {
    grid-template-columns: 1fr;
  }
}

/* Превью приза: фиксированная колонка — иначе PNG с большим intrinsic разъезжают сетку */
.wheel-page-new__drops-grid .baraban-item-img {
  flex: 0 0 96px !important;
  width: 96px !important;
  max-width: 96px !important;
  min-width: 0 !important;
  height: 72px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(15, 18, 34, 0.92) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.wheel-page-new__drops-grid .baraban-item-img img {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.wheel-page-new__bar {
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: 28px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  isolation: isolate;
  overflow: visible;
}
.wheel-page-new__bar:after {
  display: none !important;
}

.wheel-page-new__wheel.baraban {
  position: relative !important;
  background: url(/images/ba-all.png) no-repeat center top;
  box-shadow: none !important;
  overflow: hidden !important;
  width: 1088px !important;
  max-width: 100% !important;
  height: 720px !important;
  min-height: 720px !important;
  max-height: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  --y: -408px !important;
}

.wheel-page-new__wheel.baraban:after {
  display: block !important;
  content: "" !important;
  background: radial-gradient(circle at 50% 38%, transparent 36%, rgba(10, 14, 31, 0.4) 58%, rgba(10, 14, 31, 0.85) 100%) !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  position: absolute !important;
  z-index: 8 !important;
  pointer-events: none !important;
}

.wheel-page-new__wheel.baraban:before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: url(/images/ba-sel.png) no-repeat center top !important;
  width: 21px !important;
  height: 183px !important;
  border: none !important;
  top: 36px !important;
  z-index: 28 !important;
  pointer-events: none !important;
  filter: hue-rotate(75deg) saturate(1.22) brightness(1.05)
    drop-shadow(0 0 12px rgba(211, 248, 90, 0.4));
}

.wheel-page-new__wheel.baraban ul {
  position: absolute !important;
  width: 989px !important;
  height: 989px !important;
  top: 49px !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  transform-origin: center center !important;
  list-style: none !important;
  /* Р’С‹С€Рµ ::after СЃ Р·Р°С‚РµРјРЅСЏСЋС‰РёРј РіСЂР°РґРёРµРЅС‚РѕРј (z-index: 8), РёРЅР°С‡Рµ РїСЂРёР·С‹ РЅР° РєРѕР»СЊС†Рµ РїРѕС‡С‚Рё РЅРµ РІРёРґРЅС‹ */
  z-index: 10 !important;
  background-image: url(/images/ba-row.png) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.wheel-page-new__wheel.baraban ul li {
  position: absolute !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 50% !important;
  left: 50% !important;
  width: 241px !important;
  height: 152px !important;
  margin-left: -120.5px !important;
  margin-top: -76px !important;
  transform-origin: center center !important;
  backface-visibility: hidden;
}
/* РЇРІРЅРѕ Р·Р°РґР°С‘Рј СѓРіРѕР» вЂ” РёРЅР°С‡Рµ scoped-СЃС‚РёР»Рё РјРѕРіР»Рё РїРµСЂРµР±РёС‚СЊ РіР»РѕР±Р°Р»СЊРЅС‹Рµ .baraban ul li:nth-child */
.wheel-page-new__wheel.baraban ul li:first-child {
  transform: rotate(0deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(2) {
  transform: rotate(30deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(3) {
  transform: rotate(60deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(4) {
  transform: rotate(90deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(5) {
  transform: rotate(120deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(6) {
  transform: rotate(150deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(7) {
  transform: rotate(180deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(8) {
  transform: rotate(210deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(9) {
  transform: rotate(240deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(10) {
  transform: rotate(270deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(11) {
  transform: rotate(300deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li:nth-child(12) {
  transform: rotate(330deg) translateY(var(--y)) !important;
}
.wheel-page-new__wheel.baraban ul li img {
  max-width: 82% !important;
  max-height: 168px !important;
  margin-top: -5% !important;
  margin-left: -2.5% !important;
  /* PNG СЃ Р°Р»СЊС„РѕР№: Р±РµР· С‡С‘СЂРЅРѕР№ РїРѕРґР»РѕР¶РєРё РЅР° С‚С‘РјРЅРѕРј СЃРµРєС‚РѕСЂРµ */
  background: transparent !important;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.12));
}
.wheel-page-new__drops-grid .baraban-item {
  background: rgba(21, 26, 54, 0.58) !important;
  background-image: none !important;
  border: 1px solid rgba(211, 248, 90, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.wheel-page-new__drops-grid .baraban-item:nth-child(3n+2) {
  background: rgba(21, 26, 54, 0.58) !important;
}
.wheel-page-new__drops-grid .baraban-item:hover {
  border-color: rgba(211, 248, 90, 0.32) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(211, 248, 90, 0.06);
}
.wheel-page-new__drops-grid .baraban-item-name {
  color: #d3f85a !important;
  font-family: 'Unbounded', Montserrat, sans-serif;
  font-weight: 700;
}
.wheel-page-new__drops-grid .baraban-item-text {
  color: rgba(255, 255, 255, 0.65) !important;
}

@media (max-width: 768px) {
  /* 1. Hide orange dots from c-title */
  .wheel-page-new .c-title::after,
  .wheel-page-new .c-title::before,
  .wheel-page-new__page-title::after,
  .wheel-page-new__page-title::before {
    display: none !important;
  }

  /* 2. Remove green hue-rotate from wheel overlays */
  .wheel-page-new__wheel.baraban::after {
    filter: none !important;
  }
  .wheel-page-new__wheel.baraban::before {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 14px rgba(211, 248, 90, 0.35)) !important;
    transform: scale(1.05);
    transform-origin: center top;
  }

  .wheel-page-new .ba-pole {
    width: min(240px, 80vw) !important;
  }
  .wheel-page-new .ba-pole__inner {
    padding: 16px 14px 14px !important;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wheel-page-new__bar {
    overflow: hidden !important;
    margin-bottom: 16px !important;
  }
  .wheel-page-new__wheel.baraban {
    width: min(100vw, 460px) !important;
    height: 460px !important;
    min-height: 460px !important;
    max-height: 460px !important;
    overflow: hidden !important;
    max-width: 100% !important;
    --y: -158px !important;
    padding: 0 !important;
    background-size: min(100vw, 460px) 460px !important;
    background-position: center top !important;
  }
  .wheel-page-new__wheel.baraban ul {
    width: 392px !important;
    height: 392px !important;
    top: 34px !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    background-size: 100% 100% !important;
    box-shadow: none !important;
  }
  .wheel-page-new__wheel.baraban ul li {
    width: 68px !important;
    height: 52px !important;
    margin-left: -34px !important;
    margin-top: -26px !important;
  }
  .wheel-page-new__wheel.baraban ul li img {
    max-width: 62px !important;
    max-height: 50px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
  }
  .wheel-page-new__drops-grid .baraban-item {
    width: 100% !important;
    height: auto !important;
    margin: 6px 0 !important;
    padding: 12px !important;
    gap: 10px !important;
  }
  .wheel-page-new__drops-grid .baraban-item-img {
    flex: 0 0 80px !important;
    width: 80px !important;
    max-width: 80px !important;
    height: 60px !important;
  }

  .wheel-page-new--root {
    padding-bottom: max(96px, calc(28px + env(safe-area-inset-bottom, 0px))) !important;
  }
  .wheel-page-new__drops-title {
    margin-top: 20px !important;
    margin-bottom: 12px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: center !important;
  }
  .wheel-page-new__drops-title span {
    display: inline-block;
    max-width: 100%;
    line-height: 1.35;
    word-wrap: break-word;
  }
  .wheel-page-new .ba-pole__inner {
    max-height: min(72vh, 400px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wheel-page-new__wheel.baraban {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 480px) {
  .wheel-page-new .ba-pole {
    width: min(220px, 88vw) !important;
  }
  .wheel-page-new .ba-pole__inner {
    padding: 14px 14px 14px !important;
  }
  .wheel-page-new .ba-pole .baraban-title {
    font-size: clamp(13px, 4vw, 15px);
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
  }
  .wheel-page-new .ba-pole .baraban-text p { font-size: 11px; }
  .wheel-page-new__wheel.baraban {
    width: 340px !important;
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    max-width: 100% !important;
    --y: -115px !important;
    background-size: 340px 340px !important;
  }
  .wheel-page-new__wheel.baraban ul {
    width: 300px !important;
    height: 300px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    top: 20px !important;
    bottom: auto !important;
  }
  .wheel-page-new__wheel.baraban ul li {
    width: 50px !important;
    height: 38px !important;
    margin-left: -25px !important;
    margin-top: -19px !important;
  }
  .wheel-page-new__wheel.baraban ul li img {
    max-width: 46px !important;
    max-height: 36px !important;
  }
}

@media (max-width: 375px) {
  .wheel-page-new .ba-pole {
    width: min(200px, 92vw) !important;
  }
  .wheel-page-new .ba-pole__inner {
    padding: 12px 10px 12px !important;
  }
  .wheel-page-new .ba-pole .baraban-title { font-size: clamp(12px, 5vw, 14px); }
  .wheel-page-new__wheel.baraban {
    width: 300px !important;
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    max-width: 100% !important;
    background-size: 300px 300px !important;
  }
  .wheel-page-new__wheel.baraban ul {
    width: 260px !important;
    height: 260px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    top: 18px !important;
    bottom: auto !important;
  }
  .wheel-page-new__wheel.baraban ul li {
    width: 44px !important;
    height: 33px !important;
    margin-left: -22px !important;
    margin-top: -16px !important;
  }
  .wheel-page-new__wheel.baraban ul li img {
    max-width: 40px !important;
    max-height: 32px !important;
  }
}
