:root {
    color-scheme: light;
    --ink: #120a1a;
    --ink-soft: #5c4d6e;
    --paper: #faf7fc;
    --cream: #f3ebfa;
    --line: #e2d4ef;
    --coral: #ff2d8a;
    --coral-deep: #d4006e;
    --teal: #7c3aed;
    --sage: #ede5fb;
    --plum: #5b21b6;
    --gold: #f59e0b;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(91, 33, 182, 0.14);
    --radius: 12px;
    --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
    --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
    --gradient-brand: linear-gradient(135deg, #ff2d8a 0%, #7c3aed 55%, #5b21b6 100%);
    --gradient-hero: linear-gradient(115deg, rgba(250, 247, 252, 0.97) 0%, rgba(243, 235, 250, 0.9) 38%, rgba(250, 247, 252, 0.2) 72%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    letter-spacing: 0;
}

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

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

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

button,
input {
    font: inherit;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 20;
    transform: translateY(-160%);
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--white);
    background: var(--ink);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px max(24px, calc((100vw - 1180px) / 2));
    background: rgba(250, 247, 252, 0.9);
    border-bottom: 1px solid rgba(226, 212, 239, 0.9);
    backdrop-filter: blur(16px);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0.55;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-text small {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--coral-deep);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.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 12px;
    border-radius: 6px;
    color: var(--ink-soft);
    font-weight: 700;
}

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

.site-nav .nav-cta {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
}

.nav-my-gfs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--coral), var(--plum));
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.nav-my-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-profile-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--plum));
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.page-hero-note,
.my-profile-bridge,
.relationship-profile-link {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.my-profile-bridge {
    margin-top: 4px;
}

.fgf-toast-stack {
    position: fixed;
    top: 84px;
    right: 16px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(320px, calc(100vw - 32px));
    pointer-events: none;
}

.fgf-toast {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    transform: translateX(16px);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.fgf-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.fgf-toast strong {
    color: var(--ink);
    font-size: 0.92rem;
}

.fgf-toast span {
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.fgf-toast-xp {
    border-color: rgba(47, 125, 122, 0.28);
    background: linear-gradient(180deg, rgba(47, 125, 122, 0.08), rgba(255, 255, 255, 0.98));
}

.fgf-toast-quest,
.fgf-toast-achievement,
.fgf-toast-level {
    border-color: rgba(198, 90, 74, 0.28);
    background: linear-gradient(180deg, rgba(198, 90, 74, 0.08), rgba(255, 255, 255, 0.98));
}

.fgf-toast-daily,
.fgf-toast-streak {
    border-color: rgba(107, 76, 122, 0.28);
    background: linear-gradient(180deg, rgba(107, 76, 122, 0.08), rgba(255, 255, 255, 0.98));
}

.gamify-dashboard {
    display: grid;
    gap: 18px;
}

.gamify-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gamify-panel,
.relationship-daily-quests {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.relationship-daily-quests {
    margin-top: 14px;
}

.quest-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.quest-panel-head h3 {
    margin: 4px 0 0;
    font-size: 1.2rem;
}

.quest-reset {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.quest-grid,
.achievement-grid {
    display: grid;
    gap: 10px;
}

.quest-card,
.achievement-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(19, 47, 53, 0.08);
    background: var(--cream);
}

.quest-card.is-done,
.achievement-card.is-unlocked {
    border-color: rgba(47, 125, 122, 0.28);
    background: rgba(47, 125, 122, 0.08);
}

.quest-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.quest-card-head strong {
    font-size: 0.9rem;
}

.quest-card-head span,
.quest-card small {
    color: var(--coral-deep);
    font-size: 0.76rem;
    font-weight: 900;
}

.quest-meter {
    height: 6px;
    border-radius: 999px;
    background: rgba(19, 47, 53, 0.08);
    overflow: hidden;
}

.quest-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--coral));
}

.achievement-card {
    grid-template-columns: 34px 1fr;
    align-items: start;
}

.achievement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--white);
    color: var(--coral-deep);
    font-size: 1rem;
    font-weight: 900;
}

.achievement-card.is-unlocked .achievement-icon {
    background: var(--teal);
    color: var(--white);
}

.achievement-card strong {
    display: block;
    font-size: 0.92rem;
}

.achievement-card p {
    margin: 4px 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.achievement-card small {
    color: var(--coral-deep);
    font-size: 0.74rem;
    font-weight: 900;
}

.account-summary-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(47, 125, 122, 0.08), rgba(255, 255, 255, 0.98));
}

.account-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.account-summary-top h3 {
    margin: 4px 0 0;
}

.account-login-streak {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--white);
    color: var(--plum);
    font-size: 0.78rem;
    font-weight: 900;
}

.account-meter {
    margin-bottom: 8px;
}

.account-summary-meta {
    margin: 0 0 12px;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.account-summary-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.account-summary-stats strong {
    color: var(--ink);
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px 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;
    min-height: 560px;
    height: calc(100svh - 210px);
    max-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center right;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-glow {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 55%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 45, 138, 0.18) 0%, transparent 68%);
    pointer-events: none;
}

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

.hero-content h1 {
    max-width: 620px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-badge {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gradient-brand);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 560px;
    margin: 22px 0 0;
    font-size: 1.24rem;
    color: var(--ink-soft);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--coral-deep);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
}

.button-primary {
    color: var(--white);
    background: var(--gradient-brand);
    box-shadow: 0 8px 24px rgba(255, 45, 138, 0.28);
}

.button-primary img {
    filter: invert(1);
}

.button-primary:hover {
    color: var(--white);
    filter: brightness(1.06);
}

.button-large {
    min-height: 52px;
    padding: 14px 22px;
    font-size: 1.05rem;
}

.button-secondary {
    color: var(--ink);
    background: var(--white);
    border-color: var(--line);
}

.button-secondary:hover {
    color: var(--ink);
    background: var(--cream);
}

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

.hero-metrics span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(19, 47, 53, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
    font-weight: 700;
}

.hero-metrics strong {
    color: var(--ink);
    font-size: 1.15rem;
}

.section {
    padding: 76px 0;
}

.section-muted {
    background: #f5efe9;
}

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

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

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

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

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

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

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

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

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

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

.profile-card,
.feature-card,
.article-card,
.detail-panel,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(19, 47, 53, 0.06);
}

.profile-card {
    overflow: hidden;
}

.profile-card-image {
    display: block;
    aspect-ratio: 3 / 4;
    background: var(--sage);
}

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

.profile-card-body {
    padding: 18px;
}

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

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

.profile-card h2,
.profile-card h3 {
    font-size: 1.24rem;
}

.profile-card-topline span {
    min-width: 38px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--plum);
    font-weight: 900;
    text-align: center;
}

.profile-card p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

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

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef7f4;
    color: #1a6058;
    font-size: 0.86rem;
    font-weight: 800;
}

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

.wife-skill-tags {
    margin-top: 10px;
}

.wife-skill-tags.compact {
    margin-top: 8px;
}

.wife-skill-tags span {
    background: #fff4ec;
    color: #8a4b2d;
    border: 1px solid #f2d8c8;
}

