/* style.css */

/* Сброс базовых отступов (reset) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column; /* Светло-серый фон, как на скриншоте */
  }
  
  /* Контейнер, который растягивается на весь экран */
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  
    width: 100%;
    min-height: 100vh;
    
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* ШАПКА */
  .header {
    width: 100%;
    padding: 10px 0;
    display: flex;
    justify-content:flex-start;
    align-items: center;
    margin-right: 31px;
    margin-top: 21px;
    /* Можно задать фон или рамку, если нужно */
  }
  
  .header .logo {
    height: 72px; /* Примерная высота логотипа */
    margin-left: auto;
  }
  
  /* ОСНОВНАЯ ЧАСТЬ */
  .main {
    position: relative; /* Нужно, чтобы позиционировать плавающие объекты */
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1; /* Чтобы main растягивался по высоте */
    width: 100%;
  }
  
  /* Контейнер для плавающих объектов (мячей, шайбы) */
  .floating-objects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Чтобы клики не мешали */
  }
  
  /* Общий стиль для объектов */
  .obj {
    position: absolute;
    width: 70px; /* Примерный размер */
    height: auto;
  }
  
  /* Позиция каждого мяча отдельно — корректируйте на глаз, чтобы было похоже на скриншот */
  .soccer {
    top: 30%;
    left: 15%;
  }
  
  .tennis {
    top: 10%;
    right: 43%;
  }
  
  .puck {
    top: 30%;
    right: 15%;
    width: 80px;
  }
  
  /* Гуру по центру */
  .guru-container {
    z-index: 2; /* чтобы гуру был над плавающими объектами */
  }
  
  .guru {
    width: 200px; /* Примерный размер */
    height: auto;
    margin-top: 110px;
  }
  
  /* Кнопка WAKE UP GURU */
  .guru-btn-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .guru-btn {
    background-color: #818181;
    color: #FFFFFF;
    font-weight: bold;
    font-family:'Inter', sans-serif;
    border: none;
    padding: 12px 24px;
    border-radius: 20px; /* скруглённые углы */
    font-size: 16px;
    cursor: pointer;
    width: 200px;
  }
  
  /* НИЖНИЕ ИКОНКИ (footer) */
  .footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 28px;
  }
  
  .footer-icon {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    margin-top: 26px;
  
    /* небольшая тень */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .footer-icon img {
    width: 40px;
    height: 40px;
  }

  /* кнопка назад*/
  .back-button{
    margin-left: 60px;
    border: none;
    cursor: pointer;
  }

  .back-button img{
    width: 50px;
    height: auto;
  }
  
  .sport-button{
    border: none;
    background: none;
    cursor: pointer;
  }

  .choose-page-main{
    margin-top: 37px;
  }

  .sports-obj{
    display: flex;
    justify-content: center;
    gap: 50px;
  }

  .sports-obj img{
    width: 70px;
  }

  .options {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
    font-size: 18px;
  }
  
  .top-row {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .center-row {
    display: flex;
    justify-content: center;
  }
  
  .bubble-group {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .number{
    font-size: 20px;
  }
  
  .bubble {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
  }
  
  .green {
    background-image: url('../images/green\ 2.png');
  }
  
  .red {
    background-image: url('../images/red\ 2.png');
  }
  
  .gold {
    background-image: url('../images/yellow\ 2.png');
    margin-left: 15px;
  }

  .green, .red, .gold {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .speech {
    position: absolute;
    top: 65px;  
    left: 90px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 18px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .speech-sport {
    top: -20px;     
    left: 80px;
  }
  
  .speech-range {
    top: 60px;    
    left: 60px;
  }
  
  .intuition {
    left: -100px;
    top: 50px;
  }

  .events{
    top:50px;
    left: 100px;
  }

  .guru2-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
  }

  .bubble-group button {
    font-size: 24px;
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    background-color: #333; 
    color: white; 
    border: none; 
    cursor: pointer; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.bubble-group button:hover {
    background-color: #555;
}

.circle-container-left, .circle-container-right {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
}

.small-circle {
  width: 20px; /* Размер круга */
  height: 20px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Тень для круга */
}

.circle-container-left .small-circle:first-child {
  position: absolute;
  top:70px;
  left: -120px;
}

.circle-container-left .small-circle:nth-child(2) {
  position: absolute;
  top: 100px;
  left: -90px;
}

.circle-container-right .small-circle:first-child{
  position: absolute;
  right: 0px;
  top:110px;
}

.circle-container-right .small-circle:nth-child(2){
  position: absolute;
  right: -20px;
  top:80px;
}

.circle-container-right .small-circle:nth-child(3){
  position: relative;
  left: 65px;
}

.small-circle.choose-range{
  top: 37px;
  left:110px;
 }

.choose-range{
  position: absolute;
  left:120px;
  top: 35px;
}

.sport-button {
  opacity: 0.5;
}

.sport-button.active { /* пример активного состояния */
  opacity: 1;
}
/* адаптив */
@media (max-height: 780px){

  .back-button{
    margin-left: 40px;
    border: none;
    cursor: pointer;
  }

  .back-button img{
    width: auto;
    height: auto;
  }

  .sports-obj img {
    width: 50px;
  }

  .sports-obj .puck{
    width: 55px;
  }

  .header .logo{
    height: 50px;
  }

  .header{
    margin-top: 10px;
  }

  .bubble{
    width: 55px;
    height: 55px;
  }

  .choose-page-main{
    margin-top: 10px;
  }

  .bubble-group button{
    width: 15px;
    height: 15px;
    font-size: 18px;
  }

  .guru2-container{
    margin-top: 22px;
  }

  .guru2{
    width: 150px;
    height: 150px;
  }

  .speech {
    top: 30px;  
    left: 80px;
    position: absolute;
    background: #fff;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
  }

  .speech-sport {
    top: -30px; 
    left: 85px; 
  }

  .speech-range {
    top: 30px; 
    left: 60px; 
  }

  .intuition {
    left: -80px; 
  }

  /* Поднимаем кружочки */
  .circle-container-left .small-circle:first-child {
    top: 45px; 
    left: -90px; 
  }

  .circle-container-left .small-circle:nth-child(2) {
    top: 65px; 
    left: -70px; 
  }

  .circle-container-right .small-circle:first-child {
    top: 70px;
  }

  .circle-container-right .small-circle:nth-child(2) {
    top: 52px; 
    left: 15px; 
  }

  .circle-container-right .small-circle:nth-child(3){
    position: relative;
    left: 65px;
    top: 0;
  }

  .center-row {
    margin-top: -10px; 
  }

  .options {
    gap: 10px; 
  }

  .small-circle{
    width: 15px;
    height: 15px;
  }

 .small-circle.choose-range{
  top:15px;
  left:100px;
 }

 .footer-icon{
  margin-top: 15px;
 }

 .footer {
  margin-bottom: 10px;
}
}

/*  table screen */
.table-line {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 60px;
  border-top: 1.5px solid #000000;
  border-bottom: 1.5px solid #000000; /* Горизонтальная линия */
}

.cell {
  font-family: 'Inter';
  font-size: 20px;
  font-style: italic;
}

.cell-70 {
  width: 70%;
  display: flex;
  font-size: 16px;
}

.cell-10 {
  width: 10%;
  text-align: center;
}

.cell-20 {
  width: 20%;
  display: flex;
  justify-content: center;
}

.divider {
  border-left: 1.5px solid #000;
  height: 100%;
}

.table-sport{
  width: 45px;
  height: 45px;
  align-items: center;
}

.table-puck{
  width: 45px;
  height: 45px;
  align-items: center;
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  padding: 0 10px;
  gap: 7px;

}

.team-title {
  white-space: normal;
  font-size: clamp(12px, 2.5vw, 18px);
  word-wrap: break-word; 
  line-height: 1.2;
}

.totals-wrapper {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.totals-wrapper-main {
  display: flex;
  justify-content: flex-end;
}

.guru-center {
  display: flex;
  justify-content: center; 
  width: 100%;
}

.guru-center img {
  max-width: 150px; 
  height: auto;
  margin-top: 10px;
}

.totals {
  position: absolute;
  right: 0;
  top: 0;
  text-align: right;
}

.totals-main {
  position: static;
}

.coef-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 26px;
  color: #000000;
}

.coin-circle {
  width: 28px;
  height: 28px;
  background-color: #FFD700; /* золотой цвет */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #000000;
  margin-left: 10px;
  margin-top: 5px;
}

.win-amount {
  margin-top: 5px;
  font-size: 26px;
  color: #0D710F;
}

.buttons-container{
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.action-button {
  background-color: #818181;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  cursor: pointer;
  width: 150px;
  padding: 10px 0;
}

.main-content {
  width: 100%;
  padding: 0 15px; /* Добавляет отступы слева и справа */
  box-sizing: border-box;
  flex: 1;
   /* Учитывает отступы в ширине */
}

.guru-btn.active {
  background-color: green;
  color: white;
  cursor: pointer;
}

.guru-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.table-scroll {
  max-height: 200px; /* height=60 * 3 */
  overflow-y: auto;
}

.table-scroll-main {
  max-height: none;
  overflow-y: visible;
}

.table-line-main {
  height: 50px;
}

/* history-screen*/
.history-title {
  text-align: center;
  margin: 16px 0;
  font-size: 20px;
  font-weight: bold;
}

.history-line .cell {
  font-size: 12px;
  line-height: 1.2;
}

.cell-30 {
  width: 30%;
  text-align: center;
  font-size: 20px;
}

.result-dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.result-dot.green {
  background-color: limegreen;
}

.result-dot.red {
  background-color: red;
}

.long-scroll{
  max-height: 400px;
  overflow-y: auto;
}

.footer-icon.active {
  background-color: #5E5E5E; /* Замените на нужный вам цвет */
}
/* instruction-screen*/ 
.instructions-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'Inter', sans-serif;
}

.instructions-title {
    margin: 0 0 10px 0;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
}


.instructions-box {
    background-color: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    line-height: 1.5;
    color: #333;
    font-size: 16px;
    max-height: 380px;
    overflow-y: auto;
}

/* wallet-screen*/ 
.balance {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.balance-label {
  margin-bottom: 4px;
}

.balance-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.points {
  font-size: 18px;
}

.unit {
  font-size: 18px;
  font-weight: normal;
  margin-left: 4px;
}

.bet-box {
  background: white;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  width: 100%;
}

.bet-title {
  margin: 0 0 16px;
  font-size: 26px;
}

.bet-options {
  display: flex;
  justify-content: space-between;
}

.bet-options label {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  font-weight: bold;
  font-size: 32px;
  font-family: 'Inter', sans-serif;
}

.bet-options input[type="radio"] {
  margin-top: 8px;
  transform: scale(1.5); 
}


.buttons-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 30px 0;
  width: 100%;
}

.confirm-btn {
  margin-bottom: 30px; /* небольшой горизонтальный отступ между кнопками */
}

/* profile-screen */
.telegram-info{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40%;
  font-size: 24px;
  font-family: 'Inter', sans-serif;
  gap:20px;
}

.telegram-username {
  font-weight: bold;
  color: #0088cc;
}

.attempts-info {
  color: #555;
}

.no-attempts-message {
  display: none;
  margin-top: 4px;
  font-size: 12px;
  color: red;
  text-align: center;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}
#ask-guru-btn:disabled {
  opacity: 0.4 !important;
  pointer-events: none !important;
}
