@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

html {
  font-size: 1.111vw;
}

body {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  background: #445986;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #fff;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  word-wrap: break-word;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  -ms-grid-rows: 1fr;
  grid-template-rows: 1fr;
  background-image: url(../img/bg2.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: rgba(255,255,255,0);
}

body > *:nth-child(1) {
  -ms-grid-row: 1;
  grid-row: 1;
  -ms-grid-column: 1;
  grid-column: 1;
}

img {
  pointer-events: none;
}
.bg-audio {
  display: none;
}

.license-note {
  opacity: 0.5;
  position: fixed;
  left: 0.5rem;
  bottom: 0.5rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.2rem 0.45rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid rgba(255,255,255,0.2);
  -webkit-border-radius: 999px;
          border-radius: 999px;
  background: rgba(18, 23, 23, 0.65);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 0.5rem;
  color: #fff;
  z-index: 120;
  max-width: min(32rem, -webkit-calc(100vw - 2rem));
  max-width: min(32rem, calc(100vw - 2rem));
}
.license-note span {
  line-height: 1.2;
}
.license-note a {
  color: #ffd56f;
  text-decoration: underline;
}
.license-note:hover {
  opacity: 1;
}
.background {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background > img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}


.button {
  font-family: "Fredoka", sans-serif;
  -webkit-box-shadow: inset 0 4px 18px 0 rgba(255, 255, 255, 0.25);
          box-shadow: inset 0 4px 18px 0 rgba(255, 255, 255, 0.25);
  background: -webkit-gradient(linear, left top, right top, from(#d36e0d), to(#c85593));
  background: -o-linear-gradient(left, #d36e0d 0%, #c85593 100%);
  background: linear-gradient(90deg, #d36e0d 0%, #c85593 100%);
  border: 1px solid #fff;
  -webkit-border-radius: 100px;
          border-radius: 100px;
  font-weight: 600;
  line-height: 120%;
  font-size: 2rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  text-shadow:
      -1px -1px 0 #121717,
      1px -1px 0 #121717,
      -1px 1px 0 #121717,
      1px 1px 0 #121717,
      -1px 0px 0 #121717,
      1px 0px 0 #121717,
      0px -1px 0 #121717,
      0px 1px 0 #121717;
  padding: 1.5rem 2rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 20.375rem;
  -webkit-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.button:hover {
  -webkit-transform: scale(1.05);
      -ms-transform: scale(1.05);
          transform: scale(1.05);
}



.section {
  -ms-grid-row: 1;
  grid-row: 1;
  -ms-grid-column: 1;
  grid-column: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: opacity 0.6s ease;
  -o-transition: opacity 0.6s ease;
  transition: opacity 0.6s ease;
}
.section.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.vydno {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.begin {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 3rem;
}
.begin__logo {
  width: 83%;
  width: 150vh;
  -o-object-fit: contain;
     object-fit: contain;
}

.rules {
  padding: 6vh 2vh 3.5vh 2vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.rules__text {
  width: 100%;
  max-width: 41rem;
  font-weight: 700;
  font-size: 4.5vh;
  line-height: 120%;
  letter-spacing: -0.03em;
  text-align: center;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow:
    -3px -3px 0 #121717,
    3px -3px 0 #121717,
    -3px 3px 0 #121717,
    3px 3px 0 #121717,
    -3px 0px 0 #121717,
    3px 0px 0 #121717,
    0px -3px 0 #121717,
    0px 3px 0 #121717;
}
.rules__image {
  width: 60vh;
}
.rules__image img {
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.game {
  padding: 4vh;
}

.game__text {
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.game__text p {
  font-weight: 700;
  font-size: 8vh;
  line-height: 120%;
  letter-spacing: 0.03em;
  text-align: center;
  color: #0091ff;
  margin: 0;
  text-shadow:
    -4px -4px 0 #fff,
    4px -4px 0 #fff,
    -4px 4px 0 #fff,
    4px 4px 0 #fff,
    -4px 0px 0 #fff,
    4px 0px 0 #fff,
    0px -4px 0 #fff,
    0px 4px 0 #fff;
}
.game__text .game__text2 {
  display: none;
}
.game__text.target .game__text1 {
  display: none;
}
.game__text.target .game__text2 {
  display: block;
}

.game__hero {
  position: absolute;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-filter 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-filter 0.3s ease;
  -o-transition: transform 0.3s ease, filter 0.3s ease;
  transition: transform 0.3s ease, filter 0.3s ease;
  transition: transform 0.3s ease, filter 0.3s ease, -webkit-transform 0.3s ease, -webkit-filter 0.3s ease;
}
.game__hero img {
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.game__hero1 {
  left: 8vh;
  bottom: 19vh;
  width: 35vh;
}
.game__hero2 {
  left: 0;
  right: 0;
  bottom: 34vh;
  margin: 0 auto;
  width: 22vh;
}
.game__hero3 {
  right:20vh;
  bottom: 26vh;
  width: 33vh;
}

.game__hands {
  width: 90vh;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
      -ms-flex-align: end;
          align-items: flex-end;
}
.game__hands img {
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: top;
     object-position: top;
  width: 100%;
}
.game__snowball {
  width: 16vh;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: 0.5rem;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  -o-transition: transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}
.game__snowball img {
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.game__snowball:active {
  -webkit-transform: scale(0.95);
      -ms-transform: scale(0.95);
          transform: scale(0.95);
}
.game__snowball.throw {
  -webkit-animation: throw 0.6s ease-out;
          animation: throw 0.6s ease-out;
}
.game__snowball-clone {
  position: fixed;
  left: 0;
  top: 0;
  width: 16vh;
  height: 16vh;
  pointer-events: none;
  z-index: 20;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
          transform: translate3d(0, 0, 0) scale(1);
}
.game__snowball-clone img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.game__hero-distance {
  text-shadow:
    -3px -3px 0 #121717,
    3px -3px 0 #121717,
    -3px 3px 0 #121717,
    3px 3px 0 #121717,
    -3px 0px 0 #121717,
    3px 0px 0 #121717,
    0px -3px 0 #121717,
    0px 3px 0 #121717;
  font-weight: 700;
  font-size: 3.3vh;
  line-height: 120%;
  letter-spacing: -0.03em;
  text-align: center;
  color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  top: -2.6rem;
  margin: 0 auto;
}
.game__hero-true {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: 15%;
  white-space: nowrap;
  font-weight: 700;
  -webkit-transform: rotate(19deg);
      -ms-transform: rotate(19deg);
          transform: rotate(19deg);
  font-size: 2rem;
  line-height: 120%;
  letter-spacing: -0.03em;
  text-align: center;
  background: -webkit-gradient(linear, left top, left bottom, from(#07cd67), to(#046734));
  background: -o-linear-gradient(top, #07cd67 0%, #046734 100%);
  background: linear-gradient(180deg, #07cd67 0%, #046734 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}
.game__hero-false {
  font-weight: 700;
  font-size: 2rem;
  line-height: 120%;
  letter-spacing: -0.03em;
  text-align: center;
  background: -webkit-gradient(linear, left top, left bottom, from(#e7000b), to(#810006));
  background: -o-linear-gradient(top, #e7000b 0%, #810006 100%);
  background: linear-gradient(180deg, #e7000b 0%, #810006 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  -webkit-transform: rotate(-7deg);
      -ms-transform: rotate(-7deg);
          transform: rotate(-7deg);
  position: absolute;
  bottom: 15%;
  right: 25%;
}
.game__hero .game__hero-true,
.game__hero .game__hero-false {
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
.game__hero.done .game__hero-true {
  opacity: 1;
}
.game__hero.miss .game__hero-false {
  opacity: 1;
}
.game__hero.target {
  -webkit-filter: drop-shadow(0 -10px 64px rgba(231, 0, 11, 0.5));
          filter: drop-shadow(0 -10px 64px rgba(231, 0, 11, 0.5));
}
.game__hero.done {
  -webkit-filter: drop-shadow(0 0 12px rgba(7, 205, 103, 0.6));
          filter: drop-shadow(0 0 12px rgba(7, 205, 103, 0.6));
  pointer-events: none;
}


.game__sight {
  -webkit-border-radius: 100px;
          border-radius: 100px;
  position: absolute;
  width: 48vw;
  bottom: 23vh;
  height: 6vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 1;
  border: 4px solid #C10007;
  -webkit-box-shadow: 0 4px 6px -4px rgba(251, 44, 54, 0.5), 0 10px 15px -3px rgba(251, 44, 54, 0.5);
          box-shadow: 0 4px 6px -4px rgba(251, 44, 54, 0.5), 0 10px 15px -3px rgba(251, 44, 54, 0.5);
  background: -webkit-gradient(linear, left top, right top, from(#ff6467), to(#e7000b));
  background: -o-linear-gradient(left, #ff6467 0%, #e7000b 100%);
  background: linear-gradient(90deg, #ff6467 0%, #e7000b 100%);
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(1.5vh);
      -ms-transform: translateY(1.5vh);
          transform: translateY(1.5vh);
  -webkit-transition: opacity 0.4s ease, -webkit-transform 0.4s ease;
  transition: opacity 0.4s ease, -webkit-transform 0.4s ease;
  -o-transition: opacity 0.4s ease, transform 0.4s ease;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition: opacity 0.4s ease, transform 0.4s ease, -webkit-transform 0.4s ease;
}
.game__sight::before {
  content: '';
  display: block;
  border: 2px solid #fff;
  width: -webkit-calc(100% + 8px);
  width: calc(100% + 8px);
  height: -webkit-calc(100% + 8px);
  height: calc(100% + 8px);
  -webkit-border-radius: 100px;
          border-radius: 100px;
  z-index: -1;
  position: absolute;
  left: -4px;
  top: -4px;
}
.game__sight.active {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}
.sight-ball {
  position: absolute;
  top: 0;
  height: 100%;
  display: inline-block;
  z-index: 1;
  width: 6vh;
  left: 0;
  will-change: left;
}
.sight-ball img {
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.game__sight.active .sight-ball {
  -webkit-animation: ballMove 1400ms ease-in-out infinite alternate;
          animation: ballMove 1400ms ease-in-out infinite alternate;
}
.sight-line {
  z-index: 0;
  position: absolute;
  display: block;
  width: 30%;
  height: -webkit-calc(100% - 2px);
  height: calc(100% - 2px);
  top: 1px;
  -webkit-border-radius: 100px;
          border-radius: 100px;
  -webkit-box-shadow: 0 4px 6px -4px rgba(0, 201, 80, 0.5), 0 10px 15px -3px rgba(0, 201, 80, 0.5);
          box-shadow: 0 4px 6px -4px rgba(0, 201, 80, 0.5), 0 10px 15px -3px rgba(0, 201, 80, 0.5);
  background: -webkit-gradient(linear, left top, right top, from(#05df72), to(#00a63e));
  background: -o-linear-gradient(left, #05df72 0%, #00a63e 100%);
  background: linear-gradient(90deg, #05df72 0%, #00a63e 100%);
  left: -webkit-calc(100% - 30%);
  left: calc(100% - 30%);
  will-change: left;
}
.game__sight.active .sight-line {
  -webkit-animation: lineMove 1800ms ease-in-out infinite alternate;
          animation: lineMove 1800ms ease-in-out infinite alternate;
}

@-webkit-keyframes ballMove {
  0% { left: 0; }
  100% { left: -webkit-calc(100% - 6vh); left: calc(100% - 6vh); }
}

@keyframes ballMove {
  0% { left: 0; }
  100% { left: -webkit-calc(100% - 6vh); left: calc(100% - 6vh); }
}
@-webkit-keyframes lineMove {
  0% { left: -webkit-calc(100% - 30%); left: calc(100% - 30%); }
  100% { left: 0; }
}
@keyframes lineMove {
  0% { left: -webkit-calc(100% - 30%); left: calc(100% - 30%); }
  100% { left: 0; }
}
@-webkit-keyframes throw {
  0% { -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
  60% { -webkit-transform: translateY(-8vh) scale(1.1); transform: translateY(-8vh) scale(1.1); }
  100% { -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}
@keyframes throw {
  0% { -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
  60% { -webkit-transform: translateY(-8vh) scale(1.1); transform: translateY(-8vh) scale(1.1); }
  100% { -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}

/***winner***/
.winner {
  padding: 4vh 2vh 4vh 2vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.winner__title {
  font-weight: 700;
  font-size: 8vh;
  line-height: 120%;
  letter-spacing: 0.03em;
  text-align: center;
  color: #0091ff;
  margin: 0;
  margin-bottom: 1.5rem;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    -2px 0px 0 #fff,
    2px 0px 0 #fff,
    0px -2px 0 #fff,
    0px 2px 0 #fff;
}
.winner__banner {
  width: 80vh;
  padding: 1rem 1rem 1rem 7.75rem;
  position: relative;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.4)), to(rgba(153, 153, 153, 0.4)));
  background: -o-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(153, 153, 153, 0.4) 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(153, 153, 153, 0.4) 100%);
  border: 1px solid #121717;
  -webkit-border-radius: 16px;
          border-radius: 16px;
  margin-bottom: 1rem;
}

.winner__banner img {
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 5.5rem;
  -o-object-fit: contain;
     object-fit: contain;
  margin: auto;
}
.winner__banner p {
  font-weight: 400;
  font-size: 2.2vh;
  line-height: 120%;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  text-shadow:
    -1px -1px 0 #121717,
    1px -1px 0 #121717,
    -1px 1px 0 #121717,
    1px 1px 0 #121717,
    -1px 0px 0 #121717,
    1px 0px 0 #121717,
    0px -1px 0 #121717,
    0px 1px 0 #121717;
}
.winner__banner p + p {
  margin-top: 1rem;
}
.winner__image {
  width: 75vh;
}
.winner__image img {
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.hidden {
  display: none;
}
