:root {
    color-scheme: dark;
    --page-gutter: clamp(18px, 4vw, 36px);
    --page: min(1320px, calc(100% - var(--page-gutter) - var(--page-gutter)));
    --black: #030303;
    --black-2: #090909;
    --panel: rgba(16, 16, 16, 0.78);
    --panel-strong: rgba(24, 24, 24, 0.94);
    --white: #f7f7f2;
    --muted: #bebebe;
    --soft: #808080;
    --line: rgba(255, 255, 255, 0.16);
    --line-strong: rgba(255, 255, 255, 0.32);
    --radius: 8px;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, var(--black) 0%, var(--black-2) 55%, #000 100%);
    background-position: 0 0, 0 0, 50% 0, 0 0;
    background-size: 88px 88px, 88px 88px, auto, auto;
    color: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    isolation: isolate;
    animation: pageGridFlow 26s linear infinite;
}

body.modal-open {
    overflow: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 29%),
        linear-gradient(245deg, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.05), transparent 48%);
    animation: ambientShift 12s ease-in-out infinite alternate;
}

body::after {
    position: fixed;
    inset: -18%;
    z-index: 0;
    pointer-events: none;
    content: "";
    background:
        repeating-linear-gradient(108deg, transparent 0 18px, rgba(255, 255, 255, 0.045) 18px 19px),
        linear-gradient(118deg, transparent 18%, rgba(255, 255, 255, 0.09) 46%, transparent 72%);
    opacity: 0.42;
    transform: translate3d(-4%, 0, 0) rotate(0.001deg);
    animation: backdropSweep 18s ease-in-out infinite alternate;
}

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

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

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

.constellation,
.motion-backdrop,
.sky-events {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.constellation {
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    mix-blend-mode: screen;
}

.motion-backdrop {
    z-index: 1;
    overflow: hidden;
    opacity: 0.95;
}

.sky-events {
    z-index: 2;
    overflow: hidden;
}

.shooting-star,
.falling-star {
    position: absolute;
    display: block;
    opacity: 0;
    pointer-events: none;
}

.shooting-star {
    width: 112px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.98));
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.65));
    transform: rotate(-28deg);
    animation: shootStar var(--duration, 2.8s) ease-out forwards;
}

.falling-star {
    width: 4px;
    height: 4px;
    background: var(--white);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
    animation: fallStar var(--duration, 12s) linear forwards;
}

.motion-backdrop span {
    position: absolute;
    width: 170vw;
    height: 2px;
    left: -34vw;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18), transparent);
    transform: rotate(-10deg);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.24));
}

.motion-backdrop span:nth-child(1) {
    top: 16%;
    animation: lightRail 8s linear infinite;
}

.motion-backdrop span:nth-child(2) {
    top: 50%;
    animation: lightRail 11s linear infinite reverse;
    opacity: 0.68;
}

.motion-backdrop span:nth-child(3) {
    top: 82%;
    animation: lightRail 14s linear infinite;
    opacity: 0.5;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 3vw, 24px);
    width: var(--page);
    margin: 24px auto 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(22px);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

main,
.site-footer {
    position: relative;
    z-index: 3;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 850;
    transition: color 180ms ease;
}

.brand:hover {
    color: #fff;
}

.brand-center {
    display: grid;
    justify-self: center;
    gap: 8px;
    justify-items: center;
    min-width: clamp(110px, 11vw, 150px);
    text-align: center;
    line-height: 1.15;
}

.brand-name {
    display: block;
    max-width: 100%;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 850;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.brand-mark {
    --brand-box-size: 64px;
    --brand-avatar-size: 64px;
    --brand-decoration-size: 92px;
    --brand-avatar-clip: 50%;
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: var(--brand-box-size);
    height: var(--brand-box-size);
    place-items: center;
    overflow: visible;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
}

.brand-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: var(--brand-avatar-size);
    height: var(--brand-avatar-size);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    clip-path: circle(var(--brand-avatar-clip) at 50% 50%);
    transform: translate(-50%, -50%);
}

.brand-avatar:not([src]),
.brand-avatar[src=""] {
    display: none;
}

.brand-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: var(--brand-decoration-size);
    height: var(--brand-decoration-size);
    max-width: none;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 220ms ease;
}

.brand-decoration.is-loaded {
    opacity: 1;
}

