:root {
    --color-bg: #08080c;
    --color-bg-glow: rgba(128, 0, 255, 0.24);
    --color-text: #ffffff;
    --color-accent: #c3ff00;
    --color-accent-soft: #e7ff99;
    --color-white: #ffffff;

    --overlay-light-008: rgba(255, 255, 255, 0.08);
    --overlay-accent-012: rgba(195, 255, 0, 0.12);

    --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-glow: 0 0 80px rgba(128, 0, 255, 0.28);

    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;

    --radius-12: 12px;
    --radius-24: 24px;
    --radius-full: 999px;

    --font-body: "Hind", Tahoma, Geneva, Verdana, 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);
}

.site-main {
    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.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);
    }
}

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

/* Below 350px the bonus line would not fit on one row. */

@media (min-width: 1200px) {
    /* Form on the left, art on the right with the bonus as a badge on it. */
    

    

    /* 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. */
    

    

    

    

    .signup {
        grid-area: form;
    }

    
}

.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. */

/* Only the first message is shown; the rest stay readable for screen readers. */

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

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

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

.grecaptcha-badge {
    visibility: hidden;
}

/* The cover sits exactly in the ticket's window (see game-frame.php: window 12..188 x 12..236 of 200x250). */

/* Row mode (Recently played, >= 1000px): all games side by side, no 3D. */

/* No card: the art and its floating elements sit directly on the starry sky. */

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

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

    
}

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

.store {
    overscroll-behavior: contain;
}

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

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

    

    

    

    
}

@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 {
        animation: none !important;
    }
}

.store {
    scrollbar-width: thin;
    scrollbar-color: rgba(195, 255, 0, 0.55) transparent;
}

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

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

.store::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--gradient-primary);
}

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

/* Saturn-like ring: the back half sits behind the gift, the front half (clipped) in front of it. */

