@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/rubik-latin-variable.woff2") format("woff2");
}

:root {
    --color-bg: #08080c;
    --color-surface: #191925;
    --color-surface-raised: #313149;
    --color-bg-glow: rgba(128, 0, 255, 0.24);
    --color-text: #ffffff;
    --color-text-soft: #ededf3;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-placeholder: #9191b5;
    --color-neutral-70: #9191b5;
    --color-neutral-35: #424261;
    --color-accent: #c3ff00;
    --color-accent-soft: #e7ff99;
    --color-headline: #ffffff;
    --color-secondary: #a033ff;
    --color-coin: #ffdd33;
    --color-danger: #ff3333;
    --color-danger-muted: color-mix(in srgb, var(--color-danger) 60%, var(--color-surface-raised));
    --color-danger-700: #990000;
    --color-danger-950: #1f0000;
    --color-on-primary: #08080c;
    --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(8, 8, 12, 0.32);
    --overlay-dark-064: rgba(8, 8, 12, 0.72);
    --overlay-accent-012: rgba(195, 255, 0, 0.12);
    --overlay-accent-045: rgba(195, 255, 0, 0.45);

    --gradient-primary: linear-gradient(180deg, #cfff33 0%, #c3ff00 100%);
    --gradient-page-glow: linear-gradient(180deg, var(--color-bg-glow) 0%, rgba(8, 8, 12, 0) 100%);
    --shadow-primary-inset: inset 0 4px 13px #f1ffc2;
    --shadow-surface-inset: inset 0 4px 12px rgba(255, 255, 255, 0.16);
    --shadow-glow: 0 0 80px rgba(128, 0, 255, 0.28);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.6);

    --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: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-accent: var(--font-body);

    --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;
}

.sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.sky::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    background: url("../images/bg-stars.webp") center repeat;
    transform: translate(-50%, -50%) scale(0.8);
    animation: sky-zoom 40s steps(480) infinite;
}

.sky__star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: sky-shooting-star 12s linear infinite;
}

.sky__star::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-white), transparent);
    transform: translateY(-50%);
}

.sky__star--1 {
    top: 0;
    right: 30px;
}

.sky__star--2 {
    top: 300px;
    right: 120px;
    animation-delay: 3s;
}

.sky__star--3 {
    top: 300px;
    right: 0;
    animation-delay: 6s;
}

.sky__star--4 {
    top: 160px;
    right: 60px;
    animation-delay: 9s;
}

.sky:not(.is-active)::after,
.sky:not(.is-active) .sky__star {
    animation-play-state: paused;
}

@media (min-width: 768px) {
    .sky::after {
        animation-duration: 90s;
        animation-timing-function: steps(1080);
    }

    .sky__star--1 {
        right: 80px;
    }

    .sky__star--2 {
        top: 0;
        right: 700px;
    }

    .sky__star--4 {
        top: 180px;
        right: 320px;
    }
}

@keyframes sky-zoom {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes sky-shooting-star {
    0% {
        opacity: 1;
        transform: rotate(315deg) translateX(0);
    }

    15% {
        opacity: 0;
        transform: rotate(315deg) translateX(-1000px);
    }
}

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

.btn--primary {
    border-color: var(--color-accent-soft);
    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.is-loading {
    pointer-events: none;
    filter: saturate(0.75) brightness(0.88);
}

.btn.is-loading::before {
    content: "";
    flex: none;
    width: 0.8em;
    height: 0.8em;
    border: 0.14em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

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

.btn--lg {
    height: 50px;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}

.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: 80px;
    height: 44px;
}

.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: 73px;
    height: 40px;
    object-fit: contain;
}

.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: 1px solid var(--overlay-light-005);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    box-shadow: var(--shadow-surface-inset);
    color: var(--color-coin);
    font-weight: 500;
    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: 102px;
        height: 56px;
    }

    .site-header__logo img {
        width: 87px;
        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: 24px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

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

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

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

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

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

.hero__art {
    position: relative;
    width: min(100%, 460px);
    margin: calc(-1 * var(--space-8)) auto calc(-1 * var(--space-24));
    pointer-events: none;
}

.hero__art::before {
    content: "";
    position: absolute;
    inset: 4% 8% 0;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(128, 0, 255, 0.5), rgba(128, 0, 255, 0.16) 60%, rgba(128, 0, 255, 0) 100%);
    filter: blur(8px);
}