.partner-want-tags {
    margin-top: 10px;
}

.partner-want-tags.compact {
    margin-top: 8px;
}

.partner-want-tags span {
    background: #eef4ff;
    color: #2f4f8a;
    border: 1px solid #cddcf5;
}

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

.fgf-feedback-preference {
    display: block;
    margin-top: 4px;
    color: #2f4f8a;
}

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

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

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

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

.card-action-button:hover {
    background: var(--cream);
}

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

.card-action-button img,
.card-action-link img {
    flex: 0 0 auto;
}

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

.feature-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

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

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

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

.article-card span {
    display: inline-flex;
    color: var(--coral-deep);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.page-hero {
    padding: 76px 0 52px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

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

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

.search-form {
    max-width: 760px;
    margin-top: 28px;
}

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

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

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

.profile-hero {
    padding: 52px 0 64px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 52px;
    align-items: start;
}

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

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

.gallery-main-wrap {
    position: relative;
}

.profile-mode-shortcuts {
    margin-top: 12px;
}

.profile-mode-shortcuts-kicker {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-mode-shortcuts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.profile-mode-chip:hover {
    border-color: rgba(192, 38, 211, 0.45);
    background: #fdf8fc;
    transform: translateY(-1px);
}

.profile-mode-chip:active {
    transform: translateY(0);
}

.profile-mode-emoji {
    font-size: 0.95rem;
    line-height: 1;
}

.gallery-thumb-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gallery-thumb-modes {
    display: grid;
    gap: 4px;
}

.profile-mode-chip-compact {
    width: 100%;
    justify-content: center;
    padding: 5px 6px;
    font-size: 0.64rem;
    border-radius: 7px;
}

.profile-mode-chip-compact .profile-mode-emoji {
    font-size: 0.82rem;
}

.gallery-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    border-radius: var(--radius);
    background: rgba(18, 16, 24, 0.62);
    color: var(--white);
    backdrop-filter: blur(2px);
}

.gallery-lock-overlay[hidden] {
    display: none;
}

.gallery-lock-icon {
    font-size: 1.6rem;
}

.gallery-lock-overlay strong {
    font-size: 1.05rem;
}

.gallery-lock-overlay p {
    margin: 0;
    max-width: 26ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

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

.gallery-unlock-note {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 700;
}

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

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

.gallery-strip button.is-locked {
    cursor: not-allowed;
}

.gallery-strip button.is-locked img {
    filter: blur(5px) saturate(0.75);
    transform: scale(1.04);
}

.gallery-thumb-lock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(18, 16, 24, 0.42);
    color: var(--white);
    font-weight: 800;
}

.gallery-thumb-lock small {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

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

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

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

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

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

.profile-facts > span {
    padding: 7px 10px;
    border-radius: 7px;
    background: var(--white);
    border: 1px solid var(--line);
    font-weight: 900;
}

.relationship-card {
    position: relative;
    overflow: hidden;
    margin: 22px 0 20px;
    padding: 18px;
    border: 1px solid rgba(239, 111, 97, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 243, 232, 0.9)),
        var(--white);
    box-shadow: 0 18px 38px rgba(19, 47, 53, 0.1);
}

.relationship-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(239, 111, 97, 0.12), transparent 34%),
        linear-gradient(135deg, transparent 0 64%, rgba(45, 183, 163, 0.13) 64% 100%);
}

.relationship-card > * {
    position: relative;
}

.relationship-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.relationship-kicker {
    margin: 0 0 4px;
    color: var(--coral-deep);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.relationship-top h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.32rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.relationship-level {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(45, 183, 163, 0.4);
    border-radius: 50%;
    color: var(--white);
    background:
        radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.38), transparent 30%),
        linear-gradient(135deg, var(--teal), var(--ink));
    box-shadow: 0 12px 24px rgba(45, 183, 163, 0.24);
    line-height: 1;
}

.relationship-level span {
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.relationship-level strong {
    margin-top: -3px;
    font-size: 1.52rem;
}

.relationship-meter {
    position: relative;
    height: 18px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid rgba(19, 47, 53, 0.12);
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg, rgba(19, 47, 53, 0.08) 0 1px, transparent 1px 20%),
        rgba(255, 255, 255, 0.82);
}

.relationship-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
    box-shadow: 0 0 22px rgba(45, 183, 163, 0.34);
    transition: width 360ms ease;
}

.relationship-meter i {
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent);
}

.relationship-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.relationship-bond-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 14px;
}

.bond-metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bond-metric-head strong {
    color: var(--plum);
    font-size: 0.92rem;
}

.bond-meter {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(91, 33, 182, 0.1);
    overflow: hidden;
}

.bond-meter-alt {
    background: rgba(236, 72, 153, 0.12);
}

.bond-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--plum), var(--coral));
    transition: width 240ms ease;
}

.bond-meter-alt span {
    background: linear-gradient(90deg, var(--coral), #f9a8d4);
}

.bond-meter-approval {
    background: rgba(245, 158, 11, 0.14);
}

.bond-meter-approval span {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.bond-tier {
    display: block;
    margin-top: 6px;
    color: var(--plum);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.section-connection {
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.4), rgba(236, 72, 153, 0.05));
}

.centered-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.connection-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.rel-history-intimacy strong,
.rel-history-connection strong {
    color: var(--plum);
}

.my-gfs-loading {
    color: var(--ink-soft);
    font-weight: 700;
}

.my-gfs-empty {
    text-align: center;
    padding: 42px 28px;
}

.my-gfs-empty img {
    margin-bottom: 16px;
    opacity: 0.72;
}

.my-gfs-empty h2 {
    margin: 0 0 10px;
}

.my-gfs-empty p {
    max-width: 520px;
    margin: 0 auto 22px;
    color: var(--ink-soft);
}

.my-gf-bond-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 10px 0 12px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.my-gf-bond-row strong {
    color: var(--plum);
}

.my-gf-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(160deg, rgba(236, 72, 153, 0.18), rgba(91, 33, 182, 0.16));
    font-size: 3rem;
    font-weight: 900;
    color: var(--plum);
}

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

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

.list-directory {
    display: grid;
    gap: 18px;
}

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

.list-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(19, 47, 53, 0.06);
}

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

.list-card h2,
.list-card h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.list-card p {
    margin: 0;
    color: var(--ink-soft);
}

.list-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    font-weight: 700;
    color: var(--plum);
}

.list-card-preview {
    display: flex;
    gap: 8px;
}