.brand-fallback {
    position: relative;
    z-index: 1;
    display: grid;
    width: calc(var(--brand-box-size) - 8px);
    height: calc(var(--brand-box-size) - 8px);
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

.nav-right-shell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.nav-links a {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 800;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.is-active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.translation-switcher {
    position: relative;
    flex: 0 0 auto;
}

.translation-trigger {
    min-height: 39px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 850;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.translation-trigger:hover,
.translation-trigger[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.12);
}

.translation-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: grid;
    width: min(260px, calc(100vw - 28px));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.94);
    box-shadow: var(--shadow);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.translation-switcher.is-open .translation-menu {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.translation-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    color: var(--white);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease;
}

.translation-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.translation-menu span {
    font-weight: 850;
}

.translation-menu small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.google-translate-host {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
body > .skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.landing-hero,
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
    gap: 90px;
    align-items: center;
    width: var(--page);
    min-height: calc(100vh - 108px);
    margin: 0 auto;
    padding: 96px 0 96px;
}

.landing-copy,
.hero-copy {
    max-width: 720px;
}

.page-home .landing-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-content: center;
}

.page-home .landing-copy {
    max-width: 760px;
}

.community-stage {
    position: relative;
    display: grid;
    min-height: 440px;
    place-items: center;
}

.community-panel {
    position: relative;
    width: min(500px, 100%);
    overflow: hidden;
    padding: clamp(26px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
        rgba(10, 10, 10, 0.82);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.community-panel::before {
    position: absolute;
    right: -52px;
    bottom: -54px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    content: "";
    background: rgba(88, 101, 242, 0.18);
    filter: blur(2px);
}

.community-topline,
.community-panel h2,
.community-panel p,
.community-actions {
    position: relative;
}

.community-topline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.community-mark {
    display: grid;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: #5865f2;
    box-shadow: 0 20px 48px rgba(88, 101, 242, 0.24);
}

.community-mark img {
    width: 42px;
    height: 42px;
}

.community-topline .eyebrow {
    margin-bottom: 4px;
}

.community-topline strong {
    color: var(--muted);
    font-size: 0.95rem;
}

.community-panel h2 {
    max-width: 12ch;
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 3.8vw, 3.65rem);
}

.community-panel > p {
    max-width: 34ch;
    margin-bottom: 26px;
    color: var(--muted);
}

.community-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.community-actions > span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.9rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.bot-home-stage {
    position: relative;
    display: grid;
    min-height: 460px;
    place-items: center;
}

.bot-home-visual {
    position: relative;
    display: grid;
    width: min(620px, 100%);
    min-height: 460px;
    align-items: end;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 8, 8, 0.72);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.bot-home-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    opacity: 0.72;
    transform: scale(1.02);
}

.bot-home-visual::after,
.bot-hero-card::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.78) 100%);
}

.bot-home-panel,
.bot-hero-copy {
    position: relative;
    z-index: 2;
    padding: clamp(22px, 3vw, 32px);
}

.bot-home-panel p,
.bot-hero-copy p {
    color: var(--muted);
}

.quick-guide-list,
.bot-steps {
    position: relative;
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: guide;
}

.quick-guide-list li,
.bot-steps li {
    position: relative;
    min-height: 42px;
    padding: 10px 12px 10px 48px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    font-weight: 700;
}

