/* Тёмная тема для css/board.css (онлайн-доска: комната, голос). Чат и голосовые плитки — в chat.css.
   Затемнения поверх видео (подписи плиток, кнопки-стрелки, значок говорящего) остаются как есть. */

/* ---------- Окно выбора комнаты и имя ---------- */
html[data-theme="dark"] .room-modal,
html[data-theme="dark"] .name-setup-content,
html[data-theme="dark"] .thought-bubble,
html[data-theme="dark"] .thought-bubble::before,
html[data-theme="dark"] #mobileCameraChat {
    background: var(--c-surface) !important;
}

html[data-theme="dark"] .room-code-input-section label,
html[data-theme="dark"] .room-item-name,
html[data-theme="dark"] .name-setup-content h2 {
    color: var(--c-text);
}

html[data-theme="dark"] .room-code-input,
html[data-theme="dark"] .name-setup-input {
    background: var(--c-surface-2);
    border-color: var(--c-border);
    color: var(--c-text);
}

html[data-theme="dark"] .room-code-input::placeholder {
    color: var(--c-muted);
}

html[data-theme="dark"] .room-section-title {
    color: var(--c-muted);
    border-bottom-color: var(--c-border);
}

html[data-theme="dark"] .room-section-title svg {
    color: var(--c-accent-text);
}

html[data-theme="dark"] .room-item,
html[data-theme="dark"] .room-item:hover {
    background: var(--c-surface-2);
}

html[data-theme="dark"] .room-item-code,
html[data-theme="dark"] .room-empty-message,
html[data-theme="dark"] .loading-indicator,
html[data-theme="dark"] .completion-panel .close-button,
html[data-theme="dark"] .name-setup-close,
html[data-theme="dark"] .current-name-display,
html[data-theme="dark"] .name-base,
html[data-theme="dark"] .name-setup-hint,
html[data-theme="dark"] .sap-label {
    color: var(--c-muted);
}

html[data-theme="dark"] .name-setup-close:hover {
    background: var(--c-surface-2);
    color: var(--c-text);
}

html[data-theme="dark"] .name-digits {
    color: #6fd68a;
}

/* ---------- Доска: панели управления и ходы ---------- */
html[data-theme="dark"] .board-control-btn {
    background: var(--c-surface-2);
    border-color: var(--c-border);
    color: var(--c-muted);
}

html[data-theme="dark"] .board-control-btn:hover {
    background: var(--c-border);
}

html[data-theme="dark"] .chess-board-header,
html[data-theme="dark"] .moves-history {
    background: var(--c-surface-2);
    border-color: var(--c-border);
}

html[data-theme="dark"] .chess-board-header::before {
    background: linear-gradient(90deg, #3a4260 0%, #55608a 50%, #3a4260 100%);
}

html[data-theme="dark"] .loading-spinner {
    border-color: var(--c-border);
    border-top-color: var(--c-accent-text);
}

html[data-theme="dark"] .completion-panel {
    background-color: rgba(25, 30, 43, 0.95);
}

html[data-theme="dark"] .win-message {
    color: #5ee08a;
}

html[data-theme="dark"] .draw-message {
    color: #5bb2f0;
}

html[data-theme="dark"] .lose-message {
    color: #ff8a80;
}

html[data-theme="dark"] .fab-menu-item,
html[data-theme="dark"] .sap-menu-item,
html[data-theme="dark"] .student-chat-overlay {
    background: var(--c-surface);
    border-color: var(--c-border);
    color: var(--c-text);
}

html[data-theme="dark"] .fab-menu-item:hover,
html[data-theme="dark"] .sap-menu-item:hover {
    background: var(--c-surface-2);
}

html[data-theme="dark"] .room-panel--offline {
    background: linear-gradient(135deg, #2f3957 0%, #55607a 100%) !important;
}

/* ---------- Панель ученика ---------- */
html[data-theme="dark"] .student-action-panel {
    background: var(--c-surface-2);
    border-color: var(--c-border);
}

html[data-theme="dark"] .sap-btn--mic,
html[data-theme="dark"] .sap-btn--cam {
    background: var(--c-surface);
    color: var(--c-muted);
}

html[data-theme="dark"] .sap-btn--mic.muted,
html[data-theme="dark"] .sap-btn--cam.muted {
    background: var(--c-surface);
    color: var(--c-text);
}

html[data-theme="dark"] .voice-video-side-toggle {
    background: var(--c-surface);
    border-color: var(--c-border);
    color: var(--c-muted);
}
