@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  box-sizing: border-box;
}

.custom-select {
  width: fit-content;
  font-size: 14px;
  color: #9f9cbe;
  cursor: pointer;
  user-select: none;
}

.custom-select:has(.lang__list:not([hidden])) .lang__arrow {
  transform: rotate(180deg);
}

.lang__arrow {
  margin-left: auto;
  width: 12px;
  height: 7px;
  transition: transform 0.2s ease;
}

.lang__label {
  white-space: nowrap;
}

.lang__current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  padding: 8px 12px;
  gap: 6px;
  position: relative;
}

.lang__list {
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  border-radius: clamp(34px, 2.2vw, 44px);
  background: #1b1d2a;
  list-style: none;
  padding: 10px;
  margin: 0;
  z-index: 999;
  width: 200px;
  box-shadow: 0 10px 30px rgba(20, 10, 40, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.lang__current::before,
.lang__list::before {
  content: '';
  position: absolute;
  inset: 0px;
  padding: 3px;
  border-radius: clamp(34px, 2.2vw, 44px);
  background: linear-gradient(135deg, #dc5df5 0%, #2f21a4 50%, #8f227a 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.lang__current > .lang__flag {
  width: 20px;
  height: 20px;
}

.lang__list li {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: clamp(34px, 2.2vw, 44px);
}

.lang__list li > img,
svg {
  width: 24px;
  height: 24px;
}

.lang__list li:hover {
  background: #09b0fd1a;
}

.wheel-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: 99999999999;
  display: none;
}

.wheel-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  width: 100%;
  max-width: 358px;
  padding: 20px;
  flex-direction: column;
  border-radius: 16px;
  background: #20222e;
  box-shadow: 0 16px 64px 0 rgba(0, 0, 0, 0.32);
  margin: 0 auto 24px;

  @media (min-width: 768px) {
    margin: 0 0 auto 0;
    max-width: 400px;
  }
}

.wheel-modal__overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.72);
}

.wheel-modal__content--title {
  color: #f9fff9;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1.28px;
}

.wheel-modal__content--title > .wheel-modal__content--title__subtitle {
  color: #78cfff;
}

.wheel-modal__content--bonus {
  margin-bottom: 20px;
}

.wheel-modal__content--bonus__item {
  border-radius: 16px;
  border: 6px solid #eb96fb;
  background: #5eb3e2;
  box-shadow: 0 12px 0 0 #000 inset, 0 6px 0 0 #000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px 16px;
  margin: 20px 0;
}

.wheel-modal__content--bonus__item img {
  width: auto;
}

.wheel-modal__content--bonus__item--text {
  color: #000;
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.96px;
  max-width: 156px;
  width: 100%;
}