.quick-guide-list li::before,
.bot-steps li::before {
    position: absolute;
    top: 50%;
    left: 12px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: var(--black);
    background: var(--white);
    content: counter(guide);
    counter-increment: guide;
    font-size: 0.76rem;
    font-weight: 950;
    transform: translateY(-50%);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(3.5rem, 5.8vw, 6.25rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    max-width: 820px;
    margin-bottom: 0;
    font-size: 3.2rem;
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    line-height: 1.16;
    letter-spacing: 0;
}

.hero-summary {
    max-width: 660px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 1.1rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-weight: 850;
    white-space: nowrap;
    min-width: 0;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.button.primary {
    border-color: rgba(255, 255, 255, 0.72);
    background: var(--white);
    color: var(--black);
    box-shadow: 0 0 34px rgba(255, 255, 255, 0.16);
}

.button.ghost,
.button.quiet {
    background: rgba(255, 255, 255, 0.045);
    color: var(--white);
}

.button.quiet {
    border-color: transparent;
}

.home-grid,
.stats-band,
.highlight-grid,
.skill-grid,
.project-grid,
.resume-grid,
.personal-grid,
.bot-grid,
.bot-feature-grid,
.wiki-grid,
.bot-steps,
.vip-grid,
.writing-grid,
.social-row,
.contact-section {
    width: var(--page);
    margin-inline: auto;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 0 0 128px;
}

.home-card,
.about-panel,
.resume-card,
.skill-card,
.project-card,
.personal-card,
.bot-card,
.wiki-card,
.vip-card,
.writing-card,
.highlight-card,
.timeline {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    transform-style: preserve-3d;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-card::before,
.about-panel::before,
.resume-card::before,
.skill-card::before,
.project-card::before,
.personal-card::before,
.bot-card::before,
.wiki-card::before,
.vip-card::before,
.writing-card::before,
.highlight-card::before,
.timeline::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 44%, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 200ms ease;
}

.home-card:hover,
.about-panel:hover,
.resume-card:hover,
.skill-card:hover,
.project-card:hover,
.personal-card:hover,
.bot-card:hover,
.wiki-card:hover,
.vip-card:hover,
.writing-card:hover,
.highlight-card:hover,
.timeline:hover {
    border-color: var(--line-strong);
    background: var(--panel-strong);
}

.home-card:hover::before,
.about-panel:hover::before,
.resume-card:hover::before,
.skill-card:hover::before,
.project-card:hover::before,
.personal-card:hover::before,
.bot-card:hover::before,
.wiki-card:hover::before,
.vip-card:hover::before,
.writing-card:hover::before,
.highlight-card:hover::before,
.timeline:hover::before {
    opacity: 1;
}

.home-card {
    min-height: 265px;
    padding: 32px;
}

.home-card span,
.project-card > p,
.timeline-item span,
.highlight-card span,
.home-card small {
    position: relative;
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.home-card h2,
.home-card p,
.text-link {
    position: relative;
}

.home-card h2 {
    margin: 24px 0 14px;
    font-size: 1.65rem;
}

.home-card p {
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--white);
    font-weight: 850;
    transition: transform 180ms ease;
}

.about-hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 112px;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
}

.about-hero h1 {
    max-width: 820px;
    font-size: clamp(3.2rem, 4.8vw, 5.35rem);
}

.about-panel,
.resume-card,
.skill-card,
.project-card,
.personal-card,
.bot-card,
.wiki-card,
.vip-card,
.writing-card,
.timeline {
    padding: 32px;
}

.about-panel h2 {
    position: relative;
    margin-bottom: 16px;
    font-size: 2.1rem;
}

.about-panel p,
.resume-card p,
.project-card > span,
.personal-card p,
.bot-card p,
.wiki-card p,
.vip-card p,
.writing-card p,
.section-heading > p:not(.eyebrow),
.home-card p {
    color: var(--muted);
}

@media (min-width: 921px) {
    html.page-home-root {
        height: 100vh;
        overflow-y: hidden;
    }

    body.page-home {
        height: 100vh;
        overflow-y: hidden;
    }

    .page-home .site-header {
        margin-top: 10px;
        padding: 8px 14px;
    }

    .page-home main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(245px, 0.32fr);
        gap: 22px;
        align-items: center;
        width: var(--page);
        height: calc(100vh - 112px);
        min-height: 0;
        margin: 0 auto;
        padding: 18px 0 12px;
    }

    .page-home .landing-hero {
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.82fr);
        gap: clamp(24px, 3vw, 44px);
    }

    .page-home .landing-copy {
        max-width: 680px;
    }

    .page-home .landing-copy h1 {
        font-size: clamp(2.7rem, 4.2vw, 4.65rem);
    }

    .page-home .community-stage,
    .page-home .bot-home-stage {
        min-height: 0;
        height: 100%;
    }

    .page-home .bot-home-visual {
        min-height: min(540px, 100%);
    }

    .page-home .quick-guide-list {
        gap: 8px;
        margin-top: 18px;
    }

    .page-home .quick-guide-list li {
        min-height: 36px;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .page-home .community-panel {
        width: min(430px, 100%);
        padding: clamp(22px, 2.7vw, 32px);
    }

    .page-home .community-mark {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .page-home .community-mark img {
        width: 38px;
        height: 38px;
    }

    .page-home .community-panel h2 {
        max-width: 11ch;
        font-size: clamp(2rem, 3vw, 3rem);
    }

    .page-home .home-grid {
        width: auto;
        margin: 0;
        padding: 0;
        grid-template-columns: 1fr;
        gap: 12px;
        align-content: center;
    }

    .page-home .home-card {
        min-height: 0;
        padding: 18px;
    }

    .page-home .home-card h2 {
        margin: 14px 0 8px;
        font-size: 1.15rem;
    }

    .page-home .home-card p {
        margin-bottom: 0;
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .page-home .text-link {
        margin-top: 10px;
    }

    .page-home .site-footer {
        display: none;
    }
}

.panel-topline,
.about-panel h2,
.about-panel p,
.contact-mini,
.resume-card p,
.resume-card .button,
.resume-card .tags,
.skill-card h3,
.project-card h3,
.project-card > p,
.project-card > span,
.personal-card span,
.personal-card h3,
.personal-card p,
.bot-card h3,
.bot-card p,
.wiki-card span,
.wiki-card h3,
.wiki-card p,
.vip-card h3,
.vip-card p,
.writing-card span,
.writing-card h3,
.writing-card p,
.tags,
.timeline-item,
.highlight-card span,
.highlight-card h3 {
    position: relative;
}

.panel-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.86rem;
}

.panel-topline strong {
    color: var(--white);
}

.contact-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.contact-mini span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.88rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line);
}

