.vocab-focus-scroll-locked {
    overscroll-behavior: none;
    touch-action: none;
}

.vocab-focus-page {
    --focus-card-w: min(340px, calc(100vw - 1.5rem));
    --focus-card-h: min(420px, calc(100dvh - 14.75rem));
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f5 100%);
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.vocab-focus-page *,
.vocab-focus-page *::before,
.vocab-focus-page *::after {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.vocab-focus-page a,
.vocab-focus-page button {
    -webkit-user-select: none;
    user-select: none;
}

html.vocab-swipe-dragging,
html.vocab-swipe-dragging * {
    -webkit-user-select: none !important;
    user-select: none !important;
}

.vocab-focus-page__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: calc(0.45rem + env(safe-area-inset-top, 0px)) 0.75rem 0.45rem;
    background: #c40000;
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.vocab-focus-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 32px;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #9a0000;
    font-weight: 800;
    text-decoration: none;
}

.vocab-focus-page__brand {
    display: inline-flex;
    justify-content: center;
    align-items: baseline;
    min-width: 0;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.vocab-focus-page__brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.1rem;
}

.vocab-focus-page__brand small {
    margin-inline-start: 0.25rem;
    font-size: 0.55rem;
    opacity: 0.9;
}

.vocab-focus-page__main {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    justify-items: center;
    min-height: 0;
    padding: 0.35rem 0.75rem 0.25rem;
    overflow: hidden;
}

.vocab-focus-counters-wrap {
    display: flex;
    justify-content: center;
    width: var(--focus-card-w);
    max-width: 100%;
    margin: 0 0 0.3rem;
    flex-shrink: 0;
}

.vocab-focus-page .vocab-focus-counters-wrap .stack-answer-counters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
    width: 100%;
    padding: 0;
    direction: ltr;
}

.vocab-focus-page .vocab-focus-counters-wrap .stack-answer-counter {
    border-radius: 10px;
    padding: 0.2rem 0.28rem;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.vocab-focus-page .vocab-focus-counters-wrap .stack-answer-counter__label {
    display: block;
    font-size: clamp(0.58rem, 2.4vw, 0.66rem);
    font-weight: 700;
    line-height: 1.1;
    color: #64748b;
}

.vocab-focus-page .vocab-focus-counters-wrap .stack-answer-counter__value {
    display: block;
    margin-top: 0.05rem;
    font-size: clamp(0.82rem, 3.2vw, 0.95rem);
    font-weight: 800;
    line-height: 1;
}

.vocab-focus-page .vocab-focus-counters-wrap .stack-answer-counter--forgot .stack-answer-counter__value {
    color: #dc2626;
}

.vocab-focus-page .vocab-focus-counters-wrap .stack-answer-counter--known .stack-answer-counter__value {
    color: #16a34a;
}

.vocab-focus-page .vocab-focus-counters-wrap .stack-answer-counter--review .stack-answer-counter__value {
    color: #8b5cf6;
}

.vocab-focus-page .vocab-study-mode-toggle {
    width: min(100%, var(--focus-card-w));
    margin: 0 0 0.28rem;
}

.vocab-focus-page .vocab-study-mode-toggle__label {
    display: none;
}

.vocab-focus-page .vocab-study-mode-toggle__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.vocab-focus-page .vocab-study-mode-toggle__buttons {
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 999px;
}

.vocab-focus-page .vocab-study-mode-toggle__buttons .vocab-study-mode-toggle__btn {
    flex: 0 0 auto;
}

.vocab-focus-page .vocab-study-mode-toggle--dropdown .vocab-study-mode-toggle__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.32rem;
}

.vocab-focus-page .vocab-study-mode-toggle--dropdown .vocab-study-mode-toggle__select-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.vocab-focus-page .vocab-study-mode-toggle__select {
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 0.32rem 2rem 0.32rem 0.62rem;
    border: 1px solid rgba(182, 0, 0, 0.2);
    border-radius: 10px;
    background: #fff;
    color: #9a0000;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
    appearance: none;
    -webkit-appearance: none;
}

