:root {
    color-scheme: light;
    --ink: #18151f;
    --ink-soft: #4b4556;
    --paper: #fffaf0;
    --paper-2: #f3f7ff;
    --white: #ffffff;
    --line: #18151f;
    --red: #ff4f5e;
    --red-deep: #d7263d;
    --yellow: #ffd23f;
    --cyan: #33c7c9;
    --blue: #255fdf;
    --green: #37b26c;
    --violet: #7047d1;
    --shadow-hard: 7px 7px 0 #18151f;
    --shadow-soft: 0 18px 42px rgba(24, 21, 31, 0.16);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 1px 1px, rgba(24, 21, 31, 0.12) 1px, transparent 0) 0 0 / 18px 18px,
        linear-gradient(180deg, var(--paper), #fdf4df 42%, #f4fbff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.58;
    letter-spacing: 0;
}

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

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

a:hover {
    color: var(--red-deep);
}

button,
input,
textarea {
    font: inherit;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 40;
    transform: translateY(-150%);
    padding: 8px 12px;
    border: 2px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: var(--yellow);
    font-weight: 900;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px max(24px, calc((100vw - 1200px) / 2));
    border-bottom: 3px solid var(--line);
    background: rgba(255, 250, 240, 0.94);
    backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    font-weight: 950;
    font-size: 1.08rem;
    line-height: 1;
}

.brand span,
.footer-brand span {
    overflow-wrap: anywhere;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 11px;
    border: 2px solid transparent;
    border-radius: 7px;
    color: var(--ink-soft);
    font-weight: 900;
    line-height: 1.1;
}

.site-nav a:hover {
    color: var(--ink);
    border-color: var(--line);
    background: var(--white);
}

.site-nav .nav-cta {
    color: var(--ink);
    background: var(--yellow);
    border-color: var(--line);
    box-shadow: 3px 3px 0 var(--line);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 2px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 520px;
    height: min(640px, calc(100svh - 96px));
    overflow: hidden;
    border-bottom: 3px solid var(--line);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center right;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.88) 36%, rgba(255, 250, 240, 0.18) 68%),
        radial-gradient(circle at 18% 28%, rgba(255, 210, 63, 0.26), transparent 30%);
}

.hero-content {
    position: relative;
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0;
}

.hero-content h1 {
    max-width: 620px;
    margin: 0;
    font-size: 4.6rem;
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 590px;
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: 1.18rem;
    font-weight: 720;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 12px;
    padding: 5px 9px;
    border: 2px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: var(--cyan);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.hero-actions,
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 16px;
    border: 2px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 4px 4px 0 var(--line);
    font-weight: 950;
    line-height: 1.08;
    cursor: pointer;
}

.button:hover {
    color: var(--ink);
    transform: translate(1px, 1px);
    box-shadow: 3px 3px 0 var(--line);
}

.button-primary {
    color: var(--ink);
    background: var(--yellow);
}

.button-secondary {
    background: var(--white);
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 700px;
    margin-top: 28px;
}

.hero-metrics span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 10px;
    border: 2px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink-soft);
    font-weight: 900;
    line-height: 1.15;
}

.hero-metrics strong {
    color: var(--red-deep);
    font-size: 1.1rem;
}

.section {
    padding: 74px 0;
}

.section-muted {
    background:
        linear-gradient(135deg, rgba(51, 199, 201, 0.16), rgba(255, 210, 63, 0.16)),
        var(--paper-2);
    border-block: 3px solid var(--line);
}

.section-intro {
    padding-top: 48px;
}

.section-action {
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(24, 21, 31, 0.96), rgba(39, 34, 52, 0.96)),
        var(--ink);
    border-block: 3px solid var(--line);
}

.section-action .eyebrow {
    background: var(--red);
}

.section-action p,
.section-action h2 {
    color: var(--white);
}

.section-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.section-inner.narrow {
    width: min(780px, calc(100% - 48px));
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 54px;
    align-items: start;
}

.split h2,
.section-heading h2,
.page-hero h1,
.profile-summary h1 {
    margin: 0;
    font-size: 2.48rem;
    line-height: 1.06;
    letter-spacing: 0;
}

