/* Real flights (FlyItalyADSB): the third game card on the start screen, the real-flight search step
   (airshow_loading.js) and the source line on the map (airshow_realworld_credit.js). Loaded after airshow_startup.css;
   start-screen rules are scoped to .startup-grid-hero--games3 or the real-flight step, so the other steps keep their layout. */

/* Three games in one row: narrower cards, so the icon, title and gap shrink a step. */
#loading-overlay .startup-grid-hero.startup-grid-hero--games3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
#loading-overlay .startup-grid-hero--games3 .startup-hero-card {
  padding-left: 14px;
  padding-right: 14px;
}
#loading-overlay .startup-grid-hero--games3 .startup-mode-icon-image {
  width: 142px;
  height: 142px;
}
#loading-overlay .startup-grid-hero--games3 .startup-hero-card .startup-card-title {
  font-size: 23px;
}
#loading-overlay .startup-grid-hero--games3 .startup-hero-card .startup-card-desc {
  font-size: 12.5px;
}
.startup-root.startup-game-step .startup-grid-hero--games3 .startup-card:nth-child(3) {
  animation-delay: 135ms;
}

/* The real-flights card: same size as the two simulator cards, in its own sky-blue. */
#loading-overlay #game-real-world.startup-hero-card {
  min-height: var(--startup-game-card-height);
  height: var(--startup-game-card-height);
  padding-top: 44px;
  padding-bottom: 18px;
}
#loading-overlay #game-real-world .startup-card-title {
  color: #9fe0ff;
}
#loading-overlay #game-real-world .startup-card-iconbox::before {
  background: radial-gradient(ellipse at 50% 50%, rgba(127, 211, 255, 0.18) 0%, rgba(127, 211, 255, 0.14) 42%, rgba(127, 211, 255, 0.07) 60%, rgba(127, 211, 255, 0) 82%);
  box-shadow: 0 0 16px rgba(127, 211, 255, 0.15);
}
#loading-overlay #game-real-world.startup-hero-card:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 22px 44px rgba(0, 22, 56, 0.4),
    0 0 46px rgba(127, 211, 255, 0.28);
}
#loading-overlay #game-real-world.startup-hero-card:hover .startup-mode-icon-image {
  transform: scale(1.15) translateY(-2px);
}
#loading-overlay #game-real-world.startup-hero-card:hover .startup-card-iconbox {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px rgba(127, 211, 255, 0.4));
}
/* The card's tags in its top-right corner: NEW, then the First Class tag (airshow_ui_plan_tags.js, variant "corner")
   one size up from a settings tag. They name the mode and its plan, so every viewer sees them, First included.
   NEW is an outline in the card's sky-blue, so the filled class tag stays the stronger of the two. */
#loading-overlay #game-real-world .startup-card-tags {
  --tag-h: 20px;
  --tag-fs: 11px;
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
#loading-overlay #game-real-world .startup-card-tags > .plan-tag--corner {
  display: inline-flex;
  height: var(--tag-h);
  padding: 0 0.73em 0 1em;
  border-radius: 2px 3px 3px 2px;
  font-size: var(--tag-fs);
  letter-spacing: 0.08em;
  -webkit-mask: radial-gradient(circle 3.5px at 0 50%, transparent 94%, #000 106%);
          mask: radial-gradient(circle 3.5px at 0 50%, transparent 94%, #000 106%);
}
#loading-overlay #game-real-world .startup-card-new-tag {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--tag-h);
  padding: 0 0.64em;
  border: 1px solid rgba(159, 224, 255, 0.72);
  border-radius: 3px;
  color: #9fe0ff;
  font: 700 var(--tag-fs)/1 var(--airshow-ui-font-family, "Pretendard Variable", sans-serif);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
/* A soft light passes over the two tags every 6 seconds, NEW first and FIRST a beat later; none with reduced motion. */
#loading-overlay #game-real-world .startup-card-tags > * {
  position: relative;
  overflow: hidden;
}
#loading-overlay #game-real-world .startup-card-tags > *::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: startup-card-tag-shine 6s ease-in-out 1.6s infinite;
  pointer-events: none;
}
#loading-overlay #game-real-world .startup-card-new-tag::after {
  background: linear-gradient(105deg, transparent 30%, rgba(159, 224, 255, 0.34) 50%, transparent 70%);
}
#loading-overlay #game-real-world .startup-card-tags > .plan-tag--corner::after {
  animation-delay: 1.85s;
}
@keyframes startup-card-tag-shine {
  0% { transform: translateX(-130%); }
  16%, 100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  #loading-overlay #game-real-world .startup-card-tags > *::after {
    content: none;
  }
}

