@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    color-scheme: dark;
    --bg-purple: #1A0B2E;
    --bg-glass: rgba(34, 20, 42, .84);
    --teal-glass: rgba(20, 45, 47, .83);
    --pink: #E77FA4;
    --pink-bright: #FF007F;
    --gold: #D8BD78;
    --light: #F8F1E9;
    --muted: #D0C4C5;
    --line: rgba(216, 189, 120, .25);
    --bg-purple-solid: var(--bg-purple);
    --bg-purple-glass: var(--bg-glass);
    --card-teal-glass: var(--teal-glass);
    --btn-pink: var(--pink);
    --badge-gold: var(--gold);
    --text-light: var(--light);
    --text-muted: var(--muted);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--light);
    font-family: Inter, sans-serif;
    background: var(--bg-purple) url('assets/sexscapade_backing.jpg') center / cover fixed no-repeat;
}
body::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 34%, rgba(98, 54, 70, .18), transparent 62%),
        linear-gradient(145deg, rgba(30, 15, 36, .58), rgba(13, 40, 43, .54));
}
body > * { position: relative; z-index: 1; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: -.025em; }
h2 { color: var(--gold); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; letter-spacing: -.015em; }
p { color: var(--muted); line-height: 1.8; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-nav {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px clamp(20px, 5vw, 64px);
    background: linear-gradient(to bottom, rgba(26, 11, 46, .68), transparent);
}
.logo {
    color: var(--gold);
    font: 700 1.4rem "Playfair Display", Georgia, serif;
    letter-spacing: .075em;
    text-decoration: none;
    text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link {
    color: var(--light);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--pink); }
.dropdown { position: relative; }
.dropdown-toggle { color: var(--gold); border: 0; background: transparent; cursor: pointer; }
.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    min-width: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(29, 37, 43, .97);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .32);
    backdrop-filter: blur(18px);
}
.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content, .dropdown.open .dropdown-content { display: block; }
.dropdown-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--light);
    font-size: .9rem;
    text-decoration: none;
}
.dropdown-content span {
    display: block;
    padding: 12px 16px;
    color: var(--muted);
    font-size: .9rem;
}
.nav-fire-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-fire-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    background: rgba(216, 189, 120, .16);
    color: var(--gold);
    border: 1px solid rgba(216, 189, 120, .35);
    margin-left: 4px;
    text-transform: none;
    transition: all .2s ease;
}
.nav-fire-badge.active {
    background: linear-gradient(135deg, rgba(255, 107, 0, .25), rgba(255, 0, 128, .25));
    border-color: #ff6b00;
    color: #ffae70;
    box-shadow: 0 0 8px rgba(255, 107, 0, .25);
}
.dropdown-content a:hover { color: var(--pink); background: rgba(255, 0, 127, .12); }
.dropdown-content span { color: var(--muted); }

.btn {
    display: inline-block;
    padding: 14px 23px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, #E18AA7, #CD6F93);
    box-shadow: 0 8px 24px rgba(134, 57, 86, .26);
    font-weight: 600;
    letter-spacing: .025em;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(134, 57, 86, .34); }
