@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-var.woff2") format("woff2");
}

:root {
    --bg: #08090b;
    --bg-raise: #0c0d10;
    --surface: #101216;
    --surface-2: #14161b;

    --line: rgba(255, 255, 255, 0.08);
    --line-soft: rgba(255, 255, 255, 0.05);
    --line-strong: rgba(255, 255, 255, 0.16);

    --text: #eef0f2;
    --text-2: #c6cbd1;
    --muted: #8f959d;
    --dim: #656b73;

    --green: #34d399;
    --green-deep: #06251a;
    --green-line: rgba(52, 211, 153, 0.32);
    --green-wash: rgba(52, 211, 153, 0.08);

    --purple: #a78bfa;

    --amber: #d9b06a;
    --amber-line: rgba(217, 176, 106, 0.3);
    --amber-wash: rgba(217, 176, 106, 0.07);

    --radius: 12px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --radius-pill: 999px;

    --shadow-soft: 0 12px 28px -20px rgba(0, 0, 0, 0.9);
    --shadow-frame: 0 32px 64px -40px rgba(0, 0, 0, 0.95);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --speed: 180ms;

    --font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-h: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-optical-sizing: auto;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    margin: 0;
}

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

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

button {
    font: inherit;
}

[hidden] {
    display: none !important;
}

::selection {
    background: rgba(52, 211, 153, 0.26);
    color: #fff;
}

:focus-visible {
    outline: 2px solid rgba(52, 211, 153, 0.65);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: min(1140px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(8, 9, 11, 0.82);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.nav a {
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-self: end;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.34rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.79rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.status--live {
    color: var(--green);
    border-color: var(--green-line);
    background: var(--green-wash);
}

.status--error {
    color: var(--amber);
    border-color: var(--amber-line);
    background: var(--amber-wash);
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    gap: 5px;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.nav-toggle:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
    display: block;
    width: 15px;
    height: 1.5px;
    background: var(--text);
    transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 10vh, 7.5rem) 0 clamp(3.5rem, 8vh, 6.5rem);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -30% 0 auto;
    height: 150%;
    pointer-events: none;
    background:
        radial-gradient(46% 42% at 16% 12%, rgba(52, 211, 153, 0.075), transparent 68%),
        radial-gradient(44% 40% at 84% 4%, rgba(139, 92, 246, 0.07), transparent 70%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    animation: rise 0.6s var(--ease) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero h1 {
    font-size: clamp(2.6rem, 1.4rem + 4vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 600;
}

.hero-name {
    margin-top: 0.9rem;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.hero-desc {
    margin-top: 1.15rem;
    max-width: 48ch;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.72rem 1.2rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-weight: 550;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease),
        color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.btn svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.btn-primary {
    background: var(--green);
    border-color: var(--green);
    color: var(--green-deep);
    font-weight: 600;
}

.btn-primary:hover {
    background: #45dfa7;
    border-color: #45dfa7;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.26);
}

.section {
    padding: clamp(3.25rem, 6vw, 5.75rem) 0;
    border-top: 1px solid var(--line);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.section-head h2 {
    font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.section-sub {
    margin-top: 0.55rem;
    max-width: 56ch;
    color: var(--muted);
    font-size: 0.97rem;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-frame);
}

.player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.offline {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1.75rem 1.5rem;
    background:
        radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, 0.025), transparent 70%),
        var(--surface);
}

.player[data-live="false"] .offline {
    display: flex;
}

.player[data-live="false"] .player-frame iframe {
    display: none;
}

.player[data-live="false"] .player-frame {
    aspect-ratio: auto;
    min-height: clamp(19rem, 34vw, 24rem);
}

.player[data-live="false"] .player-meta {
    display: none;
}

.offline-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.offline-icon svg {
    width: 24px;
    height: 24px;
}

.offline h3 {
    font-size: 1.22rem;
    font-weight: 600;
}

.offline p {
    max-width: 40ch;
    color: var(--muted);
    font-size: 0.95rem;
}

.offline .btn {
    margin-top: 0.4rem;
}

.player-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.1rem 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.meta-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.24rem 0.62rem;
    border: 1px solid var(--green-line);
    border-radius: var(--radius-pill);
    background: var(--green-wash);
    color: var(--green);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: breathe 2.6s var(--ease) infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.meta-channel {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.stream-title {
    margin-top: 0.7rem;
    font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.stream-sub {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.93rem;
}

.notice {
    margin-top: 1.1rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--amber-line);
    border-radius: var(--radius);
    background: var(--amber-wash);
    color: var(--amber);
    font-size: 0.9rem;
    line-height: 1.55;
}

.about {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.about-aside h2 {
    font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.about-body {
    max-width: 720px;
}

.about-bio {
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--text-2);
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.about-details li {
    display: inline-flex;
    align-items: center;
}

.about-details li + li {
    margin-left: 0.85rem;
    padding-left: 0.85rem;
    border-left: 1px solid var(--line-strong);
}

.social-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.05rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.012);
    transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease),
        transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.social:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.social-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social:hover .social-icon {
    color: var(--green);
    border-color: var(--green-line);
}

.social-name {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.social-desc {
    display: block;
    margin-top: 0.12rem;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.social-arrow {
    margin-left: auto;
    color: var(--dim);
    transition: color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.social-arrow svg {
    width: 15px;
    height: 15px;
}

.social:hover .social-arrow {
    color: var(--text);
    transform: translate(2px, -2px);
}

.discord-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.15rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.012);
    transition: border-color var(--speed) var(--ease);
}

.discord-panel:hover {
    border-color: var(--line-strong);
}

.discord-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--purple);
}

.discord-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-icon svg {
    width: 21px;
    height: 21px;
}

.discord-name {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.discord-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.discord-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex: 0 0 auto;
}

.discord-stats.is-offline .discord-dot {
    background: var(--dim);
}

.discord-stats.is-offline {
    color: var(--amber);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.8rem 0 2.4rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem 2rem;
}

.footer-brand {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.4rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-links a {
    transition: color var(--speed) var(--ease);
}

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

.made-by {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.made-by .credit {
    color: var(--text-2);
    font-weight: 600;
    padding: 0.05rem 0.2rem;
    margin: 0 -0.2rem;
    border-radius: 5px;
    transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.made-by .credit:hover {
    color: var(--green);
    background: var(--green-wash);
}

.made-by .flag {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

@media (max-width: 960px) {
    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 1rem;
    }

    .nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 0.5rem 24px 0.9rem;
        background: rgba(8, 9, 11, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease),
            visibility var(--speed) var(--ease);
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav a {
        padding: 0.75rem 0.25rem;
        font-size: 0.98rem;
        border-bottom: 1px solid var(--line-soft);
        border-radius: 0;
    }

    .nav a:last-child {
        border-bottom: 0;
    }

    .nav a:hover {
        background: transparent;
    }

    .nav-toggle {
        display: flex;
    }

    .about {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .player-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        gap: 1.1rem;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .wrap {
        width: min(1140px, calc(100% - 40px));
    }

    .hero {
        padding: 3.25rem 0 3rem;
    }

    .social-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .discord-panel {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .discord-panel .btn {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: center;
    }

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

    .player[data-live="false"] .player-frame {
        min-height: 17rem;
    }

    .offline {
        gap: 0.7rem;
        padding: 1.5rem 1.25rem;
    }

    .offline-icon {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 0.92rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .player-meta .btn {
        width: 100%;
    }

    .about-details {
        row-gap: 0.55rem;
    }

    .about-details li + li {
        margin-left: 0.7rem;
        padding-left: 0.7rem;
    }
}

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

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