:root {
    --fb-bg: #f4f4f4;
    --fb-surface: #ffffff;
    --fb-text: #333333;
    --fb-muted: #666666;
    --fb-border: #e0e0e0;
    --fb-border-accent: rgba(231, 38, 80, 0.22);
    --fb-accent: #e72650;
    --fb-accent-hover: #c41f44;
    --fb-accent-light: #fde8ed;
    --fb-highlight: #fde8ed;
    --fb-success: #2f7d4f;
    --fb-success-light: #eef8f1;
    --fb-success-border: rgba(47, 125, 79, 0.28);
    --fb-info: #4a5f8c;
    --fb-info-light: #eef2f8;
    --fb-info-border: rgba(74, 95, 140, 0.22);
    --fb-error: #b71c1c;
    --fb-radius: 8px;
    --fb-radius-btn: 5px;
    --fb-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    --fb-pastel-pink: #fce4ec;
    --fb-pastel-blue: #e3f2fd;
    --fb-pastel-lavender: #ede7f6;
    --fb-pastel-grey: #f5f5f5;
}

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

body {
    margin: 0;
    font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--fb-bg);
    color: var(--fb-text);
    line-height: 1.55;
    font-size: 15px;
}

.fb-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fb-body-embedded {
    background: transparent;
}

.fb-root.fb-embedded {
    min-height: 0;
    background: transparent;
}

.fb-root.fb-embedded .fb-main {
    padding: 0.5rem 0 1rem;
    flex: none;
}

.fb-root.fb-embedded .fb-container {
    width: min(960px, 100% - 1rem);
}

.fb-root.fb-embedded .fb-card {
    border: none;
    box-shadow: none;
    padding: 1.25rem 0.5rem;
}

.fb-container {
    width: min(960px, 100% - 2rem);
    margin: 0 auto;
}

/* --- Top bar & header (shop-style) --- */

.fb-topbar {
    background: var(--fb-accent);
    color: #fff;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 0;
}

.fb-topbar p {
    margin: 0;
}

.fb-header {
    background: var(--fb-surface);
    border-bottom: 1px solid var(--fb-border);
    padding: 1rem 0;
}

.fb-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-brand {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.fb-brand-accent {
    color: var(--fb-accent);
}

.fb-brand-rest {
    color: var(--fb-text);
}

.fb-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.fb-footer {
    color: var(--fb-muted);
    font-size: 0.82rem;
    text-align: center;
    border-top: 1px solid var(--fb-border);
    background: var(--fb-surface);
    padding: 1.25rem 0;
}

.fb-footer p {
    margin: 0;
}

/* --- Cards (finder-module style) --- */

.fb-card {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border-accent);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow);
    padding: 2rem 1.75rem;
}

.fb-form-card {
    padding-bottom: 2rem;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.3;
    color: var(--fb-accent);
    font-weight: 700;
    text-align: center;
}

.fb-card > h1:first-child {
    margin-bottom: 0.75rem;
}

.fb-lead {
    color: var(--fb-muted);
    font-size: 0.98rem;
    text-align: center;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.fb-steps {
    padding-left: 1.25rem;
    margin: 1.5rem auto;
    max-width: 32rem;
}

.fb-steps li {
    margin-bottom: 0.5rem;
    color: var(--fb-text);
}

.fb-card > form {
    text-align: center;
}

.fb-card > form .fb-actions {
    justify-content: center;
}

/* --- Buttons (shop CTA style) --- */

.fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.35rem;
    border-radius: var(--fb-radius-btn);
    border: 1px solid var(--fb-border);
    background: var(--fb-surface);
    color: var(--fb-text);
    text-decoration: none;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fb-btn:hover {
    background: var(--fb-highlight);
    border-color: var(--fb-accent);
}

.fb-btn-primary {
    background: var(--fb-accent);
    border-color: var(--fb-accent);
    color: #fff;
}

.fb-btn-primary:hover {
    background: var(--fb-accent-hover);
    border-color: var(--fb-accent-hover);
    color: #fff;
}

.fb-btn-primary:focus-visible {
    outline: 2px solid var(--fb-accent);
    outline-offset: 2px;
}

.fb-btn-secondary {
    background: var(--fb-surface);
    border-color: var(--fb-border);
}

.fb-btn-secondary:hover {
    background: var(--fb-highlight);
    border-color: var(--fb-accent);
    color: var(--fb-accent);
}

.fb-btn-danger {
    border-color: #b85c5c;
    color: #9e4444;
}

.fb-btn-danger:hover {
    background: #fdf3f3;
    border-color: #9e4444;
    color: #7a2e2e;
}

.fb-actions,
.fb-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.fb-inline-form {
    display: inline-flex;
    margin: 0;
}

.fb-actions-sticky {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 30%);
    padding-top: 1rem;
    margin-top: 2rem;
}

