/* css/tutorial.css - ПОЛНЫЕ СТИЛИ ДЛЯ ТУТОРИАЛА "КЛЕВЫЙ ДЕД" */

/* ===== 1. КОНТЕЙНЕР ДЕДА ===== */
.tutorial-grandpa-container {
    position: fixed;
    z-index: 10050;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    max-width: 90vw;
}

.tutorial-grandpa-container.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tutorial-grandpa-container.pos-bottom-left {
    bottom: 100px;
    left: 30px;
    flex-direction: row;
}
.tutorial-grandpa-container.pos-bottom-right {
    bottom: 100px;
    right: 30px;
    flex-direction: row-reverse;
}
.tutorial-grandpa-container.pos-top-left {
    top: 100px;
    left: 30px;
    flex-direction: row;
    align-items: flex-start;
}
.tutorial-grandpa-container.pos-top-right {
    top: 100px;
    right: 30px;
    flex-direction: row-reverse;
    align-items: flex-start;
}
.tutorial-grandpa-container.pos-center {
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    flex-direction: row;
}
.tutorial-grandpa-container.active.pos-center {
    transform: translate(-50%, 50%) translateY(0);
}

.tutorial-grandpa-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7fafc, #f7fafc);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    cursor: pointer;
    flex-shrink: 0;
    border: 3px solid #ffffff;
    animation: grandpaPulse 2s infinite;
    overflow: hidden;
    user-select: none;
}

.tutorial-grandpa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes grandpaPulse {
    0% { box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(59, 130, 246, 0.8); }
    100% { box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4); }
}

.tutorial-grandpa-bubble {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 340px;
    min-width: 260px;
    position: relative;
    border: 1px solid #e2e8f0;
    z-index: 10051;
}

.tutorial-grandpa-container.pos-bottom-left .tutorial-grandpa-bubble::after,
.tutorial-grandpa-container.pos-top-left .tutorial-grandpa-bubble::after {
    content: '';
    position: absolute;
    left: -10px;
    bottom: 20px;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #ffffff;
}
.tutorial-grandpa-container.pos-top-left .tutorial-grandpa-bubble::after {
    bottom: auto;
    top: 20px;
}
.tutorial-grandpa-container.pos-bottom-right .tutorial-grandpa-bubble::after,
.tutorial-grandpa-container.pos-top-right .tutorial-grandpa-bubble::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: 20px;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #ffffff;
}
.tutorial-grandpa-container.pos-top-right .tutorial-grandpa-bubble::after {
    bottom: auto;
    top: 20px;
}
.tutorial-grandpa-container.pos-center .tutorial-grandpa-bubble::after {
    content: '';
    position: absolute;
    left: -10px;
    bottom: 20px;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #ffffff;
}

.tutorial-bubble-title {
    font-size: 14px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tutorial-bubble-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 12px;
    white-space: pre-line;
}

.tutorial-bubble-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.tutorial-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.tutorial-btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

.tutorial-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.tutorial-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.tutorial-btn-secondary:hover {
    background: #e2e8f0;
}

.tutorial-btn-skip {
    background: transparent;
    color: #94a3b8;
    padding: 7px 8px;
}

.tutorial-btn-skip:hover {
    color: #64748b;
    text-decoration: underline;
}

/* ===== 2. ПОДСВЕТКА ЭЛЕМЕНТОВ ===== */
.tutorial-highlight {
    position: relative;
    z-index: 10040 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.6), 0 0 25px rgba(59, 130, 246, 0.7) !important;
    border-radius: 8px;
    animation: tutorialPulse 1.5s infinite;
    pointer-events: auto !important;
}

@keyframes tutorialPulse {
    0% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.6), 0 0 25px rgba(59, 130, 246, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.3), 0 0 40px rgba(59, 130, 246, 0.9); }
    100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.6), 0 0 25px rgba(59, 130, 246, 0.7); }
}

.tutorial-context-menu-preview {
    position: fixed;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 8px;
    z-index: 10045;
    border: 2px solid #3b82f6;
    animation: tutorialPulse 1.5s infinite;
    min-width: 220px;
}

.tutorial-context-menu-preview-item {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.tutorial-context-menu-preview-item:hover {
    background: #f1f5f9;
}

.tutorial-context-menu-preview-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 4px 14px;
    letter-spacing: 0.5px;
}

.tutorial-overlay {
    display: none !important;
}

/* ===== 3. МОДАЛЬНОЕ ОКНО ПРИВЕТСТВИЯ ===== */
.tutorial-welcome-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tutorial-welcome-modal.show {
    display: flex;
    animation: tutorialFadeIn 0.3s ease;
}

