:root {
    --mc-night: #061225;
    --mc-panel: #0c1d34;
    --mc-panel-soft: #112744;
    --mc-paper: #fffaf0;
    --mc-paper-2: #f2ead8;
    --mc-ink: #132033;
    --mc-blue: #31c6ff;
    --mc-cyan: #70ecff;
    --mc-lime: #a7ef52;
    --mc-gold: #ffc94f;
}

html { scroll-behavior: smooth; }

.mc-language-page {
    background: var(--mc-night);
    color: #fff;
}

.mc-language-page .site-header {
    background: rgba(5, 15, 31, .88);
    border-bottom-color: rgba(112, 236, 255, .15);
    backdrop-filter: blur(18px);
}

.mc-lang-hero {
    min-height: 760px;
    position: relative;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 130px max(6vw, 28px) 80px;
    isolation: isolate;
}

.mc-lang-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(49, 198, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(49, 198, 255, .045) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.mc-lang-hero-art {
    position: absolute;
    z-index: -3;
    inset: 0 0 0 42%;
}

.mc-lang-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.mc-lang-hero-shade {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: linear-gradient(90deg, #061225 0%, rgba(6, 18, 37, .98) 35%, rgba(6, 18, 37, .72) 58%, rgba(6, 18, 37, .1) 100%), linear-gradient(0deg, #061225 0%, transparent 35%);
}

.mc-lang-hero-copy { width: min(720px, 58vw); }

.mc-lang-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mc-lang-chip {
    display: inline-flex;
    padding: 10px 16px;
    border: 1px solid rgba(112, 236, 255, .7);
    background: rgba(20, 74, 103, .5);
    color: var(--mc-cyan);
    font: 800 13px/1 system-ui, sans-serif;
    letter-spacing: .16em;
    border-radius: 4px;
}

.mc-lang-topline .mc-lang-chip { margin: 0; }

.mc-book-alert {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 201, 79, .8);
    border-radius: 4px;
    background: rgba(255, 201, 79, .14);
    color: var(--mc-gold);
    text-decoration: none;
    font: 900 13px/1 system-ui, sans-serif;
    letter-spacing: .04em;
}

.mc-book-alert span {
    padding: 4px 6px;
    border-radius: 4px;
    background: var(--mc-gold);
    color: #07162d;
    font-size: 10px;
}

.mc-book-alert svg { width: 16px; }
.mc-book-alert:hover { color: #07162d; background: var(--mc-gold); }

.mc-book-new-button {
    border-color: var(--mc-gold);
    background: var(--mc-gold);
    color: #07162d;
    box-shadow: 0 10px 30px rgba(255, 201, 79, .2);
}

.mc-book-new-button:hover { background: #ffe08c; }

.mc-lang-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(58px, 8vw, 112px);
    line-height: .91;
    letter-spacing: -.07em;
    text-shadow: 0 8px 35px rgba(0, 0, 0, .45);
}

.mc-lang-hero h1 span { color: var(--mc-lime); }

.mc-lang-volume { color: var(--mc-gold); font-size: clamp(19px, 2vw, 27px); font-weight: 850; letter-spacing: .03em; }
.mc-lang-lead { max-width: 650px; color: #d8e7ef; font-size: 18px; line-height: 1.8; }

.mc-lang-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.mc-lang-stats span {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(6, 18, 37, .65);
    border-radius: 10px;
    color: #b8cad7;
    font-size: 13px;
}
.mc-lang-stats strong { color: var(--mc-cyan); font-size: 23px; }

.mc-lang-intro,
.mc-lang-lessons,
.mc-lang-cta {
    width: min(1220px, calc(100% - 40px));
    margin-inline: auto;
}

.mc-lang-intro { padding: 80px 0 70px; }

.mc-book-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.mc-book-switcher a {
    padding: 12px 17px;
    border: 1px solid rgba(112, 236, 255, .2);
    border-radius: 999px;
    color: #b8cad7;
    background: #0c1d34;
    text-decoration: none;
    font-weight: 800;
}

.mc-book-switcher a:hover,
.mc-book-switcher a[aria-current="page"] {
    color: #07162d;
    border-color: var(--mc-lime);
    background: var(--mc-lime);
}

.mc-lang-section-head {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 50px;
    align-items: end;
    margin-bottom: 34px;
}

.mc-lang-section-head h2,
.mc-lang-cta h2 { margin: 8px 0 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.mc-lang-section-head > p,
.mc-lang-cta p { color: #aebfca; line-height: 1.8; }

.mc-lang-map {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.mc-lang-map a {
    min-height: 104px;
    padding: 17px;
    border: 1px solid rgba(112, 236, 255, .12);
    border-radius: 12px;
    background: linear-gradient(145deg, #0c1d34, #08182b);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease;
}
.mc-lang-map a:hover { transform: translateY(-3px); border-color: var(--mc-cyan); }
.mc-lang-map a > span { display: block; margin-bottom: 6px; color: var(--mc-gold); font: 800 12px/1 system-ui, sans-serif; letter-spacing: .12em; }
.mc-lang-map small { display: block; margin-top: 6px; color: #9db0c0; font-weight: 500; }

.mc-lang-lessons { display: grid; gap: 48px; padding-bottom: 80px; }

.mc-word-card {
    scroll-margin-top: 122px;
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
    min-height: 720px;
    overflow: hidden;
    color: var(--mc-ink);
    background: var(--mc-paper);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.mc-word-visual { position: relative; min-height: 520px; overflow: hidden; background: #06142d; }
.mc-word-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 25%; background: linear-gradient(transparent, rgba(4, 14, 29, .72)); }
.mc-word-visual img { width: 100%; height: 100%; object-fit: cover; }
.mc-page-no,
.mc-category { position: absolute; z-index: 2; top: 24px; padding: 9px 12px; border-radius: 7px; color: #fff; font-weight: 900; }
.mc-page-no { left: 24px; background: #061225; font-family: ui-monospace, monospace; letter-spacing: .08em; }
.mc-category { right: 24px; background: #367716; font-size: 12px; }

.mc-word-content { padding: clamp(28px, 4vw, 54px); display: flex; flex-direction: column; }
.mc-word-title-row,
.mc-german-box { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.mc-word-kicker { margin: 0 0 5px; color: #52811f; font: 900 11px/1 system-ui, sans-serif; letter-spacing: .16em; }
.mc-word-title-row h2 { margin: 0; font-size: clamp(46px, 6vw, 76px); line-height: .96; letter-spacing: -.055em; }
.mc-ipa { margin: 9px 0 0; color: #6a7580; font-size: 16px; }

.mc-speak {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: #daf4be;
    color: #315512;
    cursor: pointer;
}
.mc-speak:hover,
.mc-speak.is-speaking { background: var(--mc-lime); transform: scale(1.05); }
.mc-speak svg { width: 22px; }

.mc-german-box { margin-top: 22px; padding: 16px 18px; border: 1px solid #c7d9b1; background: #f0f7e8; border-radius: 14px; }
.mc-german-box h3 { margin: 0; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.025em; }
.mc-german-box .mc-speak { background: #fff; }
.mc-translation { margin: 15px 0 0; color: #51606e; font-weight: 700; }

.mc-sentences { margin-top: 22px; border: 1px solid #ded6c5; border-radius: 14px; overflow: hidden; }
.mc-sentences > div { display: grid; grid-template-columns: 42px 1fr; align-items: stretch; border-bottom: 1px solid #e4dccb; }
.mc-sentences span { display: grid; place-items: center; background: #132033; color: var(--mc-cyan); font: 900 11px/1 system-ui, sans-serif; letter-spacing: .09em; }
.mc-sentences button { padding: 13px 15px; border: 0; background: transparent; color: var(--mc-ink); text-align: left; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.45; cursor: pointer; }
.mc-sentences button:hover { background: #fff; }
.mc-sentences p { margin: 0; padding: 11px 15px 12px 57px; color: #75808b; font-size: 14px; }

.mc-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mc-info-grid section { padding: 16px 17px; border: 1px solid #e1d9c9; background: #fffdf8; border-radius: 14px; }
.mc-info-grid h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; }
.mc-info-grid h4 svg { width: 18px; color: #568d20; }
.mc-info-grid p { margin: 0; color: #56626d; font-size: 13px; line-height: 1.65; }
.mc-info-grid ul { margin: 0; padding: 0; list-style: none; color: #56626d; font-size: 13px; line-height: 1.7; }
.mc-info-grid li::before { content: "◆"; margin-right: 8px; color: #78a93a; font-size: 8px; }

.mc-challenge { display: flex; gap: 12px; align-items: flex-start; margin-top: 15px; padding: 14px 16px; background: #fff2c9; border: 1px solid #efd172; border-radius: 14px; }
.mc-challenge > svg { flex: 0 0 auto; width: 21px; color: #a36a00; }
.mc-challenge strong { color: #6e4a00; font-size: 13px; }
.mc-challenge p { margin: 3px 0 0; color: #715b2b; font-size: 13px; line-height: 1.55; }

.mc-card-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; color: #6b7781; font: 700 12px/1 system-ui, sans-serif; }
.mc-card-nav a { display: inline-flex; align-items: center; gap: 6px; color: #315512; text-decoration: none; }
.mc-card-nav svg { width: 15px; }

.mc-lang-cta {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 90px;
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid rgba(112, 236, 255, .22);
    border-radius: 24px;
    background: radial-gradient(circle at 90% 0, rgba(49,198,255,.16), transparent 42%), #0b1d34;
}
.mc-lang-cta .hero-actions { justify-content: flex-end; }

@media (max-width: 980px) {
    .mc-lang-hero { min-height: 700px; }
    .mc-lang-hero-art { left: 25%; opacity: .8; }
    .mc-lang-hero-copy { width: min(680px, 88vw); }
    .mc-lang-section-head, .mc-lang-cta { grid-template-columns: 1fr; }
    .mc-lang-map { grid-template-columns: repeat(3, 1fr); }
    .mc-word-card { grid-template-columns: 1fr; }
    .mc-word-visual { max-height: 620px; }
    .mc-lang-cta .hero-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
    .mc-lang-hero { min-height: 750px; align-items: end; padding: 110px 20px 50px; }
    .mc-lang-hero-art { inset: 0; }
    .mc-lang-hero-shade { background: linear-gradient(0deg, #061225 5%, rgba(6,18,37,.95) 44%, rgba(6,18,37,.22) 100%); }
    .mc-lang-hero-copy { width: 100%; }
    .mc-lang-lead { font-size: 16px; }
    .mc-lang-stats span { flex: 1 1 30%; padding: 10px; }
    .mc-lang-intro, .mc-lang-lessons, .mc-lang-cta { width: min(100% - 24px, 1220px); }
    .mc-lang-map { grid-template-columns: repeat(2, 1fr); }
    .mc-lang-map a { min-height: 92px; padding: 13px; font-size: 14px; }
    .mc-word-card { border-radius: 16px; }
    .mc-word-visual { min-height: 370px; }
    .mc-page-no, .mc-category { top: 14px; }
    .mc-page-no { left: 14px; }
    .mc-category { right: 14px; }
    .mc-info-grid { grid-template-columns: 1fr; }
    .mc-word-content { padding: 25px 20px; }
    .mc-word-title-row h2 { font-size: 47px; }
    .mc-lang-cta { gap: 20px; margin-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