.stat {
    min-height: 132px;
    padding: 28px;
    background: rgba(10, 10, 10, 0.84);
}

.stat strong {
    display: block;
    color: var(--white);
    font-size: 2.4rem;
    line-height: 1;
}

.stat span {
    color: var(--muted);
}

.content-section,
.contact-section {
    padding: 120px 0 0;
}

.section-heading {
    display: grid;
    gap: 8px;
    width: var(--page);
    margin: 0 auto 42px;
}

.highlight-grid,
.skill-grid,
.project-grid {
    display: grid;
    gap: 22px;
}

.highlight-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.highlight-card {
    min-height: 178px;
    padding: 28px;
}

.highlight-card h3 {
    margin: 18px 0 0;
    font-size: 1.08rem;
}

.skill-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-topline {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.skill-topline h3,
.project-card h3 {
    margin-bottom: 0;
    font-size: 1.22rem;
}

.skill-topline span {
    color: var(--white);
    font-weight: 900;
}

.meter {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.meter span {
    display: block;
    width: var(--level);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fff, #777, #fff);
    transform-origin: left;
    animation: loadMeter 1.3s ease both;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.045);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.large-tags span {
    min-height: 34px;
}

.tech-strip {
    width: 100%;
    margin-top: 118px;
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.7);
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 27s linear infinite;
}

.marquee span {
    display: inline-flex;
    align-items: center;
    min-height: 74px;
    padding: 0 32px;
    color: var(--white);
    font-weight: 900;
    text-transform: uppercase;
}

.marquee span:nth-child(2n) {
    color: var(--soft);
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    display: flex;
    min-height: 360px;
    flex-direction: column;
}

.project-card .tags {
    margin-top: auto;
    padding-top: 24px;
}

.resume-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    gap: 28px;
    align-items: stretch;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.38);
}

.timeline-item h3 {
    margin: 8px 0 8px;
    font-size: 1.45rem;
}

.timeline-item p {
    color: var(--muted);
}

.resume-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.bot-grid,
.writing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.bot-feature-grid,
.wiki-grid,
.vip-grid {
    display: grid;
    gap: 22px;
}

.bot-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wiki-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bot-hero-card {
    position: relative;
    display: grid;
    min-height: 560px;
    align-items: end;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 8, 8, 0.72);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.bot-hero-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    opacity: 0.75;
}

.wiki-card {
    display: flex;
    min-height: 310px;
    flex-direction: column;
}

.vip-card {
    display: flex;
    min-height: 430px;
    flex-direction: column;
}

.vip-card.is-featured {
    grid-column: span 2;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%, rgba(255, 255, 255, 0.08)),
        var(--panel-strong);
}

.wiki-card > span {
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.personal-card {
    display: flex;
    min-height: 292px;
    flex-direction: column;
}

.bot-card,
.writing-card {
    display: flex;
    min-height: 310px;
    flex-direction: column;
}

.personal-card > span {
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.personal-card h3 {
    margin: 24px 0 14px;
    font-size: 1.55rem;
}

.bot-card h3,
.wiki-card h3,
.vip-card h3,
.writing-card h3 {
    margin: 22px 0 14px;
    font-size: 1.45rem;
}

.bot-topline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.bot-topline strong,
.writing-card > span {
    color: var(--white);
}

.personal-card .tags {
    margin-top: auto;
    padding-top: 24px;
}

.bot-card .tags,
.writing-card .tags {
    margin-top: auto;
    padding-top: 24px;
}

.bot-card-action {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.command-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
}

.command-list code {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.84rem;
    font-weight: 850;
}

.rules-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 26px;
    width: var(--page);
    margin: 26px auto 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.78);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.rules-panel h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.6rem);
}

.rules-panel ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rules-panel li {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
}

.vip-card ul {
    position: relative;
    display: grid;
    gap: 10px;
    margin: auto 0 0;
    padding: 22px 0 0;
    list-style: none;
}

.vip-card li {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.92rem;
    line-height: 1.42;
}

.rules-panel .button {
    grid-column: 1 / -1;
    align-self: end;
    justify-self: start;
}

.social-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.social-row > a,
.social-row > span {
    display: grid;
    gap: 6px;
    min-height: 112px;
    align-content: center;
    padding: 22px;
    background: rgba(10, 10, 10, 0.84);
}

.social-row > a {
    transition: background 180ms ease, transform 180ms ease;
}

