@-webkit-keyframes fadeIn {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@-webkit-keyframes fadeOut {
    0% {
        opacity: 1
    }

    to {
        opacity: 0
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1
    }

    to {
        opacity: 0
    }
}

@-webkit-keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

@keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

*,::after,::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    -moz-osx-font-smoothing: grayscale
}

blockquote,body,dd,dl,figcaption,figure,h1,h2,h3,h4,img,li,p,svg {
    margin: 0
}

body,html {
    min-height: 100%
}

ol[class],ul[class] {
    list-style: none;
    margin: 0;
    padding: 0
}

img,svg {
    max-width: 100%;
    height: auto;
    display: block
}

button,input,select,textarea {
    font-family: inherit
}

@font-face {
    font-family: "Roboto";
    src: url(../fonts/Roboto-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Roboto";
    src: url(../fonts/Roboto-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

body {
    font-family: "Roboto",sans-serif;
    font-size: 18px;
    line-height: 26px;
    background: #f2f2f5;
    -webkit-font-variant-ligatures: none;
    font-variant-ligatures: none;
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -moz-text-size-adjust: none;
    text-size-adjust: none;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    overflow-anchor: none
}

@media screen and (max-width: 767px) {
    body {
        font-size:16px;
        line-height: 20px
    }
}

button {
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    color: #000
}

.js-focus-visible :focus:not(.focus-visible) {
    outline: 0
}

.page {
    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;
    min-height: 100vh
}

.page__content {
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 auto;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto
}

.container {
    width: 100%;
    max-width: 1230px;
    padding: 0 30px;
    margin: 0 auto
}

@media screen and (max-width: 767px) {
    .container {
        padding:0 15px
    }
}

h1,h2 {
    font-size: 76px;
    line-height: 90px;
    font-weight: 400
}

@media screen and (max-width: 1400px) {
    h1 {
        font-size:66px;
        line-height: 72px
    }
}

@media screen and (max-width: 1023px) {
    h1 {
        font-size:60px;
        line-height: 66px
    }
}

@media screen and (max-width: 767px) {
    h1 {
        font-size:32px;
        line-height: 36px
    }
}

h2 {
    font-size: 48px;
    line-height: 56px;
    margin-bottom: 20px
}

@media screen and (max-width: 1023px) {
    h2 {
        font-size:44px;
        line-height: 50px
    }
}

@media screen and (max-width: 767px) {
    h2 {
        font-size:24px;
        line-height: 28px
    }
}

h3,h4 {
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    margin-bottom: 10px
}

@media screen and (max-width: 1023px) {
    h3 {
        font-size:22px;
        line-height: 26px
    }
}

@media screen and (max-width: 767px) {
    h3 {
        font-size:20px;
        line-height: 24px
    }
}

h4 {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 8px
}

@media screen and (max-width: 767px) {
    h4 {
        font-size:18px;
        line-height: 22px
    }
}

p {
    margin-bottom: 15px
}

p:last-child {
    margin: 0
}

ol:not([class]),ul:not([class]) {
    padding: 0;
    margin: 0 0 0 20px
}

ol:not([class])+*,ul:not([class])+* {
    margin-top: 15px
}

a:not([class]) {
    color: #000;
    text-decoration: underline;
    -webkit-transition: -webkit-text-decoration-color .2s ease;
    -o-transition: text-decoration-color .2s ease;
    transition: text-decoration-color .2s ease;
    transition: text-decoration-color .2s ease,-webkit-text-decoration-color .2s ease;
    -webkit-text-decoration-color: #000;
    text-decoration-color: #000
}

a:not([class]):hover {
    -webkit-text-decoration-color: transparent;
    text-decoration-color: transparent
}

.has-text-align-center {
    text-align: center
}

.has-text-align-left {
    text-align: left
}

.has-text-align-right {
    text-align: right
}

.aligncenter {
    clear: both
}

.btn,.btn__text {
    position: relative
}

.btn {
    display: inline-block;
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    vertical-align: top;
    background: #3bd18f;
    border: thin solid #3bd18f;
    text-align: center;
    text-decoration: none;
    padding: 18px 32px;
    min-width: 160px;
    border-radius: 32px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-box-shadow: inset 0 0 0 1px transparent;
    box-shadow: inset 0 0 0 1px transparent;
    -webkit-transition: background-color .2s ease,border-color .2s ease;
    -o-transition: background-color .2s ease,border-color .2s ease;
    transition: background-color .2s ease,border-color .2s ease
}

.btn__text {
    white-space: nowrap;
    z-index: 2
}

.btn:hover {
    background: #00a35b;
    border: thin solid #00a35b
}

@media screen and (max-width: 767px) {
    .btn {
        font-size:18px
    }
}

.comment {
    padding: 10px 25px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    background: 0 0;
    -webkit-transition: opacity .4s ease,background-color .4s ease,-webkit-transform .4s ease;
    -o-transition: transform .4s ease,opacity .4s ease,background-color .4s ease;
    transition: transform .4s ease,opacity .4s ease,background-color .4s ease;
    transition: transform .4s ease,opacity .4s ease,background-color .4s ease,-webkit-transform .4s ease
}

@media screen and (max-width: 767px) {
    .comment {
        padding:10px 0
    }
}

.comment.hidden {
    display: none
}

.comment.animate {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    opacity: 0;
    background: #fff
}

.comment__photo {
    width: 32px;
    height: 32px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    margin-right: 23px
}

.comment__photo img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover
}

@media screen and (max-width: 767px) {
    .comment__photo {
        margin-right:15px
    }
}

.comment__top {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex
}

@media screen and (max-width: 767px) {
    .comment__top {
        -webkit-flex-wrap:wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap
    }
}

.comment__name,.comment__text {
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 5px
}

.comment__name {
    font-weight: 700;
    color: #5a86ff;
    margin-right: 6px;
    cursor: pointer;
    text-decoration: underline;
    -webkit-text-decoration-color: transparent;
    text-decoration-color: transparent;
    -webkit-transition: -webkit-text-decoration-color .2s ease;
    -o-transition: text-decoration-color .2s ease;
    transition: text-decoration-color .2s ease;
    transition: text-decoration-color .2s ease,-webkit-text-decoration-color .2s ease
}

.comment__button:hover,.comment__name:hover {
    -webkit-text-decoration-color: #5a86ff;
    text-decoration-color: #5a86ff
}

.comment__text {
    color: #1f1f1f
}

.comment__bottom {
    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
}

.comment__button {
    font-size: 14px;
    line-height: 16px;
    color: #5a86ff;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    text-decoration: underline;
    -webkit-text-decoration-color: transparent;
    text-decoration-color: transparent;
    -webkit-transition: -webkit-text-decoration-color .2s ease;
    -o-transition: text-decoration-color .2s ease;
    transition: text-decoration-color .2s ease;
    transition: text-decoration-color .2s ease,-webkit-text-decoration-color .2s ease
}

.comment__button::before,.comment__date::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #5a86ff
}

.comment__button::before {
    right: -5px
}

@media screen and (max-width: 480px) {
    .comment__button {
        font-size:12px;
        line-height: 14px
    }
}

.comment__emojis {
    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
}

.comment__emoji {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    cursor: pointer
}

@media screen and (max-width: 480px) {
    .comment__emoji {
        width:14px;
        height: 14px
    }
}

.comment__date {
    margin-left: 5px;
    position: relative;
    font-size: 14px;
    line-height: 16px;
    color: #5a86ff
}

.comment__date::before {
    left: -5px
}

@media screen and (max-width: 480px) {
    .comment__date {
        font-size:12px;
        line-height: 14px
    }
}

.comments {
    padding: 50px 0
}

@media screen and (max-width: 767px) {
    .comments {
        padding:20px 0
    }
}

.comments__wrapper {
    border: 1px solid #dedfe2;
    padding: 10px;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 4px
}

.comments__controls {
    padding: 9px 15px;
    background: #fff;
    border: 1px solid rgba(39,49,56,.102312);
    border-radius: 4px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex
}

.comments__button {
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    color: #1f1f1f;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    margin-right: 23px;
    text-decoration: underline;
    -webkit-text-decoration-color: transparent;
    text-decoration-color: transparent;
    -webkit-transition: -webkit-text-decoration-color .2s ease;
    -o-transition: text-decoration-color .2s ease;
    transition: text-decoration-color .2s ease;
    transition: text-decoration-color .2s ease,-webkit-text-decoration-color .2s ease;
    cursor: pointer
}

.comments__button:hover {
    -webkit-text-decoration-color: #1f1f1f;
    text-decoration-color: #1f1f1f
}

.comments__button-icon {
    margin-right: 8px
}

.comments__emojis {
    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;
    padding: 20px 25px
}

@media screen and (max-width: 767px) {
    .comments__emojis {
        padding:20px 0
    }
}

.comments__emoji {
    margin-right: 5px
}

.comments__emojis-counter {
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    margin-left: 6px
}

.game {
    padding: 50px 0
}

@media screen and (max-width: 767px) {
    .game {
        padding:20px 0
    }
}

.game__title {
    font-size: 36px;
    line-height: 40px;
    color: #3bd18f;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px
}

@media screen and (max-width: 767px) {
    .game__title {
        font-size:32px;
        line-height: 36px
    }
}

.game__description {
    font-size: 18px;
    line-height: 24px;
    color: #273138;
    text-align: center;
    margin-bottom: 29px
}

.game__description p {
    margin: 0
}

.game__timer {
    color: #ff5e5e;
    font-weight: 700
}

.game__wrapper {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    max-width: 610px;
    margin: 0 auto
}

.game__wrapper--col-3 {
    grid-template-columns: repeat(3,1fr);
    max-width: 450px
}

.game__card.flipped,.game__card.has-match,.game__wrapper.no-event {
    pointer-events: none
}

@media screen and (max-width: 767px) {
    .game__wrapper {
        gap:10px
    }
}

.game__card,.game__card-back {
    display: block;
    width: 100%;
    border-radius: 20px
}

.game__card {
    padding: 100% 0 0;
    cursor: pointer;
    border: 0;
    position: relative;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-perspective: 700px;
    perspective: 700px
}

.game__card.flipped .game__card-back,.game__card.has-match .game__card-back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg)
}

