@font-face {
    font-family: 'Attentica';
    src: url('attentica_4f_ultralight.eot');
    src: url('attentica_4f_ultralight.woff') format('woff'),
         url('attentica_4f_ultralight.ttf') format('truetype');
}

@font-face {
    font-family: 'kelson_sans_ruregular';
    src: url('kelson_sans_regular_ru.eot');
    src: url('kelson_sans_regular_ru.woff') format('woff'),
         url('kelson_sans_regular_ru.ttf') format('truetype');
}

body {
    background: #0a1f38;           /* Тёмно-синий фирменный */
    color: #e0f0ff;
    font-family: "kelson_sans_ruregular", Calibri, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* Шапка */
table[border="0"][width="100%"] {
    background: #0f2a4d;
    border-bottom: 4px solid #1e5cff;
}

/* Заголовки */
#kelsonracehead {
    background: #1e3a6b;
    color: #ffffff;
    font-size: 16pt;
    padding: 12px;
    font-weight: bold;
}

/* Строки таблицы */
#kelsonraceout, #kelsonsm {
    background: #132d52;
    color: #e0f0ff;
    font-size: 15.5pt;
    padding: 10px 8px;
    border-bottom: 1px solid #1e4068;   /* лёгкое разделение */
}

/* Win / Lose */
#win  { background: #006b00 !important; color: #ffffff; font-weight: bold; }
#lose { background: #9a0000 !important; color: #ffffff; font-weight: bold; }

/* Таблицы */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 1280px;
    margin: 15px auto;
    background: #0f2540;
}

td, th {
    padding: 10px 8px;
    text-align: center;
    border: none;                    /* Убрали все контуры */
}

/* Лёгкое разделение строк */
#tablecuntainer tr {
    border-bottom: 1px solid #1e4068;
}

/* Ссылки */
a { color: #66bbff; }
a:hover { color: #a0d4ff; }

#attfontsmm {
    color: #7799cc;
    font-size: 11pt;
}

/* Адаптив */
@media (max-width: 1100px) {
    #kelsonsm, #kelsonraceout { font-size: 13.5pt; }
    td, th { padding: 8px 5px; }
}

/* Ещё более компактные плашки */
.race-card {
    background: #132d52;
    max-width: 560px;           /* Ещё уже */
    margin: 8px auto;
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid #1e5cff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.race-time {
    text-align: center;
    font-size: 14pt;
    color: #a0c8ff;
    margin-bottom: 5px;
    font-weight: bold;
}

.race-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.car-box {
    flex: 1;
    padding: 6px 8px;
    border-radius: 5px;
    text-align: center;
    min-height: 78px;
}

.car-name {
    font-size: 13.5pt;          /* Мельче */
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.2;
}

.car-info {
    font-size: 11.5pt;          /* Мелкий симпатичный */
    line-height: 1.25;
}

.vs {
    font-size: 20pt;
    font-weight: bold;
    color: #1e5cff;
    padding: 0 6px;
}

/* Win / Lose */
.win  { background: #004d00 !important; }
.lose { background: #6b0000 !important; }

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .race-card {
        max-width: 100%;
        margin: 8px 4px;
        padding: 8px;
    }
    
    .time-side {
        width: 55px;
        font-size: 13.5pt;
        padding-right: 8px;
    }
    
    .table-header, .table-row {
        font-size: 12pt;
    }
    
    .col-participant { flex: 1.8; }
    .col-et, .col-rt, .col-spd { flex: 1; font-size: 11.5pt; }
    
    h2 {
        font-size: 17pt;
    }
}

/* Ещё меньше для очень узких экранов */
@media (max-width: 480px) {
    .table-header, .table-row {
        font-size: 11pt;
    }
    .time-side {
        font-size: 12.5pt;
    }
}