.hero__art img {
    width: 100%;
    height: auto;
    animation: art-float 7s ease-in-out infinite;
}

.hero__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
    width: 100%;
    max-width: 400px;
}

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

.hero__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero__bonus {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    color: var(--color-coin);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    text-shadow: 0 0 24px rgba(255, 221, 51, 0.45);
}

.hero__bonus img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    filter: drop-shadow(0 0 12px rgba(255, 196, 0, 0.45));
}


.hero__subtitle {
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
}

@media (max-width: 899px) and (max-height: 740px) {
    .hero__art {
        width: min(100%, 300px);
    }

    .hero__bonus {
        font-size: 40px;
    }
}

@keyframes art-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Below 350px the bonus line would not fit on one row. */
@media (max-width: 349px) {
    .hero__bonus {
        gap: var(--space-4);
        font-size: 34px;
    }

    .hero__bonus img {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 600px) and (max-width: 1199px) and (min-height: 741px) {
    .hero__art {
        width: min(100%, 600px);
    }
}

@media (min-width: 1200px) {
    /* Form on the left, art on the right with the bonus as a badge on it. */
    .hero {
        display: grid;
        grid-template-columns: 400px minmax(0, 1fr);
        grid-template-areas:
            "title art"
            "subtitle art"
            "form art";
        grid-template-rows: auto auto auto;
        align-content: center;
        gap: var(--space-8) var(--space-48);
        width: min(1400px, calc(100% - 2 * var(--page-gutter)));
        margin: var(--space-16) auto 0;
        padding: 0 0 0 clamp(0px, calc((100vw - 1200px) / 4), 80px);
    }

    .hero__body,
    .hero__text {
        display: contents;
    }

    /* The whole composition fits the column, nothing is cropped. Validation errors are overlays
       (tooltip / floating box), so the form height is constant and the art never shifts. */
    .hero__art {
        grid-area: art;
        align-self: center;
        width: 100%;
        margin: 0;
    }

    .hero__art::before {
        inset: 20% 22%;
    }

    .hero__title {
        grid-area: title;
        font-size: 32px;
        line-height: 1.1;
        text-align: left;
    }

    .hero__subtitle {
        grid-area: subtitle;
        margin-bottom: var(--space-16);
        font-size: 18px;
        text-align: left;
    }

    .signup {
        grid-area: form;
    }

    .hero__bonus {
        z-index: 2;
        grid-area: art;
        align-self: end;
        justify-self: end;
        margin: 0 var(--space-24) var(--space-24) 0;
        padding: var(--space-12) var(--space-24) var(--space-12) var(--space-16);
        border: 1px solid rgba(255, 221, 51, 0.45);
        border-radius: var(--radius-full);
        background: rgba(8, 8, 12, 0.72);
        box-shadow: 0 0 40px rgba(255, 221, 51, 0.25), 0 12px 30px rgba(0, 0, 0, 0.5);
        font-size: 44px;
    }
}

.signup {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    width: 100%;
    padding: var(--space-16);
    border: 1px solid var(--overlay-light-008);
    border-radius: var(--radius-24);
    background: linear-gradient(180deg, rgba(49, 49, 73, 0.78) 0%, rgba(25, 25, 37, 0.94) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(128, 0, 255, 0.18);
}

@media (min-width: 900px) {
    .signup {
        padding: var(--space-24);
    }
}

/* Floats above the card so validation never changes the layout; invalid fields are outlined in red. */
.signup__errors {
    position: absolute;
    right: var(--space-16);
    bottom: calc(100% + var(--space-4));
    left: var(--space-16);
    z-index: 2;
    padding: 6px var(--space-12);
    border: 1px solid var(--color-danger-700);
    border-radius: var(--radius-12);
    background: var(--color-danger-950);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    animation: signup-errors-in 0.2s ease-out;
}

/* Only the first message is shown; the rest stay readable for screen readers. */
.signup__errors p + p {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.field-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: var(--space-12);
    z-index: 3;
    max-width: calc(100% - 2 * var(--space-12));
    padding: 6px 10px;
    border-radius: 8px;
    background: #ad323c;
    background: var(--color-danger-muted);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    pointer-events: none;
    animation: signup-errors-in 0.18s ease-out;
}

.field-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 14px;
    border: 6px solid transparent;
    border-top-color: #ad323c;
    border-top-color: var(--color-danger-muted);
}

.check .field-tip {
    left: -2px;
    max-width: 100%;
}

.check .field-tip::after {
    left: 8px;
}

@keyframes signup-errors-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-8);
    height: 52px;
    padding: 0 var(--space-16) 0 var(--space-16);
    border: 1px solid var(--overlay-light-008);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: border-color 0.15s ease;
}