/* --- Forms & inputs --- */

.fb-link-box {
    margin-top: 0;
    padding: 1.15rem;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    background: var(--fb-surface);
    text-align: left;
}

.fb-link-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.fb-link-stack + .fb-link-box {
    margin-top: 1rem;
}

.fb-link-stack .fb-link-box {
    margin-top: 0;
}

.fb-link-box-private {
    border-color: #d5d9de;
    background: var(--fb-pastel-grey);
}

.fb-link-box-share {
    border-color: var(--fb-accent);
    background: var(--fb-accent-light);
    box-shadow: 0 2px 10px rgba(231, 38, 80, 0.08);
}

.fb-link-badge {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fb-link-badge-private {
    background: #e2e6ea;
    color: #555;
}

.fb-link-badge-share {
    background: var(--fb-accent);
    color: #fff;
}

.fb-link-desc {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--fb-muted);
}

/* --- Share link preview mockup (WhatsApp / Messenger style) --- */

.fb-share-preview {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--fb-border);
}

.fb-share-preview-label {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fb-muted);
}

.fb-share-preview-card {
    overflow: hidden;
    border: 1px solid var(--fb-border);
    border-radius: 12px;
    background: var(--fb-surface);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    max-width: 420px;
}

.fb-share-preview-image {
    aspect-ratio: 1.91 / 1;
    background: var(--fb-pastel-pink);
    overflow: hidden;
}

.fb-share-preview-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-share-preview-body {
    padding: 0.75rem 0.9rem 0.85rem;
    border-top: 1px solid var(--fb-border);
}

.fb-share-preview-site {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8a8f96;
}

.fb-share-preview-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--fb-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fb-share-preview-desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--fb-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fb-share-qr {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(231, 38, 80, 0.25);
}

.fb-share-qr-title {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--fb-text);
}

.fb-share-qr-desc {
    margin-bottom: 0.85rem;
}

.fb-share-qr-frame {
    display: inline-flex;
    padding: 0.75rem;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    background: #fff;
    box-shadow: var(--fb-shadow);
}

.fb-share-qr-target {
    width: 180px;
    height: 180px;
    line-height: 0;
}

.fb-share-qr-target img,
.fb-share-qr-target canvas {
    display: block;
    width: 180px !important;
    height: 180px !important;
}

.fb-share-qr-hint {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    color: var(--fb-muted);
}

.fb-share-native.fb-hidden {
    display: none;
}

.fb-partner-welcome {
    margin: 0 0 1.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--fb-border-accent);
    border-radius: var(--fb-radius);
    background: linear-gradient(135deg, var(--fb-accent-light) 0%, var(--fb-pastel-lavender) 100%);
}

.fb-partner-welcome-title {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--fb-text);
}

.fb-partner-welcome-lead {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--fb-text);
}

.fb-partner-welcome-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.fb-partner-welcome-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--fb-muted);
}

.fb-partner-welcome-points li::before {
    content: "✓";
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.05rem;
    border-radius: 50%;
    background: var(--fb-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
}

.fb-resume-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    text-align: left;
}

.fb-link-box-highlight {
    border-color: var(--fb-accent);
    background: var(--fb-accent-light);
}

.fb-label,
.fb-text-label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--fb-text);
    margin-bottom: 0.5rem;
}

