html[data-theme="light"] {
    --bg: #F5F4F1;
    --bg-grid: rgba(24, 23, 21, .07);
    --surface: #FFFFFF;
    --surface-2: #EDEBE6;
    --border: rgba(24, 23, 21, .16);
    --border-soft: rgba(24, 23, 21, .08);
    --text: #171614;
    --text-dim: #6B6862;
    --accent: #0F8F73;
    --accent-glow: rgba(15, 143, 115, .16);
    --shadow: 0 1px 2px rgba(24, 23, 21, .05), 0 18px 44px rgba(24, 23, 21, .07);
}

html[data-theme="dark"] {
    --bg: #0B0D12;
    --bg-grid: rgba(255, 255, 255, .04);
    --surface: #12151C;
    --surface-2: #1A1E27;
    --border: rgba(255, 255, 255, .14);
    --border-soft: rgba(255, 255, 255, .06);
    --text: #E8EAED;
    --text-dim: #8A93A3;
    --accent: #2EE6B8;
    --accent-glow: rgba(46, 230, 184, .18);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px rgba(0, 0, 0, .4);
}

html[data-theme="oled"] {
    --bg: #000000;
    --bg-grid: rgba(255, 255, 255, .035);
    --surface: #070707;
    --surface-2: #0D0D0D;
    --border: rgba(255, 255, 255, .15);
    --border-soft: rgba(255, 255, 255, .07);
    --text: #F2F3F5;
    --text-dim: #7A828F;
    --accent: #2EE6B8;
    --accent-glow: rgba(46, 230, 184, .22);
    --shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 18px 44px rgba(0, 0, 0, .7);
}

html[data-theme="midnight"] {
    --bg: #0A0F1E;
    --bg-grid: rgba(160, 190, 255, .05);
    --surface: #101728;
    --surface-2: #172136;
    --border: rgba(170, 200, 255, .16);
    --border-soft: rgba(170, 200, 255, .07);
    --text: #E4EAF6;
    --text-dim: #8593AE;
    --accent: #6EA8FF;
    --accent-glow: rgba(110, 168, 255, .2);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 44px rgba(3, 7, 18, .5);
}

:root {
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --col: 760px;
    --gutter: clamp(24px, 5.6vw, 56px);

    --s-2: 12px;
    --s-3: 20px;
    --s-4: 32px;
    --s-5: 52px;
    --s-6: 88px;
    --s-7: 128px;


    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --t-micro: 160ms;
    --t-move: 320ms;
    --t-line: 520ms;

    --stagger: 70ms;

    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}


body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(var(--bg-grid), var(--bg-grid)) calc(50% - 380px) 0 / 1px 100% no-repeat,
        linear-gradient(var(--bg-grid), var(--bg-grid)) calc(50% + 380px) 0 / 1px 100% no-repeat;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

.wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: calc(var(--col) + var(--gutter) * 2);
    margin: 0 auto;
    padding: var(--s-4) var(--gutter) 0;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.section-label,
.settings-panel-header span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-dim);
}


nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--border-soft);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text);
}

.wordmark-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.cursor {
    display: inline-block;
    width: 7px;
    height: 1.05em;
    margin-left: 1px;
    background: var(--accent);
    vertical-align: -.18em;
    animation: caretBreath 1.15s steps(1, end) infinite;
}

@keyframes caretBreath {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.settings-toggle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text-dim);
    transition: color var(--t-micro) var(--ease), transform var(--t-move) var(--ease);
}

.settings-toggle svg {
    width: 18px;
    height: 18px;
}

.settings-toggle:hover {
    color: var(--text);
}

.settings-toggle[aria-expanded="true"] {
    color: var(--text);
    transform: rotate(90deg);
}


.hero {
    padding: var(--s-7) 0 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-dim);
}


.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: dotBreath 2.6s var(--ease) infinite;
}

@keyframes dotBreath {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    50% {
        opacity: .7;
        box-shadow: 0 0 0 5px transparent;
    }
}


.lede {
    margin: var(--s-3) 0 0;
    max-width: 22ch;
    font-size: clamp(1.75rem, 4.4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.022em;
    color: var(--text-dim);
    text-wrap: balance;
}

.lede strong {
    display: block;
    font-weight: 600;
    color: var(--text);
}


.slots-section {
    margin-top: var(--s-7);
}

.section-label {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-soft);
}

