

@font-face {
    font-family: "Work Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/work-sans-400-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Work Sans";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/work-sans-400-italic.woff2") format("woff2");
}

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

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

:root {
    --color-bg: #100010;
    --color-bg-glow: #39143c;
    --color-text: #f3f4f6;
    --color-text-soft: #edf2ef;
    --color-text-muted: rgba(255, 255, 255, 0.64);
    --color-placeholder: rgba(255, 255, 255, 0.6);
    --color-neutral-70: #a0a2bb;
    --color-neutral-35: #545878;
    --color-accent: #f5f100;
    --color-accent-soft: #fffd8b;
    --color-headline: #ffea30;
    --color-danger: #ff5351;
    --color-on-primary: #17061a;
    --color-white: #ffffff;

    --overlay-light-004: rgba(255, 255, 255, 0.04);
    --overlay-light-005: rgba(255, 255, 255, 0.05);
    --overlay-light-008: rgba(255, 255, 255, 0.08);
    --overlay-light-016: rgba(255, 255, 255, 0.16);
    --overlay-light-040: rgba(255, 255, 255, 0.4);
    --overlay-light-064: rgba(255, 255, 255, 0.64);
    --overlay-dark-032: rgba(12, 13, 19, 0.32);
    --overlay-dark-064: rgba(12, 13, 19, 0.64);

    --gradient-primary: linear-gradient(180deg, #ffd941 0%, #f8bc23 100%);
    --gradient-page-glow: linear-gradient(180deg, var(--color-bg-glow) 0%, rgba(18, 19, 28, 0) 100%);
    --shadow-primary-inset: inset 0 4px 4px rgba(255, 196, 136, 0.65);
    --shadow-xl: 0 34px 40px rgba(14, 23, 18, 0.4);

    --space-2: 2px;
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;

    --radius-2: 2px;
    --radius-4: 4px;
    --radius-12: 12px;
    --radius-16: 16px;
    --radius-24: 24px;
    --radius-64: 64px;
    --radius-full: 999px;

    --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-accent: "Kanit", "Work Sans", system-ui, sans-serif;

    --page-gutter: var(--space-16);
}

@media (min-width: 768px) {
    :root {
        --page-gutter: var(--space-32);
    }
}

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

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 22px;
}

h1,
h2,
h3,
p,
ul {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--color-accent-soft);
    outline-offset: 2px;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-16);
    z-index: 100;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-12);
    background: var(--color-text);
    color: var(--color-bg);
}

.skip-link:focus {
    top: var(--space-8);
}

body.header-app::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    height: 535px;
    background: var(--gradient-page-glow);
    pointer-events: none;
}

.site-main,
.site-header,
.site-footer {
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-16);
    border: 0;
    border-radius: var(--radius-12);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.btn--primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary-inset);
    color: var(--color-on-primary);
}

.btn--primary:hover {
    filter: brightness(1.06);
}

.btn--primary:active {
    transform: translateY(1px);
}

.btn--md {
    font-size: 16px;
    line-height: 20px;
}

.btn--lg {
    height: 50px;
    font-size: 22px;
    line-height: 26px;
}

.site-header {
    display: flex;
    align-items: center;
    padding: var(--space-12) var(--page-gutter);
}

.site-header--guest {
    justify-content: center;
    padding-block: var(--space-16);
}

.site-header--guest .site-header__logo img {
    width: 64px;
    height: 36px;
}

.site-header--app {
    justify-content: space-between;
    gap: var(--space-16);
}

.site-header__left,
.site-header__right {
    display: flex;
    align-items: center;
    gap: var(--space-16);
}

.site-header__burger {
    display: block;
    width: 24px;
    height: 24px;
}

.site-header__logo img {
    width: 64px;
    height: 36px;
    object-fit: cover;
}

.site-header__buy {
    width: 64px;
}

.balance {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    height: 38px;
    padding: var(--space-8) var(--space-12);
    border-radius: var(--radius-12);
    background: var(--overlay-light-005);
    color: var(--color-white);
    font-size: 16px;
    line-height: 22px;
    white-space: nowrap;
}

.balance__coin {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
}