.field:focus-within {
    border-color: var(--color-accent);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--overlay-accent-012);
}

.field__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.field:focus-within .field__icon {
    filter: brightness(1.6);
}

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

@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(--color-neutral-35);
    border-radius: var(--radius-4);
    background: var(--color-surface);
}

.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.is-invalid .check__box::before {
    border-color: var(--color-danger);
}

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

.check__text {
    flex: 1;
    color: var(--color-text-muted);
    font-family: var(--font-accent);
    font-size: 11px;
    font-weight: 400;
    line-height: 15px;
}

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

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

.signup__submit {
    width: 100%;
    height: 54px;
    margin-top: var(--space-4);
    box-shadow: var(--shadow-primary-inset), 0 8px 28px rgba(195, 255, 0, 0.3);
}

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

.signup__disclaimer a {
    color: inherit;
}

.grecaptcha-badge {
    visibility: hidden;
}

.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: rgba(25, 25, 37, 0.92);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, visibility 0.25s;
}

.signup-bar.is-hidden {
    visibility: hidden;
    transform: translateY(100%);
}

.signup-bar__button {
    flex: 1;
    min-width: 68px;
    max-width: 361px;
    padding: var(--space-8) var(--space-16);
    border: 1px solid var(--color-accent-soft);
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary-inset);
    color: var(--color-on-primary);
    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;
    transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease, filter 0.15s ease;
}

.game-card--silver {
    color: #3fb8ff;
}

.game-card--gold {
    color: #ff4a1c;
}

.game-card--platinum {
    color: #c06bff;
}

/* The cover sits exactly in the ticket's window (see game-frame.php: window 12..188 x 12..236 of 200x250). */
.game-card img {
    position: absolute;
    top: 4.8%;
    left: 6%;
    width: 88%;
    height: 89.6%;
    object-fit: cover;
    object-position: 50% 0;
    clip-path: polygon(5.7% 0, 71.6% 0, 75% 2.7%, 95.5% 2.7%, 100% 6.25%, 100% 94.6%, 94.3% 100%, 6.8% 100%, 0 94.6%, 0 5.4%);
}

.game-card__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.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: 9%;
    left: 10%;
    display: flex;
    align-items: center;
    height: 18px;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: var(--color-on-primary);
    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;
    }

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

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

    .game-card--center {
        left: 170px;
        width: 208px;
        height: 282px;
    }
}

.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);
    cursor: pointer;
    transition: transform 0.5s ease, opacity 0.5s ease;
    -webkit-user-drag: none;
}

.game-stack.is-carousel .carousel-slide.current .game-card__frame {
    filter: drop-shadow(0 0 12px currentColor);
}

/* Row mode (Recently played, >= 1000px): all games side by side, no 3D. */
.game-stack.is-row {
    display: flex;
    justify-content: center;
    gap: var(--space-32);
    height: auto;
    perspective: none;
}

.game-stack.is-row .carousel-slide {
    position: relative;
    top: auto;
    left: auto;
    flex: none;
    transition: transform 0.2s ease;
}

