:root {
  --bg: #0f1724; /* page background */
  --card: #0b1220; /* card background */
  --muted: #9aa3b2;
  --glass: rgba(255, 255, 255, 0.03);
  --accent-start: #a855f7; /* purple */
  --accent-end: #ec4899; /* pink */
  --card-radius: 16px;
  --gap: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
}

body {
  /*background-color: #0e1320;*/
  background-image: url("/assets/back/bir.gif");
  color: white;
  font-family: Palatino, Palatino Linotype, Palatino LT STD, serif;
  margin: 0;
  padding: 20px;
  padding-bottom: 100px; /* чтобы контент не упирался в меню */
  font-weight: 700;
  font-weight: 18px;
  line-height: 100%;
  letter-spacing: -2%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
}

body::-webkit-scrollbar {
  width: 0px; /* Ширина всего элемента навигации */
}

.rapp {
  max-width: 400px;
  margin: auto;
}

.main {
  margin-bottom: 50px;
}
.wrapper_game {
  width: 100%;
}
/* Верхняя панель */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2225364d;
  padding: 15px 30px;
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 20px;
  border: 1px solid #2b313f33;
}

.username {
  font-weight: 500;
}

.balance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.balance img {
  margin-top: -5px;
}

/* Табуляция */
.tabs {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  max-width: 400px;
  margin-bottom: 15px;
}

.tab {
  padding: 14px 12px;
  border-radius: 14px;
  background: transparent;
  color: #7d85a8;
  font-size: 14px;
  cursor: pointer;
  background: #2225364d;
  color: #fff;
  border: 1px solid #2b313f33;
  margin-right: 7px;
  width: 75px;
  text-align: center;
  font-size: 14px;
}
.tab.active {
  color: #25ff7d;
}
/* Центральное поле */
.multiplier-box {
  background: #111833;
  width: 100%;
  max-width: 400px;
  height: 200px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: left;
  margin-bottom: 20px;
  box-shadow: inset 0 0 10px #25ff7d20;
  padding-left: 20px;
  padding-top: 10px;
}

.inputbet {
  max-width: 50px;
  text-decoration: none;
  background: #272d47;
  outline: none;
  font-size: 16px;
  color: white;
  text-align: center;
  border: 0px solid #007bff;
}
.multiplier {
  font-size: 48px;
  color: #25ff7d;
  font-weight: bold;
  text-shadow: 0 0 15px #25ff7d;
  transition: all 0.2s ease-out;
}

.multiplier_info {
  font-size: 18px;
  color: #25ff7d;
  font-weight: bold;
  text-shadow: 0 0 15px #25ff7d;
  transition: all 0.2s ease-out;
}