.fb-link-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fb-input,
.fb-textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius-btn);
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--fb-text);
}

.fb-input:focus,
.fb-textarea:focus {
    outline: none;
    border-color: var(--fb-accent);
    box-shadow: 0 0 0 2px rgba(231, 38, 80, 0.12);
}

.fb-link-row .fb-input {
    flex: 1 1 240px;
}

.fb-hint,
.fb-polling-hint {
    margin: 0.5rem 0 0;
    color: var(--fb-muted);
    font-size: 0.88rem;
    text-align: left;
}

.fb-alert {
    padding: 0.9rem 1rem;
    border-radius: var(--fb-radius-btn);
    margin-bottom: 1rem;
    text-align: left;
}

.fb-alert-error {
    background: #fdeeee;
    border: 1px solid #f2c7c7;
    color: var(--fb-error);
}

.fb-alert-success {
    background: #eef8f0;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.fb-feedback-start {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fb-border);
}

.fb-feedback-start-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.fb-feedback-start-form {
    max-width: 28rem;
    margin: 1rem auto 0;
    text-align: left;
}

.fb-feedback-start-form .fb-actions {
    justify-content: flex-start;
}

.fb-fieldset {
    border: 0;
    margin: 0 0 2rem;
    padding: 0;
}

.fb-fieldset legend {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0;
    margin-bottom: 0.5rem;
    color: var(--fb-accent);
    text-align: center;
    width: 100%;
}

.fb-section-intro {
    color: var(--fb-muted);
    margin: 0 0 1rem;
    text-align: center;
}

.fb-question {
    padding: 1rem 0;
    border-top: 1px solid var(--fb-border);
}

.fb-question-label {
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.fb-options {
    display: grid;
    gap: 0.5rem;
}

.fb-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius-btn);
    cursor: pointer;
    background: #fff;
}

.fb-option:has(input:checked) {
    border-color: var(--fb-accent);
    background: var(--fb-accent-light);
}

.fb-option input {
    margin: 0;
    accent-color: var(--fb-accent);
}

.fb-textarea {
    margin-top: 0.5rem;
    resize: vertical;
}

.fb-status-highlight {
    color: var(--fb-accent);
    font-weight: 600;
}

.fb-status {
    text-align: center;
}

.fb-results-category {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fb-border);
}

.fb-match-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fb-match-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--fb-border);
}

.fb-match-label {
    font-weight: 600;
}

.fb-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.7rem;
    border-radius: var(--fb-radius-btn);
    background: var(--fb-accent-light);
    color: var(--fb-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fb-match-texts {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
    color: var(--fb-muted);
}

@media (min-width: 640px) {
    .fb-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .fb-card {
        padding: 1.35rem 1.15rem;
    }

    .fb-btn {
        width: 100%;
    }

    .fb-share-actions .fb-btn,
    .fb-actions .fb-btn {
        flex: 1 1 100%;
    }
}

/* --- Wizard (Sexspielzeug-Finder style) --- */

.fb-wizard-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.75rem 2.25rem;
}

.fb-wizard-title {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    color: var(--fb-accent);
    text-transform: none;
    letter-spacing: -0.01em;
}

