
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: #666; }

[hidden] { display: none !important; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.background__layer {
    position: absolute;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: cover;
    will-change: transform;
}

.background__layer--0 {
    inset: 0;
    background-image: url("../assets/img/bg-0.jpg"), linear-gradient(#9fd0ef, #eaf6fd);
}

.background__layer--1 { inset: -20px; background-image: url("../assets/img/bg-1.png"); }
.background__layer--2 { inset: -40px; background-image: url("../assets/img/bg-2.png"); }

.background__clouds {
    position: absolute;
    top: 50px;
    left: -10%;
    width: 120%;
    height: 259px;
    background: url("../assets/img/clouds.png") repeat-x 0 0;
    animation: clouds-move 20s linear infinite alternate;
}

@keyframes clouds-move {
    from { transform: translateX(0); }
    to   { transform: translateX(10%); }
}

@media (prefers-reduced-motion: reduce) {
    .background__clouds { animation: none; }
}

.page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    position: relative;
}

.page--home {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page--game {
    align-items: center;
    justify-content: flex-end; 
}

.intro__title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.intro__visual-link { display: inline-block; }

.intro__visual {
    display: block;
    width: 334px;
    max-width: 100%;
    transition: transform 0.2s ease-out;
}

.intro__visual-link:hover .intro__visual,
.intro__visual-link:focus .intro__visual { transform: scale(1.04); }

.intro__cta { margin: 20px 0 0; }

@media (min-height: 700px) {
    .intro__visual { width: 446px; }
}

.phone {
    position: relative;
    width: min(1214px, 100%);
    aspect-ratio: 1214 / 562;
}

.phone__screen {
  position: absolute;
  left: 22.2405%;  
  top: 4.8043%;    
  width: 58.0725%;  
  height: 71.1744%; 
  background: #fff;
  overflow: hidden;
  z-index: 2;
}

.phone__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none; 
}



.phone__screen:fullscreen,
.phone__screen:-webkit-full-screen {
    width: 100%;
    height: 100%;
    background: #000;
}

.game-slot {
    position: relative;
    width: 100%;
    height: 100%;
}

.game-slot__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

.game-slot__frame:focus { outline: none; }

.game-slot__placeholder {
    position: absolute;
    inset: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #999;
}

.game-slot__placeholder strong { color: #666; font-size: 14px; }

.game-slot__placeholder code {
    background: #f6f6f6;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 12px;
}

.stage__ctas {
    position: absolute;
    z-index: 3;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: min(685px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.share {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.share__label { margin-right: 4px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    color: #666;
    padding: 10px 14px;
    border-radius: 4px;
    background: #ffda01;
    box-shadow: 0 4px 0 #c8ab00, 0 6px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease-out, transform 0.05s ease-out;
}

.btn:hover, .btn:focus { background: #ffe54d; }

.btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #c8ab00;
}

.btn--social {
    width: 38px;
    height: 38px;
    padding: 0;
    color: #fff;
}

.btn--social svg { width: 18px; height: 18px; fill: currentColor; }

.btn--facebook {
    background: #3b5998;
    box-shadow: 0 4px 0 #2d4373, 0 6px 10px rgba(0, 0, 0, 0.15);
}
.btn--facebook:hover, .btn--facebook:focus { background: #4c70ba; }

.btn--twitter {
    background: #55acee;
    box-shadow: 0 4px 0 #2795e9, 0 6px 10px rgba(0, 0, 0, 0.15);
}
.btn--twitter:hover, .btn--twitter:focus { background: #83c3f3; }

.btn--social:active { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }

.footer {
    flex-shrink: 0;
    min-height: 105px;
    background: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 20px 0;
}

.footer__baseline {
    margin: 0 0 30px;
    font-size: 12px;
}

.footer__logo img {
    display: block;
    width: 93px;
    height: 90px;
}

@media (max-width: 899px) {
    .footer__baseline { display: none; }
}

@media (max-width: 767px) {
    .page--game {
        justify-content: center;
        padding: 16px;
    }

    .phone {
        width: 100%;
        aspect-ratio: auto;
    }

    .phone__art { display: none; }

    .phone__screen {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 705 / 400;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    }

    .stage__ctas {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 14px;
    }

    .share {
        color: #666;
        text-shadow: none;
    }
}