/* Общие стили */
html, body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
    background-color: #e6f7ff;
    display: flex;
    flex-direction: column;
}

.top-panel {
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 30px;
    margin-right: 10px;
}

.site-title {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    color: #000033;
}

.menu-icon {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #000033;
    border-radius: 2px;
}

.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.content-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    text-align: center;
}

.content-box p {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #000033;
}

/* --- СТИЛИ ДЛЯ ИГРЫ --- */
#gameCanvas {
    display: none; /* Скрываем игру по умолчанию */
    background-color: #f7f7f7;
    border: 1px solid #dcdcdc;
    margin-top: 20px;
    max-width: 100%;
}
/* ----------------------- */

@media (max-width: 600px) {
    .content-box p {
        font-size: 24px;
    }
}

.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #e6f7ff; z-index: 100; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.menu-item {
    background-color: #ffffff; width: 80%; max-width: 400px;
    padding: 20px; margin-bottom: 20px; border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); text-align: center;
    font-size: 24px; font-weight: bold; color: #000033;
}
.menu-item:last-child {
    margin-bottom: 0;
}