/* Boost — Tavily-inspired editorial design */
@import url('elite-typography.css');
@import url('elite-mobile.css');

:root,
[data-theme="light"] {
    --ink: #3c3a39;
    --ink-soft: #3c3a3999;
    --ink-muted: #3c3a3966;
    --bg: #fefcf5;
    --bg-soft: #f7f7f5;
    --card: #fffcf6;
    --card-solid: #fffcf6;
    --border: #3c3a391a;
    --border-strong: #3c3a3933;
    --blue: #2677ff;
    --blue-bright: #3d8bff;
    --lav: #817fff;
    --cyan: #aaf2fc;
    --turquoise: #79deeb;
    --sage: #81b09a;
    --pink: #f49eff;
    --orange: #ff7300;
    --yellow: #ffc753;
    --fun-gradient: linear-gradient(135deg, #817fff 0%, #2677ff 45%, #79deeb 100%);
    --boost-wordmark-gradient: linear-gradient(90deg, #a29bfe 0%, #8da4f8 24%, #6db8f0 56%, #81ecec 100%);
    --progress-gradient: linear-gradient(90deg, #81b09a 0%, #2677ff 55%, #aaf2fc 100%);
    --slate: #3c3a3999;
    --slate-light: #3c3a3966;
    --shadow-sm: 0 2px 12px rgba(11, 9, 7, 0.04);
    --shadow-md: 0 4px 24px rgba(11, 9, 7, 0.06);
    --shadow-lg: 0 12px 40px rgba(11, 9, 7, 0.08);
    --overlay-bg: rgba(254, 252, 245, 0.92);
    --badge-bg: rgba(129, 127, 255, 0.12);
    --badge-border: rgba(129, 127, 255, 0.28);
    --badge-ink: #5c56c9;
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 20px;
    --radius-pill: 40px;
    --font-mono: var(--font-sans);
    --accent-vocab: var(--blue);
    --accent-sc: var(--orange);
    --accent-re: var(--sage);
    --accent-rc: var(--lav);
    --royal: var(--blue);
    --royal-light: #e8f1ff;
    --green: var(--sage);
    --green-dark: #6a9a86;
    --green-light: #e8f3ef;
    --coral: var(--orange);
    --teal: var(--sage);
    --teal-dark: #6a9a86;
    --teal-light: #e8f3ef;
    --violet: var(--lav);
    --violet-light: #c4b5fd;
    --midnight: var(--ink);
    --slate-dark: #3c3a39;
    --sun: var(--yellow);
    --sun-light: #fff8e8;
    --sky: var(--cyan);
    --sky-light: #e8fbfe;
    --btn-bg: #3c3a39;
    --btn-fg: #fefefe;
    --subtitle: #2a2827;
}

[data-theme="dark"] {
    --ink: #fffcf6;
    --ink-soft: rgba(255, 252, 246, 0.72);
    --ink-muted: rgba(255, 252, 246, 0.48);
    --bg: #11100f;
    --bg-soft: #1a1917;
    --card: #1f1e1c;
    --card-solid: #1f1e1c;
    --border: rgba(255, 252, 246, 0.1);
    --border-strong: rgba(255, 252, 246, 0.18);
    --blue-bright: #4d94ff;
    --fun-gradient: linear-gradient(135deg, #a78bfa 0%, #4d94ff 50%, #aaf2fc 100%);
    --boost-wordmark-gradient: linear-gradient(90deg, #b8b0fe 0%, #9db4f8 24%, #85cff8 56%, #a0f0f4 100%);
    --progress-gradient: linear-gradient(90deg, #81b09a 0%, #4d94ff 60%, #aaf2fc 100%);
    --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --overlay-bg: rgba(17, 16, 15, 0.9);
    --badge-bg: rgba(129, 127, 255, 0.18);
    --badge-border: rgba(170, 242, 252, 0.22);
    --badge-ink: #c4b5fd;
    --royal-light: rgba(38, 119, 255, 0.18);
    --green-light: rgba(129, 176, 154, 0.18);
    --teal-light: rgba(129, 176, 154, 0.18);
    --sun-light: rgba(255, 199, 83, 0.12);
    --sky-light: rgba(170, 242, 252, 0.12);
    --midnight: var(--ink);
    --slate-dark: var(--ink);
    --slate: rgba(255, 252, 246, 0.65);
    --slate-light: rgba(255, 252, 246, 0.48);
    --btn-bg: #2a2927;
    --btn-fg: #fffcf6;
    --subtitle: rgba(255, 252, 246, 0.88);
}

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

body.elite-body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Ambient wash */
body.elite-body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 92% 6%, rgba(129, 176, 154, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 4% 88%, rgba(170, 242, 252, 0.35) 0%, transparent 52%),
        radial-gradient(ellipse 38% 32% at 72% 58%, rgba(244, 158, 255, 0.12) 0%, transparent 58%),
        radial-gradient(ellipse 35% 30% at 48% 42%, rgba(129, 127, 255, 0.1) 0%, transparent 60%);
}

body.elite-body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image: radial-gradient(rgba(60, 58, 57, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 100% 85% at 50% 20%, black 8%, transparent 78%);
}

[data-theme="dark"] body.elite-body::before {
    background:
        radial-gradient(ellipse 55% 45% at 92% 6%, rgba(129, 176, 154, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 4% 88%, rgba(38, 119, 255, 0.16) 0%, transparent 52%),
        radial-gradient(ellipse 40% 35% at 60% 45%, rgba(244, 158, 255, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 30% 25% at 20% 70%, rgba(255, 115, 0, 0.08) 0%, transparent 50%);
}

[data-theme="dark"] body.elite-body::after {
    opacity: 0.3;
    background-image: radial-gradient(rgba(255, 252, 246, 0.055) 1px, transparent 1px);
}

[data-theme="dark"] .modal-overlay,
[data-theme="dark"] .elite-modal-bg {
    background: rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .elite-hero h1,
[data-theme="dark"] .stat-box__val,
[data-theme="dark"] .stat-box__val--green {
    filter: saturate(1.15);
}

@keyframes elite-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Layout ── */
.elite-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}
.elite-wrap { width: 100%; max-width: 920px; padding: 24px 20px 48px; }
.elite-wrap--wide { max-width: 1100px; }
.elite-wrap--narrow { max-width: 720px; }
.elite-center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* ── Top bars ── */
.elite-userbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    font-size: 0.9em;
    color: var(--ink-muted);
    position: sticky;
    top: 0;
    z-index: 100;
}
.elite-userbar__actions { display: flex; align-items: center; gap: 10px; }
.elite-userbar a { color: var(--ink-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.elite-userbar a:hover { color: var(--ink); }

.elite-toolbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.95em;
    line-height: 1;
    vertical-align: middle;
    border: 1px solid rgba(38, 119, 255, 0.28);
    background: linear-gradient(145deg, rgba(129, 127, 255, 0.14), rgba(38, 119, 255, 0.1));
    color: var(--blue-bright);
    box-shadow: 0 2px 10px rgba(38, 119, 255, 0.12);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.elite-toolbar-chip i {
    display: block;
    line-height: 1;
    pointer-events: none;
    font-size: 0.95em;
}
.elite-toolbar-chip:hover,
.elite-toolbar-chip:focus-visible,
.elite-toolbar-chip[aria-expanded="true"] {
    background: linear-gradient(145deg, rgba(129, 127, 255, 0.24), rgba(38, 119, 255, 0.18));
    border-color: rgba(38, 119, 255, 0.45);
    color: var(--blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(38, 119, 255, 0.2);
}
[data-theme="dark"] .elite-toolbar-chip {
    border-color: rgba(77, 148, 255, 0.35);
    background: linear-gradient(145deg, rgba(129, 127, 255, 0.22), rgba(38, 119, 255, 0.14));
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}
[data-theme="dark"] .elite-toolbar-chip:hover,
[data-theme="dark"] .elite-toolbar-chip:focus-visible,
[data-theme="dark"] .elite-toolbar-chip[aria-expanded="true"] {
    background: linear-gradient(145deg, rgba(129, 127, 255, 0.3), rgba(38, 119, 255, 0.22));
    border-color: rgba(77, 148, 255, 0.5);
    color: #7eb4ff;
}

.elite-toprow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}
.elite-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-inline-start: auto;
}
.elite-floating-toolbar {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    z-index: 500;
    display: flex;
    align-items: center;
}
.elite-floating-toolbar .elite-toolbar-actions {
    gap: 8px;
}
.boost-home-back,
.elite-back,
.game-home-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--card) 0%, var(--bg-soft) 100%);
    box-shadow: var(--shadow-sm);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}
.boost-home-back i,
.elite-back i,
.game-home-back i {
    font-size: 0.92em;
    color: var(--royal);
    opacity: 0.92;
}
.boost-home-back:hover,
.elite-back:hover,
.game-home-back:hover {
    color: var(--ink);
    border-color: rgba(38, 119, 255, 0.28);
    background: linear-gradient(135deg, rgba(38, 119, 255, 0.06) 0%, var(--card) 100%);
    box-shadow: 0 4px 18px rgba(38, 119, 255, 0.14);
    transform: translateY(-1px);
}
.elite-userbar > .boost-home-back {
    color: var(--ink-soft);
}
.elite-userbar > .boost-home-back:hover {
    color: var(--ink);
}
.elite-toprow--nav {
    margin-bottom: 20px;
}
.elite-toprow--hub-nav {
    justify-content: flex-start;
    gap: 10px;
}
.elite-pill {
    font-family: var(--font-mono);
    font-size: 0.8em;
    font-weight: 400;
    color: var(--ink-muted);
    background: var(--bg-soft);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* ── Page header ── */
.elite-hero { text-align: center; margin-bottom: 32px; }
.elite-hero--page { margin-bottom: 28px; }
.elite-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    color: var(--badge-ink);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    border-radius: 20px;
    box-shadow: none;
    margin-bottom: 14px;
    letter-spacing: 0;
}
.elite-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: var(--fun-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .elite-hero h1 {
    background: var(--fun-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.elite-hero p:not(.boost-gradient-text):not(.boost-wordmark),
.menu-header p:not(.boost-gradient-text):not(.boost-wordmark),
.nav-card__body p,
.pillar-card p,
.acc-title,
.elite-subtitle {
    color: var(--subtitle);
    font-size: 1.08em;
    line-height: 1.55;
    font-weight: 500;
}
[data-theme="light"] .elite-hero p:not(.boost-gradient-text):not(.boost-wordmark),
[data-theme="light"] .menu-header p:not(.boost-gradient-text):not(.boost-wordmark),
[data-theme="light"] .nav-card__body p,
[data-theme="light"] .pillar-card p,
[data-theme="light"] .acc-title,
[data-theme="light"] .elite-subtitle {
    color: #2a2827;
}
.elite-hero p:not(.boost-wordmark) {
    margin: 0 auto;
    max-width: 520px;
}
.menu-header p { margin: 0; }
.nav-card__body p { margin: 0; font-size: 0.94em; }
.pillar-card p { margin: 0 0 16px; font-size: 0.94em; flex-grow: 1; }
.acc-title { font-size: 0.95em; font-weight: 500; margin-bottom: 12px; }

.page-header {
    width: 100%;
    background: var(--card);
    padding: 32px 20px;
    text-align: center;
    border-bottom: 4px solid var(--royal);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}
.page-header h1 { margin: 0 0 8px; font-size: 2em; font-weight: 700; color: var(--ink); }
.page-header p { margin: 0; color: var(--slate); }

/* ── Progress ── */
.elite-progress {
    height: 6px;
    background: var(--bg-soft);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border);
}
.elite-progress__fill {
    height: 100%;
    background: var(--progress-gradient);
    border-radius: 6px;
    transition: width 0.4s ease;
}
.elite-progress--thick { height: 8px; }

/* ── Cards ── */
.surface-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.glass-panel--light, .auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ── Layout grids (NOT used for background!) ── */
.elite-grid, .layout-grid {
    display: grid;
    gap: 16px;
}
.elite-grid--levels, .layout-grid--levels { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.elite-grid--chunks, .layout-grid--chunks { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.elite-grid--stats, .layout-grid--stats { grid-template-columns: repeat(3, 1fr); }
.elite-grid--sources, .layout-grid--sources { grid-template-columns: repeat(5, 1fr); }
.elite-grid--leitner, .layout-grid--leitner { grid-template-columns: repeat(5, 1fr); }

/* ── Tiles & chunks ── */
.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 18px;
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}
.tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.tile__num { font-size: 1.4em; font-weight: 500; margin: 0; letter-spacing: -0.02em; }
.tile__count {
    font-family: var(--font-mono);
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--bg-soft);
    color: var(--ink-muted);
    font-weight: 400;
}
.nav-card--level-pick .nav-card__icon {
    background: var(--royal-light);
    color: var(--royal);
    font-family: var(--font-mono);
    font-weight: 600;
}
.level-pick__num { font-size: 1.1em; line-height: 1; }
.level-pick__count {
    font-family: var(--font-mono);
    font-size: 0.74em;
    padding: 6px 10px;
    border-radius: 20px;
    background: var(--bg-soft);
    color: var(--subtitle);
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
}
.level-pick__count--soon { color: var(--ink-muted); }
.nav-card--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.chunk-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}
.chunk-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chunk-card .btn-elite {
    margin-top: auto;
    text-decoration: none;
    position: relative;
    z-index: 2;
}
.chunk-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.chunk-card__title { margin: 0; font-size: 1.15em; font-weight: 500; letter-spacing: -0.02em; }
.chunk-card__meta {
    display: inline-block;
    width: fit-content;
    font-family: var(--font-mono);
    font-size: 0.96em;
    font-weight: 600;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--border-strong);
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
    line-height: 1.35;
}
.chunk-card--done .chunk-card__icon { color: var(--sage); }

.stat-box {
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.stat-box__val {
    font-size: 2.2em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    background: var(--fun-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-box__val--green {
    background: linear-gradient(135deg, var(--sage), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-box__lbl {
    font-family: var(--font-mono);
    font-size: 0.72em;
    color: var(--ink-muted);
    margin-top: 8px;
    font-weight: 400;
    text-transform: lowercase;
}

/* ── Category tiles ── */
.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 14px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    background: var(--card);
    border: 2px solid var(--border);
    border-top-width: 4px;
    box-shadow: var(--shadow-sm);
    transition: 0.25s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-tile__icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2em;
    margin-bottom: 10px;
}
.cat-tile h3 { margin: 0 0 6px; font-size: 0.95em; font-weight: 600; }
.cat-tile__count { font-size: 2em; font-weight: 700; margin: 0; line-height: 1; }
.cat-tile[data-c="0"] { border-top-color: #8b5cf6; }
.cat-tile[data-c="0"] .cat-tile__icon { background: #f3e8ff; color: #7c3aed; }
.cat-tile[data-c="0"] .cat-tile__count { color: #7c3aed; }
.cat-tile[data-c="7"] { border-top-color: #06b6d4; }
.cat-tile[data-c="7"] .cat-tile__icon { background: #ecfeff; color: #0891b2; }
.cat-tile[data-c="7"] .cat-tile__count { color: #0891b2; }
.cat-tile[data-c="8"] { border-top-color: #e11d48; }
.cat-tile[data-c="8"] .cat-tile__icon { background: #fff1f2; color: #e11d48; }
.cat-tile[data-c="8"] .cat-tile__count { color: #e11d48; }
.cat-tile[data-c="9"] { border-top-color: #f59e0b; }
.cat-tile[data-c="9"] .cat-tile__icon { background: #fffbeb; color: #d97706; }
.cat-tile[data-c="9"] .cat-tile__count { color: #d97706; }
.cat-tile[data-c="10"] { border-top-color: #a855f7; }
.cat-tile[data-c="10"] .cat-tile__icon { background: #f3e8ff; color: #9333ea; }
.cat-tile[data-c="10"] .cat-tile__count { color: #9333ea; }
.cat-tile__hint {
    margin: 0 0 6px;
    font-size: 0.78em;
    color: var(--ink-muted);
    line-height: 1.35;
}
.cat-tile--discover {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Personal vault feature cards ── */
.vault-feature-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}
.vault-feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}
.vault-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 4px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.vault-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.vault-feature-card--practice {
    background: linear-gradient(135deg, rgba(253, 164, 175, 0.08) 0%, var(--card) 42%, var(--card) 100%);
    border-color: rgba(253, 164, 175, 0.35);
}
.vault-feature-card--practice::before {
    background: linear-gradient(180deg, #fda4af 0%, #f43f5e 100%);
}
.vault-feature-card--practice:hover { border-color: rgba(244, 63, 94, 0.45); }
.vault-feature-card--discover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, var(--card) 42%, var(--card) 100%);
    border-color: rgba(168, 85, 247, 0.38);
}
.vault-feature-card--discover::before {
    background: linear-gradient(180deg, #c084fc 0%, #9333ea 100%);
}
.vault-feature-card--discover:hover { border-color: rgba(147, 51, 234, 0.5); }
.vault-feature-card--empty {
    cursor: default;
    opacity: 0.92;
}
.vault-feature-card--empty:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}
.vault-feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25em;
    flex-shrink: 0;
}
.vault-feature-card--practice .vault-feature-card__icon {
    background: rgba(253, 164, 175, 0.2);
    color: #e11d48;
}
.vault-feature-card--discover .vault-feature-card__icon {
    background: rgba(168, 85, 247, 0.16);
    color: #9333ea;
}
.vault-feature-card__body {
    flex: 1;
    min-width: 0;
    text-align: right;
}
.vault-feature-card__title {
    margin: 0 0 6px;
    font-size: 1.12em;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.vault-feature-card__desc {
    margin: 0;
    font-size: 0.88em;
    line-height: 1.5;
    color: var(--ink-soft);
}
.vault-feature-card__empty-note {
    margin: 10px 0 0;
    font-size: 0.82em;
    line-height: 1.45;
    color: var(--ink-muted);
}
.vault-feature-card__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 56px;
    padding: 0 4px;
}
.vault-feature-card__count {
    font-size: 1.85em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}
.vault-feature-card--practice .vault-feature-card__count { color: #e11d48; }
.vault-feature-card__label {
    margin-top: 4px;
    font-size: 0.72em;
    color: var(--ink-muted);
}
.vault-feature-card__cta {
    flex-shrink: 0;
    font-size: 0.78em;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(147, 51, 234, 0.12);
    color: #7e22ce;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.vault-feature-card--discover:hover .vault-feature-card__cta {
    background: rgba(147, 51, 234, 0.2);
    color: #6b21a8;
}
.vault-feature-card__arrow {
    flex-shrink: 0;
    color: var(--ink-muted);
    font-size: 0.85em;
    transition: transform 0.2s, color 0.2s;
}
.vault-feature-card--practice:hover .vault-feature-card__arrow {
    color: #e11d48;
    transform: translateX(-4px);
}
.vault-feature-card--discover:hover .vault-feature-card__arrow {
    color: #9333ea;
    transform: translateX(-4px);
}
.elite-hero--practice-words p {
    max-width: 36em;
    margin-inline: auto;
}

.discover-panel,
.discover-card {
    max-width: 640px;
    margin: 0 auto 20px;
    padding: 22px 20px;
}
.discover-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.discover-search i { color: var(--ink-muted); }
.discover-search .elite-input { flex: 1; margin: 0; }
.discover-hint {
    margin: 10px 0 0;
    font-size: 0.82em;
    color: var(--ink-muted);
}
.discover-suggest {
    margin-top: 16px;
    padding: 16px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, var(--royal-light) 0%, var(--card) 100%);
}
.discover-suggest__head { margin-bottom: 12px; }
.discover-suggest__title {
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
}
.discover-suggest__title--celebrate {
    color: var(--sage);
    font-size: 1.02em;
}
.discover-suggest__subtitle {
    margin: 4px 0 0;
    font-size: 0.86em;
    color: var(--ink-soft);
}
.discover-suggest__quoted {
    direction: ltr;
    unicode-bidi: isolate;
    color: var(--royal);
    font-weight: 700;
}
.discover-suggest__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.discover-suggest__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card);
}
.discover-suggest__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.discover-suggest__word-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 1.05em;
    font-weight: 700;
    color: var(--ink);
}
.discover-suggest__audio {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--royal-light);
    color: var(--royal);
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}
.discover-suggest__audio:hover {
    background: var(--royal);
    border-color: var(--royal);
    color: #fff;
    transform: scale(1.05);
}
.discover-suggest__audio.is-playing {
    background: var(--royal);
    border-color: var(--royal);
    color: #fff;
    animation: discover-audio-pulse 1s ease-in-out infinite;
}
@keyframes discover-audio-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(67, 97, 238, 0); }
}
.discover-suggest__preview {
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--royal-light);
    color: var(--royal);
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.4;
}
.discover-suggest__confirm {
    align-self: flex-start;
    margin-top: 2px;
}
.discover-suggest__offer-btn {
    margin-top: 12px;
    width: 100%;
}
.discover-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.discover-quick__head {
    margin: 0 0 4px;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}
.discover-quick__loading {
    margin: 0;
    padding: 14px 12px;
    text-align: center;
    font-size: 0.9em;
    color: var(--ink-soft);
}
.discover-quick__loading i {
    margin-left: 6px;
    color: var(--royal);
}
.discover-result {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    text-align: right;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.discover-result--rich {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    cursor: default;
}
.discover-result--rich:hover {
    border-color: var(--border);
    box-shadow: none;
}
.discover-result:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.discover-result--rich:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.discover-result--query {
    border-color: var(--royal);
    background: var(--royal-light);
}
.discover-result--query:hover {
    border-color: var(--royal);
    box-shadow: var(--shadow-md);
}
.discover-result__action {
    flex: 1;
    font-size: 0.88em;
    color: var(--royal);
    font-weight: 600;
}
.discover-result__word {
    font-weight: 600;
    color: var(--ink);
    direction: ltr;
    unicode-bidi: isolate;
}
.discover-result__trans {
    flex: 1;
    color: var(--ink-soft);
    font-size: 0.9em;
}
.discover-result__badge {
    font-size: 0.72em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--green-light);
    color: var(--sage);
    font-weight: 600;
}
#discover-success[hidden] {
    display: none !important;
}
#discover-success.discover-status--success {
    margin-top: 16px;
}
.discover-empty {
    margin-top: 16px;
    text-align: center;
    padding: 18px 14px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-strong);
    color: var(--ink-soft);
}
.discover-empty i { font-size: 1.4em; color: var(--ink-muted); margin-bottom: 8px; }
.discover-card__word {
    margin: 0;
    font-size: 1.65em;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
    color: var(--ink);
}
.discover-card__translation {
    margin: 6px 0 0;
    font-size: 1.1em;
    color: var(--royal);
    font-weight: 600;
}
.discover-card__meta {
    margin: 10px 0 0;
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--ink-soft);
}
.discover-card__example {
    margin: 12px 0 0;
    font-size: var(--text-md);
    font-weight: var(--weight-regular);
    font-style: normal;
    line-height: var(--leading-relaxed);
    letter-spacing: 0.01em;
    color: var(--ink);
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
}
.discover-card__note {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--royal-light);
    color: var(--ink);
    font-size: 0.85em;
}
.discover-classify {
    margin: 20px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.discover-classify__label {
    margin: 0 0 10px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--ink);
}
.discover-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.discover-level {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--card);
    color: var(--ink);
    font-size: 0.82em;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.discover-level:hover { border-color: var(--royal); }
.discover-level.is-active {
    background: var(--royal);
    border-color: var(--royal);
    color: #fff;
}
.discover-status {
    margin: 12px 0 0;
    font-size: 0.88em;
    color: var(--sage);
    font-weight: 500;
    min-height: 1.2em;
}
.discover-status--success {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--green-light);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--ink);
}
.discover-success__text {
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.45;
}
.discover-success__link {
    font-size: 0.88em;
    font-weight: 600;
    color: var(--royal);
    text-decoration: none;
}
.discover-success__link:hover { text-decoration: underline; }
.cat-tile[data-c="1"] { border-top-color: #ef4444; }
.cat-tile[data-c="1"] .cat-tile__icon { background: #fef2f2; color: #dc2626; }
.cat-tile[data-c="1"] .cat-tile__count { color: #dc2626; }
.cat-tile[data-c="2"] { border-top-color: #f97316; }
.cat-tile[data-c="2"] .cat-tile__icon { background: #fff7ed; color: #ea580c; }
.cat-tile[data-c="2"] .cat-tile__count { color: #ea580c; }
.cat-tile[data-c="3"] { border-top-color: #eab308; }
.cat-tile[data-c="3"] .cat-tile__icon { background: #fefce8; color: #ca8a04; }
.cat-tile[data-c="3"] .cat-tile__count { color: #ca8a04; }
.cat-tile[data-c="4"] { border-top-color: #3b82f6; }
.cat-tile[data-c="4"] .cat-tile__icon { background: #eff6ff; color: #2563eb; }
.cat-tile[data-c="4"] .cat-tile__count { color: #2563eb; }
.cat-tile[data-c="5"] { border-top-color: #22c55e; }
.cat-tile[data-c="5"] .cat-tile__icon { background: var(--green-light); color: var(--green-dark); }
.cat-tile[data-c="5"] .cat-tile__count { color: var(--green-dark); }

.section-head {
    font-family: var(--font-mono);
    font-size: 0.95em;
    font-weight: 400;
    margin: 32px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ── Nav cards ── */
.nav-cards { display: flex; flex-direction: column; gap: 14px; }
.nav-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}
.nav-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nav-card__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4em;
    flex-shrink: 0;
}
.nav-card--personal .nav-card__icon { background: var(--green-light); color: var(--green-dark); }
.nav-card--levels .nav-card__icon { background: var(--royal-light); color: var(--royal); }
.nav-card--game .nav-card__icon { background: #fffbeb; color: #d97706; }
.nav-card__body { flex: 1; text-align: right; }
.nav-card__body h2 { margin: 0 0 4px; font-size: 1.15em; font-weight: 500; letter-spacing: -0.02em; }
.nav-card__body p { margin: 0; color: var(--ink-soft); font-size: 0.92em; line-height: 1.45; }
.nav-card__arrow { color: var(--ink-muted); transition: 0.2s; }
.nav-card:hover .nav-card__arrow { color: var(--blue); transform: translateX(-4px); }

/* ── Home pillars ── */
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pillar-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 4px;
    border-radius: 0 20px 20px 0;
}
.pillar-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0.6;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-card--vocab::before, .pillar-card--vocab::after { background: var(--accent-vocab); }
.pillar-card--sc::before, .pillar-card--sc::after { background: var(--accent-sc); }
.pillar-card--re::before, .pillar-card--re::after { background: var(--accent-re); }
.pillar-card--rc::before, .pillar-card--rc::after { background: var(--accent-rc); }
.pillar-card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4em;
    margin-bottom: 14px;
}
.pillar-card--vocab .pillar-card__icon { background: var(--royal-light); color: var(--blue-bright); }
.pillar-card--sc .pillar-card__icon { background: rgba(255, 115, 0, 0.14); color: var(--orange); }
.pillar-card--re .pillar-card__icon { background: var(--green-light); color: var(--sage); }
.pillar-card--rc .pillar-card__icon { background: var(--badge-bg); color: var(--lav); }
.pillar-card h2 { margin: 0 0 8px; font-size: 1.3em; font-weight: 500; letter-spacing: -0.02em; }
.pillar-card__cta { font-size: 0.85em; font-weight: 500; color: var(--blue-bright); display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.pillar-card:hover .pillar-card__cta { color: var(--lav); }

/* ── Radar card ── */
.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--fun-gradient);
}
.feature-card h2 { margin: 0 0 16px; font-size: 1.25em; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); letter-spacing: -0.02em; }
.score-big { font-size: clamp(2.8rem, 8vw, 4rem); font-weight: 500; color: var(--ink); line-height: 1; letter-spacing: -0.04em; }
.score-max { font-size: 1.2em; color: var(--ink-muted); font-weight: 400; }
.radar-bar {
    position: relative;
    height: 6px;
    background: var(--bg-soft);
    border-radius: 6px;
    border: 1px solid var(--border);
    margin: 28px auto 32px;
    max-width: 600px;
}
.radar-bar__fill {
    height: 100%;
    border-radius: 6px;
    background: var(--progress-gradient);
    transition: width 1.2s ease;
}
.radar-bar__marker {
    position: absolute;
    top: -8px; bottom: -8px;
    width: 3px;
    background: var(--ink);
    right: 89.3%;
    border-radius: 2px;
}
.radar-bar__label {
    position: absolute;
    top: -32px;
    right: 89.3%;
    transform: translateX(50%);
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
    background: var(--bg-soft);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* ── Empty state ── */
.empty-state {
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--card);
    border: 2px dashed #c7d2fe;
    max-width: 600px;
    margin: 0 auto 24px;
}
.empty-state__icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--royal-light);
    color: var(--royal);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6em;
    margin: 0 auto 16px;
}
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { color: var(--slate); line-height: 1.6; margin: 0 0 20px; }

/* ── Buttons ── */
.btn-elite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 1em;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}
.btn-elite:active { transform: translateY(0); }
.btn-elite--primary {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(38, 119, 255, 0.2);
}
.btn-elite--primary:hover { background: var(--blue-bright); color: #fff; box-shadow: 0 6px 24px rgba(38, 119, 255, 0.35); }
.btn-elite--royal {
    background: var(--btn-bg);
    color: var(--btn-fg);
    box-shadow: 0 4px 20px rgba(129, 127, 255, 0.2);
}
.btn-elite--royal:hover { background: var(--lav); box-shadow: 0 6px 24px rgba(129, 127, 255, 0.35); }
.btn-elite--ghost {
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}
.btn-elite--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-elite--block { width: 100%; }
.btn-elite--sm { padding: 12px 20px; font-size: 0.92em; }

/* ── Forms ── */
.elite-input, .elite-select, .elite-textarea, .form-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--bg-soft);
    color: var(--ink);
    font-family: inherit;
    font-size: 1em;
}
.elite-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(38, 119, 255, 0.12);
}
.elite-label, .form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); font-size: 0.92em; }
.elite-field { margin-bottom: 18px; text-align: right; }

/* ── Auth ── */
.auth-card { width: 100%; max-width: 420px; padding: 40px 32px; animation: elite-rise 0.4s ease; }
.auth-card h1 { margin: 0 0 8px; font-size: 1.9em; text-align: center; }
.auth-card > p { color: var(--slate); text-align: center; line-height: 1.55; margin-bottom: 24px; }
.auth-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--fun-gradient);
    color: #fefefe;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8em;
    margin: 0 auto 16px;
}
.elite-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid #fecdd3;
    font-size: 0.9em;
}

/* ── Practice menus ── */
.menu-container { width: 100%; max-width: 800px; margin: 0 auto; }
.menu-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.menu-header { text-align: center; margin-bottom: 24px; }
.menu-header h1 { margin: 0 0 8px; font-size: 1.9em; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; }
.menu-header p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95em;
    line-height: 1.55;
    max-width: 36em;
    margin-inline: auto;
}
.menu-diagnostic-note {
    font-size: 0.88em;
    color: var(--subtitle);
    margin: 0 0 14px;
}
.menu-practice-note {
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 20px;
    text-align: center;
    font-size: 0.92em;
    line-height: 1.5;
}
.menu-practice-note i { color: #7209b7; margin-left: 6px; }
.menu-custom-topic {
    display: none;
    margin-top: 10px;
    border-color: var(--royal);
}
.menu-guide {
    margin-bottom: 24px;
}
.menu-guide__head {
    margin: 0 0 12px;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--ink-muted);
    text-align: center;
}
.menu-guide__grid {
    margin-bottom: 0;
}
.menu-guide .trap-item,
.menu-guide .skill-item {
    cursor: pointer;
    border-color: var(--border);
}
.menu-guide .trap-item.active,
.menu-guide .skill-item.active {
    border-color: var(--border-strong);
}
.menu-performance-link {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.menu-performance-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}
.menu-performance-link a:hover {
    color: var(--royal);
}
.menu-performance-link i {
    font-size: 0.95em;
    color: var(--royal);
}

.accuracy-widget {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    text-align: center;
    margin-bottom: 24px;
}
.accuracy-widget--pending {
    border-style: dashed;
    border-color: var(--border-strong);
    padding: 28px 20px;
}
.accuracy-widget__icon {
    font-size: 2em;
    color: var(--royal);
    margin-bottom: 12px;
    display: block;
}
.accuracy-widget--pending .accuracy-widget__icon {
    color: var(--royal);
}
.accuracy-widget__title {
    font-size: 1.1em;
    color: var(--ink);
    margin: 0;
}
.accuracy-widget__hint {
    color: var(--subtitle);
    margin: 10px 0 0;
    font-size: 0.95em;
    line-height: 1.55;
    font-weight: 400;
}
.acc-score { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.correct-num { font-size: 2.8em; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.total-num { font-size: 1.2em; color: var(--subtitle); }
.acc-bar-bg { max-width: 400px; height: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; margin: 0 auto; overflow: hidden; }
.acc-bar-fill { height: 100%; border-radius: 10px; transition: width 1s ease; }

.stats-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.trap-item, .skill-item {
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    text-align: right;
    transition: border-color 0.2s;
}
.trap-item:hover, .skill-item:hover { border-color: var(--border-strong); }
.trap-header, .skill-header { padding: 16px 18px; display: flex; align-items: center; gap: 10px; }
.trap-info, .skill-info { flex: 1; min-width: 0; }
.trap-title, .skill-title {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.trap-title i, .skill-title i { flex-shrink: 0; }
.trap-subtitle, .skill-subtitle {
    margin: 6px 0 0;
    font-size: 0.9em;
    line-height: 1.45;
    color: var(--subtitle);
}
.trap-subtitle strong, .skill-subtitle strong { color: var(--ink); font-weight: 600; }
.status-badge {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.78em;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex; align-items: center; gap: 5px;
}
.status-safe { background: var(--green-light); color: #15803d; }
.status-warning { background: #fef9c3; color: #a16207; }
.status-vulnerable { background: #fee2e2; color: #b91c1c; }
.status-neutral { background: var(--bg-soft); color: var(--subtitle); border: 1px solid var(--border); }
[data-theme="dark"] .status-safe { background: rgba(34, 197, 94, 0.16); color: #86efac; }
[data-theme="dark"] .status-warning { background: rgba(234, 179, 8, 0.16); color: #fde047; }
[data-theme="dark"] .status-vulnerable { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
[data-theme="dark"] .status-neutral { background: rgba(255, 252, 246, 0.06); color: var(--ink-soft); }
.status-safe-border { border-right: 4px solid #22c55e; }
.status-warning-border { border-right: 4px solid #eab308; }
.status-vulnerable-border { border-right: 4px solid #ef4444; }
.status-neutral-border { border-right: 4px solid #94a3b8; }
.trap-indicator, .skill-indicator { color: var(--slate-light); transition: 0.25s; flex-shrink: 0; }
.trap-desc, .skill-desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    padding: 0 18px;
    color: var(--ink-soft);
    font-size: 0.9em;
    line-height: 1.55;
    background: var(--card);
}
.trap-item.active .trap-desc, .skill-item.active .skill-desc { max-height: 280px; padding: 0 18px 16px; }
.trap-item.active .trap-indicator, .skill-item.active .skill-indicator { transform: rotate(180deg); }

.config-box {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    text-align: right;
}

.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    border: none;
    font-family: inherit;
    font-size: 1em;
    font-weight: 400;
    color: var(--btn-fg);
    background: var(--btn-bg);
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    line-height: 1;
    box-shadow: 0 4px 20px rgba(38, 119, 255, 0.18);
}
.btn-primary:hover { background: var(--blue-bright); color: #fff; box-shadow: 0 6px 24px rgba(38, 119, 255, 0.32); }
.btn-primary:active { transform: translateY(0); }

.menu-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.reset-link {
    background: none;
    border: none;
    color: var(--slate-light);
    font-family: inherit;
    font-size: 0.82em;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
}
.reset-link:hover { color: #dc2626; }

/* hide old floating reset */
.reset-btn { display: none !important; }

.sc-theme .correct-num, .sc-theme .brain-loader { color: var(--orange); }
.sc-theme .acc-bar-fill { background: var(--orange); }
.sc-theme .btn-primary { background: var(--btn-bg); }
.sc-theme .btn-primary:hover { background: var(--orange); color: #fff; }
.re-theme .correct-num, .re-theme .brain-loader { color: var(--sage); }
.re-theme .acc-bar-fill { background: var(--sage); }
.re-theme .btn-primary { background: var(--btn-bg); }
.re-theme .btn-primary:hover { background: var(--sage); color: #fff; }
.rc-theme .correct-num, .rc-theme .brain-loader { color: var(--lav); }
.rc-theme .acc-bar-fill { background: var(--lav); }
.rc-theme .btn-primary { background: var(--btn-bg); }
.rc-theme .btn-primary:hover { background: var(--lav); color: #fff; }

/* ── Modals & loaders ── */
.modal-overlay, .elite-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(60, 58, 57, 0.4);
    backdrop-filter: blur(6px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    direction: rtl;
}
.modal-card, .elite-modal {
    background: var(--card);
    padding: 28px;
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    color: var(--ink);
}
.modal-card h3, .elite-modal h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 1.2em; }
.modal-card p { color: var(--subtitle); line-height: 1.55; margin-bottom: 16px; }
.modal-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    box-sizing: border-box;
}
.modal-btn--primary {
    background: var(--blue);
    color: #fff;
}
.modal-btn--primary:hover { background: var(--blue-bright); }
.modal-btn--secondary {
    background: var(--bg-soft);
    color: var(--ink);
    border: 1px solid var(--border-strong);
}
.modal-btn--secondary:hover {
    border-color: var(--blue-bright);
    color: var(--blue-bright);
}
.qa-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.qa-option {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    background: var(--bg-soft);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    color: var(--ink);
    font-size: 0.92em;
}
.qa-note-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    font-family: inherit;
    margin-bottom: 16px;
    box-sizing: border-box;
    background: var(--card);
    color: var(--ink);
}
.qa-note-input::placeholder { color: var(--ink-muted); }
.qa-modal-actions {
    display: flex;
    gap: 10px;
}
.qa-modal-actions .modal-btn {
    flex: 1;
    margin-top: 0;
}
.modal-card label {
    color: var(--ink);
}
.modal-card label[style*="background: #f8fafc"],
.modal-card label[style*="background:#f8fafc"] {
    background: var(--bg-soft) !important;
    border-color: var(--border-strong) !important;
    color: var(--ink) !important;
}
.diff-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.diff-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9em;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.diff-btn.selected {
    background: var(--btn-bg) !important;
    color: var(--btn-fg) !important;
    border-color: var(--btn-bg) !important;
}

#loading-overlay, .elite-loader, .loader-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(8px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: var(--ink);
}
.loader-overlay.is-visible { display: flex; }
.loader-overlay h3 { margin: 12px 0 0; color: var(--ink); font-weight: 500; }
.loader-overlay .spinner {
    width: 42px;
    height: 42px;
    border: 3px solid var(--border-strong);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: elite-spin 0.8s linear infinite;
}
@keyframes elite-spin { to { transform: rotate(360deg); } }
.diagnostic-result-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: right;
    margin-bottom: 25px;
}
.brain-loader { font-size: 3em; margin-bottom: 16px; animation: elite-rise 1s ease infinite alternate; }

/* ── Matchup ── */
.matchup-page { max-width: 720px; margin: 0 auto; padding: 24px 20px 48px; }
.matchup-hud {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.hud-stat { text-align: center; }
.hud-label { font-size: 0.75em; color: var(--slate); text-transform: uppercase; letter-spacing: 0.5px; }
.hud-value { font-size: 1.6em; font-weight: 500; color: var(--orange); letter-spacing: -0.02em; }
.matchup-timer {
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--orange);
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.matchup-timer.urgent { color: #dc2626; }
.combo-bar { height: 8px; background: #e2e8f0; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.combo-fill { height: 100%; background: var(--blue); border-radius: 8px; transition: width 0.3s; }
.combo-text { text-align: center; font-size: 0.88em; color: var(--ink-muted); font-family: var(--font-mono); margin-bottom: 6px; min-height: 1.2em; }
.board-wrap { position: relative; direction: ltr; }
.board-wrap::after {
    content: '';
    position: absolute;
    top: 40px; bottom: 0; left: 50%;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
    pointer-events: none;
}
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.col-title { text-align: center; font-size: 0.7em; text-transform: uppercase; letter-spacing: 1px; color: var(--slate); font-weight: 600; margin-bottom: 10px; }
.word-btn {
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--ink);
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    transition: 0.15s;
}
.col-en .word-btn { direction: ltr; text-align: left; justify-content: flex-start; }
.col-he .word-btn { direction: rtl; text-align: right; justify-content: flex-end; }
.word-btn:hover:not(.matched) { border-color: var(--blue); background: var(--royal-light); }
.word-btn.selected { border-color: var(--blue); background: var(--royal-light); }
.word-btn.matched { border-color: var(--sage); background: var(--green-light); color: var(--green-dark); pointer-events: none; }
.word-btn.error { border-color: #ef4444; background: #fee2e2; animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.matchup-summary {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
}

/* Hide deprecated dark ambient */
.elite-ambient { display: none !important; }

/* ── Boost brand ── */
@keyframes boostRocketFloat {
    0%, 100% { transform: rotate(-12deg) translateY(0); }
    50% { transform: rotate(-10deg) translateY(-6px); }
}

.boost-logo-wrap {
    text-align: center;
    margin-bottom: 4px;
}
.boost-logo-wrap--sm { margin-bottom: 12px; }
.boost-logo-wrap--inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: right;
    margin-bottom: 0;
}
.boost-logo-wrap--inline .boost-rocket { margin: 0; }

.boost-rocket {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 22px;
    background: var(--fun-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
    transform: rotate(-12deg);
}
.boost-rocket--animated { animation: boostRocketFloat 4s ease-in-out infinite; }
.boost-rocket--sm {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.35rem;
    margin-bottom: 10px;
}
.boost-rocket--md {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 1.75rem;
    margin: 0 auto 16px;
}
.boost-rocket--xs {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin: 0;
    box-shadow: var(--shadow-sm);
}

.boost-wordmark {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
    font-family: var(--font-sans);
    font-size: var(--boost-wordmark-size, 1.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
    background: var(--boost-wordmark-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.boost-wordmark--sm {
    --boost-wordmark-size: 1.15rem;
    letter-spacing: -0.028em;
}
.boost-wordmark--xs {
    --boost-wordmark-size: 1.2rem;
    letter-spacing: -0.03em;
}
/* לוגו מרכזי (מתחת לאייקון) — אותו גוון, גופן וגרדיאנט כמו בפינה */
.boost-logo-wrap:not(.boost-logo-wrap--inline) > .boost-wordmark {
    --boost-wordmark-size: 1.2rem;
    margin-top: 6px;
}
.boost-wordmark--phrase {
    --boost-wordmark-size: 0.98rem;
    letter-spacing: -0.025em;
    font-weight: 800;
    text-transform: lowercase;
}

.boost-tagline {
    margin: 10px 0 0;
    font-size: 1.15em;
    color: var(--subtitle);
    font-weight: 500;
    line-height: 1.5;
}
.boost-gradient-text {
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 3.2vw, 1.28rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.45;
    background: var(--fun-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.boost-module-slogan {
    margin: 0;
    direction: ltr;
    unicode-bidi: isolate;
}
.boost-tagline--register {
    margin: 6px 0 28px;
}
.boost-page-header {
    text-align: center;
    margin-bottom: 0;
}
.boost-page-header--slogan-only {
    margin-bottom: 12px;
}
.boost-page-header--slogan-only .boost-module-slogan {
    font-size: 1.05rem;
    font-weight: 600;
}
.boost-logo-wrap--page {
    margin-bottom: 0;
}
.boost-logo-wrap--page .boost-rocket--sm {
    margin-bottom: 4px;
}
.boost-page-header__badge {
    margin-top: 10px;
    margin-bottom: 0;
}
.menu-header .boost-page-header + h1,
.elite-hero .boost-page-header + h1 {
    margin-top: 10px;
}
.menu-header .boost-page-header__badge + h1,
.elite-hero .boost-page-header__badge + h1 {
    margin-top: 8px;
}

.elite-userbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
}

.boost-page-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.home-greeting h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ink);
}
.home-greeting p {
    font-size: 1.1em;
    line-height: 1.65;
    color: var(--subtitle);
    max-width: 540px;
    margin: 0 auto;
}
.home-greeting .rocket-inline {
    display: inline-block;
    margin-right: 4px;
    font-size: 1.1em;
    vertical-align: middle;
}

.boost-register {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(24px, 5vh, 44px) 20px 56px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}
.boost-card {
    width: 100%;
    max-width: 440px;
    padding: 28px 24px 32px;
    margin-bottom: 22px;
}

.register-auth-card {
    padding-top: 22px;
}

.register-auth-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    margin: 0 0 22px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.register-auth-switch__btn {
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.register-auth-switch__btn.is-active {
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.register-auth-form .elite-field:last-of-type {
    margin-bottom: 22px;
}

.register-password-wrap {
    position: relative;
}

.register-password-input {
    width: 100%;
    padding-left: 44px;
}

.register-password-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.register-password-toggle:hover {
    color: var(--ink);
    background: var(--royal-light);
}

.register-auth-hint {
    margin: 8px 0 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--ink-muted);
    text-align: right;
}

.register-auth-confirm.is-hidden {
    display: none;
}

.register-auth-submit {
    gap: 8px;
}

.register-auth-submit [hidden] {
    display: none !important;
}

[data-theme="dark"] .register-auth-switch {
    background: rgba(255, 252, 246, 0.04);
}

[data-theme="dark"] .register-auth-switch__btn.is-active {
    background: var(--card);
}

[data-theme="dark"] .register-password-toggle:hover {
    background: rgba(38, 119, 255, 0.14);
}

/* ── Register: info accordions ── */
.register-privacy {
    width: 100%;
    margin: 0 0 4px;
    padding: 0 4px;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--ink-muted);
    text-align: center;
}
.register-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.register-accordion {
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.register-accordion[open] {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}
.register-accordion__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.register-accordion__summary::-webkit-details-marker { display: none; }
.register-accordion__summary::marker { content: ''; }
.register-accordion__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
}
.register-accordion--exam .register-accordion__icon {
    background: var(--royal-light);
    color: var(--royal);
}
.register-accordion--pet .register-accordion__icon {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}
[data-theme="dark"] .register-accordion--pet .register-accordion__icon {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}
.register-accordion--about .register-accordion__icon {
    background: rgba(255, 115, 0, 0.12);
    color: var(--orange);
}
.register-accordion--modules .register-accordion__icon {
    background: rgba(20, 184, 166, 0.18);
    color: #0d9488;
}
[data-theme="dark"] .register-accordion--modules .register-accordion__icon {
    background: rgba(45, 212, 191, 0.16);
    color: #5eead4;
}
.register-accordion__label {
    flex: 1;
    min-width: 0;
    text-align: right;
}
.register-accordion__title {
    display: block;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.register-accordion__hint {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--ink-muted);
    line-height: 1.35;
}
.register-accordion__chev {
    flex-shrink: 0;
    font-size: 0.75em;
    color: var(--ink-muted);
    transition: transform 0.25s ease;
}
.register-accordion[open] .register-accordion__chev { transform: rotate(180deg); }
.register-accordion__panel {
    padding: 0 16px 16px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--ink-soft);
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}
.register-accordion__panel > p:first-child { margin-top: 14px; }
.register-accordion__panel p { margin: 0 0 12px; }
.register-accordion__panel em {
    font-style: normal;
    font-weight: 600;
    color: var(--ink);
}
.register-accordion__lead { color: var(--ink) !important; font-size: 0.86rem !important; }
.register-accordion__sub {
    margin: 14px 0 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.register-accordion__note {
    margin: 12px 0 0 !important;
    font-size: 0.78rem !important;
    color: var(--ink-muted) !important;
    font-style: italic;
}
.register-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}
.register-facts div {
    padding: 10px 8px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    text-align: center;
}
.register-facts strong {
    display: block;
    font-size: 1.1rem;
    color: var(--royal);
    font-weight: 700;
    line-height: 1.2;
}
.register-facts span {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--ink-muted);
}
.register-levels {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.register-levels li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--ink);
}
.register-levels__score {
    font-weight: 700;
    color: var(--royal);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.register-bullets {
    margin: 0;
    padding: 0 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.register-bullets li {
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.55;
}
.register-bullets strong { color: var(--ink); font-weight: 600; }
.register-modules {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.register-modules li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
}
.register-modules i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    background: var(--bg-soft);
    color: var(--blue-bright);
    margin-top: 1px;
}
.register-modules li:nth-child(1) i { color: var(--royal); background: var(--royal-light); }
.register-modules li:nth-child(2) i { color: var(--blue-bright); background: var(--royal-light); }
.register-modules li:nth-child(3) i { color: var(--lav); background: var(--badge-bg); }
.register-modules li:nth-child(4) i { color: var(--sage); background: var(--green-light); }
.register-modules li:nth-child(5) i { color: var(--orange); background: rgba(255, 115, 0, 0.12); }
.register-modules li:nth-child(6) i { color: var(--royal); background: var(--royal-light); }
.register-modules strong {
    display: block;
    font-size: 0.86rem;
    color: var(--ink);
    margin-bottom: 2px;
}
.register-modules span {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.pillar-grid .pillar-card {
    animation: elite-rise 0.55s ease backwards;
}
.pillar-grid .pillar-card:nth-child(1) { animation-delay: 0.04s; }
.pillar-grid .pillar-card:nth-child(2) { animation-delay: 0.1s; }
.pillar-grid .pillar-card:nth-child(3) { animation-delay: 0.16s; }
.pillar-grid .pillar-card:nth-child(4) { animation-delay: 0.22s; }
.pillar-card__icon { transition: transform 0.3s ease; }
.pillar-card:hover .pillar-card__icon { transform: scale(1.08) rotate(-3deg); }

.nav-cards .nav-card {
    animation: elite-rise 0.5s ease backwards;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s;
}
.nav-cards .nav-card:nth-child(1) { animation-delay: 0.05s; }
.nav-cards .nav-card:nth-child(2) { animation-delay: 0.11s; }
.nav-cards .nav-card:nth-child(3) { animation-delay: 0.17s; }
.nav-cards .nav-card:nth-child(4) { animation-delay: 0.23s; }
.nav-cards .nav-card:nth-child(5) { animation-delay: 0.29s; }
.nav-cards .nav-card:nth-child(6) { animation-delay: 0.35s; }
.nav-card:hover { transform: translateY(-4px); }
.nav-card__icon { transition: transform 0.28s ease; }
.nav-card:hover .nav-card__icon { transform: scale(1.06); }

.feature-card--light { animation: elite-rise 0.5s ease 0.12s backwards; }

@media (max-width: 480px) {
    .register-facts { grid-template-columns: 1fr; }
    .register-levels li { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .elite-grid--sources, .layout-grid--sources { grid-template-columns: repeat(3, 1fr); }
    .elite-grid--leitner, .layout-grid--leitner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .pillar-grid { grid-template-columns: 1fr; }
    .elite-grid--stats, .layout-grid--stats { grid-template-columns: 1fr; }
    .elite-grid--sources, .elite-grid--sources,
    .elite-grid--leitner, .layout-grid--leitner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .elite-grid--sources, .elite-grid--sources,
    .elite-grid--leitner, .layout-grid--leitner { grid-template-columns: 1fr; }
    .vault-feature-card {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 18px 16px;
        gap: 14px;
    }
    .vault-feature-card__meta {
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
        min-width: 0;
        margin-inline-start: auto;
    }
    .vault-feature-card__count { font-size: 1.6em; }
    .vault-feature-card__label { margin-top: 0; }
    .vault-feature-card__arrow { display: none; }
    .vault-feature-card__body { flex-basis: calc(100% - 68px); }
    .vault-feature-card__cta {
        margin-inline-start: auto;
        order: 3;
    }
}

/* ── Home: overview strips + practice divider ── */
.home-overview {
    margin-bottom: 4px;
}
.home-strips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.home-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}
.home-strip::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 4px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
a.home-strip:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.home-strip--sim {
    background: linear-gradient(135deg, rgba(38, 119, 255, 0.16) 0%, rgba(38, 119, 255, 0.04) 38%, var(--card) 100%);
    border-color: rgba(38, 119, 255, 0.38);
}
.home-strip--sim::before {
    background: linear-gradient(180deg, #93c5fd 0%, #2677ff 100%);
}
.home-strip--sim:hover { border-color: rgba(38, 119, 255, 0.45); }
.home-strip--pet {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(239, 68, 68, 0.03) 38%, var(--card) 100%);
    border-color: rgba(239, 68, 68, 0.36);
}
.home-strip--pet::before {
    background: linear-gradient(180deg, #fca5a5 0%, #dc2626 100%);
}
.home-strip--pet:hover { border-color: rgba(239, 68, 68, 0.48); }
.home-strip--perf {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.14) 0%, rgba(236, 72, 153, 0.03) 38%, var(--card) 100%);
    border-color: rgba(236, 72, 153, 0.34);
}
.home-strip--perf::before {
    background: linear-gradient(180deg, #f9a8d4 0%, #ec4899 100%);
}
.home-strip--perf:hover { border-color: rgba(236, 72, 153, 0.48); }
.home-strip--vocab {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, var(--card) 42%, var(--card) 100%);
    border-color: rgba(139, 92, 246, 0.32);
}
.home-strip--vocab::before {
    background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 100%);
}
.home-strip--vocab:hover { border-color: rgba(139, 92, 246, 0.45); }
.home-strip--sc {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, var(--card) 42%, var(--card) 100%);
    border-color: rgba(249, 115, 22, 0.32);
}
.home-strip--sc::before {
    background: linear-gradient(180deg, #fdba74 0%, #f97316 100%);
}
.home-strip--sc:hover { border-color: rgba(249, 115, 22, 0.45); }
.home-strip--re {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.09) 0%, var(--card) 42%, var(--card) 100%);
    border-color: rgba(244, 63, 94, 0.3);
}
.home-strip--re::before {
    background: linear-gradient(180deg, #fda4af 0%, #f43f5e 100%);
}
.home-strip--re:hover { border-color: rgba(244, 63, 94, 0.42); }
.home-strip--rc {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, var(--card) 42%, var(--card) 100%);
    border-color: rgba(14, 165, 233, 0.32);
}
.home-strip--rc::before {
    background: linear-gradient(180deg, #7dd3fc 0%, #0ea5e9 100%);
}
.home-strip--rc:hover { border-color: rgba(14, 165, 233, 0.45); }
.home-strip--practice-hub {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.03) 38%, var(--card) 100%);
    border-color: rgba(249, 115, 22, 0.36);
}
.home-strip--practice-hub::before {
    background: linear-gradient(180deg, #fdba74 0%, #f97316 55%, #ea580c 100%);
}
.home-strip--practice-hub:hover { border-color: rgba(249, 115, 22, 0.5); }
.home-strip--practice-hub .home-strip__icon {
    background: rgba(249, 115, 22, 0.18);
    color: #ea580c;
}
.home-strip--practice-hub .home-strip__cta {
    background: rgba(249, 115, 22, 0.16);
    color: #c2410c;
    box-shadow: 0 3px 16px rgba(249, 115, 22, 0.24);
}
.home-strip--practice-hub:hover .home-strip__cta {
    background: rgba(249, 115, 22, 0.24);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.32);
}
.home-strip--games-hub {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.14) 0%, rgba(168, 85, 247, 0.03) 38%, var(--card) 100%);
    border-color: rgba(168, 85, 247, 0.34);
}
.home-strip--games-hub::before {
    background: linear-gradient(180deg, #d8b4fe 0%, #a855f7 55%, #7c3aed 100%);
}
.home-strip--games-hub:hover { border-color: rgba(168, 85, 247, 0.48); }
.home-strip--games-hub .home-strip__icon {
    background: rgba(168, 85, 247, 0.18);
    color: #7c3aed;
}
.home-strip--games-hub .home-strip__cta {
    background: rgba(168, 85, 247, 0.14);
    color: #6d28d9;
    box-shadow: 0 3px 16px rgba(168, 85, 247, 0.24);
}
.home-strip--games-hub:hover .home-strip__cta {
    background: rgba(168, 85, 247, 0.22);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.32);
}
.home-strip--learning {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.14) 0%, rgba(20, 184, 166, 0.03) 38%, var(--card) 100%);
    border-color: rgba(20, 184, 166, 0.34);
}
.home-strip--learning::before {
    background: linear-gradient(180deg, #5eead4 0%, #14b8a6 55%, #0d9488 100%);
}
.home-strip--learning:hover { border-color: rgba(20, 184, 166, 0.48); }
.home-strip--learning .home-strip__icon {
    background: rgba(20, 184, 166, 0.18);
    color: #0d9488;
}
.home-strip--learning .home-strip__cta {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
    box-shadow: 0 3px 16px rgba(20, 184, 166, 0.22);
}
.home-strip--learning:hover .home-strip__cta {
    background: rgba(20, 184, 166, 0.22);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}
.home-strip__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05em;
}
.home-strip--sim .home-strip__icon {
    background: rgba(38, 119, 255, 0.14);
    color: #2563eb;
}
.home-strip--pet .home-strip__icon {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}
[data-theme="dark"] .home-strip--pet .home-strip__icon {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}
.home-strip--perf .home-strip__icon {
    background: rgba(236, 72, 153, 0.16);
    color: #db2777;
}
.home-strip--vocab .home-strip__icon {
    background: rgba(139, 92, 246, 0.14);
    color: #7c3aed;
}
.home-strip--sc .home-strip__icon {
    background: rgba(249, 115, 22, 0.14);
    color: #ea580c;
}
.home-strip--re .home-strip__icon {
    background: rgba(244, 63, 94, 0.12);
    color: #e11d48;
}
.home-strip--rc .home-strip__icon {
    background: rgba(14, 165, 233, 0.14);
    color: #0284c7;
}
.home-strip__body {
    flex: 1;
    min-width: 0;
    text-align: start;
}
.home-strip__body h2 {
    margin: 0 0 2px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.home-strip__body p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--ink-soft);
}
.home-strip__meta {
    margin: 4px 0 0 !important;
    font-size: 0.78rem !important;
    color: var(--subtitle) !important;
}
.home-strip__meta a {
    color: var(--royal);
    text-decoration: none;
    font-weight: 600;
}
.home-strip__meta a:hover { text-decoration: underline; }
.home-strip__action {
    flex-shrink: 0;
}
.home-strip__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.78em;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.home-strip--sim .home-strip__cta {
    background: rgba(38, 119, 255, 0.14);
    color: #1d4ed8;
    box-shadow: 0 3px 16px rgba(38, 119, 255, 0.22);
}
.home-strip--sim:hover .home-strip__cta {
    background: rgba(38, 119, 255, 0.22);
    box-shadow: 0 4px 20px rgba(38, 119, 255, 0.32);
}
.home-strip--pet .home-strip__cta {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
    box-shadow: 0 3px 16px rgba(239, 68, 68, 0.22);
}
.home-strip--pet:hover .home-strip__cta {
    background: rgba(239, 68, 68, 0.22);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}
.home-strip--perf .home-strip__cta {
    background: rgba(236, 72, 153, 0.14);
    color: #be185d;
    box-shadow: 0 3px 16px rgba(236, 72, 153, 0.22);
}
.home-strip--perf:hover .home-strip__cta {
    background: rgba(236, 72, 153, 0.22);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}
.home-strip--vocab .home-strip__cta {
    background: rgba(139, 92, 246, 0.14);
    color: #6d28d9;
    box-shadow: 0 3px 16px rgba(139, 92, 246, 0.2);
}
.home-strip--vocab:hover .home-strip__cta {
    background: rgba(139, 92, 246, 0.22);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.home-strip--sc .home-strip__cta {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
    box-shadow: 0 3px 16px rgba(249, 115, 22, 0.2);
}
.home-strip--sc:hover .home-strip__cta {
    background: rgba(249, 115, 22, 0.22);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}
.home-strip--re .home-strip__cta {
    background: rgba(244, 63, 94, 0.12);
    color: #be123c;
    box-shadow: 0 3px 16px rgba(244, 63, 94, 0.18);
}
.home-strip--re:hover .home-strip__cta {
    background: rgba(244, 63, 94, 0.2);
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.28);
}
.home-strip--rc .home-strip__cta {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
    box-shadow: 0 3px 16px rgba(14, 165, 233, 0.2);
}
.home-strip--rc:hover .home-strip__cta {
    background: rgba(14, 165, 233, 0.22);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

/* Home strip CTAs — dark mode (higher text contrast) */
[data-theme="dark"] .home-strip__cta,
body[data-theme="dark"] .home-strip__cta {
    font-weight: 650;
}
[data-theme="dark"] .home-strip--sim .home-strip__cta,
body[data-theme="dark"] .home-strip--sim .home-strip__cta {
    background: rgba(77, 148, 255, 0.24);
    color: #bfdbfe;
    box-shadow: 0 3px 16px rgba(77, 148, 255, 0.28);
}
[data-theme="dark"] .home-strip--sim:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--sim:hover .home-strip__cta {
    background: rgba(77, 148, 255, 0.32);
    color: #dbeafe;
    box-shadow: 0 4px 20px rgba(77, 148, 255, 0.36);
}
[data-theme="dark"] .home-strip--pet .home-strip__cta,
body[data-theme="dark"] .home-strip--pet .home-strip__cta {
    background: rgba(248, 113, 113, 0.24);
    color: #fecaca;
    box-shadow: 0 3px 16px rgba(248, 113, 113, 0.28);
}
[data-theme="dark"] .home-strip--pet:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--pet:hover .home-strip__cta {
    background: rgba(248, 113, 113, 0.32);
    color: #fee2e2;
    box-shadow: 0 4px 20px rgba(248, 113, 113, 0.36);
}
[data-theme="dark"] .home-strip--perf .home-strip__cta,
body[data-theme="dark"] .home-strip--perf .home-strip__cta {
    background: rgba(244, 114, 182, 0.24);
    color: #fbcfe8;
    box-shadow: 0 3px 16px rgba(244, 114, 182, 0.28);
}
[data-theme="dark"] .home-strip--perf:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--perf:hover .home-strip__cta {
    background: rgba(244, 114, 182, 0.32);
    color: #fce7f3;
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.36);
}
[data-theme="dark"] .home-strip--vocab .home-strip__cta,
body[data-theme="dark"] .home-strip--vocab .home-strip__cta {
    background: rgba(167, 139, 250, 0.24);
    color: #ddd6fe;
    box-shadow: 0 3px 16px rgba(167, 139, 250, 0.28);
}
[data-theme="dark"] .home-strip--vocab:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--vocab:hover .home-strip__cta {
    background: rgba(167, 139, 250, 0.32);
    color: #ede9fe;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.36);
}
[data-theme="dark"] .home-strip--sc .home-strip__cta,
body[data-theme="dark"] .home-strip--sc .home-strip__cta {
    background: rgba(251, 146, 60, 0.24);
    color: #fed7aa;
    box-shadow: 0 3px 16px rgba(251, 146, 60, 0.26);
}
[data-theme="dark"] .home-strip--sc:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--sc:hover .home-strip__cta {
    background: rgba(251, 146, 60, 0.32);
    color: #ffedd5;
    box-shadow: 0 4px 20px rgba(251, 146, 60, 0.34);
}
[data-theme="dark"] .home-strip--re .home-strip__cta,
body[data-theme="dark"] .home-strip--re .home-strip__cta {
    background: rgba(251, 113, 133, 0.22);
    color: #fecdd3;
    box-shadow: 0 3px 16px rgba(251, 113, 133, 0.26);
}
[data-theme="dark"] .home-strip--re:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--re:hover .home-strip__cta {
    background: rgba(251, 113, 133, 0.3);
    color: #ffe4e6;
    box-shadow: 0 4px 20px rgba(251, 113, 133, 0.34);
}
[data-theme="dark"] .home-strip--rc .home-strip__cta,
body[data-theme="dark"] .home-strip--rc .home-strip__cta {
    background: rgba(56, 189, 248, 0.24);
    color: #bae6fd;
    box-shadow: 0 3px 16px rgba(56, 189, 248, 0.28);
}
[data-theme="dark"] .home-strip--rc:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--rc:hover .home-strip__cta {
    background: rgba(56, 189, 248, 0.32);
    color: #e0f2fe;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.36);
}
[data-theme="dark"] .home-strip--practice-hub .home-strip__cta,
body[data-theme="dark"] .home-strip--practice-hub .home-strip__cta {
    background: rgba(251, 146, 60, 0.26);
    color: #fed7aa;
}
[data-theme="dark"] .home-strip--practice-hub:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--practice-hub:hover .home-strip__cta {
    background: rgba(251, 146, 60, 0.34);
    color: #ffedd5;
}
[data-theme="dark"] .home-strip--games-hub .home-strip__cta,
body[data-theme="dark"] .home-strip--games-hub .home-strip__cta {
    background: rgba(192, 132, 252, 0.26);
    color: #e9d5ff;
}
[data-theme="dark"] .home-strip--games-hub:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--games-hub:hover .home-strip__cta {
    background: rgba(192, 132, 252, 0.34);
    color: #f3e8ff;
}
[data-theme="dark"] .home-strip--learning .home-strip__cta,
body[data-theme="dark"] .home-strip--learning .home-strip__cta {
    background: rgba(45, 212, 191, 0.24);
    color: #99f6e4;
}
[data-theme="dark"] .home-strip--learning:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--learning:hover .home-strip__cta {
    background: rgba(45, 212, 191, 0.32);
    color: #ccfbf1;
}
[data-theme="dark"] .home-strip--word-rain .home-strip__cta,
body[data-theme="dark"] .home-strip--word-rain .home-strip__cta {
    background: rgba(129, 140, 248, 0.24);
    color: #c7d2fe;
    box-shadow: 0 3px 16px rgba(129, 140, 248, 0.28);
}
[data-theme="dark"] .home-strip--word-rain:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--word-rain:hover .home-strip__cta {
    background: rgba(129, 140, 248, 0.32);
    color: #e0e7ff;
    box-shadow: 0 4px 20px rgba(129, 140, 248, 0.36);
}
[data-theme="dark"] .home-strip--truth-hunt .home-strip__cta,
body[data-theme="dark"] .home-strip--truth-hunt .home-strip__cta {
    background: rgba(34, 211, 238, 0.22);
    color: #a5f3fc;
    box-shadow: 0 3px 16px rgba(34, 211, 238, 0.28);
}
[data-theme="dark"] .home-strip--truth-hunt:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--truth-hunt:hover .home-strip__cta {
    background: rgba(34, 211, 238, 0.3);
    color: #cffafe;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.36);
}
[data-theme="dark"] .home-strip--meaning-swipe .home-strip__cta,
body[data-theme="dark"] .home-strip--meaning-swipe .home-strip__cta {
    background: rgba(251, 113, 133, 0.22);
    color: #fecdd3;
    box-shadow: 0 3px 16px rgba(251, 113, 133, 0.26);
}
[data-theme="dark"] .home-strip--meaning-swipe:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--meaning-swipe:hover .home-strip__cta {
    background: rgba(251, 113, 133, 0.3);
    color: #ffe4e6;
    box-shadow: 0 4px 20px rgba(251, 113, 133, 0.34);
}
[data-theme="dark"] .home-strip--matchup .home-strip__cta,
body[data-theme="dark"] .home-strip--matchup .home-strip__cta {
    background: rgba(251, 191, 36, 0.24);
    color: #fde68a;
    box-shadow: 0 3px 16px rgba(251, 191, 36, 0.28);
}
[data-theme="dark"] .home-strip--matchup:hover .home-strip__cta,
body[data-theme="dark"] .home-strip--matchup:hover .home-strip__cta {
    background: rgba(251, 191, 36, 0.32);
    color: #fef3c7;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.36);
}

/* .game-home-back — see .boost-home-back above */
.home-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 22px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.home-divider--lead {
    margin-top: 0;
    margin-bottom: 16px;
}
.home-divider--section {
    margin-top: 40px;
    margin-bottom: 18px;
}
.home-divider::before,
.home-divider::after {
    content: '';
    flex: 1;
    height: 1px;
}
.home-divider::before {
    background: linear-gradient(to left, rgba(38, 119, 255, 0.22), rgba(139, 92, 246, 0.12), transparent);
}
.home-divider::after {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.18), rgba(244, 63, 94, 0.1), transparent);
}
.home-divider span {
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(38, 119, 255, 0.1) 0%, rgba(139, 92, 246, 0.08) 38%, rgba(16, 185, 129, 0.08) 72%, var(--bg-soft) 100%);
    border: 1px solid rgba(38, 119, 255, 0.16);
    color: var(--ink);
    white-space: nowrap;
    box-shadow: 0 2px 14px rgba(38, 119, 255, 0.08);
}
[data-theme="dark"] .home-divider span,
body[data-theme="dark"] .home-divider span {
    border-color: rgba(77, 148, 255, 0.28);
    box-shadow: 0 2px 16px rgba(38, 119, 255, 0.14);
}
.home-practice,
.home-games,
.home-hub-menu {
    margin-bottom: 4px;
}

.learning-center-placeholder {
    text-align: center;
    padding: 36px 28px 32px;
}
.learning-center-placeholder__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: rgba(129, 127, 255, 0.12);
    color: var(--lav);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
}
.learning-center-placeholder h2 {
    margin: 0 0 10px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--ink);
}
.learning-center-placeholder p {
    margin: 0;
    color: var(--subtitle);
    line-height: 1.55;
    font-size: 0.95em;
}

/* ── Accessibility menu ── */
html {
    --a11y-font-scale: 1;
    font-size: calc(16px * var(--a11y-font-scale));
}
html[data-a11y-spacing="wide"] body,
body.elite-a11y-wide-spacing {
    letter-spacing: 0.05em;
    word-spacing: 0.08em;
    line-height: 1.65;
}
html[data-a11y-spacing="wide"] p,
html[data-a11y-spacing="wide"] li,
body.elite-a11y-wide-spacing p,
body.elite-a11y-wide-spacing li {
    line-height: 1.75;
}
html[data-a11y-contrast="high"],
body.elite-a11y-contrast {
    --ink: #000;
    --ink-soft: #1a1a1a;
    --ink-muted: #333;
    --subtitle: #222;
    --border: #333;
    --border-strong: #000;
    --card: #fff;
    --bg: #f5f5f5;
    --bg-soft: #eee;
    --badge-ink: #000;
}
html[data-theme="dark"][data-a11y-contrast="high"],
html[data-theme="dark"] body.elite-a11y-contrast {
    --ink: #fff;
    --ink-soft: #f0f0f0;
    --ink-muted: #ddd;
    --subtitle: #e8e8e8;
    --border: rgba(255, 255, 255, 0.45);
    --border-strong: #fff;
    --card: #000;
    --bg: #000;
    --bg-soft: #111;
    --badge-ink: #fff;
    --royal-light: rgba(255, 255, 255, 0.12);
}
html[data-a11y-contrast="high"] .menu-card,
html[data-a11y-contrast="high"] .feature-card,
html[data-a11y-contrast="high"] .pillar-card,
html[data-a11y-contrast="high"] .nav-card,
body.elite-a11y-contrast .menu-card,
body.elite-a11y-contrast .feature-card,
body.elite-a11y-contrast .pillar-card,
body.elite-a11y-contrast .nav-card {
    border-width: 2px;
    border-color: var(--border-strong);
}
html[data-a11y-links="underline"] a:not(.elite-a11y-trigger):not(.elite-a11y-panel__close):not(.btn-elite),
html[data-a11y-links="underline"] .pillar-card__cta,
html[data-a11y-links="underline"] .boost-home-back,
html[data-a11y-links="underline"] .elite-back,
html[data-a11y-links="underline"] .nav-card__title,
body.elite-a11y-underline-links a:not(.elite-a11y-trigger):not(.elite-a11y-panel__close):not(.btn-elite),
body.elite-a11y-underline-links .pillar-card__cta,
body.elite-a11y-underline-links .boost-home-back,
body.elite-a11y-underline-links .elite-back {
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}
html[data-a11y-reduce-motion="true"] *,
html[data-a11y-reduce-motion="true"] *::before,
html[data-a11y-reduce-motion="true"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
html[data-a11y-focus="strong"] :focus-visible,
body.elite-a11y-strong-focus :focus-visible {
    outline: 3px solid var(--royal) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.35) !important;
}
html[data-a11y-focus="strong"] button:focus-visible,
html[data-a11y-focus="strong"] .btn-elite:focus-visible,
body.elite-a11y-strong-focus button:focus-visible,
body.elite-a11y-strong-focus .btn-elite:focus-visible {
    outline-color: var(--ink) !important;
}

.elite-a11y-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.elite-a11y-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.elite-a11y-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 700;
    background: var(--card);
    border-top: 1px solid var(--border-strong);
    border-radius: 20px 20px 0 0;
    padding: 20px 22px 28px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.28s ease;
    max-height: 85vh;
    overflow-y: auto;
}
.elite-a11y-panel.is-open { transform: translateY(0); }
.elite-a11y-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}
.elite-a11y-panel__head h2 {
    margin: 0;
    font-size: 1.1em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.elite-a11y-panel__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.elite-a11y-group {
    margin-bottom: 16px;
}
.elite-a11y-group__label {
    font-size: 0.88em;
    font-weight: 600;
    color: var(--subtitle);
    margin-bottom: 8px;
}
.elite-a11y-seg {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.elite-a11y-seg button {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-soft);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.88em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.elite-a11y-seg button.is-active {
    background: var(--royal-light);
    border-color: var(--royal);
    color: var(--ink);
    font-weight: 600;
}
.elite-a11y-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    margin-bottom: 8px;
    gap: 12px;
}
.elite-a11y-toggle-row span {
    font-size: 0.92em;
    color: var(--ink);
    font-weight: 500;
}
.elite-a11y-switch {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}
.elite-a11y-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.elite-a11y-switch__track {
    position: absolute;
    inset: 0;
    background: var(--border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}
.elite-a11y-switch input:checked + .elite-a11y-switch__track {
    background: var(--royal);
}
.elite-a11y-switch__track::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.elite-a11y-switch input:checked + .elite-a11y-switch__track::after {
    transform: translateX(-18px);
}
.elite-a11y-reset {
    width: 100%;
    margin-top: 8px;
    padding: 11px;
    border-radius: var(--radius-pill);
    border: 1px dashed var(--border-strong);
    background: transparent;
    color: var(--subtitle);
    font-family: inherit;
    font-size: 0.88em;
    cursor: pointer;
}
.elite-a11y-reset:hover {
    border-color: var(--royal);
    color: var(--royal);
}
@media (min-width: 560px) {
    .elite-a11y-panel {
        bottom: auto;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0;
        pointer-events: none;
        width: min(420px, 92vw);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-strong);
    }
    .elite-a11y-panel.is-open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
}