.game-stack.is-row .carousel-slide:hover {
    transform: translateY(-6px);
}

.game-stack.is-row .carousel-slide:hover .game-card__frame,
.game-stack.is-row .carousel-slide:focus-visible .game-card__frame {
    filter: drop-shadow(0 0 12px currentColor);
}

.game-stack.is-row + .carousel-pagination {
    display: 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: 1px solid var(--overlay-light-005);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    box-shadow: var(--shadow-surface-inset);
    color: var(--color-text);
    font-size: 30px;
    transition: background 0.2s ease;
}

.carousel-pagination button:hover {
    background: var(--color-surface-raised);
}

.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%;
    max-width: 420px;
}

.benefit {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: var(--space-16);
    row-gap: var(--space-4);
    align-items: center;
}

.benefit__image {
    grid-row: span 2;
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.benefit__title {
    align-self: end;
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
}

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

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

    .benefit {
        grid-template-columns: 96px minmax(0, 1fr);
        column-gap: var(--space-12);
    }

    .benefit__image {
        width: 96px;
        height: 96px;
    }
}

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

    .benefit {
        grid-template-columns: 128px minmax(0, 1fr);
        column-gap: var(--space-16);
    }

    .benefit__image {
        width: 128px;
        height: 128px;
    }

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

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

/* No card: the art and its floating elements sit directly on the starry sky. */
.banner__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1216px;
    margin-inline: auto;
}

.banner__visual {
    position: relative;
    width: min(100%, 440px);
    margin-bottom: calc(-1 * var(--space-8));
}

.banner__visual::before {
    content: "";
    position: absolute;
    inset: 8% 10%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 110, 255, 0.45), rgba(128, 0, 255, 0.18) 65%, rgba(128, 0, 255, 0) 100%);
    filter: blur(8px);
}

.banner__art {
    position: relative;
    width: 100%;
    height: auto;
    animation: art-float 7s ease-in-out infinite;
}

.banner__deco {
    position: absolute;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
    animation: deco-float 6s ease-in-out infinite;
    pointer-events: none;
}

.banner__deco--gold {
    top: 8%;
    left: -1%;
    width: 15%;
    --deco-rotate: -14deg;
}

.banner__deco--sphere {
    top: 1%;
    left: 50%;
    width: 9%;
    animation-duration: 8s;
    animation-delay: -2s;
}

.banner__deco--coins {
    top: 36%;
    right: -3%;
    width: 15%;
    animation-duration: 7s;
    animation-delay: -4s;
}

.banner__deco--platinum {
    bottom: 6%;
    left: 36%;
    width: 11%;
    animation-duration: 9s;
    animation-delay: -1s;
    --deco-rotate: 18deg;
}

@keyframes deco-float {
    0%, 100% {
        transform: translateY(0) rotate(var(--deco-rotate, 0deg));
    }

    50% {
        transform: translateY(-10px) rotate(calc(var(--deco-rotate, 0deg) + 6deg));
    }
}

.banner__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
    width: 100%;
}

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

.banner__button {
    width: 100%;
    max-width: 320px;
    height: 52px;
    box-shadow: var(--shadow-primary-inset), 0 8px 28px rgba(195, 255, 0, 0.3);
}

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

    .banner__visual {
        width: min(100%, 560px);
    }

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

    .banner__title {
        font-size: 40px;
    }

    .banner__button {
        max-width: 280px;
    }
}

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

.banner__subtitle {
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}

@media (min-width: 768px) {
    .banner__subtitle {
        font-size: 18px;
    }
}

.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: 1px solid var(--overlay-light-005);
    border-radius: var(--radius-full);
    background: var(--color-surface);
}

.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 var(--overlay-light-005);
    border-radius: var(--radius-full);
    background: var(--color-surface-raised);
    box-shadow: var(--shadow-surface-inset);
}

.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: 1px solid var(--overlay-light-008);
    border-radius: var(--radius-24);
    background: var(--color-surface);
}