.vocab-focus-page .vocab-study-mode-toggle__select:focus-visible {
    outline: 2px solid rgba(182, 0, 0, 0.45);
    outline-offset: 1px;
}

.vocab-focus-page .vocab-study-mode-toggle__select-chevron {
    position: absolute;
    inset-inline-end: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9a0000;
    font-size: 1rem;
}

.vocab-focus-page .vocab-study-mode-toggle--dropdown .vocab-study-mode-toggle__expand-wrap {
    display: flex;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.vocab-focus-page .vocab-study-mode-toggle--dropdown .vocab-study-mode-toggle__expand--compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 34px;
    padding: 0.32rem 0.55rem;
    border: 1px solid rgba(182, 0, 0, 0.2);
    border-radius: 10px;
    background: #fff;
    color: #9a0000;
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
    white-space: nowrap;
}

.vocab-focus-page .vocab-study-mode-toggle--dropdown .vocab-study-mode-toggle__expand--compact:hover,
.vocab-focus-page .vocab-study-mode-toggle--dropdown .vocab-study-mode-toggle__expand--compact:focus-visible {
    color: #fff;
    background: #B60000;
    border-color: #B60000;
    text-decoration: none;
}

@media (max-width: 420px) {
    .vocab-focus-page .vocab-study-mode-toggle__expand-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .vocab-focus-page .vocab-study-mode-toggle--dropdown .vocab-study-mode-toggle__expand--compact {
        min-width: 34px;
        padding-inline: 0.42rem;
    }
}

.vocab-focus-page__loading {
    margin: 0.35rem 0 0;
    color: #9a0000;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.vocab-focus-stack {
    position: relative;
    width: var(--focus-card-w);
    height: var(--focus-card-h);
    min-height: 0;
    overflow: visible;
    padding-bottom: 18px;
}

.vocab-focus-grid-wrap {
    width: min(100%, 1100px);
    height: 100%;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 0.35rem 0.2rem 1rem;
    align-content: start;
    -webkit-user-select: none;
    user-select: none;
}

.vocab-focus-grid-wrap[hidden] {
    display: none !important;
}

.vocab-focus-grid-wrap .vocabulary-grid-col {
    min-height: min(380px, calc(100dvh - 12rem));
}

.vocab-focus-grid-wrap .vocabulary-card-wrapper {
    min-height: min(380px, calc(100dvh - 12rem));
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
}

.vocab-focus-grid-wrap .vocabulary-card-inner,
.vocab-focus-grid-wrap .vocabulary-card-front,
.vocab-focus-grid-wrap .vocabulary-card-back {
    min-height: min(380px, calc(100dvh - 12rem));
    min-width: 0;
    max-width: 100%;
}

