/* ============================================================
   Language Learning Platform — Premium Design System
   Visual identity: Apple Product Pages, Stripe, Linear
   Zero emojis. Photography-driven. Cinematic typography.
   ============================================================ */

:root {
    /* Spacing */
    --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
    --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem;
    --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem; --s-32: 8rem;

    /* Type scale */
    --t-xs: 0.75rem; --t-sm: 0.875rem; --t-base: 1rem; --t-lg: 1.125rem;
    --t-xl: 1.25rem; --t-2xl: 1.5rem; --t-3xl: 2rem; --t-4xl: 2.5rem;
    --t-5xl: 3.25rem; --t-hero: 4rem;

    /* Shadows — layered for depth */
    --sh-1: 0 1px 2px rgba(0,0,0,0.04);
    --sh-2: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --sh-3: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --sh-4: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --sh-5: 0 20px 50px -12px rgba(0,0,0,0.15);
    --sh-6: 0 32px 64px -16px rgba(0,0,0,0.20);

    /* Easing */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Z */
    --z-header: 100; --z-overlay: 200; --z-modal: 300;

    /* Defaults */
    --color-primary: #1a1a2e;
    --color-primary-light: #3a3a5e;
    --color-primary-dark: #0a0a1e;
    --color-secondary: #c1272d;
    --color-accent: #d4a853;
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #111111;
    --color-text-muted: #717171;
    --color-border: #e8e8e8;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-accent: linear-gradient(135deg, #d4a853, #c1272d);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, system-ui, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}
a { color: var(--color-primary); text-decoration: none; transition: all 200ms; }
a:hover { color: var(--color-primary-light); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* === LAYOUT === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--s-6); }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--s-6); }
.display { font-family: var(--font-display); }

/* === SCROLL ANIMATIONS === */
[data-scroll] {
    opacity: 0;
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
[data-scroll].visible { opacity: 1; }
[data-scroll="up"] { transform: translateY(60px); }
[data-scroll="up"].visible { transform: none; }
[data-scroll="scale"] { transform: scale(0.92); }
[data-scroll="scale"].visible { transform: none; }
[data-scroll="left"] { transform: translateX(-40px); }
[data-scroll="left"].visible { transform: none; }
[data-scroll="right"] { transform: translateX(40px); }
[data-scroll="right"].visible { transform: none; }

/* Stagger */
.stagger > * {
    opacity: 0; transform: translateY(30px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 320ms; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 400ms; }
.stagger.visible > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
    [data-scroll], .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* === SKIP === */
.skip-link {
    position: absolute; top: -100%; left: var(--s-4); padding: var(--s-2) var(--s-4);
    background: var(--color-primary); color: #fff; border-radius: var(--radius);
    z-index: 9999; font-size: var(--t-sm);
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* === HEADER — Frosted glass === */
.header {
    position: sticky; top: 0; z-index: var(--z-header);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: box-shadow 300ms;
}
.header--scrolled { box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.header__inner {
    max-width: 1120px; margin: 0 auto; padding: 0 var(--s-6);
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
}
.header__logo {
    display: flex; align-items: center; gap: var(--s-3);
    font-weight: 600; font-size: var(--t-base); color: var(--color-text);
    text-decoration: none; letter-spacing: -0.02em;
}
.header__logo:hover { color: var(--color-text); }
.header__flag { font-size: 1.2rem; }
.header__nav { display: flex; gap: var(--s-8); align-items: center; }
.nav-link {
    font-size: var(--t-sm); font-weight: 500; color: var(--color-text-muted);
    transition: color 200ms; letter-spacing: -0.01em;
}
.nav-link:hover { color: var(--color-text); }
.header__actions { display: flex; align-items: center; gap: var(--s-3); }
.header__user { font-size: var(--t-sm); color: var(--color-text-muted); }

/* === BUTTONS — Refined === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    padding: 0.6rem 1.4rem; border-radius: var(--radius);
    font-size: var(--t-sm); font-weight: 600; border: none;
    transition: all 200ms var(--ease-smooth); text-decoration: none;
    line-height: 1.4; letter-spacing: -0.01em;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.btn--primary {
    background: var(--color-text); color: #fff;
}
.btn--primary:hover { background: #333; color: #fff; }
.btn--ghost {
    background: transparent; color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn--ghost:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.btn--white {
    background: rgba(255,255,255,0.95); color: var(--color-text);
    backdrop-filter: blur(10px);
}
.btn--white:hover { background: #fff; box-shadow: var(--sh-4); }
.btn--sm { padding: 0.35rem 0.9rem; font-size: var(--t-xs); }
.btn--lg { padding: 0.85rem 2rem; font-size: var(--t-base); border-radius: var(--radius-lg); }
.btn--xl { padding: 1rem 2.5rem; font-size: var(--t-lg); border-radius: var(--radius-lg); }
.btn--full { width: 100%; }
.btn--success { background: var(--color-success); color: #fff; }
.btn--danger { color: var(--color-error); border-color: rgba(239,68,68,0.3); }
.btn--danger:hover { background: var(--color-error); color: #fff; }
.btn .icon { width: 16px; height: 16px; }

/* === HERO — Cinematic, image-driven === */
.hero {
    position: relative; overflow: hidden;
    background: var(--color-text); color: #fff;
    min-height: 50vh; display: flex; align-items: center;
}
.hero--full { min-height: 100vh; }
.hero--compact { min-height: auto; padding: var(--s-16) 0; }
.hero--image { min-height: 70vh; }
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 8s ease-out;
}
.hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.25) 40%,
        rgba(0,0,0,0.5) 100%
    );
}
.hero__content {
    position: relative; z-index: 2;
    max-width: 680px; padding: var(--s-24) 0;
}
.hero__content--center { margin: 0 auto; text-align: center; max-width: 700px; }
.hero__label {
    font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.2em;
    opacity: 0.6; margin-bottom: var(--s-4); font-weight: 600;
}
.hero__title {
    font-family: var(--font-display); font-size: var(--t-hero);
    font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
    margin-bottom: var(--s-6);
}
.hero__subtitle {
    font-size: var(--t-xl); opacity: 0.7; line-height: 1.5;
    max-width: 500px; font-weight: 400; letter-spacing: -0.01em;
}
.hero__content--center .hero__subtitle { margin: 0 auto; }
.hero__actions { margin-top: var(--s-10); display: flex; gap: var(--s-4); }
.hero__content--center .hero__actions { justify-content: center; }
.hero__scroll {
    position: absolute; bottom: var(--s-10); left: 50%;
    transform: translateX(-50%);
    opacity: 0.4; animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* === IMAGE SECTIONS === */
.img-section {
    position: relative; overflow: hidden;
    padding: var(--s-32) 0; color: #fff;
}
.img-section__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.img-section__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}
.img-section__content {
    position: relative; z-index: 2;
    max-width: 600px;
}

