/* --- ГЛОБАЛЬНЫЕ СТИЛИ --- */
body { 
    font-family: Arial, sans-serif; 
    background-color: #f5f5f5; /* Базовый фон страницы */
    margin: 0; 
}

/* --- СТИЛИ ДЛЯ АВТОРИЗОВАННОЙ ЗОНЫ --- */
body.logged-in-body {
    padding-top: 70px; /* Отступ для смещения контента вниз */
    position: relative; 
    background-color: #f5f5f5; /* ТЕМНЫЙ ФОН для основной рабочей области */
}
/* Переносим padding с body на внутренние элементы, чтобы фон был на всю страницу */
.progress-container, header, .controls, .grid, .site-footer {
    padding-left: 10px;
    padding-right: 10px;
}


/* --- СТИЛИ МЕНЮ ПОЛЬЗОВАТЕЛЯ --- */
.user-menu-container {
    position: absolute; 
    top: 15px;
    right: 15px;
    z-index: 1050;
}
.user-menu-button {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 4px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin: 0;
}
.user-menu-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}
.user-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #000000;
    border-radius: 2px;
    transition: all 0.3s;
}
.user-menu-button.active { transform: rotate(180deg); }
.user-menu-button.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.user-menu-button.active span:nth-child(2) { opacity: 0; }
.user-menu-button.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #1a2352;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    width: 240px;
    overflow: hidden;
    padding: 10px;
}
.user-menu-dropdown.show { display: block; }

.user-menu-dropdown .user-info {
    padding: 10px 15px;
    color: #ccc;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    text-align: center;
    word-wrap: break-word;
}
.user-menu-dropdown .user-info.premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    color: #fff;
}
.user-info .crown-icon {
    font-size: 18px;
    line-height: 1;
}
.get-premium-button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #f39c12, #f1c40f);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0;
}
.get-premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}
.user-menu-dropdown .logout-link {
    display: block;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    transition: background-color 0.2s;
    text-align: center;
}
.user-menu-dropdown .logout-link:hover {
    background-color: #764ba2;
}

/* --- ОСТАЛЬНЫЕ СТИЛИ ВАШЕГО САЙТА --- */

