/* Flugplatz Dresden – alles unter .inselflieger-game gekapselt */
.inselflieger-game {
  --if-bg: rgba(12, 22, 34, .72);
  --if-line: rgba(255, 255, 255, .28);
  --if-accent: #ffb020;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  max-height: 88vh;
  overflow: hidden;
  background: #bdd9f2;
  color: #fff;
  font: 500 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  border-radius: 10px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.inselflieger-game.is-full, .inselflieger-game.is-page {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
}
html.inselflieger-noscroll, html.inselflieger-noscroll body { overflow: hidden !important; }
.inselflieger-game *, .inselflieger-game *::before, .inselflieger-game *::after { box-sizing: border-box; }
.inselflieger-game .if-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.inselflieger-game button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  color: #fff;
  font: inherit;
}
.inselflieger-game button[hidden] { display: none !important; }
.inselflieger-game button:focus-visible, .inselflieger-game input:focus-visible { outline: 3px solid var(--if-accent); outline-offset: 2px; }

/* HUD */
.inselflieger-game .if-hud {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: calc(10px + env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; gap: 6px;
  max-width: calc(100% - 210px);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.inselflieger-game .if-hud span { background: var(--if-bg); padding: 4px 9px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.inselflieger-game .if-top {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(10px + env(safe-area-inset-right, 0px));
  display: flex; gap: 6px;
}
.inselflieger-game .if-top button { width: 42px; height: 42px; border-radius: 10px; background: var(--if-bg); font-size: 20px; line-height: 42px; }
.inselflieger-game .if-banner {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  background: var(--if-bg); padding: 10px 18px; border-radius: 12px;
  font-size: 18px; font-weight: 700; text-align: center; max-width: 86%;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.inselflieger-game .if-banner.is-on { opacity: 1; }

/* Touch-Bedienung */
.inselflieger-game .if-touch { display: none; }
.inselflieger-game.is-touch .if-touch { display: block; }
.inselflieger-game.is-pad .if-touch { display: none; }
.inselflieger-game .if-stick {
  position: absolute; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 132px; height: 132px; border-radius: 50%;
  background: rgba(12, 22, 34, .35); border: 2px solid var(--if-line);
}
.inselflieger-game .if-knob {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(255, 255, 255, .85); pointer-events: none;
}
.inselflieger-game .if-yaw {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; gap: 12px;
}
.inselflieger-game .if-yaw button { width: 54px; height: 54px; border-radius: 50%; background: rgba(12, 22, 34, .45); border: 2px solid var(--if-line); font-size: 24px; line-height: 50px; }
.inselflieger-game .if-thr {
  position: absolute; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 190px; border-radius: 14px; overflow: hidden;
  background: rgba(12, 22, 34, .35); border: 2px solid var(--if-line);
}
.inselflieger-game .if-thr-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(255, 176, 32, .8); pointer-events: none; }
.inselflieger-game .if-thr-mid { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #fff; opacity: 0; pointer-events: none; }
.inselflieger-game.is-heli .if-thr-mid { opacity: .9; }
.inselflieger-game .if-thr-label { position: absolute; left: 0; right: 0; top: 6px; text-align: center; font-size: 11px; pointer-events: none; }

/* Menü */
.inselflieger-game .if-overlay {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(8, 16, 26, .55); padding: 14px; overflow: auto; touch-action: pan-y;
}
.inselflieger-game .if-overlay.is-open { display: flex; }
.inselflieger-game .if-panel {
  display: none; flex-direction: column; gap: 9px;
  width: min(430px, 100%); max-height: 100%; overflow: auto;
  background: rgba(14, 26, 40, .94); border: 1px solid var(--if-line); border-radius: 16px; padding: 20px;
  user-select: text; -webkit-user-select: text;
}
.inselflieger-game .if-panel.is-open { display: flex; }
.inselflieger-game .if-panel h2 { margin: 0 0 2px; font-size: 24px; line-height: 1.2; color: #fff; }
.inselflieger-game .if-panel h3 { margin: 0 0 4px; font-size: 15px; color: var(--if-accent); }
.inselflieger-game .if-panel p { margin: 0; color: #d7e3ee; }
.inselflieger-game .if-panel .if-small { font-size: 12.5px; color: #a9bccd; }
.inselflieger-game .if-panel .if-err { color: #ff9a8a; min-height: 1.2em; font-size: 13.5px; }
.inselflieger-game .if-panel button {
  background: rgba(255, 255, 255, .1); border: 1px solid var(--if-line); border-radius: 10px;
  padding: 11px 14px; font-weight: 600;
}
.inselflieger-game .if-panel button:hover { background: rgba(255, 255, 255, .18); }
.inselflieger-game .if-panel button[data-a="play"], .inselflieger-game .if-panel button[data-a="do-login"] { background: var(--if-accent); border-color: var(--if-accent); color: #1a1205; }
.inselflieger-game .if-panel button[data-a="delete"] { background: none; border-color: transparent; color: #ff9a8a; font-size: 13px; padding: 4px; }
.inselflieger-game .if-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #d7e3ee; }
.inselflieger-game .if-panel input {
  all: unset; box-sizing: border-box; width: 100%;
  background: #fff; color: #111; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px;
  user-select: text; -webkit-user-select: text;
}
.inselflieger-game .if-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inselflieger-game .if-board ol { margin: 0; padding-left: 22px; color: #e8f0f7; font-size: 14px; }
.inselflieger-game .if-board .if-empty { list-style: none; margin-left: -22px; color: #a9bccd; }
.inselflieger-game .if-help { margin: 0; font-size: 13.5px; color: #d7e3ee; }
.inselflieger-game .if-help dt { font-weight: 700; color: var(--if-accent); margin-top: 6px; }
.inselflieger-game .if-help dd { margin: 0; }

@media (max-width: 520px) {
  .inselflieger-game .if-hud { max-width: calc(100% - 20px); top: calc(60px + env(safe-area-inset-top, 0px)); }
  .inselflieger-game .if-hud span { font-size: 12px; padding: 3px 7px; }
  .inselflieger-game .if-stick { width: 120px; height: 120px; }
  .inselflieger-game .if-yaw button { width: 48px; height: 48px; line-height: 44px; }
}

/* Cockpit + Bordsysteme (ab 0.3.0) */
.inselflieger-game .if-cockpit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.inselflieger-game .if-hud span.is-warn { background: #c22a1c; font-weight: 700; }
.inselflieger-game .if-sys {
  position: absolute; left: calc(10px + env(safe-area-inset-left, 0px)); top: calc(46px + env(safe-area-inset-top, 0px));
  display: flex; flex-wrap: wrap; gap: 5px; max-width: calc(100% - 20px);
}
.inselflieger-game .if-sys button {
  display: flex; flex-direction: column; align-items: center; min-width: 62px;
  background: var(--if-bg); border: 1px solid transparent; border-radius: 8px; padding: 3px 7px; font-size: 11px; line-height: 1.25;
}
.inselflieger-game .if-sys button b { font-weight: 600; color: #b9c8d6; }
.inselflieger-game .if-sys button span { font-weight: 700; font-size: 12.5px; }
.inselflieger-game .if-sys button.is-on span { color: #6fe08a; }
.inselflieger-game .if-sys button.is-sel { border-color: var(--if-accent); box-shadow: 0 0 0 2px var(--if-accent); }
.inselflieger-game.is-menu .if-sys { display: none; }
.inselflieger-game .if-yaw button[data-brake] { font-size: 17px; font-weight: 700; }
.inselflieger-game.is-heli .if-yaw button[data-brake] { display: none; }
.inselflieger-game.is-heli .if-thr-mid { top: 41%; }
.inselflieger-game .if-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.inselflieger-game .if-maps button { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.inselflieger-game .if-maps small { font-weight: 400; font-size: 12px; color: #b9c8d6; }
@media (max-width: 520px) {
  .inselflieger-game .if-sys { top: calc(118px + env(safe-area-inset-top, 0px)); }
  .inselflieger-game .if-sys button { min-width: 54px; padding: 2px 5px; }
  .inselflieger-game .if-maps { grid-template-columns: 1fr; }
}

/* Hauptmenü links über der 3D-Szene, Ladebildschirm (ab 0.6.0) */
.inselflieger-game .if-overlay { justify-content: flex-start; align-items: stretch; padding: 0; background: linear-gradient(90deg, rgba(6, 12, 20, .82) 0, rgba(6, 12, 20, .55) 320px, rgba(6, 12, 20, 0) 620px); }
.inselflieger-game .if-panel { width: min(360px, 100%); max-height: none; border: 0; border-radius: 0; background: none; padding: calc(22px + env(safe-area-inset-top, 0px)) 22px 22px calc(22px + env(safe-area-inset-left, 0px)); justify-content: center; }
.inselflieger-game .if-panel h2 { font-size: 30px; letter-spacing: .01em; margin-bottom: 6px; }
.inselflieger-game .if-panel button { text-align: left; background: rgba(255, 255, 255, .08); }
.inselflieger-game .if-panel button[data-a="play"], .inselflieger-game .if-panel button[data-a="do-login"] { text-align: center; }
.inselflieger-game .if-panel button[data-a="landing"] { background: rgba(255, 176, 32, .22); border-color: var(--if-accent); }
.inselflieger-game .if-panel button[data-a="pick"] { display: flex; flex-direction: column; gap: 3px; }
.inselflieger-game .if-panel button[data-a="pick"] small { font-weight: 400; font-size: 12px; color: #b9c8d6; }
.inselflieger-game .if-maps { grid-template-columns: 1fr; }
.inselflieger-game .if-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 30%, #1d3550 0, #0a121c 70%); z-index: 5; }
.inselflieger-game .if-loading.is-on { display: flex; }
.inselflieger-game .if-loading-box { width: min(420px, 86%); text-align: center; }
.inselflieger-game .if-loading-box h2 { margin: 0 0 14px; font-size: 34px; color: #fff; }
.inselflieger-game .if-loading-box p { margin: 0; color: #c9d6e2; font-size: 14px; }
.inselflieger-game .if-loading-bar { height: 6px; margin: 12px 0 16px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.inselflieger-game .if-loading-bar { height: 10px; border-radius: 5px; position: relative; }
.inselflieger-game .if-loading-bar i { display: block; height: 100%; width: 5%; background: var(--if-accent); transition: width .6s; border-radius: 5px; }
/* läuft auch dann sichtbar weiter, wenn ein Schritt länger dauert */
.inselflieger-game .if-loading-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: if-load-run 1.3s linear infinite; }
@keyframes if-load-run { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .inselflieger-game .if-loading-bar::after { animation-duration: 4s; } }
.inselflieger-game .if-sys-pm { display: inline-flex; align-items: stretch; gap: 2px; }
.inselflieger-game .if-sys .if-sys-pm button { min-width: 34px; padding-left: 6px; padding-right: 6px; }
.inselflieger-game .if-sys .if-sys-pm button.if-sys-mid { min-width: 58px; }
.inselflieger-game .if-sys .if-sys-pm button:first-child { border-radius: 10px 3px 3px 10px; }
.inselflieger-game .if-sys .if-sys-pm button:last-child { border-radius: 3px 10px 10px 3px; }
.inselflieger-game .if-sys .if-sys-pm button.if-sys-mid { border-radius: 3px; }
.inselflieger-game .if-sys-pm.is-on .if-sys-v { color: #6fe08a; }
.inselflieger-game .if-sys-pm.is-sel button { border-color: var(--if-accent); }
.inselflieger-game .if-loading-tip { font-size: 13px !important; color: #9fb0c0 !important; }
@media (max-width: 520px) {
  .inselflieger-game .if-overlay { background: linear-gradient(180deg, rgba(6, 12, 20, .25) 0, rgba(6, 12, 20, .85) 38%); align-items: flex-end; }
  .inselflieger-game .if-panel { width: 100%; justify-content: flex-end; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 100%; }
  .inselflieger-game .if-panel h2 { font-size: 24px; }
  .inselflieger-game .if-panel button { padding: 9px 12px; }
}

/* Quellenvermerk für Luftbilder (ab 0.7.0) */
.inselflieger-game .if-attr { position: absolute; right: calc(8px + env(safe-area-inset-right, 0px)); bottom: calc(6px + env(safe-area-inset-bottom, 0px)); font-size: 11px; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; }
.inselflieger-game .if-attr:empty { display: none; }

/* Menü passt auch auf niedrige Bildschirme (Handy quer) und bleibt scrollbar */
.inselflieger-game.is-full, .inselflieger-game.is-page { min-height: 0; }
.inselflieger-game .if-panel { justify-content: flex-start; overflow-y: auto; touch-action: pan-y; }
.inselflieger-game .if-panel > :first-child { margin-top: auto; }
.inselflieger-game .if-panel > :last-child { margin-bottom: auto; }
@media (max-width: 520px) { .inselflieger-game .if-panel > :last-child { margin-bottom: 0; } }

/* Hangar mit allen Mustern (ab 0.8.0) */
.inselflieger-game .if-hangar { display: flex; flex-direction: column; gap: 12px; }
/* Hangar mit Rubriken und Karteikarten (ab 0.9.17) */
.inselflieger-game .if-panel[data-p="hangar"] { width: min(1120px, 100%); padding-right: 118px; }
.inselflieger-game .if-tabs { display: flex; gap: 8px; position: sticky; top: -20px; z-index: 2; background: rgba(14, 26, 40, .97); padding: 6px 0; }
.inselflieger-game .if-tabs button { flex: 1; font-size: 16px; }
.inselflieger-game .if-tabs button.is-cur { background: var(--if-accent); border-color: var(--if-accent); color: #1a1205; }
.inselflieger-game .if-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; align-items: start; }
.inselflieger-game .if-card {
  display: flex; flex-direction: column; gap: 6px; padding: 0 14px 14px; border-radius: 6px; color: #23272e;
  background: #f5f0e1 repeating-linear-gradient(#f5f0e1 0 25px, #cfd8e6 25px 26px); background-position: 0 44px;
  border: 1px solid #d9d0b8; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); text-align: left;
}
.inselflieger-game .if-card.is-cur { outline: 3px solid var(--if-accent); outline-offset: 1px; }
.inselflieger-game .if-card header { display: flex; justify-content: space-between; gap: 8px; margin: 0 -14px; padding: 9px 14px 7px; background: #f5f0e1; border-bottom: 2px solid #c8483c; border-radius: 6px 6px 0 0; font: 700 12.5px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; color: #7a2b23; }
.inselflieger-game .if-card img { width: 100%; height: auto; border-radius: 4px; background: linear-gradient(#bcd6ee, #e9f0f5 62%, #cdd3c4 62%, #b9c0ae); }
.inselflieger-game .if-panel .if-card h3 { margin: 4px 0 0; font-size: 19px; line-height: 1.2; color: #1c2430; }
.inselflieger-game .if-panel .if-card p { color: #3a4350; font-size: 13.5px; line-height: 1.4; }
.inselflieger-game .if-panel .if-card .if-card-mk { font-weight: 700; color: #7a2b23; font-size: 12.5px; }
.inselflieger-game .if-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 4px 0; }
.inselflieger-game .if-card dl div { min-width: 0; display: flex; flex-direction: column; padding: 3px 0; border-bottom: 1px dotted #a9a08a; }
.inselflieger-game .if-card dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #6b6557; }
.inselflieger-game .if-card dd { margin: 0; font: 600 13.5px/1.25 ui-monospace, Menlo, Consolas, monospace; color: #1c2430; }
.inselflieger-game .if-panel .if-card .if-card-note { font-style: italic; flex: 1; }
.inselflieger-game .if-panel .if-card button[data-a="pick"] { background: #23364d; border-color: #23364d; color: #fff; margin-top: 4px; }
.inselflieger-game .if-panel .if-card button[data-a="pick"].is-cur { background: var(--if-accent); border-color: var(--if-accent); color: #1a1205; }
@media (max-width: 520px) { .inselflieger-game .if-cards { grid-template-columns: 1fr; } }
.inselflieger-game .if-hangar h3 { margin: 6px 0 0; }
.inselflieger-game .if-panel button[data-a="pick"] { padding: 8px 12px; }
.inselflieger-game .if-panel button[data-a="pick"].is-cur { border-color: var(--if-accent); background: rgba(255, 176, 32, .2); }

/* Karte ohne Daten (ab 0.9.1) */
.inselflieger-game .if-panel button.is-off { opacity: .6; cursor: default; border-style: dashed; }
.inselflieger-game .if-panel .if-small a { color: var(--if-accent); }

/* Navigationstablet (ab 0.9.4) */
.inselflieger-game .if-nav { position: absolute; right: calc(10px + env(safe-area-inset-right, 0px)); top: 112px; width: clamp(104px, 21vmin, 190px); aspect-ratio: 1; border: 3px solid #1b1f24; border-radius: 12px; overflow: hidden; background: #1b1f24; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); z-index: 4; touch-action: none; }
.inselflieger-game .if-nav[hidden] { display: none; }
.inselflieger-game .if-nav canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.inselflieger-game .if-nav-bar { display: none; }
.inselflieger-game .if-nav.is-big { right: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 86vh, 760px); border-width: 8px; border-radius: 20px; z-index: 30; }
.inselflieger-game .if-nav.is-big canvas { cursor: crosshair; }
.inselflieger-game .if-nav.is-big .if-nav-bar { display: flex; gap: 5px; position: absolute; left: 6px; top: 6px; right: 40px; flex-wrap: nowrap; }
.inselflieger-game .if-nav-bar button { min-width: 40px; min-height: 40px; padding: 0 9px; white-space: nowrap; border: 0; border-radius: 10px; background: rgba(15, 20, 26, .82); color: #fff; font: 600 14px/1 system-ui, sans-serif; cursor: pointer; }
.inselflieger-game .if-nav-bar button:focus-visible { outline: 2px solid var(--if-accent); outline-offset: 2px; }
.inselflieger-game.is-menu .if-nav { display: none; }
.inselflieger-game.is-touch .if-nav:not(.is-big) { right: calc(96px + env(safe-area-inset-right, 0px)); top: 100px; width: clamp(92px, 26vmin, 150px); }

/* Hangar kompakt (ab 0.9.19): kleine Karten, Einzelheiten zum Aufklappen, Zurück rechts in der Bildmitte */
.inselflieger-game .if-card { padding: 0 10px 10px; gap: 4px; }
.inselflieger-game .if-card header { margin: 0 -10px; padding: 6px 10px 5px; font-size: 11px; }
.inselflieger-game .if-panel .if-card h3 { font-size: 15.5px; margin-top: 2px; }
.inselflieger-game .if-panel .if-card .if-card-mk { font-size: 11px; }
.inselflieger-game .if-card dl { margin: 2px 0; gap: 0 8px; }
.inselflieger-game .if-card dt { font-size: 9.5px; }
.inselflieger-game .if-card dd { font-size: 12px; }
.inselflieger-game .if-card details { font-size: 12px; }
.inselflieger-game .if-card summary { cursor: pointer; padding: 5px 0; font-weight: 700; color: #7a2b23; }
.inselflieger-game .if-panel .if-card p { font-size: 12px; }
.inselflieger-game .if-panel .if-card button[data-a="pick"] { padding: 8px 10px; }
.inselflieger-game .if-panel button.if-back-side {
  position: fixed; right: calc(14px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 5;
  padding: 18px 16px; font-size: 17px; border-radius: 14px; background: var(--if-accent); border-color: var(--if-accent); color: #1a1205; box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
}
@media (max-width: 640px) {
  .inselflieger-game .if-panel[data-p="hangar"] { padding-right: 20px; padding-bottom: 76px; }
  .inselflieger-game .if-panel button.if-back-side { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); right: 12px; left: 12px; transform: none; padding: 13px; }
  .inselflieger-game .if-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Autopilot und Route im Navigationsgerät */
.inselflieger-game .if-nav-ap { display: none; }
.inselflieger-game .if-nav.is-big .if-nav-ap { display: flex; flex-direction: column; gap: 5px; position: absolute; left: 6px; right: 6px; bottom: 30px; }
.inselflieger-game .if-nav-ap > div { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.inselflieger-game .if-nav-ap button { min-width: 38px; min-height: 38px; padding: 0 9px; white-space: nowrap; border: 0; border-radius: 10px; background: rgba(15, 20, 26, .84); color: #fff; font: 600 13px/1 system-ui, sans-serif; cursor: pointer; }
.inselflieger-game .if-nav-ap button.is-on { background: #1379a8; }
.inselflieger-game .if-nav-ap button.if-ap-on.is-on { background: #17803d; }
.inselflieger-game .if-nav-ap button:focus-visible { outline: 2px solid var(--if-accent); outline-offset: 2px; }
.inselflieger-game .if-nav-ap span, .inselflieger-game .if-nav-ap b { color: #fff; font: 600 13px/1 system-ui, sans-serif; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.inselflieger-game .if-nav-ap b { min-width: 62px; text-align: center; }

/* Hinweise am Ort und Checkliste zum Abstellen */
.inselflieger-game .if-tip { position: absolute; left: calc(10px + env(safe-area-inset-left, 0px)); top: 150px; width: min(330px, 46vw); padding: 10px 12px; border-radius: 12px; background: rgba(12, 18, 24, .84); color: #e8f0f7; font: 500 13px/1.35 system-ui, sans-serif; border-left: 4px solid #ffcf40; z-index: 6; pointer-events: none; }
.inselflieger-game .if-tip[hidden] { display: none; }
.inselflieger-game .if-tip b { display: block; margin-bottom: 4px; color: #fff; font-size: 14px; }
.inselflieger-game .if-tip span { display: block; margin-top: 3px; }
.inselflieger-game .if-tip.is-check { border-left-color: #3cff7a; }
.inselflieger-game .if-tip .is-ok { color: #8fe3a6; }
.inselflieger-game .if-tip .is-next { color: #fff; font-weight: 700; }
.inselflieger-game.is-menu .if-tip { display: none; }
.inselflieger-game.is-touch .if-tip { top: 108px; width: min(300px, 44vw); font-size: 12px; }
.inselflieger-game .if-hud [data-h="pts"]:empty { display: none; }

/* Autopilot: Auswahl nach dem Tippen auf die Karte und Leiste im Flug */
.inselflieger-game .if-nav-pick { display: none; }
.inselflieger-game .if-nav.is-big .if-nav-pick:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; position: absolute; left: 6px; right: 6px; top: 56px; padding: 8px; border-radius: 12px; background: rgba(12, 18, 24, .9); }
.inselflieger-game .if-nav-pick b { flex: 1 1 100%; color: #fff; font: 700 14px/1.2 system-ui, sans-serif; }
.inselflieger-game .if-nav-pick button { min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: #2a3440; color: #fff; font: 600 14px/1 system-ui, sans-serif; cursor: pointer; }
.inselflieger-game .if-nav-pick button[data-pk="go"] { background: #17803d; }
.inselflieger-game .if-apbar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 8px; align-items: center; max-width: min(92vw, 720px); padding: 6px 8px 6px 12px; border-radius: 12px; background: rgba(12, 18, 24, .86); color: #fff; font: 600 13px/1.25 system-ui, sans-serif; z-index: 7; border-left: 4px solid #35d6ff; }
.inselflieger-game .if-apbar[hidden] { display: none; }
.inselflieger-game .if-apbar button { min-height: 38px; padding: 0 10px; white-space: nowrap; border: 0; border-radius: 9px; background: #2a3440; color: #fff; font: 600 13px/1 system-ui, sans-serif; cursor: pointer; }
.inselflieger-game .if-apbar button[data-apb="off"] { background: #a33; }
.inselflieger-game.is-menu .if-apbar { display: none; }

/* Kräfteanzeige: was das Flugzeug gerade von selbst rollen lässt */
.inselflieger-game .if-force { position: absolute; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(560px, calc(100% - 40px)); background: rgba(20, 28, 40, 0.82); color: #fff; padding: 7px 14px; border-radius: 12px; font-size: 14px; line-height: 1.35; text-align: center; pointer-events: none; z-index: 6; border-left: 4px solid #f5b400; }
.inselflieger-game .if-force.is-warn { background: #c22a1c; border-left-color: #fff; font-weight: 700; }
.inselflieger-game .if-force[hidden] { display: none; }
.inselflieger-game.is-menu .if-force { display: none; }

/* Einstellungen Ton und Grafik */
.inselflieger-game .if-opts { display: flex; flex-direction: column; gap: 10px; }
.inselflieger-game .if-panel label.if-opt { flex-direction: column; gap: 6px; font-size: 14px; }
.inselflieger-game .if-opt span b { float: right; color: var(--if-accent); }
.inselflieger-game .if-panel .if-opt input[type=range] { all: revert; width: 100%; accent-color: var(--if-accent); height: 28px; }
.inselflieger-game .if-opt-row { display: grid; grid-template-columns: 1fr auto minmax(120px, auto) auto; align-items: center; gap: 6px; font-size: 14px; color: #d7e3ee; }
.inselflieger-game .if-opt-row b { text-align: center; font-size: 13.5px; color: #fff; }
.inselflieger-game .if-panel .if-opt-row button { padding: 6px 12px; min-width: 40px; }
@media (max-width: 460px) { .inselflieger-game .if-opt-row { grid-template-columns: auto minmax(0, 1fr) auto; } .inselflieger-game .if-opt-row > span { grid-column: 1 / -1; } }

/* Sehenswürdigkeiten im Bild */
.inselflieger-game .if-lmlayer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.inselflieger-game .if-lm { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.inselflieger-game .if-lm[hidden] { display: none; }
.inselflieger-game .if-lm i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #ffc83d; border: 2px solid rgba(20, 28, 40, .85); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.inselflieger-game .if-lm div { display: none; position: absolute; left: 0; bottom: 14px; transform: translateX(-50%); background: rgba(20, 28, 40, .86); color: #fff; padding: 6px 10px 7px; border-radius: 10px; border-bottom: 3px solid #ffc83d; min-width: 140px; max-width: 240px; text-align: center; line-height: 1.25; white-space: normal; }
.inselflieger-game .if-lm div::after { content: ''; position: absolute; left: 50%; bottom: -10px; margin-left: -1px; width: 2px; height: 8px; background: #ffc83d; }
.inselflieger-game .if-lm b { display: block; font-size: 14px; }
.inselflieger-game .if-lm span { display: block; font-size: 11.5px; color: #cfdbe6; margin-top: 2px; }
.inselflieger-game .if-lm.is-near div { display: block; }
.inselflieger-game .if-lm.is-near i { width: 14px; height: 14px; left: -7px; top: -7px; }

/* Bilder in den Schildern der Sehenswürdigkeiten, Werbetafel */
.inselflieger-game .if-lm img { display: block; width: 100%; max-height: 120px; object-fit: cover; border-radius: 6px; margin: 0 0 6px; }
.inselflieger-game .if-lm img[hidden] { display: none; }
.inselflieger-game .if-lm small { display: block; font-size: 9.5px; color: #93a6b8; margin-top: 3px; }
.inselflieger-game .if-lm small:empty { display: none; }
.inselflieger-game .if-ad i { background: #ff7a1a; }
.inselflieger-game .if-ad div { min-width: 120px; max-width: 170px; border-bottom-color: #ff7a1a; padding: 5px 8px 6px; }
.inselflieger-game .if-ad div::after { background: #ff7a1a; }
.inselflieger-game .if-ad img { max-height: 46px; object-fit: contain; background: #fff; padding: 3px; margin-bottom: 4px; }
.inselflieger-game .if-ad b { font-size: 13px; }
.inselflieger-game .if-ad span { font-size: 10.5px; }
.inselflieger-game .if-ad em { display: none; font-style: normal; font-size: 11px; color: #ffd7b8; margin-top: 3px; }
.inselflieger-game .if-ad.is-near div { max-width: 230px; }
.inselflieger-game .if-ad.is-near img { max-height: 80px; }
.inselflieger-game .if-ad.is-near em { display: block; }

/* Spirit of St. Louis: vorn nur Tankwand, Blick nach vorn durch das Periskop */
.inselflieger-game .if-nofwd { display: none; position: absolute; left: 18%; right: 18%; top: 0; height: 64%; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, #4a4d50, #2f3133 70%, #26282a); box-shadow: inset 0 -6px 18px rgba(0,0,0,.6); border-radius: 0 0 18px 18px; }
.inselflieger-game.is-nofwd .if-nofwd { display: block; }
.inselflieger-game .if-nofwd::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 46px); border-radius: inherit; }
.inselflieger-game .if-nofwd i { position: absolute; left: 6%; top: 10%; width: 16%; aspect-ratio: 1.6; border: 6px solid #15171a; border-radius: 8px; box-shadow: 0 0 0 2px #6b6f73; background: transparent; }
.inselflieger-game .if-nofwd span { position: absolute; left: 6%; top: calc(10% + 2px); transform: translateY(-120%); font-size: 11px; color: #c9ced3; letter-spacing: .04em; }

/* Anzeigen Ballon und Luftschiff */
.inselflieger-game .if-bal { position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 20px); z-index: 4; pointer-events: none; }
.inselflieger-game .if-bal[hidden] { display: none; }
.inselflieger-game .if-bal > div { position: relative; min-width: 92px; padding: 5px 9px 7px; border-radius: 10px; background: rgba(18,24,32,.78); color: #eef3f7; overflow: hidden; }
.inselflieger-game .if-bal small { display: block; font-size: 10px; color: #9fb0c0; text-transform: uppercase; letter-spacing: .05em; }
.inselflieger-game .if-bal b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inselflieger-game .if-bal i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #ffb23f; }
.inselflieger-game .if-bal .is-warn b { color: #ff6b5b; }
.inselflieger-game .if-bal .is-warn i { background: #ff6b5b; }
@media (max-width: 640px) { .inselflieger-game .if-bal > div { min-width: 74px; padding: 4px 7px 6px; } .inselflieger-game .if-bal b { font-size: 12px; } }