.slots-btn {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    column-gap: var(--s-3);
    margin-top: var(--s-3);
    padding: var(--s-4) 0 calc(var(--s-4) + 2px);
    border-top: 1px solid var(--border-soft);
    isolation: isolate;
}

.slots-btn .shine {
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-line) var(--ease-out);
}

.slots-btn:hover .shine,
.slots-btn:focus-visible .shine {
    transform: scaleX(1);
}

.slots-btn-glow {
    display: none;
}

.slots-btn-gif {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    filter: grayscale(1);
    opacity: .78;
    transition: filter var(--t-move) var(--ease), opacity var(--t-move) var(--ease);
}

@media (hover: hover) {

    .slots-btn:hover .slots-btn-gif,
    .slots-btn:focus-visible .slots-btn-gif {
        filter: none;
        opacity: 1;
    }
}

@media (hover: none) {
    .slots-btn-gif {
        filter: none;
        opacity: 1;
    }
}

.slots-btn-label {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.012em;
    color: var(--text);
}

.slots-btn-arrow {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--text-dim);
    transition: transform var(--t-move) var(--ease), color var(--t-move) var(--ease);
}

.slots-btn-arrow svg {
    width: 20px;
    height: 20px;
}

.slots-btn:hover .slots-btn-arrow,
.slots-btn:focus-visible .slots-btn-arrow {
    transform: translateX(8px);
    color: var(--accent);
}

.slots-btn:active .slots-btn-arrow {
    transform: translateX(11px);
}


.site-footer {
    margin-top: auto;
    padding: var(--s-6) 0 var(--s-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    border-top: 1px solid var(--border-soft);
}

.footer-logo {
    max-width: 84px;
    height: auto;
    opacity: .5;
    transition: opacity var(--t-move) var(--ease);
}

.site-footer:hover .footer-logo {
    opacity: .8;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: var(--s-4);
}

.footer-social-link {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: var(--text-dim);
    transition: color var(--t-micro) var(--ease);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.footer-social-link:hover {
    color: var(--text);
}


.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 200;
    width: min(360px, 100vw);
    height: 100dvh;
    padding: var(--s-4) var(--s-4) var(--s-3);
    overflow-y: auto;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t-move) var(--ease), visibility 0s linear var(--t-move);
}

.settings-panel.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--t-move) var(--ease-out), visibility 0s;
}

.settings-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--s-2);
    margin-bottom: var(--s-4);
    border-bottom: 1px solid var(--border-soft);
}

.settings-panel-close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    color: var(--text-dim);
    transition: color var(--t-micro) var(--ease), background var(--t-micro) var(--ease);
}

.settings-panel-close:hover {
    color: var(--text);
    background: var(--surface-2);
}

.settings-group {
    margin-bottom: var(--s-5);
}

.settings-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--s-2);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.settings-group-label svg {
    width: 14px;
    height: 14px;
}

.settings-current-value {
    margin-left: auto;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
}

.settings-group-controls {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.theme-switch {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.theme-switch button {
    position: relative;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--text-dim);
    transition: color var(--t-micro) var(--ease);
}

.theme-switch button svg {
    width: 17px;
    height: 17px;
}

.theme-switch button::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: -5px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 260ms var(--ease-out);
}

.theme-switch button:hover {
    color: var(--text);
}

.theme-switch button[aria-pressed="true"] {
    color: var(--text);
}

.theme-switch button[aria-pressed="true"]::after {
    background: var(--accent);
    transform: scaleX(1);
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding: var(--s-2) 0;
}

.settings-toggle-row-label {
    font-size: 14px;
    color: var(--text);
}

.settings-mute-btn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--text-dim);
    transition: color var(--t-micro) var(--ease), opacity var(--t-micro) var(--ease);
}

.settings-mute-btn svg {
    width: 17px;
    height: 17px;
}

.settings-mute-btn:hover {
    color: var(--text);
}

.settings-mute-btn[aria-pressed="true"] {
    opacity: .55;
}

.settings-slider {
    flex: 1;
    min-width: 0;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    cursor: pointer;
}

