/* ===== ГЛАВНАЯ СТРАНИЦА (index.html) ===== */
body {
    margin: 0;
    background: radial-gradient(circle at 50% 30%, #1a1a1a 0%, #000 70%);
    color: #fff;
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#dust-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.coin-counter {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    font-size: 48px;
    font-weight: bold;
}

.dollar {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.game-area {
    position: relative;
    z-index: 2;
    height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clicker-image {
    width: 250px;
    height: 250px;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.1s ease;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.3));
}

.clicker-image.clicked {
    transform: scale(0.9);
}

/* ===== НИЖНЯЯ НАВИГАЦИЯ ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    display: flex;
    justify-content: space-around;
    background-color: #0d0d0d;
    border-top: 1px solid #FFD700;
    padding: 10px 0 14px 0;
    box-sizing: border-box;
}

.nav-btn {
    background: none;
    border: none;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
    font-family: Arial, sans-serif;
}

.nav-btn svg {
    transition: filter 0.2s;
}

.nav-btn.active,
.nav-btn:hover {
    color: #FFD700;
}

.nav-btn.active svg {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7));
}

/* ===== КНОПКА-ВОПРОС (help) ===== */
.help-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.help-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 46px;
    right: 0;
    background-color: #111;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    transition: opacity 0.2s;
    font-weight: normal;
}

.help-btn:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* ===== СТРАНИЦА HELP (help.html) ===== */
.help-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.help-frame {
    background-color: #111;
    border: 1px solid #FFD700;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
    color: #eee;
    line-height: 1.6;
}

.help-frame h1 {
    color: #FFD700;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 16px;
    text-align: center;
}

.back-btn {
    margin-top: 0;
    background: none;
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

/* ===== СТРАНИЦА ВХОДА (login.html) — без пыли ===== */
.login-wrapper {
    min-height: 100vh;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.brand-title {
    color: #FFD700;
    font-size: 32px;
    margin: 0 0 6px 0;
    text-align: center;
}

.brand-subtitle {
    color: #ccc;
    font-size: 16px;
    margin: 0 0 30px 0;
    text-align: center;
}

.login-card {
    background-color: #111;
    border: 1px solid #FFD700;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.input-field {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #FFD700;
}

.input-field::placeholder {
    color: #777;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    flex: 1;
    padding: 13px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, opacity 0.15s;
}

.btn:hover {
    opacity: 0.85;
}

.btn:active {
    transform: scale(0.97);
}

.btn-gold {
    background-color: #FFD700;
    color: #000;
}

.btn-outline {
    background-color: transparent;
    color: #FFD700;
    border: 1px solid #FFD700;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #666;
    margin: 20px 0;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #333;
}

.divider span {
    padding: 0 10px;
}

.btn-google {
    width: 100%;
    background-color: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-text {
    color: #ff5555;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 14px;
}
/* ===== СТРАНИЦА МОНЕТ (earn.html) ===== */
.earn-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 100px 20px;
    box-sizing: border-box;
    text-align: center;
}

.earn-label {
    color: #ccc;
    font-size: 18px;
    margin: 0;
}

.earn-page .coin-counter {
    margin-top: 8px;
    margin-bottom: 0;
}

.earn-unit {
    color: #FFD700;
    font-size: 16px;
    margin: 0 0 32px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.earn-page .help-frame {
    text-align: left;
}
.social-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #FFD700;
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s;
}

.social-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: scale(1.08);
}
/* ===== СТРАНИЦА УЧЁБЫ (learn.html) ===== */
.learn-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 100px 20px;
    box-sizing: border-box;
    text-align: center;
}

.learn-title {
    color: #FFD700;
    font-size: 22px;
    max-width: 340px;
    margin: 0 0 32px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.lang-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 320px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #111;
    border: 1px solid #FFD700;
    color: #fff;
    font-size: 17px;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
}

.lang-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.lang-flag {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
}

.learn-page .back-btn {
    margin-top: 32px;
}
/* ===== ДОРОЖКА УРОВНЕЙ (learn-english.html и т.д.) ===== */
.path-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 20px 20px 60px 20px;
    box-sizing: border-box;
}

