:root {
  --bg-color: #f8f9fa;
  --bg-color-3: #f5f5f5;
  --color-black: #141414;
  --color-white: #fff;
  --color-primary: #df3601;
  --color-label: rgb(255, 239, 238);
  --color-primary-hover: rgba(222, 68, 55, 0.3);
  --color-border: rgba(33, 50, 91, 0.1);
}

* {
  padding: 0;
  margin: 0;
  border: 0;
}

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:focus,
:active {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

nav,
footer,
header,
aside {
  display: block;
}

html,
body {
  position: relative;
  font-family: "Roboto", sans-serif;
  min-height: 100%;
  height: 100%;
  width: 100%;
  line-height: 1;
  font-size: 16px;
  font-weight: 400;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  color: var(--color-black);
  /*background: var(--bg-color);*/
  -webkit-font-smoothing: inherit;
}

input,
button,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button {
  cursor: pointer;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: 400;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.hidden {
  display: none!important;
}

.main-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.main-section__content {
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  justify-content: center;
  height: 100vh;

  @media screen and (max-width: 576px) {
    padding: 20px 0;
    gap: 30px;
  }
}

.card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0rem 0.375rem 1.5rem 0rem rgba(142, 142, 147, 0.125);
  border-radius: 0.5rem;
  background: rgba(255,255,255, .6);
  overflow: hidden;
}
.overlay {
  backdrop-filter: blur(3px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.card__header {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
}

/*
.card__logo h1 {
  font-size: 1.875rem;
  color: var(--color-black);
}*/

.card__logo img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

.card__body {
  margin: 0 auto;
  padding: 50px;
  @media screen and (max-width: 1024px) {
    padding: 30px 15px;
  }
}

.card__body-main {
  display: flex;
  -ms-flex: none;
  flex: none;
  flex-direction: column;
  width: 60%;

  @media screen and (max-width: 998px) {
    width: 100%;
  }
}

.card__input-wrap {
  padding: 2rem;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.375rem 1.5rem 0 rgba(142, 142, 147, 0.125);
  border: 1px solid rgba(33, 50, 91, 0.05);
  background: var(--color-white);
}

.card__input {
  width: 100%;
  min-height: 16rem;
  color: var(--color-black);
  font-size: 1.25rem;
  line-height: 1.2;
  background: var(--color-white);
  resize: none;
  @media screen and (max-width: 1024px) {
    min-height: 12rem;
  }
  @media screen and (max-width: 576px) {
    min-height: 4rem;
  }
}

.card__radio-wrap {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.card__radio label {
  cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--color-primary);
  cursor: pointer;
}

input[type="radio"]:disabled+label {
  pointer-events: none;
  opacity: 0.6;
}

.card__footer {
  margin-top: 1.875rem;
  text-align: center;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.25rem;

  @media screen and (max-width: 576px) {
    flex-direction: column;
  }
}

.card__label-text {
  position: relative;
}

.card__label-text:before {
  content: attr(data-tooltip);
  position: absolute;
  width: max-content;
  font-size: 1rem;
  line-height: 1.2;
  bottom: 1.5625rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  text-align: left;
  background-color: var(--color-label);
  padding: 0.75rem;
  border-radius: 0.3125rem;
  border: 1px solid var(--color-border);
  transition: 0.3s all;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

.card__label-text--warning::before {
  width: 12.5rem;
  left: 0;
}

.card__label-text:hover:before {
  opacity: 1;
  visibility: visible;
}

.card__label-text svg path {
  fill: var(--color-primary);
}

.card__btns {
  margin-top: 0.625rem;
  max-width: 9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  background-color: #fff;
  padding: 6px 8px;
  box-shadow: 0 0.375rem 1.5rem 0 rgba(142, 142, 147, 0.125);
  border-radius: 10px;
  /*border: 1px solid var(--color-border);*/
}

.card__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 34px;
  gap: 10px;
  background-color: var(--color-primary);
  line-height: 1.5;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transition: 0.3s all;
}

.card__btn:hover {
  filter: brightness(0.85);
}

.card__btn:disabled {
  transform: translateY(0);
  filter: brightness(0.85);
  cursor: not-allowed;
}

.card__btn svg path {
  fill: #fff;
}

.card__counter-wrap {
  @media screen and (max-width: 576px) {
    display: flex;
    justify-content: center;
    -ms-flex-direction: column;
    flex-direction: column;
    align-items: center;
  }
}

.card__counter {
  flex: 0 0 33%;
  text-align: center;
  display: block;
  width: 100%;
  padding: 0.25rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #1c1c1e;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.3125rem;
}

.card__btn-start {
  margin: 50px auto 0;
  width: 100%;
  display: block;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  text-align: center;
  transition: 0.3s all;
  box-shadow: 0 4px 16px rgba(230, 57, 35, 0.3);
}

.card__btn-start:hover {
  -webkit-transform: translateY(-0.0625rem);
  transform: translateY(-0.0625rem);
  box-shadow: 0 6px 20px var(--color-primary-hover);
}

.card__btn-start:disabled {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  filter: brightness(0.85);
  cursor: not-allowed;
}

/* Card winners */
.card-winners {
  transition: 0.3s all;
}

.card-winners__wrap {
  width: 100%;
}

.card-winners__body {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  margin: 0;
  @media screen and (max-width: 576px) {
    flex-direction: column;
    align-items: center;
  }
}

.card-winners__block {
  padding: 20px 0;
}

.card-winners__block:last-child {
  border-top: 1px solid var(--color-border);
}

.card-winners__title {
  text-align: center;
  font-size: 1.5625rem;

  @media screen and (max-width: 576px) {
    font-size: 1.25rem;
  }
}

/* result-winners */

#result-winners,
#result-reserve-winners {
  margin: 25px 0;
  padding-inline-start: 30px;
}

#result-winners li,
#result-reserve-winners li {
  line-height: 1.5;
  font-size: 20px;
  word-break: break-word;
  max-width: 300px;
}

.newly-added {
  -webkit-animation: opacity 800ms ease;
  animation: opacity 800ms ease;
}

@keyframes opacity {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    opacity: 1;
  }
}

