@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&family=JetBrains+Mono:wght@400;700;800&display=swap');

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

:root {
    --bg: #0c0b09;
    --bg-warm: #13120e;
    --bg-card: #1a1814;
    --bg-elevated: #21201a;
    --bg-input: #100f0b;
    --border: #2a2720;
    --border-hover: #3d382e;
    --border-focus: #8ab88e;
    --text: #e6e0d4;
    --text-dim: #9e9585;
    --text-faint: #645c4f;
    --accent: #8ab88e;
    --accent-glow: rgba(138, 184, 142, 0.2);
    --accent-hover: #9cc8a0;
    --accent-muted: #6e9c72;
    --sage: #8ab88e;
    --sage-glow: rgba(138, 184, 142, 0.15);
    --sage-dim: #6e9c72;
    --yes-color: #8ab88e;
    --yes-glow: rgba(138, 184, 142, 0.15);
    --no-color: #c47d6a;
    --no-glow: rgba(196, 125, 106, 0.15);
    --gold: #c8a44e;
    --silver: #a8a196;
    --bronze: #b07e5e;
    --danger: #b85450;
    --radius: 10px;
    --radius-sm: 6px;
    --font: 'Space Grotesk', system-ui, sans-serif;
    --font-display: 'Newsreader', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --max-width: 540px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* warm radial glow behind content */
body::after {
    content: '';
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(138, 184, 142, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ---- Layout ---- */

.app-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 11, 9, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    flex-shrink: 0;
    display: block;
    vertical-align: middle;
    animation: breathe 4s ease-in-out infinite;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

@keyframes breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.header-nav {
    display: flex;
    align-items: stretch;
    gap: 2px;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font);
    transition: color 200ms var(--ease), background 200ms var(--ease);
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.nav-btn:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.nav-btn-icon {
    padding: 0 8px;
}

.nav-btn.active {
    color: var(--accent);
    background: rgba(138, 184, 142, 0.06);
}

.app-main {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 28px 20px 100px;
}

/* ---- Views ---- */

.view {
    display: none;
    animation: viewIn 400ms var(--ease);
}

.view.active {
    display: block;
}

@keyframes viewIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Auth Forms ---- */

.auth-container {
    max-width: 360px;
    margin: 56px auto 0;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-faint);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.92rem;
    font-family: var(--font);
    transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
    outline: none;
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-faint);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 200ms var(--ease);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    width: 100%;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 2px 16px var(--accent-glow);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-ghost {
    background: none;
    color: var(--text-dim);
    padding: 8px 0;
}

.btn-ghost:hover {
    color: var(--accent);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
    width: auto;
}

.btn-danger {
    background: var(--danger);
    color: var(--text);
}

.btn-danger:hover {
    background: #c45e5a;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.84rem;
    color: var(--text-dim);
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: border-color 200ms var(--ease);
}

.auth-switch a:hover {
    border-bottom-color: var(--accent);
}

.form-error {
    background: rgba(184, 84, 80, 0.08);
    border: 1px solid rgba(184, 84, 80, 0.2);
    color: #d4807c;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    margin-bottom: 16px;
    display: none;
}

.form-error.visible {
    display: block;
}

/* ---- Question Card ---- */

.question-section {
    margin-top: 12px;
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-dim);
    margin-bottom: 24px;
}

.streak-badge.on-fire {
    border-color: rgba(138, 184, 142, 0.25);
    color: var(--accent);
    background: rgba(138, 184, 142, 0.04);
}

.date-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.category-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: rgba(138, 184, 142, 0.08);
    color: var(--sage);
    border: 1px solid rgba(138, 184, 142, 0.12);
    margin-bottom: 20px;
}

.question-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin-bottom: 36px;
    color: var(--text);
}

/* Answer buttons */

.answer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 32px;
}

.answer-btn {
    padding: 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 200ms var(--ease);
}

.answer-btn[data-answer="1"]:hover {
    border-color: var(--sage);
    background: rgba(138, 184, 142, 0.04);
}

.answer-btn[data-answer="0"]:hover {
    border-color: var(--no-color);
    background: rgba(196, 125, 106, 0.04);
}

.answer-btn.selected[data-answer="1"] {
    border-color: var(--sage);
    background: rgba(138, 184, 142, 0.07);
    box-shadow: 0 0 20px var(--sage-glow);
}

.answer-btn.selected[data-answer="0"] {
    border-color: var(--no-color);
    background: rgba(196, 125, 106, 0.07);
    box-shadow: 0 0 20px var(--no-glow);
}

