/* ===== CSS Custom Properties (Theming) ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f0f0;
    --bg-app: #1565c0;
    --bg-accent: #e3f2fd;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --border-light: #eeeeee;
    --accent: #1976d2;
    --accent-dark: #1565c0;
    --success: #28a745;
    --success-bg: #d4edda;
    --success-text: #155724;
    --error: #dc3545;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --neutral: #6c757d;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --bg-app: #0a0a1a;
    --bg-accent: #1a2744;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #777777;
    --border-color: #2a2a4a;
    --border-light: #222244;
    --accent: #5c9ce6;
    --accent-dark: #3a7bd5;
    --success: #4caf50;
    --success-bg: #1b3d1f;
    --success-text: #81c784;
    --error: #ef5350;
    --error-bg: #3d1b1b;
    --error-text: #ef9a9a;
    --neutral: #90a4ae;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

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

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-app);
    height: 100vh;
    height: 100dvh;
    padding: 0;
    margin: 0;
    color: var(--text-primary);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

/* ===== Main Container ===== */
.container {
    max-width: 600px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

/* ===== Profile Bar ===== */
.profile-bar {
    background: var(--accent-dark);
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.profile-greeting {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

#user-nickname {
    font-weight: 700;
}

.profile-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.theme-toggle-btn:active {
    background: rgba(255,255,255,0.2);
}

/* ===== Top Bar (Score + Settings) ===== */
.top-bar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    z-index: 100;
}

/* Score Row */
.score-row {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 8px 6px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    text-align: center;
    min-width: 0;
    flex: 1;
}

.score-value {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 15px;
    font-weight: 700;
}

.score-item.correct .score-icon { color: var(--success); }
.score-item.wrong .score-icon { color: var(--error); }
.score-item.skipped .score-icon { color: var(--neutral); }
.score-item.streak .score-icon { font-size: 14px; }

.score-icon {
    font-size: 13px;
}

.score-num {
    color: var(--text-primary);
}

.score-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Settings Row */
.settings-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: end;
    padding: 8px 8px;
    gap: 8px;
    background: var(--bg-primary);
}

.settings-row .setting-group {
    flex: 1 1 0;
    min-width: 80px;
    max-width: 140px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.setting-label {
    font-size: 9px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.settings-select {
    padding: 8px 6px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease;
    width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}

.settings-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Toggle Options */
.toggle-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    min-width: 40px;
}

.toggle-option input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background-color: #ccc;
    border-radius: 22px;
    transition: 0.3s;
    flex-shrink: 0;
}