@media (min-width: 768px) {
    .site-header--guest .site-header__logo img {
        width: 84px;
        height: 48px;
    }

    .site-header__left {
        gap: var(--space-24);
    }

    .site-header__buy {
        width: 94px;
    }
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-24);
    padding: var(--space-32) var(--page-gutter);
    overflow: hidden;
}

.section--compact {
    padding-block: var(--space-16);
}

.section__title {
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.section__title--sm {
    font-size: 18px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .section--compact {
        padding-block: var(--space-32);
    }

    .section__title {
        font-size: 32px;
    }

    .section__title--sm {
        font-size: 18px;
    }
}

.page-guest .site-main {
    position: static;
}

.page-guest .site-main > :not(.guest-bg, .signup-bar) {
    position: relative;
    z-index: 1;
}

.guest-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    height: 720px;
    overflow: hidden;
    background: linear-gradient(180deg, #0d0113 0, #1c0626 144px, #17071c 360px, #13011b 432px, #13011b 100%);
    pointer-events: none;
}

.guest-bg img {
    width: 440px;
    max-width: none;
    height: 720px;
    margin-left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
}

@media (min-width: 441px) and (max-width: 767px) {
    .guest-bg img {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    }
}

@media (min-width: 1921px) {
    .guest-bg img {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
    }
}

@media (min-width: 768px) {
    .guest-bg {
        height: 900px;
        background: linear-gradient(180deg, #5d1c79 0, #501865 90px, #411655 180px, #371347 270px, #2c0f38 360px, #240c2e 450px, #1e0a24 540px, #17071c 630px, #140416 720px, #110212 810px, var(--color-bg) 900px);
    }

    .guest-bg img {
        width: 1920px;
        height: 900px;
    }
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
    padding: var(--space-8) var(--page-gutter) var(--space-24);
    scroll-margin-top: var(--space-16);
}

.hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
    text-align: center;
}

.hero__title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.hero__subtitle {
    margin-top: calc(-1 * var(--space-12));
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 20px;
}

.hero__bonus {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-family: var(--font-accent);
    font-size: 32px;
    font-weight: 500;
    line-height: 32px;
}

.hero__bonus img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
}

@media (min-width: 768px) {
    .hero {
        padding-top: var(--space-24);
    }

    .hero__title {
        font-size: 32px;
    }
}

.signup {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    width: 100%;
    max-width: 340px;
}

@media (min-width: 768px) {
    .signup {
        max-width: 320px;
    }
}

.signup__errors {
    padding: var(--space-8) var(--space-12);
    border: 1px solid rgba(255, 83, 81, 0.4);
    border-radius: var(--radius-12);
    background: rgba(255, 83, 81, 0.12);
    color: var(--color-text);
    font-size: 14px;
    line-height: 18px;
}

.field {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    height: 47px;
    padding: 0 var(--space-16);
    border: 0.5px solid var(--overlay-light-016);
    border-radius: var(--radius-full);
    background: var(--overlay-light-008);
    transition: border-color 0.15s ease;
}

.field:focus-within {
    border-color: var(--color-accent-soft);
}

.field.is-invalid {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(255, 83, 81, 0.18);
    animation: field-shake 0.4s ease;
}

.check.is-invalid .check__box {
    animation: field-shake 0.4s ease;
}

.check.is-invalid .check__text {
    color: #ffb4b3;
}

@keyframes field-shake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-4px);
    }

    40%, 80% {
        transform: translateX(4px);
    }
}

.field__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    outline: none;
}

.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text);
    caret-color: var(--color-text);
    transition: background-color 600000s 0s, color 600000s 0s;
}

.field__input:autofill {
    background: transparent;
    filter: none;
}

.field__input::placeholder {
    color: var(--color-placeholder);
    opacity: 1;
}

.field__toggle {
    display: flex;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    opacity: 0.64;
}

.field__toggle[aria-pressed="true"] {
    opacity: 1;
}

.signup__terms {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.check {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-8);
    cursor: pointer;
}

