/* Landscape first-flight coaching stays in the same layer as the active control. */
.ia-first-flight {
    position: fixed; z-index: 2147483000; box-sizing: border-box;
    width: min(354px, calc(100vw - 24px)); margin: 0; padding: 17px 19px 14px;
    color: #e6f8ff; text-align: left; font-family: Arial, sans-serif;
    background: linear-gradient(130deg, rgba(5,37,54,.98), rgba(5,13,31,.97));
    border: 1px solid #54dcff; border-left: 3px solid #77eeff;
    border-radius: 3px 18px 3px 18px;
    box-shadow: 0 0 0 3px #061e2bb3, 0 8px 32px #000a, inset 0 1px #bcfaff55;
}
.ia-first-flight-kicker { color:#64dfff; font:700 10px/1.4 Arial,sans-serif; letter-spacing:1.7px; }
.ia-first-flight h3 { margin:8px 0; color:#fff; font:700 20px/1.15 Arial,sans-serif; }
.ia-first-flight p { margin:0; color:#c8e2ef; font:13px/1.5 Arial,sans-serif; }
.ia-first-flight-note { color:#ffda80; font:12px/1.3 Arial,sans-serif; }
.ia-first-flight-note:not(:empty) { margin-top:8px; }
.ia-first-flight footer { display:flex; gap:8px; justify-content:space-between; margin-top:14px; }
.ia-first-flight button, .ia-flight-guide button { min-height:32px; padding:6px 11px; border:1px solid #49cbe4; border-radius:3px; font:700 11px/1.2 Arial,sans-serif; cursor:pointer; }
.ia-first-flight .ia-first-flight-next { color:#041a2a; background:linear-gradient(#a5faff,#44c8e8); }
.ia-first-flight .ia-first-flight-skip { background:transparent; border-color:transparent; color:#a2c4d6; }
.ia-first-flight button:disabled { opacity:.5; cursor:default; }
.ia-guide-target { outline:2px solid #ffe184 !important; outline-offset:3px; box-shadow:0 0 18px #ffd65966 !important; }
.ia-flight-guide-open { color:#70eaff; background:transparent; border:1px solid #46cbe466; padding:6px 12px; border-radius:3px; cursor:pointer; }
#interceptor-assault-ship-selection .interceptor-assault-header { grid-template-columns:auto minmax(0,1fr) auto auto; }
.ia-flight-guide p { color:#c8e2ef; line-height:1.6; }
.ia-flight-guide footer { display:flex; flex-wrap:wrap; gap:8px; }
@media (max-height:430px) {
    .ia-first-flight { width:286px; padding:10px 12px; }
    .ia-first-flight h3 { font-size:16px; margin:5px 0; }
    .ia-first-flight p { font-size:11px; line-height:1.4; }
    .ia-first-flight footer { margin-top:8px; gap:4px; }
    .ia-first-flight button { font-size:10px; padding:5px 7px; min-height:28px; }
}

/* Point at the real Armory control without intercepting its click. */
.ia-first-flight-arrow {
    position: fixed; z-index: 2147482999; pointer-events: none;
    color: #ffe184; font: 900 36px/1 Arial, sans-serif;
    text-shadow: 0 2px 4px #000, 0 0 12px #ffd659;
    transform: translateX(-50%); animation: ia-guide-point 900ms ease-in-out infinite;
}
@keyframes ia-guide-point {
    0%, 100% { transform: translate(-50%, -5px); }
    50% { transform: translate(-50%, 2px); }
}
@media (prefers-reduced-motion: reduce) {
    .ia-first-flight-arrow { animation: none; }
}

.ia-first-flight-mode-arrow { transform: translate(-50%, -50%); }
.ia-first-flight-mode-arrow.ia-point-right { animation-name: ia-guide-point-right; }
.ia-first-flight-mode-arrow.ia-point-left { animation-name: ia-guide-point-left; }
@keyframes ia-guide-point-right {
    0%, 100% { transform: translate(calc(-50% - 4px), -50%); }
    50% { transform: translate(calc(-50% + 2px), -50%); }
}
@keyframes ia-guide-point-left {
    0%, 100% { transform: translate(calc(-50% + 4px), -50%); }
    50% { transform: translate(calc(-50% - 2px), -50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ia-first-flight-mode-arrow.ia-point-right,
    .ia-first-flight-mode-arrow.ia-point-left { animation: none; }
}

@media (max-width:620px) {
    #ia-ranked-mode.ia-guide-modes { margin-left:40px; }
}

.ia-guide-allowed { outline:2px solid #ffe184 !important; outline-offset:3px; }
.ia-first-flight.ia-first-flight-inline { position:relative; width:100%; max-width:none; margin:12px 0 0; }
.ia-first-flight-launch-hint {
    position:fixed; z-index:2147482999; pointer-events:none; width:180px;
    transform:translateX(-50%); text-align:center; color:#ffe184;
    font:700 13px/1.3 Arial,sans-serif; text-shadow:0 2px 4px #000,0 0 8px #000;
    opacity:1; transition:opacity .6s ease;
}
.ia-first-flight-launch-hint.is-fading { opacity:0; }
.ia-launch-hint-arrow { display:block; font-size:32px; animation:ia-launch-point .9s ease-in-out infinite; }
@keyframes ia-launch-point { 50% { transform:translateY(4px); } }
@media (prefers-reduced-motion:reduce) { .ia-launch-hint-arrow { animation:none; } }
