/* ---------- Подключение шрифта ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

/* Базовые сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    padding: 0;
    color: #1e293b;
}

/* Основной контейнер */
#app {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

/* ===== МОБИЛЬНЫЕ (до 768px) ===== */
@media (max-width: 767px) {
    body {
        background: #ffffff;
        align-items: flex-start;
    }
    #app {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 16px;
        box-shadow: none;
        border: none;
        min-height: 100vh;
    }
    .top-bar {
        margin-top: 8px;
        margin-bottom: 20px;
    }
    .greeting {
        font-size: 1.1rem;
    }
    .profile-link, .back-link {
        height: 40px;
    }
    .profile-link {
        width: 40px;
        font-size: 1.2rem;
    }
    .back-link {
        padding: 0 14px;
        font-size: 0.9rem;
    }
    .btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    .start-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
    .home-screen h2 {
        font-size: 1.5rem;
    }
    .score-badge {
        padding: 4px 12px;
        font-size: 0.85rem;
    }
    .example-image {
        padding: 8px;
    }
    .btn-drawer {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    .answer-input {
        padding: 10px 12px;
        font-size: 1rem;
        margin: 10px 0;
    }
    .draw-canvas {
        max-height: 280px;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    #app {
        padding: 12px;
        min-height: auto;
    }
    .top-bar {
        margin-bottom: 12px;
    }
    .greeting {
        font-size: 0.95rem;
    }
    .profile-link, .back-link {
        height: 36px;
    }
    .profile-link {
        width: 36px;
        font-size: 1.1rem;
    }
    .back-link {
        padding: 0 12px;
        font-size: 0.85rem;
    }
    .example-image img {
        max-height: 22vh;
    }
    .draw-canvas {
        max-height: 22vh;
    }
    .answer-input {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .btn-drawer {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    .home-screen h2 {
        font-size: 1.3rem;
    }
}

/* ===== ПЛАНШЕТЫ ВЕРТИКАЛЬНЫЕ ===== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    #app {
        width: 85%;
        max-width: 700px;
        margin: 48px auto;
        border-radius: 12px;
        padding: 28px;
    }
    .answer-input {
        width: 100%;
        padding: 12px 18px;
        font-size: 1.1rem;
        margin: 14px 0;
    }
    .action-buttons .btn {
        padding: 12px 18px;
        font-size: 1rem;
    }
    .example-image img {
        max-height: 32vh;
    }
    .draw-canvas {
        max-height: 32vh;
    }
    .btn-drawer {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    .profile-link {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    .back-link {
        padding: 0 16px;
        height: 44px;
        font-size: 0.95rem;
    }
}

/* ===== ПЛАНШЕТЫ ГОРИЗОНТАЛЬНЫЕ ===== */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    #app {
        width: 80%;
        max-width: 1000px;
        margin: 40px auto;
        border-radius: 12px;
        padding: 20px;
    }
    .answer-input {
        width: 75%;
        padding: 8px 16px;
        font-size: 1rem;
        margin: 10px auto;
    }
    .action-buttons .btn {
        padding: 8px 16px;
        font-size: 0.95rem;
        min-width: 110px;
    }
    .example-image img {
        max-height: 26vh;
    }
    .draw-canvas {
        max-height: 28vh;
    }
    .btn-drawer {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    .profile-link {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    .back-link {
        padding: 0 14px;
        height: 42px;
        font-size: 0.9rem;
    }
}

/* ===== ДЕСКТОПЫ ===== */
@media (min-width: 1025px) {
    #app {
        width: 70%;
        max-width: 850px;
        margin: 56px auto;
        border-radius: 12px;
        padding: 32px;
    }
    .answer-input {
        width: 70%;
        padding: 12px 20px;
        font-size: 1.1rem;
        margin: 18px auto;
    }
    .action-buttons .btn {
        padding: 12px 22px;
        font-size: 1rem;
        min-width: 130px;
    }
    .example-image img {
        max-height: 38vh;
    }
    .draw-canvas {
        max-height: 38vh;
    }
    .profile-link {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
    .back-link {
        padding: 0 18px;
        height: 46px;
        font-size: 0.95rem;
    }
}

@media (min-width: 1920px) {
    #app {
        max-width: 1000px;
    }
}

/* ===== ОБЩИЕ СТИЛИ ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.profile-link,
.back-link {
    text-decoration: none;
    color: #2c3e66;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    height: 42px;
    font-weight: 500;
}
.profile-link {
    width: 42px;
    font-size: 1.2rem;
}
.back-link {
    width: auto;
    padding: 0 16px;
    font-size: 0.9rem;
    gap: 6px;
}
.profile-link:hover,
.back-link:hover {
    background: #e2e8f0;
    color: #0f2b4d;
}

.greeting {
    font-weight: 500;
    color: #1e293b;
    font-size: 1rem;
}

/* Форма авторизации */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    justify-content: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-weight: 500;
    color: #2c3e66;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    background: white;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus {
    border-color: #2c3e66;
}

