/* Tournament Detail — тёмная тема, красный header, референс Check Check */

.tournament-detail-page {
    padding-bottom: 116px;
}
.tournament-detail-page .tournament-detail-content {
    padding-top: 24px;
}
.tg-webview .tournament-detail-page .tournament-detail-content {
    padding-top: 24px;
}

/* ----- Красный header ----- */
.tournament-detail-header {
    background: linear-gradient(160deg, #8B1538 0%, #6B0F2A 40%, #4A0A1E 100%);
    padding: calc(100px + env(safe-area-inset-top, 0px)) 16px 24px 16px;
    position: relative;
    overflow: hidden;
}

.tournament-header-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tournament-detail-title {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Unbounded', sans-serif;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
}

.tournament-header-chip {
    flex-shrink: 0;
    pointer-events: none;
}
.tournament-header-chip .chip-svg {
    width: 64px;
    height: 64px;
}

/* ----- Контент ----- */
.tournament-about-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 28px;
    padding: 5px 12px;
    background: var(--bg-card);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.tournament-about-pill .icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.tournament-about-pill:active {
    opacity: 0.9;
}

/* Секции */
.tournament-info-section,
.tournament-rules-section,
.tournament-registration-section {
    margin-bottom: 28px;
}

#tournament-rules-section {
    scroll-margin-top: 20px;
}

.tournament-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.tournament-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 15px;
}
.tournament-info-item:last-child {
    margin-bottom: 0;
}
.tournament-info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tournament-rules-text {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
}

/* Блок записи на турниры (красная карточка) */
.tournament-registration-card {
    background: linear-gradient(145deg, #8B1538 0%, #6B0F2A 100%);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tournament-registration-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.tournament-info-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
}
.tournament-info-badge svg {
    width: 14px;
    height: 14px;
}

.tournament-registration-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.tournament-registration-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 10px;
}
.tournament-registration-text:last-child {
    margin-bottom: 0;
}

/* Блок надписи и кнопки */
.tournament-action-block {
    margin-top: 8px;
    text-align: center;
}

.tournament-status-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    min-height: 20px;
}

/* Кнопки: белая и чёрно-красная */
.tournament-participate-btn {
    width: 100%;
    border: none;
    border-radius: var(--radius);
    padding: 18px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
}
.tournament-participate-btn:active {
    transform: scale(0.98);
    opacity: 0.95;
}
.tournament-participate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tournament-btn-white {
    background: #fff;
    color: #0d0d0d;
}

.tournament-btn-dark {
    background: linear-gradient(145deg, #2a0a12 0%, #4A0A1E 50%, #6B0F2A 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.tournament-btn-dark:active {
    opacity: 0.95;
}
