@font-face {
  font-family: "din";
  src: local("din"), url("../assets/din.woff") format("woff");
}

@font-face {
  font-family: "din-light";
  src: url("../assets/DINOffcPro-Cond.woff");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
}

.results-wrapper {
  min-width: 100vw;
  min-height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  background: url("../assets/bg2.jpg") 0 0 / cover no-repeat;
  overflow: hidden;
  font-family: "din";
}

.results-wrapper__container {
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: calc(100vw - 80px);
  min-height: calc(100dvh - 80px);
}

.container__img {
  width: 194px;
  position: absolute;
  top: -30px;
  left: 90px;
}

.container__img > img {
  width: 194px;
}

.container__title {
  text-transform: uppercase;
  color: #7700ff;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 3px;
  padding-left: 50px;
}

.container__gifts {
  margin-top: 30px;
}

.gifts__ul {
  list-style-type: none;
  overflow-y: auto;
  max-height: calc(100dvh - 230px);
  display: flex;
  flex-direction: column;
  row-gap: 15px;
  padding: 0 100px 0 50px;
  position: relative;
}

.gifts__ul::before {
  content: "";
  display: block;
  position: fixed;
  left: 330px;
  top: 50px;
  width: 21px;
  height: 18px;
  background: url("../assets/scroll_arrow.svg") 0 0 / cover no-repeat;
}

.gifts__ul::after {
  content: "";
  display: block;
  position: fixed;
  left: 330px;
  bottom: 50px;
  width: 21px;
  height: 18px;
  background: url("../assets/scroll_arrow.svg") 0 0 / cover no-repeat;
  transform: rotate(-180deg);
}

.gifts__ul::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.gifts__ul-li {
  display: flex;
  align-items: center;
  column-gap: 15px;
  max-width: 220px;
}

.gifts__ul-li img {
  max-width: 64px;
}

.gifts__ul-li p {
  font-family: "din-light";
  max-width: 200px;
  font-weight: 400;
  font-size: 32px;
  line-height: 119%;
  color: #454663;
  word-wrap: break-word;
}

.container__separator {
  width: 2px;
  min-height: calc(100dvh - 150px);
  max-height: calc(100dvh - 150px);
  background-color: #454663;
}

.container__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100dvh - 150px);
  max-height: calc(100dvh - 150px);
}

.container__grid {
  display: grid;
  grid-template-columns: 290px 60%;
  align-items: center;
  overflow: hidden;
  min-height: calc(100dvh - 150px);
  max-height: calc(100dvh - 150px);
}

.grid__hand img {
  transform: translateX(-40px);
}

.grid__text {
  display: flex;
  flex-direction: column;
  row-gap: 45px;
}

.grid__text p {
  font-family: "din-light";
  font-weight: 400;
  font-size: 32px;
  line-height: 119%;
  color: #454663;
}

.grid__actions {
  text-transform: uppercase;
  color: #7700ff;
  font-weight: 500;
  font-size: 22px;
  line-height: 136%;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  column-gap: 25px;
}

.grid__actions button {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 50px;
  position: relative;
}

.grid__actions button::before {
  content: "";
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 140px;
  height: 50px;
  position: absolute;
  top: -3px;
  left: -3px;
  transition: 0.2s ease;
  background: url("../assets/btn_foreground.png") 0 0 / contain no-repeat;
}

.grid__actions button:first-child::before {
  content: "Скачать";
}

.grid__actions button:last-child::before {
  content: "Играть снова";
}

.grid__actions button:hover::before {
  top: 0;
  left: 0;
}

.grid__actions button::after {
  content: "";
  display: block;
  min-width: 140px;
  height: 50px;
  background: url("../assets/btn_bg.png") 0 0 / contain no-repeat;
}

.grid__socials {
  display: flex;
  align-items: center;
  column-gap: 25px;
  font-weight: 500;
  font-size: 16px;
  line-height: 136%;
  text-align: center;
  color: #454663;
}

.grid__socials div {
  display: flex;
  align-items: center;
  column-gap: 25px;
}

.vk_tg button {
  all: unset;
  cursor: pointer;
  width: 50px;
  height: 50px;
  position: relative;
}

.vk_tg button:first-child::before {
  background: url("../assets/vk.png") 0 0 / contain no-repeat;
}

.vk_tg button:last-child::before {
  background: url("../assets/tg.png") 0 0 / contain no-repeat;
}

.vk_tg button::before {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  position: absolute;
  top: -3px;
  left: -3px;
  transition: 0.2s ease;
}

.vk_tg button:hover::before {
  top: 0;
  left: 0;
}

.vk_tg button::after {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  background-color: #7700ff;
}

.grid__socials-landscape div {
  display: none;
}

.grid__actions-landscape {
  display: none !important;
}