.btn {
    background: #2c3e66;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 10px 16px;
}

.start-btn {
    background: #2c3e66;
    font-size: 1rem;
    padding: 12px 20px;
}

/* Кнопки на главной странице с тематическими цветами */
#startMathBtn {
    background: #e67e22;
}
#startMathBtn:hover {
    background: #d35400;
}
#startPhysBtn {
    background: #8e44ad;
}
#startPhysBtn:hover {
    background: #6c3483;
}

.btn-outline {
    background: transparent;
    color: #2c3e66;
    border: 1px solid #2c3e66;
}
.btn-outline:hover {
    background: #f1f5f9;
    color: #1e3a5f;
}

.auth-switch {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* Главный экран */
.home-screen {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.home-screen h2 {
    color: #1e293b;
    font-size: 1.6rem;
    font-weight: 600;
}
.home-screen p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Экран игры */
.game-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.game-header {
    text-align: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.score-badge {
    background: #f1f5f9;
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
    color: #2c3e66;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
}
.example-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
    flex-shrink: 0;
}
.example-image {
    flex: 1;
    border-radius: 8px;
    background: #fafcff;
    padding: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.example-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.example-image img:active {
    transform: scale(1.5);
}
.btn-drawer {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    color: #2c3e66;
}
.btn-drawer:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}
.answer-input {
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: white;
    display: block;
    font-size: 0.95rem;
    padding: 10px 14px;
}
.answer-input:focus {
    border-color: #2c3e66;
}
.answer-input::-webkit-outer-spin-button,
.answer-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.answer-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.action-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    margin: 8px 0;
}
.action-buttons .btn {
    flex: 1;
}

/* Кнопка пропуска — светлый фон, тёмный текст (по умолчанию) */
.btn-skip {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}
.btn-skip:hover {
    background: #f1f5f9;
}

/* Доска для рисования */
.drawer-panel {
    display: none;
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    flex-shrink: 0;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
}
.drawer-panel.open {
    display: block;
}
.drawer-canvas-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.drawer-title {
    font-weight: 600;
    color: #1e293b;
}
.drawer-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
}
.drawer-close:hover {
    color: #2c3e66;
}

/* Увеличенный и адаптивный холст */
.draw-canvas {
    width: 100%;
    height: 1200px;
    max-height: none;
    touch-action: none;
    cursor: crosshair;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: block;
}

#drawCanvas {
    touch-action: none;
}

/* Кнопки инструментов доски */
.drawer-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.tool-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #2c3e66;
    transition: all 0.2s;
    min-width: 44px;
}

.tool-btn:hover {
    background: #e2e8f0;
}

.tool-btn.active {
    background: #cbd5e1;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
}

/* Для совместимости с существующими кнопками цвета */
.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: opacity 0.1s;
}

.clear-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    color: #2c3e66;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}
.clear-btn:hover {
    background: #e2e8f0;
}

/* Дополнительные стили для инструментов доски */
.drawer-tools-secondary {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.tool-label {
    font-weight: 500;
    color: #2c3e66;
    font-size: 0.9rem;
}

.brush-size-slider {
    width: 150px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
}

.brush-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #2c3e66;
    border-radius: 50%;
    cursor: pointer;
}

.brush-size-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #2c3e66;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.brush-size-value {
    font-weight: 600;
    color: #2c3e66;
    min-width: 24px;
    text-align: center;
}

.drawer-tools-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.action-btn {
    min-width: 50px;
    font-size: 1rem;
}

