@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;700;900&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --black: #000000;
    --black-2: #0a0508;
    --surface: #140b10;
    --surface-2: #1a0e15;
    --line: #2a1620;
    --line-soft: #1c0d14;
    --white: #ffffff;
    --gray-1: #c2b3ba;
    --gray-2: #8a7580;
    --gray-3: #54424b;
    --pink: #ff2f8f;
    --pink-soft: #ff8ac2;
    --pink-deep: #c81368;
    --pink-line: rgba(255, 47, 143, 0.28);
    --nav-bg: rgba(0, 0, 0, 0.55);
    --ink: #140b10;
    --paper: #ffffff;
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

:root[data-theme="light"] {
    --black: #faf6f8;
    --black-2: #f3e6ec;
    --surface: #ffffff;
    --surface-2: #fdf0f5;
    --line: #e7cddb;
    --line-soft: #f1e1e9;
    --white: #1c0f16;
    --gray-1: #4d3540;
    --gray-2: #8a6d78;
    --gray-3: #b99aa8;
    --pink: #d6236f;
    --pink-soft: #b8195f;
    --pink-deep: #c81368;
    --pink-line: rgba(214, 35, 111, 0.28);
    --nav-bg: rgba(250, 246, 248, 0.75);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background .3s ease;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--pink);
    color: var(--ink);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- nav ---------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 2rem;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.nav-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.28em;
}

.nav-mark span {
    color: var(--pink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--pink-line);
    background: var(--black-2);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.nav-join {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--paper);
    background: var(--pink-deep);
    padding: 0.6rem 1.1rem;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid var(--pink-deep);
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
    white-space: nowrap;
}

.nav-join:hover {
    background: var(--pink);
    border-color: var(--pink);
    box-shadow: 0 0 24px rgba(255, 47, 143, 0.45);
    transform: translateY(-1px);
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
}

#portal-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--pink-soft);
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(4.5rem, 15vw, 9.5rem);
    letter-spacing: 0.02em;
    line-height: 0.9;
    color: var(--white);
    text-shadow: 0 0 70px rgba(255, 47, 143, 0.35), 0 0 160px rgba(255, 47, 143, 0.12);
    will-change: transform, clip-path;
}

.hero-title.glitching {
    animation: glitch-init 1.15s steps(1, end) 1;
}

.hero-title.glitch-hover {
    animation: glitch-hover 0.4s steps(1, end) 1;
}

@keyframes glitch-init {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }

    4% {
        clip-path: inset(8% 0 64% 0);
        transform: translate(-6px, 2px);
    }

    8% {
        clip-path: inset(62% 0 4% 0);
        transform: translate(6px, -2px);
    }

    12% {
        clip-path: inset(30% 0 42% 0);
        transform: translate(-3px, 1px);
    }

    16% {
        clip-path: inset(4% 0 70% 0);
        transform: translate(5px, -1px);
    }

    20% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }

    45% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }

    48% {
        clip-path: inset(40% 0 20% 0);
        transform: translate(3px, 0);
    }

    52% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
}

@keyframes glitch-hover {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }

    30% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-4px, 0);
    }

    60% {
        clip-path: inset(55% 0 10% 0);
        transform: translate(4px, 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
}

.hero-tag {
    font-size: 1.05rem;
    color: var(--gray-1);
    font-weight: 400;
    max-width: 36rem;
    margin: 1.75rem auto 2.75rem;
}

.hero-tag strong {
    color: var(--pink-soft);
    font-weight: 600;
}

.cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.btn-enter {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--paper);
    background: var(--pink-deep);
    padding: 1rem 2.4rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid var(--pink-deep);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-enter:hover {
    background: var(--pink);
    border-color: var(--pink);
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(255, 47, 143, 0.5);
}

.btn-enter:active {
    transform: translateY(0);
}

.live-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray-2);
    letter-spacing: 0.03em;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pink);
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--pink);
    animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        opacity: 0.7;
        transform: scale(0.6);
    }

    100% {
        opacity: 0;
        transform: scale(2.1);
    }
}

#member-count {
    color: var(--white);
    font-weight: 500;
}

.scroll-cue {
    position: absolute;
    bottom: 2.4rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    color: var(--gray-3);
    text-transform: uppercase;
    z-index: 2;
}

/* ---------- shared section chrome ---------- */
.section {
    padding: 7rem 0;
    border-top: 1px solid var(--line-soft);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.section.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section-head {
    margin-bottom: 3rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    color: var(--pink);
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.01em;
}

/* ---------- overview ---------- */
.overview-text {
    max-width: 42rem;
    color: var(--gray-1);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 3.5rem;
}

.overview-text strong {
    color: var(--white);
    font-weight: 600;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.stat-card {
    background: var(--black);
    padding: 1.75rem 1.5rem;
}

.stat-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.1rem;
    color: var(--pink-soft);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gray-2);
    letter-spacing: 0.02em;
}

