*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Сочные, уникальные градиенты и цвета */
  --neon-pink: #f779b8;
  --neon-purple: #a25bff;
  --bg-dark: #f18aff;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  
  /* Эффект матового стекла */
  --glass-bg: rgb(184, 86, 176);
  --glass-border: rgb(116, 49, 49);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, sans-serif;
  font-weight: 500;
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 0%, #2a0a3a 0%, var(--bg-dark) 70%);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#app {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100%;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0);
}

@media (min-width: 768px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  #app {
    max-height: none;
    min-height: 102vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: max(12px, env(safe-area-inset-top, 0));
    padding-bottom: 40px;
    transform: scale(0.88);
    transform-origin: top center;
  }
}

/* Эффект свечения на фоне */
#app::before {
  content: "";
  position: absolute;
  top: 20%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: var(--neon-purple);
  filter: blur(150px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}
#app::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: var(--neon-pink);
  filter: blur(120px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

/* Шапка */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  flex-shrink: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(to right, #fff, #f0b5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions .icon-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Общий контейнер экранов */
.app-main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.screen {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  padding: 0 24px 100px 24px;
}
.screen.scrollable { overflow-y: auto; -webkit-overflow-scrolling: touch; }

.screen.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loader */
.loader-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid var(--glass-border);
  border-top-color: var(--neon-pink);
  margin: 100px auto 20px;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}
.loader-text {
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Гласс-карточки (основа дизайна) */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 24px;
}

/* Окно после спина — на весь экран, фон: fail.png / win.png */
.spin-result-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px calc(24px + env(safe-area-inset-bottom, 0));
  isolation: isolate;
  touch-action: manipulation;
}
.spin-result-content-centered { align-items: center; width: 100%; }
.spin-result-win-btns { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 20px; width: 100%; max-width: 320px; }
.spin-result-claim-btn { background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple)); color: #fff !important; border: none; padding: 16px 24px; font-size: 16px; font-weight: 700; border-radius: 999px; width: 100%; max-width: 280px; }
.spin-result-close-btn { background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.4); padding: 12px; }
.spin-result-overlay.hidden {
  display: none !important;
}
.spin-result-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.spin-result-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 16px;
}
.spin-result-text {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
  padding: 12px 20px;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 90vw;
  box-sizing: border-box;
}
.spin-result-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.spin-result-btn:active {
  transform: scale(0.95);
}
.spin-result-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Инструкция в стиле приложения */
.instructions-panel {
  margin-bottom: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 24px;
}
.instructions-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin: 0 0 16px;
}
.instructions-list {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
}
.instructions-list li {
  margin-bottom: 8px;
}

/* Экран правил: картинка = весь экран, масштаб с viewport; крестик, точки, продолжить — поверх картинки */
.screen-rules-full {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.screen-rules-full.active {
  display: block;
}
.screen-rules-full .rules-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen-rules-full .rules-slider::-webkit-scrollbar {
  display: none;
}
.screen-rules-full .rules-slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}
.screen-rules-full .rules-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.screen-rules-full .rules-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
}
.screen-rules-full .rules-overlay > * {
  pointer-events: auto;
}
.screen-rules-full .rules-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0));
  left: calc(12px + env(safe-area-inset-left, 0));
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.screen-rules-full .rules-close:active {
  transform: scale(0.95);
}
.screen-rules-full .rules-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.screen-rules-full .rules-arrow-prev {
  left: calc(8px + env(safe-area-inset-left, 0));
}
.screen-rules-full .rules-arrow-next {
  right: calc(8px + env(safe-area-inset-right, 0));
}
.screen-rules-full .rules-arrow:active {
  transform: translateY(-50%) scale(0.95);
}
.screen-rules-full .rules-arrow-next:active {
  transform: translateY(-50%) scale(0.95);
}
.screen-rules-full .rules-dots {
  position: absolute;
  bottom: calc(72px + env(safe-area-inset-bottom, 0));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.screen-rules-full .rules-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.screen-rules-full .rules-dot.active {
  background: #fff;
  transform: scale(1.2);
}
.screen-rules-full .rules-continue-btn {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 32px);
  max-width: 280px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}
.screen-rules-full .rules-continue-btn:active {
  transform: translateX(-50%) scale(0.98);
}