/* Страница профиля */
.profile-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 20px;
    width: 100%;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.profile-email {
    font-weight: 600;
    color: #2c3e66;
    word-break: break-all;
    margin-bottom: 8px;
}
.rank-title {
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}
.stat-item {
    text-align: center;
}
.stat-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.4rem;
}
.stat-label {
    color: #475569;
    font-weight: 500;
    font-size: 0.8rem;
}
.logout-btn {
    margin-top: 24px;
    background: #f1f5f9;
    color: #b91c1c;
    border: 1px solid #e2e8f0;
    width: 100%;
}
.logout-btn:hover {
    background: #e2e8f0;
    color: #991b1b;
}

.message {
    color: #2c3e66;
    font-weight: 500;
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
}
.message.error {
    color: #b91c1c;
}
.hidden {
    display: none;
}

/* ===== ТЕМА МАТЕМАТИКИ (оранжевая) ===== */
body.math-theme .btn,
body.math-theme .start-btn {
    background: #e67e22;
}
body.math-theme .btn:hover,
body.math-theme .start-btn:hover {
    background: #d35400;
}
body.math-theme .profile-link,
body.math-theme .back-link {
    background: #fef3e2;
    color: #e67e22;
}
body.math-theme .profile-link:hover,
body.math-theme .back-link:hover {
    background: #ffe0b3;
}
body.math-theme .score-badge {
    background: #fef3e2;
    color: #e67e22;
    border-color: #fde6cf;
}
body.math-theme .btn-outline {
    color: #e67e22;
    border-color: #e67e22;
}
body.math-theme .btn-outline:hover {
    background: #fef3e2;
}
body.math-theme .answer-input:focus {
    border-color: #e67e22;
}
body.math-theme .btn-drawer {
    background: #fef3e2;
    border-color: #fde6cf;
    color: #e67e22;
}
body.math-theme .btn-drawer:hover {
    background: #ffe0b3;
}
body.math-theme .tool-btn,
body.math-theme .clear-btn {
    background: #fef3e2;
    color: #e67e22;
    border-color: #fde6cf;
}
body.math-theme .tool-btn:hover,
body.math-theme .clear-btn:hover {
    background: #ffe0b3;
}
body.math-theme .tool-btn.active {
    background: #fde6cf;
}
body.math-theme .action-btn {
    background: #fef3e2;
    color: #e67e22;
    border-color: #fde6cf;
}
body.math-theme .action-btn:hover {
    background: #ffe0b3;
}
/* Кнопка пропуска в математике — светлый фон, оранжевый текст */
body.math-theme .btn-skip {
    background: #fefaf5;
    color: #e67e22;
    border-color: #fde6cf;
}
body.math-theme .btn-skip:hover {
    background: #fff3e0;
}

/* ===== ТЕМА ФИЗИКИ (фиолетовая) ===== */
body.phys-theme .btn,
body.phys-theme .start-btn {
    background: #8e44ad;
}
body.phys-theme .btn:hover,
body.phys-theme .start-btn:hover {
    background: #6c3483;
}
body.phys-theme .profile-link,
body.phys-theme .back-link {
    background: #f3e8ff;
    color: #8e44ad;
}
body.phys-theme .profile-link:hover,
body.phys-theme .back-link:hover {
    background: #e9d9ff;
}
body.phys-theme .score-badge {
    background: #f3e8ff;
    color: #8e44ad;
    border-color: #e9d9ff;
}
body.phys-theme .btn-outline {
    color: #8e44ad;
    border-color: #8e44ad;
}
body.phys-theme .btn-outline:hover {
    background: #f3e8ff;
}
body.phys-theme .answer-input:focus {
    border-color: #8e44ad;
}
body.phys-theme .btn-drawer {
    background: #f3e8ff;
    border-color: #e9d9ff;
    color: #8e44ad;
}
body.phys-theme .btn-drawer:hover {
    background: #e9d9ff;
}
body.phys-theme .tool-btn,
body.phys-theme .clear-btn {
    background: #f3e8ff;
    color: #8e44ad;
    border-color: #e9d9ff;
}
body.phys-theme .tool-btn:hover,
body.phys-theme .clear-btn:hover {
    background: #e9d9ff;
}
body.phys-theme .tool-btn.active {
    background: #e9d9ff;
}
body.phys-theme .action-btn {
    background: #f3e8ff;
    color: #8e44ad;
    border-color: #e9d9ff;
}
body.phys-theme .action-btn:hover {
    background: #e9d9ff;
}
/* Кнопка пропуска в физике — светлый фон, фиолетовый текст */
body.phys-theme .btn-skip {
    background: #fcfaff;
    color: #8e44ad;
    border-color: #e9d9ff;
}
body.phys-theme .btn-skip:hover {
    background: #f3e8ff;
}

