* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Improve touch scrolling on iOS */
html {
    -webkit-overflow-scrolling: touch;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent double-tap zoom on buttons */
button,
a,
input[type="button"],
input[type="submit"] {
    touch-action: manipulation;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: white;
    color: #333;
    padding: 20px 30px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    header {
        padding: 15px;
    }
}

header .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
    font-weight: 600;
}

.back-btn {
    padding: 10px 18px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .back-btn {
        padding: 12px 20px;
        font-size: 1em;
    }
}

.back-btn:hover {
    background: #5a6268;
}

/* Catalog Page Styles */
.catalog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-bottom: none;
}

.catalog-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.catalog-header .subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
}

.catalog-content {
    padding: 40px 30px;
    min-height: 500px;
}

@media (max-width: 768px) {
    .catalog-content {
        padding: 20px 15px;
        min-height: auto;
    }
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.catalog-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid transparent;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.catalog-icon {
    font-size: 2.5em;
    color: #667eea;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    flex-shrink: 0;
}

.catalog-title {
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.catalog-arrow {
    font-size: 1.5em;
    color: #667eea;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.catalog-card:hover .catalog-arrow {
    opacity: 1;
    transform: translateX(0);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.reshuffle-btn {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .reshuffle-btn {
        padding: 12px 20px;
        font-size: 1em;
        width: 100%;
        justify-content: center;
    }
}

.reshuffle-btn:hover {
    background: #5a6268;
}

.reset-btn {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .reset-btn {
        padding: 12px 20px;
        font-size: 1em;
        width: 100%;
        justify-content: center;
    }
}

.reset-btn:hover {
    background: #c82333;
}


.tab-content {
    display: none;
    padding: 20px 30px;
    min-height: 500px;
}

@media (max-width: 768px) {
    .tab-content {
        padding: 15px;
        min-height: auto;
    }
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: #333;
    font-size: 1.3em;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

/* Fill Gap Exercise Styles */
#exercises-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exercise-card {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.exercise-card > * {
    flex-shrink: 0;
}

.exercise-card .sentence-container {
    flex-shrink: 1;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .exercise-card {
        padding: 15px;
        gap: 12px;
        flex-wrap: wrap;
    }
}

.exercise-card:hover {
    background: #f8f9fa;
}

.exercise-card.completed {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.exercise-card.completed:hover {
    background: #c3e6cb;
}

.exercise-card.completed .exercise-number {
    background: #28a745;
}

.exercise-card.completed .answer-section {
    display: flex;
}

.completed-answer {
    font-weight: bold;
    color: #155724;
    padding: 2px 6px;
    background: #b8dabc;
    border-radius: 4px;
}

/* Revealed exercise styles (after showing answer) */
.exercise-card.revealed {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.exercise-card.revealed:hover {
    background: #ffe8a1;
}

.exercise-card.revealed .exercise-number {
    background: #ffc107;
    color: #333;
}

.exercise-card.revealed .answer-section {
    display: none;
}

.revealed-answer {
    font-weight: bold;
    color: #f57c00;
    padding: 2px 6px;
    background: #ffe0b2;
    border-radius: 4px;
}

.feedback.revealed {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.feedback.revealed .feedback-title {
    color: #856404;
}

.exercise-number {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.8em;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .exercise-number {
        padding: 8px 12px;
        font-size: 0.9em;
        min-width: 70px;
    }
}

.sentence-container {
    font-size: 1.05em;
    color: #333;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

@media (max-width: 768px) {
    .sentence-container {
        font-size: 1.15em;
        width: 100%;
        line-height: 1.6;
    }
}

.sentence-container .answer-input {
    display: inline-block;
    width: 220px;
    padding: 6px 10px;
    font-size: 1em;
    border: none;
    border-bottom: 2px solid #667eea;
    background: transparent;
    transition: border-color 0.3s;
    margin: 0 3px;
}

@media (max-width: 768px) {
    .sentence-container .answer-input {
        width: 100%;
        min-width: 200px;
        padding: 8px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border: 2px solid #667eea;
        border-radius: 6px;
        margin: 5px 0;
    }
}

.sentence-container .answer-input:focus {
    outline: none;
    border-bottom-color: #5568d3;
    background: #f8f9fa;
}

.word-bank {
    margin-bottom: 20px;
}

.word-bank-title {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.word-bank-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.word-bank-item {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #667eea;
    color: #667eea;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.answer-section {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

@media (max-width: 768px) {
    .answer-section {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-left: 0;
    }
}

.sentence-container .answer-input.correct {
    border-bottom-color: #28a745;
    background-color: #d4edda;
}

.sentence-container .answer-input.incorrect {
    border-bottom-color: #dc3545;
    background-color: #f8d7da;
}

/* Word-by-word input for partial answers */
.sentence-container .word-input {
    display: inline-block;
    width: auto;
    min-width: 60px;
    max-width: 150px;
    padding: 4px 8px;
    font-size: 1em;
    border: none;
    border-bottom: 2px solid #667eea;
    background: transparent;
    transition: all 0.3s;
    margin: 0 3px;
}

@media (max-width: 768px) {
    .sentence-container .word-input {
        min-width: 80px;
        max-width: 100%;
        padding: 8px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
        border: 2px solid #667eea;
        border-radius: 6px;
        margin: 3px;
    }
}

.sentence-container .word-input:focus {
    outline: none;
    border-bottom-color: #5568d3;
    background: #f8f9fa;
}

.sentence-container .locked-word {
    display: inline-block;
    padding: 4px 8px;
    font-size: 1em;
    color: #28a745;
    font-weight: 600;
    background: #d4edda;
    border-radius: 4px;
    margin: 0 3px;
    border: 2px solid #28a745;
    animation: lockIn 0.3s ease;
}

@keyframes lockIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.check-btn {
    padding: 8px 20px;
    font-size: 0.9em;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .check-btn {
        padding: 12px 24px;
        font-size: 1em;
        width: 100%;
    }
}

.check-btn:hover {
    background: #5568d3;
}

.reveal-answer-btn {
    padding: 8px 20px;
    font-size: 0.85em;
    background: #ffc107;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .reveal-answer-btn {
        padding: 12px 24px;
        font-size: 1em;
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
}

.reveal-answer-btn:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.check-btn:disabled {
    background: #28a745;
    cursor: default;
}

.hint {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9em;
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
    flex-shrink: 0;
    display: none;
    width: 100%;
    margin-top: 8px;
}

.hint i {
    margin-right: 5px;
}

.feedback {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9em;
    display: none;
    width: 100%;
    margin-top: 8px;
}

.feedback.show {
    display: block;
}

/* Inline feedback for completed exercises */
.feedback-inline {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feedback-inline.correct {
    background: #d4edda;
    color: #155724;
}

.feedback-inline i {
    font-size: 1em;
}

@media (max-width: 768px) {
    .feedback {
        margin-top: 10px;
        font-size: 1em;
        padding: 12px;
    }
    
    .feedback-inline {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}

.feedback.show {
    display: block;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.feedback-title {
    font-weight: bold;
    display: inline;
    margin-right: 5px;
}

.correct-answer {
    font-weight: bold;
    color: #721c24;
}

.explanation {
    display: none;
}

/* Verb Reference Table */
#verb-reference {
    margin-bottom: 30px;
}

.spoiler-toggle {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .spoiler-toggle {
        padding: 12px 15px;
        font-size: 1em;
    }
}

.spoiler-toggle:hover {
    background: #e9ecef;
}

.spoiler-toggle #spoiler-icon {
    display: inline-block;
    width: 20px;
    color: #667eea;
}

#verb-reference-content {
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

#verb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

#verb-table thead {
    background: #667eea;
    color: white;
}

#verb-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

#verb-table th:first-child {
    text-align: center;
    width: 40px;
}

#verb-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

#verb-table tbody tr:hover {
    background: #f8f9fa;
}

#verb-table td {
    padding: 12px;
    vertical-align: top;
}

#verb-table .verb-number {
    font-weight: bold;
    color: #667eea;
    text-align: center;
    width: 40px;
}

#verb-table .verb-pair {
    color: #667eea;
    font-size: 1em;
}

#verb-table .verb-pair strong {
    display: inline;
}

#verb-table .stress {
    font-size: 0.9em;
    color: #6c757d;
}

#verb-table .russian {
    color: #495057;
    font-style: italic;
}

#verb-table .constructions {
    color: #495057;
    font-style: italic;
}