/* Phones in portrait and very narrow windows: three tall cards do not fit, so each game becomes a row
   (icon on the left, name and line on the right). */
@media (orientation: portrait) and (max-width: 980px), (max-width: 620px) {
  #loading-overlay .startup-grid-hero.startup-grid-hero--games3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #loading-overlay .startup-grid-hero--games3 .startup-hero-card,
  #loading-overlay .startup-grid-hero--games3 #game-infinite-flight.startup-hero-card,
  #loading-overlay .startup-grid-hero--games3 #game-vatsim.startup-hero-card,
  #loading-overlay #game-real-world.startup-hero-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    min-height: 0;
    height: auto;
    padding: 14px 16px;
    text-align: left;
  }
  #loading-overlay .startup-grid-hero--games3 .startup-card-iconbox,
  #loading-overlay .startup-grid-hero--games3 #game-infinite-flight .startup-card-iconbox,
  #loading-overlay .startup-grid-hero--games3 #game-vatsim .startup-card-iconbox,
  #loading-overlay .startup-grid-hero--games3 #game-real-world .startup-card-iconbox {
    grid-row: 1 / span 2;
    margin: 0;
    width: 84px;
    height: 84px;
  }
  #loading-overlay .startup-grid-hero--games3 .startup-mode-icon-image,
  #loading-overlay .startup-grid-hero--games3 #game-infinite-flight .startup-mode-icon-image,
  #loading-overlay .startup-grid-hero--games3 #game-vatsim .startup-mode-icon-image,
  #loading-overlay .startup-grid-hero--games3 #game-real-world .startup-mode-icon-image {
    width: 84px;
    height: 84px;
    transform: none;
  }
  #loading-overlay .startup-grid-hero--games3 .startup-hero-card .startup-card-title {
    font-size: 20px;
    text-align: left;
    margin: 0 0 3px;
    align-self: end;
  }
  #loading-overlay .startup-grid-hero--games3 .startup-hero-card .startup-card-desc,
  #loading-overlay .startup-grid-hero--games3 #game-infinite-flight .startup-card-desc,
  #loading-overlay .startup-grid-hero--games3 #game-vatsim .startup-card-desc {
    font-size: 12.5px;
    text-align: left;
    min-height: 0;
    align-self: start;
  }
  .startup-root.startup-game-step .startup-mode-greeting ~ .startup-grid-hero--games3 {
    transform: none;
  }
  /* The tag needs its own strip above the name here, so this row starts a little lower. */
  #loading-overlay .startup-grid-hero--games3 #game-real-world.startup-hero-card {
    padding-top: 26px;
  }
  #loading-overlay #game-real-world .startup-card-tags {
    --tag-h: 16px;
    --tag-fs: 9.5px;
    top: 9px;
    right: 12px;
    gap: 5px;
  }
}

/* Phones turned sideways: the three cards stay in one row, icon over name, as the two simulator cards did. */
@media (orientation: landscape) and (max-height: 500px) {
  #loading-overlay .startup-grid-hero.startup-grid-hero--games3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  #loading-overlay .startup-grid-hero--games3 .startup-hero-card,
  #loading-overlay .startup-grid-hero--games3 #game-infinite-flight.startup-hero-card,
  #loading-overlay .startup-grid-hero--games3 #game-vatsim.startup-hero-card,
  #loading-overlay #game-real-world.startup-hero-card {
    min-height: 0;
    height: auto;
    padding: 12px 8px 12px;
  }
  #loading-overlay .startup-grid-hero--games3 .startup-card-iconbox {
    margin: 0 auto 4px;
  }
  #loading-overlay .startup-grid-hero--games3 .startup-mode-icon-image,
  #loading-overlay .startup-grid-hero--games3 #game-infinite-flight .startup-mode-icon-image,
  #loading-overlay .startup-grid-hero--games3 #game-vatsim .startup-mode-icon-image,
  #loading-overlay .startup-grid-hero--games3 #game-real-world .startup-mode-icon-image {
    width: 64px;
    height: 64px;
    transform: none;
  }
  #loading-overlay .startup-grid-hero--games3 .startup-hero-card .startup-card-title {
    font-size: 20px;
    margin-bottom: 0;
  }
  #loading-overlay .startup-grid-hero--games3 .startup-hero-card .startup-card-desc {
    display: none;
  }
  #loading-overlay #game-real-world .startup-card-tags {
    --tag-h: 15px;
    --tag-fs: 9px;
    top: 8px;
    right: 8px;
    gap: 4px;
  }
}