.social-row > a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.social-row span span,
.social-row a span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.social-row strong {
    color: var(--white);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
    padding-bottom: 86px;
}

.contact-copy h2 {
    max-width: 620px;
}

.contact-copy p:last-child {
    margin: 18px 0 0;
    color: var(--muted);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.observer-shell {
    width: var(--page);
    min-height: calc(100vh - 108px);
    margin: 0 auto;
    padding: 96px 0;
}

.access-shell {
    display: grid;
    width: var(--page);
    min-height: calc(100vh - 108px);
    margin: 0 auto;
    padding: 72px 0;
    place-items: center;
}

.observer-gate {
    max-width: 560px;
}

.observer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin: -20px 0 28px;
}

.observer-filter-panel,
.observer-bulk-actions,
.observer-notice {
    position: relative;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.76);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.observer-filter-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.observer-filter-heading,
.observer-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.observer-filter-heading div {
    display: grid;
    gap: 4px;
}

.observer-filter-heading span,
.observer-bulk-actions span,
.observer-filter-grid label span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.observer-filter-heading strong {
    color: var(--white);
    font-size: 1.05rem;
}

.observer-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.observer-filter-grid label {
    display: grid;
    gap: 8px;
}

.observer-filter-grid input,
.observer-filter-grid select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font: inherit;
}

.observer-filter-grid input:focus,
.observer-filter-grid select:focus {
    border-color: rgba(255, 255, 255, 0.54);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.observer-filter-grid option {
    color: var(--black);
}

.observer-bulk-actions {
    padding: 18px 20px;
}

.observer-notice {
    padding: 14px 18px;
    color: var(--white);
}

.button.danger {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.observer-metrics,
.observer-grid {
    display: grid;
    gap: 22px;
}

.observer-metrics {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 22px;
}

.observer-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 22px;
}

.access-card,
.observer-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    transform-style: preserve-3d;
}

.access-card {
    width: min(560px, 100%);
    padding: clamp(28px, 5vw, 42px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 46%),
        rgba(8, 8, 8, 0.9);
}

.observer-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 44%, rgba(255, 255, 255, 0.04));
}

.access-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 34%),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.035) 18px 19px);
}

.access-card::after {
    position: absolute;
    right: -56px;
    bottom: -64px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.access-card > *,
.observer-card > * {
    position: relative;
}

.access-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.access-topline span,
.observer-card span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.access-topline strong {
    color: var(--white);
    font-size: 0.82rem;
}

.access-lock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 26px;
}

.access-lock span {
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.access-card h1,
.access-card h2 {
    max-width: none;
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
}

.access-card p {
    margin-bottom: 24px;
    color: var(--muted);
}

.observer-card strong {
    display: block;
    color: var(--white);
    font-size: 2.2rem;
    line-height: 1.08;
}

.observer-card h2 {
    margin-bottom: 22px;
    font-size: 1.55rem;
}

.observer-form {
    position: relative;
    display: grid;
    width: 100%;
    gap: 12px;
}

.observer-form label {
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.observer-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font: inherit;
    font-size: 1.08rem;
}

.observer-form input:focus {
    border-color: rgba(255, 255, 255, 0.54);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.observer-error {
    margin: 0;
    color: var(--muted);
}

.access-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    padding: var(--page-gutter);
    pointer-events: none;
    opacity: 0;
    place-items: center;
    transition: opacity 180ms ease;
}

.access-modal.is-open {
    pointer-events: auto;
    opacity: 1;
}

.access-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(16px);
}

.access-modal-card {
    transform: translateY(18px) scale(0.98);
    transition: transform 180ms ease;
}

.access-modal.is-open .access-modal-card {
    transform: translateY(0) scale(1);
}

.access-close {
    margin-top: 12px;
    width: 100%;
}

.observer-list {
    display: grid;
    gap: 12px;
}

.observer-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.observer-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.observer-list strong {
    font-size: 1rem;
}

.observer-table-card {
    padding: 0;
}

.observer-table-card h2 {
    padding: 28px 28px 0;
}

.observer-table-wrap {
    overflow-x: auto;
}