.settings-slider::-webkit-slider-runnable-track {
    height: 1px;
    background: var(--border);
}

.settings-slider::-moz-range-track {
    height: 1px;
    background: var(--border);
}

.settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    margin-top: -5px;
    border: none;
    border-radius: 2px;
    background: var(--text);
    transition: background var(--t-micro) var(--ease);
}

.settings-slider::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: none;
    border-radius: 2px;
    background: var(--text);
    transition: background var(--t-micro) var(--ease);
}

.settings-slider:hover::-webkit-slider-thumb,
.settings-slider:active::-webkit-slider-thumb {
    background: var(--accent);
}

.settings-slider:hover::-moz-range-thumb,
.settings-slider:active::-moz-range-thumb {
    background: var(--accent);
}

.settings-switch {
    position: relative;
    width: 40px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition: border-color var(--t-micro) var(--ease);
}

.settings-switch:hover {
    border-color: var(--text-dim);
}

.settings-switch-knob {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: transform 260ms var(--ease-out), background 260ms var(--ease);
}

.settings-switch.on {
    border-color: var(--accent);
}

.settings-switch.on .settings-switch-knob {
    transform: translateX(20px);
    background: var(--accent);
}


#loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity 600ms var(--ease);
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    width: 92px;
    height: auto;
    opacity: 0;
}

.loader-logo.zoom-in {
    animation: loaderRise 720ms var(--ease-out) forwards;
}

@keyframes loaderRise {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

body.is-revealed nav,
body.is-revealed .eyebrow,
body.is-revealed .lede,
body.is-revealed .slots-section,
body.is-revealed .site-footer {
    animation: riseIn 620ms var(--ease-out) both;
}

body.is-revealed .eyebrow {
    animation-delay: calc(var(--stagger) * 1);
}

body.is-revealed .lede {
    animation-delay: calc(var(--stagger) * 2);
}

body.is-revealed .slots-section {
    animation-delay: calc(var(--stagger) * 3);
}

body.is-revealed .site-footer {
    animation-delay: calc(var(--stagger) * 4);
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

body.is-revealed::before {
    animation: guidesIn 900ms var(--ease-out) calc(var(--stagger) * 5) both;
}

@keyframes guidesIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

.sparkle {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    background: var(--spark-color, var(--accent));
    max-width: 2px;
    max-height: 2px;
    filter: saturate(.15);
    opacity: 0;
    animation-name: sparkleRise;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes sparkleRise {
    0% {
        transform: translate(0, 0) scale(.6);
        opacity: 0;
    }

    8% {
        opacity: .16;
    }

    50% {
        transform: translate(calc(var(--drift, 20px) * .5), -50vh) scale(1);
    }

    85% {
        opacity: .11;
    }

    100% {
        transform: translate(var(--drift, 20px), -105vh) scale(.4);
        opacity: 0;
    }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    max-width: 320px;
    max-height: 320px;
    filter: blur(90px) saturate(.12);
    opacity: .1;
    animation: orbDrift 22s ease-in-out infinite;
}

@keyframes orbDrift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(var(--orb-drift-x, 40px), var(--orb-drift-y, -40px));
    }
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 420ms var(--ease), visibility 0s linear 420ms;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 420ms var(--ease), visibility 0s;
}

.page-transition-ring {
    display: none;
}

.page-transition-burst {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    filter: grayscale(1);
    opacity: .16;
}

.transition-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    opacity: 0;
}

.page-transition.active .transition-particle {
    animation: transitionParticle var(--p-dur, 800ms) var(--ease-out) var(--p-delay, 0ms) both;
}

@keyframes transitionParticle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    22% {
        opacity: .55;
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--p-x, 0px)), calc(-50% + var(--p-y, 0px))) scale(var(--p-scale, 1));
    }
}

.page-transition-gif {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
    opacity: 0;
}

.page-transition.active .page-transition-gif {
    animation: transitionZoom 700ms var(--ease-out) 60ms both;
}

@keyframes transitionZoom {
    from {
        opacity: 0;
        transform: scale(.9);
    }

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

.page-transition-word {
    position: absolute;
    bottom: calc(50% - 96px);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--text-dim);
    opacity: 0;
}