/* Real-flight search step: data credit under the list (it says the route is an estimate) and aircraft line on each result. */
.startup-realworld-credit {
  flex: 0 0 auto;
  margin: 8px 2px 0;
  color: rgba(214, 233, 252, 0.7);
  font-size: 11px;
  line-height: 1.4;
}
.startup-realworld-credit a {
  color: #9fe0ff;
  text-decoration: none;
}
.startup-realworld-credit a:hover,
.startup-realworld-credit a:focus-visible {
  text-decoration: underline;
}
.startup-flight-item-meta {
  display: block;
  overflow: hidden;
  color: rgba(214, 233, 252, 0.72);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.startup-flight-item-meta:empty {
  display: none;
}

/* Real-flight search step: "Can't find your flight?" at the right end of the bottom row, and the sheet it opens
   (js/airshow_realworld_help.js). The button is quieter than Back: it is help, not the next step. */
.startup-realworld-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 42px;
  margin-left: auto;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(159, 224, 255, 0.34);
  border-radius: 10px;
  background: rgba(127, 211, 255, 0.06);
  color: #d6edff;
  font: 600 13.5px/1 var(--airshow-ui-font-family, "Pretendard Variable", "Pretendard", sans-serif);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.startup-realworld-help-btn:hover,
.startup-realworld-help-btn:focus-visible {
  border-color: #9fe0ff;
  background: rgba(127, 211, 255, 0.14);
  color: #ffffff;
}
.startup-realworld-help-btn:focus-visible,
.startup-realworld-help-x:focus-visible,
.startup-realworld-help-ok:focus-visible {
  outline: 2px solid #9fe0ff;
  outline-offset: 2px;
}
.startup-realworld-help-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #9fe0ff;
  border-radius: 50%;
  color: #9fe0ff;
  font-size: 12.5px;
  font-weight: 800;
}
.startup-realworld-help-sheet {
  position: fixed;
  inset: 0;
  z-index: 2110; /* above the start screen (2000) and its footer links (2104) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 14, 0.66);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  animation: startup-realworld-help-in 0.16s ease-out;
}
@keyframes startup-realworld-help-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.startup-realworld-help-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 540px);
  max-height: 100%;
  overflow-y: auto;
  padding: 24px 24px 20px;
  border: 1px solid rgba(198, 226, 255, 0.28);
  border-radius: 16px;
  /* The start screen panel's glass (.startup-shell in airshow_startup.css). */
  background:
    linear-gradient(156deg, rgba(10, 19, 32, 0.82), rgba(8, 16, 28, 0.72)),
    radial-gradient(80% 62% at 20% 0%, rgba(124, 178, 255, 0.18), rgba(8, 14, 24, 0) 75%);
  -webkit-backdrop-filter: blur(10px) saturate(126%);
          backdrop-filter: blur(10px) saturate(126%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #f4f8ff;
  font-family: var(--airshow-ui-font-family, "Pretendard Variable", "Pretendard", sans-serif);
  text-align: left;
}
html[data-ui-language="ko"] .startup-realworld-help-dialog {
  word-break: keep-all; /* Korean wraps between words */
}
.startup-realworld-help-dialog h2 {
  margin: 0 36px 8px 0;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.25;
}
.startup-realworld-help-lead {
  margin: 0 0 6px;
  color: rgba(214, 233, 252, 0.78);
  font-size: 13.5px;
  line-height: 1.5;
}
.startup-realworld-help-x {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(214, 233, 252, 0.8);
  cursor: pointer;
}
.startup-realworld-help-x:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.startup-realworld-help-x svg {
  width: 16px;
  height: 16px;
}
.startup-realworld-help-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.startup-realworld-help-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.startup-realworld-help-item:first-child {
  border-top: 0;
}
.startup-realworld-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(127, 211, 255, 0.12);
  color: #9fe0ff;
}
.startup-realworld-help-icon svg {
  width: 20px;
  height: 20px;
}
.startup-realworld-help-text h3 {
  margin: 1px 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.startup-realworld-help-text p {
  margin: 0;
  color: rgba(214, 233, 252, 0.82);
  font-size: 13px;
  line-height: 1.55;
}
.startup-realworld-help-example {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: rgba(214, 233, 252, 0.7);
  font-size: 13px;
}
.startup-realworld-help-example code {
  padding: 3px 9px;
  border: 1px solid rgba(159, 224, 255, 0.38);
  border-radius: 6px;
  color: #9fe0ff;
  font: 650 12.5px/1.3 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.03em;
}
.startup-realworld-help-example code:first-child {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(214, 233, 252, 0.78);
}
.startup-realworld-help-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.startup-realworld-help-ok {
  min-width: 96px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(159, 224, 255, 0.6);
  border-radius: 10px;
  background: rgba(127, 211, 255, 0.16);
  color: #ffffff;
  font: 700 14px/1 var(--airshow-ui-font-family, "Pretendard Variable", "Pretendard", sans-serif);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.startup-realworld-help-ok:hover {
  border-color: #9fe0ff;
  background: rgba(127, 211, 255, 0.28);
}
@media (max-width: 620px) {
  .startup-realworld-help-btn {
    height: 38px;
    padding: 0 11px 0 8px;
    font-size: 12.5px;
  }
  .startup-realworld-help-dialog {
    padding: 20px 18px 16px;
  }
  .startup-realworld-help-dialog h2 {
    font-size: 19px;
  }
  .startup-realworld-help-item {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
    padding: 12px 0;
  }
  .startup-realworld-help-icon {
    width: 32px;
    height: 32px;
  }
}
/* Phones turned sideways: the sheet is as tall as the screen, so its parts close up. */
@media (orientation: landscape) and (max-height: 500px) {
  .startup-realworld-help-sheet {
    padding: 8px;
  }
  .startup-realworld-help-dialog {
    width: min(100%, 680px);
    padding: 14px 18px 12px;
  }
  .startup-realworld-help-lead {
    display: none;
  }
  .startup-realworld-help-item {
    padding: 8px 0;
  }
  .startup-realworld-help-example {
    margin-top: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .startup-realworld-help-sheet {
    animation: none;
  }
  .startup-realworld-help-btn,
  .startup-realworld-help-ok {
    transition: none;
  }
}

/* Map: position source and route-estimate note at the end of the map credits line, in the credits' own grey type
   (js/airshow_realworld_credit.js). Hidden with the credits whenever the credits are hidden (airshow.css). */
#map-credit-anchor .airshow-realworld-credit {
  display: inline;
  order: 6; /* after Esri, CesiumJS, NASA GIBS, the imagery credits and "Data attribution" (orders 1-5) */
  margin-left: 10px;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  pointer-events: auto;
}
#map-credit-anchor > .airshow-realworld-credit {
  /* before the map has drawn its credits */
  display: inline-block;
  margin: 0 0 2px 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}
#map-credit-anchor .airshow-realworld-credit a {
  color: inherit;
  text-decoration: none;
}
#map-credit-anchor .airshow-realworld-credit a:hover,
#map-credit-anchor .airshow-realworld-credit a:focus-visible {
  text-decoration: underline;
}
.airshow-realworld-credit-note::before {
  content: "·";
  margin: 0 5px;
}
body:not(.airshow-runtime-active) #map-credit-anchor .airshow-realworld-credit,
body.airshow-seat-view-active #map-credit-anchor .airshow-realworld-credit {
  display: none;
}

/* The First Class slip opened from the Real flights card: above the start screen (#loading-overlay is 2000). */
.tier-notice-overlay.tier-notice-overlay--startup {
  z-index: 2100;
}