.list-card-preview img {
    width: 54px;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.list-description {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.65;
}

.list-count {
    color: var(--plum);
    font-weight: 800;
}

.list-profile-city {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.country-with-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
}

.country-flag {
    display: block;
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.country-flag-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    border-radius: 0;
}

.country-with-flag .country-name {
    line-height: 1.2;
}

.profile-facts > span .country-with-flag {
    gap: 6px;
}

.sims-trait-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.profile-summary .sims-trait-row {
    margin-top: 14px;
}

.profile-card-body .sims-trait-row {
    margin-top: 10px;
}

.detail-panel .sims-trait-row {
    margin: 0 0 14px;
}

.sims-trait {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 6px;
    border-radius: 6px;
    background: linear-gradient(180deg, #edf7ed 0%, #d9efd9 100%);
    border: 1px solid #8ecf8e;
    color: #1f5f2a;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.sims-trait-icon {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.sims-trait-label {
    white-space: nowrap;
}

.profile-identity-line {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.profile-card-body .profile-identity-line {
    margin-top: 6px;
    font-size: 0.84rem;
}

.identity-panel h3.identity-subheading {
    margin: 18px 0 10px;
    font-size: 0.95rem;
}

.identity-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.identity-tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4f7fb;
    border: 1px solid #d7e2f1;
    color: #2f4f8a;
    font-size: 0.84rem;
    font-weight: 800;
}

.identity-tags span {
    background: #f7fbf4;
    border-color: #d5e8cf;
    color: #2f5f2a;
}

.identity-facts + .identity-subheading {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.persona-section .persona-panel {
    max-width: 920px;
}

.persona-bio {
    margin: 0 0 18px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.persona-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.persona-fact-grid div {
    display: grid;
    gap: 4px;
}

.persona-fact-grid span {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.persona-fact-grid strong {
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.35;
}

.persona-callout {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
}

.persona-callout-icon {
    font-size: 1.1rem;
    line-height: 1.2;
}

.persona-callout strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.88rem;
}

.persona-callout p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.45;
}

.persona-appearance {
    margin: 18px 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.persona-appearance h3,
.persona-preference-grid h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.persona-appearance p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

.persona-stats {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 14px 0 4px;
    border-top: 1px solid var(--line);
}

.persona-stat {
    display: grid;
    grid-template-columns: 88px 1fr 28px;
    gap: 10px;
    align-items: center;
}

.persona-stat-label {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--ink);
}

.persona-stat-bar {
    height: 8px;
    border-radius: 999px;
    background: #e7edf2;
    overflow: hidden;
}

.persona-stat-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7ed6a5 0%, #2f9f5b 100%);
}

.persona-stat-value {
    text-align: right;
    font-size: 0.9rem;
    color: var(--ink);
}

.persona-panel .sims-trait-row {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.persona-trait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.persona-trait-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef7f4;
    color: #1a6058;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: lowercase;
}

.persona-preference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.persona-pref-tags span {
    background: #f7fbf4;
    border-color: #d5e8cf;
    color: #2f5f2a;
}

@media (max-width: 760px) {
    .persona-fact-grid,
    .persona-preference-grid {
        grid-template-columns: 1fr;
    }
}

.section-lead {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--ink-soft);
}

.relationship-stats,
.relationship-milestones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.relationship-stats span,
.relationship-milestones span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid rgba(19, 47, 53, 0.1);
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 900;
}

.relationship-stats strong {
    color: var(--ink);
    font-size: 0.96rem;
}

.relationship-milestones span {
    opacity: 0.58;
}

.relationship-milestones span.is-active {
    opacity: 1;
    color: #175f56;
    border-color: rgba(45, 183, 163, 0.32);
    background: #eef7f4;
}

.relationship-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(19, 47, 53, 0.08);
}

.relationship-gift-button {
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid rgba(239, 111, 97, 0.32);
    border-radius: 7px;
    color: var(--white);
    background: linear-gradient(135deg, var(--coral), var(--plum));
    box-shadow: 0 10px 22px rgba(239, 111, 97, 0.18);
    font-weight: 900;
    cursor: pointer;
}

.relationship-gift-button:hover {
    filter: brightness(0.98);
}

.relationship-actions span {
    min-width: 0;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.relationship-unlocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.rel-unlock {
    display: grid;
    gap: 4px;
    min-height: 106px;
    padding: 11px;
    border: 1px solid rgba(19, 47, 53, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--ink-soft);
    opacity: 0.66;
}

.rel-unlock.is-unlocked {
    color: var(--ink);
    border-color: rgba(45, 183, 163, 0.34);
    background: #f4fbf8;
    opacity: 1;
}

.rel-unlock span {
    color: var(--coral-deep);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rel-unlock strong {
    line-height: 1.12;
}

.rel-unlock small {
    color: inherit;
    font-size: 0.75rem;
    line-height: 1.3;
}

.relationship-history {
    margin-top: 14px;
}

.relationship-history h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.2;
}

.rel-history-empty {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.rel-history-item {
    display: grid;
    gap: 6px;
    padding: 10px 0;
    border-top: 1px solid rgba(19, 47, 53, 0.08);
}

.rel-history-item div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.rel-history-item strong {
    color: var(--ink);
    font-size: 0.9rem;
}

.rel-history-item small {
    flex: 0 0 auto;
    color: var(--coral-deep);
    font-size: 0.76rem;
    font-weight: 900;
}

.rel-history-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.45;
}

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

blockquote {
    margin: 24px 0 0;
    padding: 18px 20px;
    border-left: 4px solid var(--coral);
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-size: 1.04rem;
    font-weight: 700;
}

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

.detail-list div {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

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

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

.panel-intro {
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.detail-panel.soft {
    background: #fbfffb;
}

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

.safety-note {
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--cream);
    font-weight: 800;
}

.article-page .page-hero {
    padding-bottom: 62px;
}

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

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

.prose h3 {
    margin: 22px 0 6px;
    color: var(--plum);
    font-size: 1.08rem;
    line-height: 1.25;
}

.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: #d6e4e3;
    background: var(--ink);
}

.footer-inner {
    width: min(1180px, 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: 560px;
    margin: 12px 0 0;
}

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

.footer-links a {
    color: #d6e4e3;
    font-weight: 800;
}

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

.fgf-chat-window {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(420px, calc(100vw - 44px));
    height: min(680px, calc(100svh - 44px));
    overflow: hidden;
    border: 1px solid rgba(234, 216, 204, 0.95);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 26px 70px rgba(19, 47, 53, 0.24);
    transform: translateY(18px);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.fgf-chat-window[hidden] {
    display: none;
}

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

.fgf-chat-window.is-max {
    inset: 82px 28px 28px auto;
    width: min(760px, calc(100vw - 56px));
    height: calc(100svh - 110px);
}

.fgf-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: linear-gradient(135deg, var(--ink), var(--plum));
}

.fgf-chat-avatar,
.fgf-rail-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: var(--cream);
}

.fgf-chat-avatar {
    width: 46px;
    height: 46px;
    cursor: pointer;
}

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

.fgf-avatar-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--white);
    background: var(--coral);
    font-weight: 900;
}

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

.fgf-chat-name {
    display: block;
    overflow: hidden;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fgf-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: 800;
}

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

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #44d17a;
    box-shadow: 0 0 0 3px rgba(68, 209, 122, 0.18);
}

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

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

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

.fgf-tool.fgf-modes-toggle {
    position: relative;
}

.fgf-tool.fgf-modes-toggle.is-active {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.fgf-modes-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #44d17a;
    box-shadow: 0 0 0 2px rgba(19, 47, 53, 0.35);
    pointer-events: none;
}