/* result-winners-list */

#result-winners-list,
#result-reserve-winners-list {
  margin: 25px 0 0 0;
  display: flex;
  gap: 25px;
  justify-content: space-around;
  flex-wrap: wrap;
}

#result-winners-list li,
#result-reserve-winners-list li {
  flex: 0 1 22%;
  width: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;

  @media screen and (max-width: 1024px) {
    flex: 0 1 calc(100% / 3 - 25px * 2 / 3);
  }

  @media screen and (max-width: 768px) {
    flex: 0 1 calc(50% - 25px / 2);
  }

  @media screen and (max-width: 576px) {
    flex: 0 1 100%;
  }
}

#result-winners-list .first-letter,
#result-reserve-winners-list .first-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  font-size: 1.625rem;
  color: var(--color-white);
  box-shadow: 0rem 0rem 8px 0rem rgba(142, 142, 147, 0.3);
}

.full-name {
  display: block;
  margin-top: 0.625rem;
  font-size: 1.25rem;
  transition: 0.3s ease;
  word-break: break-all;
  word-wrap: break-word;
}

.animated {
  animation: animated 800ms ease;
}

@keyframes animated {
  25% {
    transform: scale(1.25);
  }

  40% {
    transform: scale(0.92);
  }

  60% {
    transform: scale(1.02);
  }

  75% {
    transform: scale(0.98);
  }

  85% {
    transform: scale(1);
  }
}

/* card-winners__rulet-wrap */

.card-winners__rulet-wrap,
.card-reserve__rulet-wrap {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.result-winners-rulet {
  flex: 0 1 31.5%;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  opacity: 0.7;
  transition: 0.5s all;
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.5);

  @media screen and (max-width: 998px) {
    flex: 0 1 calc(50% - 20px / 2);
  }

  @media screen and (max-width: 576px) {
    flex: 0 1 75%;
  }
}

.active.result-winners-rulet {
  opacity: 1;
  background-color: transparent !important;
  box-shadow: none;
}

.active.result-winners-rulet span {
  opacity: 0;
  background-color: transparent;
}

.result-winners-rulet .selected {
  opacity: 1 !important;
  animation: selected 800ms ease;
  color: #fff;
  border-top: none;
  text-shadow: 0 0 3px hsla(0 0% 0% / 0.6);
  box-shadow: 0rem 1px 1rem 0rem rgba(142, 142, 147, 0.125);
}

.active.result-winners-rulet:after,
.active.result-winners-rulet::before {
  display: none;
}

.result-winners-rulet::after {
  content: "";
  position: absolute;
  top: 52px;
  left: 0;
  width: 0;
  height: 0;
  z-index: 2;
  border: 12px solid transparent;
  border-left: 20px solid #000;
}

.result-winners-rulet::before {
  content: "";
  content: "";
  position: absolute;
  top: 52px;
  right: 0;
  width: 0;
  height: 0;
  z-index: 2;
  border: 12px solid transparent;
  border-right: 20px solid #000;
  z-index: 2;
}

.result-winners-rulet li {
  width: 100%;
  height: 50px;
  transition: transform 3s cubic-bezier(0.01, 0, 0, 1);
}

.result-winners-rulet li span {
  width: 100%;
  padding: 15px 10px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  border-top: 1px solid #fff;
  font-size: 20px;
}

