/* --- Root Variables --- */
:root {
    --bg: #0f172a;
    --text: #f8fafc;
    --accent: #38bdf8;
    --dim: #64748b;
    --border-subtle: rgba(56, 189, 248, 0.3);
    --bg-accent-light: rgba(56, 189, 248, 0.1);
}

/* --- Global Reset & Base --- */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* --- Layout Components --- */
._0x_container {
    width: 100%;
    max-width: 700px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

._0x_title {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 40px;
}

/* --- Language Switching Logic --- */
._0x_switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

._0x_tag {
    min-width: 44px;    /* Было авто, ставим фиксированный минимум */
    min-height: 44px;   /* Чтобы плитка была квадратной или комфортной */
    display: flex;      /* Включаем flex, чтобы иероглиф встал точно по центру */
    align-items: center;
    justify-content: center;
    
    padding: 8px 12px;
    background: #1e293b;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    cursor: pointer;
    color: var(--dim);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

._0x_tag.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg-accent-light);
}

/* --- Content Modules --- */
._0x_content_area {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

._0x_desc {
    display: none;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.4;
    padding: 0 20px;
}

._0x_desc.active { display: block; }

._0x_invite {
    display: none;
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

._0x_invite.active { display: block; }

/* --- Footer --- */
._0x_footer {
    margin-top: 50px;
    font-size: 0.75rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Responsiveness --- */
@media (max-width: 600px) {
    ._0x_title { font-size: 2.2rem !important; margin-bottom: 30px; }
    ._0x_desc { font-size: 0.9rem; }
}