/* ═══════════════════════════════════════
   Hero секция
   ═══════════════════════════════════════ */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: calc(100vh - var(--navbar-height));
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
}

.hero__content {
    text-align: center;
    max-width: 900px;
    padding: var(--space-3xl);
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-on-accent);
    margin-bottom: var(--space-xl);
}

.hero__subtitle {
    font-size: var(--font-lg);
    color: var(--on-accent-text);
    line-height: 1.7;
    margin-bottom: var(--space-3xl);
}

.hero__actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.hero__btn {
    padding: var(--space-md) var(--space-3xl);
    border-radius: var(--radius-md);
    font-size: var(--font-lg);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.hero__btn--primary {
    background: var(--bg-surface);
    color: var(--accent);
}

.hero__btn--primary:hover {
    background: var(--bg-hover);
}

.hero__btn--secondary {
    background: transparent;
    color: var(--text-on-accent);
    border: 2px solid var(--on-accent-border);
}

.hero__btn--secondary:hover {
    border-color: var(--text-on-accent);
    background: var(--on-accent-surface);
}

/* ═══════════════════════════════════════
   Разделы игры
   ═══════════════════════════════════════ */
.hero__sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    text-align: left;
}

.hero__section {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--on-accent-surface-raised);
    border: 1px solid var(--on-accent-border-soft);
    text-decoration: none;
    transition: all var(--transition-base);
}

.hero__section:hover {
    background: var(--on-accent-surface-hover);
}

.hero__section-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-on-accent);
}

.hero__section-text {
    font-size: var(--font-sm);
    color: var(--on-accent-text-muted);
    line-height: 1.5;
}

/* Раздел, которого ещё нет: кликать не по чему, но видно, что он будет.
   pointer-events обязателен: без него <a href="#"> честно навигирует на «#». */
.hero__section[data-soon="true"] {
    cursor: default;
    opacity: 0.75;
    pointer-events: none;
}

/* ═══════════════════════════════════════
   Четыре шага: объяснение игры гостю
   ═══════════════════════════════════════ */
.hero__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    padding: 0;
    list-style: none;
    counter-reset: step;
    text-align: left;
}

.hero__step {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--on-accent-surface);
    counter-increment: step;
}

.hero__step-title::before {
    content: counter(step) ". ";
}

.hero__step-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-on-accent);
}

.hero__step-text {
    font-size: var(--font-sm);
    color: var(--on-accent-text-muted);
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   Поиск игроков
   ═══════════════════════════════════════ */
.hero__search {
    position: relative;
    margin-bottom: var(--space-3xl);
}

.hero__search-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-lg);
    background: var(--bg-input);
    color: var(--text-primary);
}

.hero__search-results {
    list-style: none;
    margin: var(--space-sm) 0 0;
    padding: 0;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero__search-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    text-decoration: none;
    color: var(--text-primary);
}

.hero__search-item:hover {
    background: var(--bg-hover);
}

.hero__search-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: var(--text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-sm);
    font-weight: 600;
    object-fit: cover;
    flex-shrink: 0;
}

/* Логин в строке выдачи. Цвет наследуется от `.hero__search-item`, а правило
   нужно ради обрезки: логин бывает до 70 символов, и без неё длинный выдавливал
   бы аватар из строки — `.hero__search-item` это flex без переносов. */
.hero__search-name {
    font-size: var(--font-md);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero__search-empty {
    padding: var(--space-md) var(--space-lg);
    color: var(--text-muted);
    font-size: var(--font-sm);
}

/* ═══════════════════════════════════════
   Адаптивность
   ═══════════════════════════════════════ */
@media (max-width: 600px) {
    .hero__content {
        padding: var(--space-xl);
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__sections {
        grid-template-columns: 1fr;
    }

    .hero__steps {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero__btn {
        padding: var(--space-md) var(--space-xl);
        text-align: center;
    }
}