.fgf-modes-sheet {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fgf-modes-sheet[hidden] {
    display: none;
}

.fgf-modes-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(19, 47, 53, 0.42);
    cursor: pointer;
}

.fgf-modes-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-height: min(78%, 520px);
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: var(--white);
    box-shadow: 0 -10px 40px rgba(19, 47, 53, 0.18);
}

.fgf-modes-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--line);
}

.fgf-modes-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.fgf-modes-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
}

.fgf-modes-close:hover {
    background: #f8f1eb;
}

.fgf-modes-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 8px 12px 16px;
}

.fgf-modes-section + .fgf-modes-section {
    margin-top: 12px;
}

.fgf-modes-section h4 {
    margin: 0 0 6px;
    padding: 0 4px;
    color: var(--muted, #64748b);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fgf-modes-list {
    display: grid;
    gap: 6px;
}

.fgf-modes-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}

.fgf-modes-item:hover {
    border-color: rgba(192, 38, 211, 0.35);
    background: #fdf8fc;
}

.fgf-modes-item.is-active {
    border-color: rgba(192, 38, 211, 0.55);
    background: #fdf2fb;
    box-shadow: inset 0 0 0 1px rgba(192, 38, 211, 0.2);
}

.fgf-modes-item.is-configured:not(.is-active) {
    border-color: rgba(68, 209, 122, 0.45);
}

.fgf-modes-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--plum);
    background: #f8f1eb;
}

.fgf-modes-item.is-active .fgf-modes-item-icon {
    color: var(--white);
    background: linear-gradient(135deg, var(--plum), #c026d3);
}

.fgf-modes-item-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.fgf-modes-item-label {
    font-weight: 900;
    line-height: 1.2;
}

.fgf-modes-item-hint {
    color: var(--muted, #64748b);
    font-size: 0.78rem;
    line-height: 1.35;
}

.fgf-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: 1px solid var(--line);
    background: #f8f1eb;
}

.fgf-callbar[hidden] {
    display: none;
}

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

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

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

.fgf-callbar.is-live .fgf-call-dot {
    background: var(--teal);
}

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

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

.fgf-call-mute:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.fgf-call-end {
    color: var(--white);
    background: var(--coral-deep);
    border-color: var(--coral-deep);
}

.fgf-mood-bar {
    flex: 0 0 auto;
    padding: 10px 12px 11px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff8f2, #fffdfb);
}

.fgf-mood-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--ink-soft);
}

.fgf-mood-emoji {
    font-size: 1rem;
    line-height: 1;
}

.fgf-mood-label {
    color: var(--ink);
}

.fgf-mood-approval {
    margin-left: auto;
    color: #9a5b1f;
}

.fgf-mood-trend {
    color: var(--teal);
    font-size: 0.92rem;
}

.fgf-mood-meter {
    position: relative;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
}

.fgf-mood-meter span {
    display: block;
    height: 100%;
    width: 50%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width 220ms ease;
}

.fgf-chat-direction {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(234, 216, 204, 0.95);
}

.fgf-direction-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.fgf-direction-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
}

.fgf-direction-guide-link {
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.fgf-direction-guide-link:hover {
    text-decoration: underline;
}

.fgf-direction-hint {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.4;
}

.fgf-chat-direction-positive .fgf-direction-badge {
    border-color: rgba(45, 183, 163, 0.35);
    background: #f3fbf8;
}

.fgf-chat-direction-hot .fgf-direction-badge {
    border-color: rgba(245, 158, 11, 0.42);
    background: #fff7ed;
    color: #9a3412;
}

.fgf-chat-direction-caution .fgf-direction-badge {
    border-color: rgba(234, 179, 8, 0.35);
    background: #fffbeb;
}

.fgf-chat-direction-negative .fgf-direction-badge {
    border-color: rgba(236, 72, 153, 0.32);
    background: #fff5f8;
    color: #9d174d;
}

.fgf-goal-bar {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f5f0ff, #fffdfb);
}

.fgf-goal-bar[hidden] {
    display: none;
}

.fgf-chat-window.is-goal-game .fgf-goal-bar {
    background: linear-gradient(180deg, #ede8ff, #fff8f2);
}

.fgf-goal-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 0.78rem;
    font-weight: 900;
}

.fgf-goal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    background: var(--white);
    color: var(--ink);
}

.fgf-goal-level {
    margin-left: auto;
    color: #6d28d9;
}

.fgf-goal-delta {
    color: var(--teal);
    font-size: 0.72rem;
}

[class*="fgf-"][class*="-delta"].is-negative {
    color: #c53030;
}

[class*="fgf-"][class*="-delta"].is-positive {
    color: var(--teal);
}

.fgf-goal-end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.fgf-goal-meter {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.14);
}

.fgf-goal-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    transition: width 260ms ease;
}

.fgf-goal-hint {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
}

.fgf-goal-guide-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.fgf-goal-guide-link:hover {
    text-decoration: underline;
}

.fgf-goal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: min(52vh, 420px);
    overflow: auto;
    margin-top: 12px;
}

.fgf-goal-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, transform 140ms ease;
}

.fgf-goal-card:hover {
    border-color: rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

.fgf-goal-card-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.fgf-goal-card strong {
    font-size: 0.9rem;
}

.fgf-goal-card small {
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.rel-history-goal strong {
    color: #6d28d9;
}

.fgf-taming-bar {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff4f0, #fffdfb);
}

.fgf-taming-bar[hidden] {
    display: none;
}

.fgf-chat-window.is-taming-mode .fgf-taming-bar {
    background: linear-gradient(180deg, #ffe8e0, #fff8f2);
}

.fgf-taming-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 0.78rem;
    font-weight: 900;
}

.fgf-taming-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(190, 74, 58, 0.28);
    background: var(--white);
    color: var(--ink);
}

.fgf-taming-level {
    margin-left: auto;
    color: #b45309;
}

.fgf-taming-delta {
    color: var(--teal);
    font-size: 0.72rem;
}

.fgf-taming-end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.fgf-taming-meter {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(190, 74, 58, 0.14);
}

.fgf-taming-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #c2410c, #f59e0b);
    transition: width 260ms ease;
}

.fgf-taming-hint {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
}

.fgf-taming-guide-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.fgf-taming-guide-link:hover {
    text-decoration: underline;
}

.fgf-taming-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: min(52vh, 420px);
    overflow: auto;
    margin-top: 12px;
}

.fgf-taming-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, transform 140ms ease;
}

.fgf-taming-card:hover {
    border-color: rgba(190, 74, 58, 0.35);
    transform: translateY(-1px);
}

.fgf-taming-card-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.fgf-taming-card strong {
    font-size: 0.9rem;
}

.fgf-taming-card small {
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.rel-history-taming strong {
    color: #c2410c;
}

.fgf-catch-bar {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff0f6, #fffdfb);
}

.fgf-catch-bar[hidden] {
    display: none;
}

.fgf-chat-window.is-catch-mode .fgf-catch-bar {
    background: linear-gradient(180deg, #ffe4f1, #fff8f2);
}

.fgf-catch-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 0.78rem;
    font-weight: 900;
}

.fgf-catch-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(219, 39, 119, 0.28);
    background: var(--white);
    color: var(--ink);
}

