/* =====================================================================
   Brainflood Trivia Archetype Quiz — standalone styles
   Theme-aware: foundational colors bind to theme tokens defined in
   themes.css. Per-archetype vibe colors layer ON TOP of the global
   theme so each archetype still feels distinct.
   ===================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Default vibe — purple. Gets overridden per-archetype via [data-vibe] */
    --vibe-rgb: 167, 139, 250;
    --vibe-rgb-2: 124, 58, 237;

    /* Foundational tokens — bound to theme system with sensible fallbacks */
    --bg: var(--bg-primary, #07091a);
    --bg-2: var(--bg-secondary, #0c1229);
    --surface: rgba(var(--glass-overlay-color, 255, 255, 255), 0.025);
    --surface-2: rgba(var(--glass-overlay-color, 255, 255, 255), 0.05);
    --border: rgba(var(--glass-overlay-color, 255, 255, 255), 0.08);
    --border-strong: rgba(var(--glass-overlay-color, 255, 255, 255), 0.14);
    --text: var(--text-primary, #e8eaf3);
    --text-dim: var(--text-secondary, #a4abc4);
    --text-muted: var(--text-muted, #6c7393);
    --text-faint: var(--color-text-500, #4a516e);

    --shadow-soft: 0 12px 40px rgba(0,0,0,0.35);
    --shadow-strong: 0 20px 60px rgba(0,0,0,0.5);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
}

/* Per-archetype vibe palettes. Each archetype's vibeColor field maps here. */
[data-vibe="pink"]     { --vibe-rgb: 244, 114, 182; --vibe-rgb-2: 217, 70, 239; }
[data-vibe="purple"]   { --vibe-rgb: 167, 139, 250; --vibe-rgb-2: 124, 58, 237; }
[data-vibe="cyan"]     { --vibe-rgb: 34, 211, 238;  --vibe-rgb-2: 6, 182, 212;  }
[data-vibe="yellow"]   { --vibe-rgb: 250, 204, 21;  --vibe-rgb-2: 245, 158, 11; }
[data-vibe="green"]    { --vibe-rgb: 52, 211, 153;  --vibe-rgb-2: 16, 185, 129; }
[data-vibe="orange"]   { --vibe-rgb: 251, 146, 60;  --vibe-rgb-2: 234, 88, 12;  }
[data-vibe="red"]      { --vibe-rgb: 248, 113, 113; --vibe-rgb-2: 239, 68, 68;  }
[data-vibe="electric-yellow"] { --vibe-rgb: 253, 224, 71; --vibe-rgb-2: 234, 179, 8; }
[data-vibe="electric-pink"]   { --vibe-rgb: 232, 121, 249; --vibe-rgb-2: 192, 38, 211; }
[data-vibe="electric-cyan"]   { --vibe-rgb: 103, 232, 249; --vibe-rgb-2: 34, 211, 238; }
[data-vibe="electric-green"]  { --vibe-rgb: 74, 222, 128;  --vibe-rgb-2: 34, 197, 94;  }
[data-vibe="brand-400"]       { --vibe-rgb: 167, 139, 250; --vibe-rgb-2: 124, 58, 237; }

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { background: var(--bg); }
html.theme-transitioning, html.theme-transitioning * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}
body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'EmojiOne Color', 'Segoe UI Symbol', sans-serif;
    line-height: 1.55;
    background-image:
        radial-gradient(ellipse 100% 70% at 50% -10%, rgba(var(--accent-rgb, 124, 58, 237), 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 30%, rgba(var(--secondary-rgb, 34, 211, 238), 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 70%, rgba(var(--pink-rgb, 244, 114, 182), 0.08) 0%, transparent 55%);
    background-attachment: fixed;
    background-color: var(--bg);
}
h1,h2,h3,h4,h5,h6 { font-family: 'Space Grotesk', sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
em { font-style: italic; }

/* Tint the page with the archetype's vibe color when result panel is showing */
body:has(#panel-result.active) {
    background-image:
        radial-gradient(ellipse 100% 70% at 50% -10%, rgba(var(--vibe-rgb-2), 0.28) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 30%, rgba(var(--vibe-rgb), 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 70%, rgba(var(--accent-rgb, 124, 58, 237), 0.08) 0%, transparent 55%);
}

/* Page-pad: clear the fixed header */
.page-pad { padding-top: calc(var(--banner-h, 32px) + 4rem); }
@media (min-width: 768px) { .page-pad { padding-top: calc(var(--banner-h, 32px) + 5rem); } }

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
@keyframes pulse-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes confetti-drop {
    0% { transform: translateY(-20vh) rotate(0); opacity: 0; }
    8% { opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.animate-fade-in { animation: fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =====================================================================
   PANELS
   ===================================================================== */
.panel { display: none; }
.panel.active { display: block; animation: fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* =====================================================================
   FLOATING RETAKE BUTTON
   ===================================================================== */
.retake-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 40;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: 13px;
    color: var(--text-primary, #fff);
    background: rgba(var(--vibe-rgb-2), 0.25);
    border: 1px solid rgba(var(--vibe-rgb), 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.35), 0 0 30px rgba(var(--vibe-rgb), 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.retake-fab:hover {
    transform: translateY(-2px);
    background: rgba(var(--vibe-rgb-2), 0.4);
    box-shadow: 0 14px 50px rgba(0,0,0,0.4), 0 0 40px rgba(var(--vibe-rgb), 0.35);
}
@media (max-width: 600px) {
    .retake-fab { bottom: 16px; right: 16px; padding: 10px 14px; }
    .retake-fab span { display: none; }
}

/* =====================================================================
   ACTION BUTTONS
   ===================================================================== */
.action-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: 14px;
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.action-btn:hover {
    background: var(--surface-2);
    border-color: rgba(var(--vibe-rgb), 0.5);
    transform: translateY(-1px);
}
.action-btn.primary {
    background: linear-gradient(135deg, rgb(var(--vibe-rgb-2)), rgb(var(--vibe-rgb)));
    border-color: transparent;
    color: #0c0a16;
    box-shadow: 0 8px 30px rgba(var(--vibe-rgb), 0.35);
}
.action-btn.primary:hover {
    box-shadow: 0 12px 40px rgba(var(--vibe-rgb), 0.5);
    transform: translateY(-2px);
}

.btn-primary {
    display: inline-block;
    padding: 18px 44px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: 18px;
    color: #fff;
    background: linear-gradient(90deg, var(--accent, #7c3aed), var(--color-pink, #f472b6), var(--accent, #7c3aed));
    background-size: 200% auto;
    box-shadow: 0 10px 40px rgba(var(--accent-rgb, 124, 58, 237), 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 50px rgba(var(--accent-rgb, 124, 58, 237), 0.55);
    animation: shimmer 2s linear infinite;
}

.link-btn {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(var(--vibe-rgb), 0.5);
    transition: color 0.15s ease;
}
.link-btn:hover { color: var(--text-primary, #fff); }

.back-btn {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.15s ease;
}
.back-btn:hover { color: var(--text-primary, #fff); }

/* =====================================================================
   SHARED PRIMITIVES
   ===================================================================== */
.section-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgb(var(--vibe-rgb));
    margin-bottom: 8px;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1.2;
    letter-spacing: -0.015em;
}
.section-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}
.section-head { margin-bottom: 24px; }
.section-head.center { text-align: center; }

.vibes-disclaimer {
    font-size: 12px;
    color: var(--text-faint);
    font-style: italic;
}
.vibes-disclaimer.center { text-align: center; }

.badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 28px;
}
.badge-dot {
    width: 7px; height: 7px;
    background: rgb(var(--vibe-rgb));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(var(--vibe-rgb), 0.7);
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* =====================================================================
   INTRO PANEL
   ===================================================================== */
.intro-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    text-align: center;
}
@media (min-width: 768px) { .intro-wrap { padding: 40px 20px 100px; } }

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-primary, #fff);
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}
.hero-title-accent {
    background: linear-gradient(135deg, #facc15, #f472b6, #22d3ee, #9061ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 6s linear infinite;
    display: inline-block;
}

.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-dim);
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto 36px;
}

.type-preview {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 360px;
    margin: 0 auto;
}
.type-grid span {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    transition: color 0.15s, border-color 0.15s;
}
.type-grid span:hover { color: var(--text-primary, #fff); border-color: rgba(var(--vibe-rgb), 0.4); }

/* =====================================================================
   QUIZ PANEL
   ===================================================================== */
.quiz-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 20px 80px;
}
.progress-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.progress-bar {
    height: 5px;
    background: rgba(var(--glass-overlay-color, 255, 255, 255), 0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 28px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f472b6, #9061ff, #22d3ee, #f472b6);
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
    margin-bottom: 14px;
}
@media (min-width: 600px) { .quiz-card { padding: 32px 28px; margin-bottom: 18px; } }
@media (min-width: 900px) { .quiz-card { padding: 40px 36px; } }

.quiz-q {
    font-size: clamp(1.15rem, 2.4vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1.3;
    margin: 8px 0 20px;
    letter-spacing: -0.012em;
}
@media (min-width: 600px) { .quiz-q { margin-bottom: 28px; } }

.answer-list {
    display: flex; flex-direction: column; gap: 9px;
}
.answer-btn {
    display: flex; align-items: flex-start;
    width: 100%;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.45;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
@media (min-width: 600px) {
    .answer-btn { padding: 18px 22px; font-size: 16px; }
}
.answer-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.06);
}
.answer-letter {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.16);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #a78bfa;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 14px;
    margin-right: 14px;
    margin-top: -2px;
}
.answer-btn:hover .answer-letter { background: rgba(167, 139, 250, 0.3); color: var(--text-primary, #fff); }

/* =====================================================================
   COHORT PANEL (about you — birth year + optional details)
   ===================================================================== */
.cohort-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 20px 80px;
}
.cohort-card { padding: 26px 22px; }
@media (min-width: 600px) { .cohort-card { padding: 40px 36px; } }

.cohort-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text-primary, #fff);
    margin: 6px 0 10px;
}
.cohort-title-soft {
    color: var(--text-dim);
    font-weight: 500;
}
.cohort-sub {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.cohort-field {
    margin-bottom: 22px;
}
.cohort-label {
    display: block;
    margin-bottom: 10px;
}
.cohort-label-text {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #fff);
    letter-spacing: -0.005em;
}
.cohort-label-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}

.cohort-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23a4abc4' stroke-width='2'%3e%3cpath d='M2 4l4 4 4-4' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.cohort-select:focus {
    outline: 0;
    border-color: rgba(var(--vibe-rgb), 0.7);
    background-color: rgba(var(--vibe-rgb), 0.04);
}

.cohort-warning {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(251, 146, 60, 0.10);
    border: 1px solid rgba(251, 146, 60, 0.35);
    border-radius: var(--radius-sm);
    color: #fbbf86;
    font-size: 13px;
    line-height: 1.5;
}

.cohort-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 4px 0 22px;
    border-radius: var(--radius-sm);
    background: rgba(var(--vibe-rgb), 0.06);
    border: 1px dashed rgba(var(--vibe-rgb), 0.35);
    color: var(--text-dim);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 13.5px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cohort-more-toggle:hover {
    background: rgba(var(--vibe-rgb), 0.10);
    border-color: rgba(var(--vibe-rgb), 0.6);
    color: var(--text-primary, #fff);
}
.cohort-more-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(var(--vibe-rgb), 0.2);
    color: rgb(var(--vibe-rgb));
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.cohort-more-toggle[aria-expanded="true"] .cohort-more-icon {
    transform: rotate(45deg);
}

.cohort-more {
    display: none;
    padding: 18px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: -10px;
    margin-bottom: 18px;
    animation: fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cohort-more.open { display: block; }

.cohort-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cohort-chip {
    cursor: pointer;
    user-select: none;
}
.cohort-chip input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.cohort-chip span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-dim);
    transition: all 0.15s ease;
}
.cohort-chip:hover span {
    border-color: rgba(var(--vibe-rgb), 0.5);
    color: var(--text-primary, #fff);
}
.cohort-chip input:checked + span {
    background: linear-gradient(135deg, rgba(var(--vibe-rgb-2), 0.25), rgba(var(--vibe-rgb), 0.18));
    border-color: rgba(var(--vibe-rgb), 0.8);
    color: var(--text-primary, #fff);
    box-shadow: 0 6px 20px rgba(var(--vibe-rgb), 0.18);
}
.cohort-chip input:focus-visible + span {
    outline: 2px solid rgba(var(--vibe-rgb), 0.8);
    outline-offset: 2px;
}

.cohort-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}
.cohort-continue {
    width: 100%;
    max-width: 360px;
    padding: 16px 28px;
    font-size: 16px;
}
.cohort-continue:disabled {
    opacity: 0.5;
    pointer-events: none;
    animation: none;
}
.cohort-skip {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: rgba(var(--text-muted, 108, 115, 147), 0.4);
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}
.cohort-skip:hover { color: var(--text-primary, #fff); }

.cohort-privacy {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .cohort-card { padding: 22px 16px; }
    .cohort-chip span { padding: 7px 12px; font-size: 12.5px; }
}

/* Host-fit re-skin of the save-card. When the algorithm flags this
   visitor as a host candidate, give the save-card a more "this is for
   you" energy — accent border + brighter background. */
.save-card[data-host-fit="true"] {
    border-color: rgba(var(--vibe-rgb), 0.55);
    box-shadow:
        0 18px 60px rgba(var(--vibe-rgb), 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.save-card[data-host-fit="true"]::before {
    content: 'Host candidate';
    position: absolute;
    top: -10px; left: 24px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgb(var(--vibe-rgb-2)), rgb(var(--vibe-rgb)));
    color: #0c0a16;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
}
.save-card { position: relative; }

/* =====================================================================
   CALCULATING
   ===================================================================== */
.calc-wrap {
    max-width: 540px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}
.calc-spinner {
    width: 64px; height: 64px;
    margin: 0 auto 24px;
    color: rgb(var(--vibe-rgb));
    animation: pulse-glow 2.4s ease-in-out infinite;
}
.calc-spinner svg { width: 100%; height: 100%; }
.calc-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1.2;
    margin-bottom: 12px;
}
.calc-sub {
    color: var(--text-dim);
    line-height: 1.6;
}

/* =====================================================================
   RESULT — HERO
   ===================================================================== */
.result-hero {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    text-align: center;
    overflow: hidden;
}
@media (min-width: 768px) { .result-hero { padding: 32px 20px 50px; } }

.hero-orb {
    position: absolute;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 700px; max-width: 120vw;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--vibe-rgb), 0.32) 0%, rgba(var(--vibe-rgb), 0) 65%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: pulse-glow 4s ease-in-out infinite;
}

.hero-inner { position: relative; z-index: 1; }

.hero-emoji {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 20px;
    display: inline-block;
    animation: float-y 4s ease-in-out infinite;
}
@media (min-width: 768px) { .hero-emoji { font-size: 96px; } }

.hero-code {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 12vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg,
        rgb(var(--vibe-rgb)) 0%,
        rgb(var(--vibe-rgb-2)) 50%,
        rgb(var(--vibe-rgb)) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s linear infinite;
    text-shadow: 0 0 80px rgba(var(--vibe-rgb), 0.3);
    margin-bottom: 8px;
    display: inline-block;
}

.hero-name {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgb(var(--vibe-rgb));
    font-style: italic;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 18px;
    quotes: '"' '"';
}
.hero-tagline::before { content: open-quote; }
.hero-tagline::after { content: close-quote; }

.hero-shortdesc {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: var(--text-dim);
    max-width: 540px;
    margin: 0 auto 32px;
}

.rarity-block {
    display: inline-block;
    padding: 14px 24px;
    background: rgba(var(--vibe-rgb), 0.08);
    border: 1px solid rgba(var(--vibe-rgb), 0.3);
    border-radius: 14px;
}
.rarity-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: rgb(var(--vibe-rgb));
}

/* =====================================================================
   RESULT — SECTIONS
   ===================================================================== */
.result-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 20px;
}
@media (min-width: 768px) { .result-section { padding: 40px 20px; } }

.big-text {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 760px;
}

/* =====================================================================
   FAMOUS GRID
   ===================================================================== */
.famous-grid {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.famous-chip {
    padding: 9px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--text);
    transition: border-color 0.15s, color 0.15s;
}
.famous-chip:hover {
    border-color: rgba(var(--vibe-rgb), 0.4);
    color: rgb(var(--vibe-rgb));
}

/* =====================================================================
   MATCHES / ALL-ARCHETYPES GRID
   ===================================================================== */
.matches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 600px) { .matches-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .matches-grid { grid-template-columns: repeat(4, 1fr); } }

.match-card {
    background: linear-gradient(155deg, rgba(var(--vibe-rgb), 0.07), rgba(var(--glass-overlay-color, 255, 255, 255), 0.02));
    border: 1px solid rgba(var(--vibe-rgb), 0.22);
    border-radius: var(--radius);
    padding: 22px 20px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    cursor: pointer;
    display: block;
}
.match-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--vibe-rgb), 0.5);
    background: linear-gradient(155deg, rgba(var(--vibe-rgb), 0.12), rgba(var(--glass-overlay-color, 255, 255, 255), 0.04));
}
.match-card.is-current {
    border-color: rgba(var(--vibe-rgb), 0.6);
    box-shadow: 0 0 24px rgba(var(--vibe-rgb), 0.25);
}
.match-card.is-current::after {
    content: 'You';
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(var(--vibe-rgb), 0.18);
    border: 1px solid rgba(var(--vibe-rgb), 0.4);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(var(--vibe-rgb));
}
.match-emoji { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.match-code {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
    color: rgb(var(--vibe-rgb));
    margin-bottom: 4px;
}
.match-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #fff);
    margin-bottom: 10px;
}
.match-why {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* =====================================================================
   "YOUR MODE" — soft Brainflood angle
   ===================================================================== */
.shine-card {
    background: linear-gradient(135deg, rgba(var(--vibe-rgb), 0.12), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(var(--vibe-rgb), 0.3);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
}
@media (min-width: 768px) { .shine-card { padding: 48px 40px; } }

.shine-card-title {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 14px;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.shine-text {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-primary, #fff);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.005em;
    margin-bottom: 26px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.shine-ctas {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}

/* =====================================================================
   SHARE
   ===================================================================== */
.share-row {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: 28px;
}

/* =====================================================================
   CONFETTI
   ===================================================================== */
.confetti-piece {
    position: fixed; top: 0;
    width: 9px; height: 16px;
    pointer-events: none;
    z-index: 100;
    animation: confetti-drop 3.5s linear forwards;
    border-radius: 1px;
}

/* =====================================================================
   SCROLLBAR
   ===================================================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #253068; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--vibe-rgb)); }

/* =====================================================================
   SAVE REPORT — card + modal
   ===================================================================== */
.save-card {
    background: linear-gradient(135deg, rgba(var(--vibe-rgb), 0.10), rgba(var(--vibe-rgb-2), 0.04));
    border: 1px solid rgba(var(--vibe-rgb), 0.3);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
@media (min-width: 768px) { .save-card { padding: 40px 36px; } }

.save-card-icon { font-size: 32px; margin-bottom: 10px; line-height: 1; }
.save-card-title {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 14px;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.save-card-body {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: var(--text);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 22px;
}
.save-card-body strong {
    color: rgb(var(--vibe-rgb));
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.02em;
}
.save-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #0c0a16;
    background: linear-gradient(135deg, rgb(var(--vibe-rgb-2)), rgb(var(--vibe-rgb)));
    border: 0;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(var(--vibe-rgb), 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(var(--vibe-rgb), 0.55);
}
.save-card-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
    letter-spacing: 0.02em;
}
.action-btn-save {
    background: rgba(var(--vibe-rgb), 0.12);
    border-color: rgba(var(--vibe-rgb), 0.4);
    color: var(--text-primary, #fff);
}
.action-btn-save:hover {
    background: rgba(var(--vibe-rgb), 0.2);
    border-color: rgba(var(--vibe-rgb), 0.6);
}

/* ===== Save Modal ===== */
.save-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.save-overlay.active { display: flex; opacity: 1; }
.save-modal-card {
    position: relative;
    max-width: 460px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: var(--bg-secondary, #0c1229);
    border: 1px solid rgba(var(--vibe-rgb), 0.3);
    border-radius: 20px;
    padding: 36px 28px 28px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 60px rgba(var(--vibe-rgb), 0.15);
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.save-overlay.active .save-modal-card { transform: scale(1) translateY(0); opacity: 1; }
@media (max-width: 480px) {
    .save-modal-card { padding: 30px 20px 22px; }
}
.save-close {
    position: absolute;
    top: 12px; right: 12px;
    background: none; border: 0;
    color: var(--text-muted, #64748b);
    padding: 8px; border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    display: inline-flex; align-items: center; justify-content: center;
}
.save-close:hover { color: var(--text-primary, #fff); background: rgba(var(--glass-overlay-color, 255, 255, 255), 0.05); }
.save-badge {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: rgb(var(--vibe-rgb));
    background: rgba(var(--vibe-rgb), 0.12);
    border: 1px solid rgba(var(--vibe-rgb), 0.3);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.save-title {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.save-body {
    font-size: 15px;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}
.save-body strong {
    color: rgb(var(--vibe-rgb));
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.02em;
}
.save-actions {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 14px;
}
.save-cta-primary {
    display: block;
    padding: 13px 22px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #0c0a16;
    background: linear-gradient(135deg, rgb(var(--vibe-rgb-2)), rgb(var(--vibe-rgb)));
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(var(--vibe-rgb), 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.save-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(var(--vibe-rgb), 0.55);
}
.save-cta-secondary {
    display: block;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.save-cta-secondary:hover {
    color: var(--text-primary, #fff);
    border-color: rgba(var(--vibe-rgb), 0.4);
    background: var(--surface);
}
.save-note {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* =====================================================================
   MOBILE + HD POLISH
   ===================================================================== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

@media (max-width: 480px) {
    .page-pad { padding-top: calc(var(--banner-h, 32px) + 3.5rem); }
    .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
    .intro-wrap { padding: 16px 16px 60px; }
    .badge-pill { padding: 5px 12px; font-size: 12px; }
    .hero-emoji { font-size: 60px; margin-bottom: 14px; }
    .hero-code { font-size: clamp(2.75rem, 14vw, 4rem); }
    .hero-name { font-size: clamp(1.4rem, 5vw, 2rem); }
    .hero-tagline { font-size: 1rem; padding: 0 4px; }
    .rarity-block { padding: 12px 18px; }
    .quiz-wrap { padding: 12px 16px 60px; }
    .progress-meta { margin-bottom: 10px; }
    .progress-bar { margin-bottom: 18px; }
    .answer-btn { padding: 14px 16px; font-size: 15px; }
    .answer-letter { width: 26px; height: 26px; font-size: 13px; margin-right: 11px; }
    .result-section { padding: 22px 16px; }
    .result-hero { padding: 16px 16px 28px; }
    .shine-card { padding: 26px 20px; }
    .shine-ctas { flex-direction: column; align-items: stretch; gap: 8px; }
    .shine-ctas .action-btn { width: 100%; }
    .type-grid { gap: 6px; max-width: 100%; }
    .type-grid span { font-size: 12px; padding: 8px 0; }
}

@media (max-width: 360px) {
    .hero-title { font-size: 1.85rem; }
    .hero-code { font-size: 2.5rem; }
    .answer-btn { padding: 12px 14px; font-size: 14.5px; line-height: 1.4; }
}

@media (min-width: 768px) {
    .quiz-wrap { padding: 32px 28px 80px; }
}

@media (min-width: 1280px) {
    /* Nav width inherits from /css/nav.css default (80rem). */
    .result-section { max-width: 920px; }
    .result-hero { max-width: 920px; }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
    .hero-orb {
        background:
            radial-gradient(circle, rgba(var(--vibe-rgb), 0.32) 0%, rgba(var(--vibe-rgb), 0) 65%),
            url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .calc-wrap { padding: 40px 20px; }
    .calc-spinner { width: 48px; height: 48px; margin-bottom: 16px; }
    .intro-wrap { padding-top: 12px; padding-bottom: 32px; }
    .hero-title { font-size: 2rem; margin-bottom: 14px; }
    .hero-sub { margin-bottom: 20px; font-size: 0.95rem; }
    .type-preview { margin-top: 24px; padding-top: 20px; }
}

@media (hover: none) and (pointer: coarse) {
    .answer-btn:hover { transform: none; }
    .match-card:hover { transform: none; }
    .answer-btn { min-height: 56px; }
}

@media (max-width: 600px) {
    .retake-fab { bottom: 14px; right: 14px; padding: 9px 13px; font-size: 12px; }
}

/* ============== TRUST ROW (intro) ============== */
.quiz-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.25rem auto 0;
    max-width: 44rem;
}
.quiz-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    color: var(--text-dim, #a4abc4);
}
.quiz-trust-chip .emoji { font-size: 0.95rem; line-height: 1; }

/* ============== HOST/PLAYER FORK (result) ============== */
.fork-card {
    background: rgba(var(--vibe-rgb, 244, 114, 182), 0.04);
    border: 1px solid rgba(var(--vibe-rgb, 244, 114, 182), 0.15);
    border-radius: 18px;
    padding: 28px 22px;
}
.fork-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--text-bright, #e2e8f0);
    margin: 0.35rem 0 1.25rem;
}
.fork-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .fork-grid { grid-template-columns: 1fr 1fr; } }
.fork-option {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.4rem 1.2rem;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.fork-option-player { border-color: rgba(34, 211, 238, 0.22); }
.fork-option-host { border-color: rgba(244, 114, 182, 0.22); }
.fork-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.4);
}
.fork-option-player:hover { border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 10px 32px rgba(34, 211, 238, 0.18); }
.fork-option-host:hover { border-color: rgba(244, 114, 182, 0.55); box-shadow: 0 10px 32px rgba(244, 114, 182, 0.18); }
.fork-emoji { font-size: 2rem; line-height: 1; }
.fork-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright, #e2e8f0);
    margin: 0;
}
.fork-desc {
    color: var(--text-dim, #a4abc4);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}
.fork-cta {
    margin-top: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
}
.fork-option-player .fork-cta { color: var(--color-cyan, #22d3ee); }
.fork-option-host .fork-cta { color: var(--color-pink, #f472b6); }
.inline-link {
    color: var(--color-cyan, #22d3ee);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}
.inline-link:hover { color: var(--color-accent, #a78bfa); }

/* ============== CROSS-TOOL STRIP ============== */
.cross-tool-strip {
    padding: 1.5rem 0 0;
}
.cross-tool-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--text-bright, #e2e8f0);
    text-align: center;
    margin: 0.35rem 0 1.25rem;
}
.cross-tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .cross-tool-grid { grid-template-columns: 1fr 1fr; } }
.cross-tool-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cross-tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 10px 28px rgba(167, 139, 250, 0.18);
}
.cross-tool-emoji { font-size: 1.8rem; line-height: 1; }
.cross-tool-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright, #e2e8f0);
    margin: 0;
}
.cross-tool-desc {
    color: var(--text-dim, #a4abc4);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}
.cross-tool-cta {
    margin-top: 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-cyan, #22d3ee);
}

/* ============== FAQ STRIP ============== */
.faq-strip {
    max-width: 720px;
    margin: 2.5rem auto 3.5rem;
    padding: 0 1.25rem;
}
.faq-strip[hidden] { display: none; }
.faq-strip-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    font-weight: 700;
    color: var(--text-bright, #e2e8f0);
    text-align: center;
    margin: 0 0 1.5rem;
}
.faq-item {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.4rem 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq-q {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 2rem 0.85rem 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-bright, #e2e8f0);
    position: relative;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--color-accent, #a78bfa);
    line-height: 1;
    transition: transform 0.18s ease;
}
.faq-item[open] .faq-q::after { content: '\2212'; }
.faq-a {
    padding: 0 0 1rem 0;
    color: var(--text-dim, #a4abc4);
    font-size: 0.95rem;
    line-height: 1.6;
}
.faq-a a { color: var(--color-cyan, #22d3ee); text-decoration: underline; }

@media (max-width: 600px) {
    .quiz-trust-row { gap: 0.4rem; }
    .quiz-trust-chip { font-size: 0.72rem; padding: 0.3rem 0.65rem; }
}