.answer-btn .label {
    font-size: 0.7rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

/* Prediction slider */

.prediction-section {
    display: none;
    animation: viewIn 350ms var(--ease);
}

.prediction-section.visible {
    display: block;
}

.prediction-prompt {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    line-height: 1.5;
}

.prediction-prompt strong {
    color: var(--sage);
}

.prediction-value {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent);
    text-align: center;
    margin: 20px 0 8px;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

.prediction-value span {
    font-size: 1.2rem;
    color: var(--text-faint);
    font-weight: 400;
}

.slider-track {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
}

.prediction-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-elevated);
    outline: none;
    cursor: pointer;
}

.prediction-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 1px 8px var(--accent-glow);
    transition: transform 150ms var(--ease);
}

.prediction-slider::-webkit-slider-thumb:hover {
    transform: scale(1.12);
}

.prediction-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 8px var(--accent-glow);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-top: 2px;
    letter-spacing: 0.03em;
}

.submit-btn {
    margin-top: 28px;
}

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

.results-section {
    animation: viewIn 400ms var(--ease);
}

.score-display {
    text-align: center;
    padding: 32px 0;
}

.score-label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.score-number {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    line-height: 1;
    color: var(--accent);
}

.score-number.high {
    color: var(--sage);
}

.score-number.low {
    color: var(--no-color);
}

.score-breakdown {
    margin-top: 10px;
    font-size: 0.84rem;
    color: var(--text-dim);
}

.results-bar {
    margin: 28px 0;
}

.results-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.results-bar-header .yes-label { color: var(--sage); }
.results-bar-header .no-label { color: var(--no-color); }

.bar-container {
    width: 100%;
    height: 32px;
    border-radius: 100px;
    overflow: hidden;
    display: flex;
    background: var(--bg-elevated);
}

.bar-yes {
    height: 100%;
    background: var(--sage);
    border-radius: 100px 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--bg);
    min-width: 36px;
    transition: width 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-no {
    height: 100%;
    background: var(--no-color);
    border-radius: 0 100px 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--bg);
    min-width: 36px;
    transition: width 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.result-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 16px;
}

.result-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.86rem;
}

.result-detail-row:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.result-detail-row .label { color: var(--text-dim); }

.result-detail-row .value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.total-votes {
    text-align: center;
    font-size: 0.76rem;
    color: var(--text-faint);
    margin-top: 16px;
}

/* ---- Empty State ---- */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    opacity: 0.3;
}

.empty-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.empty-text {
    font-size: 0.86rem;
    color: var(--text-dim);
}

/* ---- Leaderboard ---- */

.page-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 0.84rem;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.my-rank-card {
    background: rgba(138, 184, 142, 0.03);
    border: 1px solid rgba(138, 184, 142, 0.12);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.my-rank-label {
    font-size: 0.72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.my-rank-value {
    font-size: 1.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    color: var(--accent);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.leader-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    transition: background 200ms var(--ease);
}

.leader-row:hover { background: var(--bg-elevated); }

.leader-row.is-me {
    background: rgba(138, 184, 142, 0.04);
    border: 1px solid rgba(138, 184, 142, 0.1);
}

.leader-rank {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-faint);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.leader-rank.gold { color: var(--gold); }
.leader-rank.silver { color: var(--silver); }
.leader-rank.bronze { color: var(--bronze); }

.leader-name { font-size: 0.9rem; font-weight: 500; }

.leader-meta {
    font-size: 0.73rem;
    color: var(--text-faint);
    margin-top: 1px;
}

.leader-score {
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    color: var(--text);
}

/* ---- Profile ---- */

.profile-header {
    text-align: center;
    padding: 20px 0 28px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--bg);
    margin: 0 auto 12px;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}

.profile-joined {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    color: var(--text);
}

.stat-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.history-section { margin-top: 8px; }

.history-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
    margin-bottom: 12px;
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 6px;
}