.split p,
.page-hero p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
    font-weight: 680;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.text-link {
    color: var(--red-deep);
    font-weight: 950;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.category-grid,
.profile-grid,
.feature-grid,
.article-grid,
.profile-details-grid,
.mode-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.category-tile,
.profile-card,
.feature-card,
.article-card,
.detail-panel,
.mode-card,
.empty-state {
    border: 3px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-hard);
}

.category-tile {
    min-height: 152px;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(255, 210, 63, 0.82), rgba(255, 255, 255, 0.96) 46%, rgba(51, 199, 201, 0.54)),
        var(--white);
}

.category-tile:nth-child(2n) {
    background:
        linear-gradient(135deg, rgba(255, 79, 94, 0.78), rgba(255, 255, 255, 0.96) 50%, rgba(37, 95, 223, 0.48)),
        var(--white);
}

.category-tile:nth-child(3n) {
    background:
        linear-gradient(135deg, rgba(55, 178, 108, 0.72), rgba(255, 255, 255, 0.96) 48%, rgba(255, 210, 63, 0.56)),
        var(--white);
}

.category-tile span {
    display: block;
    font-size: 1.2rem;
    font-weight: 950;
    line-height: 1.08;
}

.category-tile p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-weight: 720;
}

.profile-card {
    min-width: 0;
    overflow: hidden;
}

.profile-card-image {
    display: block;
    aspect-ratio: 4 / 5;
    border-bottom: 3px solid var(--line);
    background: var(--yellow);
}

.profile-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.profile-card-body {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 16px;
}

.compact-grid .profile-card-body {
    min-height: 150px;
}

.profile-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.profile-card h2,
.profile-card h3,
.article-card h2,
.article-card h3,
.feature-card h3,
.detail-panel h2,
.mode-card h2 {
    margin: 0;
    line-height: 1.14;
    letter-spacing: 0;
}

.profile-card h2,
.profile-card h3 {
    min-width: 0;
    font-size: 1.12rem;
}

.profile-card-topline span {
    flex: 0 1 45%;
    min-width: 84px;
    padding: 5px 7px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 950;
    line-height: 1.1;
    text-align: center;
    overflow-wrap: anywhere;
}

.profile-card p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
    font-weight: 650;
}

.profile-card .archetype {
    color: var(--red-deep);
    font-weight: 950;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 9px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: #e8fbfb;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.1;
}

.tag-row span:nth-child(2n) {
    background: #fff1a8;
}

.tag-row span:nth-child(3n) {
    background: #f4eaff;
}

.tag-row.large span {
    padding: 8px 11px;
    font-size: 0.9rem;
}

.profile-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.card-action-link,
.card-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 10px;
    border: 2px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    color: var(--ink);
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

.card-action-link {
    background: var(--ink);
    color: var(--white);
}

.card-action-link:hover {
    color: var(--white);
    background: #312a40;
}

.card-action-button:hover {
    background: #e8fbfb;
}

.card-action-button.icon-only {
    flex: 0 0 38px;
    width: 38px;
    padding: 0;
}

.feature-card,
.article-card,
.detail-panel,
.mode-card {
    padding: 24px;
}

.feature-card img {
    margin-bottom: 18px;
}

.feature-card p,
.article-card p,
.detail-panel p,
.mode-card p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-weight: 650;
}

.article-card span {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 8px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--cyan);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.issue-button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.issue-chip {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border: 2px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 3px 3px 0 var(--line);
    font-weight: 950;
    line-height: 1.1;
}

.mode-card code {
    display: block;
    margin-top: 16px;
    padding: 12px;
    border: 2px solid var(--line);
    border-radius: 7px;
    background: #f4fbff;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    white-space: normal;
}

.page-hero {
    padding: 70px 0 48px;
    border-bottom: 3px solid var(--line);
    background:
        radial-gradient(circle at 1px 1px, rgba(24, 21, 31, 0.16) 1px, transparent 0) 0 0 / 16px 16px,
        linear-gradient(135deg, #fff4b8, #f4fbff 58%, #ffe4e8);
}

.page-hero.compact h1 {
    max-width: 900px;
}

.page-hero.compact p {
    max-width: 780px;
    margin-top: 14px;
}

.search-form {
    max-width: 780px;
    margin-top: 26px;
}

.search-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 950;
}

.search-form div {
    display: flex;
    gap: 10px;
}

