/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    transition: background-color 0.5s ease, color 0.5s ease;
    max-width: 1200px;
    width: 90%;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.main-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    padding: 20px;
}

.left-panel, .right-panel, .stats {
    flex: 1;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.center-section {
    flex: 2;
    text-align: center;
    margin-top: 0;
}

.heart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.heart-container img {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.heart-container img:active {
    transform: scale(1.2);
}

.center-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.center-section p {
    margin-top: 10px;
    font-size: 1.1rem;
}

.center-section button {
    margin-top: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4a90e2, #5ac7fa);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.center-section button:hover {
    background: linear-gradient(135deg, #5ac7fa, #4a90e2);
    transform: scale(1.05);
}

.right-panel button {
    margin-top: 10px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4a90e2, #5ac7fa);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.right-panel button:hover {
    background: linear-gradient(135deg, #5ac7fa, #4a90e2);
    transform: scale(1.05);
}

.right-panel p {
    margin-top: 10px;
    text-align: center;
}

.upgrades-info ul {
    list-style-type: none;
    padding-left: 0;
}

.upgrades-info li {
    margin: 6px 0;
    color: #ccc;
}

.info-btn {
    margin-top: 15px;
    width: 100%;
    padding: 10px 15px;
    background-color: #29b6f6;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.info-btn:hover {
    background-color: #0288d1;
}

.leaderboard {
    margin-top: 20px;
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.leaderboard h3 {
    color: #5ac7fa;
}

.leaderboard ul {
    list-style-type: none;
    padding-left: 0;
}

.leaderboard li {
    margin: 6px 0;
    color: #ccc;
    font-size: 14px;
}

.stats {
    flex: 1;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.stats h3 {
    margin-bottom: 10px;
    color: #5ac7fa;
}

.stats ul {
    list-style-type: none;
    padding-left: 0;
}

.stats li {
    margin: 6px 0;
    font-size: 14px;
}

.theme-switcher {
    margin-top: 20px;
    text-align: center;
}

.theme-switcher label {
    margin-right: 10px;
    font-weight: bold;
}

/* === Темы оформления === */

/* Темная тема (по умолчанию) */
.container.dark-theme {
    background-color: #1e1e1e;
    color: white;
}

.container.dark-theme .center-section button,
.container.dark-theme .right-panel button {
    background: linear-gradient(135deg, #4a90e2, #5ac7fa);
    color: white;
}

/* Светлая тема */
.container.light-theme {
    background-color: #ffffff;
    color: #000;
}

.container.light-theme .center-section button,
.container.light-theme .right-panel button {
    background: linear-gradient(135deg, #ff6b6b, #f8a5c2);
    color: black;
}

/* Фруктовая тема */
.container.fruit-theme {
    background-color: #fff5f5;
    color: #000;
}

.container.fruit-theme .center-section button,
.container.fruit-theme .right-panel button {
    background: linear-gradient(135deg, #ff6b6b, #f8a5c2);
    color: white;
}

/* Морская тема */
.container.ocean-theme {
    background-color: #e6f7ff;
    color: #000;
}

.container.ocean-theme .center-section button,
.container.ocean-theme .right-panel button {
    background: linear-gradient(135deg, #00c6fb, #005bea);
    color: white;
}

/* Хакерская тема */
.container.hacker-theme {
    background-color: #000;
    color: #00ff00;
}

.container.hacker-theme .center-section button,
.container.hacker-theme .right-panel button {
    background: linear-gradient(135deg, #00ff00, #00cfff);
    color: #000;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: white;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .left-panel, .right-panel, .stats {
        width: 100%;
        margin-bottom: 20px;
    }
}
.achievements {
    flex: 1;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.achievements h3 {
    margin-bottom: 10px;
    color: #5ac7fa;
}

.achievements ul {
    list-style-type: none;
    padding-left: 0;
}

.achievements li {
    margin: 6px 0;
    font-size: 14px;
    color: #ccc;
}

.achievements li.locked {
    color: #999;
    text-decoration: line-through;
}
.mini-game {
    flex: 1;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mini-game h3 {
    margin-bottom: 10px;
    color: #5ac7fa;
}

#bossModal .modal-content {
    max-width: 600px;
    text-align: center;
}