#verb-table .examples {
    color: #495057;
}

#verb-table .examples div {
    padding: 2px 0;
    line-height: 1.4;
}

footer {
    background: #f8f9fa;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .catalog-header h1 {
        font-size: 1.8em;
    }
    
    .catalog-header .subtitle {
        font-size: 1em;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-card {
        padding: 20px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    header h1 {
        font-size: 1.2em;
    }
    
    header .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .reshuffle-btn,
    .reset-btn {
        width: 100%;
        justify-content: center;
    }
    
    .answer-section {
        flex-direction: column;
    }
    
    .check-btn {
        width: 100%;
    }
    
    .sentence-container {
        font-size: 1.15em;
    }
    
    .word-input {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    /* Better table scrolling on mobile */
    .declension-table-wrapper-full {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve touch targets */
    button,
    a,
    input,
    .catalog-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better spacing for mobile */
    #exercises-container {
        gap: 12px;
    }
    
    .hint {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        border-radius: 10px;
    }
    
    .catalog-header {
        padding: 30px 20px;
    }
    
    .catalog-header h1 {
        font-size: 1.5em;
    }
    
    .exercise-card {
        padding: 12px;
    }
    
    .sentence-container {
        font-size: 1.1em;
    }
    
    .exercise-number {
        min-width: 50px;
        font-size: 0.8em;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .catalog-header {
        padding: 20px;
    }
    
    .catalog-header h1 {
        font-size: 1.5em;
    }
}

/* Cases exercises specific styles */
.catalog-card-special {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.catalog-card-special .catalog-icon {
    color: white;
}

.catalog-subtitle {
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 5px;
}

.cases-info {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 20px 30px;
    border-radius: 8px;
    color: #333;
}

@media (max-width: 768px) {
    .cases-info {
        margin: 15px;
        padding: 12px 15px;
        font-size: 0.95em;
    }
}

.cases-info i {
    color: #667eea;
    margin-right: 10px;
}

/* Phrase hint with tooltip */
.phrase-hint-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .phrase-hint-wrapper {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        order: -1; /* Move hint to top on mobile */
    }
}

.phrase-hint {
    color: #667eea;
    font-size: 0.9em;
    font-style: italic;
    padding: 6px 12px;
    background: #f0f4ff;
    border-radius: 6px;
    white-space: nowrap;
    cursor: help;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .phrase-hint {
        font-size: 0.95em;
        padding: 8px 14px;
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}

.phrase-hint:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.phrase-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    z-index: 1000;
}

.phrase-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 6px solid transparent;
    border-top-color: #764ba2;
}

.phrase-hint-wrapper:hover .phrase-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px);
}