.observer-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.observer-table th,
.observer-table td {
    padding: 15px 18px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.observer-table th {
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.observer-table td {
    color: var(--muted);
    font-size: 0.92rem;
}

.observer-check-cell {
    width: 52px;
    text-align: center;
}

.observer-check-cell input {
    width: 18px;
    height: 18px;
    accent-color: var(--white);
}

.pot-shell {
    width: var(--page);
    min-height: calc(100vh - 108px);
    margin: 0 auto;
    padding: 96px 0;
}

.pot-backend {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.84rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.pot-error {
    border-color: rgba(255, 145, 145, 0.38);
    color: #ffd2d2;
}

.pot-section,
.pot-output {
    position: relative;
    display: grid;
    gap: 20px;
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.78);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.pot-output {
    border-color: rgba(188, 255, 214, 0.24);
    background:
        linear-gradient(135deg, rgba(188, 255, 214, 0.08), transparent 44%),
        rgba(10, 10, 10, 0.82);
}

.pot-section-heading,
.pot-output-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.pot-section-heading div,
.pot-output-heading {
    display: grid;
    gap: 6px;
}

.pot-section-heading span,
.pot-output-heading span,
.pot-form label span,
.pot-full-field span,
.pot-result-grid span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.pot-section-heading h2,
.pot-output-heading h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
}

.pot-form {
    display: grid;
    gap: 14px;
}

.pot-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.pot-form label,
.pot-full-field {
    display: grid;
    gap: 8px;
}

.pot-form input,
.pot-form select,
.pot-form textarea,
.pot-full-field input,
.pot-full-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font: inherit;
}

.pot-form textarea,
.pot-full-field textarea {
    min-height: 88px;
    padding-top: 10px;
    resize: vertical;
}

.pot-form input:focus,
.pot-form select:focus,
.pot-form textarea:focus,
.pot-full-field input:focus,
.pot-full-field textarea:focus {
    border-color: rgba(255, 255, 255, 0.54);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.pot-form option {
    color: var(--black);
}

.pot-check {
    display: flex !important;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
}

.pot-check input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    accent-color: var(--white);
}

.pot-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.pot-two-column.compact {
    align-items: start;
}

.pot-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.pot-button-grid form,
.pot-button-grid .button {
    width: 100%;
}

.compact-buttons {
    grid-template-columns: minmax(180px, 260px);
}

.pot-server-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.pot-server-list form {
    margin: 0;
}

.pot-server-list button {
    display: grid;
    width: 100%;
    min-height: 78px;
    gap: 6px;
    align-content: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.045);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.pot-server-list button:hover,
.pot-server-list .is-selected button {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.pot-server-list span {
    font-weight: 900;
    overflow-wrap: anywhere;
}

.pot-server-list strong {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.pot-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.pot-result-grid div {
    display: grid;
    gap: 8px;
    min-height: 74px;
    align-content: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
}

.pot-result-grid code {
    color: var(--white);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.pot-output-note {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.pot-code {
    max-height: 420px;
    margin: 0;
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.42);
    color: var(--white);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: stretch;
    gap: 16px;
    margin-bottom: 22px;
}

.premium-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 16px;
    min-height: 520px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 40%),
        rgba(10, 10, 10, 0.8);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    transform: translateY(0);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.premium-card::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.12) 46%, transparent 66%);
    opacity: 0;
    transform: translateX(-65%);
    transition: opacity 220ms ease;
}

.premium-card:hover,
.premium-card:focus-within {
    border-color: rgba(255, 255, 255, 0.38);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.068), transparent 42%),
        rgba(12, 12, 12, 0.88);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    transform: translateY(-6px);
}

.premium-card:hover::before,
.premium-card:focus-within::before {
    opacity: 0.75;
    animation: premiumSweep 1050ms ease forwards;
}

