@font-face {
  font-family: 'Poppins-Regular';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  font-family: Poppins-Regular;
  box-sizing: border-box;
}

body {
  font-family: Poppins-Regular;
  background: #1a1a1a url(../images/bg-t.jpg) center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: -1;
  pointer-events: none;
}

#app {
  width: 100%;
  min-height: 100vh;
}

.v-application--wrap {
  width: 100%;
  min-height: 100vh;
}

.wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
}

main {
  width: 100%;
  max-width: 420px;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  display: block;
  margin-bottom: 10px;
}

.logo img {
  width: 160px;
  height: auto;
}

.main-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-info h1 {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  color: #fff;
  font-family: Poppins-Regular;
  background-repeat: no-repeat;
  box-sizing: border-box;
  flex: 1 1 auto;
  max-width: 100%;
  margin: 0;
  outline: none;
  padding: 0;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.94vw;
  text-transform: uppercase;
  font-size: 20px;
}

.roulette-logo {
  width: 24vw;
  height: auto;
}

.main-info p {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-rendering: optimizeLegibility;
  font-weight: 400;
  color: #fff;
  font-family: Poppins-Regular;
  background-repeat: no-repeat;
  box-sizing: border-box;
  margin: 0;
  outline: none;
  padding: 0;
  margin-bottom: 16px;
  line-height: 120%;
  text-align: center;
  font-size: 12px;
}

.win-info {
  display: none;
  flex-direction: column;
  align-items: center;
}

.win-info.flex {
  display: flex;
}

.win-info p {
  font-size: 18px;
  color: #ffd700;
  text-transform: uppercase;
}

.win-info h2 {
  font-size: 28px;
  color: #4caf50;
  font-weight: 700;
  text-transform: uppercase;
}

.roulette-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px 0;
}

.roulette {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
  margin: 0;
  outline: none;
  padding: 0;
  background: url(../images/roulette-border.png) 50% no-repeat;
  background-size: contain;
  border-radius: 50%;
  box-shadow: 0 0 13.89vw 2.78vw rgba(50, 104, 212, 0.5);
  position: relative;
  height: 56.56vw;
  width: 56.56vw;
  max-width: 400px;
  max-height: 400px;
}

/* Section - центральная вращающаяся часть */
.roulette .section,
#roulette.section {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-rendering: optimizeLegibility;
  background-repeat: no-repeat;
  box-sizing: border-box;
  border-style: none;
  margin: 0;
  outline: none;
  padding: 0;
  height: 100%;
  left: 0;
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 0;
  transform-origin: center;
  width: 100%;
  transition: none; /* Отключаем CSS transition, используем JS анимацию */
}

/* Roulette rotation - управляется через JavaScript */
#roulette {
  transform-origin: center center;
  transition: none; /* Отключаем CSS transition, используем JS анимацию */
}

/* Ball - шарик вращается по окружности border */
#ball {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
  margin: 0;
  outline: none;
  padding: 0;
  background: url(../images/ball.png) 50% no-repeat;
  background-size: contain;
  display: none;
  height: 3.5%;
  position: absolute;
  width: 3.5%;
  /* Позиционируем шарик в центре родителя */
  top: 50%;
  left: 50%;
  /* Анимация управляется через JavaScript */
  transform-origin: center center;
  transform: translate(
    -50%,
    -50%
  ); /* Начальная позиция будет установлена через JS */
  transition: none; /* Отключаем CSS transition, используем JS анимацию */
  z-index: 10;
}

.buttons {
  width: 100%;
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 0 10px;
}

.btn {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  font: inherit;
  overflow: visible;
  text-transform: none;
  color: inherit;
  -webkit-appearance: button;
  appearance: button;
  margin: 0;
  outline: none;
  padding: 0;
  position: relative;
  border: none;
  cursor: pointer;
  width: 40.56vw;
  background-color: transparent !important;
  background-size: 100% 100%;
  border-color: transparent !important;
  flex: 1;
  max-width: 200px;
  aspect-ratio: 3.5 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn.black {
  background: url(../images/black.png) 50% no-repeat;
  background-color: transparent !important;
  background-size: 100% 100%;
  border-color: transparent !important;
}

.btn.black::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 96%;
  box-shadow: 0 0 8.43vw 2.2vw rgba(23, 65, 190, 0.4);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

.btn.red {
  background: url(../images/red.png) 50% no-repeat;
  background-color: transparent !important;
  background-size: 100% 100%;
  border-color: transparent !important;
}

.btn.red::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 96%;
  box-shadow: 0 0 8.43vw 2.2vw rgba(255, 0, 0, 0.35);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

.btn span {
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: #09196d;
  border-radius: 20px;
  padding: 30px 25px;
  max-width: 90%;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.75);
  border: 2px solid #444;
  animation: slideUp 0.4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  z-index: 1001;
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-title {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

.modal-body {
  text-align: center;
  margin-bottom: 25px;
}

.modal-text {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 500;
  text-transform: uppercase;
}

.modal-time {
  font-size: 18px;
  font-weight: 700;
  color: #ff6b6b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-footer {
  text-align: center;
}

.claim-bonus-btn {
  width: 100%;
  padding: 8px 16px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
  position: relative;
  overflow: hidden;
  line-height: 1.2;
}

.claim-bonus-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.claim-bonus-btn:hover::before {
  left: 100%;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
  }
}

/* Mobile optimizations */