.check__input {
    position: absolute;
    width: 24px;
    height: 24px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.check__box {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.check__box::before {
    content: "";
    position: absolute;
    inset: 12.5%;
    border: 1px solid var(--overlay-light-040);
    border-radius: var(--radius-4);
}

.check__box::after {
    content: "";
    position: absolute;
    inset: calc(12.5% + 4px);
    border-radius: var(--radius-2);
    background: var(--color-accent);
    opacity: 0;
}

.check__input:checked + .check__box::before {
    border-color: var(--color-accent-soft);
}

.check__input:checked + .check__box::after {
    opacity: 1;
}

.check__input:focus-visible + .check__box {
    outline: 2px solid var(--color-accent-soft);
    outline-offset: 0;
    border-radius: var(--radius-4);
}

.check.is-invalid .check__box::before {
    border-color: var(--color-danger);
}

.check__text {
    flex: 1;
    color: var(--color-text-soft);
    font-family: var(--font-accent);
    font-size: 10px;
    font-weight: 500;
    line-height: 14px;
}

.check__text a {
    color: var(--color-accent);
    text-decoration: none;
}

.check__text a:hover {
    text-decoration: underline;
}

.signup__submit {
    width: 100%;
}

.signup__disclaimer {
    color: var(--color-text-soft);
    font-family: var(--font-accent);
    font-size: 10px;
    line-height: 14px;
    text-align: center;
}

.signup-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    padding: var(--space-12) var(--space-16) calc(var(--space-12) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--overlay-light-008);
    border-radius: var(--radius-16) var(--radius-16) 0 0;
    background: #2a002a;
    backdrop-filter: blur(10px);
}

.signup-bar__button {
    flex: 1;
    min-width: 68px;
    max-width: 361px;
    padding: var(--space-8) var(--space-16);
    border: 1px solid var(--overlay-light-040);
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #020d07;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
}

.page-guest .site-footer {
    padding-bottom: calc(var(--space-24) + 72px);
}

@media (min-width: 768px) {
    .signup-bar {
        display: none;
    }

    .page-guest .site-footer {
        padding-bottom: var(--space-24);
    }
}

.game-stack {
    position: relative;
    flex-shrink: 0;
    width: 340px;
    height: 174px;
}

.game-card {
    position: absolute;
    display: block;
    border-radius: var(--radius-12);
    overflow: hidden;
    box-shadow: 0 14px 14px #000000;
    transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease, filter 0.15s ease;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card:hover {
    filter: brightness(1.08);
}

.game-card--left,
.game-card--right {
    z-index: 1;
    top: 16px;
    width: 105px;
    height: 142px;
}

.game-card--left {
    left: 9px;
}

.game-card--right {
    left: 225px;
}

.game-card--center {
    z-index: 2;
    top: 0;
    left: 105px;
    width: 129px;
    height: 174px;
}

.game-card__badge {
    position: absolute;
    top: var(--space-8);
    left: var(--space-8);
    display: flex;
    align-items: center;
    height: 18px;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--overlay-dark-032);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.25);
    color: #f3f6f5;
    font-family: var(--font-accent);
    font-size: 10px;
    font-weight: 500;
    line-height: 14px;
}

@media (min-width: 768px) {
    .game-stack {
        width: 550px;
        height: 282px;
    }

    .game-card--left,
    .game-card--right {
        top: 26px;
        width: 170px;
        height: 230px;
        box-shadow: 0 8px 14px #000000;
    }

    .game-card--left {
        left: 14px;
    }

    .game-card--right {
        left: 364px;
    }

    .game-card--center {
        left: 170px;
        width: 208px;
        height: 282px;
        box-shadow: 0 0 18px #000000, 0 12px 22px #000000;
    }
}

.game-card--hidden {
    display: none;
}