/* === SECTIONS === */
.section { padding: var(--s-24) 0; }
.section--sm { padding: var(--s-16) 0; }
.section--flush { padding: 0; }
.section--dark { background: var(--color-text); color: #fff; }
.section--dark .section__eyebrow { color: rgba(255,255,255,0.4); }
.section--dark .section__text { color: rgba(255,255,255,0.6); }
.section--surface { background: var(--color-surface); }
.section__eyebrow {
    font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--color-text-muted); font-weight: 600; margin-bottom: var(--s-3);
}
.section__title {
    font-family: var(--font-display); font-size: var(--t-4xl);
    letter-spacing: -0.03em; line-height: 1.15; margin-bottom: var(--s-4);
}
.section__text {
    font-size: var(--t-lg); color: var(--color-text-muted);
    line-height: 1.65; max-width: 560px;
}
.section-divider {
    width: 48px; height: 1px; background: var(--color-border);
    margin: var(--s-24) auto;
}

/* === LANGUAGE SELECT — Full-page hero grid === */
.lang-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px; background: rgba(255,255,255,0.08);
    margin-top: var(--s-16); border-radius: var(--radius-xl); overflow: hidden;
}
.lang-card {
    position: relative; padding: var(--s-16) var(--s-10);
    text-align: center; color: #fff; text-decoration: none;
    background: rgba(255,255,255,0.04);
    transition: all 500ms var(--ease); overflow: hidden;
}
.lang-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.06) 100%);
    opacity: 0; transition: opacity 500ms;
}
.lang-card:hover {
    background: rgba(255,255,255,0.10);
    color: #fff; text-decoration: none;
}
.lang-card:hover::before { opacity: 1; }
.lang-card__name {
    font-family: var(--font-display); font-size: var(--t-3xl);
    font-weight: 700; letter-spacing: -0.02em;
    margin-bottom: var(--s-2);
}
.lang-card__native {
    font-size: var(--t-base); opacity: 0.5;
    margin-bottom: var(--s-4); font-weight: 400;
}
.lang-card__tagline {
    font-size: var(--t-sm); opacity: 0.35; line-height: 1.5;
    max-width: 240px; margin: 0 auto;
}
.lang-card__arrow {
    display: inline-block; margin-top: var(--s-6);
    opacity: 0; transform: translateY(8px);
    transition: all 300ms var(--ease);
}
.lang-card:hover .lang-card__arrow {
    opacity: 0.5; transform: none;
}

/* === STATS === */
.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--s-12); text-align: center;
}
.stat__number {
    font-family: var(--font-display); font-size: var(--t-4xl);
    font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}
.stat__label {
    font-size: var(--t-sm); color: var(--color-text-muted);
    margin-top: var(--s-2); letter-spacing: 0;
}

