/* base.css — общие стили всех страниц */
/* ===== ГЛОБАЛЬНЫЕ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(145deg, #fce4ec 0%, #f8f0f5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.container {
    max-width: 560px;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    padding: 32px 24px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(190, 130, 160, 0.15);
    text-align: center;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #3e2c3b;
    margin-bottom: 0.3em;
}

.subtitle {
    font-size: 1.25rem;
    color: #5e4a5a;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-weight: 500;
    color: #3e2c3b;
    margin-bottom: 6px;
}

input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8dce4;
    border-radius: 16px;
    font-size: 1rem;
    background: white;
    transition: 0.2s;
    min-height: 54px;
}

input:focus {
    outline: none;
    border-color: #c77d9a;
    box-shadow: 0 0 0 4px rgba(199, 125, 154, 0.15);
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c77d9a;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(199, 125, 154, 0.3);
    min-height: 54px;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(199, 125, 154, 0.4);
    background: #b86686;
}

.btn-secondary {
    background: #d4b8c8;
    box-shadow: 0 8px 20px rgba(180, 140, 160, 0.2);
}
.btn-secondary:hover {
    background: #c4a4b8;
}

.divider {
    color: #8f7a8a;
    font-size: 0.9rem;
}

.join-row {
    display: flex;
    gap: 10px;
}
.join-row input {
    flex: 1;
    min-height: 54px;
}
.join-row .btn {
    flex: 0 0 auto;
}

.message {
    margin-top: 16px;
    font-weight: 500;
    min-height: 1.5em;
}

.hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #8f7a8a;
}

/* ===== АНИМАЦИЯ ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .container {
        padding: 24px 16px;
        border-radius: 28px;
    }
    h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; }

    .btn {
        font-size: 1.1rem;
        padding: 16px 24px;
        min-height: 54px;
    }
    input[type="text"] {
        font-size: 1rem;
        padding: 16px 18px;
        min-height: 54px;
    }
    .join-row {
        flex-direction: column;
        gap: 10px;
    }
    .join-row input { width: 100%; }
    .join-row .btn { width: 100%; }
}

/* ===== СКРЫТЫЕ БЛОКИ (для отладки) ===== */
#statusBlock {
    display: none;
}

.about-link {
    display: inline-block;
    color: #8f7a8a;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    transition: 0.2s;
    background: rgba(255,255,255,0.3);
}
.about-link:hover {
    background: rgba(255,255,255,0.6);
    color: #c77d9a;
}

/* ===== АККАУНТ-БАР (шапка лобби/профиля) ===== */
.account-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 18px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(199,125,154,0.2);
    border-radius: 60px;
    box-shadow: 0 4px 20px rgba(199,125,154,0.08);
    flex-wrap: wrap;
}
.account-bar .acc-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #3e2c3b;
    text-decoration: none;
    font-size: 1rem;
}
.account-bar .acc-user .acc-nick {
    color: #c77d9a;
}
.account-bar .acc-user .acc-login {
    color: #8f7a8a;
    font-weight: 500;
    font-size: 0.85rem;
}
.account-bar .acc-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.account-bar .acc-link {
    background: none;
    border: none;
    color: #c77d9a;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 30px;
    transition: 0.2s;
}
.account-bar .acc-link:hover {
    background: rgba(199,125,154,0.12);
}
.account-bar .acc-link.logout {
    color: #b14a5a;
}