.page-transition.active .page-transition-word {
    animation: transitionWord 620ms var(--ease-out) 160ms both;
}

@keyframes transitionWord {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    body::before {
        display: none;
    }

    .hero {
        padding-top: var(--s-5);
    }

    .slots-section {
        margin-top: var(--s-5);
    }

    .wrap {
        padding-top: var(--s-3);
    }
}

@media (max-width: 640px) {
    .lede {
        max-width: 26ch;
    }

    .slots-btn {
        grid-template-columns: 48px 1fr auto;
        column-gap: var(--s-2);
        padding: var(--s-3) 0 calc(var(--s-3) + 4px);
    }

    .slots-btn-gif {
        width: 48px;
        height: 48px;
    }

    .slots-btn-label {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-4);
        padding-bottom: var(--s-4);
    }

    .footer-socials {
        gap: var(--s-3);
    }

    .footer-logo {
        max-width: 72px;
    }
}

@media (max-width: 420px) {
    .settings-panel {
        width: 100vw;
        padding: var(--s-4) var(--s-3) var(--s-3);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .sparkle,
    .glow-orb {
        display: none;
    }

    .transition-particle,
    .page-transition-word,
    .page-transition-gif {
        animation: none !important;
    }

    .slots-btn-gif {
        filter: none;
        opacity: 1;
    }
}

:root {
    --bg-rgb: 11, 13, 18;
    --accent-rgb: 46, 230, 184;
}

html[data-theme="light"] {
    --bg-rgb: 245, 244, 241;
    --accent-rgb: 15, 143, 115;
}

html[data-theme="dark"] {
    --bg-rgb: 11, 13, 18;
    --accent-rgb: 46, 230, 184;
}

html[data-theme="oled"] {
    --bg-rgb: 0, 0, 0;
    --accent-rgb: 46, 230, 184;
}

html[data-theme="midnight"] {
    --bg-rgb: 10, 15, 30;
    --accent-rgb: 110, 168, 255;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    --bg-photo-opacity: .55;
    background:
        radial-gradient(78% 30% at 50% 52%, rgba(var(--accent-rgb), .05), transparent 72%);
}

html[data-theme="oled"] .site-bg {
    --bg-photo-opacity: .42;
}

html[data-theme="light"] .site-bg {
    --bg-photo-opacity: .12;
}

.site-bg-image {
    position: absolute;
    inset: 0;
    background-image: url("assets/ui/jk1x/bg.jpg");
    background-size: cover;
    background-position: 50% 62%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1200ms ease-out;
    transform: scale(1.12);
    animation: bgDrift 72s ease-in-out infinite alternate;
    will-change: transform;
}

html.bg-ready .site-bg-image {
    opacity: var(--bg-photo-opacity);
}

@keyframes bgDrift {
    0% {
        transform: scale(1.12) translate3d(-1.4%, 0.9%, 0);
    }

    100% {
        transform: scale(1.12) translate3d(1.4%, -0.9%, 0);
    }
}

.site-bg-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(126% 92% at 50% 48%,
        transparent 0%,
        rgba(var(--bg-rgb), .30) 60%,
        rgba(var(--bg-rgb), .78) 100%),
        linear-gradient(180deg,
        rgba(var(--bg-rgb), .86) 0%,
        rgba(var(--bg-rgb), .62) 18%,
        rgba(var(--bg-rgb), .46) 30%,
        rgba(var(--bg-rgb), .28) 48%,
        rgba(var(--bg-rgb), .58) 58%,
        rgba(var(--bg-rgb), .80) 72%,
        rgba(var(--bg-rgb), .94) 86%,
        rgb(var(--bg-rgb)) 100%);
}

.site-bg-nebula {
    position: absolute;
    inset: 0;
    mix-blend-mode: screen;
    background:
        radial-gradient(58% 26% at 42% 60%, rgba(var(--accent-rgb), .16), transparent 70%),
        radial-gradient(42% 20% at 76% 63%, rgba(var(--accent-rgb), .10), transparent 72%);
    animation: horizonBreathe 14s ease-in-out infinite;
}

@keyframes horizonBreathe {

    0%,
    100% {
        opacity: .75;
    }

    50% {
        opacity: 1;
    }
}