.fb-wizard-progress {
    height: 6px;
    background: var(--fb-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.fb-wizard-progress-bar {
    height: 100%;
    background: var(--fb-accent);
    border-radius: 3px;
    transition: width 0.25s ease;
    min-width: 0;
}

.fb-wizard-progress-text {
    margin: 0 0 1.75rem;
    color: var(--fb-muted);
    font-size: 0.82rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.fb-wizard-steps {
    position: relative;
    min-height: 280px;
}

.fb-wizard-steps.fb-wizard-steps-done {
    display: none;
    min-height: 0;
}

.fb-wizard-step {
    display: none !important;
    animation: fb-wizard-in 0.2s ease;
}

.fb-wizard-step.is-active {
    display: block !important;
}

@keyframes fb-wizard-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fb-wizard-category {
    margin: 0 0 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fb-accent);
    text-align: center;
}

.fb-wizard-step-count {
    margin: 0 0 0.85rem;
    color: var(--fb-muted);
    font-size: 0.82rem;
    text-align: center;
}

.fb-wizard-question {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    color: var(--fb-text);
}

.fb-wizard-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

.fb-wizard-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 54px;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    background: var(--fb-surface);
    color: var(--fb-text);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.fb-wizard-btn span {
    line-height: 1.35;
}

.fb-wizard-btn:hover {
    border-color: var(--fb-accent);
    background: var(--fb-accent-light);
}

.fb-wizard-btn.is-selected {
    border-color: var(--fb-accent);
    background: var(--fb-accent-light);
    box-shadow: 0 0 0 1px var(--fb-accent);
}

.fb-wizard-btn:active {
    transform: scale(0.995);
}

.fb-wizard-btn-choice {
    justify-content: center;
    text-align: center;
    background: var(--fb-pastel-grey);
}

.fb-wizard-btn-choice:hover {
    background: var(--fb-accent-light);
}

.fb-wizard-btn-choice.is-selected {
    background: var(--fb-accent-light);
}

.fb-wizard-btn-multi {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    line-height: 1.45;
    cursor: pointer;
    background: var(--fb-pastel-grey);
}

.fb-wizard-btn-multi input[type="checkbox"] {
    margin: 0.2rem 0 0;
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--fb-accent);
}

.fb-wizard-btn-multi span {
    flex: 1;
    min-width: 0;
}

.fb-wizard-btn-multi:has(input:checked) {
    border-color: var(--fb-accent);
    background: var(--fb-accent-light);
}

/* Scale answers — pastel finder circles feel */
.fb-wizard-btn-yes {
    background: var(--fb-pastel-pink);
}

.fb-wizard-btn-yes:hover {
    background: #f8bbd0;
    border-color: var(--fb-accent);
}

.fb-wizard-btn-yes.is-selected {
    border-color: var(--fb-accent);
    background: var(--fb-pastel-pink);
    box-shadow: 0 0 0 2px var(--fb-accent);
}

.fb-wizard-btn-discuss {
    background: var(--fb-pastel-blue);
}

.fb-wizard-btn-discuss:hover {
    background: #bbdefb;
    border-color: #5c8eb8;
}

.fb-wizard-btn-discuss.is-selected {
    border-color: #5c8eb8;
    background: var(--fb-pastel-blue);
    box-shadow: 0 0 0 2px #5c8eb8;
}

.fb-wizard-btn-no {
    background: var(--fb-pastel-grey);
}

.fb-wizard-btn-no:hover {
    background: #eeeeee;
}

.fb-wizard-btn-no.is-selected {
    border-color: #bdbdbd;
    background: var(--fb-pastel-grey);
    box-shadow: 0 0 0 2px #bdbdbd;
}

.fb-wizard-btn-emoji {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.fb-wizard-followup-hint {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: var(--fb-accent-light);
    border: 1px solid var(--fb-border-accent);
    border-radius: var(--fb-radius-btn);
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
    color: var(--fb-text);
}

.fb-wizard-open-text-wrap {
    max-width: 28rem;
    margin: 0 auto;
}

.fb-wizard-open-text {
    min-height: 7rem;
    resize: vertical;
}

.fb-wizard-privacy {
    margin: 1.35rem auto 0;
    padding: 0.9rem 1rem;
    border-radius: var(--fb-radius-btn);
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: center;
    max-width: 28rem;
}

.fb-wizard-privacy-blind {
    background: var(--fb-pastel-blue);
    color: var(--fb-text);
    border: 1px solid rgba(92, 142, 184, 0.25);
}

.fb-wizard-privacy-open {
    background: var(--fb-accent-light);
    color: var(--fb-text);
    border: 1px solid var(--fb-border-accent);
}

.fb-wizard-nav {
    margin-top: 1.35rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.fb-wizard-nav-split {
    display: flex;
    gap: 0.65rem;
}

.fb-wizard-nav-split .fb-wizard-back,
.fb-wizard-nav-split .fb-wizard-next {
    flex: 1 1 0;
    width: auto;
}

.fb-wizard-nav-back-only {
    margin-top: 1rem;
}

.fb-wizard-nav-back-only .fb-wizard-back {
    width: 100%;
}

.fb-wizard-finish-actions {
    flex-direction: column;
    align-items: stretch;
}

.fb-wizard-finish-actions .fb-wizard-back {
    width: 100%;
}

.fb-wizard-nav + .fb-wizard-privacy {
    margin-top: 1rem;
}

.fb-wizard-nav .fb-btn {
    width: 100%;
}

.fb-wizard-finish {
    margin-top: 1rem;
    padding: 1.5rem 0 0.5rem;
    border-top: 1px solid var(--fb-border);
    text-align: center;
}

.fb-wizard-finish-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.fb-wizard-finish-icon.is-visible {
    opacity: 1;
    transform: scale(1);
}

.fb-checkmark {
    width: 100%;
    height: 100%;
    display: block;
}

.fb-checkmark-circle {
    stroke: var(--fb-accent);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    transform-origin: 50% 50%;
}

.fb-checkmark-path {
    stroke: var(--fb-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.fb-wizard-finish-icon.is-visible .fb-checkmark-circle {
    animation: fb-checkmark-circle 0.55s ease-in-out forwards;
}

.fb-wizard-finish-icon.is-visible .fb-checkmark-path {
    animation: fb-checkmark-path 0.35s 0.35s ease forwards;
}

@keyframes fb-checkmark-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fb-checkmark-path {
    to {
        stroke-dashoffset: 0;
    }
}

.fb-wizard-finish-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fb-accent);
}

.fb-wizard-finish-lead {
    margin: 0 0 0.75rem;
}

.fb-wizard-finish-countdown {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: var(--fb-muted);
    min-height: 1.25rem;
}

.fb-wizard-finish .fb-actions {
    justify-content: center;
}

.fb-hidden {
    display: none !important;
}

/* --- Results dashboard --- */

.fb-results-dashboard {
    max-width: 720px;
    margin: 0 auto;
}

.fb-world {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--fb-border);
}

.fb-world-title {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    color: var(--fb-accent);
}

.fb-world-intro {
    color: var(--fb-muted);
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.fb-world-intro-match-types {
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.fb-compare-category {
    margin-bottom: 2rem;
}

.fb-compare-category h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--fb-accent);
    text-align: left;
    letter-spacing: 0.02em;
}

.fb-compare-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--fb-border);
}