/* === CARDS — Clean, borderless === */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg); padding: var(--s-8);
    box-shadow: var(--sh-2);
    transition: all 400ms var(--ease);
}
.card:hover { box-shadow: var(--sh-4); transform: translateY(-4px); }
.card--flat { box-shadow: none; background: var(--color-bg); }
.card--flat:hover { box-shadow: var(--sh-2); }
.card__eyebrow {
    font-size: var(--t-xs); text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--color-text-muted);
    font-weight: 600; margin-bottom: var(--s-3);
}
.card__title {
    font-size: var(--t-xl); font-weight: 600;
    letter-spacing: -0.02em; margin-bottom: var(--s-2);
    line-height: 1.3;
}
.card__text { font-size: var(--t-base); color: var(--color-text-muted); line-height: 1.6; }
.card__image {
    width: calc(100% + var(--s-16)); margin: calc(-1 * var(--s-8));
    margin-bottom: var(--s-6); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden; aspect-ratio: 16/9;
}
.card__image img { width: 100%; height: 100%; object-fit: cover; }

/* === PHRASE CARD === */
.phrase-block {
    background: var(--color-surface); border-radius: var(--radius-xl);
    padding: var(--s-16) var(--s-12); text-align: center;
    box-shadow: var(--sh-2); position: relative;
}
.phrase-block::before {
    content: ''; position: absolute; top: 0; left: var(--s-12); right: var(--s-12);
    height: 1px; background: var(--gradient-accent);
}
.phrase-block__label {
    font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--color-text-muted); font-weight: 600; margin-bottom: var(--s-8);
}
.phrase-block__text {
    font-family: var(--font-display); font-size: var(--t-3xl);
    font-style: italic; line-height: 1.35; letter-spacing: -0.01em;
    margin-bottom: var(--s-4);
}
.phrase-block__literal { color: var(--color-text-muted); margin-bottom: var(--s-2); }
.phrase-block__meaning { font-weight: 600; font-size: var(--t-lg); }

/* === TRAIL CARDS — Luxe list === */
.trail-list { display: flex; flex-direction: column; gap: var(--s-6); }
.trail {
    background: var(--color-surface); border-radius: var(--radius-xl);
    overflow: hidden; box-shadow: var(--sh-1);
    transition: all 400ms var(--ease);
}
.trail:hover { box-shadow: var(--sh-4); }
.trail--locked { opacity: 0.4; }
.trail__head {
    display: flex; align-items: center; gap: var(--s-5);
    padding: var(--s-6) var(--s-8);
}
.trail__icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--color-bg); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--color-text-muted);
}
.trail__info { flex: 1; }
.trail__title {
    font-size: var(--t-lg); font-weight: 600;
    letter-spacing: -0.02em; line-height: 1.3;
}
.trail__sub { font-size: var(--t-sm); color: var(--color-text-muted); }
.trail__badge {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    background: var(--color-text); color: #fff;
    padding: var(--s-1) var(--s-3); border-radius: 6px; font-weight: 600;
}
.trail__lessons {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px; background: var(--color-border);
    border-top: 1px solid var(--color-border);
}
.lesson-link {
    display: flex; align-items: center; gap: var(--s-3);
    padding: var(--s-4) var(--s-6); background: var(--color-surface);
    font-size: var(--t-sm); color: var(--color-text);
    transition: all 200ms; text-decoration: none;
}
.lesson-link:hover { background: var(--color-bg); color: var(--color-text); }
.lesson-link--done { color: var(--color-success); }
.lesson-link--done .lesson-link__status { color: var(--color-success); }
.lesson-link--unavailable { opacity: 0.3; pointer-events: none; }
.lesson-link__status { width: 16px; text-align: center; color: var(--color-text-muted); }
.lesson-link__name { font-weight: 500; }

/* === FACTS GRID === */
.facts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s-6);
}

/* === RECOMMENDATION LIST === */
.rec-list { display: flex; flex-direction: column; gap: var(--s-3); }
.rec-item {
    display: flex; align-items: center; gap: var(--s-4);
    padding: var(--s-4) var(--s-5); border-radius: var(--radius);
    background: var(--color-surface); box-shadow: var(--sh-1);
    transition: all 300ms;
}
.rec-item:hover { box-shadow: var(--sh-3); }
.rec-item__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-text-muted); flex-shrink: 0;
}
.rec-item__dot--high { background: var(--color-error); }
.rec-item__text { flex: 1; font-size: var(--t-sm); line-height: 1.5; }
.rec-item__action { flex-shrink: 0; }

/* === AUTH === */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; padding: var(--s-8);
}
.auth-card {
    width: 100%; max-width: 400px; background: var(--color-surface);
    border-radius: var(--radius-xl); padding: var(--s-12) var(--s-10);
    box-shadow: var(--sh-5);
}
.auth-card__title {
    font-family: var(--font-display); font-size: var(--t-3xl);
    text-align: center; margin-bottom: var(--s-8);
    letter-spacing: -0.02em;
}
.auth-card__error {
    background: rgba(239,68,68,0.06); color: var(--color-error);
    padding: var(--s-3) var(--s-4); border-radius: var(--radius);
    margin-bottom: var(--s-4); font-size: var(--t-sm); text-align: center;
}
.auth-card__switch {
    text-align: center; margin-top: var(--s-6);
    font-size: var(--t-sm); color: var(--color-text-muted);
}
.auth-card__switch a { font-weight: 600; color: var(--color-text); }

