/* ============================================================
   ОБЩИЙ КОНТЕЙНЕР (Стиль OneKZ Dark UI)
   ============================================================ */
.sortition {
    background: #172230; /* Глубокий темный фон сайта */
    color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center; /* Центрируем всё содержимое */
}

/* Заголовки с синей полоской слева как на форуме */
.sortition h3, .sortition #prizes h5 {
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #3498db; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: transparent;
    box-shadow: none;
    width: auto;
}

/* ============================================================
   ТАЙМЕР (Цифровое табло)
   ============================================================ */
.sortition .ending {
    border: 1px solid #2d3238;
    margin: 0 0 25px 0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.sortition #ending {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sortition #ending span {
    color: #3498db; /* Синий акцент для цифр */
    font-size: 42px;
    font-weight: 800;
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid #2c3e50;
    min-width: 85px;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    text-shadow: 0 0 12px rgba(52, 152, 219, 0.5); /* Эффект свечения */
}

/* Подписи: дней, часов, минут */
.sortition #ending i {
    font-style: normal;
    font-size: 10px;
    text-transform: uppercase;
    color: #7f8c8d;
    margin-top: 8px;
    letter-spacing: 1px;
    font-weight: 400;
}

/* ============================================================
   КНОПКА И ССЫЛКА (Центрирование в один ряд)
   ============================================================ */
.sortition .participate {
    display: inline-block; /* Позволяет стоять в одном ряду */
    vertical-align: middle; 
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 10px 15px 10px 0; /* Отступ справа для зазора со ссылкой */
    box-shadow: 0 4px 0 #1c5980, 0 8px 20px rgba(0,0,0,0.4); /* 3D эффект */
    position: relative;
    top: 0;
}

.sortition .participate:hover {
    background: linear-gradient(180deg, #4aa3df 0%, #2e8ece 100%);
    top: -2px;
    box-shadow: 0 6px 0 #1c5980, 0 10px 25px rgba(0,0,0,0.5);
}

.sortition .participate:active {
    top: 3px;
    box-shadow: 0 1px 0 #1c5980, 0 2px 10px rgba(0,0,0,0.3);
}

/* Ссылка "Подробнее" рядом с кнопкой */
.sortition a.read-more {
    display: inline-block; /* Ставим в один ряд с кнопкой */
    vertical-align: middle;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.8;
    transition: 0.2s;
    margin: 0;
}

.sortition a.read-more:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ============================================================
   СТАТУС "ВЫ УЧАСТВУЕТЕ"
   ============================================================ */
.sortition .participated-status {
    background: rgba(52, 152, 219, 0.05);
    border-left: 4px solid #3498db;
    padding: 15px;
    color: #fff;
    font-weight: 600;
    text-align: left;
    display: inline-block; /* Чтобы рамка не была на всю ширину при центрировании */
    margin: 20px 0;
}

/* ============================================================
   ПРИЗЫ И СПИСКИ
   ============================================================ */
.sortition #prizes {
    background: #172230;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2d3238;
    text-align: left;
}

.sortition #prizes .prize {
    border: 1px solid #2d3238;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    line-height: 1.4;
    transition: 0.2s;
}

.sortition #prizes .prize:hover {
    border-color: #3498db;
    background: #2a3138;
}

.sortition #prizes .prize span {
    color: #ecf0f1;
    font-size: 14px;
}

/* ============================================================
   УЧАСТНИКИ
   ============================================================ */
.sortition #participants {
    background: #172230;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2d3238;
    text-align: left;
}

.sortition #participants a img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #3498db;
    transition: 0.2s;
}

.sortition #participants a:hover img {
    transform: scale(1.08);
    border-color: #4aa3df;
}
/* ============================================================
   ПРАВИЛА РОЗЫГРЫША (OneKZ Dark UI Style)
   ============================================================ */

.sortition .sortition_rules {
    background: #172230;
    border: 1px solid #2d3238;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 20px;
}

.sortition .sortition_rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sortition .sortition_rules li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #ecf0f1;
    line-height: 1.5;
}

/* Синяя иконка-полоска слева */
.sortition .sortition_rules li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.7);
}

/* Ссылки внутри правил */
.sortition .sortition_rules a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.sortition .sortition_rules a:hover {
    color: #4aa3df;
    text-decoration: underline;
}

/* Выделение SteamID */
.sortition .sortition_rules b {
    color: #3498db;
    font-weight: 700;
}

/* Предупреждающий блок */
.sortition .sortition_rules .warning {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(231, 76, 60, 0.08);
    border-left: 4px solid #e74c3c;
    border-radius: 6px;
    font-size: 13px;
    color: #ffb3b3;
}
.rule-edit-block {
    margin-top: 20px;
    padding: 20px;
    background: #172230;
    border: 1px solid #2d3238;
    border-radius: 12px;
}

.rule-edit-block h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    border-left: 3px solid #3498db;
    padding-left: 10px;
}

.success-msg {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(46, 204, 113, 0.08);
    border-left: 3px solid #2ecc71;
    color: #2ecc71;
    font-size: 13px;
    border-radius: 6px;
}