/* Auth page (sign in / create account) */
.page-auth .sky { display: none; }
.page-auth .site-main { padding: 0; }
.auth { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #111016; color: #fff; overflow: hidden; }
.auth__bg { position: absolute; inset: 0; pointer-events: none; }
.auth__bg img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.auth::before { content: none; }
.auth__panel { position: relative; z-index: 2; flex: 1; width: min(100%, 520px); padding: clamp(24px, 6vh, 72px) 24px 24px clamp(24px, 8vw, 104px); box-sizing: border-box; }
.auth__logo { display: block; width: min(100%, 420px); height: auto; margin: 0 0 12px; }
.auth__title { margin: 0 0 32px; font-size: clamp(26px, 3.2vw, 34px); font-weight: 600; }
.auth__form { display: flex; flex-direction: column; gap: 14px; }
.auth__input { width: 100%; box-sizing: border-box; height: 56px; padding: 0 18px; border: 1px solid #4a4a50; border-radius: 4px; background: #232326; color: #fff; font: inherit; font-size: 18px; }
.auth__input::placeholder { color: #9a9a9f; }
.auth__input:focus, .auth .auth__input:focus { outline: 0; border-color: #c1c1c1; box-shadow: 0 0 0 4px #0d2b50; }
.auth__input[readonly] { color: #c9c9cd; }
.auth__check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #d6d6da; }
.auth__check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #e50047; }
.auth__submit { height: 62px; border: 0; border-radius: 4px; background: #e50047; color: #fff; font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; margin-top: 6px; }
.auth__submit:hover { background: #ff0a69; }
.auth__submit:disabled { opacity: .7; cursor: wait; }

.auth__errors { padding: 12px 14px; border-radius: 4px; background: rgba(229, 0, 71, .18); border: 1px solid #e50047; font-size: 14px; }
.auth__errors p { margin: 0; }
.auth__errors p + p { margin-top: 4px; }
.afoot { position: relative; z-index: 2; padding: 28px 24px 40px; background: #121113; text-align: center; font-size: 16px; }

.afoot__badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 56px; margin: 30px 0 28px; }
.afoot__badges img { height: auto; max-height: 60px; width: auto; }
.afoot__play { font-size: 17px; font-weight: 600; line-height: 1.25; text-align: left; }
.afoot__social { display: flex; align-items: center; gap: 22px; }
.afoot__bold { max-width: 1000px; margin: 0 auto 28px; font-weight: 700; }
.afoot__legal { max-width: 1420px; margin: 0 auto; color: #8d8d92; font-size: 16px; line-height: 1.5; }
@media (max-width: 760px) {
  .auth__bg { inset: 0 0 auto 0; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .auth__bg img { height: auto; }
  .auth__panel { padding: 28px 20px; }
  
}

/* Sign-up page (home) */
.auth--signup .auth__panel { width: min(100%, 640px); padding-top: 85px; padding-bottom: 48px; padding-right: 24px; }
.auth--signup .auth__panel > * { max-width: 496px; }
.auth--signup .auth__logo { width: 376px; max-width: 100%; margin-bottom: 26px; }
.auth__title--tagline { line-height: 1.15; }
.auth__title--tagline { margin-bottom: 56px; font-size: 28px; font-weight: 600; }
.auth__sub { margin: 0 0 32px; text-align: center; font-size: 24px; font-weight: 700; }
.auth--signup .auth__form { gap: 20px; }
.auth__field { position: relative; }
.auth--signup .auth__input { height: 47px; background: transparent; border: 1px solid #77777c; border-radius: 3px; font-size: 18px; }
.auth--signup .auth__field .auth__input { padding-right: 52px; }
.auth__eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; padding: 0; border: 0; background: none; opacity: .8; cursor: pointer; }
.auth__eye[aria-pressed="true"] { opacity: 1; }
.auth--signup .auth__check { position: relative; gap: 12px; margin-top: 4px; font-size: 16px; line-height: 1.4; color: #fff; }
.auth--signup .auth__check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin-top: 4px; border: 1px solid #fff; border-radius: 3px; background: #fff center / 14px no-repeat; cursor: pointer; }
.auth--signup .auth__check input:checked { border-color: #005cc8; background-color: #005cc8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); box-shadow: none; }
.auth--signup .auth__check input:focus-visible { outline: 2px solid #1fc8ff; outline-offset: 2px; }

.auth__note { margin: 0; font-size: 12px; color: #9a9a9f; }
.auth__note a { color: inherit; }

@media (max-width: 760px) {
  .auth--signup .auth__panel { padding: 230px 20px 32px; }
  .auth__title--tagline { margin-bottom: 32px; }
  
}

/* Cookie consent bar (opened from the footer) */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 24px; padding: 32px 72px 32px 60px; border-top: 1px solid #8a8a8f; background: rgba(17, 16, 22, .97); color: #fff; font-size: 18px; line-height: 1.5; animation: cookie-bar-in .3s ease-out; }
.cookie-bar[hidden] { display: none; }
.cookie-bar__text { flex: 1; max-width: 1100px; margin: 0; }
.cookie-bar__text a { color: #fff; font-weight: 700; }
.cookie-bar__actions { display: flex; flex-direction: column; gap: 16px; margin-left: auto; }
.cookie-bar__btn { min-width: 300px; padding: 14px 24px; border: 1px solid #fff; border-radius: 6px; background: transparent; color: #fff; font: inherit; font-size: 18px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.cookie-bar__btn:hover { background: rgba(255, 255, 255, .12); }
.cookie-bar__close { position: absolute; top: 14px; right: 18px; padding: 4px; border: 0; background: none; cursor: pointer; }
@keyframes cookie-bar-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (max-width: 900px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 28px; padding: 64px 28px 36px; background: rgba(17, 16, 22, .94); font-size: 17px; line-height: 1.55; max-height: 90vh; overflow-y: auto; }
  .cookie-bar__actions { flex-direction: row; gap: 20px; margin-left: 0; }
  .cookie-bar__btn { flex: 1; min-width: 0; padding: 13px 8px; border-radius: 8px; font-size: 17px; }
  .cookie-bar__close { top: 18px; right: 20px; }
}

.auth .auth__submit { width: 100%; height: 60px; margin-top: 6px; border: 0; border-radius: 6px; background: #e50047; background-image: none; box-shadow: none; color: #fff; font-size: 20px; font-weight: 700; text-transform: uppercase; }
.auth .auth__submit:hover { background: #ff1a5e; }
.auth .auth__submit:focus-visible { outline: 2px solid #1fc8ff; outline-offset: 2px; }

/* Sign-in flow: login differs from sign-up */

/* Mobile layout: banner on top, centered logo and headings */
@media (max-width: 760px) {
  .auth__bg { height: 58vw; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .auth__bg img { height: 100%; object-fit: cover; object-position: center 85%; }
  .auth--signup .auth__panel { width: 100%; padding: 56vw 24px 32px; }
  .auth--signup .auth__panel > * { max-width: none; }
  .auth--signup .auth__logo { width: 77%; margin: 0 auto 16px; }
  .auth__title--tagline { text-align: center; }
  .auth__title--tagline { margin-bottom: 36px; }
  
  .auth--signup .auth__form { gap: 24px; }
  .auth--signup .auth__input { height: 56px; border-color: #a8a8ad; background: #222; }
  .auth--signup .auth__check { margin-top: 0; }
  
  
}

/* Mobile: real phone sizes (references were shot at ~1.56x) */
@media (max-width: 760px) {
  .auth--signup .auth__panel { padding: 56vw 15px 28px; }
  .auth--signup .auth__logo { margin-bottom: 10px; }
  .auth__title--tagline { font-size: 20px; }
  .auth__title--tagline { margin-bottom: 24px; }
  
  .auth__sub { margin-bottom: 20px; font-size: 17px; }
  .auth--signup .auth__form { gap: 15px; }
  .auth--signup .auth__input { height: 38px; padding: 0 12px; font-size: 14px; border-radius: 3px; }
  .auth--signup .auth__field .auth__input { padding-right: 38px; }
  .auth__eye { right: 9px; }
  .auth__eye svg { width: 17px; height: 17px; }
  .auth--signup .auth__check { gap: 8px; font-size: 13.5px; line-height: 17px; }
  .auth--signup .auth__check input { width: 13px; height: 13px; margin-top: 2px; border-radius: 2px; background-size: 10px; }
  .auth .auth__submit { height: 40px; margin-top: 8px; border-radius: 4px; font-size: 13px; }
  
  
  
  
  .auth__errors { font-size: 12px; }
}

/* Mobile footer */
@media (max-width: 760px) {
  .afoot { padding: 70px 23px 32px; text-align: left; font-size: 12px; }
  
  
  
  
  .afoot__badges { gap: 14px 24px; margin: 26px 0 22px; }
  .afoot__badges img:nth-child(1) { width: 70px; }
  .afoot__badges img:nth-child(2), .afoot__badges img:nth-child(3) { height: 31px; width: auto; }
  .afoot__play { flex-basis: 100%; margin-top: 4px; font-size: 12px; text-align: center; }
  .afoot__play br { display: none; }
  .afoot__social { flex-basis: 100%; justify-content: center; gap: 18px; }
  .afoot__social svg { width: 19px; height: 19px; }
  .afoot__bold { margin: 0 0 22px; font-size: 12px; }
  .afoot__legal { font-size: 12px; line-height: 16px; }
}
.auth__note { text-align: center; }
@media (max-width: 760px) { .auth__note { margin-top: -4px; font-size: 11px; line-height: 15px; } }
@media (max-width: 760px) {
  .afoot { line-height: 1.25; }
  
  
}

.auth__consents { display: flex; flex-direction: column; gap: 34px; margin-top: 14px; }
@media (max-width: 760px) { .auth__consents { gap: 22px; margin-top: 8px; } }
@media (max-width: 760px) { .auth .auth__submit { font-size: 16px; } }
@media (max-width: 760px) {
  .auth__bg { height: 52vw; }
  .auth--signup .auth__panel { padding-top: 47vw; }
}

/* Desktop: content sized to the reference (it renders at 150% display scale) */
@media (min-width: 761px) {
  .auth--signup .auth__panel { width: min(100%, 600px); padding: 65px 24px 40px max(24px, 5vw); }
  .auth--signup .auth__panel > * { max-width: 404px; }
  .auth--signup .auth__logo { width: 306px; margin-bottom: 16px; }
  .auth--signup .auth__title--tagline { margin-bottom: 44px; }
  .auth--signup .auth__form { gap: 16px; }
  .auth--signup .auth__input { height: 38px; padding: 0 14px; font-size: 16px; }
  .auth--signup .auth__field .auth__input { padding-right: 44px; }
  .auth__eye { right: 12px; }
  .auth__eye svg { width: 20px; height: 20px; }
  .auth__consents { gap: 28px; margin-top: 12px; }
  .auth--signup .auth__check { gap: 10px; font-size: 14px; line-height: 1.4; }
  .auth--signup .auth__check input { width: 14px; height: 14px; margin-top: 3px; background-size: 11px; }
  .auth .auth__submit { height: 40px; margin-top: 4px; font-size: 16px; }
  
  
  
  
  .afoot { padding: 40px 24px 36px; font-size: 12px; }
  
  .afoot__badges { gap: 16px 60px; margin: 26px 0 22px; }
  .afoot__badges img:nth-child(1) { width: 75px; }
  .afoot__badges img:nth-child(2), .afoot__badges img:nth-child(3) { height: 33px; width: auto; }
  .afoot__play { font-size: 12px; }
  .afoot__social { gap: 18px; }
  .afoot__social svg { width: 21px; height: 21px; }
  .afoot__bold { margin-bottom: 22px; font-size: 12px; }
  .afoot__legal { max-width: 950px; font-size: 12px; line-height: 16px; }
}

/* Mobile fit (393px reference) */
@media (max-width: 760px) {
  .auth__bg { height: 36vw; }
  .auth--signup .auth__panel { padding-top: 33vw; }
  .auth--signup .auth__logo { width: 76vw; max-width: none; margin: 0 auto 12px; }
  .auth__title--tagline { font-size: 24px; margin-bottom: 18px; }
  .auth__sub { margin-bottom: 14px; }
  .auth--signup .auth__input { font-size: 16px; }
  
  
  .afoot { padding-top: 44px; }
  
  
}

/* Cookie bar on mobile (393px reference) */
@media (max-width: 900px) {
  .cookie-bar { gap: 24px; padding: 41px 32px 32px; background: rgba(17, 16, 22, .9); font-size: 14px; line-height: 19.5px; }
  .cookie-bar__actions { gap: 17px; }
  .cookie-bar__btn { padding: 0 8px; height: 32px; border-radius: 8px; font-size: 14px; line-height: 30px; }
  .cookie-bar__close { top: 18px; right: 18px; }
  .cookie-bar__close svg { width: 22px; height: 22px; }
}
