.records > span { display: contents; }
.chip .rank { width: auto; height: auto; border: 0; box-shadow: none; font-style: normal; font-size: 20px; line-height: 1; background: none; }

.c-extra { display: grid; gap: 8px; }
.c-extra:empty { display: none; }
.c-extra p { margin: 0; background: #ede9fe; color: #3b0764; border-radius: 16px; padding: 12px 14px; font-size: 16px; line-height: 1.35; }
.pilot-btn {
  background: linear-gradient(135deg, #f97316, #ec4899); color: #fff; border-radius: 18px;
  padding: 16px; font-size: 19px; font-weight: 900; box-shadow: 0 6px 18px rgba(236, 72, 153, .35);
}

.dock {
  position: fixed; z-index: 820; left: 72px; bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; gap: 10px;
}
.dock button {
  display: grid; justify-items: center; gap: 2px; min-width: 92px; padding: 10px 12px 8px;
  background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); font-size: 14px; font-weight: 900;
}
.dock button span { font-size: 30px; line-height: 1; }
.dock button b { font-size: 12px; color: var(--muted); }
.dock button b:empty { display: none; }
@media (max-width: 899px) {
  .dock { left: 8px; right: 8px; justify-content: space-between; gap: 6px; }
  .dock button { flex: 1; min-width: 0; padding: 8px 4px 6px; font-size: 12px; }
  .dock button span { font-size: 26px; }
  body.card-open .dock { display: none; }
  .leaflet-bottom.leaflet-left { bottom: 92px; }
}

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 1500; background: rgba(15, 23, 42, .45);
  display: grid; place-items: center; padding: 16px;
}
.sheet {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: 24px 24px 28px;
  animation: card-in .45s cubic-bezier(.34, 1.4, .64, 1);
}
.sheet h3 { margin: 22px 0 10px; font-size: 20px; font-weight: 900; }
.sheet-title { margin: 0 56px 6px 0; font-size: 28px; font-weight: 900; line-height: 1.15; }
.sheet-lead { margin: 0 0 16px; font-size: 17px; font-weight: 700; color: #334155; line-height: 1.4; }
.sheet-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); font-weight: 700; }
.big-number { margin: 6px 0; font-size: 56px; font-weight: 900; color: #7c3aed; }
.bar { height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: #facc15; }
@media (max-width: 600px) {
  .sheet-backdrop { padding: 0; align-items: end; }
  .sheet { border-radius: 28px 28px 0 0; max-height: 92vh; padding: 20px 16px 28px; }
  .sheet-title { font-size: 24px; }
}

.toasts {
  position: fixed; z-index: 1800; left: 50%; top: max(84px, calc(env(safe-area-inset-top) + 72px)); translate: -50% 0;
  display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 20px;
  box-shadow: var(--shadow); padding: 12px 16px; animation: toast-in .5s cubic-bezier(.34, 1.56, .64, 1);
  transition: opacity .5s, transform .5s;
}
.toast.big { background: linear-gradient(135deg, #fef9c3, #fde68a); padding: 16px 18px; }
.toast.out { opacity: 0; transform: translateY(-12px); }
.toast b { display: block; font-size: 17px; font-weight: 900; }
.toast small { display: block; font-size: 14px; font-weight: 700; color: #475569; line-height: 1.35; margin-top: 2px; }
.t-emoji { font-size: 34px; line-height: 1; flex: none; }
@keyframes toast-in { from { transform: translateY(-20px) scale(.9); opacity: 0; } }

.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.people-list li { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 14px; padding: 8px 12px; font-size: 15px; }
.people-list i { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.people-list span { margin-left: auto; font-weight: 900; }

.pp-map { height: 300px; border-radius: 20px; overflow: hidden; background: #bfdbfe; }
.pp-conts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 16px; margin: 16px 0; }
.pp-cont { display: grid; grid-template-columns: 1fr 80px auto; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.pp-cont b { font-size: 13px; color: var(--muted); }
.pp-fact { display: flex; gap: 14px; align-items: flex-start; background: #fef9c3; border-radius: 20px; padding: 14px 16px; margin-bottom: 16px; }
.pp-fact .pp-flag { font-size: 54px; line-height: 1; }
.pp-fact b { font-size: 20px; }
.pp-fact p { margin: 4px 0; font-size: 16px; line-height: 1.4; }
.pp-fact small { font-size: 13px; color: var(--muted); font-weight: 700; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 14px; }
.stamp {
  display: grid; justify-items: center; gap: 2px; padding: 12px 6px; background: #fff;
  border: 3px dashed var(--c); border-radius: 50%; aspect-ratio: 1; align-content: center;
  transform: rotate(var(--rot)); transition: transform .2s; color: var(--c);
}
.stamp:hover { transform: rotate(0) scale(1.06); }
.s-flag { font-size: 40px; line-height: 1; }
.s-name { font-size: 12px; font-weight: 900; text-align: center; line-height: 1.1; }
.s-date { font-size: 11px; font-weight: 800; opacity: .8; }

.quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quests li { display: flex; align-items: center; gap: 14px; background: var(--soft); border-radius: 20px; padding: 14px 16px; font-size: 18px; }
.quests li.done { background: #dcfce7; }
.quests li.done .q-text { text-decoration: line-through; text-decoration-thickness: 2px; color: #166534; }
.q-emoji { font-size: 32px; line-height: 1; }
.q-check { margin-left: auto; font-size: 26px; }
.rank-card { display: flex; align-items: center; gap: 16px; margin-top: 16px; background: linear-gradient(135deg, #e0f2fe, #ede9fe); border-radius: 22px; padding: 16px 18px; }
.rank-card > div { flex: 1; display: grid; gap: 6px; }
.rank-card b { font-size: 22px; }
.rank-card small { font-size: 14px; font-weight: 800; color: #334155; }
.rank-emoji { font-size: 50px; line-height: 1; }
.how, .ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 16px; font-weight: 800; }
.ranks li { opacity: .45; }
.ranks li.got { opacity: 1; }
.ranks small { color: var(--muted); margin-left: 6px; }

.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rec { display: grid; gap: 2px; background: var(--soft); border-radius: 20px; padding: 14px 16px; }
.rec-emoji { font-size: 32px; }
.rec small { font-size: 13px; font-weight: 800; color: var(--muted); }
.rec b { font-size: 26px; font-weight: 900; }
.rec-who { font-size: 13px; font-weight: 800; }
.rec-when { font-size: 12px; font-weight: 700; color: var(--muted); }
.rec-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.rec-stats div { background: #ede9fe; border-radius: 18px; padding: 12px; text-align: center; }
.rec-stats b { display: block; font-size: 24px; font-weight: 900; color: #6d28d9; }
.rec-stats small { font-size: 12px; font-weight: 800; color: #4c1d95; }
.experiment { margin-top: 14px; background: #ecfccb; border-radius: 20px; padding: 4px 18px 14px; }
.experiment p { margin: 0; font-size: 16px; line-height: 1.45; }

.airport-icon { background: none; border: 0; text-align: center; }
.airport-icon span {
  display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 12px;
  font-size: 15px; font-weight: 900; box-shadow: 0 4px 12px rgba(15, 23, 42, .3); white-space: nowrap;
}
.pl-num {
  position: absolute; left: -12px; top: -12px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 900; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .35); pointer-events: none;
}
.atc-panel {
  position: fixed; z-index: 860; left: var(--gap); top: 150px; width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 260px); overflow-y: auto; background: var(--paper); border-radius: 26px;
  box-shadow: var(--shadow); padding: 18px 18px 16px; animation: card-in .45s cubic-bezier(.34, 1.4, .64, 1);
}
.atc-panel h3 { margin: 0 52px 8px 0; font-size: 21px; font-weight: 900; }
.atc-panel p { margin: 0 0 10px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.atc-close { top: 10px; right: 10px; }
.atc-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.atc-pick, .atc-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--soft); border-radius: 18px; padding: 10px 12px; border: 3px solid transparent; }
.atc-pick.on { border-color: var(--ink); background: #fef9c3; }
.atc-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .2); }
.atc-name { display: grid; gap: 1px; flex: 1; min-width: 0; }
.atc-name b { font-size: 16px; }
.atc-name small { font-size: 12px; font-weight: 700; color: var(--muted); }
.atc-num { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--ink); color: #fff; font-size: 20px; font-weight: 900; display: grid; place-items: center; }
.atc-status { font-size: 13px; font-weight: 900; white-space: nowrap; }
.atc-hint { font-size: 14px !important; color: var(--muted); }
.atc-actions { display: flex; gap: 10px; }
.atc-actions .speak { flex: 1; }
.atc-actions .speak:disabled { opacity: .35; cursor: default; }
.atc-timer { font-variant-numeric: tabular-nums; color: var(--muted); }
.atc-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.atc-line small { width: 100%; color: var(--muted); }
.atc-res { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 14px; }
.atc-res b { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.atc-res i { width: 16px; height: 16px; border-radius: 50%; }
@media (max-width: 899px) {
  .atc-panel { top: auto; bottom: 100px; left: 8px; right: 8px; width: auto; max-height: 50vh; }
}

.cockpit { position: fixed; inset: 0; z-index: 1600; background: #0f172a; display: grid; grid-template-rows: 52fr 48fr; color: #f8fafc; }
.ck-window { position: relative; overflow: hidden; border-bottom: 6px solid #020617; }
.ck-world { position: absolute; left: -100%; top: -100%; width: 300%; height: 300%; transform-origin: 50% 50%; will-change: transform; }
.ck-sky { position: absolute; left: 0; right: 0; top: 0; height: 50%; }
.ck-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; border-top: 3px solid rgba(255, 255, 255, .8); }
.ck-deck { position: absolute; left: 0; right: 0; top: 50%; height: 8%; background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, .55)); opacity: 0; }
#ck-cloud-layer { position: absolute; left: 33.33%; top: 33.33%; width: 33.33%; height: 33.33%; }
.ck-cloud {
  position: absolute; width: 140px; height: 46px; background: #fff; border-radius: 60px; will-change: transform, left, top, opacity;
}
.ck-cloud::before, .ck-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.ck-cloud::before { width: 64px; height: 64px; top: -32px; left: 22px; }
.ck-cloud::after { width: 80px; height: 80px; top: -44px; right: 18px; }
.ck-window.in-cloud::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(241, 245, 249, .55); pointer-events: none; }
.ck-symbol, .ck-hud, .ck-msg, .ck-buttons { z-index: 3; }
.ck-buttons .tool { color: var(--ink); }
.ck-frame {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  border: 26px solid #1e293b; border-radius: 0 0 60px 60px;
  background: linear-gradient(#1e293b, #1e293b) center / 18px 100% no-repeat;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .45);
}
.ck-symbol { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 0; pointer-events: none; }
.ck-symbol i { width: 70px; height: 7px; background: #facc15; border-radius: 4px; box-shadow: 0 0 0 2px #0f172a; }
.ck-symbol b { width: 16px; height: 16px; margin: 0 18px; border-radius: 50%; background: #facc15; box-shadow: 0 0 0 2px #0f172a; }
.ck-hud {
  position: absolute; right: 40px; top: 108px; display: grid; justify-items: end; gap: 3px;
  background: rgba(15, 23, 42, .55); border-radius: 16px; padding: 8px 14px; text-align: right; max-width: min(380px, 34%);
}
.ck-hud b { font-size: 15px; }
.ck-hud span { font-size: 13px; font-weight: 800; color: #fde68a; }
.ck-msg { position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: var(--paper); color: var(--ink); border-radius: 22px; padding: 18px 24px; font-size: 20px; text-align: center; max-width: 80%; }
.ck-buttons { position: absolute; right: 40px; top: 40px; display: flex; gap: 8px; }
.ck-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 14px; background: linear-gradient(#1e293b, #0f172a); min-height: 0; }
.gauge { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; background: #020617; border-radius: 22px; padding: 10px; min-height: 0; }
.gauge h4 { margin: 0; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.gauge svg { width: 100%; height: 100%; max-height: 100%; min-height: 0; }
.gauge p { margin: 4px 0 0; font-size: 15px; font-weight: 800; text-align: center; color: #e2e8f0; }
.g-face { fill: #0b1220; stroke: #334155; stroke-width: 4; }
.g-num { fill: #cbd5e1; font-size: 13px; font-weight: 800; text-anchor: middle; }
.g-emoji { font-size: 16px; text-anchor: middle; }
.g-needle { stroke: #f97316; stroke-width: 5; stroke-linecap: round; }
.g-big { fill: #fff; font-size: 24px; font-weight: 900; text-anchor: middle; }
.g-unit { fill: #94a3b8; font-size: 13px; font-weight: 800; text-anchor: middle; }
.t-label { fill: #e2e8f0; font-size: 13px; font-weight: 800; }
.t-plane { font-size: 22px; }
.c-letter { font-size: 20px; font-weight: 900; text-anchor: middle; }
.c-plane { font-size: 26px; text-anchor: middle; transform: rotate(-45deg); transform-origin: 100px 100px; }
.radar-face { fill: #022c22; stroke: #14532d; }
.r-ring { fill: none; stroke: #166534; stroke-width: 1.5; }
.r-sweep { transform-origin: 100px 100px; animation: spin 4s linear infinite; }
.r-arrow { fill: #fff; font-size: 12px; font-weight: 900; }
@media (max-width: 899px) {
  .cockpit { grid-template-rows: 40fr 60fr; }
  .ck-panel { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 8px; }
  .ck-frame { border-width: 14px; border-radius: 0 0 36px 36px; }
  .ck-hud { top: 76px; right: 22px; max-width: 64%; padding: 6px 10px; }
  .ck-hud b { font-size: 14px; }
  .ck-buttons { right: 22px; top: 22px; }
  .gauge p { font-size: 12px; }
  .ck-symbol i { width: 44px; }
}

.c-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.v-box, .ck-video { position: absolute; inset: 0; overflow: hidden; }
.v-box iframe, .ck-video iframe { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 0; pointer-events: none; }
.v-cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 28px 70px 10px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65)); pointer-events: none;
}
.v-cap b { font-size: 16px; font-weight: 900; }
.v-cap small { font-size: 11px; font-weight: 700; opacity: .9; }
.v-sound { position: absolute; z-index: 3; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); font-size: 22px; }
.ck-window.video .ck-world, .ck-window.video .ck-frame, .ck-window.video .ck-symbol { display: none; }
.ck-window.video::after { display: none; }
.ck-scene { font-size: 12px; font-weight: 800; color: #e2e8f0; }
.ck-scene:empty { display: none; }

.tool.sound-toggle { position: relative; }
.sound-toggle[aria-pressed="false"]::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64%; height: 4px; border-radius: 2px;
  background: #ef4444; box-shadow: 0 0 0 2px #fff; transform: translate(-50%, -50%) rotate(-45deg); pointer-events: none;
}
.v-sound[aria-pressed="true"] { background: #fde68a; }

.v-wait {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 6px;
  padding: 16px 64px 16px 20px; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 40%, #1e3a8a, #0f172a);
}
.v-wait span { font-size: 34px; line-height: 1; animation: bump 2s ease-in-out infinite; }
.c-video.waiting .v-cap { display: none; }
.v-wait b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.v-wait small { max-width: 340px; font-size: 13px; font-weight: 700; line-height: 1.4; opacity: .9; }
.v-cap { z-index: 2; }
.v-sync { font-size: 13px !important; font-weight: 900 !important; color: #fde68a; opacity: 1 !important; font-variant-numeric: tabular-nums; }
.v-sync:empty { display: none; }
.cockpit .v-wait { padding: 110px 40px 20px; }
.cockpit .v-wait b { font-size: 30px; }
.cockpit .v-wait small { font-size: 15px; max-width: 460px; }

.route-btn {
  background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; border-radius: 18px;
  padding: 14px; font-size: 18px; font-weight: 900; box-shadow: 0 6px 18px rgba(37, 99, 235, .3);
}
.route-btn.on { background: var(--ink); box-shadow: none; }
.route-info { display: grid; gap: 6px; margin-top: -4px; background: #e0f2fe; color: #075985; border-radius: 16px; padding: 12px 14px; }
.route-info b { font-size: 16px; }
.route-info small { font-size: 13px; font-weight: 800; }
.ri-bar { height: 10px; border-radius: 999px; background: #bae6fd; overflow: hidden; }
.ri-bar i { display: block; height: 100%; border-radius: inherit; background: #0284c7; }
.route-pin { background: none; border: 0; }
.rp { position: absolute; left: 0; top: 0; }
.rp-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 4px solid #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .4); }
.rp-label {
  position: absolute; left: 0; bottom: 14px; translate: -50% 0; white-space: nowrap;
  background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 16px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .25);
}
.rp-label b { font-weight: 900; }
body.route-view .plane-icon .pl:not(.sel) { opacity: .12; transition: opacity .4s; }
@media (max-width: 899px) {
  body.route-view .card { max-height: 32vh; }
}
.loc-sheet { width: min(480px, 100%); display: grid; gap: 12px; }
.loc-sheet .sheet-lead { margin: 0; }
.loc-or { margin: 0; text-align: center; font-size: 14px; font-weight: 800; color: var(--muted); }
.loc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.loc-fields label { display: grid; gap: 4px; font-size: 14px; font-weight: 800; color: var(--muted); }
.loc-fields input {
  font: inherit; font-size: 18px; font-weight: 800; color: var(--ink); width: 100%;
  border: 3px solid #cbd5e1; border-radius: 14px; padding: 10px 12px; background: var(--paper);
}
.loc-fields input:focus { outline: none; border-color: #2563eb; }
.loc-err { margin: 0; min-height: 1em; font-size: 14px; font-weight: 800; color: #b91c1c; }
.loc-err:empty { display: none; }
.loc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.loc-alt {
  display: grid; place-items: center; text-align: center; background: var(--soft); color: var(--ink);
  border-radius: 18px; padding: 14px 10px; font-size: 16px; font-weight: 900; cursor: pointer;
}
.loc-skip { background: none; color: var(--muted); font-size: 14px; font-weight: 800; padding: 6px; text-decoration: underline; }
.speak:disabled { opacity: .6; cursor: progress; }
.pick-banner {
  position: fixed; z-index: 1400; left: 50%; top: 150px; translate: -50% 0; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 10px 10px 18px; font-size: 17px; font-weight: 900;
  box-shadow: var(--shadow); white-space: nowrap;
}
.pick-banner button { background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 900; }
.leaflet-container.picking { cursor: crosshair; }
.progress-io { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@media (max-width: 420px) {
  .tool { width: 40px; height: 40px; font-size: 18px; }
  .tools { gap: 5px; }
  .progress-io, .loc-actions { grid-template-columns: 1fr; }
}
