

:root {
    --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fx-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --fx-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --fx-reveal-dur: 0.66s;
    --fx-reveal-shift: 26px;
}


html.fx-on .fx-reveal {
    opacity: 0;
    transition:
        opacity var(--fx-reveal-dur) var(--fx-ease),
        transform var(--fx-reveal-dur) var(--fx-ease),
        filter var(--fx-reveal-dur) var(--fx-ease);
    transition-delay: calc(var(--fx-i, 0) * 70ms);
    will-change: opacity, transform;
}

html.fx-on .fx-reveal,
html.fx-on .fx-reveal--up {
    transform: translateY(var(--fx-reveal-shift));
}
html.fx-on .fx-reveal--down { transform: translateY(calc(var(--fx-reveal-shift) * -1)); }
html.fx-on .fx-reveal--left { transform: translateX(var(--fx-reveal-shift)); }
html.fx-on .fx-reveal--right { transform: translateX(calc(var(--fx-reveal-shift) * -1)); }
html.fx-on .fx-reveal--scale { transform: scale(0.92); }
html.fx-on .fx-reveal--blur { filter: blur(12px); }
html.fx-on .fx-reveal--zoom { transform: scale(1.06); }


html.fx-on .fx-reveal.fx-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    will-change: auto;
}




.fx-ripple-host { position: relative; overflow: hidden; }
.fx-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 62%);
    mix-blend-mode: screen;
    animation: fx-ripple-anim 0.62s var(--fx-ease) forwards;
    z-index: 0;
}
@keyframes fx-ripple-anim {
    to { transform: scale(2.6); opacity: 0; }
}


[data-fx~="tilt"] {
    transform: perspective(820px)
        rotateX(var(--fx-ry, 0deg))
        rotateY(var(--fx-rx, 0deg));
    transition: transform 0.22s var(--fx-ease);
    transform-style: preserve-3d;
}


[data-fx~="spotlight"] { position: relative; isolation: isolate; }
[data-fx~="spotlight"]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--fx-ease);
    background: radial-gradient(
        220px circle at var(--fx-px, 50%) var(--fx-py, 50%),
        rgba(34, 211, 238, 0.2),
        transparent 70%
    );
    z-index: -1;
}
[data-fx~="spotlight"]:hover::after { opacity: 1; }


[data-fx~="magnetic"] {
    transform: translate(var(--fx-mx, 0), var(--fx-my, 0));
    transition: transform 0.28s var(--fx-ease-spring);
}


.fx-shine { position: relative; overflow: hidden; }
.fx-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -160%;
    width: 75%;
    height: 100%;
    transform: skewX(-22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .fx-shine:hover::after { animation: fx-shine-sweep 0.9s var(--fx-ease); }
}
@keyframes fx-shine-sweep { to { left: 170%; } }


.fx-border-glow { position: relative; }
.fx-border-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--theme-gradient-cta);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.3s var(--fx-ease);
}
.fx-border-glow:hover::before { opacity: 1; }


.fx-link { position: relative; text-decoration: none; }
.fx-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--theme-gradient-cta);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--fx-ease);
}
.fx-link:hover::after,
.fx-link:focus-visible::after { transform: scaleX(1); }


.fx-float { animation: fx-float 6s var(--fx-ease-in-out) infinite; }
@keyframes fx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}


.fx-glass {
    background: var(--theme-panel);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
            backdrop-filter: blur(14px) saturate(1.25);
    border: 1px solid var(--theme-line);
}


.fx-gradient-text {
    background: var(--theme-gradient-cta);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}


html.fx-on { scroll-behavior: smooth; }

::selection {
    background: rgba(34, 211, 238, 0.32);
    color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
    
    .theme-btn:hover { border-color: var(--theme-line-strong); }
    .theme-btn--primary:hover { filter: saturate(1.08) brightness(1.04); }

    
    .theme-card {
        transition:
            transform 0.26s var(--fx-ease),
            box-shadow 0.26s var(--fx-ease),
            border-color 0.26s var(--fx-ease);
    }
    .theme-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--theme-shadow-hover);
        border-color: var(--theme-line-strong);
    }
}


.modal-btn {
    transition: transform 0.12s var(--fx-ease), filter 0.16s var(--fx-ease);
}
.modal-btn:hover { filter: brightness(1.06); }
.modal-btn:active { transform: translateY(1px) scale(0.99); }


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
    .fx-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