.game__card.flipped .game__card-front,.game__card.has-match .game__card-front {
    -webkit-transform: rotateY(360deg);
    transform: rotateY(360deg)
}

.game__card.has-match .game__card-back,.game__card.has-match .game__card-front {
    background-color: #3bd18f
}

.game__card:hover .game__card-back {
    background-color: #1d59ff
}

.game__card-back {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: #5a86ff;
    -webkit-box-shadow: 0 3px 6px rgba(70,116,244,.3);
    box-shadow: 0 3px 6px rgba(70,116,244,.3);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
    background-image: url(../images/logo-sign-white.png);
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-transition: background-color .2s ease,-webkit-transform .4s ease;
    -o-transition: background-color .2s ease,transform .4s ease;
    transition: background-color .2s ease,transform .4s ease;
    transition: background-color .2s ease,transform .4s ease,-webkit-transform .4s ease
}

@media screen and (max-width: 767px) {
    .game__card-back {
        background-size:50% 50%;
        border-radius: 10px
    }
}

.game__card-front {
    position: absolute;
    background: #5a86ff;
    pointer-events: none;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: -webkit-transform .4s ease;
    -o-transition: transform .4s ease;
    transition: transform .4s ease;
    transition: transform .4s ease,-webkit-transform .4s ease;
    z-index: 1;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    overflow: hidden
}

