:root {
    color-scheme: dark;
    --bg: #07121e;
    --surface: #0e2331;
    --border: #294957;
    --text: #eef4ed;
    --muted: #b0c5cd;
    --accent: #79e7de;
    --amber: #f3bf7b;
    --danger: #ffb0b9;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 20; background: var(--surface); padding: 14px; }
.skip-link:focus { top: 12px; }
body {
    margin: 0;
    background:
        radial-gradient(ellipse at 85% 0, #16404c66, transparent 48%),
        radial-gradient(ellipse at 25% 80%, #35244940, transparent 50%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 17px;
    background: #142e3d;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
button:hover, .button:hover { border-color: var(--accent); background: #1b3d4a; }
button:disabled { opacity: .5; cursor: wait; }
.quick-bets, .member-results { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.wallet-badge { color: var(--amber); font-weight: 700; }
.game-board { max-width: 760px; }
.game-board > button { margin: 5px; }
.mines-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 20px 0; max-width: 440px; }
.mines-board button { padding: 8px 2px; min-width: 0; aspect-ratio: 1; }
.game-result { font-size: 24px; color: var(--accent); }
.table-scroll { overflow: auto; max-width: 100%; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
caption { text-align: left; padding: 12px 0; color: var(--muted); }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: left; }
td { overflow-wrap: anywhere; min-width: 100px; }
.privacy { max-width: 850px; margin: 0 auto; padding: 40px 24px; line-height: 1.8; }
.primary {
    background: linear-gradient(120deg, #f8ce90, #eaa35e);
    border-color: #efb877;
    color: #24190f;
    font-weight: 750;
    box-shadow: 0 4px 24px #eaa35e1a;
}
.primary:hover { background: #ffda9d; border-color: #ffe0ad; box-shadow: 0 4px 28px #eaa35e35; }
.danger { color: var(--danger); }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 235px;
    border-right: 1px solid var(--border);
    padding: 36px 22px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #102b38, #081722 65%);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 1px; font-size: 15px; color: var(--amber); }
.brand-icon {
    color: var(--accent);
    padding: 12px 9px;
    border: 1px solid #6ec9c184;
    border-radius: 14px 4px;
    background: #163947;
    box-shadow: 0 0 25px #52e0d51a, inset 0 0 14px #52e0d512;
    font-family: Georgia, serif;
}
.brand small { display: block; color: var(--muted); font-size: 8px; letter-spacing: 2px; margin-top: 5px; }
.nav-label { font-size: 10px; letter-spacing: 2px; color: var(--muted); margin: 56px 10px 15px; }
nav { display: grid; gap: 7px; }
nav a { padding: 13px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; }
nav a span { font-size: 10px; opacity: .8; }
nav a:hover, nav a.active { background: #183c48; color: var(--accent); border-color: #38606a; }
nav a.active { box-shadow: inset 3px 0 var(--accent); }
.sidebar-bottom { margin-top: auto; padding-top: 45px; font-size: 8px; letter-spacing: 1px; color: var(--muted); }
.sidebar-bottom p { font-size: 12px; line-height: 1.8; letter-spacing: 0; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); margin-right: 5px; }
main { margin-left: 235px; padding: 0 5%; max-width: 1800px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 25px 0; border-bottom: 1px solid var(--border); font-size: 10px; letter-spacing: 2px; color: var(--muted); }
#account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; letter-spacing: 0; font-size: 13px; min-width: 0; }
#account > span { overflow-wrap: anywhere; }
#content { min-height: 74vh; padding: 40px 0; }
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid #3c6068;
    border-radius: 24px 6px;
    background: linear-gradient(135deg, #12313f, #0b1c2b 75%);
    box-shadow: 0 24px 70px #00000030, 0 0 40px #46cfc609;
}
.hero-copy { position: relative; z-index: 1; align-self: center; padding: 36px; min-width: 0; }
.hero-art { position: relative; margin: 0; min-height: 400px; background: #102a36; }
.hero-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 18px 0 30px #0b1c2b45; }
.eyebrow { font-size: 10px; letter-spacing: 3px; color: var(--accent); font-weight: 700; line-height: 1.8; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 3.8vw, 64px); font-weight: 400; letter-spacing: -1.5px; line-height: 1.12; margin: 23px 0; overflow-wrap: anywhere; text-wrap: balance; }
h1 em { font-weight: 400; color: var(--amber); }
h2 { font-family: Georgia, serif; font-size: 26px; font-weight: 400; margin-top: 0; }
h3 { font-size: 16px; margin-top: 0; color: #e4eee9; }
.lead { color: var(--muted); line-height: 1.9; max-width: 620px; font-size: 15px; margin: 25px 0; }
.fineprint, .muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
.fineprint { max-width: 580px; margin-top: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0; }
.oracle-card { height: 100%; }
.oracle-card-image { display: block; width: auto; height: 320px; max-width: 100%; margin: 0 auto 16px; border-radius: 10px; object-fit: contain; box-shadow: 0 8px 24px #00000035; }
.oracle-catalog { margin: 26px 0; }
.oracle-catalog > summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.oracle-catalog[open] > summary { margin-bottom: 20px; }
.horoscope-sections { display: grid; gap: 16px; margin: 24px 0; }
.horoscope-section { width: 100%; }
.horoscope-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.horoscope-period { padding: 14px; border-left: 2px solid var(--accent); border-radius: 0 10px 10px 0; background: #081b28; }
.horoscope-period h4 { margin: 0 0 8px; color: var(--accent); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.horoscope-copy { margin: 0; white-space: pre-line; }
.card {
    background: linear-gradient(145deg, #122d3b, #0c202e);
    border: 1px solid var(--border);
    border-radius: 16px 5px;
    padding: 24px;
    min-width: 0;
    box-shadow: 0 10px 26px #00000015;
    overflow-wrap: anywhere;
}
.card .number { font-size: 34px; letter-spacing: -1px; margin: 10px 0; color: var(--amber); overflow-wrap: anywhere; }
.card p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.card-link { display: block; transition: transform .18s, border-color .18s, box-shadow .18s; }
.card-link:hover { transform: translateY(-3px); border-color: #64bdb8; box-shadow: 0 10px 30px #50d7cd12; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.section-heading h1 { font-size: 42px; letter-spacing: -1px; margin: 8px 0; color: var(--amber); }
.section-heading .eyebrow { margin-bottom: 0; }
.public-heading { margin-top: 42px; }
.public-heading h2 { margin: 10px 0 0; color: var(--amber); }
.public-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-features details { padding: 12px 0; border-bottom: 1px solid var(--border); }
.public-features summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.public-join ol { padding-left: 24px; color: var(--muted); line-height: 1.9; }
label { display: block; color: var(--muted); font-size: 13px; margin: 12px 0; }
input, select, textarea { border: 1px solid #3e6170; background: #081b28; color: var(--text); padding: 11px; border-radius: 8px; max-width: 100%; width: 100%; margin-top: 7px; }
textarea { resize: vertical; }
.partners-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; align-items: start; }
.partner-card { padding: 0; overflow: hidden; border-radius: 18px; }
.partner-card-body { padding: 26px; }
.partner-summary { display: block; cursor: pointer; list-style: none; }
.partner-summary::-webkit-details-marker { display: none; }
.partner-summary h2 { margin: 0; padding: 20px 24px 8px; color: var(--amber); font-size: 23px; }
.partner-summary .partner-cover { margin: 0; background: #07121e; }
.partner-summary img { width: 100%; height: 220px; object-fit: contain; display: block; }
.partner-summary .error { padding: 24px; margin: 0; min-height: 220px; display: grid; place-items: center; }
.partner-placeholder { min-height: 180px; display: grid; place-items: center; background: #07121e; color: var(--muted); }
.partner-expand { display: block; padding: 0 24px 20px; color: var(--muted); font-size: 12px; }
.partner-expand::after { content: ' +'; color: var(--accent); }
.partner-details[open] .partner-expand::after { content: ' -'; }
.partner-details[open] .partner-summary { border-bottom: 1px solid var(--border); }
.partner-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.partner-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: #07121e; }
.partner-gallery figure { margin: 0; min-width: 0; }
.partner-cover { grid-column: 1 / -1; }
.partner-gallery img { width: 100%; max-height: 360px; object-fit: contain; display: block; }
.partner-image img { max-height: 180px; }
.partner-gallery .error { padding: 14px; }
.partner-ad { overflow-wrap: anywhere; line-height: 1.8; }
.partner-ad p { margin: 8px 0; white-space: pre-wrap; font-size: 14px; }
.partner-ad h3 { font-size: 23px; margin: 22px 0 12px; color: var(--text); }
.partner-ad h4 { font-size: 19px; margin: 18px 0 10px; }
.partner-ad h5 { font-size: 16px; margin: 14px 0 8px; }
.partner-ad strong { color: var(--text); }
.partner-ad ul, .partner-ad ol { padding-left: 24px; font-size: 14px; color: var(--muted); }
.partner-ad a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.partner-ad blockquote { margin: 12px 0; border-left: 3px solid var(--accent); padding: 8px 14px; background: #183c4866; }
.partner-ad pre { max-width: 100%; overflow: auto; padding: 14px; background: var(--bg); border-radius: 8px; }
.partner-ad code { font-family: monospace; background: var(--bg); padding: 2px 4px; }
.partner-spoiler { display: inline-block; margin: 0; padding: 3px 8px; }
.partner-card-footer { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.partner-draft { border: 1px dashed var(--border); border-radius: 12px; padding: 20px; margin-top: 16px; }
.partner-draft img { display: block; max-width: 100%; height: auto; margin-top: 12px; border-radius: 8px; }
@media (max-width: 1000px) { .partners-grid { grid-template-columns: 1fr; } }
input[type=checkbox] { width: auto; margin: 0 8px 0 0; accent-color: var(--accent); }
.quiz-correct {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.quiz-correct:has(input:checked) { border-color: var(--amber); background: rgba(243, 191, 123, .1); color: var(--text); }
.quiz-correct input {
    appearance: none; order: -1; flex: 0 0 20px; width: 20px; height: 20px; padding: 0; margin: 0;
    display: grid; place-content: center; border: 1px solid var(--border); border-radius: 6px;
    cursor: pointer; transition: background .15s, border-color .15s;
}
.quiz-correct input:checked { background: var(--amber); border-color: var(--amber); }
.quiz-correct input:checked::after { content: '\2713'; color: #171b18; font-size: 15px; font-weight: 700; line-height: 1; }
.quiz-correct input:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.quiz-correct:has(input:disabled) { opacity: .6; cursor: default; }
.quiz-correct input:disabled { cursor: default; }
.remember-login { margin-top: 16px; font-size: 13px; color: var(--muted); }
.partner-card > .eyebrow, .partner-card > button { margin: 0 24px 20px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.error { color: var(--danger); }
.events-list { display: grid; gap: 18px; margin: 24px 0; }
.quiz-access {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 18px;
    border-color: #9c8058;
    background: radial-gradient(ellipse at top left, #eab97620, transparent 65%), linear-gradient(125deg, #183645, #102532);
}
.quiz-access:hover { border-color: var(--amber); box-shadow: 0 10px 30px #eab97618; }
.quiz-access-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid #f3bf7b55;
    border-radius: 15px 6px;
    background: #f3bf7b15;
    font-size: 26px;
}
.quiz-access-copy { min-width: 0; }
.quiz-access .eyebrow { display: block; margin: 0 0 6px; color: var(--amber); font-size: 10px; }
.quiz-access h3 { margin: 0; font-size: 20px; }
.quiz-access p { margin: 8px 0 0; }
.quiz-access-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f3bf7b15; color: var(--amber); font-size: 22px; }
.section-heading + .quiz-access { margin-bottom: 24px; }
.grid > .quiz-access { grid-template-columns: 52px minmax(0, 1fr); align-content: start; }
.grid > .quiz-access .quiz-access-copy { grid-column: 1 / -1; }
.grid > .quiz-access .quiz-access-arrow { grid-column: 2; grid-row: 1; justify-self: end; }
.event-card { border-left: 4px solid var(--accent); }
.event-cancelled { border-left-color: var(--danger); }
.event-draft { border-left-color: var(--muted); }
.event-editor:not(:empty), .event-preview:not(:empty), .event-proposals, .change-entry { margin: 20px 0; }
.event-proposals > .card { margin-top: 12px; }
.change-entry { overflow-wrap: anywhere; }
.partner-renewal { padding: 14px 24px; border-top: 1px solid var(--border); }
.partner-renewal-soon { border-color: #eda651; background: #eda65118; color: #ffc779; }
.partner-renewal-overdue { border-color: var(--danger); background: #e2607718; color: var(--danger); }
.journal-table td, .journal-table th { padding: 7px 8px; font-size: 12px; vertical-align: top; }
.journal-table td:not(:last-child) { white-space: nowrap; }
.journal-repeat { padding: 2px 7px; margin-left: 8px; font-size: 11px; }
.journal-detail td { background: #081b28; }
.journal-detail ul { margin: 0; padding-left: 20px; line-height: 1.8; }
#notice:not(:empty) { padding: 15px; border: 1px solid #446876; border-radius: 10px; background: #122f3e; margin-top: 20px; overflow-wrap: anywhere; }
#notice.error { border-color: #b46b83; }
footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 10px; letter-spacing: 1px; display: flex; justify-content: space-between; gap: 15px; }
footer span { letter-spacing: 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
td, th { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.table-wrap { overflow: auto; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.preference-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; font-size: 13px; }
.preference-legend li { display: flex; align-items: center; gap: 8px; }
.preference-legend li > span:first-child { font-size: 24px; font-weight: 700; }
.preference-no { --choice-color: #ffb0b9; }
.preference-discuss { --choice-color: #f3bf7b; }
.preference-yes { --choice-color: #a4e7b0; }
.preference-favorite { --choice-color: #a9c5ff; }
.preference-skip { --choice-color: #b0c5cd; }
.preference-legend li, .preference-readonly strong { color: var(--choice-color); }
.preference-category summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preference-category summary::before { content: "+"; font-size: 20px; }
.preference-category[open] summary::before { content: "−"; }
.preference-category summary > span:first-child { flex: 1; }
.preference-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.preference-table { table-layout: fixed; }
.preference-table th:first-child { width: 35%; }
.preference-table tbody th { font-weight: 500; overflow-wrap: anywhere; }
.preference-table tbody tr:nth-child(odd) { background: #142e3d66; }
.preference-table td { min-width: 0; }
.preference-groups { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.preference-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.preference-group legend { padding: 0; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.preference-choices { display: flex; gap: 4px; }
.preference-choice { position: relative; margin: 0; cursor: pointer; }
.preference-choice input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; }
.preference-choice > span { display: grid; place-items: center; width: 44px; height: 44px; font-size: 25px; color: var(--choice-color); border: 1px solid var(--border); border-radius: 9px; }
.preference-choice:hover > span { border-color: var(--choice-color); background: #25414c; }
.preference-choice input:checked + span { background: var(--choice-color); border-color: var(--choice-color); color: var(--bg); box-shadow: inset 0 0 0 2px var(--bg); }
.preference-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.preference-choice input:disabled + span { opacity: .5; cursor: wait; }
.preference-readonly { display: grid; gap: 6px; min-width: 0; }
.preference-readonly > span { font-size: 12px; color: var(--muted); }
.discovery-workspace { margin-top: 30px; }
.discovery-question { min-width: 0; margin: 24px 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; }
.discovery-question legend { padding: 0 8px; line-height: 1.6; font-weight: 600; }
.discovery-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.discovery-choice { position: relative; margin: 0; cursor: pointer; }
.discovery-scale-0 { --scale-color: #ff9aaf; --dot-size: 32px; }
.discovery-scale-1 { --scale-color: #f3bf7b; --dot-size: 26px; }
.discovery-scale-2 { --scale-color: #b0c5cd; --dot-size: 20px; }
.discovery-scale-3 { --scale-color: #a4e7b0; --dot-size: 26px; }
.discovery-scale-4 { --scale-color: #79e7de; --dot-size: 32px; }
.discovery-scale-skip { --scale-color: var(--muted); grid-column: 1 / -1; margin-top: 8px; }
.discovery-scale-context { --scale-color: #c9b3ef; --dot-size: 20px; grid-column: 1 / -1; }
.discovery-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; padding: 0; }
.discovery-choice-visual { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 10px 2px; min-height: 48px; text-align: center; border: 1px solid transparent; border-radius: 8px; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.discovery-dot { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; color: var(--bg); }
.discovery-dot:empty::after { content: ""; width: var(--dot-size); height: var(--dot-size); border: 2px solid var(--scale-color); border-radius: 50%; }
.discovery-choice:hover .discovery-dot:empty::after { background: var(--scale-color); opacity: .6; }
.discovery-choice input:checked + span .discovery-dot:empty::after { background: var(--scale-color); box-shadow: inset 0 0 0 3px var(--bg); }
.discovery-choice:hover > span { border-color: var(--scale-color); }
.discovery-choice input:checked + span { background: #254c52; border-color: var(--scale-color); color: var(--text); }
.discovery-scale-skip .discovery-choice-visual { flex-direction: row; justify-content: center; }
.discovery-scale-context .discovery-choice-visual { flex-direction: row; justify-content: center; }
.discovery-scale-skip .discovery-dot { color: var(--muted); }
.discovery-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.discovery-choice input:disabled + span { opacity: .5; cursor: wait; }
.discovery-score { color: var(--accent); font-size: 24px; }
.discovery-results { list-style: none; padding: 0; display: grid; gap: 14px; }
.result-image-preview figure { margin: 24px 0 0; }
.result-image-preview img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; }
.result-image-preview figcaption { margin: 10px 0; color: var(--muted); font-size: 13px; }
.result-image-preview .button { overflow-wrap: anywhere; max-width: 100%; }
details { margin: 12px 0; border: 1px solid var(--border); border-radius: 12px; padding: 15px; background: #0d2330; }
summary { cursor: pointer; color: var(--accent); line-height: 1.6; }
.sticky-actions { position: sticky; bottom: 15px; padding: 15px; background: #102b3bf5; border: 1px solid #527782; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; backdrop-filter: blur(8px); box-shadow: 0 8px 30px #00000040; z-index: 2; }
.token { word-break: break-all; border: 1px dashed var(--accent); padding: 15px; border-radius: 8px; }
.tag { display: inline-block; background: #25414c; color: var(--amber); padding: 5px 9px; border-radius: 5px; font-size: 10px; }
.fox { font-size: 70px; margin: 12px 0; filter: drop-shadow(0 0 20px #74e6dd44); }
.pet-picture { margin: 16px 0; min-width: 0; }
.pet-picture img { display: block; width: 100%; height: auto; border-radius: 16px; }
.pet-picture img[hidden] { display: none; }
.pet-picture > button { display: block; margin: 10px auto 0; font-size: .85rem; }
.goupil-play-controls { justify-content: center; margin: 12px 0; }
.pet-picture figcaption { font-size: .85rem; line-height: 1.5; text-align: center; }
.goupil-stage { display: block; width: 100%; height: auto; border-radius: 16px; background: #1a1f1a; touch-action: manipulation; cursor: pointer; }
.goupil-gift { border-color: #b7a16b; background: linear-gradient(125deg, #253d32, #1d2d27); }
.wardrobe-preview { max-width: 560px; margin: 20px auto; }
.wardrobe-items { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.wardrobe-items > p { grid-column: 1 / -1; }
.wardrobe-items button, .card > button { margin: 4px; }
button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); background: #1b3d4a; }
progress { display: block; width: 100%; margin: 8px 0 16px; accent-color: var(--accent); }
.answers { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; overflow-wrap: anywhere; }
.answers span { min-width: 0; }
.answers span:last-child { color: var(--accent); }
.empty { text-align: center; padding: 35px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    main { padding: 0 4%; margin-left: 205px; }
    .sidebar { width: 205px; padding: 30px 15px; }
    .hero { grid-template-columns: 1fr; }
    .hero-art { order: -1; aspect-ratio: 1376 / 768; min-height: 0; }
    .hero-art img { object-fit: contain; }
    .hero-copy { padding: 30px; }
}
@media (max-width: 700px) {
    .sidebar { position: static; width: auto; padding: 18px; border-right: 0; border-bottom: 1px solid var(--border); }
    .brand { font-size: 13px; }
    .brand small, .nav-label, .sidebar-bottom { display: none; }
    nav { display: flex; gap: 3px; overflow-x: auto; margin-top: 18px; padding-bottom: 5px; }
    nav a { white-space: nowrap; font-size: 12px; padding: 10px; }
    nav a span { display: none; }
    main { margin: 0; padding: 0 6%; }
    .topbar { padding: 18px 0; }
    .topbar > span { display: none; }
    #account { width: 100%; justify-content: space-between; }
    #content { padding: 26px 0; }
    .grid, .two, .public-features { grid-template-columns: 1fr; }
    .hero-copy { padding: 24px; }
    h1 { font-size: 38px; letter-spacing: -1px; }
    .card { padding: 20px; }
    .section-heading h1 { font-size: 34px; }
    .quiz-access { grid-template-columns: 40px minmax(0, 1fr) 28px; gap: 12px; }
    .quiz-access-icon { width: 40px; height: 40px; font-size: 22px; }
    .quiz-access-arrow { width: 28px; height: 28px; }
    footer { flex-direction: column; }
    .choice-grid { grid-template-columns: 1fr; }
    .horoscope-periods { grid-template-columns: 1fr; }
    .sticky-actions { flex-wrap: wrap; }
    .discovery-question { padding: 12px; }
}
@media (max-width: 900px) {
    .preference-category { padding: 10px; }
    .preference-choices { gap: 2px; }
    .preference-table, .preference-table tbody, .preference-table tr,
    .preference-table tbody th, .preference-table td { display: block; width: 100%; }
    .preference-table thead { display: none; }
    .preference-table tbody th { width: 100%; border-bottom: 0; padding-bottom: 0; }
    .preference-table td { padding-top: 8px; }
    .preference-table tr { padding-top: 6px; }
}
.admin-members-intro, .admin-test-intro {
    border-color: #46747a;
    background:
        radial-gradient(ellipse at 92% 10%, #50d7cd1c, transparent 38%),
        linear-gradient(135deg, #153844, #0d202d 72%);
}
.admin-member-workspace { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.7fr); gap: 20px; align-items: start; }
.admin-member-workspace > .card { position: sticky; top: 18px; }
.admin-member-dossier { display: grid; gap: 18px; }
.admin-member-overview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(180px, auto);
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid #3e6974;
    border-radius: 18px 6px;
    background: radial-gradient(ellipse at 10% 5%, #54cfc41a, transparent 44%), linear-gradient(140deg, #173744, #0c202e);
    box-shadow: 0 16px 38px #00000020;
}
.admin-member-avatar { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px 6px; background: linear-gradient(140deg, #79e7de, #f3bf7b); color: #11242d; font: 700 30px Georgia, serif; }
.admin-member-avatar span { display: block; }
.admin-member-identity h2 { margin: 4px 0; color: var(--amber); overflow-wrap: anywhere; }
.admin-member-identity p { margin: 5px 0; overflow-wrap: anywhere; }
.admin-member-summary { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.admin-member-summary p { flex-basis: 100%; margin: 4px 0 0; text-align: right; }
.status-pill { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid #46727a; border-radius: 999px; background: #193744; color: var(--accent); font-size: 11px; font-weight: 700; }
.status-shared { color: #b7efcf; border-color: #49876d; background: #173c32; }
.status-private { color: var(--amber); border-color: #876b4d; background: #3a3023; }
.admin-member-history { display: grid; gap: 12px; }
.admin-member-history-head { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.admin-member-history-head p { margin: 4px 0; }
.admin-member-history h2 { margin: 0; }
.admin-sanction-entry { padding: 16px 18px; border: 1px solid var(--border); border-left: 3px solid #5b7f84; border-radius: 12px 4px; background: #0c202d; }
.admin-sanction-entry.is-hidden-record { border-left-color: #8d744f; opacity: .8; }
.admin-sanction-entry > p { line-height: 1.65; overflow-wrap: anywhere; }
.admin-sanction-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-sanction-head p { margin: 0; }
.admin-test-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .5fr); gap: 16px; margin: 8px 0 24px; }
.admin-test-section { margin: 28px 0; }
.admin-test-section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.admin-test-section-head .eyebrow, .admin-test-section-head h2 { margin: 0; }
.admin-test-section-head h2 { color: var(--amber); }
.admin-test-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.admin-test-entry { padding: 20px; border: 1px solid var(--border); border-radius: 16px 5px; background: linear-gradient(145deg, #122d3b, #0c202e); }
.admin-test-entry.is-private { border-top: 3px solid #d5a56c; }
.admin-test-entry.is-shared { border-top: 3px solid #75cba9; }
.admin-test-entry-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.admin-test-entry-head h3, .admin-test-entry-head p { margin: 3px 0; overflow-wrap: anywhere; }
.admin-test-entry progress { width: 100%; height: 9px; margin: 0 0 14px; accent-color: var(--accent); }
.admin-test-detail { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.admin-test-results { display: grid; gap: 12px; }
.admin-test-results h3, .admin-test-results > p { margin: 0; }
.admin-test-axis { padding: 14px; border: 1px solid var(--border); border-radius: 12px 4px; background: #0a1c29; }
.admin-test-axis > summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.admin-test-answer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; margin-top: 12px; }
.admin-test-answer { padding: 11px; border-radius: 8px; background: #132d39; }
.admin-test-answer p { margin: 0 0 7px; color: var(--muted); line-height: 1.5; }
.admin-test-answer strong { color: var(--amber); font-size: 13px; }
@media (max-width: 1000px) {
    .admin-member-workspace { grid-template-columns: 1fr; }
    .admin-member-workspace > .card { position: static; }
    .admin-member-overview { grid-template-columns: auto 1fr; }
    .admin-member-summary { grid-column: 1 / -1; justify-content: flex-start; }
    .admin-member-summary p { text-align: left; }
}
@media (max-width: 600px) {
    .admin-test-filters { grid-template-columns: 1fr; }
    .admin-member-overview { grid-template-columns: 1fr; justify-items: start; }
    .admin-member-summary { grid-column: auto; }
    .admin-sanction-head { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .card-link:hover { transform: none; }
}
.feedback-message { white-space: pre-wrap; overflow-wrap: anywhere; }