.path-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.path-header h1 {
    color: #FFD700;
    font-size: 26px;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.path-header .back-btn {
    position: absolute;
    left: 0;
    top: 0;
}

.path-track {
    position: relative;
    max-width: 340px;
    margin: 0 auto;
}

.path-line {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.level-node {
    position: absolute;
    z-index: 2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s;
}

.level-node.active {
    color: #FFD700;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.25), 0 0 25px rgba(255, 215, 0, 0.5);
}

.level-node.active:hover {
    transform: scale(1.06);
}

.level-node.locked {
    background-color: #d9d9d9;
    color: #999;
    cursor: not-allowed;
}
body.scroll-page {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}
.jump-wrapper {
    position: absolute;
    z-index: 3;
    transform: translateX(-50%);
}
.jump-label {
    background-color: #111;
    border: 2px solid var(--milestone-color);
    color: var(--milestone-color);
    font-size: 12px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
}

.jump-label:hover {
    background-color: var(--milestone-color);
    color: #111;
}
.level-node.milestone {
    background-color: #d9d9d9;
}
.level-node.milestone.locked {
    background-color: var(--milestone-color);
    color: #fff;
    opacity: 0.85;
}

.level-node.milestone.active {
    background-color: var(--milestone-color);
    color: #fff;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--milestone-color) 25%, transparent), 
                0 0 25px color-mix(in srgb, var(--milestone-color) 50%, transparent);
}
/* ===== СТРАНИЦА УРОКА (lesson1.html и т.д.) ===== */
.lesson-body {
    background-color: #000;
    color: #fff;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.lesson-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.lesson-close {
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
}

.lesson-close:hover {
    color: #fff;
}

.progress-bar-outer {
    flex: 1;
    height: 12px;
    background-color: #222;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background-color: #FFD700;
    width: 0%;
    transition: width 0.3s ease;
}

.hearts {
    font-size: 16px;
    white-space: nowrap;
}

.lesson-body-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.lesson-instruction {
    color: #FFD700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.lesson-sentence {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
}

.answer-area {
    min-height: 50px;
    border-bottom: 2px solid #333;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 30px;
}

.word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.word-tile {
    background-color: #111;
    border: 1px solid #FFD700;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.word-tile:hover:not(:disabled) {
    background-color: rgba(255, 215, 0, 0.1);
}

.word-tile:active:not(:disabled) {
    transform: scale(0.95);
}

.word-tile.used {
    opacity: 0.2;
    cursor: default;
}

.word-tile.selected {
    background-color: #FFD700;
    color: #000;
    border-color: #FFD700;
}

.lesson-footer {
    padding: 20px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.check-btn {
    background-color: #FFD700;
    color: #000;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.check-btn.disabled {
    background-color: #333;
    color: #777;
    cursor: not-allowed;
}

.feedback-correct {
    background-color: rgba(102, 187, 106, 0.15);
    justify-content: space-between;
}

.feedback-wrong {
    background-color: rgba(239, 83, 80, 0.15);
    justify-content: space-between;
}

.feedback-text {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.feedback-correct .feedback-text {
    color: #66BB6A;
}

.feedback-wrong .feedback-text {
    color: #EF5350;
}

.next-correct {
    background-color: #66BB6A;
    color: #fff;
}

.next-wrong {
    background-color: #EF5350;
    color: #fff;
}

.lesson-complete {
    text-align: center;
    margin: auto;
}

.lesson-complete h1 {
    color: #FFD700;
    font-size: 28px;
}
.hint-word {
    cursor: pointer;
    border-bottom: 2px dotted #FFD700;
    transition: color 0.15s;
}

.hint-word:hover {
    color: #FFD700;
}

.word-hint {
    position: fixed;
    z-index: 999;
    background-color: #FFD700;
    color: #000;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
}

.feedback-block {
    display: flex;
    flex-direction: column;
}

.feedback-correct-answer {
    color: #fff;
    font-size: 14px;
    margin: 4px 0 0 0;
}

.reward-text {
    font-size: 32px;
    font-weight: bold;
    color: #FFD700;
    margin-top: 16px;
}

.reward-text .dollar {
    color: #FFD700;
}
.sentence-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.sound-btn {
    background-color: #111;
    border: 1px solid #FFD700;
    color: #FFD700;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.15s;
}

.sound-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.sound-btn:active {
    transform: scale(0.92);
}

.lesson-sentence {
    margin: 0;
}
/* ===== СТРАНИЦА РЕЙТИНГА (leaderboard.html) ===== */
.leader-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 4;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.leader-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
}
.leader-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.leader-list {
    max-width: 400px;
    margin: 30px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leader-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px 18px;
}

.leader-row-me {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.leader-rank {
    color: #FFD700;
    font-weight: bold;
    width: 24px;
    text-align: center;
}

.leader-name {
    flex: 1;
    color: #fff;
}

.leader-coins {
    color: #FFD700;
    font-weight: bold;
}

.loading-text {
    text-align: center;
    color: #888;
}

/* ===== МОДАЛКА СОЗДАНИЯ ЮЗЕРНЕЙМА ===== */
.username-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.username-box {
    background-color: #111;
    border: 1px solid #FFD700;
    border-radius: 16px;
    padding: 32px;
    max-width: 340px;
    width: 100%;
    text-align: center;
}

.username-box h2 {
    color: #FFD700;
    margin: 0 0 8px 0;
}

.username-box p {
    color: #ccc;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.username-box input {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.username-box input:focus {
    outline: none;
    border-color: #FFD700;
}
.help-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.logout-btn {
    background: none;
    border: 1px solid #EF5350;
    color: #EF5350;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background-color: rgba(239, 83, 80, 0.1);
}
/* ===== МАГАЗИН (shop.html) ===== */
.shop-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 20px 20px 100px 20px;
    box-sizing: border-box;
}

.shop-title {
    color: #FFD700;
    font-size: 26px;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.product-card {
    background-color: #111;
    border: 1px solid #FFD700;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.product-card:hover {
    background-color: rgba(255, 215, 0, 0.05);
    transform: scale(1.03);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 10px;
}

.product-price {
    color: #FFD700;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

/* ===== СТРАНИЦА ТОВАРА (product.html) ===== */
.product-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.product-back {
    margin-bottom: 20px;
}

.product-detail {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.product-detail-image {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.product-detail-name {
    color: #fff;
    font-size: 22px;
    margin: 0 0 8px 0;
}

.product-detail-price {
    color: #FFD700;
    font-weight: bold;
    font-size: 20px;
    margin: 0 0 20px 0;
}

.product-detail-desc {
    text-align: left;
}
.shop-contact {
    max-width: 400px;
    margin: 40px auto 0 auto;
    text-align: center;
}

.contact-text {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 16px;
}

.whatsapp-btn { color: #25D366; border-color: #25D366; }
.whatsapp-btn:hover { background-color: rgba(37, 211, 102, 0.1); }

.telegram-btn { color: #29B6F6; border-color: #29B6F6; }
.telegram-btn:hover { background-color: rgba(41, 182, 246, 0.1); }

.viber-btn { color: #7B519D; border-color: #7B519D; }
.viber-btn:hover { background-color: rgba(123, 81, 157, 0.1); }

.soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.soon-overlay.show {
    opacity: 1;
}

.soon-text {
    color: #FFD700;
    font-size: 42px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    margin: 0;
}