/* Flight discovery: big real-aircraft choices and a quieter map on small screens. */
#discovery-radar { margin: 8px 0 14px }
#discovery-radar[hidden] { display: none }
#discovery-radar h3 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.035em; color: var(--ink) }
.radar-flights { display: grid; gap: 9px }
.radar-flight { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 8px 12px; border: 2px solid #d9e8df; border-radius: 21px; background: linear-gradient(135deg, #f6faf0, #e7f4ef); color: #244f53; text-align: left; box-shadow: 0 4px 0 #c9ded4 }
.radar-flight:nth-child(2) { background: linear-gradient(135deg, #fff8e7, #ffedcc); border-color: #eeddb9; box-shadow: 0 4px 0 #e6d5b0 }
.radar-flight:nth-child(3) { background: linear-gradient(135deg, #f4f4ff, #e3ecfa); border-color: #d2deed; box-shadow: 0 4px 0 #c5d4e4 }
.radar-aircraft { width: 75px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #ffffff80 }
.radar-aircraft svg { width: 75px; height: 50px; filter: drop-shadow(0 4px 1px #31616c22); transform: rotate(-13deg) }
.radar-aircraft .kind-art { font-size: 35px }
.radar-flight > span:last-child { min-width: 0 }
.radar-flight b { display: block; font-size: 16px; line-height: 1.2 }
.radar-flight small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere }
.radar-flight:hover { border-color: #58a78e }
.radar-passport { display: flex; align-items: center; gap: 9px; padding-top: 13px; color: var(--muted); font-size: 12px; font-weight: 700 }
.radar-stars { display: flex; gap: 3px; font-size: 23px; color: #98a9a1; white-space: nowrap }
.radar-stars [data-found=true] { color: #b97920; text-shadow: 0 1px 0 #ffe79b }
#discovery-mode { padding: 14px 0; margin: 0; border: 0; border-top: 1px dashed var(--line) }
#discovery-mode legend { float: left; width: 100%; padding: 0 0 10px; font-weight: 800; font-size: 13px }
.discovery-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; clear: both }
.discovery-modes button { min-height: 52px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 800 }
.discovery-modes button[aria-pressed=true] { border-color: var(--accent); background: var(--soft) }
#discovery-mode > small { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5 }
.flight-follow { margin: 10px 0 }
#follow-flight { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; padding: 9px 12px; border: 2px solid #b3d9cb; border-radius: 16px; background: #edf7e8; color: #236c5e; box-shadow: 0 3px 0 #c4ddcd; font-size: 14px; font-weight: 800 }
#follow-flight > span:first-child { font-size: 25px; line-height: 1 }
#follow-flight[aria-pressed=true] { background: #287f70; border-color: #287f70; color: white; box-shadow: 0 3px 0 #1c5f55 }
.flight-follow small { display: block; margin-top: 8px; font-size: 11px; line-height: 1.4; text-align: center; color: var(--muted) }
body.discovery-simple #card:not(.expanded) .facts { display: none }
body.discovery-simple #card .discovery-note { background: #fff3d2; color: #6a5028; border: 1px solid #eedda9; border-radius: 18px }
body.discovery-simple #card .discovery-note .fact-cycle { min-height: 48px }
#welcome:has(.radar-flight) > .welcome-art, #welcome:has(.radar-flight) > h2, #welcome:has(.radar-flight) > p, #welcome:has(.radar-flight) #nearby { display: none }
body.night .radar-flight { filter: brightness(.85) }
@media (prefers-reduced-motion: no-preference) { .radar-flight:hover .radar-aircraft svg { transform: translate(3px, -3px) rotate(-17deg); transition: transform .2s } }
@media (max-width: 760px) {
  #welcome { padding: 12px; gap: 8px }
  #welcome:has(.radar-flight) { padding: 12px; border-color: #cde0d6; background: var(--paper) }
  #discovery-radar { margin: 0 }
  #discovery-radar h3 { margin-bottom: 8px; font-size: 16px }
  .radar-flights { grid-template-columns: repeat(var(--flight-count, 3), minmax(0, 1fr)); gap: 7px }
  .radar-flight { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; min-height: 102px; padding: 7px 4px; border-radius: 17px; text-align: center }
  .radar-aircraft { width: 64px; height: 42px } .radar-aircraft svg { width: 64px; height: 42px }
  .radar-flight b { font-size: 12px } .radar-flight small { font-size: 10px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
  .radar-flight:only-child { flex-direction: row; min-height: 68px; text-align: left; padding: 8px 12px; gap: 12px }
  .radar-flight:only-child b { font-size: 15px } .radar-flight:only-child small { font-size: 12px }
  .radar-passport { justify-content: center; gap: 7px; font-size: 10px; padding-top: 7px } .radar-stars { font-size: 20px }
  #welcome:has(.radar-flight) #discover { display: none }
  #card .flight-follow { margin: 0 }
  body:not(.card-open) #moment:not(:has(button)) { display: none }
}
@media (max-width: 760px) and (max-height: 650px) { #discovery-radar h3 { display: none } .radar-flight { min-height: 77px } .radar-aircraft { height: 32px } .radar-aircraft svg { height: 32px } .radar-flight small { display: none } .radar-passport { padding-top: 4px } }