@media screen and (max-width: 769px) and (orientation: portrait) {
  .container__img {
    top: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.7);
  }
  .container__content {
    justify-content: flex-start;
    row-gap: 15px;
    padding: 80px 15px 20px 15px;
  }
  .results-wrapper__container {
    flex-direction: column-reverse;
    align-items: initial;
  }
  .container__title {
    padding-left: initial;
    font-size: 30px;
    text-align: center;
  }
  .grid__text {
    row-gap: 20px;
  }
  .grid__text p {
    font-size: 16px;
  }
  .gifts__ul {
    padding: 0 0 0 15px;
  }
  .gifts__ul-li img {
    max-width: 40px;
  }
  .gifts__ul-li p {
    font-size: 24px;
  }
  .container__separator,
  .gifts__ul::before,
  .gifts__ul::after {
    display: none;
  }
  .grid__actions button {
    min-width: 85px;
    height: 32px;
  }
  .grid__actions button::before,
  .grid__actions button::after {
    min-width: 85px;
    width: 85px;
    height: 32px;
  }
  .grid__actions {
    display: grid;
    grid-template-columns: 85px 85px;
    gap: 10px;
  }
  .grid__socials {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 10px;
  }
  .grid__socials div {
    column-gap: 15px;
  }
  .grid__socials svg {
    width: 36px;
  }
  .container__grid {
    min-height: initial;
    max-height: initial;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    overflow: initial;
  }
  .grid__hand {
    position: absolute;
    transform: scaleX(-1) translate(-38px, 120px);
    right: 0;
  }
  .female-hand {
    width: 130px;
  }
  .female-hand img {
    transform: translate(21px, -26px) !important;
    width: 100% !important;
  }
  .grid__hand img {
    transform: initial;
    width: 200px;
  }
  .container__content {
    min-height: initial;
    max-height: initial;
  }
  .grid__actions {
    font-size: 13px;
    line-height: 10px;
  }
  .container__gifts {
    position: absolute;
  }
  .vk_tg button {
    width: 36px;
    height: 36px;
  }
  .vk_tg button::before,
  .vk_tg button::after {
    width: 36px;
    height: 36px;
  }
}

/* ========================================================================= */

/* Для альбомной ориентации */
@media screen and (max-height: 560px) and (orientation: landscape) {
  .container__img {
    left: 0;
    transform: scale(0.7);
  }
  .container__title {
    padding-left: 30px;
    font-size: 30px;
  }
  .container__content {
    max-height: initial;
  }
  .container__grid {
    grid-template-columns: 145px 60%;
  }
  .grid__hand {
    width: 170px;
    height: 100px;
  }
  .female-hand {
    width: 130px;
  }
  .grid__hand img {
    width: 100%;
  }
  .female-hand img {
    transform: translate(-40px, -20px);
  }
  .grid__text p {
    font-size: 16px;
  }
  .grid__actions {
    display: none;
  }
  .grid__actions-landscape {
    display: flex !important;
  }
  .grid__actions {
    font-size: 13px;
    line-height: 10px;
  }
  .grid__actions button {
    min-width: 85px;
    width: 85px;
    height: 32px;
  }
  .grid__actions button::before,
  .grid__actions button::after {
    min-width: 85px;
    width: 85px;
    height: 32px;
  }
  .grid__socials div,
  .grid__socials p {
    display: none;
  }
  .grid__socials-landscape div {
    margin-left: 30px;
    display: flex;
  }
  .grid__socials div {
    gap: 10px;
    flex-wrap: wrap;
  }
  .grid__socials svg {
    width: 36px;
  }
  .gifts__ul::before,
  .gifts__ul::after {
    display: none;
  }
  .gifts__ul {
    max-height: calc(100dvh - 160px);
    padding: 0 30px 0 15px;
    margin-right: 10px;
  }
  .gifts__ul li {
    max-width: 160px;
  }
  .gifts__ul-li img {
    max-width: 40px;
  }
  .gifts__ul-li p {
    font-size: 24px;
  }
  .vk_tg button {
    width: 36px;
    height: 36px;
  }
  .vk_tg button::before,
  .vk_tg button::after {
    width: 36px;
    height: 36px;
  }
  .gifts__ul::-webkit-scrollbar {
    width: 2px;
    background-color: white;
  }
  .gifts__ul::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.3);
  }
}

@media screen and (max-height: 630px) and (min-height: 560px) {
  .container__content {
    min-height: initial;
  }
  .container__grid {
    min-height: initial;
    grid-template-rows: 260px auto;
  }
  .grid__text {
    row-gap: 5px;
  }
}

@media screen and (max-width: 590px) and (orientation: landscape) {
  .container__grid {
    grid-template-columns: 135px 60%;
  }
}