html.theme-reduce-motion *,
html.theme-reduce-motion *::before,
html.theme-reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
}
html.theme-reduce-motion .fx-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}


@media (prefers-reduced-motion: reduce) {
    [class*="spin"],
    [class*="spin"]::before,
    [class*="spin"]::after,
    [class*="loader"],
    [class*="loader"]::before,
    [class*="loader"]::after,
    [class*="loading"],
    [class*="loading"]::before,
    [class*="loading"]::after,
    [data-fx-keep],
    [data-fx-keep]::before,
    [data-fx-keep]::after {
        animation-duration: 0.8s !important;
        animation-delay: 0s !important;
        animation-iteration-count: infinite !important;
    }
}
html.theme-reduce-motion [class*="spin"],
html.theme-reduce-motion [class*="spin"]::before,
html.theme-reduce-motion [class*="spin"]::after,
html.theme-reduce-motion [class*="loader"],
html.theme-reduce-motion [class*="loader"]::before,
html.theme-reduce-motion [class*="loader"]::after,
html.theme-reduce-motion [class*="loading"],
html.theme-reduce-motion [class*="loading"]::before,
html.theme-reduce-motion [class*="loading"]::after,
html.theme-reduce-motion [data-fx-keep],
html.theme-reduce-motion [data-fx-keep]::before,
html.theme-reduce-motion [data-fx-keep]::after {
    animation-duration: 0.8s !important;
    animation-delay: 0s !important;
    animation-iteration-count: infinite !important;
}


@media (hover: none), (pointer: coarse) {
    .theme-card:hover { transform: none; }
}

:root {
    --fx-accent: #6e7cff;
    --fx-accent-2: #8b86ff;
    --fx-accent-soft: rgba(110, 124, 255, 0.14);
    --fx-accent-line: rgba(110, 124, 255, 0.42);
    --fx-ink: #f4f6fb;
    --fx-ink-2: #99a2b3;
    --fx-ink-3: #5e6677;
    --fx-line: rgba(255, 255, 255, 0.08);
    --fx-line-2: rgba(255, 255, 255, 0.16);
    --fx-elev-1: rgba(255, 255, 255, 0.022);
    --fx-elev-2: rgba(255, 255, 255, 0.045);
}

.nav-btn-login {
    background: var(--fx-accent);
    border: 1px solid transparent;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(110, 124, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.18s var(--fx-ease), box-shadow 0.2s var(--fx-ease), background 0.2s var(--fx-ease);
}
@media (hover: hover) and (pointer: fine) {
    .nav-btn-login:hover {
        transform: translateY(-2px);
        background: var(--fx-accent-2);
        box-shadow: 0 12px 30px rgba(110, 124, 255, 0.5);
    }
}

:root {
    --theme-bg-0: #060a16;
    --theme-bg-1: #0a1022;
    --theme-bg-2: #0c1226;
    --theme-bg-3: #0f1730;
    --theme-panel: #0f1730;
    --theme-panel-strong: #0a1022;
    --theme-panel-soft: #15203a;
    --theme-surface: #0a1022;
    --theme-line: rgba(255, 255, 255, 0.08);
    --theme-line-strong: rgba(110, 124, 255, 0.42);
    --theme-stroke: rgba(110, 124, 255, 0.28);
    --theme-accent: #6e7cff;
    --theme-accent-2: #8b86ff;
    --theme-accent-hot: #6e7cff;
    --theme-accent-warm: #8b86ff;
    --theme-indigo: #6e7cff;
    --theme-indigo-deep: #5b67e6;
    --theme-violet: #8b86ff;
    --theme-pink: #8b86ff;
    --theme-gradient-cta: #6e7cff;
    --theme-gradient-progress: #6e7cff;
    --theme-feed-neon: #6e7cff;
    --theme-shadow-glow: 0 0 32px rgba(110, 124, 255, 0.28);
    --theme-shadow-hover: 0 24px 80px rgba(2, 6, 23, 0.55), 0 0 40px rgba(110, 124, 255, 0.12);
}

body {
    background-color: #070d1c;
    background-image: radial-gradient(115% 78% at 50% -10%, #111c38 0%, #0a1226 40%, #070d1c 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.1px, transparent 1.1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(135% 100% at 50% -5%, #000 42%, transparent 92%);
            mask-image: radial-gradient(135% 100% at 50% -5%, #000 42%, transparent 92%);
    opacity: 0.7;
}
.theme-scene,
.scene { background: transparent; }
.theme-scene__blob,
.gradient-blob,
.noise { display: none; }

body.landing-page .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fx-ink-2);
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--fx-line);
    background: var(--fx-elev-1);
    margin-bottom: 22px;
}
body.landing-page .hero-eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fx-accent);
    box-shadow: 0 0 10px 1px var(--fx-accent);
}