.game-stack.is-carousel {
    width: calc(100% + 32px);
    height: var(--card-h);
    margin-inline: -16px;
    perspective: 1000px;
    transform-style: preserve-3d;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.game-stack.is-carousel .carousel-slide {
    top: 0;
    left: calc(50% - var(--card-w) / 2);
    width: var(--card-w);
    height: var(--card-h);
    overflow: hidden;
    border: 1px solid var(--overlay-light-016);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.5s ease, opacity 0.5s ease;
    -webkit-user-drag: none;
}

.game-stack.is-carousel .carousel-slide.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.game-stack.is-carousel .game-card__badge {
    display: none;
}

.carousel-pagination {
    display: none;
    justify-content: center;
    gap: var(--space-16);
}

.carousel-pagination button {
    display: grid;
    place-items: center;
    width: 62px;
    height: 54px;
    border: none;
    border-radius: 8px;
    background: var(--overlay-light-008);
    color: var(--color-text);
    font-size: 30px;
    transition: background 0.2s ease;
}

.carousel-pagination button:hover {
    background: var(--overlay-light-016);
}

.carousel-pagination .prev span {
    transform: rotate(90deg);
}

.carousel-pagination .next span {
    transform: rotate(-90deg);
}

.carousel-pagination span {
    display: grid;
}

.carousel-pagination svg {
    transform: translateY(0);
    transition: transform 300ms;
}

@media (hover: hover) {
    .carousel-pagination button:hover svg {
        transform: translateY(5px);
    }
}

@media (min-width: 768px) {
    .game-stack.is-carousel {
        width: 100%;
        margin-inline: 0;
    }
}

@media (min-width: 1024px) {
    .carousel-pagination {
        display: flex;
    }
}

.benefits {
    display: grid;
    gap: var(--space-24);
    width: 100%;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    text-align: center;
}

.benefit__image {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 360 / 200;
    object-fit: cover;
}

.benefit__title {
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
}

.benefit__text {
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-32);
        max-width: 1376px;
    }
}

@media (min-width: 1200px) {
    .benefits {
        gap: var(--space-64);
    }
}

.banner {
    padding: var(--space-16);
}

.banner__inner {
    position: relative;
    display: flex;
    max-width: 1032px;
    min-height: 464px;
    margin-inline: auto;
    padding: var(--space-24);
    overflow: hidden;
    border-radius: var(--radius-16);
    background: var(--overlay-light-016);
}

.banner__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner__content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-24);
}

.banner__title {
    color: var(--color-headline);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: var(--shadow-xl);
}

.banner__button {
    width: 100%;
    max-width: 240px;
    height: 46px;
}

@media (min-width: 768px) {
    .banner {
        padding: var(--space-24) var(--space-32);
    }

    .banner__inner {
        min-height: 396px;
        padding: var(--space-24) var(--space-32) var(--space-24) var(--space-48);
        border-radius: var(--radius-12);
        background: rgba(231, 231, 231, 0.2);
    }

    .banner__content {
        align-items: flex-start;
        justify-content: center;
    }

    .banner__title {
        max-width: 50%;
        font-size: 40px;
        line-height: 40px;
        text-align: left;
    }

    .banner__button {
        height: 50px;
    }
}

.game {
    display: flex;
    justify-content: center;
    padding: var(--space-16);
}

.game__wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    width: 100%;
    max-width: 938px;
}

.game-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
    padding: var(--space-8);
    border-top: 0.5px solid #9815ad;
    border-radius: var(--radius-full);
    background: #2a022a;
}

.game-bar__left {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    min-width: 0;
}

.game-bar__title {
    overflow: hidden;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.round-button {
    display: flex;
    flex-shrink: 0;
    padding: var(--space-8);
    border: 1px solid rgba(211, 88, 230, 0.24);
    border-radius: var(--radius-full);
    background: linear-gradient(180deg, rgba(231, 156, 243, 0.15) 0%, rgba(255, 248, 255, 0.3) 143.33%);
}

.round-button__icon {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
}

.round-button__icon img {
    width: 20px;
    height: 20px;
}

.like-icon {
    display: block;
    width: 20px;
    height: 20px;
    overflow: visible;
}

.like-icon path {
    fill: transparent;
    stroke: rgba(237, 59, 124, 0.75);
    stroke-width: 1.8;
    stroke-linejoin: round;
    transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.round-button--like:hover .like-icon path {
    fill: rgba(237, 59, 124, 0.22);
    stroke: #ed3b7c;
}

.round-button--like[aria-pressed="true"] .like-icon path {
    fill: #ed3b7c;
    stroke: #ed3b7c;
    filter: drop-shadow(0 0 4px rgba(237, 59, 124, 0.75));
}

.round-button--like.is-popping .like-icon {
    animation: like-pop 0.35s ease-out;
}

@keyframes like-pop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.game-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 938 / 520;
    min-height: 280px;
    overflow: hidden;
    border-top: 1px solid var(--color-neutral-35);
    border-radius: var(--radius-24);
    background: #1a061a;
}

.game-frame__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) brightness(0.45);
    transform: scale(1.15);
}