.form-group { margin-bottom: var(--s-5); }
.form-group label {
    display: block; font-size: var(--t-sm); font-weight: 500;
    margin-bottom: var(--s-2); color: var(--color-text);
}
.form-input {
    width: 100%; padding: 0.65rem var(--s-4);
    border: 1px solid var(--color-border); border-radius: var(--radius);
    font-size: var(--t-base); background: var(--color-bg);
    transition: all 200ms; font-family: var(--font-body);
}
.form-input:focus {
    outline: none; border-color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

/* === LESSON PAGE === */
.lesson-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 2px; background: var(--color-accent);
    z-index: calc(var(--z-header) + 10);
    transform: scaleX(0); transform-origin: left;
    pointer-events: none;
}

.lesson-section {
    padding: var(--s-20) 0;
}
.lesson-section + .lesson-section {
    border-top: 1px solid var(--color-border);
}
.lesson-section__label {
    font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--color-text-muted); font-weight: 600; margin-bottom: var(--s-4);
}
.lesson-section__title {
    font-family: var(--font-display); font-size: var(--t-3xl);
    letter-spacing: -0.02em; margin-bottom: var(--s-6); line-height: 1.2;
}
.lesson-text {
    font-size: var(--t-lg); line-height: 1.85; max-width: 640px;
}
.lesson-text p { margin-bottom: var(--s-6); }

/* Cultural note */
.note {
    border-left: 2px solid var(--color-accent);
    padding: var(--s-5) var(--s-8);
    margin: var(--s-8) 0;
    background: rgba(212,168,83,0.04);
}
.note__label {
    font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--color-text-muted); font-weight: 600; margin-bottom: var(--s-2);
}

/* Dialogue */
.dialogue { max-width: 600px; }
.dialogue__turn { margin-bottom: var(--s-6); }
.dialogue__turn--right { padding-left: var(--s-12); }
.dialogue__speaker {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--color-text-muted);
    margin-bottom: var(--s-2); display: block;
}
.dialogue__bubble {
    border-left: 2px solid var(--color-text);
    padding: var(--s-4) var(--s-6);
    background: var(--color-surface);
    box-shadow: var(--sh-1);
    cursor: pointer;
    transition: all 200ms;
}
.dialogue__bubble:hover { box-shadow: var(--sh-3); }
.dialogue__turn--right .dialogue__bubble {
    border-left: none;
    border-right: 2px solid var(--color-text-muted);
}
.dialogue__text { font-size: var(--t-lg); line-height: 1.5; margin-bottom: var(--s-2); }
.dialogue__translation {
    font-size: var(--t-sm); color: var(--color-text-muted); font-style: italic;
}

/* Grammar blocks */
.grammar-block {
    background: var(--color-surface); border-radius: var(--radius-lg);
    padding: var(--s-6) var(--s-8); margin-bottom: var(--s-5);
    box-shadow: var(--sh-1);
}
.grammar-list { list-style: none; }
.grammar-list li {
    padding: var(--s-4) 0; border-bottom: 1px solid var(--color-border);
    line-height: 1.7; font-size: var(--t-base);
}
.grammar-list li:last-child { border-bottom: none; }
.mistake {
    border-left: 2px solid var(--color-error);
    padding: var(--s-4) var(--s-5); margin-bottom: var(--s-3);
    background: rgba(239,68,68,0.03); font-size: var(--t-base); line-height: 1.7;
}

/* Exercises */
.exercise {
    background: var(--color-surface); border-radius: var(--radius-lg);
    padding: var(--s-8); margin-bottom: var(--s-5);
    box-shadow: var(--sh-1);
}
.exercise__number {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--color-text-muted); font-weight: 600; margin-bottom: var(--s-3);
}
.exercise__question, .carousel__question {
    font-size: var(--t-lg); font-weight: 500; margin-bottom: var(--s-5);
    line-height: 1.5; letter-spacing: -0.01em;
}