.btn.secondary { color: var(--light); border-color: rgba(216, 189, 120, .54); background: rgba(26, 11, 46, .2); box-shadow: none; }
.btn.secondary:hover { color: var(--bg-purple); border-color: var(--gold); background: var(--gold); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.glass-card, .card, .generator-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(34, 57, 56, .87), var(--teal-glass));
    box-shadow: 0 16px 44px rgba(17, 8, 25, .24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.hero {
    min-height: 76vh;
    display: grid;
    align-items: center;
    padding: 56px clamp(24px, 9vw, 140px);
}
.hero-content { max-width: 700px; animation: rise-in .7s ease both; }
.hero-content p { max-width: 620px; font-size: 1.06rem; }
.eyebrow { color: #E79AB4; font-size: .76rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.section { padding: 84px clamp(20px, 5vw, 64px); background: linear-gradient(180deg, rgba(34, 20, 42, .78), rgba(25, 22, 38, .9)); backdrop-filter: blur(12px); }
.section-heading { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-heading h2 { margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; max-width: 1320px; margin: 0 auto; }
.month-card, .tool-card { padding: 28px; }
.month-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.month-card:hover { transform: translateY(-4px); border-color: rgba(231, 127, 164, .52); box-shadow: 0 22px 48px rgba(17, 8, 25, .32); }
.month-card-heading { min-height: 112px; padding: 16px 23px 12px; }
.month-card-heading h3 { margin: 5px 0 0; }
.month-card-image-wrap { position: relative; height: 500px; overflow: hidden; background: rgba(13, 40, 49, .8); }
.month-card-image-wrap::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(180deg, transparent, rgba(16, 12, 25, .35)); pointer-events: none; }
.month-card-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.month-card:hover .month-card-image { transform: scale(1.045); }
.month-card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-height: 300px; padding: 23px; }
.month-card-content > p:not(.role-flexible) { flex: 1 0 auto; }
.month-card-content .month-actions { width: 100%; }
.month-card-content > .btn { width: 100%; margin-top: auto; }
.tool-card { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.tool-card:hover { transform: translateY(-4px); border-color: rgba(231, 127, 164, .52); box-shadow: 0 22px 48px rgba(17, 8, 25, .32); }
.month-card h3, .tool-card h3 { margin: 6px 0 10px; font-size: 1.45rem; }
.month-number { color: #E79AB4; font-size: .76rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.month-card .btn, .tool-card .btn { margin-top: 12px; }
.content-section { width: min(980px, calc(100% - 32px)); margin: 38px auto 70px; padding: clamp(22px, 5vw, 48px); }
.content-section fieldset { display: flex; flex-wrap: wrap; gap: 18px; margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.content-section fieldset legend { padding: 0 8px; color: var(--gold); font-weight: 600; }
.content-section fieldset label { display: flex; align-items: center; gap: 8px; }
.content-section [data-profile-form] { margin-bottom: 30px; }
.content-section [data-accept-invite-form] { display: grid; gap: 12px; max-width: 440px; margin-top: 24px; }
.content-section [data-accept-invite-form] input { display: block; width: 100%; margin-top: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--light); background: rgba(26, 11, 46, .56); }
.profile-name-label { display: grid; gap: 8px; max-width: 440px; color: var(--gold); font-weight: 600; }
.profile-name-label input { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--light); background: rgba(26, 11, 46, .56); }
.content-section [data-invite-url] { display: block; max-width: 100%; overflow-wrap: anywhere; margin: 12px 0; color: var(--gold); }
.content-section [data-invite-qr] { display: block; max-width: 100%; margin: 12px 0; image-rendering: pixelated; }
.content-section [data-profile-status].account-error { color: #ff9aab; }
.content-section [hidden] { display: none !important; }
.content-section > h1, .content-section > h2 { margin-top: 0; }
.role-choice { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 28px; }
.role-choice .btn { flex: 1 1 210px; }
.dossier-block { margin: 24px 0; padding: 22px 24px; border: 1px solid rgba(216, 189, 120, .15); border-left: 3px solid var(--gold); border-radius: 0 16px 16px 0; background: rgba(38, 28, 45, .43); }
.dossier-block h2 { margin: 0 0 8px; font-size: 1.5rem; }
.safety-note { padding: 16px; border: 1px solid rgba(231, 127, 164, .28); border-radius: 14px; background: rgba(231, 127, 164, .07); }
.footer-cta { padding: 64px 20px; text-align: center; }
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Matchmaker */
.page-overlay { position: fixed; z-index: -1; inset: 0; background: rgba(26, 11, 46, .55); }
.home-link { position: absolute; top: 20px; left: 22px; z-index: 2; color: var(--gold); text-decoration: none; }
.engine-container { width: min(740px, calc(100% - 28px)); margin: 78px auto 40px; }
.engine-container [hidden] { display: none !important; }
.engine-container.results-mode { width: min(1100px, calc(100% - 28px)); }
.site-nav + .engine-container { margin-top: 30px; }
.view { display: none; }
.view.active { display: block; animation: rise-in .25s ease both; }
.engine-container > .view > h1, #view-home > h1 { margin: 0 0 8px; text-align: center; }
.engine-container > .view > p { text-align: center; }
.card { overflow: hidden; margin: 18px 0; }
.card-padded { padding: clamp(22px, 5vw, 38px); }
.card-padded h2 { margin-top: 0; text-align: center; }
.card-image { display: block; width: 100%; max-height: 280px; object-fit: cover; background: rgba(0,0,0,.18); }
.card-content { padding: 24px; }
#card-title { margin: 12px 0; font-size: 2rem; }
.category-badge { color: var(--pink); font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.code-input { display: block; width: 100%; margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--light); background: rgba(26, 11, 46, .75); }
.code-input::placeholder { color: #aaa2b3; }
.uppercase { text-transform: uppercase; }
.code-display { margin: 20px 0; padding: 16px; border: 1px dashed var(--gold); border-radius: 12px; color: var(--gold); font-size: clamp(1.3rem, 5vw, 2rem); font-weight: 700; letter-spacing: .08em; text-align: center; overflow-wrap: anywhere; }
.slider-container { margin-top: 22px; }
#rating-slider { width: 100%; accent-color: var(--pink); }
.sentiment-label { margin: 12px 0; color: var(--gold); font-weight: 700; text-align: center; }
.view .btn { width: 100%; margin: 8px 0; }
#view-results { width: 100%; margin: 0 auto; }
#pdf-wrapper { width: 100%; }
.results-title { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 2.5rem); text-align: center; }
.results-intro { max-width: 680px; margin: 0 auto 32px; text-align: center; }
#results-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; }
.tier-section { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(34, 57, 56, .84), rgba(13, 40, 49, .78)); box-shadow: 0 14px 36px rgba(17, 8, 25, .2); text-align: center; }
.tier-header { margin: 0 0 8px; color: var(--gold); font: 700 clamp(1.18rem, 2.7vw, 1.5rem)/1.3 "Playfair Display", Georgia, serif; text-align: center; }
.tier-intro { min-height: 2.8em; margin: 0 0 14px; font-size: .82rem; line-height: 1.5; text-align: center; }
.tier-list { max-height: min(42vh, 330px); min-height: 130px; overflow-y: auto; overscroll-behavior: contain; padding: 0 10px; border-top: 1px solid rgba(255,255,255,.1); scrollbar-color: rgba(216, 189, 120, .55) rgba(13, 40, 49, .55); scrollbar-width: thin; }
.tier-list:focus-visible { border-radius: 6px; }
.match-item { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); text-align: center; }
.pdf-checkbox { display: none; }
.match-title { font-weight: 700; }
.match-desc { margin-top: 4px; color: var(--muted); font-size: .84rem; }
#view-results > .btn { display: block; width: min(360px, 100%); margin: 10px auto; }
.partner-highlights-trigger { display: block; width: min(360px, 100%); margin: 0 auto 28px; }
.pdf-hint { margin: -17px 0 24px; color: var(--muted); font-size: .82rem; text-align: center; }
.pdf-download-status { min-height: 1.4em; margin: 4px auto 8px; font-size: .85rem; text-align: center; }
.tier-empty { margin: 34px 0; color: var(--muted); font-size: .9rem; text-align: center; }
.partner-highlights-dialog { position: fixed; width: min(560px, calc(100% - 28px)); max-width: none; max-height: min(82vh, 740px); margin: auto; padding: clamp(24px, 5vw, 38px); overflow: auto; border: 1px solid var(--line); border-radius: 22px; color: var(--light); background: linear-gradient(145deg, #22142a, #0d2831); box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.partner-highlights-dialog::backdrop { background: rgba(12, 5, 21, .82); backdrop-filter: blur(8px); }
.partner-highlights-dialog .eyebrow { margin: 0 28px 8px 0; }
.partner-highlights-dialog h2 { margin: 0 28px 8px 0; font-size: 1.8rem; }
.partner-highlights-intro { margin: 0 0 20px; font-size: .9rem; }
.partner-highlights-close-form { position: absolute; top: 8px; right: 8px; }
.partner-highlights-list { max-height: min(45vh, 390px); margin: 18px 0 22px; overflow-y: auto; overscroll-behavior: contain; }
.partner-highlight-item { display: grid; gap: 4px; padding: 13px 4px; border-top: 1px solid rgba(255,255,255,.09); text-align: center; }
.partner-highlight-item span { color: var(--muted); font-size: .82rem; }
.partner-highlights-dialog > form:last-child .btn { width: 100%; }
.retrieve-participant-options { display: grid; gap: 10px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.retrieve-participant-options legend { padding: 0 8px; color: var(--gold); font-weight: 600; }
.retrieve-participant-options label { display: flex; align-items: center; gap: 9px; color: var(--light); font-size: .9rem; cursor: pointer; }
.retrieve-participant-options input { accent-color: var(--pink); }
.status-message { min-height: 1.4em; color: var(--pink); text-align: center; }

/* Age declaration */
.age-gate {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(12, 5, 21, .88);
    backdrop-filter: blur(14px);
}
.age-dialog { width: min(480px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #1a0b2e; text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.age-dialog h2 { margin: 0 0 12px; }
.age-dialog .btn { width: 100%; margin-top: 12px; }
.age-error { min-height: 1.3em; color: #ff9acb; font-size: .9rem; }
body.age-locked { overflow: hidden; }

.generator-card { width: min(600px, calc(100% - 28px)); margin: 40px auto; padding: clamp(28px, 6vw, 56px); text-align: center; }
.name-display { min-height: 80px; margin: 32px 0; color: var(--gold); font: 700 clamp(2rem, 8vw, 3.5rem) "Playfair Display", Georgia, serif; transition: opacity .25s; }
.name-display.fade { opacity: 0; }
.name-generate-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.name-generate-actions .btn { flex: 1 1 190px; }
.roulette-result { min-height: 2em; margin: 24px 0; color: var(--gold); font: 700 1.6rem "Playfair Display", Georgia, serif; }
.dice-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 28px 0 8px; }
.die { flex: 1 1 200px; max-width: 240px; padding: 20px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13, 40, 49, .6); }
.die-label { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.die-face { display: block; min-height: 2.4em; color: var(--gold); font: 700 1.3rem "Playfair Display", Georgia, serif; }
.dice-result { min-height: 2em; margin: 16px 0 24px; font-size: 1.05rem; }
.location-summary { color: var(--gold); font-weight: 700; margin: 8px 0 24px; }
.location-category { margin-bottom: 28px; text-align: left; }
.location-category h2 { font-size: 1.1rem; margin-bottom: 12px; }
.location-list { display: flex; flex-direction: column; gap: 8px; }
.location-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13, 40, 49, .4); }
.location-item[data-status="done"] { border-color: #4caf7d; background: rgba(76, 175, 125, .12); }
.location-item[data-status="bucket"] { border-color: var(--gold); background: rgba(229, 197, 90, .1); }
.location-item-name { font-weight: 600; }
.location-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.location-item-actions button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: transparent; color: inherit; cursor: pointer; font-size: .85rem; }
.location-item-actions button[aria-pressed="true"][data-location-status="done"] { color: #0c0515; background: #4caf7d; border-color: #4caf7d; }
.location-item-actions button[aria-pressed="true"][data-location-status="bucket"] { color: var(--bg-purple); background: var(--gold); border-color: var(--gold); }
.location-item-actions button[aria-pressed="true"][data-position-status="done"] { color: #0c0515; background: #4caf7d; border-color: #4caf7d; }
.location-item-actions button[aria-pressed="true"][data-position-status="bucket"] { color: var(--bg-purple); background: var(--gold); border-color: var(--gold); }
.location-checklist-card { width: min(760px, calc(100% - 28px)); text-align: center; }
.adventure-score-headline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.adventure-score-value { color: var(--gold); font: 700 2.4rem "Playfair Display", Georgia, serif; }
.adventure-score-tier { font-weight: 600; opacity: .9; }
.adventure-score-note { font-size: .9rem; opacity: .75; margin-bottom: 16px; }
.adventure-score-bars { display: flex; flex-direction: column; gap: 10px; }
.adventure-score-bar-row { display: grid; grid-template-columns: minmax(120px, 160px) 1fr auto; align-items: center; gap: 10px; font-size: .9rem; }
.adventure-score-bar-track { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.adventure-score-bar-fill { position: absolute; inset: 0; width: 0; border-radius: 999px; background: var(--gold); }
.account-nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-nav-button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(13, 40, 49, .6); cursor: pointer; }
.account-create-button { color: var(--bg-purple); border-color: var(--gold); background: var(--gold); }
.account-create-button:hover { color: var(--bg-purple); background: #e3c14d; }
.account-dialog {
    position: fixed;
    inset: 0;
    width: min(480px, calc(100% - 28px));
    max-width: none;
    max-height: min(90vh, 760px);
    margin: auto;
    padding: 32px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--light);
    background: #1a0b2e;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
.account-dialog::backdrop { background: rgba(12, 5, 21, .82); backdrop-filter: blur(8px); }
.account-dialog h2 { margin: 0 30px 12px 0; }
.account-dialog label { display: grid; gap: 7px; margin: 16px 0; color: var(--light); font-size: .92rem; font-weight: 600; }
.account-dialog label[hidden] { display: none !important; }
.account-dialog input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--light); background: rgba(13, 40, 49, .8); }
.account-dialog .btn { width: 100%; margin: 8px 0; }
.account-close { position: absolute; top: 12px; right: 16px; border: 0; color: var(--muted); background: transparent; font-size: 1.8rem; cursor: pointer; }
.account-switch { display: block; margin: 12px auto 0; border: 0; color: var(--gold); background: transparent; text-decoration: underline; cursor: pointer; }
.account-help, .account-error { font-size: .87rem; }
.account-error { min-height: 1.4em; color: #ff9acb; }
.scenario-preferences, .month-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.scenario-preferences button, .month-actions button {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(26, 11, 46, .44);
    cursor: pointer;
}
.scenario-preferences button[aria-pressed="true"], .month-actions button[aria-pressed="true"] { color: var(--light); border-color: var(--pink); background: rgba(255, 0, 127, .18); }
.role-flexible { font-size: .88rem; }
.account-notice { position: fixed; z-index: 800; right: 20px; bottom: 20px; max-width: min(440px, calc(100vw - 40px)); margin: 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--light); background: rgba(13, 40, 49, .98); box-shadow: 0 10px 35px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.account-notice.visible { opacity: 1; transform: translateY(0); }

@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
    .site-nav { align-items: flex-start; flex-direction: column; gap: 14px; }
    .nav-links { flex-wrap: wrap; gap: 14px; }
    .dropdown-content { right: 0; left: auto; }
    .hero { min-height: 70vh; padding-top: 18px; }
    .engine-container { margin-top: 68px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* Content-led welcome page */
.site-nav {
    align-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
    background: linear-gradient(to bottom, rgba(26, 11, 46, .78), rgba(26, 11, 46, .12));
}
.nav-links { gap: clamp(10px, 2vw, 22px); }
.nav-links > .nav-link { color: rgba(248, 241, 233, .9); }
.nav-links > .nav-link:hover { color: #F0B4C4; }
.account-nav-actions { flex-wrap: nowrap; gap: 8px; }
.account-nav-button { padding: 8px 12px; border-radius: 999px; font-size: .68rem; }
.account-create-button {
    border-color: rgba(216, 189, 120, .52);
    color: #21182A;
    background: linear-gradient(135deg, #E9D8AA, #CDB879);
}
.account-create-button:hover { color: #21182A; background: #F0DDA8; }
.dropdown-toggle { padding: 8px 0; }
.dropdown-content { background: rgba(31, 27, 39, .97); }

.welcome-hero {
    position: relative;
    min-height: min(730px, calc(100svh - 70px));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    padding: clamp(60px, 9vh, 112px) clamp(24px, 9vw, 140px);
    isolation: isolate;
}
.welcome-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(25, 12, 31, .62), rgba(25, 12, 31, .16) 78%),
        linear-gradient(0deg, rgba(26, 11, 46, .46), transparent 58%);
}
.welcome-copy { max-width: 700px; }
.welcome-copy h1 { max-width: 680px; margin: 18px 0 22px; font-size: clamp(3rem, 6.8vw, 5.5rem); }
.welcome-copy > p:not(.eyebrow):not(.hero-aside) { max-width: 590px; color: rgba(248, 241, 233, .9); font-size: clamp(1.02rem, 1.55vw, 1.15rem); }
.welcome-cta { margin-top: 22px; padding: 17px 26px; font-size: 1.02rem; box-shadow: 0 12px 34px rgba(117, 54, 79, .35); }
.welcome-cta span { margin-left: 8px; }
.welcome-copy .hero-aside { margin-top: 14px; font-size: .86rem; }
.hero-ornament {
    align-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: rgba(248, 241, 233, .74);
    font: italic 1rem "Playfair Display", Georgia, serif;
    white-space: nowrap;
}
.ornament-line { width: clamp(28px, 6vw, 82px); height: 1px; background: linear-gradient(90deg, var(--gold), rgba(216, 189, 120, .08)); }
.about-section { padding-top: clamp(74px, 9vw, 116px); padding-bottom: clamp(74px, 9vw, 116px); }
.about-section .section-heading, .experience-section .section-heading { max-width: 690px; margin-bottom: 42px; }
.about-section .section-heading h2, .experience-section .section-heading h2 { margin-top: 12px; }
.about-section .section-heading > p:last-child, .experience-section .section-heading > p:last-child { font-size: 1.02rem; }
.how-it-works {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(216, 189, 120, .2);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(46, 35, 48, .62), rgba(21, 43, 44, .54));
    box-shadow: 0 20px 60px rgba(13, 7, 20, .18);
}
.how-it-works > .eyebrow { margin-top: 0; }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 22px 0 20px; padding: 0; list-style: none; }
.steps-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 12px 16px 0;
    border-top: 1px solid rgba(216, 189, 120, .23);
    color: var(--muted);
    font-size: .91rem;
    line-height: 1.65;
}
.steps-list strong { color: var(--light); font-weight: 600; }
.step-number { flex: 0 0 auto; color: #E79AB4; font: 600 .78rem Inter, sans-serif; letter-spacing: .08em; }
.account-aside { margin: 22px 0 0; padding: 15px 18px; border-left: 2px solid rgba(216, 189, 120, .65); color: rgba(248, 241, 233, .82); background: rgba(26, 11, 46, .22); font-size: .9rem; }
.experience-section { padding-top: clamp(76px, 9vw, 118px); padding-bottom: clamp(76px, 9vw, 118px); }
.experience-grid { max-width: 1240px; gap: 18px; }
.experience-card {
    position: relative;
    min-height: 285px;
    padding: 30px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(216, 189, 120, .09), transparent 46%),
        linear-gradient(145deg, rgba(34, 57, 56, .76), rgba(32, 25, 41, .86));
}
.experience-card::after {
    position: absolute;
    right: -25px;
    bottom: -70px;
    color: rgba(216, 189, 120, .07);
    content: attr(data-mark);
    font: 700 11rem "Playfair Display", Georgia, serif;
    line-height: 1;
    pointer-events: none;
}
.experience-number { display: block; margin-bottom: 26px; color: var(--gold); font: italic 1.15rem "Playfair Display", Georgia, serif; }
.experience-card h3 { position: relative; z-index: 1; margin: 8px 0 12px; color: var(--light); font-size: 1.65rem; }
.experience-card p:last-child { position: relative; z-index: 1; max-width: 340px; font-size: .96rem; }
.center-cta { margin: 38px 0 0; text-align: center; }
.center-cta .btn { padding-right: 25px; padding-left: 25px; }
.site-footer { padding: 52px clamp(22px, 6vw, 76px) 28px; border-top: 1px solid rgba(216, 189, 120, .17); background: rgba(19, 11, 28, .78); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 34px; align-items: center; max-width: 1240px; margin: 0 auto; }
.footer-contact { display: grid; gap: 7px; justify-items: end; }
.footer-contact > a { color: var(--light); text-decoration-color: rgba(216, 189, 120, .55); text-underline-offset: 4px; }
.footer-contact > a:hover { color: var(--gold); }
.footer-disclaimer { grid-column: 1 / -1; max-width: 920px; margin: 10px 0 0; font-size: .83rem; }
.footer-copyright { grid-column: 1 / -1; margin: 0; color: rgba(208, 196, 197, .72); font-size: .78rem; }

/* Sex Act Checklist & Fire Score Page */
.sex-act-checklist-card {
    width: min(840px, calc(100% - 28px));
    text-align: center;
}
.checklist-header-block {
    margin: 18px 0 24px;
}
.checklist-partner-note {
    color: #4caf7d;
    font-size: .88rem;
    font-weight: 600;
    margin-top: 6px;
}
.checklist-search-wrap {
    margin: 18px 0 14px;
}
.checklist-search-input {
    width: 100%;
    max-width: 520px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(13, 40, 49, .6);
    color: var(--light);
    font-size: .92rem;
    box-sizing: border-box;
}
.checklist-search-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(216, 189, 120, .3);
}
.checklist-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 20px;
}
.btn-filter {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(26, 11, 46, .4);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.btn-filter:hover {
    color: var(--light);
    border-color: rgba(216, 189, 120, .4);
}
.btn-filter.active {
    background: var(--gold);
    color: var(--bg-purple);
    border-color: var(--gold);
    font-weight: 700;
}
.act-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(13, 40, 49, .4);
    text-align: left;
}
.act-item[data-status="done"] {
    border-color: #4caf7d;
    background: rgba(76, 175, 125, .12);
}
.act-item[data-status="bucket"] {
    border-color: var(--gold);
    background: rgba(229, 197, 90, .1);
}
.act-item-info {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.act-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light);
}
.act-item-desc {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.4;
}
.location-item-actions button[aria-pressed="true"][data-act-status="done"] {
    color: #0c0515;
    background: #4caf7d;
    border-color: #4caf7d;
}
.location-item-actions button[aria-pressed="true"][data-act-status="bucket"] {
    color: var(--bg-purple);
    background: var(--gold);
    border-color: var(--gold);
}
.checklist-empty-note {
    padding: 30px;
    color: var(--muted);
    font-style: italic;
}

.fire-score-page-card {
    width: min(920px, calc(100% - 28px));
    text-align: center;
}
.fire-lead {
    max-width: 680px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
    line-height: 1.6;
}
.fire-score-hero {
    padding: 32px 24px;
    margin-bottom: 40px;
    border: 1px solid rgba(216, 189, 120, .3);
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 107, 0, .15), transparent 70%),
        linear-gradient(145deg, rgba(34, 57, 56, .6), rgba(32, 25, 41, .8));
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.fire-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.fire-score-big-value {
    color: #ffae70;
    font: 700 clamp(3.2rem, 9vw, 4.8rem) "Playfair Display", Georgia, serif;
    line-height: 1;
    text-shadow: 0 0 25px rgba(255, 107, 0, .45);
}
.fire-score-big-tier {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .04em;
}
.fire-score-sync-status {
    font-size: .92rem;
    color: var(--muted);
    margin-bottom: 24px;
}
.fire-score-sync-status a {
    color: var(--gold);
    text-decoration: underline;
}
.fire-score-bars-wrapper {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.fire-bar-row {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
}
.fire-bar-label {
    font-weight: 600;
    color: var(--light);
}
.fire-bar-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fire-bar-content .adventure-score-bar-track {
    flex: 1;
    height: 10px;
}
.fire-fill {
    background: linear-gradient(90deg, var(--gold), #ff6b00);
}
.fire-bar-detail {
    font-size: .84rem;
    color: var(--muted);
    white-space: nowrap;
    min-width: 120px;
    text-align: right;
}
.fire-score-tools-section {
    margin-top: 36px;
}
.fire-score-tools-section h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.section-subhead {
    color: var(--muted);
    margin-bottom: 24px;
}
.fire-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    text-align: left;
    margin-top: 20px;
}
.fire-tool-card {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    border-radius: 16px;
    transition: transform .2s ease, border-color .2s ease;
}
.fire-tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 189, 120, .45);
}
.fire-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.fire-tool-card h3 {
    font-size: 1.25rem;
    margin: 0 0 8px;
    color: var(--light);
}
.fire-tool-card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.5;
    flex: 1;
}
.fire-card-stat {
    margin: 12px 0 16px !important;
    font-size: .82rem !important;
    font-weight: 700;
    color: var(--gold) !important;
}
.fire-tool-card .btn {
    align-self: flex-start;
    padding: 10px 18px;
    font-size: .88rem;
    margin-top: auto;
}