/* ---------- notable members ---------- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.member-card {
    background: var(--black);
    padding: 1.75rem;
    transition: background .25s ease;
}

.member-card:hover {
    background: var(--black-2);
}

.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--pink-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--pink-soft);
    margin-bottom: 1rem;
}

.member-avatar > img {
    border-radius: 100%;
}

.member-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--pink);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.member-desc {
    color: var(--gray-1);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ---------- hall of screenshots ---------- */
.gallery-stat {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray-2);
    margin-bottom: 2rem;
}

.gallery-stat strong {
    color: var(--pink-soft);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 120px;
    gap: 1.1rem;
    padding: 1rem 0 0.5rem;
}

.shot {
    position: relative;
    border-radius: 3px;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    transition: transform .25s ease, border-color .25s ease;
}

.shot > img {
    /* width: 100%; */
    object-fit:contain;
}

.shot:hover {
    transform: translateY(-4px) rotate(0deg) !important;
    border-color: var(--pink-line);
    z-index: 5;
}

.shot-cap {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.45);
    padding: 0.3rem 0.5rem;
    width: 100%;
}

.shot.tall {
    grid-row: span 2;
}

.shot.wide {
    grid-column: span 2;
}

.shot.more {
    align-items: center;
    justify-content: center;
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--pink-soft);
    text-align: center;
    text-decoration: none;
    padding: 1rem;
}

.shot.more:hover {
    background: var(--surface-2);
}

.shot:not(.more) {
    cursor: pointer;
}

.shot:not(.more):focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 3px;
}

/* ---------- lightbox ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-box {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.94);
    transition: transform .25s ease;
}

.lightbox-overlay.active .lightbox-box {
    transform: scale(1);
}

.lightbox-box img {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-placeholder {
    width: min(80vw, 640px);
    height: min(60vh, 420px);
}

.lightbox-cap {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    padding: 0.85rem 1.1rem;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 301;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 47, 143, 0.3);
    border-color: var(--pink);
}

.ph-1 {
    background: linear-gradient(135deg, #1a0e15 0%, #c81368 140%);
}

.ph-2 {
    background: linear-gradient(135deg, #0a0508 0%, #ff2f8f 160%);
}

.ph-3 {
    background: linear-gradient(160deg, #140b10 0%, #54424b 100%, #ff8ac2 180%);
}

.ph-4 {
    background: linear-gradient(200deg, #1a0e15 0%, #000 60%, #c81368 150%);
}

.ph-5 {
    background: linear-gradient(120deg, #000 0%, #2a1620 50%, #ff2f8f 170%);
}

.ph-6 {
    background: linear-gradient(150deg, #0a0508 0%, #54424b 80%, #ff8ac2 190%);
}

/* ---------- channels ---------- */
.chan-list {
    border-top: 1px solid var(--line-soft);
}

.chan-row {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 1.25rem 0.25rem;
    border-bottom: 1px solid var(--line-soft);
    transition: background .2s ease, padding-left .2s ease;
}

.chan-row:hover {
    background: var(--black-2);
    padding-left: 0.75rem;
}

.chan-name {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--white);
    white-space: nowrap;
    min-width: 11rem;
}

.chan-name::before {
    content: '#';
    color: var(--pink);
    margin-right: 0.15rem;
}

.chan-desc {
    color: var(--gray-2);
    font-size: 0.9rem;
}

/* ---------- vibe check ---------- */
.rules {
    display: flex;
    flex-direction: column;
}

.rule-row {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.rule-row:first-child {
    border-top: 1px solid var(--line-soft);
}

.rule-idx {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--pink);
    flex-shrink: 0;
    width: 2.5rem;
}

.rule-text {
    font-size: 1rem;
    color: var(--gray-1);
}

.rule-text strong {
    color: var(--white);
    font-weight: 600;
}

/* ---------- closing cta ---------- */
.closing {
    text-align: center;
    padding: 8rem 0 6rem;
}

.closing-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1.25rem;
}

.closing-title span {
    color: var(--pink);
}

.closing-sub {
    color: var(--gray-2);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* ---------- footer ---------- */
footer {
    border-top: 1px solid var(--line-soft);
    padding: 2.5rem 0;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-mark {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray-3);
}

.footer-links {
    display: flex;
    gap: 1.75rem;
}

.footer-links a {
    color: var(--gray-2);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--pink-soft);
}

@media (max-width:640px) {
    nav {
        padding: 1.1rem 1.25rem;
    }

    .hero {
        padding-top: 7rem;
    }

    .chan-row {
        flex-direction: column;
        gap: 0.3rem;
    }

    .chan-name {
        min-width: auto;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-grid {
        grid-auto-rows: 100px;
        gap: 0.8rem;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-title.glitching,
    .hero-title.glitch-hover {
        animation: none;
    }

    .section {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pulse-dot::after {
        animation: none;
    }
}