.game__card-front,.game__card-front img {
    width: 100%;
    height: 100%
}

.header {
    background: #fff;
    padding: 20px 0
}

.header__logo {
    max-width: 329px;
    margin: 0 auto
}

@media screen and (max-width: 767px) {
    .header__logo {
        max-width:200px
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    -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
}

.modal.is-open {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex
}

@media screen and (max-width: 767px) {
    .modal {
        padding:30px 15px
    }
}

.modal[aria-hidden=false] .modal__wrapper {
    -webkit-animation: fadeIn .3s ease;
    animation: fadeIn .3s ease
}

.modal[aria-hidden=true] .modal__wrapper {
    -webkit-animation: fadeOut .3s ease;
    animation: fadeOut .3s ease
}

.modal__overflow {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.41);
    -webkit-backdrop-filter: saturate(180%) blur(2px);
    backdrop-filter: saturate(180%) blur(2px);
    display: block
}

.modal__wrapper {
    background: #fff;
    border: 1px solid #fafafa;
    -webkit-box-shadow: 0 20px 45px -15px rgba(2,2,2,.15);
    box-shadow: 0 20px 45px -15px rgba(2,2,2,.15);
    border-radius: 30px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 540px;
    padding: 40px;
    text-align: center;
    margin: auto;
    overflow: hidden
}