@keyframes tutorialFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tutorial-welcome-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 460px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: tutorialSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes tutorialSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tutorial-welcome-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7fafc, f7fafc);
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    border: 4px solid #ffffff;
    overflow: hidden;
}

.tutorial-welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.tutorial-welcome-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.tutorial-welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tutorial-welcome-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tutorial-welcome-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.tutorial-welcome-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.tutorial-welcome-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.tutorial-welcome-btn-secondary:hover {
    background: #e2e8f0;
}

/* ===== 4. КНОПКА "ПОМОЩЬ" ===== */
.tutorial-help-btn {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #ffffff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    animation: helpBtnPulse 3s infinite;
}

.tutorial-help-btn.show {
    display: flex;
}

@keyframes helpBtnPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.7); }
}

.tutorial-help-btn:hover {
    transform: scale(1.1);
    background: #2563eb;
}

/* ===== 5. МЕНЮ ВЫБОРА БЛОКОВ ===== */
.tutorial-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.tutorial-menu-item {
    padding: 14px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-menu-item:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.tutorial-menu-item-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.tutorial-menu-item-text {
    font-weight: 600;
    line-height: 1.3;
}

/* ===== 6. МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .tutorial-grandpa-container {
        bottom: 90px !important;
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        flex-direction: row !important;
        max-width: calc(100vw - 20px);
    }
    .tutorial-grandpa-container.pos-top-left,
    .tutorial-grandpa-container.pos-top-right {
        top: 90px !important;
        bottom: auto !important;
    }
    .tutorial-grandpa-container.pos-center {
        bottom: 50% !important;
        left: 10px !important;
        right: 10px !important;
        transform: translateY(50%) !important;
    }
    
    .tutorial-grandpa-avatar {
        width: 60px;
        height: 60px;
        font-size: 36px;
        border-width: 2px;
    }
    
    .tutorial-grandpa-bubble {
        max-width: none;
        flex: 1;
        padding: 12px 14px;
        min-width: 0;
    }
    
    .tutorial-grandpa-bubble::after {
        display: none !important;
    }
    
    .tutorial-bubble-text {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .tutorial-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .tutorial-welcome-content {
        padding: 24px 20px;
        max-width: 100%;
    }
    
    .tutorial-welcome-avatar {
        width: 80px;
        height: 80px;
        font-size: 48px;
    }
    
    .tutorial-welcome-title {
        font-size: 20px;
    }
    
    .tutorial-welcome-subtitle {
        font-size: 14px;
    }
    
    .tutorial-help-btn {
        bottom: 40px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .tutorial-menu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tutorial-welcome-title {
        font-size: 18px;
    }
    .tutorial-welcome-subtitle {
        font-size: 13px;
    }
    .tutorial-welcome-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ===== УСИЛЕННАЯ ПОДСВЕТКА ДЛЯ КНОПКИ ЯКОРЯ ===== */
.tutorial-highlight.anchor-btn,
.tutorial-highlight[id*="anchor"],
.tutorial-highlight[class*="anchor"],
.anchor-btn.tutorial-highlight,
button.tutorial-highlight {
    position: relative !important;
    z-index: 10040 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 1) !important;
    border-radius: 8px !important;
    animation: tutorialPulse 1.2s infinite !important;
    outline: 3px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

.map-controls-right:has(.tutorial-highlight),
.map-controls-left:has(.tutorial-highlight),
.anchor-control:has(.tutorial-highlight) {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .tutorial-highlight {
        box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.9), 0 0 35px rgba(59, 130, 246, 1) !important;
        outline: 4px solid #3b82f6 !important;
        outline-offset: 3px !important;
    }
}

/* ===== ПОДСВЕТКА ВЫПАДАЮЩИХ МЕНЮ КАРТЫ ===== */
#mapVisibilityDropdownMenu.tutorial-highlight,
#mapAddDropdownMenu.tutorial-highlight,
#mapFiltersDropdownMenu.tutorial-highlight {
    z-index: 10040 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.6), 0 10px 30px rgba(59, 130, 246, 0.4) !important;
    border-radius: 10px !important;
    animation: tutorialPulse 1.5s infinite;
}

.map-visibility-dropdown-menu.show,
.map-add-dropdown-menu.show,
.map-filters-dropdown-menu.show {
    z-index: 10035;
}