.fb-compare-question {
    margin: 0 0 0.65rem;
    font-weight: 600;
    color: var(--fb-text);
}

.fb-compare-row,
.fb-compare-overlap,
.fb-compare-match {
    margin: 0.25rem 0;
}

.fb-compare-match {
    margin-top: 0.35rem;
    padding: 0.7rem 0.9rem;
    color: var(--fb-success);
    font-weight: 600;
    background: var(--fb-success-light);
    border-left: 3px solid var(--fb-success);
    border-radius: var(--fb-radius-btn);
}

.fb-compare-overlap {
    margin-top: 0.35rem;
    padding: 0.55rem 0.9rem;
    color: var(--fb-success);
    font-weight: 600;
    background: var(--fb-success-light);
    border-radius: var(--fb-radius-btn);
}

.fb-compare-tip {
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
    color: var(--fb-info);
    background: var(--fb-info-light);
    border: 1px solid var(--fb-info-border);
    border-radius: var(--fb-radius-btn);
    font-size: 0.92rem;
    line-height: 1.45;
}

.fb-match-count {
    margin-bottom: 1.25rem;
    text-align: center;
}

.fb-match-empty {
    padding: 1.15rem;
    color: var(--fb-text);
    background: var(--fb-info-light);
    border: 1px solid var(--fb-info-border);
    border-radius: var(--fb-radius);
    text-align: center;
}

.fb-match-cards {
    display: grid;
    gap: 1rem;
}