.vocab-focus-grid-wrap .vocabulary-card-front,
.vocab-focus-grid-wrap .vocabulary-card-back {
    border: 1px solid #1a1a1a;
    background: #f2ede4;
    overflow: hidden;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .vocab-focus-grid-wrap .vocabulary-grid-col.vocabulary-grid-card-answered {
        visibility: hidden;
        pointer-events: none;
    }

    .vocab-focus-grid-wrap .vocabulary-grid-col.vocabulary-grid-card-answered .vocabulary-card-wrapper {
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .vocab-focus-grid-wrap .vocabulary-grid-col.vocabulary-grid-card-answered {
        display: none !important;
    }
}

.vocab-focus-grid-wrap .vocabulary-card-wrapper,
.vocab-focus-grid-wrap .vocabulary-card-inner,
.vocab-focus-grid-wrap .vocabulary-card-front,
.vocab-focus-grid-wrap .vocabulary-card-back {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.vocab-focus-grid-wrap .vocab-card-line-with-speech {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.vocab-focus-grid-wrap .vocab-card-line-with-speech > :not(.vocab-speech-btn) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.vocab-focus-grid-wrap .vocab-speech-btn,
.vocab-focus-grid-wrap .wotd-speech-btn.vocab-speech-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    flex: 0 0 34px !important;
    border: 1px solid rgba(182, 0, 0, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #B60000;
}

.vocab-focus-grid-wrap .word-de-only,
.vocab-focus-grid-wrap .front-sentence,
.vocab-focus-grid-wrap .card-back-word-de,
.vocab-focus-grid-wrap .card-back-word-ar,
.vocab-focus-grid-wrap .card-back-word-en,
.vocab-focus-grid-wrap .sentence-line,
.vocab-focus-grid-wrap .stack-de-lemma-wrap {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.vocab-focus-grid-wrap .vocabulary-card-back .card-back-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    justify-content: flex-start;
    padding-bottom: 0.55rem;
}

.vocab-focus-grid-wrap .card-back-center,
.vocab-focus-grid-wrap .card-back-words,
.vocab-focus-grid-wrap .card-back-sentence {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.vocab-focus-grid-wrap .vocabulary-card-back .card-back-center {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    align-items: center;
    padding: 0.15rem 0 0.35rem;
    scrollbar-gutter: stable;
}

.vocab-focus-grid-wrap .vocabulary-card-back .vocabulary-card-actions {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 3;
    background: #f2ede4;
    box-shadow: 0 -10px 14px rgba(242, 237, 228, 0.96);
}

.vocab-focus-grid-wrap .vocabulary-card-front .word-de-only,
.vocab-focus-grid-wrap .vocabulary-card-front .word-ar-only,
.vocab-focus-grid-wrap .vocabulary-card-back .card-back-word-de,
.vocab-focus-grid-wrap .vocabulary-card-back .card-back-word-ar,
.vocab-focus-grid-wrap .vocabulary-card-back .card-back-word-en,
.vocab-focus-grid-wrap .vocabulary-card-back .card-back-article {
    font-size: clamp(0.95rem, 2.35vw, 1.55rem);
    line-height: 1.22;
}

.vocab-focus-grid-wrap .vocabulary-card-front .front-sentence,
.vocab-focus-grid-wrap .vocabulary-card-back .sentence-line {
    font-size: clamp(0.82rem, 1.85vw, 1.05rem);
    line-height: 1.32;
}

.vocab-focus-grid-wrap .vocabulary-card-back .card-back-sentence {
    margin-top: 0.35rem;
    padding-top: 0.5rem;
}

.vocab-focus-grid-wrap .vocabulary-card-back .card-back-content {
    padding-inline: 0.85rem;
}

.vocab-focus-grid-wrap .vocabulary-card-actions .btn {
    min-height: 46px;
    font-size: 0.84rem;
    padding: 0.4rem 0.32rem;
}

.vocab-focus-grid-wrap .vocabulary-card-actions .btn-label-two-lines,
.vocab-focus-grid-wrap .vocabulary-card-actions .btn-vocab-with-label .btn-learned-label {
    font-size: 0.82em;
}

.vocab-focus-grid-wrap .vocabulary-card-back .card-back-verb-forms,
.vocab-focus-grid-wrap .vocabulary-card-back .verb-forms-table-wrap {
    width: 100%;
    max-width: 100%;
}

.vocab-focus-grid-wrap .vocabulary-card-back .verb-forms-table thead th {
    white-space: nowrap;
    font-size: 0.68rem;
}

.vocab-focus-grid-wrap .vocabulary-card-wrapper.vocabulary-card--flat-flip .vocabulary-card-inner,
.vocab-focus-grid-wrap .vocabulary-card-wrapper.vocabulary-card--flat-flip.flipped .vocabulary-card-inner {
    transform: none !important;
    -webkit-transform: none !important;
}

.vocab-focus-grid-wrap .vocabulary-card-wrapper.vocabulary-card--flat-flip .vocabulary-card-front {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
    pointer-events: auto;
}

.vocab-focus-grid-wrap .vocabulary-card-wrapper.vocabulary-card--flat-flip .vocabulary-card-back {
    opacity: 0 !important;
    visibility: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
    pointer-events: none;
}

.vocab-focus-grid-wrap .vocabulary-card-wrapper.vocabulary-card--flat-flip.flipped .vocabulary-card-front {
    opacity: 0 !important;
    pointer-events: none;
}

.vocab-focus-grid-wrap .vocabulary-card-wrapper.vocabulary-card--flat-flip.flipped .vocabulary-card-back {
    opacity: 1 !important;
    pointer-events: auto;
}

.vocab-focus-stack .stack-card {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: var(--focus-card-w);
    height: var(--focus-card-h);
    min-height: var(--focus-card-h);
    border-radius: 12px;
    background: #faf8f4;
    border: 1px solid #1a1a1a;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18), 0 3px 8px rgba(15, 23, 42, 0.12);
    touch-action: pan-y;
    transform-origin: center center;
    transition: transform 0.28s ease, opacity 0.22s ease;
    -webkit-user-drag: none;
}

.vocab-focus-page.vocab-study-mode-swipe .vocab-focus-stack .stack-card {
    touch-action: none;
}

.vocab-focus-page.vocab-study-mode-swipe .vocab-focus-stack .stack-card.vocab-focus-card--active {
    cursor: grab;
}

.vocab-focus-page.vocab-study-mode-swipe .vocab-focus-stack .stack-card.vocab-focus-card--active * {
    cursor: inherit;
}

.vocab-focus-page.vocab-study-mode-swipe .vocab-focus-stack .stack-card.vocab-focus-card--active .vocab-speech-btn,
.vocab-focus-page.vocab-study-mode-swipe .vocab-focus-stack .stack-card.vocab-focus-card--active [data-stack-flip-btn],
.vocab-focus-page.vocab-study-mode-swipe .vocab-focus-stack .stack-card.vocab-focus-card--active [data-stack-simple-meaning-btn] {
    cursor: pointer;
}

.vocab-focus-page.vocab-study-mode-simple .vocab-focus-stack .stack-card.vocab-focus-card--active {
    touch-action: manipulation;
}

.vocab-focus-page.vocab-study-mode-simple .vocab-focus-stack .stack-card:not(.vocab-focus-card--active) {
    pointer-events: none;
}

.vocab-focus-stack .stack-card.stack-card--dragging {
    z-index: 999 !important;
    cursor: grabbing;
    transition: none !important;
    will-change: transform;
    touch-action: none;
}

.vocab-focus-stack .stack-card.vocab-focus-card--exiting {
    pointer-events: none;
    will-change: transform, opacity;
}

.vocab-focus-stack .stack-card * {
    box-sizing: border-box;
}

.vocab-focus-stack .stack-card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.vocab-focus-stack .stack-card.flipped .stack-card-flip {
    transform: rotateY(180deg);
}

.vocab-focus-stack .stack-card {
    --stack-card-face-bg: #f2ede4;
    --stack-card-back-bg: var(--stack-card-face-bg);
}

.vocab-focus-stack .stack-card-front,
.vocab-focus-stack .stack-card-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0.7rem 0.65rem 0.55rem;
    border-radius: 11px;
    backface-visibility: hidden;
    overflow: hidden;
}

.vocab-focus-stack .stack-card-front {
    z-index: 2;
    background: var(--stack-card-face-bg, #f2ede4);
}

.vocab-focus-stack .stack-card-back {
    transform: rotateY(180deg);
    background: var(--stack-card-back-bg, #f2ede4);
}

.vocab-focus-stack .stack-back-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    padding-top: 2.15rem;
}

.vocab-focus-stack .stack-back-scroll,
.vocab-focus-stack .stack-front-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    text-align: center;
    scrollbar-gutter: stable;
}

.vocab-focus-stack .stack-back-words,
.vocab-focus-stack .stack-front-words {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.55rem;
    min-height: 40%;
    text-align: center;
}

.vocab-focus-stack .card-level-corner,
.vocab-focus-stack .card-seen-corner {
    position: absolute;
    top: 0.5rem;
    z-index: 4;
    max-width: 42%;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
}

.vocab-focus-stack .card-level-corner {
    inset-inline-start: 0.5rem;
}

.vocab-focus-stack .card-seen-corner {
    inset-inline-end: 0.5rem;
    color: #B60000;
}

.vocab-focus-stack .stack-card-line-de-speech {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.vocab-focus-stack .stack-front-lemma-block,
.vocab-focus-stack .stack-front-text-cell {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
    text-align: center;
}

.vocab-focus-stack .stack-de-lemma-wrap {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    text-align: center;
}

.vocab-focus-stack .card-back-plural {
    display: inline;
    margin-top: 0;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    color: #64748b;
}

.vocab-focus-stack .card-back-plural__sep {
    margin-inline: 0.12em;
    color: #94a3b8;
    font-weight: 600;
}

.vocab-focus-stack .card-back-plural__label {
    display: none;
}

.vocab-focus-stack .card-back-plural__value {
    color: #475569;
    font-weight: 600;
}

.vocab-focus-stack .card-back-word-de,
.vocab-focus-stack .card-back-word-ar,
.vocab-focus-stack .card-back-word-en,
.vocab-focus-stack .card-back-article,
.vocab-focus-stack .sentence-line {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.vocab-focus-stack .card-back-word-de,
.vocab-focus-stack .card-back-word-ar {
    font-size: clamp(1.65rem, 6vw, 2.35rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.18;
}

.vocab-focus-stack .card-back-word-en {
    font-size: clamp(1.25rem, 4.4vw, 1.75rem);
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
}

.vocab-focus-stack .card-back-article {
    display: inline-block;
    margin-inline-end: 0.35rem;
    color: #B60000;
    font-size: clamp(1.3rem, 4.6vw, 1.8rem);
    font-weight: 900;
}

.vocab-focus-stack .sentence-line {
    color: #475569;
    font-size: clamp(1rem, 3.4vw, 1.35rem);
    font-weight: 600;
    line-height: 1.45;
}

.vocab-focus-stack .stack-front-translation-placeholder {
    color: #94a3b8;
    opacity: 0.6;
    filter: blur(2px);
}

.vocab-focus-stack .vocab-speech-btn,
.vocab-focus-stack .wotd-speech-btn.vocab-speech-btn,
.vocab-focus-stack .stack-front-audio-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0;
    border: 1px solid rgba(182, 0, 0, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #B60000;
    flex: 0 0 36px !important;
    outline: none;
    transform: none;
}

.vocab-focus-stack .vocab-speech-btn:hover,
.vocab-focus-stack .wotd-speech-btn.vocab-speech-btn:hover,
.vocab-focus-stack .vocab-speech-btn:focus-visible,
.vocab-focus-stack .wotd-speech-btn.vocab-speech-btn:focus-visible,
.vocab-focus-stack .vocab-speech-btn.playing,
.vocab-focus-stack .wotd-speech-btn.vocab-speech-btn.playing {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    transform: none;
    box-shadow: none !important;
}

.vocab-focus-stack .vocab-speech-btn:focus-visible,
.vocab-focus-stack .wotd-speech-btn.vocab-speech-btn:focus-visible {
    outline: 2px solid rgba(182, 0, 0, 0.35);
    outline-offset: -2px;
}

.vocab-focus-stack .stack-back-footer,
.vocab-focus-stack .stack-front-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: 0.45rem;
    overflow-x: hidden;
}

.vocab-focus-stack .verb-forms-table {
    table-layout: fixed;
    width: 100%;
    font-size: 0.78rem;
}

.vocab-focus-stack .stack-card-flip-hint {
    display: none !important;
}

.vocab-focus-stack .stack-card-simple-meaning-btn,
.vocab-focus-stack .stack-card .stack-card-flip-btn {
    display: none !important;
}

.vocab-focus-flip-btn {
    display: none;
}

.vocab-focus-page.vocab-study-mode-simple .vocab-focus-flip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 32px;
    border: 1px solid rgba(182, 0, 0, 0.26);
    border-radius: 12px;
    background: #fff !important;
    color: #b60000 !important;
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
}

.vocab-focus-page.vocab-study-mode-simple .vocab-focus-flip-btn .stack-card-flip-btn__icon {
    font-size: 1.05rem;
    transition: transform 0.28s ease;
}

.vocab-focus-page.vocab-study-mode-simple .vocab-focus-flip-btn[aria-expanded="true"] .stack-card-flip-btn__icon {
    transform: rotate(180deg);
}

.vocab-focus-page.vocab-study-mode-simple .vocab-focus-page__footer {
    direction: rtl;
}

.vocab-focus-stack .stack-card-swipe-label {
    position: absolute;
    left: 50%;
    top: 1.55rem;
    z-index: 8;
    display: none;
    align-items: center;
    justify-content: center;
    width: min(70%, 210px);
    min-height: 1.15rem;
    transform: translate(-50%, 0);
    pointer-events: none;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.vocab-focus-stack .stack-card-swipe-label .las {
    display: none;
}

.vocab-focus-stack .stack-card-swipe-label .stack-card-swipe-label-text {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.vocab-focus-stack .stack-card-swipe-label .stack-card-swipe-label-text .d-block {
    font-size: 0.84rem;
    line-height: 1.2;
}

.vocab-focus-stack .stack-card.swiping-right .stack-card-swipe-label-right,
.vocab-focus-stack .stack-card.swiping-left .stack-card-swipe-label-left,
.vocab-focus-stack .stack-card.swiping-up .stack-card-swipe-label-up {
    display: flex !important;
    opacity: 1;
    transform: translate(-50%, 0);
}

.vocab-focus-stack .stack-card-swipe-label-right {
    color: #16a34a;
}

.vocab-focus-stack .stack-card-swipe-label-left {
    color: #dc2626;
}

.vocab-focus-stack .stack-card-swipe-label-up {
    color: #8b5cf6;
}

.vocab-focus-stack .card-brand-watermark {
    position: absolute;
    inset-inline: 0.6rem;
    bottom: 0.45rem;
    color: rgba(100, 116, 139, 0.28);
    font-size: 0.9rem;
    text-align: center;
    pointer-events: none;
}

.vocab-focus-stack .stack-card:not(.vocab-focus-card--active):not(.vocab-focus-card--behind) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.vocab-focus-stack .vocab-focus-card--behind {
    opacity: 0.75;
    pointer-events: none !important;
    transform: none !important;
    overflow: hidden;
}

/* البطاقة التالية بنفس موضع النشطة حتى لا ترتفع عند الإفلات */
.vocab-focus-stack .vocab-focus-card--active,
.vocab-focus-stack .vocab-focus-card--behind-1 {
    top: 0 !important;
}

.vocab-focus-stack .vocab-focus-card--behind-1 {
    z-index: 29 !important;
    opacity: 1 !important;
}

.vocab-focus-stack .vocab-focus-card--behind-2 {
    top: 8px !important;
    z-index: 28 !important;
}

.vocab-focus-stack .vocab-focus-card--behind-3 {
    top: 14px !important;
    z-index: 27 !important;
}

.vocab-focus-stack .vocab-focus-card--behind-2 .stack-card-flip,
.vocab-focus-stack .vocab-focus-card--behind-3 .stack-card-flip,
.vocab-focus-stack .vocab-focus-card--behind-2 .card-brand-watermark,
.vocab-focus-stack .vocab-focus-card--behind-3 .card-brand-watermark {
    opacity: 0 !important;
    visibility: hidden !important;
}

.vocab-focus-stack .vocab-focus-card--behind-2 .stack-card-front,
.vocab-focus-stack .vocab-focus-card--behind-2 .stack-card-back,
.vocab-focus-stack .vocab-focus-card--behind-3 .stack-card-front,
.vocab-focus-stack .vocab-focus-card--behind-3 .stack-card-back {
    display: none !important;
}

.vocab-focus-stack .vocab-focus-card--active {
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
}

.vocab-focus-stack .vocab-focus-card--behind .stack-card-flip {
    transform: none !important;
    transform-style: flat !important;
}

.vocab-focus-stack .vocab-focus-card--behind .stack-card-front {
    opacity: 1 !important;
    visibility: visible !important;
}

.vocab-focus-stack .vocab-focus-card--behind .stack-card-back {
    display: none !important;
}

.vocab-focus-page.vocab-focus-is-dragging .vocab-focus-stack .vocab-focus-card--behind-2,
.vocab-focus-page.vocab-focus-is-dragging .vocab-focus-stack .vocab-focus-card--behind-3 {
    opacity: 0.75;
    visibility: visible;
}

.vocab-focus-stack .vocab-focus-card--behind,
.vocab-focus-stack .vocab-focus-card--hidden-depth {
    transform: none !important;
}

.vocab-focus-page__footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
    width: min(100%, var(--focus-card-w));
    margin: 0 auto;
    padding: 0 0.75rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    direction: ltr;
    flex-shrink: 0;
}

.vocab-focus-action,
.vocab-focus-secondary {
    min-width: 0;
    min-height: 32px;
    padding: 0.22rem 0.24rem;
    border: 0;
    border-radius: 10px;
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.05;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.02rem;
    text-align: center;
    direction: inherit;
}

.vocab-focus-action i,
.vocab-focus-secondary i {
    font-size: 0.95rem;
    line-height: 1;
}

.vocab-focus-action small {
    color: inherit;
    font-size: 0.56rem;
    font-weight: 700;
    opacity: 0.92;
}

.vocab-focus-action--new {
    background: linear-gradient(135deg, #B60000, #8f0000) !important;
}

.vocab-focus-action--repeat {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.vocab-focus-action--known {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
}

.vocab-focus-secondary {
    background: #fff !important;
    color: #B60000 !important;
    border: 1px solid rgba(182, 0, 0, 0.26);
}

.vocab-focus-secondary:disabled {
    opacity: 0.55;
}

.vocab-focus-page.vocab-study-mode-swipe .vocab-focus-action {
    display: none;
}

.vocab-focus-page.vocab-study-mode-swipe .vocab-focus-page__footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 280px);
}

.vocab-focus-page.vocab-study-mode-simple .vocab-focus-page__footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vocab-focus-page.vocab-study-mode-simple .vocab-focus-secondary {
    grid-column: span 1;
}

.vocab-focus-page.vocab-study-mode-simple .vocab-focus-page__footer--no-report {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vocab-focus-page__empty {
    align-self: center;
    text-align: center;
}

.vocab-focus-page.vocab-study-mode-simple {
    --focus-card-h: min(380px, calc(100dvh - 16.25rem));
}

@media (max-height: 700px) {
    .vocab-focus-page {
        --focus-card-h: min(340px, calc(100dvh - 14rem));
    }

    .vocab-focus-page.vocab-study-mode-simple {
        --focus-card-h: min(320px, calc(100dvh - 15.5rem));
    }

    .vocab-focus-action,
    .vocab-focus-secondary {
        min-height: 28px;
        font-size: 0.64rem;
        padding-block: 0.18rem;
    }

    .vocab-focus-action small {
        font-size: 0.52rem;
    }
}