/* --- Информационный блок о бонусах --- */
.bonus-info {
    margin-top: 30px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    
    /* Выравнивание по ширине */
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    
    font-size: 0.85rem;
    line-height: 1.5;
    color: #475569;
}

.bonus-info p {
    margin-bottom: 8px;
}

.bonus-info p:last-child {
    margin-bottom: 0;
}

.bonus-info strong {
    color: #1e293b;
}

.bonus-info a {
    color: #2c3e66;
    font-weight: 600;
    text-decoration: none;
}

.bonus-info a:hover {
    text-decoration: underline;
}

/* Адаптация под тему Математики */
body.math-theme .bonus-info {
    background: #fefaf5;
    border-color: #fde6cf;
}
body.math-theme .bonus-info a, 
body.math-theme .bonus-info strong {
    color: #e67e22;
}

/* Адаптация под тему Физики */
body.phys-theme .bonus-info {
    background: #fcfaff;
    border-color: #e9d9ff;
}
body.phys-theme .bonus-info a, 
body.phys-theme .bonus-info strong {
    color: #8e44ad;
}

/* Скрытие блока при активной рисовалке на мобильных устройствах */
@media (max-width: 767px) {
    .drawer-panel.open ~ .bonus-info {
        display: none;
    }
}

/* ===== ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ ===== */
body.accessibility-mode {
    background: #000000 !important;
}

body.accessibility-mode #app {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
}

body.accessibility-mode .top-bar {
    border-bottom: 2px solid #ffffff !important;
}

body.accessibility-mode .greeting,
body.accessibility-mode .home-screen h2,
body.accessibility-mode .home-screen p,
body.accessibility-mode .profile-link,
body.accessibility-mode .back-link,
body.accessibility-mode .game-header,
body.accessibility-mode .score-badge,
body.accessibility-mode .drawer-title,
body.accessibility-mode .tool-label,
body.accessibility-mode .brush-size-value,
body.accessibility-mode .bonus-info,
body.accessibility-mode .bonus-title,
body.accessibility-mode .bonus-item,
body.accessibility-mode .bonus-email,
body.accessibility-mode .stat-label,
body.accessibility-mode .profile-email,
body.accessibility-mode .rank-title,
body.accessibility-mode .message {
    color: #ffffff !important;
}

body.accessibility-mode .input-group label {
    color: #ffffff !important;
}

body.accessibility-mode .btn-accessibility {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    padding: 16px 24px !important;
}

body.accessibility-mode .btn-accessibility:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

body.accessibility-mode .btn,
body.accessibility-mode .start-btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

body.accessibility-mode .btn:hover,
body.accessibility-mode .start-btn:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

body.accessibility-mode .profile-link,
body.accessibility-mode .back-link {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .profile-link:hover,
body.accessibility-mode .back-link:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

body.accessibility-mode .input-group input,
body.accessibility-mode .answer-input {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-size: 1.1rem !important;
}

body.accessibility-mode .input-group input:focus,
body.accessibility-mode .answer-input:focus {
    border-color: #ffff00 !important;
    outline: none;
}

body.accessibility-mode .btn-outline {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .btn-outline:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

body.accessibility-mode .btn-skip {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .btn-skip:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

body.accessibility-mode .btn-drawer,
body.accessibility-mode .tool-btn,
body.accessibility-mode .action-btn,
body.accessibility-mode .clear-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .btn-drawer:hover,
body.accessibility-mode .tool-btn:hover,
body.accessibility-mode .action-btn:hover,
body.accessibility-mode .clear-btn:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

body.accessibility-mode .drawer-panel {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .draw-canvas {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .bonus-info {
    background: #000000 !important;
    border: 2px dashed #ffffff !important;
}

body.accessibility-mode .profile-card {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .logout-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .logout-btn:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

body.accessibility-mode .stat-value {
    color: #ffffff !important;
}

body.accessibility-mode .color-btn {
    border: 2px solid #ffffff !important;
}

body.accessibility-mode .brush-size-slider {
    background: #ffffff !important;
}

body.accessibility-mode .drawer-close {
    color: #ffffff !important;
}

body.accessibility-mode .drawer-close:hover {
    color: #ffff00 !important;
}