header { margin-bottom: 20px; }
.controls, .grid { margin-bottom: 20px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; justify-items: center; }
.card { width: 140px; height: 200px; perspective: 1000px; cursor: pointer; position: relative; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s; }
.card.flipped .card-inner { transform: rotateY(180deg); }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.card-front img, .card-back img { width: 100%; height: 100%; object-fit: cover; }
.card-back { transform: rotateY(180deg); position: relative; }
.zoom-icon { position: absolute; top: 8px; right: 8px; background: white; border-radius: 50%; padding: 5px; cursor: pointer; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; z-index: 1000; overflow-y: auto; padding: 10px; box-sizing: border-box; }
.modal { background: white; border-radius: 20px; width: 95%; max-width: 600px; max-height: 95vh; overflow-y: auto; position: relative; display: flex; flex-direction: column; color: #333; }
.modal-header { flex: 0 0 auto; text-align: center; margin-top: 20px; padding: 0 15px; box-sizing: border-box; }
.modal-image-container { position: relative; width: 100%; max-width: 400px; margin: 0 auto; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.modal-image-container img { width: 100%; height: 100%; object-fit: contain; }
.close-on-image { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; background-color: rgba(0, 0, 0, 0.6); color: white; border: 2px solid white; border-radius: 50%; font-size: 24px; line-height: 28px; text-align: center; cursor: pointer; z-index: 10; font-weight: bold; }
.modal-body { flex: 1 1 auto; padding: 20px; text-align: left; }
textarea { width: 100%; margin-top: 5px; height: 80px; padding: 10px; border: 1px solid #ccc; border-radius: 5px; resize: vertical; box-sizing: border-box; font-size: 16px; }
button { margin-top: 10px; padding: 10px 20px; font-size: 16px; cursor: pointer; border-radius: 5px; border: 1px solid #ccc; background-color: #f8f8f8; }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 15px; }
.modal .modal-actions button { flex: 1; border: none; }
.modal .btn-save { background-color: #28a745; color: white; }
.modal .btn-end { background-color: #f39c12; color: white; }
.btn-primary { padding: 12px 25px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: all 0.3s ease; font-weight: 500; text-align: center; width: 100%; box-sizing: border-box; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.close-button { position: absolute; top: 10px; right: 20px; font-size: 30px; font-weight: bold; color: #000; cursor: pointer; z-index: 1001; }
.accordion { background: #eee; cursor: pointer; padding: 15px; width: 100%; border: none; text-align: left; outline: none; font-size: 16px; transition: 0.4s; margin-bottom: 5px; border-radius: 5px; position: relative; }
.accordion::after { content: '+'; font-size: 20px; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
.accordion.active::after { content: '−'; }
.panel { background-color: white; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; border-radius: 5px; margin-bottom: 10px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.panel-content { padding: 20px; }
.notes-buttons { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.testimonial-box, .science-box, .progress-guide { padding: 20px; margin-bottom: 25px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.testimonial-box { display: flex; align-items: flex-start; gap: 20px; background-color: #fdfdfd; border: 1px solid #e0e0e0; border-left: 5px solid #764ba2; }
.science-box { background-color: #f9f9f9; border: 1px solid #e7e7e7; border-left: 5px solid #3498db; }
.progress-guide { background-color: #fff9e6; border: 1px solid #ffecb3; border-left: 5px solid #f39c12; }
.testimonial-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 5px;}
.testimonial-content { flex: 1; }
.testimonial-box h4, .science-box h4, .progress-guide h4 { margin-top: 0; color: #333; }
.testimonial-box p, .science-box p, .progress-guide p { line-height: 1.6; color: #555; margin-top: 0; }
.testimonial-author { text-align: right; font-style: italic; font-size: 0.95em; color: #444; }
.guide-step-circle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background-color: #f39c12; color: white; border-radius: 50%; font-weight: bold; margin-right: 10px; font-size: 14px; }
.guide-extra-step { margin-top: 15px; padding-top: 15px; border-top: 1px dashed #f39c12; }
.guide-special-icon { display: inline-flex; font-size: 18px; margin-right: 10px; vertical-align: middle; }
.question-box { background-color: #f8f9fa; border: 1px solid #e9ecef; border-left: 5px solid #667eea; padding: 15px; margin-bottom: 15px; border-radius: 8px; }
.question-box p { margin: 0 0 10px 0; font-weight: bold; color: #343a40; }
.prompt-buttons-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.prompt-btn { font-size: 12px; padding: 4px 10px; margin-top: 0; background-color: #e9ecef; border-color: #dee2e6; color: #495057; }
.prompt-btn:hover { background-color: #ced4da; }
.notes-block { background-color: #fdfdff; border: 1px solid #e6e6fa; border-left: 5px solid #8a2be2; padding: 15px; margin-top: 20px; border-radius: 8px; }
.notes-block h4 { margin-top: 0; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.notes-block p { margin: 15px 0; }
#blockFilter { width: 100%; max-width: 420px; padding: 8px; font-size: 16px; border-radius: 5px; border: 1px solid #ccc; }
#toggleViewedBtn.active { border-color: #007bff; background-color: #eaf3ff; color: #007bff; }
.add-question-btn { background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 4px; padding: 5px 10px; cursor: pointer; font-size: 13px; margin-top: 10px; margin-bottom: 5px; transition: background-color 0.2s; }
.add-question-btn:hover:not(:disabled) { background-color: #e0e0e0; }
.add-question-btn:disabled { background-color: #e9e9e9; color: #888; cursor: not-allowed; }
.final-reflection-display, .final-congrats { margin-top: 20px; padding: 20px; border-radius: 8px; }
.final-reflection-display { background-color: #eaf3ff; border-left: 5px solid #007bff; }
.final-congrats { background-color: #e8f5e9; border-left: 5px solid #4caf50; text-align: center; }
.game-promo-box { display: flex; gap: 20px; align-items: center; margin-top: 20px; padding: 20px; background: linear-gradient(135deg, #e0f7fa 0%, #f1f8e9 100%); border: 1px solid #b2dfdb; border-radius: 8px; }
.game-promo-box img { max-width: 200px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.game-promo-content h4 { margin-top: 0; }
.game-promo-content p { margin-bottom: 20px; }
.game-promo-content a { display: inline-block; text-decoration: none; background-color: #2e7d32; color: white; padding: 12px 25px; border-radius: 5px; font-weight: bold; transition: background-color 0.3s; }
.game-promo-content a:hover { background-color: #1b5e20; }
.progress-container { display: flex; position: relative; width: 90%; max-width: 800px; margin: 20px auto 40px; justify-content: space-between; align-items: flex-start; }
.progress-line { position: absolute; top: 17px; left: 0; right: 0; height: 4px; background: #e0e0e0; z-index: 1; }
.progress-line-active { position: absolute; top: 0; left: 0; height: 100%; background: #007bff; width: 0; transition: width 0.5s ease; }
.progress-step { display: flex; flex-direction: column; align-items: center; z-index: 2; position: relative; flex-basis: 0; flex-grow: 1; }
.step-circle { width: 35px; height: 35px; border-radius: 50%; border: 3px solid #e0e0e0; background: #fff; transition: all 0.4s ease; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; color: #aaa; cursor: pointer; }
.step-label { margin-top: 10px; font-size: 14px; color: #aaa; text-align: center; font-weight: bold; transition: color 0.4s ease; }
.progress-step.active .step-circle { border-color: #007bff; color: #007bff; animation: pulse 1.5s infinite; }
.progress-step.active .step-label { color: #007bff; }
.progress-step.completed .step-circle { border-color: #4caf50; background-color: #4caf50; color: white; }
.progress-step.completed .step-label { color: #333; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); } }
.progress-tooltip { background-color: #0c1445; color: #f0f0f0; border-radius: 12px; padding: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.3); text-align: center; box-sizing: border-box; }
.progress-tooltip { position: absolute; z-index: 100; width: 90%; max-width: 320px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; }
.progress-tooltip.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.progress-tooltip::after { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border-width: 8px; border-style: solid; border-color: transparent transparent #0c1445 transparent; }
.tooltip-close-btn { position: absolute; top: 10px; right: 15px; font-size: 24px; font-weight: bold; color: #fff; cursor: pointer; line-height: 1; opacity: 0.7; transition: opacity 0.2s; }
.tooltip-close-btn:hover { opacity: 1; }
.tooltip-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; }
.tooltip-icon { width: 40px; height: 40px; }
.tooltip-title { font-size: 1.1em; font-weight: bold; color: #fff; margin: 0; }
.tooltip-body p { font-size: 0.95em; line-height: 1.6; margin: 0 0 20px 0; color: #d1d1d1; }
.tooltip-footer { display: flex; flex-direction: column; gap: 10px; }
.tooltip-button { width: 100%; padding: 12px; font-size: 1em; cursor: pointer; border: 1px solid #764ba2; border-radius: 8px; background-color: transparent; color: #f0f0f0; font-weight: bold; transition: background-color 0.2s, color 0.2s; box-sizing: border-box; margin: 0; }
.tooltip-button:hover { background-color: #764ba2; color: #fff; }
.welcome-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 3000; padding: 15px; box-sizing: border-box; }
.welcome-modal-content { background-color: #0c1445; background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="0.7" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.12)"/><circle cx="90" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="80" r="0.6" fill="rgba(255,255,255,0.09)"/></svg>'); color: #f0f0f0; padding: 30px 40px; border-radius: 20px; width: 100%; max-width: 550px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.4); position: relative; border: 1px solid rgba(255, 255, 255, 0.1); }
.welcome-close-button { position: absolute; top: 15px; right: 20px; font-size: 30px; color: #fff; cursor: pointer; line-height: 1; opacity: 0.7; transition: opacity 0.2s; }
.welcome-close-button:hover { opacity: 1; }
.welcome-header { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 15px; }
.welcome-header img { width: 40px; height: 40px; }
.welcome-header h2 { font-size: 1.8em; font-weight: 300; margin: 0; }
.welcome-body p.intro { font-size: 1.1em; line-height: 1.6; margin-bottom: 25px; opacity: 0.9; }
.steps-container { text-align: left; margin-bottom: 30px; }
.step-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.step-icon { flex-shrink: 0; width: 32px; height: 32px; margin-top: 3px; }
.step-text h4 { margin: 0 0 5px 0; font-size: 1.1em; font-weight: 500; color: #fff; }
.step-text p { margin: 0; font-size: 0.95em; opacity: 0.8; line-height: 1.5; }
.step-text ul { padding-left: 20px; margin: 8px 0 0 0; list-style: '— '; }
.welcome-footer button { padding: 15px 30px; font-size: 1.1em; cursor: pointer; border: none; border-radius: 10px; background: linear-gradient(45deg, #667eea 0%, #764ba2 100%); color: white; font-weight: bold; transition: all 0.3s ease; }
.welcome-footer button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3); }
.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); position: relative; overflow: hidden; }
.login-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="90" cy="60" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="80" r="1.5" fill="rgba(255,255,255,0.09)"/></svg>'); animation: float 20s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
.auth-wrapper { display: flex; align-items: center; gap: 40px; z-index: 1; position: relative; }
.card-preview { width: 300px; height: 420px; flex-shrink: 0; background: white; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); overflow: hidden; transform: rotate(-5deg); transition: transform 0.3s ease; }
.card-preview:hover { transform: rotate(0deg) scale(1.02); }
.card-preview img { width: 100%; height: 100%; object-fit: cover; }
.login-form { background: rgba(255,255,255,0.95); padding: 40px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); width: 100%; max-width: 400px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); text-align: center; }
.login-form h2 { text-align: center; margin-bottom: 30px; color: #333; font-size: 28px; font-weight: 300; }
.login-form .password-wrapper { position: relative; }
.login-form .password-wrapper input { padding-right: 45px; }
.login-form .toggle-password { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); cursor: pointer; user-select: none; color: #888; }
.login-form .toggle-password svg { width: 22px; height: 22px; }
.login-form input { width: 100%; padding: 15px; margin-bottom: 20px; border: 2px solid rgba(255,255,255,0.3); border-radius: 10px; font-size: 16px; box-sizing: border-box; background: rgba(255,255,255,0.9); transition: all 0.3s ease; }
.login-form input:focus { outline: none; border-color: #667eea; background: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102,126,234,0.3); }
.login-form button { width: 100%; padding: 15px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 10px; font-size: 16px; cursor: pointer; transition: all 0.3s ease; font-weight: 500; }
.login-form button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(102,126,234,0.4); }
.login-form .form-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.login-form .buy-button { background: #1a9e1e; }
.login-form .buy-button:hover { background: #1b5e20; box-shadow: 0 10px 25px rgba(27, 94, 32, 0.4); }
.login-form .gift-button { width: 100%; background: #f39c12; border-color: #f39c12; color: white; padding: 12px 20px; margin-bottom: 25px; margin-top: 0; }
.login-form .gift-button:hover { background: #e67e22; border-color: #e67e22; }
.purchase-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 2000; backdrop-filter: blur(5px); }
.purchase-modal-content { background: white; padding: 30px 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); width: 90%; max-width: 450px; position: relative; text-align: center; }
.purchase-modal-content h2 { margin-top: 0; color: #333; font-weight: 400; }
.purchase-modal-content p { color: #555; margin-bottom: 20px; }
.purchase-close-button { position: absolute; top: 15px; right: 20px; font-size: 30px; color: #888; cursor: pointer; line-height: 1; }
#purchaseForm input { padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; box-sizing: border-box; }
#purchaseForm input[readonly] { background-color: #f0f0f0; cursor: not-allowed; }
#purchaseForm button { width: 100%; padding: 15px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 10px; font-size: 16px; cursor: pointer; transition: all 0.3s ease; font-weight: 500; margin-top: 10px; }
#purchaseForm button:disabled,
#offerAcceptBtn:disabled { background: #ccc !important; cursor: not-allowed !important; transform: none !important; box-shadow: none !important; }
.oferta-container { display: flex; justify-content: center; align-items: flex-start; text-align: left; margin-bottom: 20px; gap: 8px; }
.oferta-container input[type="checkbox"] { flex-shrink: 0; margin-top: 3px; }
.oferta-container label { font-size: 14px; color: #555; line-height: 1.4; }
.oferta-container a { color: #667eea; text-decoration: none; }
.oferta-container a:hover { text-decoration: underline; }
#paymentAmountText { font-size: 22px; font-weight: bold; color: #333; }
.qr-code-img { max-width: 250px; width: 100%; margin: 15px auto; display: block; }
.payment-support { font-size: 14px; color: #666; }
.payment-support a { color: #007bff; }
.login-error-message { background-color: rgba(255, 221, 221, 0.9); border: 1px solid rgba(211, 82, 82, 0.5); color: #a94442; padding: 12px; border-radius: 8px; margin-bottom: 20px; text-align: center; font-size: 14px; line-height: 1.4; }
.login-error-message a { color: #a94442; font-weight: bold; text-decoration: underline; }
.login-footer { position: absolute; bottom: 0; left: 0; width: 100%; background-color: transparent; color: #ecf0f1; text-align: center; padding: 20px; font-size: 14px; box-sizing: border-box; z-index: 5; }
.login-footer p { margin: 0 0 15px 0; }
.login-footer .footer-links { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }
.login-footer .footer-links a { color: #ffffff; text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; transition: opacity 0.2s; }
.login-footer .footer-links a:hover { opacity: 0.85; text-decoration: none; }
.login-footer .footer-links a.text-link:hover { text-decoration: underline; }
.login-footer .footer-links img { width: 28px; height: 28px; }
.login-footer .footer-links .telegram-icon,
.login-footer .footer-links .game-icon { margin-right: 8px; }
.login-footer .footer-links .separator { color: #d1d1d1; opacity: 0.8; }
.card.locked { cursor: pointer; position: relative; }
.card.locked .card-inner { filter: grayscale(80%) opacity(0.6); pointer-events: none; }
.card .crown-icon { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; z-index: 10; pointer-events: none; }
.filter-wrapper { position: relative; display: inline-block; }
.locked { cursor: pointer; position: relative; }
.controls .locked::before { content: ''; display: block; position: absolute; width: 20px; height: 20px; background-image: url('svg/crown.svg'); background-size: contain; background-repeat: no-repeat; z-index: 5; pointer-events: none; top: -12px; left: 50%; transform: translateX(-50%); }
#downloadBtn.locked { padding-left: 35px; }
#downloadBtn.locked::before { content: ''; display: block; position: absolute; width: 20px; height: 20px; background-image: url('svg/crown.svg'); background-size: contain; background-repeat: no-repeat; z-index: 5; pointer-events: none; left: 10px; top: 50%; transform: translateY(-50%); }
.card.locked::before { content: none !important; }
.filter-wrapper.locked > select { pointer-events: none; }
.game-start-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); justify-content: center; align-items: center; z-index: 2000; padding: 10px; box-sizing: border-box; }
.game-start-modal-content { background-color: #0c1445; color: #f0f0f0; padding: 25px 30px; border-radius: 20px; width: 100%; max-width: 650px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); position: relative; max-height: 95vh; overflow-y: auto; }
.game-start-close-button { position: absolute; top: 10px; right: 15px; font-size: 30px; color: #fff; cursor: pointer; line-height: 1; opacity: 0.7; transition: opacity 0.2s; }
.game-start-close-button:hover { opacity: 1; }
.game-start-modal-content h2 { font-size: 1.8em; font-weight: 300; margin-top: 0; margin-bottom: 10px; }
.game-start-modal-content p { font-size: 1em; line-height: 1.5; margin-bottom: 20px; opacity: 0.9; max-width: 500px; margin-left: auto; margin-right: auto; }
.artifacts-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 20px; margin-bottom: 20px; }
.artifact-item { display: flex; flex-direction: column; align-items: center; width: 80px; }
.artifact-item img { width: 35px; height: 35px; margin-bottom: 5px; }
.artifact-item span { font-size: 0.85em; }
.game-start-modal-content h3 { font-size: 1.1em; font-weight: 500; margin-top: 0; margin-bottom: 15px; }
.controls-info-section { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 20px; padding: 15px; background-color: rgba(255, 255, 255, 0.05); border-radius: 15px; }
.controls-info-section img { width: 50px; height: auto; flex-shrink: 0; }
.controls-info-text { text-align: left; font-size: 0.9em; line-height: 1.5; opacity: 0.9; }
.controls-info-text p { margin: 0; }
#mode-selection-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.mode-button { padding: 12px 15px; font-size: 0.9em; line-height: 1.3; cursor: pointer; border: 2px solid #f39c12; border-radius: 10px; background-color: transparent; color: #f39c12; font-weight: bold; transition: background-color 0.3s, color 0.3s; min-width: 100px; }
.mode-button:hover { background-color: #f39c12; color: white; }
.start-journey-button { padding: 15px 30px; font-size: 1.1em; cursor: pointer; border: none; border-radius: 10px; background: linear-gradient(45deg, #f39c12, #f1c40f); color: white; font-weight: bold; }
@media (max-width: 768px) { .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .login-form { margin: 20px; padding: 25px; } .auth-wrapper { flex-direction: column; gap: 20px; padding: 20px; padding-bottom: 180px; } .card-preview { width: 250px; height: 350px; transform: rotate(0deg); } .testimonial-box { flex-direction: column; text-align: center; } .testimonial-photo { margin: 0 auto 15px; } .step-label { font-size: 11px; } .step-circle { width: 30px; height: 30px; } .controls { flex-direction: column; align-items: stretch; } #blockFilter { max-width: none; } .game-promo-box { flex-direction: column; text-align: center; } .purchase-modal-content { padding: 25px; } .login-form h2 { font-size: 20px; margin-bottom: 20px; line-height: 1.3; } .login-form input { padding: 12px; margin-bottom: 15px; } .login-footer { font-size: 12px; padding: 10px; } .login-footer .footer-links { gap: 10px; } .login-footer .footer-links img { width: 24px; height: 24px; } }
@media (max-width: 480px) { .welcome-modal-content { padding: 25px 20px; } .welcome-header h2 { font-size: 1.5em; } .welcome-body p.intro { font-size: 1em; } .step-item { gap: 10px; } .step-text h4 { font-size: 1em; } .step-text p { font-size: 0.9em; } }
@media (max-width: 380px) { .game-start-modal-content { padding: 20px 15px; } .game-start-modal-content h2 { font-size: 1.5em; } .game-start-modal-content p { font-size: 0.9em; } .artifacts-grid { gap: 8px 10px; } .artifact-item { width: 65px; } .artifact-item img { width: 28px; height: 28px; } .artifact-item span { font-size: 0.7em; } .controls-info-section img { width: 40px; } .controls-info-text { font-size: 0.8em; } }
.site-footer { text-align: center; padding: 20px; margin-top: 40px; background-color: #e9ecef; color: #6c757d; font-size: 14px; }
.site-footer p { margin: 5px 0; }
.site-footer .footer-links { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; margin-top: 15px; }
.site-footer .footer-links a { color: #0056b3; text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; transition: opacity 0.2s; }
.site-footer .footer-links a:hover { opacity: 0.7; text-decoration: none; }
.site-footer .footer-links a.text-link:hover { text-decoration: underline; }
.site-footer .footer-links img { width: 28px; height: 28px; }
.site-footer .footer-links .telegram-icon, .site-footer .footer-links .game-icon { margin-right: 8px; }
.site-footer .separator { color: #888; }