.deal-wheel {
  /*--size: clamp(250px, 40vmin, 500px);*/
  --size: clamp(265px, 60vmin, 500px);
  --lg-hs: 0 3%;
  --lg-stop: 50%;
  --lg: linear-gradient(hsl(var(--lg-hs) 0%) 0 var(--lg-stop),
      hsl(var(--lg-hs) 20%) var(--lg-stop) 100%);

  position: relative;
  display: grid;
  align-items: center;
  /* new */
  align-self: center;
  border-radius: 50%;
  box-shadow: 0px 0px 7px 2px rgba(0, 0, 0, 0.1);
  background:#fff;
}

.deal-wheel>* {
  grid-area: spinner;
}

.spinner {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-areas: "spinner";
  width: var(--size);
  height: var(--size);
  transform: rotate(calc(var(--rotate, 25) * 1deg));
  border-radius: 50%;
  box-shadow: 0px 0px 7px 2px rgba(0, 0, 0, 0.1) inset;
  margin: 15px;
}

.circle {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 7px 2px rgba(0, 0, 0, 0.1);

  /*&::before {
    content: "";
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0px 0px 7px 2px rgba(0, 0, 0, 0.1);
  }*/
}

.spinner * {
  grid-area: spinner;
}

.prize {
  position: relative;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 0 calc(var(--size) / 20) 0 calc(var(--size) / 50);
  width: 50%;
  height: 50%;
  transform-origin: center right;
  transform: rotate(var(--rotate));
  user-select: none;
}

.ticker {
  position: relative;
  left: calc(var(--size) / -15);
  width: calc(var(--size) / 10);
  height: calc(var(--size) / 20);
  background: var(--lg);
  z-index: 1;
  clip-path: polygon(0% 0, 100% 50%, 0% 100%, 0% 50%);
  transform-origin: center left;
}

.btn-spin {
  color: hsl(0deg 0% 100%);
  background: var(--lg);
  border: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-transform: inherit;
  padding: 0.9rem 2rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: opacity 200ms ease-out;
}

.btn-spin:focus {
  outline-offset: 2px;
}

.btn-spin:active {
  transform: translateY(1px);
}

.btn-spin:disabled {
  cursor: progress;
  opacity: 0.25;
}

/* Spinning animation */
.is-spinning .spinner {
  transition: transform 8s cubic-bezier(0.1, -0.01, 0, 1);
}

.is-spinning .ticker {
  animation: tick 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tick {
  40% {
    transform: rotate(-12deg);
  }
}

.prize.selected {
  z-index: 2;
}

/* Selected prize animation */
.prize.selected .text {
  color: white;
  font-size: 1.5rem;
  animation: selected 800ms ease;
}

.text {
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-basis: 0;
  flex-grow: 1;
  max-width: 300px;
}

@keyframes selected {
  25% {
    transform: scale(1.25);
    text-shadow: 1vmin 1vmin 0 hsla(0 0% 0% / 0.1);
  }

  40% {
    transform: scale(0.92);
    text-shadow: 0 0 0 hsla(0 0% 0% / 0.2);
  }

  60% {
    transform: scale(1.02);
    text-shadow: 0.5vmin 0.5vmin 0 hsla(0 0% 0% / 0.1);
  }

  75% {
    transform: scale(0.98);
  }

  85% {
    transform: scale(1);
  }
}

.upload-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.upload-label {
  cursor: pointer;
  display: inline-block;
}

.upload-input {
  display: none;
}

.upload-btn {
  flex: 0 1 152px;
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.2s;
}

.upload-btn:hover {
  filter: brightness(0.85);
}
.upload-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 350px;
}

.upload-file-delete {
  display: none;
  color: red;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;

}

.card__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.card__checkbox input {
  width: 18px;
  height: 18px;
}

.btns-settings{
  display: flex;
  align-items: center;
  gap: 15px;
  position: fixed;
  top: 0;
  left: 0;
  margin: 10px;
  z-index: 9999999;
}

.btn-settings,
.btn-settings-animations,
.btn-settings-sound {
  position: relative;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: rgba(255, 255, 255, .6);
  border-radius: 0.5rem;
}

.list-amination{
  display: flex;
  background: rgba(255, 255, 255, .9);
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  position: absolute;
  top: 27px;
  right: 0;
  left: 0;
  flex-direction: column;
  gap: 5px;
  padding: 7px ;
  max-width: 300px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .2s ease;
}

.btn-settings-animations:hover .list-amination{
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.btn-settings-animations .list-amination.hide {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.list-amination li{
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 7px;
  border-radius: 0.5rem;
  transition: all .2s ease;
  font-size: 14px;
  &:hover{
    background: rgba(0, 0, 0, 0.1);
  }
}
.key {
  padding: 5px;
  margin: 0 0 0 auto;
  background: #c4c4c4;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
}

.btn-settings-sound svg {
  display: none;
  cursor: pointer;
}

.btn-settings-sound.sound-on .icon-sound-on {
  display: block;
}

.btn-settings-sound.sound-off .icon-sound-off {
  display: block;
}