.fgf-catch-level {
    margin-left: auto;
    color: #be185d;
}

.fgf-catch-delta {
    color: var(--teal);
    font-size: 0.72rem;
}

.fgf-catch-end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.fgf-catch-meter {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(219, 39, 119, 0.14);
}

.fgf-catch-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #db2777, #f472b6);
    transition: width 260ms ease;
}

.fgf-catch-hint {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
}

.fgf-catch-guide-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.fgf-catch-guide-link:hover {
    text-decoration: underline;
}

.fgf-catch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: min(52vh, 420px);
    overflow: auto;
    margin-top: 12px;
}

.fgf-catch-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, transform 140ms ease;
}

.fgf-catch-card:hover {
    border-color: rgba(219, 39, 119, 0.35);
    transform: translateY(-1px);
}

.fgf-catch-card-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.fgf-catch-card strong {
    font-size: 0.9rem;
}

.fgf-catch-card small {
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.rel-history-catch strong {
    color: #be185d;
}

.fgf-redemption-bar {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #ecfdf5, #fffdfb);
}

.fgf-redemption-bar[hidden] {
    display: none;
}

.fgf-chat-window.is-redemption-mode .fgf-redemption-bar {
    background: linear-gradient(180deg, #d1fae5, #fff8f2);
}

.fgf-redemption-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 0.78rem;
    font-weight: 900;
}

.fgf-redemption-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(5, 150, 105, 0.28);
    background: var(--white);
    color: var(--ink);
}

.fgf-redemption-level {
    margin-left: auto;
    color: #047857;
}

.fgf-redemption-delta {
    color: var(--teal);
    font-size: 0.72rem;
}

.fgf-redemption-end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.fgf-redemption-meter {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.14);
}

.fgf-redemption-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #059669, #34d399);
    transition: width 260ms ease;
}

.fgf-redemption-hint {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
}

.fgf-redemption-guide-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.fgf-redemption-guide-link:hover {
    text-decoration: underline;
}

.fgf-redemption-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: min(52vh, 420px);
    overflow: auto;
    margin-top: 12px;
}

.fgf-redemption-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, transform 140ms ease;
}

.fgf-redemption-card:hover {
    border-color: rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

.fgf-redemption-card-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.fgf-redemption-card strong {
    font-size: 0.9rem;
}

.fgf-redemption-card small {
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.rel-history-redemption strong {
    color: #047857;
}

.fgf-badgirl-bar {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fdf2f8, #fffdfb);
}

.fgf-badgirl-bar[hidden] {
    display: none;
}

.fgf-chat-window.is-badgirl-mode .fgf-badgirl-bar {
    background: linear-gradient(180deg, #fce7f3, #fff8f2);
}

.fgf-badgirl-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 0.78rem;
    font-weight: 900;
}

.fgf-badgirl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(157, 23, 77, 0.28);
    background: var(--white);
    color: var(--ink);
}

.fgf-badgirl-level {
    margin-left: auto;
    color: #9d174d;
}

.fgf-badgirl-delta {
    color: var(--teal);
    font-size: 0.72rem;
}

.fgf-badgirl-end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.fgf-badgirl-meter {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(157, 23, 77, 0.14);
}

.fgf-badgirl-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #9d174d, #ec4899);
    transition: width 260ms ease;
}

.fgf-badgirl-hint {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
}

.fgf-badgirl-guide-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.fgf-badgirl-guide-link:hover {
    text-decoration: underline;
}

.fgf-badgirl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: min(52vh, 420px);
    overflow: auto;
    margin-top: 12px;
}

.fgf-badgirl-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, transform 140ms ease;
}

.fgf-badgirl-card:hover {
    border-color: rgba(157, 23, 77, 0.35);
    transform: translateY(-1px);
}

.fgf-badgirl-card-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.fgf-badgirl-card strong {
    font-size: 0.9rem;
}

.fgf-badgirl-card small {
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.rel-history-badgirl strong {
    color: #9d174d;
}

.fgf-dynamics-bar {
    margin: 0 14px 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.28);
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
}

.fgf-dynamics-bar[hidden] {
    display: none !important;
}

.fgf-chat-window.is-dynamics-mode .fgf-dynamics-bar {
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);
}

.fgf-dynamics-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fgf-dynamics-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #4338ca;
}

.fgf-dynamics-level {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 800;
    color: #4f46e5;
}

.fgf-dynamics-delta {
    font-size: 0.76rem;
    font-weight: 800;
    color: #6366f1;
}

.fgf-dynamics-end {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}

.fgf-dynamics-end:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.fgf-dynamics-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.16);
    overflow: hidden;
}

.fgf-dynamics-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #818cf8, #6366f1);
    transition: width 240ms ease;
}

.fgf-dynamics-hint {
    margin: 8px 0 0;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink-soft);
}

.fgf-dynamics-guide-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #4f46e5;
    text-decoration: none;
}

.fgf-dynamics-guide-link:hover {
    text-decoration: underline;
}

.fgf-dynamics-type-grid,
.fgf-dynamics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    margin: 14px 0;
    max-height: 52vh;
    overflow: auto;
    padding-right: 4px;
}

.fgf-dynamics-type-card,
.fgf-dynamics-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fgf-dynamics-type-card:hover,
.fgf-dynamics-card:hover {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.fgf-dynamics-type-emoji,
.fgf-dynamics-card-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

.fgf-dynamics-type-card strong,
.fgf-dynamics-card strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.fgf-dynamics-type-card small,
.fgf-dynamics-card small {
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
}

.rel-history-dynamics strong {
    color: #4338ca;
}

.fgf-counseling-bar {
    margin: 0 14px 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(13, 148, 136, 0.28);
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
}

.fgf-counseling-bar[hidden] {
    display: none !important;
}

.fgf-chat-window.is-counseling-mode .fgf-counseling-bar {
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.12);
}

.fgf-counseling-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fgf-counseling-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f766e;
}

.fgf-counseling-level {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0d9488;
}

.fgf-counseling-delta {
    font-size: 0.76rem;
    font-weight: 800;
    color: #14b8a6;
}

.fgf-counseling-end {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}

.fgf-counseling-end:hover {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
}

.fgf-counseling-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.16);
    overflow: hidden;
}

.fgf-counseling-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #5eead4, #14b8a6);
    transition: width 240ms ease;
}

.fgf-counseling-hint {
    margin: 8px 0 0;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink-soft);
}

.fgf-counseling-guide-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0d9488;
    text-decoration: none;
}

.fgf-counseling-guide-link:hover {
    text-decoration: underline;
}

.fgf-counseling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    margin: 14px 0;
    max-height: 52vh;
    overflow: auto;
    padding-right: 4px;
}

.fgf-counseling-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fgf-counseling-card:hover {
    border-color: rgba(13, 148, 136, 0.45);
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.1);
    transform: translateY(-1px);
}

.fgf-counseling-card-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

.fgf-counseling-card strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.fgf-counseling-card small {
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
}

.rel-history-counseling strong {
    color: #0f766e;
}