[data-theme="dark"] .toggle-slider {
    background-color: #555;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-option input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle-option input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

.toggle-text {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.toggle-option input:checked ~ .toggle-text {
    color: var(--accent);
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    min-width: 40px;
}

.timer-value {
    font-size: 15px;
    font-weight: bold;
    color: white;
    min-width: 20px;
    text-align: center;
}

.timer-value.warning {
    color: #ff6b6b;
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== Game Container ===== */
.game-container {
    background: var(--bg-primary);
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* Loading skeleton for verse */
.verse-skeleton {
    padding: 14px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-line:nth-child(1) { width: 100%; }
.skeleton-line:nth-child(2) { width: 90%; }
.skeleton-line:nth-child(3) { width: 95%; }
.skeleton-line:nth-child(4) { width: 70%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Score pop animation */
.score-pop {
    animation: scorePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scorePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Flash feedback on game area */
.flash-correct {
    animation: flashCorrect 0.5s ease;
}

.flash-wrong {
    animation: flashWrong 0.5s ease;
}

@keyframes flashCorrect {
    0% { box-shadow: inset 0 0 0 0 rgba(40, 167, 69, 0); }
    30% { box-shadow: inset 0 0 0 3px rgba(40, 167, 69, 0.4); }
    100% { box-shadow: inset 0 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes flashWrong {
    0% { box-shadow: inset 0 0 0 0 rgba(220, 53, 69, 0); }
    30% { box-shadow: inset 0 0 0 3px rgba(220, 53, 69, 0.4); }
    100% { box-shadow: inset 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 4000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.toast-info { border-left: 4px solid var(--accent); }
.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--error); }

/* Smooth game-area entrance */
.game-area-entering {
    animation: gameEnter 0.4s ease-out;
}

@keyframes gameEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-area {
    animation: fadeIn 0.3s ease-in;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

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

/* ===== Verse Display ===== */
.verse-display {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.verse-container {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    padding: 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.75;
    font-size: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 80px;
}

.verse-container p {
    margin: 0;
    color: var(--text-primary);
}

.verse-reference {
    text-align: right;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 8px 0;
}

/* ===== Answer Section ===== */
.answer-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-hint-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

#book-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    -webkit-appearance: none;
    background: var(--bg-primary);
    color: var(--text-primary);
}

#book-input::placeholder {
    color: var(--text-muted);
}

#book-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

[data-theme="dark"] #book-input:focus {
    box-shadow: 0 0 0 3px rgba(92, 156, 230, 0.2);
}

#book-input:disabled {
    background: var(--bg-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Action Buttons */
.hint-btn,
.skip-btn {
    padding: 10px 14px;
    font-size: 18px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.hint-btn {
    background: var(--bg-accent);
    color: var(--accent-dark);
}

.hint-btn:active:not(:disabled) {
    transform: scale(0.92);
    background: var(--accent);
    color: white;
}

.hint-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.skip-btn {
    border-color: var(--neutral);
    background: var(--bg-secondary);
    color: var(--neutral);
}

.skip-btn:active:not(:disabled) {
    transform: scale(0.92);
    background: var(--neutral);
    color: white;
}

.skip-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Hint Display */
.hint-display {
    padding: 10px 12px;
    background: var(--bg-accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent-dark);
    font-weight: 500;
    font-size: 14px;
    animation: slideIn 0.2s ease;
}

[data-theme="dark"] .hint-display {
    color: var(--accent);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-md);
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.1s ease;
    font-size: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:active,
.autocomplete-item.selected {
    background: var(--bg-accent);
}

.autocomplete-item strong {
    color: var(--accent);
    font-weight: 600;
}

/* ===== Controls ===== */
.controls {
    text-align: center;
    padding: 8px 12px;
    background: var(--bg-primary);
    flex-shrink: 0;
    border-top: 1px solid var(--border-light);
}

.reset-btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--neutral);
    color: white;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
}

.reset-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* ===== Modal (Bottom Sheet on Mobile) ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
    padding: 0;
    animation: fadeInOverlay 0.15s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 20px 28px;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto 16px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-feedback {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
}

.modal-feedback.correct {
    background: var(--success-bg);
    color: var(--success-text);
    border: 2px solid var(--success);
}

.modal-feedback.wrong {
    background: var(--error-bg);
    color: var(--error-text);
    border: 2px solid var(--error);
}

.modal-reference {
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.modal-tap-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ===== Welcome Modal ===== */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3000;
    padding: 0;
}

.welcome-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 20px 32px;
    max-width: 600px;
    width: 100%;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-content h2 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    text-align: center;
}

.welcome-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-align: center;
}

.welcome-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
}

.welcome-input:focus {
    outline: none;
    border-color: var(--accent);
}

.welcome-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--accent);
    color: white;
    transition: all 0.15s ease;
    min-height: 48px;
}

.welcome-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* ===== Copyright Notice ===== */
.copyright-notice {
    background: var(--bg-primary);
    padding: 6px 12px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.copyright-notice p {
    margin: 0;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.5;
}

.copyright-notice a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== Study Panel ===== */
.study-panel {
    background: var(--bg-primary);
    overflow: hidden;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--accent-dark);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.study-header:active {
    opacity: 0.9;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.study-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-secondary);
}

.study-content.expanded {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.study-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
    gap: 8px;
}

.study-item:last-child {
    border-bottom: none;
}

.study-book {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.study-stats {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.accuracy-low { color: var(--error); font-weight: 600; }
.accuracy-med { color: #dd6b20; font-weight: 600; }
.accuracy-high { color: var(--success); font-weight: 600; }

[data-theme="dark"] .accuracy-med { color: #f0a050; }

.study-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Desktop / Tablet Enhancements ===== */
@media (min-width: 601px) {
    body {
        padding: 12px;
        background: var(--bg-app);
    }

    .container {
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-lg);
        height: calc(100vh - 24px);
        height: calc(100dvh - 24px);
    }

    .game-container {
        padding: 20px;
    }

    .settings-row {
        padding: 10px 16px;
        gap: 12px;
    }

    .score-row {
        padding: 10px 12px;
    }

    .modal {
        align-items: center;
        padding: 20px;
    }

    .modal-content {
        border-radius: var(--radius-md);
        max-width: 420px;
    }

    .modal-handle {
        display: none;
    }

    .welcome-modal {
        align-items: center;
        padding: 20px;
    }

    .welcome-content {
        border-radius: var(--radius-md);
        max-width: 400px;
    }

    .hint-btn:hover:not(:disabled) {
        background: var(--accent);
        color: white;
    }

    .skip-btn:hover:not(:disabled) {
        background: var(--neutral);
        color: white;
    }

    .reset-btn:hover {
        opacity: 0.85;
    }

    .autocomplete-item:hover {
        background: var(--bg-accent);
    }

    .study-header:hover {
        background: var(--accent);
    }
}

/* ===== Very small screens (iPhone SE, etc) ===== */
@media (max-height: 600px) {
    .score-row {
        padding: 4px 4px;
    }

    .score-value {
        font-size: 13px;
    }

    .score-label {
        font-size: 8px;
    }

    .settings-row {
        padding: 6px 6px;
        gap: 6px;
    }

    .game-container {
        padding: 8px;
    }

    .verse-container {
        font-size: 15px;
        padding: 10px;
        line-height: 1.6;
    }

    .profile-bar {
        padding: 4px 10px;
    }

    .study-content.expanded {
        max-height: 150px;
    }
}

/* ===== Safe area insets for notched phones ===== */
@supports (padding-top: env(safe-area-inset-top)) {
    .profile-bar {
        padding-top: calc(6px + env(safe-area-inset-top));
    }

    .copyright-notice {
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
    }

    .modal-content {
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
    }

    .welcome-content {
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }
}