.star-layer {
    position: absolute;
    inset: -10%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 58%);
    mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 58%);
}

.star-layer::before,
.star-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    background-size: 420px 420px;
    animation: twinkle 5.5s ease-in-out infinite;
}

.star-layer::before {
    background-image:
        radial-gradient(1.6px 1.6px at 34px 46px, rgba(255, 255, 255, .95), transparent),
        radial-gradient(1.2px 1.2px at 148px 22px, rgba(255, 255, 255, .75), transparent),
        radial-gradient(1.8px 1.8px at 232px 96px, rgba(255, 255, 255, .92), transparent),
        radial-gradient(1px 1px at 312px 38px, rgba(255, 255, 255, .65), transparent),
        radial-gradient(1.4px 1.4px at 88px 154px, rgba(255, 255, 255, .85), transparent),
        radial-gradient(1px 1px at 196px 188px, rgba(255, 255, 255, .60), transparent),
        radial-gradient(1.7px 1.7px at 372px 142px, rgba(255, 255, 255, .90), transparent),
        radial-gradient(1.1px 1.1px at 268px 236px, rgba(255, 255, 255, .70), transparent),
        radial-gradient(1.5px 1.5px at 46px 288px, rgba(255, 255, 255, .88), transparent),
        radial-gradient(1px 1px at 158px 330px, rgba(255, 255, 255, .62), transparent),
        radial-gradient(1.9px 1.9px at 344px 306px, rgba(255, 255, 255, .95), transparent),
        radial-gradient(1.2px 1.2px at 112px 396px, rgba(255, 255, 255, .72), transparent),
        radial-gradient(1.3px 1.3px at 402px 224px, rgba(255, 255, 255, .80), transparent),
        radial-gradient(1px 1px at 240px 404px, rgba(255, 255, 255, .58), transparent);
}

.star-layer::after {
    background-image:
        radial-gradient(1.3px 1.3px at 76px 108px, rgba(255, 255, 255, .82), transparent),
        radial-gradient(1px 1px at 206px 62px, rgba(255, 255, 255, .58), transparent),
        radial-gradient(1.7px 1.7px at 290px 168px, rgba(255, 255, 255, .90), transparent),
        radial-gradient(1.1px 1.1px at 388px 74px, rgba(255, 255, 255, .68), transparent),
        radial-gradient(1.5px 1.5px at 20px 208px, rgba(255, 255, 255, .86), transparent),
        radial-gradient(1px 1px at 132px 262px, rgba(255, 255, 255, .60), transparent),
        radial-gradient(1.8px 1.8px at 356px 250px, rgba(255, 255, 255, .93), transparent),
        radial-gradient(1.2px 1.2px at 252px 320px, rgba(255, 255, 255, .74), transparent),
        radial-gradient(1.4px 1.4px at 60px 356px, rgba(255, 255, 255, .84), transparent),
        radial-gradient(1px 1px at 178px 14px, rgba(255, 255, 255, .56), transparent),
        radial-gradient(1.6px 1.6px at 318px 396px, rgba(255, 255, 255, .88), transparent),
        radial-gradient(1.1px 1.1px at 410px 330px, rgba(255, 255, 255, .70), transparent);
    animation-duration: 7.5s;
    animation-delay: -3.2s;
}

.star-layer-far {
    opacity: .55;
    animation: starPan 150s linear infinite;
}

.star-layer-far::before {
    background-size: 300px 300px;
    animation-duration: 9s;
    animation-delay: -1.5s;
}

.star-layer-far::after {
    background-size: 340px 340px;
    animation-duration: 6.5s;
    animation-delay: -5s;
}

.star-layer:not(.star-layer-far) {
    animation: starPan 90s linear infinite reverse;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: .30;
    }

    50% {
        opacity: 1;
    }
}

@keyframes starPan {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-420px, 0, 0);
    }
}

.sparkle-field::before,
.sparkle-field::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
    opacity: 0;
    animation: shootingStar 17s linear infinite;
}

