/* ============================================================
   ARMY BOARD STUDY SITE — Design System
   Dark military theme with gold accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
    /* Colors – Dark Military */
    --bg-primary: #0a0e14;
    --bg-secondary: #111820;
    --bg-card: #161d27;
    --bg-card-hover: #1c2534;
    --bg-elevated: #1e2736;
    --bg-input: #131a24;
    --bg-overlay: rgba(0, 0, 0, 0.65);

    /* Accent – Gold / Amber */
    --accent: #d4a84b;
    --accent-light: #e8c36a;
    --accent-dark: #b8912f;
    --accent-glow: rgba(212, 168, 75, 0.25);
    --accent-subtle: rgba(212, 168, 75, 0.08);

    /* Greens (military) */
    --green: #3a7d44;
    --green-light: #4caf50;
    --green-dark: #2e6b38;
    --green-subtle: rgba(58, 125, 68, 0.12);

    /* Status */
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #ef5350;
    --info: #42a5f5;

    /* Text */
    --text-primary: #f0f0f0;
    --text-secondary: #9ca8b8;
    --text-muted: #5e6b7d;
    --text-accent: var(--accent);

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(212, 168, 75, 0.3);
    --border-input: rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 20px rgba(212, 168, 75, 0.15);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --nav-height: 70px;
    --max-width: 1200px;
    --max-width-narrow: 800px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(212, 168, 75, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(58, 125, 68, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

/* ── Page wrapper ── */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding-top: var(--nav-height);
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav__backdrop,
.nav__close {
    display: none;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--text-primary);
    text-decoration: none;
}

.nav__brand-icon {
    font-size: 1.6rem;
}

.nav__brand-accent {
    color: var(--accent);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav__link--active {
    color: var(--accent);
}

.nav__link--cta {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #000 !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-full);
}

.nav__link--cta:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-sm);
}

/* Auth indicator in nav */
.nav__user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::after {
    opacity: 1;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #1a1207;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}


.btn--primary:hover::after {
    opacity: 0;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    color: #1a1207;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-accent);
}

.btn--danger {
    background: rgba(239, 83, 80, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 83, 80, 0.3);
}

.btn--danger:hover {
    background: rgba(239, 83, 80, 0.25);
}

.btn--lg {
    padding: 16px 36px;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
}

.btn--sm {
    padding: 8px 16px;
    font-size: var(--text-xs);
}

.btn--full {
    width: 100%;
}

.btn--icon {
    padding: 10px;
    border-radius: var(--radius-sm);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card:hover::before {
    opacity: 1;
}

.card--glass {
    background: rgba(22, 29, 39, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card--flat {
    border: none;
    background: transparent;
}

.card--flat:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: none;
    box-shadow: none;
}

.card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
}

.card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card__description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Forms ── */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    font-size: var(--text-xs);
    color: var(--danger);
    margin-top: var(--space-xs);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: var(--space-xl);
}

.tab {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--text-primary);
}

.tab--active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge--accent {
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid rgba(212, 168, 75, 0.2);
}

