/* Painel de bordo — piloto, radar, sinal e pista em todas as telas. */

.aero-deck {
    display: grid;
    grid-template-columns: 124px minmax(220px, 1.2fr) 112px minmax(250px, 1.25fr) minmax(168px, 0.9fr);
    gap: 12px 16px;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 0 0 18px;
    padding: 14px 16px 12px;
    box-sizing: border-box;
    overflow: hidden;
    color: #f6f3ec;
    border: 1px solid rgba(212, 174, 87, 0.45);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(212, 174, 87, 0.16), transparent 46%),
        radial-gradient(ellipse at 100% 120%, rgba(18, 52, 96, 0.55), transparent 48%),
        linear-gradient(180deg, #141b26 0%, #07090d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 220, 140, 0.16);
}

.aero-deck::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 174, 87, 0.9), transparent);
}

.aero-pilot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d4ae57;
    cursor: pointer;
    text-align: center;
}

.aero-pilot-btn:hover .aero-piloto-svg,
.aero-pilot-btn:focus-visible .aero-piloto-svg {
    filter: drop-shadow(0 0 10px rgba(212, 174, 87, 0.45));
}

.aero-pilot-btn:focus-visible {
    outline: 1px solid #d4ae57;
    outline-offset: 4px;
}

.aero-piloto-svg {
    width: 78px;
    height: 88px;
    display: block;
}