.fgf-breakup-bar {
    margin: 0 14px 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(190, 24, 93, 0.24);
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 100%);
}

.fgf-breakup-bar[hidden] {
    display: none !important;
}

.fgf-chat-window.is-breakup-mode .fgf-breakup-bar,
.fgf-chat-window.is-broken-up .fgf-breakup-bar {
    box-shadow: 0 10px 24px rgba(190, 24, 93, 0.1);
}

.fgf-breakup-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fgf-breakup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #9d174d;
}

.fgf-breakup-level {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 800;
    color: #be185d;
}

.fgf-breakup-delta {
    font-size: 0.76rem;
    font-weight: 800;
    color: #db2777;
}

.fgf-breakup-end {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}

.fgf-breakup-end:hover {
    background: rgba(190, 24, 93, 0.1);
    color: #9d174d;
}

.fgf-breakup-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(190, 24, 93, 0.14);
    overflow: hidden;
}

.fgf-breakup-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #f472b6, #db2777);
    transition: width 240ms ease;
}

.fgf-breakup-hint {
    margin: 8px 0 0;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink-soft);
}

.fgf-breakup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.fgf-breakup-actions[hidden] {
    display: none !important;
}

.button-small {
    padding: 6px 10px;
    font-size: 0.76rem;
}

.fgf-breakup-guide-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #be185d;
    text-decoration: none;
}

.fgf-breakup-guide-link:hover {
    text-decoration: underline;
}

.fgf-breakup-type-grid,
.fgf-breakup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    margin: 14px 0;
    max-height: 52vh;
    overflow: auto;
    padding-right: 4px;
}

.fgf-breakup-type-card,
.fgf-breakup-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fgf-breakup-type-card:hover,
.fgf-breakup-card:hover {
    border-color: rgba(190, 24, 93, 0.4);
    box-shadow: 0 10px 22px rgba(190, 24, 93, 0.1);
    transform: translateY(-1px);
}

.fgf-breakup-type-emoji,
.fgf-breakup-card-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

.fgf-breakup-type-card strong,
.fgf-breakup-card strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.fgf-breakup-type-card small,
.fgf-breakup-card small {
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
}

.fgf-modal-warn {
    color: #9d174d !important;
    background: #fff1f2;
    border-radius: 8px;
    padding: 8px 10px;
}

.rel-history-breakup strong,
.rel-history-reconnect strong {
    color: #9d174d;
}

.fgf-hangout-bar {
    margin: 0 14px 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(234, 88, 12, 0.28);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
}

.fgf-hangout-bar[hidden] {
    display: none !important;
}

.fgf-chat-window.is-hangout-mode .fgf-hangout-bar {
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.12);
}

.fgf-hangout-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fgf-hangout-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #c2410c;
}

.fgf-hangout-level {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 800;
    color: #ea580c;
}

.fgf-hangout-delta {
    font-size: 0.76rem;
    font-weight: 800;
    color: #f97316;
}

.fgf-hangout-end {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}

.fgf-hangout-end:hover {
    background: rgba(234, 88, 12, 0.12);
    color: #c2410c;
}

.fgf-hangout-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.16);
    overflow: hidden;
}

.fgf-hangout-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #fdba74, #f97316);
    transition: width 240ms ease;
}

.fgf-hangout-hint {
    margin: 8px 0 0;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink-soft);
}

.fgf-hangout-guide-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #ea580c;
    text-decoration: none;
}

.fgf-hangout-guide-link:hover {
    text-decoration: underline;
}

.fgf-hangout-type-grid,
.fgf-hangout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    margin: 14px 0;
    max-height: 52vh;
    overflow: auto;
    padding-right: 4px;
}

.fgf-hangout-type-card,
.fgf-hangout-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fgf-hangout-type-card:hover,
.fgf-hangout-card:hover {
    border-color: rgba(234, 88, 12, 0.45);
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.1);
    transform: translateY(-1px);
}

.fgf-hangout-type-emoji,
.fgf-hangout-card-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

.fgf-hangout-type-card strong,
.fgf-hangout-card strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.fgf-hangout-type-card small,
.fgf-hangout-card small {
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
}

.rel-history-hangout strong {
    color: #c2410c;
}

.fgf-chill-bar {
    margin: 0 14px 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(120, 113, 108, 0.28);
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
}

.fgf-chill-bar[hidden] {
    display: none !important;
}

.fgf-chat-window.is-chill-mode .fgf-chill-bar {
    box-shadow: 0 10px 24px rgba(120, 113, 108, 0.1);
}

.fgf-chill-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fgf-chill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #57534e;
}

.fgf-chill-level {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 800;
    color: #78716c;
}

.fgf-chill-delta {
    font-size: 0.76rem;
    font-weight: 800;
    color: #a8a29e;
}

.fgf-chill-end {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}

.fgf-chill-end:hover {
    background: rgba(120, 113, 108, 0.12);
    color: #57534e;
}

.fgf-chill-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(120, 113, 108, 0.16);
    overflow: hidden;
}

.fgf-chill-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #d6d3d1, #a8a29e);
    transition: width 240ms ease;
}

.fgf-chill-hint {
    margin: 8px 0 0;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink-soft);
}

.fgf-chill-guide-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #78716c;
    text-decoration: none;
}

.fgf-chill-guide-link:hover {
    text-decoration: underline;
}

.fgf-chill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    margin: 14px 0;
    max-height: 52vh;
    overflow: auto;
    padding-right: 4px;
}

.fgf-chill-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fgf-chill-card:hover {
    border-color: rgba(120, 113, 108, 0.45);
    box-shadow: 0 10px 22px rgba(120, 113, 108, 0.1);
    transform: translateY(-1px);
}

.fgf-chill-card-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

.fgf-chill-card strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.fgf-chill-card small {
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
}

.rel-history-chill strong {
    color: #57534e;
}

.fgf-feedback {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 92%;
    margin: 0 auto 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 8px 18px rgba(19, 47, 53, 0.06);
    animation: fgf-feedback-in 220ms ease;
}

.fgf-feedback-pending {
    border-style: dashed;
    background: #fffaf6;
}

.fgf-feedback-positive {
    border-color: rgba(45, 183, 163, 0.35);
    background: #f3fbf8;
}

.fgf-feedback-negative {
    border-color: rgba(236, 72, 153, 0.28);
    background: #fff6fa;
}

.fgf-feedback-neutral {
    border-color: rgba(245, 158, 11, 0.28);
    background: #fffaf3;
}

.fgf-feedback-emoji {
    font-size: 1.2rem;
    line-height: 1.2;
}

.fgf-feedback-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.fgf-feedback-copy strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.fgf-feedback-copy span,
.fgf-feedback-copy small {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.fgf-feedback-deltas {
    color: var(--plum) !important;
}

.fgf-feedback-direction {
    color: var(--teal) !important;
}

@keyframes fgf-feedback-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fgf-reaction-pop {
    from {
        opacity: 0;
        transform: scale(0.72) translateY(4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fgf-reaction-glow {
    0%, 100% {
        box-shadow: 0 6px 14px rgba(19, 47, 53, 0.08);
    }
    45% {
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22), 0 8px 18px rgba(19, 47, 53, 0.1);
    }
}

.fgf-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 14px;
    background:
        linear-gradient(180deg, rgba(255, 243, 232, 0.7), rgba(255, 255, 255, 0.96)),
        var(--white);
}

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

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

.fgf-message-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    max-width: min(82%, 560px);
}

.fgf-message-reactions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    padding-right: 2px;
}