/* Carousel */
.carousel {
    background: var(--color-surface); border-radius: var(--radius-xl);
    padding: var(--s-8); box-shadow: var(--sh-3);
    overflow: hidden; position: relative;
}
.carousel__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: var(--s-4);
}
.carousel__type {
    font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em;
    font-weight: 700; color: var(--color-text-muted);
}
.carousel__count {
    font-size: var(--t-sm); font-weight: 700; color: var(--color-text);
    background: rgba(0,0,0,0.04); padding: var(--s-1) var(--s-3);
    border-radius: 20px;
}
.carousel__bar {
    height: 4px; background: var(--color-border); border-radius: 2px;
    overflow: hidden; margin-bottom: var(--s-8);
}
.carousel__bar-fill {
    height: 100%; width: 0; background: var(--color-text);
    border-radius: 2px; transition: width 0.5s var(--ease);
}
.carousel__slide {
    display: none;
    animation: carouselFadeIn 350ms var(--ease);
}
.carousel__slide--active { display: block; }
.carousel__slide--enter {
    display: block;
    animation: carouselSlideIn 350ms var(--ease);
}
.carousel__slide--exit {
    animation: carouselSlideOut 300ms var(--ease) forwards;
}
.carousel__options { display: flex; flex-direction: column; gap: var(--s-3); }
.carousel__dots {
    display: flex; gap: var(--s-2); justify-content: center;
    margin-top: var(--s-8); flex-wrap: wrap;
}
.carousel__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-border); transition: all 300ms var(--ease);
}
.carousel__dot--current {
    background: var(--color-text); transform: scale(1.3);
}
.carousel__dot--done {
    background: var(--color-success);
}
.carousel__complete {
    text-align: center; padding: var(--s-12) var(--s-4);
    animation: carouselFadeIn 500ms var(--ease);
}
.carousel__complete-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(16,185,129,0.1); color: var(--color-success);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: var(--s-4);
}
.carousel__complete-score {
    color: var(--color-text-muted); font-size: var(--t-lg); margin-top: var(--s-2);
}

@keyframes carouselFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes carouselSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes carouselSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-40px); }
}
.exercise__options { display: flex; flex-direction: column; gap: var(--s-3); }
.option-btn {
    padding: var(--s-4) var(--s-5); border: 1px solid var(--color-border);
    border-radius: var(--radius); background: var(--color-surface);
    text-align: left; font-size: var(--t-base); transition: all 200ms;
    font-family: var(--font-body); line-height: 1.5;
}
.option-btn:hover { border-color: var(--color-text); }
.option-btn.correct { border-color: var(--color-success); background: rgba(16,185,129,0.04); }
.option-btn.incorrect { border-color: var(--color-error); background: rgba(239,68,68,0.03); animation: shake 300ms; }

.fill-blank__input {
    border: none; border-bottom: 1.5px solid var(--color-text);
    padding: var(--s-1) var(--s-2); font-size: var(--t-lg);
    background: transparent; outline: none; min-width: 100px;
    font-family: var(--font-body); transition: border-color 200ms;
}
.fill-blank__input:focus { border-color: var(--color-accent); }
.fill-blank__input.correct { border-color: var(--color-success); color: var(--color-success); }
.fill-blank__input.incorrect { border-color: var(--color-error); }