/* Profile Fire Score Header & Tool Cards */
.fire-score-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.fire-score-profile-header h2 {
    margin: 0;
}
.fire-hub-link {
    padding: 8px 14px;
    font-size: .82rem;
}
.profile-checklist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.profile-tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(13, 40, 49, .4);
    text-decoration: none;
    color: var(--light);
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.profile-tool-card:hover {
    background: rgba(13, 40, 49, .7);
    border-color: var(--gold);
    transform: translateY(-2px);
}
.profile-tool-icon {
    font-size: 1.6rem;
    flex: 0 0 auto;
}
.profile-tool-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.profile-tool-info strong {
    font-size: .95rem;
    color: var(--light);
}
.profile-tool-info span {
    font-size: .8rem;
    color: var(--muted);
}
.profile-tool-arrow {
    color: var(--gold);
    font-size: 1.1rem;
    transition: transform .2s ease;
}
.profile-tool-card:hover .profile-tool-arrow {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .fire-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .fire-bar-detail {
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 800px) {
    .welcome-hero { grid-template-columns: 1fr; min-height: min(740px, calc(100svh - 115px)); }
    .hero-ornament { display: none; }
    .steps-list { grid-template-columns: 1fr; gap: 4px; }
    .steps-list li { padding: 15px 0; }
}
@media (max-width: 700px) {
    .site-nav { align-items: flex-start; gap: 11px; padding-top: 16px; padding-bottom: 16px; }
    .nav-links { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 7px 16px; }
    .nav-links > .nav-link { font-size: .69rem; }
    .account-nav-actions { gap: 6px; }
    .account-nav-button { padding: 7px 9px; font-size: .64rem; }
    .dropdown-content { right: 0; left: auto; }
    .welcome-hero { min-height: min(720px, calc(100svh - 105px)); padding-top: 43px; padding-bottom: 62px; }
    .welcome-copy h1 { font-size: clamp(2.9rem, 12.4vw, 4.25rem); }
    .welcome-cta { width: 100%; max-width: 390px; }
    .experience-card { min-height: 0; padding: 25px; }
    .footer-inner { grid-template-columns: 1fr; gap: 17px; }
    .footer-contact { justify-items: start; }
    .footer-disclaimer, .footer-copyright { grid-column: auto; }
    #results-container { grid-template-columns: 1fr; gap: 14px; }
    .tier-list { max-height: 340px; }
}