.game-frame__placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-24);
    text-align: center;
}

.game-frame__title {
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
}

.game-frame__text {
    color: var(--color-text-muted);
}

.game-frame__iframe {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    height: 100%;
    border: 0;
    background: transparent;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.game-frame--landscape .game-frame__iframe {
    width: 100%;
}

body.page-game {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}

.page-game .site-main {
    display: flex;
    flex: 1;
    min-height: 0;
}

.page-game .game {
    flex: 1;
    min-height: 0;
    padding: var(--space-8) var(--space-8) var(--space-8);
}

.page-game .game__wrap {
    flex: 1;
    min-height: 0;
}

.game-frame--portrait {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: var(--radius-16);
}

.game-frame--portrait .game-frame__iframe {
    width: 100%;
}


@media (max-height: 480px) {
    body.page-game {
        height: auto;
    }

    .game-frame--portrait {
        flex: none;
        height: 460px;
    }
}

@media (min-width: 600px) {
    .game-frame--portrait {
        max-height: 844px;
        border-radius: var(--radius-24);
    }

    .game-frame--portrait .game-frame__iframe {
        width: auto;
        min-width: min(100%, 320px);
        max-width: 100%;
        aspect-ratio: 430 / 844;
    }
}

.game-frame.is-ready .game-frame__iframe {
    opacity: 1;
}

.game-frame.is-ready .game-frame__placeholder {
    display: none;
}

@media (min-width: 768px) {
    .game,
    .page-game .game {
        padding: var(--space-24) var(--space-32);
    }

    .game-bar__title {
        font-size: 20px;
        line-height: 26px;
    }
}

.legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-24);
    padding: var(--space-32) var(--page-gutter);
}

.legal__back,
.legal__back,
.legal__body {
    width: 100%;
    max-width: 940px;
}

.legal__back {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-family: var(--font-accent);
    text-decoration: none;
}

.legal__back:hover span {
    text-decoration: underline;
}

.prose {
    color: var(--color-text);
    font-size: 14px;
    line-height: 18px;
    overflow-wrap: anywhere;
}

.prose > * + * {
    margin-top: var(--space-16);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    margin-bottom: 0;
    font-weight: 400;
}

.prose h1 {
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
}

.prose h2 {
    font-size: 20px;
    line-height: 26px;
    text-transform: uppercase;
}

.prose h1 + *,
.prose h2 + * {
    margin-top: var(--space-12);
}

.prose h3 {
    font-size: 20px;
    line-height: 26px;
}

.prose h4 {
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
}

.prose h5 {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}

.prose h6 {
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
}

.prose :is(h3, h4, h5, h6) + * {
    margin-top: var(--space-8);
}

.prose * + :is(h2, h3, h4, h5, h6) {
    margin-top: var(--space-24);
}

.prose ul,
.prose ol {
    padding-left: 21px;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li + li {
    margin-top: var(--space-4);
}

.prose strong,
.prose b {
    font-weight: 600;
}

.prose em,
.prose i {
    font-style: italic;
}

.prose span {
    font: inherit;
    color: inherit;
}

.prose a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: underline;
    text-decoration-color: #ffd941;
    text-underline-position: from-font;
}

.prose a:hover {
    text-decoration-color: #f8bc23;
    filter: brightness(1.1);
}

.prose hr {
    height: 1px;
    border: 0;
    background: var(--overlay-light-016);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: var(--space-8);
    border: 1px solid var(--overlay-light-016);
    text-align: left;
    vertical-align: top;
}

.prose th {
    font-weight: 600;
}

@media (min-width: 768px) {
    .prose h2 {
        font-size: 26px;
        line-height: 28px;
    }
}

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-24);
    padding: var(--space-32) var(--space-32) var(--space-24);
    text-align: center;
}