.sparkle-field::after {
    width: 96px;
    animation-duration: 23s;
    animation-delay: -9s;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translate3d(-14vw, 4vh, 0) rotate(14deg);
    }

    2% {
        opacity: 1;
    }

    11% {
        opacity: 0;
        transform: translate3d(88vw, 30vh, 0) rotate(14deg);
    }

    100% {
        opacity: 0;
        transform: translate3d(88vw, 30vh, 0) rotate(14deg);
    }
}

.sparkle {
    filter: saturate(.7);
    box-shadow: 0 0 6px currentColor;
}

@keyframes sparkleRise {
    0% {
        transform: translate(0, 0) scale(.6);
        opacity: 0;
    }

    8% {
        opacity: .55;
    }

    50% {
        transform: translate(calc(var(--drift, 20px) * .5), -50vh) scale(1);
    }

    85% {
        opacity: .34;
    }

    100% {
        transform: translate(var(--drift, 20px), -105vh) scale(.4);
        opacity: 0;
    }
}

.glow-orb {
    filter: blur(90px) saturate(.5);
    opacity: .16;
}

.hero .lede,
.wordmark {
    text-shadow: 0 1px 18px rgba(var(--bg-rgb), .85);
}

.eyebrow,
.section-label,
.site-footer {
    text-shadow:
        0 1px 3px rgba(var(--bg-rgb), .95),
        0 1px 18px rgba(var(--bg-rgb), .85);
}


.slots-btn {
    box-shadow: 0 18px 60px -22px rgba(0, 0, 0, .85);
}

.slots-btn:hover,
.slots-btn:focus-visible {
    box-shadow:
        0 18px 60px -22px rgba(0, 0, 0, .85),
        0 0 34px -6px rgba(var(--accent-rgb), .40);
}

html[data-theme="light"] .site-bg-image {
    filter: invert(1) grayscale(1) contrast(.8);
}

html[data-theme="light"] .site-bg-nebula {
    opacity: .5;
    mix-blend-mode: multiply;
}

html[data-theme="light"] .star-layer,
html[data-theme="light"] .sparkle-field::before,
html[data-theme="light"] .sparkle-field::after {
    display: none;
}

html[data-theme="light"] .hero .lede,
html[data-theme="light"] .wordmark,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .section-label,
html[data-theme="light"] .site-footer {
    text-shadow: none;
}

html[data-theme="light"] .slots-btn {
    box-shadow: 0 10px 30px -20px rgba(20, 22, 28, .32);
}

html[data-theme="light"] .slots-btn:hover,
html[data-theme="light"] .slots-btn:focus-visible {
    box-shadow:
        0 10px 30px -20px rgba(20, 22, 28, .32),
        0 0 26px -8px rgba(var(--accent-rgb), .35);
}


html[data-theme="oled"] .site-bg-image {
    filter: contrast(1.05);
}


@media (max-width: 820px),
(pointer: coarse) {
    .site-bg-image {
        animation: none;
        transform: scale(1.02);
        will-change: auto;
    }

    .site-bg-nebula {
        animation: none;
        opacity: .85;
    }

    .star-layer-far {
        display: none;
    }

    .star-layer:not(.star-layer-far) {
        animation: none;
    }

    .star-layer::after {
        display: none;
    }

    .sparkle-field::before,
    .sparkle-field::after {
        display: none;
    }

    .sparkle {
        box-shadow: none;
    }
}

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

    .site-bg-nebula {
        animation: none;
    }

    .star-layer,
    .star-layer::before,
    .star-layer::after {
        animation: none;
    }

    .sparkle-field::before,
    .sparkle-field::after {
        display: none;
    }
}

.site-bg-image {
    translate: var(--parallax-x, 0px) var(--parallax-y, 0px);
}

.star-layer {
    translate: calc(var(--parallax-x, 0px) * 2.1) calc(var(--parallax-y, 0px) * 2.1);
}

.star-layer-far {
    translate: calc(var(--parallax-x, 0px) * 1.2) calc(var(--parallax-y, 0px) * 1.2);
}

.site-bg-nebula {
    translate: calc(var(--parallax-x, 0px) * .5) calc(var(--parallax-y, 0px) * .5);
}

@media (max-width: 820px),
(pointer: coarse) {

    .site-bg-image,
    .star-layer,
    .star-layer-far,
    .site-bg-nebula {
        translate: none;
    }
}