.premium-card.is-featured {
    border-color: rgba(188, 255, 214, 0.36);
    background:
        linear-gradient(135deg, rgba(188, 255, 214, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent 46%),
        rgba(10, 10, 10, 0.84);
}

.premium-card.is-featured::after {
    position: absolute;
    top: 16px;
    right: 16px;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid rgba(188, 255, 214, 0.3);
    border-radius: 999px;
    background: rgba(188, 255, 214, 0.08);
    color: var(--white);
    content: "Mas completo";
    font-size: 0.72rem;
    font-weight: 850;
}

.premium-grid .premium-card:nth-child(1) {
    animation: premiumCardIn 540ms ease both;
}

.premium-grid .premium-card:nth-child(2) {
    animation: premiumCardIn 540ms 80ms ease both;
}

.premium-grid .premium-card:nth-child(3) {
    animation: premiumCardIn 540ms 160ms ease both;
}

.premium-grid .premium-card:nth-child(4) {
    animation: premiumCardIn 540ms 240ms ease both;
}

.premium-card-head {
    display: grid;
    min-height: 170px;
    gap: 8px;
    align-content: start;
}

.premium-card.is-featured .premium-card-head {
    padding-right: 96px;
}

.premium-card-head span,
.premium-policy-list li::marker,
.premium-feature-list li::marker {
    color: var(--muted);
}

.premium-card-head span,
.premium-method-callout span {
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.premium-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.premium-card p,
.premium-card li,
.premium-method-callout p,
.premium-payment-item span,
.premium-step-list p {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.6;
}

.premium-price {
    display: inline-flex;
    min-height: 46px;
    align-items: baseline;
    gap: 7px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--white);
    font-size: 1.38rem;
}

.premium-price small {
    color: var(--muted);
    font-size: 0.82rem;
}

.premium-feature-list,
.premium-policy-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.premium-card-action {
    display: grid;
    align-self: end;
    gap: 10px;
    padding-top: 4px;
}

.premium-card-action .button,
.premium-buy-form .button,
.premium-method-callout .button,
.premium-proof-panel .button {
    width: 100%;
}

.premium-payment-list,
.premium-step-list {
    display: grid;
    gap: 12px;
}

.premium-payment-item,
.premium-step-list p,
.premium-method-callout {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
}

.premium-payment-item strong,
.premium-method-callout strong {
    color: var(--white);
}

.premium-step-list p {
    grid-template-columns: 32px 1fr;
    align-items: center;
}

.premium-step-list span {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 900;
}

.premium-buy-form {
    display: grid;
    gap: 10px;
    margin: 0;
}

.premium-buy-form label {
    display: grid;
    gap: 8px;
}

.premium-buy-form label span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.premium-buy-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.premium-buy-form select:focus {
    border-color: rgba(255, 255, 255, 0.54);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.premium-buy-form option {
    color: var(--black);
}

.premium-checkout-grid {
    align-items: stretch;
}

.premium-checkout-summary,
.premium-proof-panel {
    min-height: 100%;
}

.premium-method-callout {
    gap: 14px;
    background:
        linear-gradient(135deg, rgba(188, 255, 214, 0.07), transparent 48%),
        rgba(255, 255, 255, 0.045);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: var(--page);
    margin: 0 auto;
    padding: 24px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.reveal {
    transform: translateY(22px);
    opacity: 0;
    transition: transform 720ms ease, opacity 720ms ease;
}

.reveal.is-visible {
    transform: translateY(0);
    opacity: 1;
}

@keyframes ambientShift {
    from {
        opacity: 0.66;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, -26px, 0);
    }
}

@keyframes pageGridFlow {
    from {
        background-position: 0 0, 0 0, 50% 0, 0 0;
    }
    to {
        background-position: 88px 44px, -44px 88px, 52% 26px, 0 0;
    }
}

@keyframes backdropSweep {
    from {
        opacity: 0.32;
        transform: translate3d(-7%, 1%, 0) rotate(0.001deg);
    }
    to {
        opacity: 0.58;
        transform: translate3d(6%, -2%, 0) rotate(0.001deg);
    }
}

@keyframes lightRail {
    from {
        transform: translateX(-28%) rotate(-10deg);
    }
    to {
        transform: translateX(28%) rotate(-10deg);
    }
}

@keyframes gridDrift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 42px 42px;
    }
}

@keyframes premiumCardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes premiumSweep {
    from {
        transform: translateX(-70%);
    }
    to {
        transform: translateX(74%);
    }
}

@keyframes imagePulse {
    from {
        transform: scale(1.04) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.1) translate3d(-1.2%, 1%, 0);
    }
}

@keyframes shootStar {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(-28deg) scaleX(0.35);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--travel-x, -360px), var(--travel-y, 220px), 0) rotate(-28deg) scaleX(1);
    }
}

@keyframes fallStar {
    0% {
        opacity: 0;
        transform: translate3d(0, -8vh, 0);
    }
    12% {
        opacity: 0.82;
    }
    88% {
        opacity: 0.72;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift, 42px), 108vh, 0);
    }
}