.site-footer__logo {
    width: 120px;
    height: 68px;
    object-fit: cover;
}

.site-footer__help {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
}

.support-chip {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-8) var(--space-12);
    border: 1px solid var(--overlay-light-008);
    border-radius: var(--radius-full);
    background: var(--overlay-light-008);
    font-weight: 500;
    text-decoration: none;
}

.support-chip:hover {
    border-color: var(--overlay-light-016);
}

.site-footer__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-32);
}

.site-footer__disclaimer {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    max-width: 946px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 18px;
}

.site-footer__cap {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    width: 100%;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    order: 2;
}

.site-footer__link {
    color: var(--color-neutral-70);
    font-size: 14px;
    line-height: 18px;
    text-decoration: none;
}

.site-footer__link:hover {
    color: var(--color-text);
}

.site-footer__link--desktop {
    display: none;
}

.payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
    order: 1;
    padding: 0;
    list-style: none;
}

.payment-logos__item {
    position: relative;
    width: 60px;
    height: 40px;
}

.payment-logos__item img {
    width: 100%;
    height: 100%;
}

.payment-logos__item--mastercard img {
    position: absolute;
    top: 20.83%;
    left: 18.57%;
    width: 64.29%;
    height: 57.53%;
}

.payment-logos__item--apple {
    width: 68px;
}

.payment-logos__item--apple img {
    position: absolute;
    top: 20.83%;
    left: 9.64%;
    width: 80.71%;
    height: 58.34%;
}

.site-footer__copy {
    order: 3;
    font-size: 14px;
    line-height: 18px;
}

@media (min-width: 768px) {
    .site-footer__links {
        flex-flow: row wrap;
        justify-content: center;
        gap: var(--space-12) var(--space-48);
        order: 1;
    }

    .site-footer__link--desktop {
        display: inline;
    }

    .payment-logos {
        order: 2;
    }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.modal:target,
.modal.is-open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-dark-064);
}

.modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
}

.modal__panel:focus {
    outline: none;
}

.modal__head {
    position: relative;
    display: flex;
    justify-content: center;
    padding: var(--space-12) var(--space-16);
}

.modal__title {
    max-width: 300px;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    text-align: center;
}

.modal__close {
    position: absolute;
    top: var(--space-12);
    right: var(--space-16);
    display: block;
    width: 26px;
    height: 26px;
}

html.is-scroll-locked,
html:has(.modal:target) {
    overflow: hidden;
}

html.is-scroll-locked body {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
}

.drawer,
.store {
    overscroll-behavior: contain;
}

.modal--drawer {
    justify-content: flex-start;
}

.drawer {
    width: min(393px, 100%);
    height: 100%;
    overflow-y: auto;
    animation: drawer-in 0.2s ease;
}

.drawer__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    padding: var(--space-8) var(--space-16) var(--space-16);
}

.drawer__divider {
    width: 100%;
    height: 2px;
    margin: 0;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--overlay-light-004);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
    text-decoration: none;
}

.menu-link img {
    width: 24px;
    height: 24px;
}

.menu-link__dot {
    display: flex;
    padding: var(--space-4);
    border-radius: var(--radius-full);
    background: #540007;
}

.menu-link__dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: #df3438;
}

.menu-link--danger {
    color: var(--color-danger);
    font-size: 16px;
    line-height: 22px;
}

@keyframes drawer-in {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.modal--center {
    align-items: center;
    justify-content: center;
    padding: var(--space-16);
}

.store {
    width: 100%;
    max-width: 440px;
    max-height: min(700px, 100%);
    overflow: hidden auto;
    border: 1px solid var(--overlay-light-040);
    border-radius: var(--radius-24);
}

.store::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 535px;
    background: var(--gradient-page-glow);
    pointer-events: none;
}

.store > * {
    position: relative;
}

.store__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    padding: 0 var(--space-16) var(--space-16);
}

.store__cols {
    display: flex;
    justify-content: space-between;
    margin-bottom: calc(-1 * var(--space-8));
    padding: 0 var(--space-12);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.store__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: 0;
    list-style: none;
}

