@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
/* ==========================================================================
   Pyxion Labs - intro-theme.css
   Same look as theme.css, applied to the sign-in / landing page, which
   carries its own page styles.
   ========================================================================== */


:root {
    --primary: #a78bfa;
    --secondary: #67e8f9;
    --accent: #f472b6;
    --mint: #6ee7b7;
    --dark: #070516;
    --card: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --text: #f1effc;
    --muted: #9a95bd;
    --border: rgba(255, 255, 255, 0.11);
    --radius: 18px;
    --transition: 0.25s ease;

    --glass-strong: rgba(18, 14, 44, 0.78);
    --glass-edge: rgba(255, 255, 255, 0.18);
    --btn-grad: linear-gradient(135deg, #8b5cf6 0%, #d946ef 55%, #f472b6 100%);
    --raised: 6px 6px 16px rgba(0, 0, 0, 0.45), -4px -4px 12px rgba(255, 255, 255, 0.035);
    --inset: inset 3px 3px 8px rgba(0, 0, 0, 0.5), inset -2px -2px 6px rgba(255, 255, 255, 0.04);
}

html { background: #070516; }
body {
    background: transparent;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body, button, input, textarea { font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; }

body::before {
    background:
        radial-gradient(42vmax 42vmax at 8% 6%,   rgba(124, 58, 237, 0.34), transparent 62%),
        radial-gradient(38vmax 38vmax at 94% 18%, rgba(236, 72, 153, 0.22), transparent 60%),
        radial-gradient(40vmax 40vmax at 78% 98%, rgba(34, 211, 238, 0.16), transparent 62%),
        radial-gradient(36vmax 36vmax at 4% 90%,  rgba(79, 70, 229, 0.26), transparent 60%),
        linear-gradient(180deg, #0a0820 0%, #070516 100%);
    animation: none;
    z-index: -1;
}
body::after { display: none; }
#introSparkleCanvas { display: none !important; }

/* nav */
nav {
    background: rgba(10, 8, 30, 0.6);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-weight: 800;
    background: var(--btn-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-logo:hover { text-shadow: none; transform: none; filter: brightness(1.15); }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* buttons */
.btn-signin,
.btn-primary {
    background: var(--btn-grad);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: none;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.btn-signin:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 30px rgba(217, 70, 239, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-signin--ghost,
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--raised);
    backdrop-filter: blur(12px);
}
.btn-signin--ghost:hover,
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: var(--inset); transform: none; filter: none; }

/* hero */
.hero-eyebrow {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    letter-spacing: 0.1em;
}
.hero-title { font-weight: 800; letter-spacing: -0.02em; }
.hero-title .gradient-text,
.gradient-text {
    background: linear-gradient(135deg, #c4b5fd 10%, #f0abfc 55%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero-sub { color: var(--muted); }
.hero-stat-value { font-weight: 800; }
.hero-stat-label { color: var(--muted); letter-spacing: 0.08em; }
.hero-stat-divider { background: var(--border); }

/* sections */
.section-eyebrow { color: var(--primary); }
.section-title { font-weight: 800; letter-spacing: -0.01em; }
.section-divider { background: var(--border); }

/* glass cards */
.game-card,
.why-card,
.trust-item,
.featured-strip,
.fact-row,
.cta-banner,
.rm-chip {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.game-card:hover,
.why-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.trust-item i,
.why-icon { color: var(--primary); }
.cta-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(244, 114, 182, 0.14));
    border-radius: 26px;
}
.btn-checkout {
    background: var(--btn-grad);
    color: #fff;
}
.game-tag { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--muted); }

/* footer */
footer { background: rgba(5, 4, 16, 0.7); border-top: 1px solid var(--border); backdrop-filter: blur(14px); }
.footer-logo { background: var(--btn-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-links a, .footer-socials a { color: var(--muted); }
.footer-links a:hover, .footer-socials a:hover { color: var(--text); transform: none; }

/* sign-in / sign-up / terms / help / report windows */
.pyxion-modal-overlay { background: rgba(4, 3, 14, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pyxion-modal-box,
.report-modal-box {
    background: var(--glass-strong);
    border: 1px solid var(--glass-edge);
    border-radius: 22px;
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.pyxion-modal-input,
.report-textarea {
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    box-shadow: var(--inset);
}
.pyxion-modal-input:focus,
.report-textarea:focus {
    outline: none;
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow: var(--inset), 0 0 0 3px rgba(167, 139, 250, 0.18);
}
.help-faq-item { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 14px; }

* { scrollbar-color: rgba(167, 139, 250, 0.35) transparent; }
::selection { background: rgba(167, 139, 250, 0.4); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   3D glass windows
   Layered highlights, a soft glare in the top-left corner and a deep shadow
   make every popup look like a thick pane of frosted glass.
   ========================================================================== */
.pyxion-modal-overlay,
.game-detail-modal,
.settings-modal-overlay,
.pf-popup-overlay,
#roadmap-detail-modal,
#pyxWarnOverlay { perspective: 1400px; }

.modal-content,
.settings-modal-box,
.pyxion-modal-box,
.pf-popup-box,
.dev-note-modal-box,
.report-modal-box,
.confirm-modal-box,
.profile-modal-box,
.roadmap-modal-inner,
.upp-screenie-view-box,
.pyx-warn-box,
#roadmap-detail-modal .modal-content {
    background:
        radial-gradient(130% 70% at 0% 0%, rgba(255, 255, 255, 0.17), transparent 52%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.025) 45%, rgba(255, 255, 255, 0.06) 100%),
        rgba(15, 11, 38, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top-color: rgba(255, 255, 255, 0.38);
    border-left-color: rgba(255, 255, 255, 0.26);
    border-radius: 24px;
    backdrop-filter: blur(30px) saturate(165%);
    -webkit-backdrop-filter: blur(30px) saturate(165%);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.7),
        0 18px 36px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 1px 0 0 rgba(255, 255, 255, 0.14),
        inset 0 -24px 48px rgba(124, 58, 237, 0.14),
        inset 0 24px 40px -20px rgba(255, 255, 255, 0.08);
    transform-origin: 50% 100%;
    animation: glassRise 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes glassRise {
    from { opacity: 0; transform: translateY(34px) rotateX(10deg) scale(0.95); }
    to   { opacity: 1; transform: none; }
}

.pyx-warn-box { border-color: inherit; }

/* header of the account window stays solid so nothing shows through it
   while the content scrolls underneath */
.settings-modal-header {
    background: rgba(20, 15, 48, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 4;
    border-radius: 24px 24px 0 0;
}
#settings-modal .pyxion-modal-close {
    position: sticky;
    top: 14px;
    display: block;
    margin: 14px 16px -48px auto;
    z-index: 6;
}

body.light-mode .modal-content,
body.light-mode .settings-modal-box,
body.light-mode .pyxion-modal-box,
body.light-mode .pf-popup-box,
body.light-mode .dev-note-modal-box,
body.light-mode .report-modal-box,
body.light-mode .confirm-modal-box,
body.light-mode .profile-modal-box,
body.light-mode .roadmap-modal-inner,
body.light-mode #roadmap-detail-modal .modal-content {
    background:
        radial-gradient(130% 70% at 0% 0%, rgba(255, 255, 255, 0.9), transparent 55%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.7), rgba(240, 235, 255, 0.55)),
        rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 40px 80px -24px rgba(80, 60, 160, 0.38),
        0 14px 30px -12px rgba(80, 60, 160, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -20px 40px rgba(167, 139, 250, 0.12);
}
body.light-mode .settings-modal-header { background: rgba(255, 255, 255, 0.96); border-bottom-color: rgba(90, 70, 160, 0.12); }

/* ==========================================================================
   No scrollbars anywhere. Everything still scrolls.
   ========================================================================== */
html, body, * { scrollbar-width: none !important; -ms-overflow-style: none !important; }
*::-webkit-scrollbar, ::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }


/* ==========================================================================
   Close buttons: perfectly round, icon centred
   ========================================================================== */
.pyxion-modal-close,
.close-btn,
.roadmap-close-btn,
.fav-modal-close,
.lightbox-close,
.whatsnew-banner-close,
.whatsnew-modal-close,
.dev-note-modal-close,
.cart-drawer-close,
.upp-screenie-view-close,
.shop-modal-close,
.profile-modal-close,
.modal-close,
.poll-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    text-align: center;
}
.pyxion-modal-close i,
.close-btn i,
.roadmap-close-btn i,
.fav-modal-close i,
.lightbox-close i,
.whatsnew-banner-close i,
.whatsnew-modal-close i,
.dev-note-modal-close i,
.cart-drawer-close i,
.upp-screenie-view-close i,
.shop-modal-close i,
.profile-modal-close i { display: block; line-height: 1; margin: 0; font-size: 1em; }

.pyxion-modal-close, .close-btn, .roadmap-close-btn { box-sizing: border-box; }
.pyxion-modal-close { width: 38px; height: 38px; font-size: 1.05rem; padding-bottom: 0; }
.close-btn { width: 44px; height: 44px; font-size: 1.15rem; padding-bottom: 0; color: #fff; background: var(--btn-grad); }
.roadmap-close-btn { width: 40px; height: 40px; font-size: 1.05rem; padding: 0; color: #fff; }
.fav-modal-close, .lightbox-close, .whatsnew-modal-close, .dev-note-modal-close,
.cart-drawer-close, .shop-modal-close, .upp-screenie-view-close { width: 38px; height: 38px; font-size: 1.05rem; padding: 0; border-radius: 50%; }
.pyxion-modal-close, .close-btn, .roadmap-close-btn { border-radius: 50%; color: #fff; }

/* ==========================================================================
   Full-screen pages: game details, web play, roadmap, Terms, Help and Report
   ========================================================================== */
.game-detail-modal,
#roadmap-detail-modal,
#terms-modal.pyxion-modal-overlay,
#help-modal.pyxion-modal-overlay,
#report-modal.pyxion-modal-overlay {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: rgba(6, 4, 18, 0.9);
}

.game-detail-modal .modal-content,
#roadmap-detail-modal .modal-content,
#terms-modal .pyxion-modal-box,
#help-modal .pyxion-modal-box,
#report-modal .pyxion-modal-box {
    position: relative;
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border: 0;
    overflow-y: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background:
        radial-gradient(70% 45% at 0% 0%, rgba(124, 58, 237, 0.28), transparent 70%),
        radial-gradient(60% 45% at 100% 100%, rgba(236, 72, 153, 0.16), transparent 70%),
        rgba(10, 8, 28, 0.94);
    box-shadow: none;
    transform-origin: 50% 50%;
    animation: pageIn 0.35s ease;
}
@keyframes pageIn {
    from { opacity: 0; transform: scale(0.985); }
    to   { opacity: 1; transform: none; }
}

/* keep the reading width comfortable on large screens */
#terms-modal .pyxion-modal-box,
#help-modal .pyxion-modal-box,
#report-modal .pyxion-modal-box {
    padding: 84px max(22px, calc((100vw - 760px) / 2)) 100px !important;
}
.game-detail-modal #detailContent,
.game-detail-modal #webplayDetailContent,
#roadmap-detail-modal .roadmap-modal-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding-top: 64px;
}
#roadmap-detail-modal .roadmap-modal-inner { padding-left: 24px; padding-right: 24px; padding-bottom: 60px; }

/* the close button stays on screen while the page scrolls */
#terms-modal .pyxion-modal-close,
#help-modal .pyxion-modal-close,
#report-modal .pyxion-modal-close,
#roadmap-detail-modal .roadmap-close-btn {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 20;
}
.close-btn { top: 18px; right: 22px; }

@media (max-width: 640px) {
    #terms-modal .pyxion-modal-box,
    #help-modal .pyxion-modal-box,
    #report-modal .pyxion-modal-box { padding: 76px 18px 80px !important; }
    #terms-modal .pyxion-modal-close, #help-modal .pyxion-modal-close, #report-modal .pyxion-modal-close,
    #roadmap-detail-modal .roadmap-close-btn, .close-btn { top: 12px; right: 12px; }
}
body.light-mode .game-detail-modal .modal-content,
body.light-mode #roadmap-detail-modal .modal-content,
body.light-mode #terms-modal .pyxion-modal-box,
body.light-mode #help-modal .pyxion-modal-box,
body.light-mode #report-modal .pyxion-modal-box { background: radial-gradient(70% 45% at 0% 0%, rgba(167, 139, 250, 0.3), transparent 70%), rgba(246, 243, 255, 0.97); }
