/* ===========================================================================
   Cartão "carro nesta etapa" (scripts/carro-etapa.js). Usado no modal
   "Resultados dessa etapa" (Etapas) e na aba da rodada da Tabela.
   Texto em <b>/<small>/<strong>: o tema pinta de branco todo <span> no escuro.
   =========================================================================== */

.ce-fundo {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
}

.ce {
    width: 100%;
    max-width: 340px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    text-align: left;
}

.theme-dark .ce {
    background: #1b2027;
}

.ce__topo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ce__topo .ce__piloto {
    font-size: 17px;
}

.ce__rotulo {
    font-family: Rajdhani, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}

.ce__atual {
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef5fb;
}

.theme-dark .ce__atual {
    background: rgba(31, 155, 216, .14);
}

.ce__nome,
.ce__fora,
.ce__vazio {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f7fb8;
}

.theme-dark .ce__nome {
    color: #6cc0ec;
}

.ce__fora {
    color: #b42318;
}

.theme-dark .ce__fora {
    color: #f08a92;
}

.ce__vazio {
    font-size: 15px;
    color: #6b7280;
}

.ce__marca,
.ce__nota {
    display: block;
    font-size: 12.5px;
    color: #6b7280;
    margin-top: 2px;
}

.theme-dark .ce__marca,
.theme-dark .ce__nota,
.theme-dark .ce__rotulo,
.theme-dark .ce__vazio {
    color: #a7a7a7;
}

/* Com o carro identificado: a foto ocupa o cartão e o nome vem embaixo.
   O fundo cinza-claro acompanha o da própria foto (images/combos/). */
.ce__atual--carro {
    padding: 0 0 12px;
    overflow: hidden;
    background: #e8e8e8;
    text-align: center;
}

.ce__foto {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 932 / 560;
}

.ce__atual--carro .ce__nome,
.theme-dark .ce__atual--carro .ce__nome {
    padding: 0 12px;
    font-size: 18px;
    color: #14161a;
}

.theme-dark .ce__atual--carro {
    background: #e8e8e8;
}

.ce__fechar {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #e74c3c;
    color: #fff;
    font-weight: 700;
    font-family: inherit;
}

.ce__flag {
    flex: 0 0 auto;
    width: 30px;
    height: 20px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .22);
}

.ce__ident {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ce__piloto {
    display: block;
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
}

.ce__id {
    display: block;
    font-size: 11.5px;
    color: #7a7a7a;
}

.ce__id b {
    font-weight: 400;
    color: #007bff;
}

.theme-dark .ce__piloto {
    color: #f2f2f2;
}

.theme-dark .ce__id {
    color: #a7a7a7;
}

.theme-dark .ce__id b {
    color: #66b2ff;
}