.search-form input {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 3px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    color: var(--ink);
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.filter-links a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 10px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 950;
}

.filter-links a.is-active,
.filter-links a:hover {
    color: var(--ink);
    background: var(--yellow);
}

.profile-hero {
    padding: 52px 0 64px;
    border-bottom: 3px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 210, 63, 0.28), rgba(51, 199, 201, 0.18)),
        var(--paper);
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    gap: 50px;
    align-items: start;
}

.profile-media {
    min-width: 0;
}

.profile-main-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--line);
    border-radius: var(--radius);
    background: var(--yellow);
    box-shadow: var(--shadow-hard);
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.gallery-strip button {
    padding: 0;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 7px;
    background: var(--white);
    cursor: pointer;
}

.gallery-strip button:focus,
.gallery-strip button:hover,
.gallery-strip button.is-active {
    border-color: var(--red);
}

.gallery-strip img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-weight: 900;
}

.breadcrumbs a {
    color: var(--red-deep);
}

.profile-summary h1 {
    font-size: 3.35rem;
}

.profile-tagline {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 1.16rem;
    font-weight: 720;
}

.profile-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.profile-facts span {
    padding: 7px 10px;
    border: 2px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    font-weight: 950;
    line-height: 1.1;
}

.profile-summary > p:not(.eyebrow):not(.profile-tagline) {
    color: var(--ink-soft);
    font-weight: 680;
}

blockquote {
    margin: 24px 0 0;
    padding: 18px 20px;
    border: 3px solid var(--line);
    border-left-width: 10px;
    border-radius: 0 8px 8px 0;
    background: var(--yellow);
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 850;
}

.detail-list {
    margin: 18px 0 0;
}

.detail-list div {
    padding: 16px 0;
    border-top: 2px solid rgba(24, 21, 31, 0.2);
}

.detail-list dt {
    color: var(--ink);
    font-weight: 950;
}

.detail-list dd {
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-weight: 650;
}

.text-stack p + p {
    margin-top: 18px;
}

.safety-note {
    padding: 16px 18px;
    border: 3px solid var(--line);
    border-radius: 8px;
    background: #e8fbfb;
    font-weight: 850;
}

.prose {
    color: var(--ink-soft);
    font-size: 1.05rem;
    font-weight: 650;
}

.prose h2 {
    margin: 34px 0 8px;
    color: var(--ink);
    font-size: 1.55rem;
    line-height: 1.16;
    letter-spacing: 0;
}

.prose p {
    margin: 16px 0;
}

.prose ul {
    margin: 16px 0;
    padding-left: 22px;
}

.prose li + li {
    margin-top: 8px;
}

.empty-state {
    max-width: 620px;
    margin: 34px auto 0;
    padding: 28px;
    text-align: center;
}

.site-footer {
    padding: 48px 0;
    color: #f5f1ff;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.14) 1px, transparent 0) 0 0 / 18px 18px,
        var(--ink);
}

.footer-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
}

.footer-brand {
    color: var(--white);
}

.site-footer p {
    max-width: 600px;
    margin: 12px 0 0;
    color: #ded8ee;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px 18px;
}

.footer-links a {
    color: #f5f1ff;
    font-weight: 900;
}

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

.vgf-chat-window {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(430px, calc(100vw - 44px));
    height: min(690px, calc(100svh - 44px));
    overflow: hidden;
    border: 3px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 8px 8px 0 var(--line), 0 24px 70px rgba(24, 21, 31, 0.24);
    transform: translateY(18px);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.vgf-chat-window[hidden],
.vgf-chat-rail[hidden],
.vgf-callbar[hidden] {
    display: none;
}

.vgf-chat-window.is-open {
    transform: translateY(0);
    opacity: 1;
}

.vgf-chat-window.is-max {
    inset: 86px 28px 28px auto;
    width: min(780px, calc(100vw - 56px));
    height: calc(100svh - 114px);
}

.vgf-chat-head {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 12px;
    color: var(--white);
    background: var(--ink);
    border-bottom: 3px solid var(--line);
}

.vgf-chat-avatar,
.vgf-rail-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--yellow);
}

.vgf-chat-avatar {
    width: 46px;
    height: 46px;
    padding: 0;
    cursor: pointer;
}