.fgf-msg-reaction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid rgba(234, 216, 204, 0.95);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 6px 14px rgba(19, 47, 53, 0.08);
    cursor: default;
    animation: fgf-reaction-pop 260ms ease;
    font: inherit;
    color: inherit;
}

.fgf-msg-reaction.is-new {
    animation: fgf-reaction-pop 360ms ease, fgf-reaction-glow 900ms ease;
}

.fgf-msg-reaction-has-details {
    position: relative;
    cursor: pointer;
}

.fgf-msg-reaction-has-details:focus-visible {
    outline: 2px solid rgba(45, 183, 163, 0.55);
    outline-offset: 2px;
}

.fgf-msg-reaction-positive {
    border-color: rgba(45, 183, 163, 0.35);
    background: #f3fbf8;
}

.fgf-msg-reaction-negative {
    border-color: rgba(236, 72, 153, 0.28);
    background: #fff6fa;
}

.fgf-msg-reaction-neutral {
    border-color: rgba(245, 158, 11, 0.28);
    background: #fffaf3;
}

.fgf-msg-reaction-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.fgf-reaction-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 24;
    display: grid;
    gap: 4px;
    min-width: 220px;
    max-width: min(320px, 85vw);
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(19, 47, 53, 0.14);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.fgf-reaction-popover::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 100%;
    width: 10px;
    height: 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    transform: rotate(45deg) translateY(-5px);
}

.fgf-reaction-popover-title {
    color: var(--ink);
    font-size: 0.86rem;
}

.fgf-reaction-popover-deltas {
    color: var(--plum);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.fgf-reaction-popover-direction {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.fgf-reaction-popover-preference {
    display: block;
    margin-top: 2px;
    color: #2f4f8a;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.fgf-msg-reaction-has-details.is-open .fgf-reaction-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

@media (hover: hover) {
    .fgf-msg-reaction-has-details:hover .fgf-reaction-popover,
    .fgf-msg-reaction-has-details:focus-visible .fgf-reaction-popover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.fgf-bubble {
    max-width: min(82%, 560px);
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 8px 18px rgba(19, 47, 53, 0.07);
}

.fgf-message-user .fgf-bubble {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.fgf-bubble p {
    margin: 0;
}

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

.fgf-bubble code {
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(45, 183, 163, 0.12);
}

.fgf-message-user .fgf-bubble code {
    background: rgba(255, 255, 255, 0.14);
}

.fgf-chat-error {
    color: var(--coral-deep);
    font-weight: 800;
}

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

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

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

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

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

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

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

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

.fgf-composer textarea:focus,
.fgf-key-field input:focus {
    outline: 3px solid rgba(45, 183, 163, 0.24);
    border-color: var(--teal);
}

.fgf-send {
    width: 44px;
    height: 44px;
    color: var(--white);
    background: var(--coral);
    border-color: var(--coral);
}

.fgf-send:hover {
    background: var(--coral-deep);
}

.fgf-chat-rail {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 70;
    width: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(19, 47, 53, 0.16);
    backdrop-filter: blur(14px);
}

.fgf-chat-rail[hidden] {
    display: none;
}

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

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

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

.fgf-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;
}

.fgf-rail-item:hover,
.fgf-rail-item.is-active {
    background: #eef7f4;
}

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

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

.fgf-rail-copy span,
.fgf-rail-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fgf-rail-copy span {
    font-weight: 900;
}

.fgf-rail-copy small {
    color: var(--ink-soft);
    font-size: 0.76rem;
}

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

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

.fgf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(19, 47, 53, 0.48);
}

.fgf-modal {
    width: min(440px, 100%);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(19, 47, 53, 0.28);
}

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

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

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

.fgf-modal-copy,
.fgf-modal-fine {
    margin: 0;
    color: var(--ink-soft);
}

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

.fgf-modal-fine a {
    color: var(--coral-deep);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

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

.fgf-key-status.is-saved {
    color: #175f56;
    background: #eef7f4;
    border-color: rgba(45, 183, 163, 0.35);
}

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

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

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

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

.fgf-call-choices button:hover {
    border-color: var(--teal);
    background: #eef7f4;
}

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

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

.fgf-modal.fgf-gift-modal {
    width: min(720px, 100%);
}

.fgf-gift-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.fgf-gift-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    width: 100%;
    min-height: 112px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fffdfb;
    text-align: left;
    cursor: pointer;
}

.fgf-gift-option:hover {
    border-color: var(--teal);
    background: #eef7f4;
}

.fgf-gift-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--coral), var(--plum));
    font-size: 0.72rem;
    font-weight: 900;
}

.fgf-gift-icon svg,
.fgf-gift-response > span svg {
    width: 23px;
    height: 23px;
    display: block;
}

.fgf-gift-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.fgf-gift-copy strong {
    line-height: 1.15;
}

.fgf-gift-copy small {
    color: var(--ink-soft);
    line-height: 1.35;
}

.fgf-gift-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.fgf-gift-meta i,
.fgf-gift-meta b,
.fgf-gift-meta em {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 900;
}

.fgf-gift-meta i {
    color: #175f56;
    background: #eef7f4;
}

.fgf-gift-meta b {
    color: var(--white);
    background: var(--ink);
}

.fgf-gift-meta em {
    color: var(--ink-soft);
    background: var(--cream);
}

.fgf-gift-response {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding: 16px;
    border: 1px solid rgba(239, 111, 97, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, #fffdfb, #fff3e8);
}

.fgf-gift-response > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--coral), var(--plum));
    font-size: 0.78rem;
    font-weight: 900;
}

.fgf-gift-response > span svg {
    width: 26px;
    height: 26px;
}

.fgf-gift-response strong {
    font-size: 1.08rem;
}

.fgf-gift-response p {
    margin: 0;
    color: var(--ink-soft);
}

.fgf-gift-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(19, 47, 53, 0.08);
}

.fgf-gift-result b {
    color: var(--coral-deep);
}

.fgf-gift-result small {
    color: var(--ink-soft);
    font-weight: 900;
}