.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: var(--color-accent);
    text-underline-position: from-font;
}

.prose a:hover {
    text-decoration-color: var(--color-accent-soft);
    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: 131px;
    height: 72px;
    object-fit: contain;
}

.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-16);
    border: 1px solid var(--overlay-light-005);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    box-shadow: var(--shadow-surface-inset);
    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-text);
    font-size: 14px;
    line-height: 18px;
    text-decoration: none;
}

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

.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;
    color: var(--color-neutral-70);
    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-surface);
}

.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: 600;
    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-008);
    box-shadow: var(--shadow-glow);
    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;
}

.terms-modal {
    width: 100%;
    max-width: 720px;
    max-height: min(820px, 100%);
    overflow: hidden;
    border: 1px solid var(--overlay-light-008);
    border-radius: var(--radius-24);
    box-shadow: var(--shadow-glow);
}

.terms-modal .modal__head {
    flex-shrink: 0;
    padding: var(--space-16) var(--space-48);
    border-bottom: 1px solid var(--overlay-light-008);
}

.terms-modal .modal__title {
    max-width: none;
    font-size: 18px;
    line-height: 24px;
}

.terms-modal .modal__close {
    top: 50%;
    transform: translateY(-50%);
}

.terms-modal__body {
    flex: 1;
    min-height: 0;
    padding: var(--space-16) var(--space-16) var(--space-24);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(195, 255, 0, 0.55) transparent;
}

.terms-modal__loading {
    padding: var(--space-32) 0;
    color: var(--color-text-muted);
    text-align: center;
}

/* Phones: the legal text gets the whole screen. */
@media (max-width: 767px) {
    .modal--terms {
        padding: 0;
    }

    .terms-modal {
        max-width: none;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        animation: terms-sheet-in 0.2s ease-out;
    }

    .terms-modal .modal__head {
        padding-top: calc(var(--space-16) + env(safe-area-inset-top));
    }

    .terms-modal .modal__close {
        top: calc(50% + env(safe-area-inset-top) / 2);
    }

    .terms-modal__body {
        padding-bottom: calc(var(--space-24) + env(safe-area-inset-bottom));
    }
}

@keyframes terms-sheet-in {
    from {
        transform: translateY(24px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.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: #ff3d7f;
    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: var(--color-secondary);
    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);
    color: var(--color-coin);
    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: 1px solid var(--color-accent-soft);
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary-inset);
    color: var(--color-on-primary);
    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: var(--color-accent);
}

.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;
    }

    .sky::after,
    .sky__star,
    .hero__art img,
    .banner__art,
    .banner__deco,
    .bonus-modal__nebula,
    .bonus-modal__gift,
    .bonus-modal__coin,
    .bonus-modal__star {
        animation: none !important;
    }
}

.store,
.drawer {
    scrollbar-width: thin;
    scrollbar-color: rgba(195, 255, 0, 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: var(--gradient-primary);
}

.store::-webkit-scrollbar-thumb:hover,
.drawer::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

.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: 1px solid var(--overlay-light-005);
    }

    .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: 0;
        border-radius: 0;
    }
}

.game-bar__demo {
    flex-shrink: 0;
    padding: 3px 10px;
    border: 1px solid var(--overlay-accent-045);
    border-radius: var(--radius-full);
    background: var(--overlay-accent-012);
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.game-bar__signup {
    padding: var(--space-8) var(--space-24);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

@media (min-width: 600px) {
    .page-demo .game-bar {
        padding: var(--space-8) var(--space-12) var(--space-8) var(--space-24);
    }
}

@media (max-width: 599px) {
    .page-demo .game-bar {
        padding: var(--space-12) var(--space-12) var(--space-12) var(--space-16);
    }
}

.bonus-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16);
    background: radial-gradient(ellipse at 50% 40%, rgba(54, 0, 102, 0.9), rgba(8, 8, 12, 0.97) 70%);
    animation: bonus-fade 0.25s ease-out;
}