/* Юзер-панель */
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  background: rgba(104, 31, 104, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-avatar-initials {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* Рулетка */
.roulette-wrapper {
  margin-bottom: 24px;
  padding: 30px 16px;
  position: relative;
  overflow: hidden;
}
.roulette-wrapper::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
}
.roulette-block {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.reel-viewport {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  background: rgba(255, 37, 201, 0.4);
  box-shadow: inset 0 5px 15px rgba(236, 33, 255, 0.8), 0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
}
/* Затемнение сверху и снизу барабана */
.reel-viewport::before,
.reel-viewport::after {
  content: "";
  position: absolute;
  left: 0; right: 0; height: 30px;
  z-index: 2;
  pointer-events: none;
}
.reel-viewport::before { top: 0; background: linear-gradient(to bottom, rgba(56, 2, 44, 0.8), transparent); }
.reel-viewport::after { bottom: 0; background: linear-gradient(to top, rgba(56, 2, 44, 0.8), transparent); }

.reel-strip {
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reel-item {
  height: 36.666667px;
  min-height: 36.666667px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(255,255,255,0.4);
  transform-origin: center center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.reel-item.reel-item--neighbor {
  opacity: 0.3;
  transform: scale(0.7);
}

/* Билеты */
.tickets-block {
  text-align: center;
  margin-bottom: 24px;
}
.tickets-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.tickets-value {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(to bottom, #fff, #b3b3b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(255,255,255,0.2));
}

/* Уникальная Кнопка */
.btn-glossy {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 0, 127, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-glossy::after {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.btn-glossy:active {
  transform: scale(0.97);
  box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4);
}
.btn-glossy:disabled {
  background: rgba(255,255,255,0.1);
  box-shadow: none;
  color: var(--text-muted);
}

/* Карточки Друзей и Статистики */
.invite-title {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.2;
}
.invite-title span {
  color: var(--neon-pink);
}
.stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  flex: 1;
  background: rgb(82, 24, 60);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}
.stat-value {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Страница друзей: прозрачность 70% у всех фонов */
#screen-friends .glass-panel {
  background: rgba(184, 86, 176, 0.7);
}
#screen-friends .stat-box {
  background: rgba(82, 24, 60, 0.7);
}

/* Кнопка «Скопировать ссылку» на странице друзей — в два раза больше */
#screen-friends #copy-ref-btn {
  width: 112px;
  min-width: 112px;
  height: 56px;
}
#screen-friends #copy-ref-btn img {
  width: 56px;
  height: 56px;
}

/* Кастомный Таббар: блок на месте (bottom 24). Рамка (glass) 75px — низ на 12px ниже обёртки */
.tabbar-wrapper {
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  height: 63px;
  overflow: visible;
  z-index: 100;
}
.tabbar-glass {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 75px;
  box-sizing: border-box;
  background: rgba(104, 31, 104, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.tab-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.3s;
  cursor: pointer;
}
.tab-item.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.2);
}
/* Место под твои иконки */
.custom-icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
  transition: 0.3s;
}
.tab-item.active .custom-icon {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

/* История и Профиль */
.profile-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.profile-tab {
  flex: 1;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
}
.profile-tab.active {
  background: var(--neon-pink);
  color: #fff;
  border-color: var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
}

/* Фон под вкладками Призы и История — матовое стекло с настоящим блюром фона */
.profile-panel-glass {
  background: rgba(60, 25, 55, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 24px;
  min-height: 120px;
  isolation: isolate;
  transform: translateZ(0);
}

/* Карточка приза — картинка на весь блок, без обрезки */
.prize-card {
  position: relative;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prize-card-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.history-item-value {
  font-weight: 900;
  color: var(--neon-pink);
  font-size: 16px;
}

/* Утилиты */
.sr-only { display: none; }
.hidden { display: none !important; }

.subscribe-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#screen-subscribe.hidden,
.screen.subscribe-gate.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.subscribe-gate-inner {
  max-width: 340px;
  width: 100%;
  background: rgba(104, 31, 104, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.subscribe-gate-title { font-size: 22px; font-weight: 800; margin: 0 0 12px; background: linear-gradient(to right, #fff, #f0b5ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subscribe-gate-desc { font-size: 14px; color: rgba(255,255,255,0.9); margin: 0 0 24px; line-height: 1.4; }
.subscribe-gate-label { font-size: 14px; color: rgba(255,255,255,0.95); margin: 0 0 12px; }
.subscribe-gate-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.subscribe-gate-links a { color: #e0b5ff; text-decoration: underline; font-size: 13px; word-break: break-all; }
.subscribe-gate-links a:hover { color: #fff; }
.subscribe-gate-error { color: #ffb5b5; font-size: 14px; margin: 0 0 12px; }
.subscribe-check-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Таббар: блок bottom 24, обёртка 63px; рамка 75px — низ рамки на 12px ниже */
.tabbar-wrapper {
  bottom: 24px !important;
  height: 63px !important;
  overflow: visible !important;
}
.tabbar-glass {
  background: rgba(104, 31, 104, 0.28) !important;
  height: 75px !important;
  max-height: none !important;
  padding: 0 12px !important;
  justify-content: space-between !important;
  overflow: visible !important;
  align-items: center !important;
  position: relative;
}
.tab-item {
  padding: 2px 0 !important;
  flex: 1;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}
.tab-item.active {
  background: transparent !important;
  box-shadow: none !important;
}
.tabbar-glass .custom-icon {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}
.tab-item.active .custom-icon {
  width: 80px !important;
  height: 80px !important;
}

/* Главный экран: рулетка, билеты и кнопка ближе к верху (перебивает любые отступы) */
#screen-main .roulette-wrapper.glass-panel {
  margin-top: 10px !important;
}
#screen-main .tickets-block {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}
#screen-main .btn-glossy {
  margin-top: 4px !important;
  margin-bottom: 24px !important;
}