.badge--green {
    background: var(--green-subtle);
    color: var(--green-light);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.badge--red {
    background: rgba(239, 83, 80, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 83, 80, 0.2);
}

.badge--blue {
    background: rgba(66, 165, 245, 0.1);
    color: var(--info);
    border: 1px solid rgba(66, 165, 245, 0.2);
}

/* ── Progress Bar ── */
.progress {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    position: relative;
}

.progress__bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShine 2s ease infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ── Section headings ── */
.section {
    padding: var(--space-3xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.section__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Grid ── */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Stat card ── */
.stat {
    text-align: center;
    padding: var(--space-lg);
}

.stat__value {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat__label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ── Alert / Notice ── */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.alert__icon {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert__body {
    flex: 1;
    min-width: 0;
}

.alert__title {
    display: block;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-xs);
    color: inherit;
}

.alert__message {
    margin: 0;
    color: var(--text-secondary);
}

.alert--info {
    background: rgba(66, 165, 245, 0.08);
    border: 1px solid rgba(66, 165, 245, 0.2);
    color: var(--info);
}

.alert--success {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.alert--warning {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.alert--danger {
    background: rgba(239, 83, 80, 0.08);
    border: 1px solid rgba(239, 83, 80, 0.2);
    color: var(--danger);
}

@media (max-width: 480px) {
    .alert {
        padding: var(--space-md);
        gap: var(--space-sm);
        border-radius: var(--radius-sm);
    }
}

/* ── Loading spinner ── */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner--lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Loading overlay ── */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-3xl);
    color: var(--text-secondary);
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0;
    margin-top: var(--space-3xl);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer__text {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--accent);
}

/* ── Topic / Study Grid Cards ── */
.topic-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.topic-card__category {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.topic-card__reg {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* ── Quiz ── */
.quiz-container {
    max-width: 720px;
    margin: 0 auto;
}

.quiz-question {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    line-height: 1.4;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-sm);
    font-size: var(--text-base);
}

.quiz-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.quiz-option--selected {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.quiz-option--correct {
    border-color: var(--success) !important;
    background: rgba(76, 175, 80, 0.1) !important;
}

.quiz-option--incorrect {
    border-color: var(--danger) !important;
    background: rgba(239, 83, 80, 0.1) !important;
}

.quiz-option__letter {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.quiz-explanation {
    padding: var(--space-md) var(--space-lg);
    background: rgba(66, 165, 245, 0.06);
    border-left: 3px solid var(--info);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.quiz-explanation strong {
    color: var(--text-primary);
}

/* ── Mock Board ── */
.board-room {
    max-width: 900px;
    margin: 0 auto;
}

.board-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.board-member {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.board-member--speaking {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.board-member__rank-img {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.board-member__name {
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: 2px;
}

.board-member__role {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.board-member__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    margin: var(--space-sm) auto 0;
    transition: all var(--transition-fast);
}

.board-member--speaking .board-member__indicator {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Board chat area */
.board-chat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.board-chat__message {
    display: flex;
    gap: var(--space-md);
    animation: fadeInUp 0.3s ease;
}

.board-chat__message--narrator {
    justify-content: center;
    padding: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

.board-chat__avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.board-chat__message--user .board-chat__avatar {
    background: var(--green-subtle);
    color: var(--green-light);
}

.board-chat__bubble {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    max-width: 80%;
}

.board-chat__message--user {
    flex-direction: row-reverse;
}

.board-chat__message--user .board-chat__bubble {
    background: rgba(58, 125, 68, 0.15);
}

.board-chat__sender {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.board-chat__text {
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* Board input */
.board-input {
    display: flex;
    gap: var(--space-md);
}

.board-input__field {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    outline: none;
    transition: border-color var(--transition-fast);
}

.board-input__field:focus {
    border-color: var(--accent);
}

/* ── Dashboard ── */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.dash-stat-card__icon {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

.dash-stat-card__value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--accent);
}

.dash-stat-card__label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ── Hero ── */
.hero {
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-subtle);
    border: 1px solid rgba(212, 168, 75, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__title-accent {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

/* ── Fade-in animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.fade-in--delay-1 {
    animation-delay: 0.1s;
}

.fade-in--delay-2 {
    animation-delay: 0.2s;
}

.fade-in--delay-3 {
    animation-delay: 0.3s;
}

.fade-in--delay-4 {
    animation-delay: 0.4s;
}

/* ── Study detail page ── */
.study-content {
    max-width: 800px;
    margin: 0 auto;
}

.study-content h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.study-content h3 {
    font-size: var(--text-xl);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.study-content p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

.study-content ul,
.study-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
    color: var(--text-secondary);
}

.study-content li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.study-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.reg-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-subtle);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    transition: all var(--transition-fast);
}

.reg-link:hover {
    background: rgba(212, 168, 75, 0.15);
    border-color: var(--accent);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Filter bar ── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-bar__search {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px 10px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    outline: none;
    transition: border-color var(--transition-fast);
}

.filter-bar__search:focus {
    border-color: var(--accent);
}

.filter-bar__search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-bar__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--text-sm);
    pointer-events: none;
}

/* ── Filter bar ── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-select-wrap {
    display: none;
    /* Hidden on desktop */
}

.filter-chip {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.filter-chip--active {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Score display ── */
.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--score) * 3.6deg), var(--bg-secondary) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    position: relative;
}

.score-circle__inner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.score-circle__value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.score-circle__label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.empty-state__text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

/* ── Board phase UI ── */
.board-phase {
    text-align: center;
    padding: var(--space-2xl);
}

.board-phase__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.board-phase__description {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Phase select cards */
.board-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.board-type-card {
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all var(--transition-base);
}

.board-type-card:hover {
    border-color: var(--accent);
}

.board-type-card--selected {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ── Typing indicator ── */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-sm);
}

.typing-indicator__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s ease infinite;
}

.typing-indicator__dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator__dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__features {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --space-3xl: 40px;
    }

    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    /* Disable backdrop filter on header itself to fix rendering bugs */
    .nav {
        backdrop-filter: none;
        background-color: var(--bg-secondary);
    }

    .nav__links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        width: 280px;
        background-color: var(--bg-card) !important;
        /* Lighter drawer color */
        opacity: 1 !important;
        backdrop-filter: none;
        /* Ensure no blur effect */
        padding: var(--space-2xl) var(--space-lg) var(--space-lg);
        gap: var(--space-sm);
        z-index: 2000;
        /* Ensure it's on top of everything */
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        border-left: 1px solid var(--border);
    }

    .nav__links--open {
        transform: translateX(0);
    }

    .nav__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        /* Below nav (1000) so it doesn't cover the drawer */
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-base);
    }

    .nav__backdrop--open {
        opacity: 1;
        pointer-events: all;
    }

    .nav__close {
        display: block;
        /* Visible on mobile */
        position: absolute;
        top: 16px;
        right: 16px;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--text-muted);
        cursor: pointer;
        padding: 8px;
        line-height: 1;
        transition: color var(--transition-fast);
    }

    .nav__close:hover {
        color: var(--accent);
    }

    .nav__link {
        padding: 14px 20px;
        /* Comfortable touch targets */
        font-size: 1.1rem;
        border-radius: var(--radius-md);
        border: 1px solid transparent;
        /* Prevent layout shift on hover */
    }

    .nav__link:active {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav__toggle {
        display: block;
        padding: var(--space-md);
        /* Larger toggle hit area */
        font-size: 1.8rem;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    /* Responsive Study Filters */
    .filter-chips {
        display: none !important;
        /* Hide chips on mobile */
    }

    .filter-select-wrap {
        display: block !important;
        /* Show select on mobile */
        width: 100%;
        margin-bottom: var(--space-md);
    }

    .filter-select {
        width: 100%;
        height: 54px;
        /* Explicit large touch target */
        padding: 0 48px 0 20px;
        /* Space for text and arrow */
        background-color: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        color: var(--text-primary);
        font-size: 16px;
        /* Prevents auto-zoom on iOS */
        font-family: var(--font-body);
        outline: none;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d4a84b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2082.2c3.6-3.6%205.4-7.8%205.4-12.8%200-5-1.8-9.3-5.4-12.9z%22%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right 20px center;
        background-size: 12px auto;
        line-height: 54px;
        /* Vertically center text */
    }

    .hero__features {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .hero__title {
        font-size: var(--text-3xl);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .board-members {
        grid-template-columns: repeat(2, 1fr);
    }

    .board-type-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        min-width: max-content;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar__chips {
        display: flex;
        overflow-x: auto;
        gap: var(--space-sm);
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        padding: var(--space-2xl) 0;
    }

    .board-members {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .board-chat {
        min-height: 300px;
        max-height: 400px;
        padding: var(--space-md);
    }

    .board-input {
        flex-direction: column;
        align-items: stretch !important;
    }

    .board-input__field {
        min-height: 60px !important;
        font-size: 16px !important; /* Prevents iOS auto-zoom */
    }
}

/* ── Utility ── */
/* ── Stats Grid (dashboard) ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.stat-card__value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-card__label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ── Board Messages ── */
.board-message {
    display: flex;
    gap: var(--space-md);
    animation: fadeInUp 0.3s ease;
}

.board-message--user {
    flex-direction: row-reverse;
}

.board-message--system {
    justify-content: center;
    padding: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

.board-message__avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.board-message--user .board-message__avatar {
    background: var(--green-subtle);
}

.board-message__body {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    max-width: 80%;
}

.board-message--user .board-message__body {
    background: rgba(58, 125, 68, 0.15);
}

.board-message__name {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.board-message--user .board-message__name {
    color: var(--green-light);
    text-align: right;
}

.board-message__text {
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ── Board member active state ── */
.board-member--active {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.board-member--active .board-member__indicator {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s ease infinite;
}

/* ── Dot typing animation ── */
.dot-typing {
    display: inline-flex;
    gap: 4px;
}

.dot-typing::before,
.dot-typing::after,
.dot-typing span {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s ease infinite;
}

.dot-typing::after {
    animation-delay: 0.2s;
}

/* ── Responsive: stats-grid ── */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Utility ── */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--accent);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.hidden {
    display: none !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-md {
    gap: var(--space-md);
}

/* ── PJAX Page Transitions ── */
.page-transition-out {
    opacity: 0;
    transition: opacity 200ms ease;
}

.page-transition-in {
    animation: fadeInPage 200ms ease forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── PJAX Leave Modal ── */
.pjax-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease;
    padding: var(--space-md);
}

.pjax-modal-overlay--open {
    background: rgba(0, 0, 0, 0.6);
}

.pjax-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: all 200ms ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pjax-modal-overlay--open .pjax-modal {
    transform: scale(1);
    opacity: 1;
}

.pjax-modal__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.pjax-modal__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.pjax-modal__text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.pjax-modal__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* ── Small button + spinner variants used by flashcards ── */
.btn--xs {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn--success {
    background: rgba(67, 160, 71, 0.18);
    color: var(--success, #43a047);
    border: 1px solid rgba(67, 160, 71, 0.35);
}

.btn--success:hover {
    background: rgba(67, 160, 71, 0.28);
}

.spinner--sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
}

/* ── Flashcards ── */
.fc-card-wrap {
    perspective: 1400px;
    margin: var(--space-lg) 0;
}

.fc-card {
    position: relative;
    width: 100%;
    min-height: 320px;
    border-radius: var(--radius-lg);
    transform-style: preserve-3d;
    transition: transform 350ms ease, box-shadow 200ms ease;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--shadow-md);
}

.fc-card:hover {
    box-shadow: var(--shadow-lg);
}

.fc-card--flipped {
    transform: rotateY(180deg);
}

.fc-card__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-secondary, #1a1d22);
}

.fc-card__face--front {
    background: linear-gradient(180deg, var(--bg-secondary, #1a1d22) 0%, rgba(212, 168, 75, 0.06) 100%);
}

.fc-card__face--back {
    transform: rotateY(180deg);
    background: linear-gradient(180deg, var(--bg-secondary, #1a1d22) 0%, rgba(80, 140, 220, 0.05) 100%);
}

.fc-card__kind {
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--accent, #d4a84b);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.fc-card__face--back .fc-card__kind {
    color: var(--info, #60a5fa);
}

.fc-card__text {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.5;
    max-width: 640px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.fc-card__face--back .fc-card__text {
    font-size: var(--text-lg);
    font-weight: 500;
    text-align: left;
}

.fc-card__hint {
    margin-top: var(--space-md);
    font-style: italic;
}

.fc-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-sm);
    align-items: stretch;
    margin-top: var(--space-md);
}

.fc-btn,
.fc-btn-flip {
    padding: 14px 16px;
    font-size: var(--text-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.fc-btn--right {
    /* Wins on the right matches "swipe right = correct" */
    order: 3;
}

.fc-btn--wrong {
    order: 1;
}

.fc-btn-flip {
    order: 2;
    min-width: 120px;
}

.fc-key {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.7rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    opacity: 0.7;
    font-family: monospace;
}

@media (max-width: 600px) {
    .fc-card { min-height: 280px; }
    .fc-card__text { font-size: var(--text-lg); }
    .fc-actions {
        grid-template-columns: 1fr 1fr;
    }
    .fc-btn-flip {
        grid-column: 1 / -1;
        order: 1;
    }
    .fc-btn--wrong { order: 2; }
    .fc-btn--right { order: 3; }
    .fc-key { display: none; }
}