.reorder__words { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.reorder__word {
    padding: var(--s-2) var(--s-4); border: 1px solid var(--color-border);
    border-radius: var(--radius); user-select: none;
    background: var(--color-surface); transition: all 200ms;
    font-size: var(--t-base);
}
.reorder__word:hover { border-color: var(--color-text); }
.reorder__word.selected { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.reorder__answer {
    min-height: 48px; border: 1.5px dashed var(--color-border);
    border-radius: var(--radius); padding: var(--s-3);
    display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4);
}
.reorder__answer:not(:empty) { border-style: solid; border-color: var(--color-text); }

.speak-area { text-align: center; padding: var(--s-8); }
.speak-area__text {
    font-family: var(--font-display); font-size: var(--t-2xl);
    margin-bottom: var(--s-3); line-height: 1.35; letter-spacing: -0.01em;
}
.speak-area__translation { color: var(--color-text-muted); margin-bottom: var(--s-6); }

.exercise__feedback {
    margin-top: var(--s-4); padding: var(--s-3) var(--s-4);
    border-radius: var(--radius); font-weight: 600; display: none;
    font-size: var(--t-sm); animation: feedbackIn 300ms var(--ease);
}
.exercise__feedback.show { display: block; }
.exercise__feedback.correct { background: rgba(16,185,129,0.06); color: var(--color-success); }
.exercise__feedback.incorrect { background: rgba(239,68,68,0.05); color: var(--color-error); }

/* Wrap up */
.wrap-up { text-align: center; max-width: 560px; margin: 0 auto; padding: var(--s-12) 0; }
.wrap-up__title {
    font-family: var(--font-display); font-size: var(--t-4xl);
    letter-spacing: -0.03em; margin-bottom: var(--s-6);
}
.expression-block {
    background: var(--color-bg); border-radius: var(--radius-xl);
    padding: var(--s-10); margin: var(--s-8) 0;
}
.expression-block__text {
    font-family: var(--font-display); font-size: var(--t-2xl);
    font-style: italic; margin-bottom: var(--s-3); line-height: 1.35;
}
.expression-block__meaning {
    color: var(--color-text-muted); font-style: italic;
}

/* === FLASHCARD === */
.flashcard-area {
    min-height: 45vh; display: flex; align-items: center;
    justify-content: center; padding: var(--s-8) 0;
}
.flashcard {
    width: 100%; max-width: 480px; min-height: 280px;
    perspective: 1200px; cursor: pointer;
}
.flashcard__inner {
    position: relative; width: 100%; min-height: 280px;
    transition: transform 0.7s var(--ease);
    transform-style: preserve-3d;
}
.flashcard.flipped .flashcard__inner { transform: rotateY(180deg); }
.flashcard__front, .flashcard__back {
    position: absolute; width: 100%; min-height: 280px;
    backface-visibility: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--color-surface); border-radius: var(--radius-xl);
    padding: var(--s-12); text-align: center; box-shadow: var(--sh-5);
}
.flashcard__back { transform: rotateY(180deg); background: var(--color-text); color: #fff; }
.flashcard__word {
    font-family: var(--font-display); font-size: var(--t-3xl);
    margin-bottom: var(--s-3); letter-spacing: -0.02em;
}
.flashcard__hint { font-size: var(--t-sm); color: var(--color-text-muted); }
.flashcard__translation { font-size: var(--t-2xl); }
.flashcard-actions { display: flex; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }
.flashcard-counter { text-align: center; color: var(--color-text-muted); font-size: var(--t-sm); margin-bottom: var(--s-3); }
.flashcard-empty { text-align: center; padding: var(--s-20); }

/* === WORD INTERACTION === */
.word {
    cursor: pointer; position: relative;
    border-bottom: 1px dotted rgba(0,0,0,0.2);
    transition: all 150ms; padding: 0 1px;
}
.word:hover { background: rgba(0,0,0,0.04); border-bottom-color: var(--color-text); }
.word-tooltip {
    position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--color-text); color: #fff;
    padding: var(--s-3) var(--s-4); border-radius: var(--radius);
    font-size: var(--t-sm); white-space: nowrap;
    z-index: var(--z-overlay); pointer-events: none;
    opacity: 0; transition: all 200ms var(--ease);
    box-shadow: var(--sh-5);
}
.word-tooltip.show {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.word-tooltip__actions { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.word-tooltip__btn {
    background: rgba(255,255,255,0.12); border: none; color: #fff;
    padding: 2px var(--s-3); border-radius: 4px; cursor: pointer;
    font-size: var(--t-xs); transition: background 150ms;
}
.word-tooltip__btn:hover { background: rgba(255,255,255,0.25); }

/* === MOBILE NAV === */
.mobile-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(0,0,0,0.04);
    z-index: var(--z-header); padding: var(--s-1) 0;
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav__inner { display: flex; justify-content: space-around; max-width: 420px; margin: 0 auto; }
.mobile-nav__link {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 10px; color: var(--color-text-muted); text-decoration: none;
    padding: var(--s-2) var(--s-3); transition: color 200ms;
    font-weight: 500; letter-spacing: 0.02em;
}
.mobile-nav__link:hover { color: var(--color-text); }
.mobile-nav__icon { width: 20px; height: 20px; }

/* === CHAT === */
.chat-container { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; min-height: 65vh; }
.chat-messages { flex: 1; padding: var(--s-6) 0; display: flex; flex-direction: column; gap: var(--s-3); }
.chat-msg {
    max-width: 80%; padding: var(--s-4) var(--s-5);
    border-radius: var(--radius-lg); font-size: var(--t-base); line-height: 1.6;
    animation: feedbackIn 300ms var(--ease);
}
.chat-msg--user { align-self: flex-end; background: var(--color-text); color: #fff; }
.chat-msg--ai { align-self: flex-start; background: var(--color-surface); box-shadow: var(--sh-2); }
.chat-msg--ai p { margin: 0 0 var(--s-2); }
.chat-msg--ai p:last-child { margin-bottom: 0; }
.chat-msg--ai strong { font-weight: 700; }
.chat-msg--ai em { font-style: italic; }
.chat-msg--ai ul, .chat-msg--ai ol { margin: var(--s-2) 0; padding-left: var(--s-6); }
.chat-msg--ai li { margin-bottom: var(--s-1); }
.chat-msg--ai code {
    background: rgba(0,0,0,0.05); padding: 1px 6px; border-radius: 4px;
    font-family: monospace; font-size: 0.9em;
}
.chat-msg--ai blockquote {
    border-left: 3px solid var(--color-border); margin: var(--s-3) 0;
    padding: var(--s-2) var(--s-4); color: var(--color-text-muted); font-style: italic;
}
.chat-msg--ai .chat-vocab {
    display: inline-block; background: rgba(0,0,0,0.04); padding: 2px 8px;
    border-radius: 4px; font-weight: 600; cursor: pointer; margin: 1px 0;
    transition: background 200ms;
}
.chat-msg--ai .chat-vocab:hover { background: rgba(0,0,0,0.08); }
.chat-choices {
    display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3);
}
.chat-choice-btn {
    padding: var(--s-2) var(--s-4); border: 1.5px solid var(--color-border);
    border-radius: 20px; background: var(--color-surface); font-size: var(--t-sm);
    font-family: var(--font-body); cursor: pointer; transition: all 200ms;
    color: var(--color-text); font-weight: 500;
}
.chat-choice-btn:hover { border-color: var(--color-text); background: var(--color-bg); }
.chat-choice-btn.chosen { border-color: var(--color-text); background: var(--color-text); color: #fff; pointer-events: none; }
.chat-msg--system {
    align-self: center; background: var(--color-bg); color: var(--color-text-muted);
    font-size: var(--t-sm); border-radius: 999px; padding: var(--s-2) var(--s-5);
}
.chat-input-wrap {
    padding: var(--s-4) 0; border-top: 1px solid var(--color-border);
    display: flex; gap: var(--s-3);
}
.chat-input {
    flex: 1; padding: var(--s-3) var(--s-4); border: 1px solid var(--color-border);
    border-radius: var(--radius); font-size: var(--t-base); background: var(--color-surface);
    font-family: var(--font-body);
}
.chat-input:focus { outline: none; border-color: var(--color-text); }
.chat-typing { color: var(--color-text-muted); font-size: var(--t-sm); padding: var(--s-2) 0; display: none; }

/* === PRONUNCIATION === */
.pron-card {
    background: var(--color-surface); border-radius: var(--radius-xl);
    padding: var(--s-12); text-align: center;
    box-shadow: var(--sh-2); margin-bottom: var(--s-6);
    transition: all 300ms;
}
.pron-card:hover { box-shadow: var(--sh-4); }
.pron-card__text {
    font-family: var(--font-display); font-size: var(--t-2xl);
    margin-bottom: var(--s-3); letter-spacing: -0.01em; line-height: 1.35;
}
.pron-card__translation { color: var(--color-text-muted); margin-bottom: var(--s-6); }
.pron-card__lesson {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--color-text-muted); font-weight: 600; margin-bottom: var(--s-4);
}
.record-btn {
    width: 72px; height: 72px; border-radius: 50%;
    border: 2px solid var(--color-text); background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 300ms; color: var(--color-text);
}
.record-btn:hover { background: var(--color-text); color: #fff; }
.record-btn.recording {
    background: var(--color-error); border-color: var(--color-error); color: #fff;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.rating-btns { display: flex; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }

/* === FAB (Floating Action Button) === */
.fab {
    position: fixed; bottom: 24px; right: 24px;
    z-index: calc(var(--z-header) + 10);
    display: flex; flex-direction: column-reverse; align-items: flex-end; gap: var(--s-3);
}
.fab__btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--color-text); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--sh-5); cursor: pointer;
    transition: transform 300ms var(--ease), box-shadow 300ms;
}
.fab__btn:hover { transform: scale(1.08); box-shadow: var(--sh-6); }
.fab__icon { display: flex; align-items: center; justify-content: center; transition: all 300ms var(--ease); }
.fab__icon--close { position: absolute; font-size: 28px; font-weight: 300; opacity: 0; transform: rotate(-90deg); }
.fab--open .fab__icon--default { opacity: 0; transform: rotate(90deg); }
.fab--open .fab__icon--close { opacity: 1; transform: rotate(0); }
.fab__menu {
    display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-end;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: all 300ms var(--ease);
}
.fab--open .fab__menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab__item {
    display: flex; align-items: center; gap: var(--s-3);
    padding: var(--s-3) var(--s-4); background: var(--color-surface);
    border-radius: 28px; box-shadow: var(--sh-4);
    text-decoration: none; color: var(--color-text);
    font-size: var(--t-sm); font-weight: 600; white-space: nowrap;
    transition: all 200ms var(--ease);
}
.fab__item:hover { transform: translateX(-4px); box-shadow: var(--sh-5); }
.fab__label { margin-right: var(--s-1); }

/* === ADMIN === */
.admin-stat {
    text-align: center; background: var(--color-surface); border-radius: var(--radius-lg);
    padding: var(--s-8); box-shadow: var(--sh-1); transition: all 300ms;
}
.admin-stat:hover { box-shadow: var(--sh-3); }
.admin-stat__number {
    font-family: var(--font-display); font-size: var(--t-4xl);
    font-weight: 700; letter-spacing: -0.03em;
}
.admin-stat__label { color: var(--color-text-muted); font-size: var(--t-sm); margin-top: var(--s-2); }
.admin-bar { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); }
.admin-bar__label { min-width: 100px; font-weight: 500; font-size: var(--t-sm); }
.admin-bar__track { flex: 1; background: var(--color-bg); border-radius: 999px; height: 24px; overflow: hidden; }
.admin-bar__fill {
    height: 100%; border-radius: 999px; background: var(--color-text);
    display: flex; align-items: center; padding-left: var(--s-3);
    transition: width 800ms var(--ease);
}
.admin-bar__value { color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--color-border);
    padding: var(--s-8) 0; text-align: center;
    font-size: var(--t-sm); color: var(--color-text-muted);
}