body.landing-page .logo-section h1 {
    font-size: clamp(46px, 9vw, 92px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.0;
    color: var(--fx-ink);
    background: none;
    -webkit-text-fill-color: #ffffff;
    -webkit-background-clip: border-box;
            background-clip: border-box;
    animation: none;
    filter: none;
    margin-bottom: 18px;
}
body.landing-page .landing-hero .tagline {
    color: var(--fx-ink-2);
    font-size: clamp(16px, 2.1vw, 20px);
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto;
}
body.landing-page .landing-hero {
    padding-top: clamp(56px, 9vh, 104px);
}
body.landing-page .landing-hero .hint {
    color: var(--fx-ink-2);
    margin-top: 10px;
}

body.landing-page .hero-cta {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
body.landing-page .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 26px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.18s var(--fx-ease), box-shadow 0.2s var(--fx-ease), background 0.2s var(--fx-ease), border-color 0.2s var(--fx-ease);
}
body.landing-page .hero-btn--primary {
    background: var(--fx-accent);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(110, 124, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.landing-page .hero-btn--ghost {
    background: var(--fx-elev-1);
    color: var(--fx-ink);
    border-color: var(--fx-line-2);
}
@media (hover: hover) and (pointer: fine) {
    body.landing-page .hero-btn--primary:hover {
        transform: translateY(-2px);
        background: var(--fx-accent-2);
        box-shadow: 0 14px 34px rgba(110, 124, 255, 0.5);
    }
    body.landing-page .hero-btn--ghost:hover {
        transform: translateY(-2px);
        background: var(--fx-elev-2);
        border-color: var(--fx-accent-line);
    }
}

body.landing-page .landing-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    max-width: 1080px;
    margin: clamp(28px, 4vh, 48px) auto 0;
}
body.landing-page .landing-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--fx-line);
    background: #0f1730;
    overflow: visible;
    transition: transform 0.26s var(--fx-ease), border-color 0.26s var(--fx-ease), background 0.26s var(--fx-ease);
}
body.landing-page .landing-stat::after { display: none; }
body.landing-page .landing-stat-ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    background: var(--fx-accent-soft);
    border: 1px solid var(--fx-accent-line);
    color: var(--fx-accent-2);
}
body.landing-page .landing-stat-ico svg {
    width: 20px;
    height: 20px;
    display: block;
}
body.landing-page .landing-stat-value {
    margin: 0;
    color: var(--fx-ink);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(24px, 2.6vw, 34px);
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}
body.landing-page .landing-stat-label {
    margin-top: 8px;
    color: var(--fx-ink-2);
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
    body.landing-page .landing-stat:hover {
        transform: translateY(-4px);
        border-color: var(--fx-line-2);
        background: #15203a;
    }
}

body.landing-page .public-access-panel {
    border: 1px solid var(--fx-line);
    background: #0f1730;
    border-radius: 24px;
    box-shadow: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
}
body.landing-page .public-access-title { color: var(--fx-ink); }
body.landing-page .public-access-sub { color: var(--fx-ink-2); }
body.landing-page .public-access-link {
    border: 1px solid var(--fx-line);
    background: var(--fx-elev-1);
    color: var(--fx-ink);
    transition: transform 0.2s var(--fx-ease), border-color 0.2s var(--fx-ease), background 0.2s var(--fx-ease), color 0.2s var(--fx-ease);
}
@media (hover: hover) and (pointer: fine) {
    body.landing-page .public-access-link:hover {
        transform: translateY(-2px);
        border-color: var(--fx-accent-line);
        background: var(--fx-accent-soft);
        color: #ffffff;
    }
}

@media (max-width: 920px) {
    body.landing-page .landing-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    body.landing-page .landing-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    body.landing-page .landing-stat { padding: 16px; }
}