.history-question {
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.history-meta {
    display: flex;
    gap: 14px;
    font-size: 0.76rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.history-meta .yes-tag { color: var(--sage); }
.history-meta .no-tag { color: var(--no-color); }
.history-meta .score-tag { font-weight: 600; color: var(--accent); }

/* ---- Admin ---- */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 28px;
}

.admin-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.admin-form h3 {
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-question-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-q-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.admin-q-text {
    font-size: 0.86rem;
    flex: 1;
}

.admin-q-date {
    font-size: 0.73rem;
    color: var(--text-faint);
    margin-top: 4px;
}

.admin-q-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    cursor: pointer;
    padding: 5px 10px;
    font-size: 0.76rem;
    font-family: var(--font);
    transition: all 200ms var(--ease);
}

.icon-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.icon-btn.delete:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* ---- Loading ---- */

.spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Toasts ---- */

.toast-container {
    position: fixed;
    top: 66px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 380px;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    font-size: 0.84rem;
    color: var(--text);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    animation: toastIn 250ms var(--ease), toastOut 250ms var(--ease) 2.7s forwards;
    pointer-events: auto;
}

.toast.error {
    border-color: rgba(184, 84, 80, 0.25);
    background: rgba(184, 84, 80, 0.08);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ---- Landing ---- */

.landing {
    text-align: center;
    padding-top: 72px;
}

.landing-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.landing-title .accent {
    color: var(--accent);
}

.landing-desc {
    font-size: 0.96rem;
    color: var(--text-dim);
    max-width: 320px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.landing-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 260px;
    margin: 0 auto;
}

.landing-features {
    margin-top: 56px;
    display: grid;
    gap: 12px;
    text-align: left;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
}

.feature-icon {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-faint);
    font-weight: 700;
    grid-row: 1;
    line-height: 1.4;
}

.feature-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
    grid-column: 2;
    grid-row: 1;
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
    grid-column: 2;
    grid-row: 2;
}

/* ---- Scrollbar ---- */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ---- Archive ---- */

.archive-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
}

.archive-card.unanswered {
    border-color: rgba(138, 184, 142, 0.12);
}

.archive-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.archive-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: 0.03em;
}

.archive-badge-missed {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(138, 184, 142, 0.08);
    border: 1px solid rgba(138, 184, 142, 0.15);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
}

.archive-question {
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
}

.archive-result {
    margin-top: 8px;
}

.archive-bar-mini {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-elevated);
    overflow: hidden;
    margin-bottom: 8px;
}

.bar-yes-mini {
    height: 100%;
    background: var(--sage);
    border-radius: 3px;
    transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-stats-row {
    display: flex;
    gap: 12px;
    font-size: 0.74rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    align-items: center;
}

.archive-vote-count {
    font-size: 0.72rem;
    color: var(--text-faint);
    margin-top: 8px;
}

.answer-buttons-sm {
    gap: 8px;
    margin-bottom: 0;
}

.answer-btn-sm {
    padding: 12px 16px;
    font-size: 0.88rem;
}

.archive-predict {
    margin-top: 14px;
    animation: viewIn 250ms var(--ease);
}

.archive-predict .prediction-prompt {
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.archive-predict-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.archive-predict-row .prediction-slider {
    flex: 1;
}

.archive-pred-val {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 40px;
    text-align: right;
}

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }

/* ---- Streak Multiplier ---- */

.multiplier-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 600;
    background: rgba(138, 184, 142, 0.08);
    color: var(--accent);
    border: 1px solid rgba(138, 184, 142, 0.15);
}

.streak-mult {
    margin-left: 6px;
    color: var(--accent);
    font-weight: 700;
}

/* ---- Share Button ---- */

.share-btn {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.share-btn:hover {
    border-color: rgba(138, 184, 142, 0.3);
    background: rgba(138, 184, 142, 0.04);
}

/* ---- Badges ---- */

.badges-section {
    margin-bottom: 28px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.badge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
    transition: all 200ms var(--ease);
}

.badge-card.earned {
    border-color: rgba(138, 184, 142, 0.2);
    background: rgba(138, 184, 142, 0.03);
}

.badge-card.locked {
    opacity: 0.35;
}

.badge-icon {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.badge-card.locked .badge-icon {
    color: var(--text-faint);
}

.badge-name {
    font-size: 0.74rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.badge-desc {
    font-size: 0.65rem;
    color: var(--text-faint);
    line-height: 1.3;
}

/* ---- Tomorrow Teaser ---- */

.tomorrow-teaser {
    margin-top: 28px;
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.tomorrow-teaser .category-pill {
    margin-bottom: 0;
}

.tomorrow-label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.tomorrow-cta {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 8px;
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
    .header-inner { padding: 0 12px; }
    .logo { font-size: 1.05rem; gap: 6px; }
    .header-nav { gap: 0; }
    .nav-btn { padding: 0 7px; font-size: 0.72rem; }
    .question-text { font-size: 1.35rem; }
    .score-number { font-size: 3rem; }
    .landing-title { font-size: 2rem; }
    .admin-form .form-row { grid-template-columns: 1fr; }
    .badges-grid { grid-template-columns: repeat(2, 1fr); }
}