.wheel-modal__content--bonus__text {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.form {
  display: flex;
  flex-direction: column;
}

.form > label {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 8px;
}

.form > input,
.form__password-field {
  display: flex;
  height: 40px;
  padding: 10px 12px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: #2e3141;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  outline: none;
  margin-bottom: 16px;
  cursor: pointer;
}

.form__password-field > input {
  outline: none;
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.form > input::placeholder,
.form__password-field > input::placeholder {
  color: #9f9cbe;
}

.form__checkbox {
  display: block;
  margin-top: 20px;
}

.form__checkbox input {
  padding: 0;
  height: initial;
  width: initial;
  margin-bottom: 0;
  display: none;
  cursor: pointer;
}

.form__checkbox label {
  position: relative;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}

.form__checkbox label > a {
  color: #09b0fd;
}

.form__checkbox label:before {
  content: '';
  -webkit-appearance: none;
  background-color: #2a2d3c;
  border: 2px solid #454859;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
  padding: 10px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  margin-right: 5px;
  border-radius: 6px;
}

.form__checkbox input:checked + label:before {
  border-color: #cf359c;
  background-color: #cf359c;
  background-image: url('/uploads/checkbox-icon.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.form__button {
  margin-top: 20px;
  border-radius: 12px;
  border: 2px solid #d69fff;
  background: linear-gradient(180deg, #932eff -21.88%, #cf359c 100%);
  display: flex;
  height: 48px;
  padding: 12px 16px;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
}

.form__button:disabled {
  opacity: 0.2;
  pointer-events: none;
}

.form__password-field {
  position: relative;
  margin-bottom: 0;
}

.form__password-field .form__toggle-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.form__password-field .form__toggle-btn .form__icon-hide {
  display: none;
}

.form__password-field.show .form__toggle-btn .form__icon-show {
  display: none;
}
.form__password-field.show .form__toggle-btn .form__icon-hide {
  display: inline;
}

.form__error {
  display: none;
  font-size: 12px;
  color: #e5004d;
  margin: 5px 0;
}

.is-invalid {
  border: 1px solid #e5004d !important;
  margin-bottom: 0 !important;
}

/* Курочка */

h1 {
  font-family: 'Inter', sans-serif;
  margin: 0;
}

img {
  width: 100%;
  height: 100%;
}

.body {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 300;
  padding: 0;
  margin: 0;
  --text-color-white: #ffffff;
  --text-color-black: #000000;
  --bg-dark: #1a1a1e;
  color: var(--text-color-white);
  background: var(--bg-dark);
  background-image: url(/uploads/bg-web.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: relative;
}
@media screen and (max-width: 1366px) {
  .body {
    background-image: url(/uploads/bg-tab.png);
  }
}
@media screen and (max-width: 768px) {
  .body {
    background-image: url(/uploads/bg-mob.png);
  }
}

.main-content {
  padding: clamp(75px, 5.2vw, 100px) 0;
}

.page {
  width: 90%;
  max-width: 990px;
  margin: 0 auto;
}

.coin-bg {
  position: absolute;
  left: -150px;
  top: 110px;
  z-index: 5;
  max-width: 200px;
  max-height: 195px;
}

@media screen and (max-width: 768px) {
  .coin-bg {
    display: none;
  }
}

@media screen and (max-width: 1150px) {
  .coin-bg {
    left: -100px;
    top: 100px;
  }
}

@media screen and (min-width: 1920px) {
  .coin-bg {
    left: -200px;
    top: 100px;
    max-width: 278px;
    max-height: 270px;
  }
}

.title {
  font-family: 'Inter', 'Arial';
  font-weight: 200;
  font-size: clamp(34px, 2.8vw, 54px);
  line-height: clamp(34px, 2.8vw, 54px);
}

.title b {
  font-weight: 700;
}

.entry__title {
  text-align: center;
  margin-bottom: clamp(30px, 2.4vw, 47px);
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -5px;
  padding: 10px;
  border-radius: clamp(34px, 2.2vw, 44px);
  background: linear-gradient(135deg, #dc5df5 0%, #2f21a4 50%, #8f227a 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.game-first {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(35px, 3vw, 60px);
  z-index: 3;
  background: #0000004d;
}

.game-first__img {
  max-width: 80%;
}

.chicken-box {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  transform: translate(40%);
  pointer-events: none;
  transition: transform 0.3s linear;
}

.chicken-box .chicken-img {
  transition: all 0.3s linear;
}

.chicken-container {
  width: 100%;
  max-width: 21%;
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: center;
}

.bonus-img {
  display: none;
  max-width: 65%;
  opacity: 0;
}

.bonus-img--visible {
  opacity: 1;
  display: block;
}

.coins {
  width: 71%;
  position: absolute;
  top: 33%;
  right: 2%;
  display: grid;
  gap: 5%;
  grid-template-columns: repeat(4, 1fr);
}
.coins__item {
  position: relative;
  display: flex;
  max-width: 90%;
}
.coins__item::before {
  content: '';
  display: none;
  position: absolute;
  inset: 0;
  background-image: url(/uploads/coin-gold.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.coins__item--before::before {
  display: flex;
}

.game-container {
  position: relative;
  width: 100%;
  display: flex;
  border-radius: clamp(34px, 2.2vw, 44px);
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .game-container {
    min-height: 65vh;
  }
}

.game-container .btn--step {
  display: none;
}

.game-container--active .chicken-box {
  transform: translate(3%, -10%);
}

.game-container--active .chicken-img {
  filter: drop-shadow(0 0 10px #ff28b7);
}

.game-container--active .chicken-container {
  max-width: 19%;
}

.game-container--active .game-first {
  background: none;
}

.game-container--active .btn--start {
  display: none;
}

.game-container--active .btn--step {
  display: flex;
}

@media screen and (max-width: 768px) {
  .desk {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .coins {
    grid-template-columns: repeat(3, 1fr);
    top: 40%;
    right: 0%;
    gap: 3%;
  }
}

@media screen and (max-width: 768px) {
  .chicken-box {
    transform: translate(35%);
  }
}

@media screen and (max-width: 768px) {
  .chicken-container {
    max-width: 36%;
  }
}

@media screen and (max-width: 768px) {
  .game-container--active .chicken-container {
    max-width: 26%;
  }
}

.btn {
  text-decoration: none;
  background: linear-gradient(91deg, #db35bd 0.53%, #8c54fd 88%);
  padding: 19px 89px;
  border-radius: 20px;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-color-white);
  cursor: pointer;
  border: none;
  position: relative;
  outline: none;
  z-index: 1;
  transition: transform 0.3s ease, background-position 1s ease, 0.2s linear;
}

.sound-toggle {
  border: none;
  outline: none;
  background: transparent;

  position: absolute;
  left: 3%;
  top: 3%;
  z-index: 4;

  width: 100%;
  height: 100%;
  max-width: 50px;
  max-height: 50px;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
  padding: 10px;
  font-size: 16px;

  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
}

.sound-toggle::before {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 3px;
  border-radius: clamp(34px, 2.2vw, 44px);
  background: linear-gradient(135deg, #dc5df5 0%, #2f21a4 50%, #8f227a 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(139, 84, 253, 0.6),
      0 0 25px rgba(219, 53, 189, 0.4);
  }
}

@media screen and (max-width: 768px) {
  .btn {
    padding: 12px 60px;
    border-radius: 14px;
    font-size: 16px;
  }
}

.shadow {
  position: relative;
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
}

.shadow::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  transform: translate(1px, 1px);
  background: linear-gradient(91deg, #db35bd4d 0.53%, #8c54fd4d 88%);
  filter: blur(10px);
}

.header {
  position: absolute;
  top: -1px;
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  box-shadow: 3px -2px 41px 0px rgba(0, 0, 0, 0.34);
  border-radius: 0 0 36px 36px;
  --gradient-border-radius: 0 0 36px 36px;
  height: clamp(67px, 4.5vw, 87px);
  padding: 0 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 5;
}

.header .logo {
  height: clamp(23px, 1.5vw, 30px);
}

@media screen and (max-width: 1022px) {
  .header {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 768px) {
  .header {
    width: 90%;
  }
}



.preloader {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    77% 122% at 50% -17%,
    #302f3b 8%,
    #17161c 32%,
    #0a0a12 70%,
    #05050af0 100%
  );
}

.preloader:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    77% 122% at 50% -17%,
    #302f3b 8%,
    #17161c 32%,
    #0a0a12 70%,
    #05050af0 100%
  );
}

.preloader svg {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 200px;
  color: var(--icon-default);
  animation: rotate3D 1.5s linear infinite;

  @media (min-width: 1024px) {
    width: 400px;
    height: 400px;
  }
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  transition: all 0.2s ease-in;
  display: none;
}

@keyframes rotate3D {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