.fb-match-card {
    padding: 1.25rem;
    border-radius: var(--fb-radius);
    border: 1px solid var(--fb-border);
    background: #fff;
}

.fb-match-card-full {
    border-color: var(--fb-success-border);
    background: linear-gradient(180deg, var(--fb-success-light) 0%, #fff 100%);
}

.fb-match-card-soft {
    border-color: rgba(92, 142, 184, 0.35);
    background: linear-gradient(180deg, var(--fb-pastel-blue) 0%, #fff 100%);
}

.fb-match-card-title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
}

.fb-match-card-full .fb-match-card-title {
    color: var(--fb-success);
}

.fb-match-card-soft .fb-match-card-title {
    color: #4a6fa5;
}

.fb-match-card-yes_discuss .fb-match-card-title {
    color: #6d5b9a;
}

.fb-match-card-discuss_both .fb-match-card-title {
    color: #4a6fa5;
}

.fb-match-card-body {
    margin: 0 0 0.75rem;
    color: var(--fb-text);
}

.fb-match-card-next {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    color: var(--fb-muted);
}

.fb-shop-cta {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--fb-border);
}

.fb-shop-label {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fb-muted);
}

.fb-shop-link {
    color: var(--fb-accent);
    font-weight: 600;
    text-decoration: none;
}

.fb-shop-link:hover {
    text-decoration: underline;
}

/* --- Release gate --- */

.fb-release-card {
    max-width: 560px;
    margin: 0 auto;
}

.fb-release-info {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    background: var(--fb-accent-light);
    border: 1px solid var(--fb-border-accent);
    border-radius: var(--fb-radius);
    color: var(--fb-text);
    font-size: 0.92rem;
    text-align: center;
}

.fb-release-status-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.fb-release-status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    background: #fff;
}

.fb-release-status-item.is-done {
    border-color: rgba(231, 38, 80, 0.35);
    background: var(--fb-accent-light);
}

.fb-release-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: var(--fb-pastel-grey);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.fb-release-status-item.is-done .fb-release-status-icon {
    background: var(--fb-accent);
    color: #fff;
}

.fb-results-timer {
    padding: 0.9rem 1rem;
    background: var(--fb-accent-light);
    border: 1px solid var(--fb-border-accent);
    border-radius: var(--fb-radius);
    text-align: center;
}

.fb-release-form {
    text-align: center;
}

/* --- Results actions & PDF export --- */

.fb-results-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fb-border);
    text-align: center;
}

.fb-results-actions .fb-actions {
    justify-content: center;
}

.fb-delete-form {
    margin-top: 1rem;
}

.fb-results-actions-hint {
    max-width: 36rem;
    margin: 1rem auto 0;
}

.fb-confirm-panel {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e8c4c4;
    border-radius: var(--fb-radius);
    background: #fdf6f6;
    text-align: center;
}

.fb-confirm-message {
    margin: 0 0 1rem;
    color: var(--fb-text);
    line-height: 1.5;
}

.fb-confirm-actions {
    justify-content: center;
    margin-top: 0;
}

.fb-pdf-export {
    background: #fff;
}

.fb-pdf-export .fb-main {
    padding: 1.5rem 0 2.5rem;
}

.fb-pdf-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 1rem;
    background: var(--fb-bg);
    border-bottom: 1px solid var(--fb-border);
    text-align: center;
}

.fb-pdf-toolbar-hint {
    margin: 0 0 0.85rem;
    color: var(--fb-muted);
    font-size: 0.92rem;
}

.fb-pdf-meta {
    font-size: 0.9rem;
    color: var(--fb-muted);
}

@media print {
    .fb-no-print,
    .fb-topbar,
    .fb-header,
    .fb-footer,
    .fb-pdf-toolbar {
        display: none !important;
    }

    body,
    .fb-pdf-export {
        background: #fff;
    }

    .fb-root,
    .fb-main,
    .fb-container {
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .fb-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .fb-compare-item,
    .fb-match-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .fb-shop-link {
        color: var(--fb-text);
        text-decoration: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: var(--fb-muted);
        word-break: break-all;
    }
}