@keyframes loadMeter {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1100px) {
    .landing-hero,
    .about-hero {
        gap: 58px;
    }

    .skill-grid,
    .highlight-grid,
    .personal-grid,
    .bot-grid,
    .wiki-grid,
    .vip-grid,
    .writing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bot-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .site-header {
        align-items: center;
        flex-direction: row;
        margin-top: 14px;
        padding: 12px;
    }

    .landing-hero,
    .about-hero,
    .resume-grid,
    .rules-panel,
    .observer-metrics,
    .observer-grid,
    .pot-two-column,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .landing-hero,
    .about-hero {
        min-height: auto;
        gap: 40px;
        padding-top: 54px;
        padding-bottom: 72px;
    }

    .landing-copy,
    .hero-copy {
        max-width: none;
    }

    .page-home .landing-hero {
        grid-template-columns: 1fr;
    }

    .community-stage,
    .bot-home-stage {
        min-height: 0;
        place-items: stretch;
    }

    h1 {
        font-size: 4.2rem;
    }

    h2 {
        font-size: 2.65rem;
    }

    .home-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-actions {
        justify-content: flex-start;
    }

    .premium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    :root {
        --page-gutter: 14px;
    }

    body {
        background-size: 56px 56px, 56px 56px, auto, auto;
    }

    .site-header {
        top: 10px;
        gap: 12px;
        margin-top: 10px;
    }

    .brand {
        min-width: 0;
        gap: 10px;
    }

    .brand-center {
        gap: 5px;
        min-width: 82px;
    }

    .brand-mark {
        --brand-box-size: 56px;
        --brand-avatar-size: 56px;
        --brand-decoration-size: 84px;
        --brand-avatar-clip: 50%;
    }

    .brand-name {
        max-width: 92px;
        font-size: 0.76rem;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-links {
        flex: 0 0 auto;
        flex-direction: column;
        gap: 6px;
    }

    .nav-left {
        align-items: flex-start;
    }

    .nav-right {
        align-items: flex-end;
    }

    .nav-right-shell {
        align-items: flex-end;
        flex-direction: column;
        gap: 6px;
    }

    .nav-links a {
        padding: 7px 8px;
        font-size: 0.74rem;
        line-height: 1;
    }

    .stats-band,
    .skill-grid,
    .highlight-grid,
    .personal-grid,
    .bot-grid,
    .bot-feature-grid,
    .wiki-grid,
    .vip-grid,
    .writing-grid,
    .social-row {
        grid-template-columns: 1fr;
    }

    .landing-hero,
    .about-hero {
        gap: 30px;
        padding-top: 38px;
        padding-bottom: 62px;
    }

    .content-section,
    .contact-section,
    .observer-shell,
    .pot-shell {
        padding-top: 92px;
    }

    h1 {
        max-width: 11ch;
        font-size: clamp(2.65rem, 12.4vw, 3.35rem);
        line-height: 1;
    }

    .about-hero h1 {
        max-width: 12ch;
        font-size: clamp(2.45rem, 11vw, 3.1rem);
    }

    h2 {
        font-size: 2.05rem;
    }

    .hero-summary {
        font-size: 1rem;
    }

    .community-stage {
        min-height: 0;
    }

    .page-home .landing-copy h1 {
        max-width: 13ch;
    }

    .bot-home-visual,
    .bot-hero-card {
        min-height: 430px;
    }

    .community-panel {
        padding: 22px;
    }

    .community-mark {
        width: 58px;
        height: 58px;
        border-radius: 14px;
    }

    .community-mark img {
        width: 34px;
        height: 34px;
    }

    .community-topline {
        gap: 12px;
        margin-bottom: 22px;
    }

    .community-panel h2 {
        max-width: 10ch;
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .community-actions .button {
        width: 100%;
    }

    .community-actions > span {
        width: 100%;
        justify-content: center;
    }

    .translation-trigger {
        min-height: 32px;
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .translation-menu {
        right: 0;
    }

    .home-card,
    .about-panel,
    .observer-card,
    .pot-section,
    .pot-output,
    .premium-card,
    .resume-card,
    .skill-card,
    .project-card,
    .personal-card,
    .bot-card,
    .wiki-card,
    .vip-card,
    .writing-card,
    .highlight-card,
    .timeline {
        padding: 22px;
    }

    .vip-card.is-featured {
        grid-column: auto;
    }

    .home-card {
        min-height: 230px;
    }

    .stat {
        min-height: 112px;
        padding: 22px;
    }

    .stat strong {
        font-size: 2rem;
    }

    .button {
        width: 100%;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .observer-actions {
        justify-content: stretch;
    }

    .premium-grid {
        grid-template-columns: 1fr;
    }

    .premium-card {
        min-height: auto;
    }

    .premium-card-head {
        min-height: auto;
        padding-right: 0;
    }

    .premium-card.is-featured::after {
        position: static;
        justify-self: start;
        grid-row: 1;
    }

    .premium-step-list p {
        grid-template-columns: 28px 1fr;
    }

    .premium-step-list span {
        width: 28px;
        height: 28px;
    }

    .site-footer {
        flex-direction: column;
    }

}

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

    .reveal,
    .button,
    .text-link,
    .home-card,
    .about-panel,
    .observer-card,
    .premium-card,
    .resume-card,
    .skill-card,
    .project-card,
    .personal-card,
    .bot-card,
    .writing-card,
    .highlight-card,
    .timeline {
        transition-duration: 0.01ms !important;
    }

    body,
    body::before,
    body::after,
    .motion-backdrop span {
        animation-duration: 28s !important;
    }

    .premium-card,
    .premium-card::before {
        animation: none !important;
    }

    .marquee {
        animation-duration: 60s !important;
    }
}