/* === SVG ICONS === */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* === KEYFRAMES === */
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}
@keyframes feedbackIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}
.confetti-piece {
    position: fixed; width: 8px; height: 8px; z-index: 9999;
    pointer-events: none; animation: confettiFall 2.5s ease-out forwards;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero__title { font-size: var(--t-4xl); }
    .section { padding: var(--s-16) 0; }
}
/* ---- Progress Map ---- */

.progress-map { display: flex; flex-direction: column; gap: 0; }

.progress-map__trail {
    display: flex;
    gap: var(--s-6);
    align-items: flex-start;
    position: relative;
    padding-bottom: var(--s-10);
}

.progress-map__connector {
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.progress-map__node {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.progress-map__info { flex: 1; padding-top: var(--s-2); }

/* ---- Trail Page ---- */

.trail-lessons { display: flex; flex-direction: column; gap: 0; margin-top: var(--s-10); }

.trail-lesson {
    display: flex;
    gap: var(--s-6);
    position: relative;
    padding-bottom: var(--s-8);
}

.trail-lesson__connector {
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.trail-lesson__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--t-sm);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    color: var(--color-text);
    transition: all 300ms var(--ease);
}

.trail-lesson__number--done {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}

.trail-lesson__number--locked {
    opacity: 0.35;
}

.trail-lesson__content {
    flex: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    transition: box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.trail-lesson__content:hover {
    box-shadow: var(--sh-3);
    border-color: rgba(0,0,0,0.12);
}

.trail-lesson__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-5) var(--s-6);
    cursor: pointer;
    user-select: none;
}