.exercise-card.completed .phrase-hint {
    background: #c3e6cb;
    color: #155724;
}

.exercise-card.completed .phrase-hint:hover {
    background: #28a745;
    color: white;
}

.exercise-card.completed .phrase-tooltip {
    background: #28a745;
}

.exercise-card.completed .phrase-tooltip::after {
    border-top-color: #28a745;
}

.feedback-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-icon {
    font-size: 1.1em;
}

.feedback-text {
    flex: 1;
}

.exercise-card.completed .phrase-hint {
    background: #c3e6cb;
    color: #155724;
}

/* Case reference styles */
#case-reference {
    margin: 20px 30px;
}

@media (max-width: 768px) {
    #case-reference {
        margin: 15px;
    }
}

.reference-section-title {
    color: #667eea;
    margin: 30px 0 15px 0;
    font-size: 1.3em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.declension-table-wrapper-full {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow-x: auto;
}

.declension-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.declension-table-compact thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.declension-table-compact th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
}

.declension-table-compact th em {
    font-size: 0.85em;
    opacity: 0.9;
    font-weight: 400;
}

.declension-table-compact tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.declension-table-compact tbody tr:hover {
    background: #f8f9fa;
}

.declension-table-compact tbody tr:last-child {
    border-bottom: none;
}

.declension-table-compact td {
    padding: 12px;
    color: #333;
}

.declension-table-compact td.case-label {
    font-weight: bold;
    color: #667eea;
    text-align: center;
    width: 60px;
    font-size: 1.1em;
}

.declension-table-compact td.case-question {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
    width: 140px;
}

.declension-table-compact td strong {
    color: #e91e63;
    font-weight: 700;
}

.declension-table-compact td em {
    color: #e91e63;
    font-style: normal;
    font-weight: 600;
}

.reference-notes {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.reference-notes h4 {
    color: #856404;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reference-notes ul {
    margin: 0;
    padding-left: 25px;
}

.reference-notes li {
    color: #856404;
    margin-bottom: 8px;
    line-height: 1.6;
}

.reference-notes li strong {
    color: #664d03;
}

@media (max-width: 1024px) {
    .declension-table-compact {
        font-size: 0.85em;
    }
    
    .declension-table-compact th,
    .declension-table-compact td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    .declension-table-wrapper-full {
        padding: 10px;
    }
    
    .declension-table-compact {
        font-size: 0.8em;
    }
    
    .declension-table-compact th,
    .declension-table-compact td {
        padding: 8px 4px;
    }
    
    .declension-table-compact td.case-question {
        font-size: 0.75em;
    }
}