.bonus-modal__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
    padding: var(--space-24) var(--space-24) var(--space-24);
    overflow: hidden;
    border: 1px solid rgba(195, 255, 0, 0.5);
    border-radius: 28px;
    background: url("../images/bg-stars.webp") center / 200px repeat, radial-gradient(120% 70% at 50% 0%, #520099 0%, #191925 58%, #08080c 100%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(195, 255, 0, 0.08), 0 0 70px rgba(128, 0, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-align: center;
    animation: bonus-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.bonus-modal__art {
    position: relative;
    display: grid;
    place-items: center;
    width: 220px;
    height: 170px;
}

.bonus-modal__nebula {
    position: absolute;
    inset: -30px -40px;
    background:
        radial-gradient(40% 45% at 50% 50%, rgba(160, 51, 255, 0.55), rgba(160, 51, 255, 0) 70%),
        radial-gradient(30% 35% at 34% 62%, rgba(0, 110, 255, 0.45), rgba(0, 110, 255, 0) 70%),
        radial-gradient(26% 30% at 68% 36%, rgba(255, 90, 200, 0.3), rgba(255, 90, 200, 0) 70%);
    filter: blur(6px);
    animation: bonus-nebula 6s ease-in-out infinite;
}

/* Saturn-like ring: the back half sits behind the gift, the front half (clipped) in front of it. */
.bonus-modal__ring {
    position: absolute;
    top: 58%;
    left: 50%;
    width: 200px;
    height: 58px;
    margin: -29px 0 0 -100px;
    border: 2px solid rgba(207, 153, 255, 0.75);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(160, 51, 255, 0.7), inset 0 0 10px rgba(160, 51, 255, 0.5);
    transform: rotate(-12deg);
}

.bonus-modal__ring::after {
    content: "";
    position: absolute;
    inset: 6px 10px;
    border: 1px solid rgba(255, 221, 51, 0.55);
    border-radius: 50%;
}

.bonus-modal__ring--front {
    z-index: 2;
    clip-path: inset(50% 0 0 0);
}

.bonus-modal__gift {
    position: relative;
    z-index: 1;
    width: 112px;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(160, 51, 255, 0.6));
    animation: bonus-float 3.2s ease-in-out infinite;
}

.bonus-modal__coin {
    position: absolute;
    z-index: 3;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 196, 0, 0.6));
    animation: deco-float 5s ease-in-out infinite;
}

.bonus-modal__coin--left {
    top: 78px;
    left: 4px;
    width: 28px;
    --deco-rotate: -18deg;
}

.bonus-modal__coin--right {
    top: 26px;
    right: 6px;
    width: 34px;
    animation-delay: -2s;
    --deco-rotate: 14deg;
}

.bonus-modal__star {
    position: absolute;
    z-index: 3;
    width: 10px;
    height: 10px;
    background: var(--color-white);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: bonus-twinkle 2.4s ease-in-out infinite;
}

.bonus-modal__star--1 { top: 8px; left: 34px; }
.bonus-modal__star--2 { top: 20px; right: 54px; width: 7px; height: 7px; animation-delay: -0.8s; }
.bonus-modal__star--3 { bottom: 16px; left: 56px; width: 8px; height: 8px; animation-delay: -1.6s; }
.bonus-modal__star--4 { right: 22px; bottom: 34px; width: 6px; height: 6px; animation-delay: -0.4s; }

.bonus-modal__kicker {
    margin-top: var(--space-8);
    padding: 5px 12px;
    border: 1px solid var(--overlay-accent-045);
    border-radius: var(--radius-full);
    background: var(--overlay-accent-012);
    color: var(--color-accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.bonus-modal__title {
    margin-top: var(--space-12);
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
}

.bonus-modal__text {
    margin-top: var(--space-8);
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 22px;
}

.bonus-modal__button {
    width: 100%;
    margin-top: var(--space-24);
}

@keyframes bonus-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bonus-pop {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bonus-nebula {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes bonus-twinkle {
    0%, 100% {
        opacity: 0.25;
        transform: scale(0.6) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) rotate(45deg);
    }
}

@keyframes bonus-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}