@media screen and (max-width: 767px) {
    .modal__wrapper {
        padding:35px 20px
    }
}

.modal__scroll {
    width: 100%;
    overflow: auto;
    max-height: 100%;
    position: relative;
    z-index: 999999;
    padding: 30px 0
}

@media screen and (max-width: 767px) {
    .modal__scroll {
        padding:10px 0
    }
}

.modalWin__icon {
    margin: 0 auto 30px;
    width: 169px;
    position: relative
}

.modalWin__icon img {
    position: relative;
    z-index: 1
}

.modalWin__icon::before {
    content: "";
    width: 286px;
    height: 286px;
    display: block;
    position: absolute;
    left: -webkit-calc(50% - 143px);
    left: calc(50% - 143px);
    top: -webkit-calc(50% - 143px);
    top: calc(50% - 143px);
    -webkit-transform-origin: center center;
    -ms-transform-origin: center center;
    transform-origin: center center;
    background: url(../images/bg-modal-icon.svg) no-repeat center center;
    background-size: contain;
    -webkit-animation: rotate 10s linear infinite;
    animation: rotate 10s linear infinite
}

.modalWin__title {
    font-weight: 700;
    font-size: 36px;
    line-height: 42px;
    text-align: center;
    color: #3bd18f;
    margin-bottom: 15px
}

@media screen and (max-width: 767px) {
    .modalWin__title {
        font-size:32px;
        line-height: 36px
    }
}

.modalWin__description {
    font-size: 18px;
    line-height: 21px;
    text-align: center;
    color: #273138;
    margin-bottom: 30px
}

@media screen and (max-width: 767px) {
    .modalWin__description {
        font-size:16px;
        line-height: 22px
    }
}

.modalWelcome .btn {
    outline: 0;
    display: block;
    width: 100%;
    margin: 0 auto;
    max-width: 320px
}

.modalWelcome__icon {
    margin: 0 auto 30px;
    width: 160px;
    position: relative
}

.modalWelcome__title {
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    margin-bottom: 5px
}

.modalWelcome__title strong {
    font-weight: 500
}

.modalWelcome__description {
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 500
}

.modalWelcome__description strong {
    font-weight: 700;
    color: #3bd18f
}

main {
    padding: 1.5em 0;
    margin-top: 70%;
}

.ip {
    width: 16em;
    height: 8em;
}

.ip__track {
    stroke: hsl(var(--hue),90%,90%);
    transition: stroke var(--trans-dur);
}

.ip__worm1, .ip__worm2 {
    animation: worm1 2s linear infinite;
}

.ip__worm2 {
    animation-name: worm2;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: hsl(var(--hue),90%,5%);
        --fg: hsl(var(--hue),90%,95%);
    }

    .ip__track {
        stroke: hsl(var(--hue),90%,15%);
    }
}

/* Animation */
@keyframes worm1 {
    from {
        stroke-dashoffset: 0;
    }

    50% {
        animation-timing-function: steps(1);
        stroke-dashoffset: -358;
    }

    50.01% {
        animation-timing-function: linear;
        stroke-dashoffset: 358;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes worm2 {
    from {
        stroke-dashoffset: 358;
    }

    50% {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -358;
    }
}