@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: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

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

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

    .hero {
        min-height: 620px;
        height: calc(100svh - 170px);
        max-height: none;
        background-position: 62% center;
    }

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

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

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

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

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

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

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

    .section {
        padding: 58px 0;
    }

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

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

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

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

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

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

    .hero {
        min-height: 650px;
        height: calc(100svh - 150px);
    }

    .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,
    .feature-grid,
    .article-grid,
    .gamify-panels {
        grid-template-columns: 1fr;
    }

    .my-gfs-features,
    .my-profile-features {
        grid-template-columns: 1fr;
    }

    .fgf-toast-stack {
        top: auto;
        right: 12px;
        bottom: 12px;
    }

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

    .gallery-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

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

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

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

    .relationship-bond-metrics,
    .my-gfs-features,
    .list-directory-compact {
        grid-template-columns: 1fr;
    }

    .list-card {
        grid-template-columns: 1fr;
    }

    .relationship-card {
        padding: 16px;
    }

    .relationship-level {
        width: 56px;
        height: 56px;
    }

    .relationship-meta {
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

    .relationship-stats,
    .relationship-milestones {
        gap: 7px;
    }

    .relationship-stats span,
    .relationship-milestones span {
        min-height: 30px;
        font-size: 0.78rem;
    }

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

    .relationship-actions span {
        white-space: normal;
    }

    .relationship-unlocks {
        grid-template-columns: 1fr;
    }

    .rel-unlock {
        min-height: 0;
    }

    .rel-history-item div,
    .fgf-gift-result {
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

    .fgf-gift-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

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

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

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

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

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

/* FreeGF unique sections */
.section-heading.centered {
    text-align: center;
    justify-content: center;
}

.section-heading.centered h2 {
    margin-left: auto;
    margin-right: auto;
}

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

.step-card {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
}

.step-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.faq-card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
}

.faq-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-family: var(--font-display);
}

.faq-card p {
    margin: 0;
    color: var(--ink-soft);
}

.cta-band {
    background: var(--gradient-brand);
    color: var(--white);
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 48px 0;
}

.cta-band h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
    margin: 8px 0 0;
    opacity: 0.92;
}

.profile-card {
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    z-index: 2;
}

.profile-card-image {
    position: relative;
}

.profile-card-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(18, 10, 26, 0.72);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-subtitle {
    margin: 4px 0 0;
    color: var(--coral-deep);
    font-weight: 700;
}

.section-story {
    background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}

.story-block p {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.story-block p:last-child {
    margin-bottom: 0;
}

.article-figure {
    margin: 0 0 28px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-cta {
    margin: 32px 0 0;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 45, 138, 0.08), rgba(124, 58, 237, 0.1));
}

.article-cta p {
    margin: 0 0 16px;
    font-weight: 700;
    color: var(--ink);
}

.article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-card {
    overflow: hidden;
}

.guide-card-image {
    display: block;
    margin: -20px -20px 16px;
    overflow: hidden;
}

.guide-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 220ms ease;
}

.guide-card:hover .guide-card-image img {
    transform: scale(1.03);
}

.guide-card-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.profile-guide-link {
    margin: 0 0 16px;
}

.page-hero h1,
.section h2,
.profile-summary h1 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Set Your Profile — player identity */
.fgf-identity-editor {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.75rem;
}

.fgf-identity-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.fgf-identity-fields {
    display: grid;
    gap: 1rem;
}

.fgf-identity-field span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.fgf-identity-field input,
.fgf-identity-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: var(--surface, #fff);
    font: inherit;
}

.fgf-identity-section h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}

.fgf-identity-section-lead {
    color: var(--muted, #64748b);
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

.fgf-identity-scale {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border, #e8edf2);
}

.fgf-identity-scale-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.fgf-identity-scale-head label {
    font-weight: 600;
}

.fgf-identity-scale-value {
    font-size: 0.82rem;
    color: var(--accent, #c026d3);
    text-align: right;
    max-width: 55%;
}

.fgf-identity-hint {
    font-size: 0.85rem;
    color: var(--muted, #64748b);
    margin: 0 0 0.65rem;
}

.fgf-identity-hint em {
    font-style: normal;
    opacity: 0.9;
}

.fgf-identity-scale input[type="range"] {
    width: 100%;
    accent-color: var(--accent, #c026d3);
}

.fgf-identity-scale-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--muted, #94a3b8);
    margin-top: 0.25rem;
}

.fgf-identity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fgf-identity-chip {
    border: 1px solid var(--border, #e2e8f0);
    background: var(--surface, #fff);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.fgf-identity-chip:hover {
    border-color: var(--accent, #c026d3);
}

.fgf-identity-chip.is-active {
    background: var(--accent, #c026d3);
    border-color: var(--accent, #c026d3);
    color: #fff;
}

.fgf-identity-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.fgf-identity-status {
    font-size: 0.88rem;
    color: var(--muted, #64748b);
}

.fgf-identity-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fgf-identity-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.fgf-identity-modal-panel {
    position: relative;
    width: min(720px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    background: var(--surface, #fff);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.fgf-identity-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border, #e8edf2);
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
}

.fgf-identity-modal-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-family: var(--font-display);
}

.fgf-identity-modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}

.fgf-identity-modal-body {
    padding: 1rem 1.25rem 1.5rem;
}

body.fgf-identity-modal-open {
    overflow: hidden;
}



/* Romance film library */
.fgf-film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.fgf-film-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8edf2);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    display: grid;
    gap: 0.65rem;
}

.fgf-film-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.fgf-film-card-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.3;
}

.fgf-film-select.btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.fgf-film-select.is-active {
    border-color: var(--accent, #c026d3);
    color: var(--accent, #c026d3);
}

.fgf-film-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text, #334155);
}

.fgf-film-modes {
    font-size: 0.82rem !important;
    color: var(--muted, #64748b) !important;
}

.fgf-film-gfs {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    line-height: 1.45;
}

.fgf-film-gfs li + li {
    margin-top: 0.35rem;
}

/* Romance tropes */
.trope-quick-links {
    margin-top: 0.5rem;
}

.fgf-trope-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.fgf-trope-preview-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8edf2);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.fgf-trope-preview-card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-family: var(--font-display);
}

.fgf-trope-preview-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted, #64748b);
    line-height: 1.45;
}

.centered-links {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

.fgf-trope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.fgf-trope-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8edf2);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    display: grid;
    gap: 0.65rem;
}

.fgf-trope-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.65rem;
}

.fgf-trope-card-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.02rem;
    line-height: 1.3;
}

.fgf-mode-meta {
    flex-shrink: 0;
    padding-top: 2px;
    color: var(--muted, #64748b);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: right;
}

.fgf-trope-summary {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text, #334155);
    line-height: 1.5;
}

.fgf-trope-details {
    font-size: 0.86rem;
}

.fgf-trope-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent, #c026d3);
    list-style: none;
}

.fgf-trope-details summary::-webkit-details-marker {
    display: none;
}

.fgf-trope-body p {
    margin: 0.5rem 0 0;
    line-height: 1.5;
    color: var(--text, #475569);
}

.fgf-trope-modes {
    font-size: 0.82rem !important;
    color: var(--muted, #64748b) !important;
}

.fgf-trope-gfs-label {
    margin: 0.25rem 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, #64748b);
}

.fgf-trope-gfs ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.fgf-trope-gfs li {
    font-size: 0.85rem;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.fgf-trope-gfs li span {
    color: var(--muted, #64748b);
    flex: 1 1 100%;
    padding-left: 0;
}

.fgf-trope-chat.btn-sm {
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
}

.section-cta-band .cta-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 900px) {
    .steps-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .brand-text small {
        display: none;
    }
}