.trail-lesson__title {
    font-family: var(--font-display);
    font-size: var(--t-xl);
    letter-spacing: -0.02em;
    margin-bottom: var(--s-1);
}

.trail-lesson__subtitle {
    color: var(--color-text-muted);
    font-size: var(--t-sm);
}

.trail-lesson__chevron {
    color: var(--color-text-muted);
    transition: transform 300ms var(--ease);
    flex-shrink: 0;
}

.trail-lesson--open .trail-lesson__chevron {
    transform: rotate(180deg);
}

.trail-lesson__details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 500ms var(--ease), padding 300ms var(--ease);
    padding: 0 var(--s-6);
}

.trail-lesson--open .trail-lesson__details {
    max-height: 600px;
    padding: 0 var(--s-6) var(--s-6);
}

.trail-lesson__intro {
    color: var(--color-text-muted);
    font-size: var(--t-sm);
    line-height: 1.7;
    margin-bottom: var(--s-4);
    border-top: 1px solid var(--color-border);
    padding-top: var(--s-4);
}

.trail-lesson__detail-label {
    font-size: var(--t-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: var(--s-2);
    font-weight: 600;
}

.trail-lesson__words {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
}

.trail-lesson__word {
    padding: var(--s-1) var(--s-3);
    background: rgba(0,0,0,0.04);
    border-radius: var(--radius, 8px);
    font-size: var(--t-sm);
    font-weight: 500;
}

.trail-lesson__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    margin-bottom: var(--s-2);
}

.trail-lesson__meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--t-xs);
    color: var(--color-text-muted);
    font-weight: 500;
}

@media (max-width: 640px) {
    :root { --t-hero: 2.5rem; --t-5xl: 2rem; --t-4xl: 2rem; --t-3xl: 1.5rem; }
    .header__nav { display: none; }
    .mobile-nav { display: block; }
    .main { padding-bottom: 72px; }
    .hero { min-height: 50vh; }
    .hero--full { min-height: 80vh; }
    .hero__content { padding: var(--s-16) 0; }
    .section { padding: var(--s-12) 0; }
    .container { padding: 0 var(--s-5); }
    .narrow { padding: 0 var(--s-5); }
    .trail__lessons { grid-template-columns: 1fr; }
    .trail-lesson { gap: var(--s-4); }
    .trail-lesson__header { padding: var(--s-4); }
    .trail-lesson--open .trail-lesson__details { padding: 0 var(--s-4) var(--s-4); }
    .lang-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
    .dialogue__turn--right { padding-left: var(--s-6); }
    .exercise { padding: var(--s-5); }
    .carousel { padding: var(--s-5); }
    .carousel__dots { gap: var(--s-1); }
    .carousel__dot { width: 6px; height: 6px; }
    .flashcard-actions { flex-direction: column; }
    .flashcard-actions .btn { width: 100%; }
    .fab { bottom: 80px; right: 16px; }
    .fab__btn { width: 48px; height: 48px; }
}

/* Focus */
:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
a:focus:not(:focus-visible) { outline: none; }