.vgf-chat-avatar img,
.vgf-rail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.vgf-avatar-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--ink);
    background: var(--yellow);
    font-weight: 950;
}

.vgf-chat-title {
    min-width: 0;
    padding: 0;
    border: 0;
    color: var(--white);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.vgf-chat-name,
.vgf-rail-copy span {
    display: block;
    overflow: hidden;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vgf-chat-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 850;
}

.vgf-chat-archetype {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(55, 178, 108, 0.2);
}

.vgf-chat-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vgf-tool,
.vgf-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 7px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.vgf-tool:hover {
    background: rgba(255, 255, 255, 0.2);
}

.vgf-callbar {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 3px solid var(--line);
    background: #e8fbfb;
}

.vgf-call-status {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 900;
}

.vgf-call-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vgf-call-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
}

.vgf-callbar.is-live .vgf-call-dot {
    background: var(--green);
}

.vgf-call-timer {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    font-weight: 950;
}

.vgf-call-mute,
.vgf-call-end {
    min-height: 32px;
    padding: 6px 9px;
    border: 2px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 950;
    cursor: pointer;
}

.vgf-call-end {
    color: var(--white);
    background: var(--red-deep);
}

.vgf-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 14px;
    background:
        radial-gradient(circle at 1px 1px, rgba(24, 21, 31, 0.08) 1px, transparent 0) 0 0 / 16px 16px,
        var(--paper);
}

.vgf-message {
    display: flex;
    margin-bottom: 12px;
}

.vgf-message-user {
    justify-content: flex-end;
}

.vgf-bubble {
    max-width: min(84%, 560px);
    padding: 11px 13px;
    border: 2px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 3px 3px 0 var(--line);
}

.vgf-message-user .vgf-bubble {
    color: var(--ink);
    background: var(--yellow);
}

.vgf-bubble p {
    margin: 0;
}

.vgf-bubble p + p {
    margin-top: 10px;
}

.vgf-bubble code {
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(51, 199, 201, 0.18);
}

.vgf-chat-error {
    color: var(--red-deep);
    font-weight: 900;
}

.vgf-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.vgf-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    animation: vgf-bounce 900ms infinite ease-in-out;
}

.vgf-dots i:nth-child(2) {
    animation-delay: 140ms;
}

.vgf-dots i:nth-child(3) {
    animation-delay: 280ms;
}

@keyframes vgf-bounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.45;
    }

    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.vgf-composer {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 9px;
    align-items: end;
    padding: 12px;
    border-top: 3px solid var(--line);
    background: var(--white);
}

.vgf-composer textarea {
    width: 100%;
    min-height: 44px;
    max-height: 96px;
    resize: none;
    padding: 11px 12px;
    border: 2px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.35;
}

.vgf-composer textarea:focus,
.vgf-key-field input:focus,
.search-form input:focus {
    outline: 3px solid rgba(51, 199, 201, 0.3);
}

.vgf-send {
    width: 44px;
    height: 44px;
    color: var(--ink);
    background: var(--yellow);
    border-color: var(--line);
}

.vgf-chat-rail {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 70;
    width: 230px;
    overflow: hidden;
    border: 3px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 5px 5px 0 var(--line);
}

.vgf-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 0;
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    background: var(--yellow);
    font-weight: 950;
    cursor: pointer;
}

.vgf-rail-head strong {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    color: var(--white);
    background: var(--red-deep);
    font-size: 0.78rem;
}

.vgf-rail-list {
    max-height: 420px;
    overflow: auto;
    padding: 7px;
}

.vgf-rail-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.vgf-rail-item:hover,
.vgf-rail-item.is-active {
    background: #e8fbfb;
}

.vgf-rail-avatar {
    width: 38px;
    height: 38px;
}

.vgf-rail-copy {
    min-width: 0;
}

.vgf-rail-copy small {
    display: block;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vgf-chat-rail.is-collapsed {
    width: 58px;
}

.vgf-chat-rail.is-collapsed .vgf-rail-head span,
.vgf-chat-rail.is-collapsed .vgf-rail-list {
    display: none;
}

.vgf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(24, 21, 31, 0.58);
}

.vgf-modal {
    width: min(460px, 100%);
    max-height: calc(100svh - 44px);
    overflow: auto;
    padding: 22px;
    border: 3px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 7px 7px 0 var(--line), 0 28px 80px rgba(24, 21, 31, 0.3);
}