.aero-pilot-btn b,
.aero-pilot-btn small {
    display: block;
    font-family: Cinzel, serif;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.aero-pilot-btn b {
    font-size: 11px;
    color: #f6f3ec;
}

.aero-pilot-btn small {
    font-size: 9px;
    color: #d4ae57;
}

.aero-sinal {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.aero-lampadas {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aero-lampadas i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1a140c;
    border: 1px solid rgba(212, 174, 87, 0.35);
    box-shadow: inset 0 0 0 3px #07090d;
}

.aero-deck[data-estado="livre"] .aero-lampadas i.is-verde,
.aero-deck[data-estado="espera"] .aero-lampadas i.is-ambar,
.aero-deck[data-estado="alerta"] .aero-lampadas i.is-vermelho {
    box-shadow: 0 0 10px currentColor;
}

.aero-deck[data-estado="livre"] .aero-lampadas i.is-verde {
    background: #7dcea0;
    color: #7dcea0;
    border-color: #7dcea0;
}

.aero-deck[data-estado="espera"] .aero-lampadas i.is-ambar {
    background: #d4ae57;
    color: #d4ae57;
    border-color: #d4ae57;
}

.aero-deck[data-estado="alerta"] .aero-lampadas i.is-vermelho {
    background: #e06a5c;
    color: #e06a5c;
    border-color: #e06a5c;
}

.aero-sinal strong,
.aero-fids,
.aero-nave p {
    font-family: Oswald, sans-serif;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.aero-sinal strong {
    display: block;
    margin: 0 0 4px;
    font-size: 13px;
    color: #d4ae57;
}

.aero-sinal span {
    display: block;
    font-family: Merriweather, Georgia, serif;
    font-size: 13.5px;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    color: #e7e1d6;
}

.aero-radar {
    width: 104px;
    height: 104px;
    justify-self: center;
}

.aero-radar svg {
    width: 100%;
    height: 100%;
    display: block;
}

.aero-sweep {
    transform-box: fill-box;
    transform-origin: center;
    animation: aeroVarre 8s linear infinite;
}

.aero-blip {
    animation: aeroBlip 2.2s ease-in-out infinite;
}

.aero-fids {
    min-width: 0;
    padding: 4px 10px;
    border: 1px solid rgba(212, 174, 87, 0.32);
    background:
        linear-gradient(180deg, rgba(212, 174, 87, 0.05), transparent 28%),
        #070b10;
}

.aero-fids-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid rgba(212, 174, 87, 0.16);
    font-size: 12px;
    color: #d4ae57;
}

.aero-fids-row:last-child { border-bottom: 0; }

.aero-fids-row span,
.aero-fids-row em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.aero-fids-row em { color: #f6f3ec; }

.aero-vivo {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #7dcea0;
    box-shadow: 0 0 8px #7dcea0;
    vertical-align: middle;
    animation: aeroBlip 1.8s ease-in-out infinite;
}

.aero-nave { min-width: 0; }

.aero-nave p {
    margin: 0 0 4px;
    font-size: 10px;
    color: #d4ae57;
}

.aero-pista {
    position: relative;
    height: 62px;
}

.aero-pista > i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(212, 174, 87, 0.85) 0 10px, transparent 10px 18px);
}

.aero-aviao-wrap {
    position: absolute;
    bottom: 14px;
    width: 78%;
    animation: aeroTaxi 10s ease-in-out infinite;
}

.aero-deck[data-ambiente="am"] .aero-aviao-wrap { animation-delay: -3s; }
.aero-deck[data-ambiente="torre"] .aero-aviao-wrap { width: 68%; animation-duration: 13s; }
.aero-deck[data-ambiente="central"] .aero-pista { height: 78px; }
.aero-deck[data-ambiente="central"] .aero-aviao-wrap {
    width: 48%;
    left: 0;
    bottom: 12px;
    animation: none;
}
.aero-deck[data-ambiente="central"] .aero-aviao-wrap:nth-child(2) {
    width: 34%;
    left: 36%;
    bottom: 28px;
    opacity: 0.8;
    animation: none;
}
.aero-deck[data-ambiente="central"] .aero-aviao-wrap:nth-child(3) {
    width: 24%;
    left: 64%;
    bottom: 44px;
    opacity: 0.62;
    animation: none;
}

.aero-aviao { width: 100%; height: auto; display: block; }

.aero-edge {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
}

.aero-edge i {
    flex: 1;
    height: 3px;
    background: rgba(212, 174, 87, 0.16);
}

.aero-deck[data-estado="livre"] .aero-edge i {
    background: #7dcea0;
    box-shadow: 0 0 8px rgba(125, 206, 160, 0.7);
}

.aero-deck[data-estado="espera"] .aero-edge i:nth-child(-n + 5) {
    background: #d4ae57;
    box-shadow: 0 0 8px rgba(212, 174, 87, 0.65);
}

.aero-deck[data-estado="alerta"] .aero-edge i:nth-child(-n + 3) {
    background: #e06a5c;
    box-shadow: 0 0 8px rgba(224, 106, 92, 0.7);
}

.aero-deck[data-ambiente="hangar"] .aero-piloto-svg { width: 86px; height: 96px; }
.aero-deck[data-ambiente="am"] .aero-radar { width: 116px; height: 116px; }
.aero-deck[data-ambiente="torre"] .aero-lampadas i { width: 16px; height: 16px; }
.aero-deck[data-ambiente="central"] .aero-fids { box-shadow: inset 0 0 0 1px rgba(212, 174, 87, 0.12); }

@keyframes aeroVarre { to { transform: rotate(360deg); } }
@keyframes aeroBlip { 50% { opacity: 0.35; } }
@keyframes aeroTaxi {
    0% { left: 0; }
    50% { left: 22%; }
    100% { left: 0; }
}
@keyframes aeroFlutua {
    50% { transform: translateY(-3px); }
}

.aero-piloto-svg { animation: aeroFlutua 4.8s ease-in-out infinite; }

@media (max-width: 1100px) {
    .aero-deck {
        grid-template-columns: 110px minmax(0, 1fr) 96px;
    }
    .aero-nave { display: none; }
}

@media (max-width: 720px) {
    .aero-deck { grid-template-columns: 1fr 1fr; }
    .aero-radar { grid-column: 1 / -1; }
    .aero-fids { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    .aero-sweep,
    .aero-blip,
    .aero-vivo,
    .aero-aviao-wrap,
    .aero-piloto-svg { animation: none; }
    .aero-aviao-wrap { left: 8%; }
}