/* ===== ПОДСВЕТКА КНОПКИ ПРОФИЛЯ ===== */
#headerUserMenu .btn-profile.tutorial-highlight,
.btn-profile.tutorial-highlight,
[onclick*="openProfile"].tutorial-highlight {
    position: relative !important;
    z-index: 10040 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 1) !important;
    border-radius: 8px !important;
    animation: tutorialPulse 1.2s infinite !important;
    outline: 3px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

#headerUserMenu,
.user-actions {
    overflow: visible !important;
}

/* ===== ПОДСВЕТКА ВКЛАДКИ "ПОГОДА" ===== */
.tab-btn-tz.tutorial-highlight {
    position: relative !important;
    z-index: 10045 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.7), 0 0 25px rgba(59, 130, 246, 0.9) !important;
    border-radius: 8px !important;
    animation: tutorialPulse 1.2s infinite !important;
    outline: 3px solid #3b82f6 !important;
    outline-offset: 2px !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

.waterbody-tabs-tz {
    overflow: visible !important;
}

/* ===== СВОЁ МЕНЮ ПРОФИЛЯ ДЛЯ ТУТОРИАЛА ===== */
.tutorial-profile-menu {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    max-width: 280px;
    padding: 8px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: tutorialMenuFadeIn 0.2s ease;
}

@keyframes tutorialMenuFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.tutorial-profile-menu .dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: #334155;
    transition: background 0.15s ease;
    font-family: inherit;
}

.tutorial-profile-menu .dropdown-menu-item:hover {
    background: #f1f5f9;
}

.tutorial-profile-menu .dropdown-menu-item i {
    width: 18px;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.tutorial-profile-menu .dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 12px;
}

.tutorial-profile-menu .logout-item {
    color: #dc2626;
}

.tutorial-profile-menu .logout-item i {
    color: #dc2626;
}

.tutorial-profile-menu.tutorial-highlight {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.7), 0 0 25px rgba(59, 130, 246, 0.9), 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    animation: tutorialPulse 1.2s infinite, tutorialMenuFadeIn 0.2s ease;
}

/* ===== УВЕДОМЛЕНИЕ ===== */
.tutorial-notification {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 13px;
    z-index: 10060;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    max-width: 90%;
    text-align: center;
    animation: tutorialNotifFadeIn 0.3s ease;
}

@keyframes tutorialNotifFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== Кнопка закрытия модального окна туториала ===== */
.tutorial-welcome-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.tutorial-welcome-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #1e293b;
    transform: scale(1.1);
}

.tutorial-welcome-close:active {
    transform: scale(0.95);
}

/* ===== Дедушка-гость (вместо кнопки "?") ===== */
.tutorial-guest-helper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.tutorial-guest-helper-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    background: #fff;
}

.tutorial-guest-helper-avatar:hover {
    transform: scale(1.1);
}

.tutorial-guest-helper-bubble {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    margin-bottom: 10px;
    animation: slideInUp 0.3s ease;
}

.tutorial-guest-helper-bubble-text {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 12px;
}

.tutorial-guest-helper-bubble-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== Промпт регистрации после обучения ===== */
.tutorial-guest-register-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10060;
    animation: fadeIn 0.3s ease;
}

.tutorial-guest-register-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 24px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: slideInUp 0.3s ease;
}

.tutorial-guest-register-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tutorial-guest-register-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.tutorial-guest-register-subtitle {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
}

.tutorial-guest-register-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стили для кнопки-дедушки (гость) */
.tutorial-help-btn.guest-mode {
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Стили для сноски */
.tutorial-guest-helper-bubble {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    z-index: 10055;
    animation: slideInUp 0.3s ease;
    margin-bottom: 10px;
}

.tutorial-guest-helper-bubble-text {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 12px;
}

.tutorial-guest-helper-bubble-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== Контейнер для картинки дедушки (гость) ===== */
.tutorial-guest-avatar-container {
    width: 60px;      /* ← здесь задаёшь размер */
    height: 60px;     /* ← здесь задаёшь размер */
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.tutorial-guest-avatar-container:hover {
    transform: scale(1.1);
}

/* ===== Сама картинка ===== */
.tutorial-guest-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* или 'contain', если нужно сохранить пропорции */
    display: block;
}

/* ===== Сама кнопка (обёртка) ===== */
.tutorial-help-btn.guest-mode {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
    overflow: visible;
}

/* ===== ПЛАВНОЕ ПОЯВЛЕНИЕ ОКНА ОБУЧЕНИЯ ===== */
.tutorial-welcome-modal {
    /* Базовые стили (у тебя уже есть, не трогай их) */
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.tutorial-welcome-modal.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}