.vgf-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.vgf-modal-head h2 {
    margin: 0;
    font-size: 1.38rem;
    line-height: 1.1;
}

.vgf-modal-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

.vgf-modal-copy,
.vgf-modal-fine {
    margin: 0;
    color: var(--ink-soft);
    font-weight: 650;
}

.vgf-modal-fine {
    margin-top: 14px;
    font-size: 0.88rem;
}

.vgf-modal-fine a {
    color: var(--red-deep);
    font-weight: 950;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vgf-key-field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    font-weight: 950;
}

.vgf-key-status {
    padding: 8px 10px;
    border: 2px solid var(--line);
    border-radius: 7px;
    color: var(--ink-soft);
    background: #f4fbff;
    font-size: 0.9rem;
}

.vgf-key-status.is-saved {
    color: var(--ink);
    background: #e8fbfb;
}

.vgf-key-field input {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 2px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: var(--paper);
}

.vgf-modal-actions,
.vgf-call-choices {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.vgf-modal-actions {
    grid-template-columns: 1fr 1fr;
}

.vgf-call-choices button {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    text-align: left;
    cursor: pointer;
}

.vgf-call-choices button:hover {
    background: #e8fbfb;
}

.vgf-call-choices strong {
    font-size: 1rem;
}

.vgf-call-choices span {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

@media (max-width: 1040px) {
    .profile-grid,
    .directory-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 920px) {
    .site-header {
        min-height: 64px;
        padding: 11px 18px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 18px;
        right: 18px;
        display: none;
        padding: 10px;
        border: 3px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow-hard);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        justify-content: space-between;
    }

    .hero {
        min-height: 550px;
        height: calc(100svh - 90px);
        background-position: 64% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.9) 58%, rgba(255, 250, 240, 0.48) 100%);
    }

    .hero-content {
        width: min(100% - 36px, 760px);
        padding: 46px 0;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .hero-copy {
        font-size: 1.04rem;
    }

    .split,
    .profile-layout,
    .profile-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .profile-summary h1,
    .split h2,
    .section-heading h2,
    .page-hero h1 {
        font-size: 2.14rem;
    }

    .section {
        padding: 58px 0;
    }

    .vgf-chat-window,
    .vgf-chat-window.is-max {
        inset: auto 14px 14px 14px;
        width: auto;
        height: min(690px, calc(100svh - 28px));
    }

    .vgf-chat-rail {
        left: 14px;
        right: 14px;
        bottom: 14px;
        width: auto;
    }

    .has-vgf-chat-open .vgf-chat-rail {
        display: none;
    }
}

@media (max-width: 640px) {
    .section-inner,
    .section-inner.narrow,
    .footer-inner {
        width: min(100% - 32px, 560px);
    }

    .hero {
        min-height: 560px;
        height: calc(100svh - 82px);
    }

    .hero-content {
        width: min(100% - 32px, 560px);
    }

    .hero-content h1 {
        font-size: 2.46rem;
    }

    .hero-actions,
    .profile-actions,
    .search-form div {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .profile-grid,
    .directory-grid,
    .category-grid,
    .feature-grid,
    .article-grid,
    .mode-grid {
        grid-template-columns: 1fr;
    }

    .profile-card-body {
        min-height: 0;
    }

    .profile-main-image {
        max-height: 640px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .profile-card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr 42px;
    }

    .compact-grid .profile-card-actions {
        grid-template-columns: 1fr 1fr;
    }

    .card-action-link,
    .card-action-button {
        min-width: 0;
    }

    .vgf-chat-head {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px;
    }

    .vgf-chat-avatar {
        width: 40px;
        height: 40px;
    }

    .vgf-chat-tools {
        gap: 2px;
    }

    .vgf-tool {
        width: 32px;
        height: 32px;
    }

    .vgf-tool.vgf-clear,
    .vgf-tool.vgf-max {
        display: none;
    }

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

    .vgf-call-mute,
    .vgf-call-end {
        grid-row: 2;
    }

    .vgf-call-end {
        justify-self: end;
    }

    .vgf-bubble {
        max-width: 90%;
    }

    .vgf-modal-actions {
        grid-template-columns: 1fr;
    }
}