.auth-modal-panel { max-width: min(468px, calc(100vw - 24px)); }
.auth-modal-panel .card {
    background: #0f1730;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    border: 1px solid var(--fx-line);
    border-radius: 22px;
    padding: 30px 30px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.auth-modal-panel .card:hover {
    transform: none;
    border-color: var(--fx-line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.auth-modal-close {
    background: #131c34;
    border: 1px solid var(--fx-line);
    color: var(--fx-ink-2);
    border-radius: 11px;
}
.auth-modal-close:hover {
    background: var(--fx-accent-soft);
    border-color: var(--fx-accent-line);
    color: #ffffff;
}

.auth-modal-panel .tabs {
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: #0a1124;
    border: 1px solid var(--fx-line);
    border-radius: 13px;
    box-shadow: none;
}
.auth-modal-panel .tab-btn {
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--fx-ink-2);
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s var(--fx-ease), color 0.2s var(--fx-ease), box-shadow 0.2s var(--fx-ease);
}
.auth-modal-panel .tab-btn:hover { color: var(--fx-ink); }
.auth-modal-panel .tab-btn.active {
    background: #182542;
    color: #ffffff;
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(110, 124, 255, 0.35);
}
.auth-modal-panel .tab-btn.active::after { display: none; }

.auth-modal-panel .form-group { margin-bottom: 18px; }
.auth-modal-panel .form-group label {
    margin-bottom: 8px;
    color: var(--fx-ink);
    font-weight: 600;
    font-size: 13px;
}
.auth-modal-panel .form-group input {
    padding: 13px 15px;
    background: #0a1124;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    color: var(--fx-ink);
    font-size: 15px;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    transition: border-color 0.2s var(--fx-ease), box-shadow 0.2s var(--fx-ease), background 0.2s var(--fx-ease);
}
.auth-modal-panel .form-group input:focus {
    border-color: var(--fx-accent);
    background: #0c142a;
    box-shadow: 0 0 0 3px var(--fx-accent-soft);
    transform: none;
}
.auth-modal-panel .form-group input::placeholder { color: var(--fx-ink-3); }

.auth-modal-panel .btn {
    padding: 15px;
    background: var(--fx-accent);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(110, 124, 255, 0.32);
    transition: transform 0.18s var(--fx-ease), box-shadow 0.2s var(--fx-ease), background 0.2s var(--fx-ease);
}
.auth-modal-panel .btn::before { display: none; }
.auth-modal-panel .btn:hover {
    transform: translateY(-2px);
    background: var(--fx-accent-2);
    box-shadow: 0 14px 32px rgba(110, 124, 255, 0.45);
}

.auth-modal-panel .checkbox-group {
    margin: 18px 0;
    padding: 14px 16px;
    background: rgba(110, 124, 255, 0.06);
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
}
.auth-modal-panel .checkbox-group:hover {
    border-color: var(--fx-accent-line);
    background: rgba(110, 124, 255, 0.09);
}
.auth-modal-panel .checkbox-label { color: var(--fx-ink); font-weight: 600; font-size: 14px; }
.auth-modal-panel .checkbox-label svg { color: var(--fx-accent-2); }
.auth-modal-panel .checkbox-label input[type="checkbox"] { accent-color: var(--fx-accent); }
.auth-modal-panel .info-text { color: var(--fx-ink-3); }

.auth-modal-panel .twitch-oauth-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--fx-line);
}
.auth-modal-panel .twitch-warn-box {
    margin: 0 0 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--fx-line);
    background: rgba(110, 124, 255, 0.06);
    box-shadow: none;
}
.auth-modal-panel .twitch-warn-title { color: var(--fx-ink); font-size: 13px; margin-bottom: 10px; }
.auth-modal-panel .twitch-warn-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: var(--fx-accent-soft);
    border: 1px solid var(--fx-accent-line);
    color: var(--fx-accent-2);
    box-shadow: none;
    font-size: 13px;
}
.auth-modal-panel .twitch-warn-list {
    display: block;
    color: var(--fx-ink-2);
    font-size: 12px;
}
.auth-modal-panel .twitch-warn-list li + li { margin-top: 8px; }
.auth-modal-panel .twitch-warn-list li::before { background: var(--fx-accent); }
.auth-modal-panel .twitch-ack-label { color: var(--fx-ink-2); font-size: 12px; }
.auth-modal-panel .twitch-ack-label input { accent-color: var(--fx-accent); }

.twitch-footnote + .upload-btn.upload-btn--block,
.twitch-footnote + .upload-btn--block { margin-top: 16px; }

.preview,
.feed-item,
.content-viewer,
.image-preview,
.video-player,
.audio-player {
    position: relative;
}
.theme-media-error {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    box-sizing: border-box;
    background: rgba(10, 16, 34, 0.92);
    border-radius: inherit;
    overflow: hidden;
    z-index: 3;
}