/* Кнопки ставок */
.bet-panel {
  background: #1b2033;
  padding: 16px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bet-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bet-buttons button {
  background: #272d47;
  border: none;
  color: white;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.bet-buttons button:hover {
  background: #323a5a;
}

.place-bet {
  background: #25ff7d;
  color: #000;
  border: none;
  padding: 14px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.place-bet:hover {
  background: #00cc66;
}

.balans-panel {
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.balans-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.balans-buttons button {
  background: #25ff7d;
  border: none;
  color: #000;
  padding: 15px 0;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.balans-buttons .red {
  background: #ff2580;
}

/* --- Нижнее плавающее меню --- */
.bottom-nav {
  position: fixed;
  bottom: 10px;
  background: #2225364d;
  border: 1px solid #2b313f33;
  border-radius: 14px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: calc(100% - 40px);
  max-width: 400px;
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  padding: 10px;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  flex: 1;
  font-size: 12px;
  transition: 0.2s;
  font-weight: 500;
  padding: 8px 0px;
}

.nav-item i {
  font-size: 22px;
  margin-bottom: 4px;
}

.nav-item.active {
  background: #ffffff;
  color: #007aff;
  border-radius: 14px;
}

.nav-item.active i {
  color: #007aff;
}

.winners {
  background-color: #2978c0;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  margin-top: 20px;
}

.winners h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #ffffff;
  text-align: left;
}

.winner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2225364d;
  border: 1px solid #2b313f33;
  padding: 14px 12px;
  border-radius: 8px;
  font-size: 16px;
}

.winner-item span {
  color: #ffffff;
}

.winner-item .num {
  font-size: 16px;
}

.placeinfo {
  z-index: 9999;
  background: #0d1420;
  bottom: 10px;
  width: calc(100% - 20px);
  position: absolute;
  height: 100vh;
  max-width: 400px;
  margin-left: -10px;
}

.placeinfo .wrapper {
  margin-top: calc(50% + 0px);
  text-align: center;
}

.placeinfo .img img {
  max-width: 200px;
  height: 200px;
}

.placeinfo .text {
  font-size: 24px;
  color: #25ff7d;
  font-weight: bold;
  text-shadow: 0 0 15px #25ff7d;
  transition: all 0.2s ease-out;
  margin-top: 15px;
}

.placeinfo .btnposition {
  margin-top: 15px;
}

.placeinfo .btnposition {
  margin-top: 15px;
}

.placeinfo .btnposition .place-bet {
  width: 100%;
}

/* Card */
.card {
  margin-top: 20px;
  max-width: 520px;
  max-width: 94vw;
  background: #2225364d;
  border: 1px solid #2b313f33;
  border-radius: 14px;
  padding: 22px;
}

.card-header {
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
  background-color: rgb(0 0 0 / 0%);
  padding: 0px;
  border-bottom: 0px;
}

.stats-row {
  display: flex;
  gap: var(--gap);
}

.stat {
  flex: 1 1 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  min-height: 88px;
}

/* Big number style */
.value {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
  /* gradient text */
  color: #fff;
}

.label {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  text-transform: none;
}

/* smaller number font for percentage to mimic image (wider) */
.value.percent {
  font-size: 36px;
}

/* Responsive: stack on narrow screens */
@media (max-width: 420px) {
  .stats-row {
    flex-direction: row;
  }
  .value {
    font-size: 34px;
  }
  .value.percent {
    font-size: 32px;
  }
}

.gamearena {
  width: calc(100% + 40px);
  margin-left: -20px;
  min-height: 250px;
  overflow: hidden;
  margin-top: 10%;
}

.lottietransformgibli {
  transform: scaleX(-1);
  width: 177px;
  margin: auto;
}

.container_anime {
  text-align: center;
  height: 177px;
  margin-top: -45px;
}

@keyframes leftWed {
  from {
    transform: translate(-150%, 20%);
  }
  to {
    transform: translate(0%, 20%);
  }
}

.anime_start {
  animation: leftWed 0.2s ease-in-out 0s 1 normal forwards;
}

@keyframes rightWed {
  from {
    transform: translate(0%, 20%);
  }
  to {
    transform: translate(150%, 20%);
  }
}

.anime_end {
  animation: rightWed 0.2s ease-in-out 0s 1 normal forwards;
}

.counter_aime {
  text-align: center;
  font-size: 58px;
}

.counter_aime.green {
  color: #25ff7d;
}

.counter_aime.red {
  color: #ff2580;
}

@keyframes animeToto {
  from {
    transform: translate(0%, 0%);
  }
  to {
    transform: translate(80%, 0%);
  }
}

.totowolk {
  width: 100%;
  height: 143px;
  /*animation: animeToto 8s ease-in-out 0s 1 normal forwards;*/
}

.totowolk div {
  width: 100%;
  height: 143px;
  /*animation: animeToto 8s ease-in-out 0s 1 normal forwards;*/
}

.totowolklottie {
  transform: scaleX(-1);
  width: 177px;
}
.fwm_l {
  width: 24px;
  margin-top: -7px;
}

.panel_bet {
  width: calc(100% - 40px);
  height: 101px;
  background: #2225364d;
  border: 1px solid #2b313f33;
  border-radius: 14px;
  margin-left: 20px;
  margin-top: -35px;
  z-index: 9;
  position: relative;
}

.bet {
  display: flex;
  justify-content: space-between;
  padding: 15px;
}

.counter {
  padding: 0px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.counter .btn {
  background: #3a3e57ab;
  border: 1px solid #768393;
  width: 40px;
  height: 30px;
  font-size: 24px;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  margin-top: -7px;
}

.counter .btn div {
  margin-top: -5px;
}

.counter .value {
  font-size: 28px;
  color: white;
  width: 80px;
  text-align: center;
  font-weight: 400;
}

.quick-values {
  display: flex;
  gap: 10px;
  padding: 0px 0px;
  margin-top: 5px;
}

.quick-values button {
  background: #d9d9d969;
  border: none;
  color: white;
  width: 40px;
  height: 30px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
}

.right_bet {
  width: -webkit-fill-available;
}

.bet-btn {
  background: #25ff7d;
  border: none;
  color: #000;
  font-size: 24px;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  height: 100%;
  width: -webkit-fill-available;
  margin-left: 15px;
}

.confeti {
  width: 100%;
  height: 323px;
  margin: auto;
  position: absolute;
  max-width: 400px;
}

.confetilottie {
  margin: auto;
  margin-top: -200px;
}

.yelowbet {
  background: #e2c158;
  border: none;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  height: 77px;
  width: 94%;
  margin: auto;
  margin-top: 3%;
  margin-left: 3%;
}

.blackbet {
  background: #233041;
  border: none;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  height: 77px;
  width: 94%;
  margin: auto;
  margin-top: 3%;
  margin-left: 3%;
  color: white;
}

.greenbet {
  background: #25ff7d !important;
  color: #000;
}

.arenanoti {
  width: calc(100% - 40px);
  height: 101px;
  background: #2b313f33;
  z-index: 999;
  margin-left: 20px;
  border: 1px solid #2b313f33;
  border-radius: 14px;
  display: flex;
  padding: 15px;
  justify-content: space-between;
}

.anleft {
  width: 50%;
}

.anrigth {
}

.anh2 {
  font-size: 16px;
}

.anh1 {
  font-size: 28px;
}

@media (max-width: 360px) {
  .anh1 {
    font-size: 24px;
  }
}

.anleft .anh2 {
  margin-top: 8px;
}

.anleft .anh1 {
  margin-top: 20px;
}

.anrigth .anh1 {
  margin-top: 12px;
}

.anrigth .anh2 {
  margin-top: 20px;
}

.dnone {
  opacity: 0;
}

.colorred {
  color: #ff2580;
}
.colorgreen {
  color: #25ff7d;
}

.loadv1 {
  width: calc(100% + 40px);
  height: 100vh;
  position: absolute;
  z-index: 9999;
  margin-left: -20px;
  background-image: url(/assets/back/bir.gif);
}

.bottom_place {
  width: 100%;
  height: 10vh;
}

.inputnumb {
  width: 75px;
  height: 30px;
  background: #22253600;
  border: 0px;
  text-align: center;
  color: #fff;
}