.package {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 68px;
    overflow: hidden;
    border: 0.5px solid transparent;
    border-radius: var(--radius-64);
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.package:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.package:active {
    transform: translateY(0);
}

.package--pink {
    border-color: #e8226e;
    background: radial-gradient(87% 411% at 13% 0%, rgba(255, 39, 79, 0.2) 0%, rgba(255, 147, 167, 0.11) 50%, rgba(255, 255, 255, 0.02) 100%);
}

.package--blue {
    border-color: #07b5ff;
    background: radial-gradient(87% 411% at 13% 0%, rgba(7, 181, 255, 0.2) 0%, rgba(131, 218, 255, 0.11) 50%, rgba(255, 255, 255, 0.02) 100%);
}

.package--purple {
    border-color: #a144ff;
    background: radial-gradient(87% 411% at 13% 0%, rgba(233, 39, 255, 0.2) 0%, rgba(244, 147, 255, 0.11) 50%, rgba(255, 255, 255, 0.02) 100%);
}

.package--plain {
    border: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0.28%, rgba(255, 255, 255, 0.07) 100%);
}

.package__deal {
    position: absolute;
    top: -0.5px;
    left: -0.5px;
    display: flex;
    gap: var(--space-4);
    padding: var(--space-2) var(--space-8) var(--space-2) 36px;
    border-bottom-right-radius: 10px;
    background: var(--overlay-light-008);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
}

.package__deal span,
.store__note a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.package__value {
    display: flex;
    flex: 1;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
    padding: var(--space-12) var(--space-8) var(--space-12) var(--space-16);
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
    text-shadow: 0 4px 6px rgba(2, 6, 23, 0.05), 0 10px 15px rgba(2, 6, 23, 0.1);
}

.package__deal + .package__value {
    padding-top: var(--space-24);
}

.package__value img {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
}

.package__price {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    width: 104px;
    padding: var(--space-16) var(--space-12) var(--space-16) var(--space-8);
}

.package__buy {
    width: 100%;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-12);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary-inset);
    color: var(--color-bg);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
}

.package__old {
    position: absolute;
    top: 13px;
    left: 53px;
    min-width: 43px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.86);
    font-size: 10px;
    font-weight: 500;
    line-height: 14px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.package__old::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 1px;
    border-radius: 99px;
    background: #ff0000;
    transform: translate(-50%, -50%) rotate(8.56deg);
}

.store__note {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}

.store__note a {
    font-weight: 400;
    text-decoration: none;
}

.store__note a:hover {
    text-decoration: underline;
    text-decoration-color: #ffd941;
}

.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
    padding: var(--space-64) var(--page-gutter);
    text-align: center;
}

.not-found__title {
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
}

.not-found__text {
    color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.store,
.drawer {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 217, 65, 0.55) transparent;
}

.store::-webkit-scrollbar,
.drawer::-webkit-scrollbar {
    width: 6px;
}

.store::-webkit-scrollbar-track,
.drawer::-webkit-scrollbar-track {
    margin-block: 24px;
    background: transparent;
}

.store::-webkit-scrollbar-thumb,
.drawer::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd941, #f8bc23);
}

.store::-webkit-scrollbar-thumb:hover,
.drawer::-webkit-scrollbar-thumb:hover {
    background: #ffd941;
}

.game-bar__right {
    display: flex;
    align-items: center;
    gap: var(--space-12);
}

.game-bar__exit--mobile,
.game-bar__buy {
    display: none;
}

@media (max-width: 599px) {
    .page-game .site-header {
        display: none;
    }

    .page-game .game {
        padding: var(--space-8) 0 0;
    }

    .page-game .game-bar {
        margin: 0 var(--space-16);
        padding: var(--space-12) var(--space-16);
        border-top: 0.5px solid #9815ad;
        border-bottom: 0.5px solid #9815ad;
    }

    .page-game .game-bar__title {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .page-game .game-bar__exit--mobile {
        display: flex;
    }

    .page-game .game-bar__exit--desktop {
        display: none;
    }

    .page-game .game-bar__buy {
        display: inline-flex;
        width: 64px;
    }

    .page-game .game-frame--portrait {
        border-top: 0;
        border-radius: 0;
    }
}
