/* ═══════════════════════════════════════════════════════════════
   0x EVENT TRACKER — pixel skin
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:      #03101f;
  --box:     #0b2b56;
  --box-2:   #06203f;
  --edge:    #2f7fd4;
  --edge-hi: #8ccbff;
  --edge-lo: #04182f;

  --orange:  #ff4911;
  --orange-d:#c22f00;
  --amber:   #ffd400;
  --grey:    #7f9ec4;

  --text:    #e2f0ff;
  --dim:     #93b8e2;

  --px:  "Press Start 2P", "Silkscreen", monospace;
  --ui:  "Silkscreen", "Press Start 2P", monospace;
  --body:"Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --b: 3px;   /* pixel border unit */

  /* notch / home-indicator insets, 0 everywhere that has none */
  --sb: env(safe-area-inset-bottom, 0px);
  --st: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--edge-hi); }
img { max-width: 100%; }

/* ───────────────────────────────────────────────────── boot ── */

.boot {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 12%, #0d2f5c 0%, var(--bg) 68%);
  transition: opacity .5s ease, visibility .5s;
}
.boot.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.boot__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 127, 212, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 127, 212, .5) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .14;
  mask-image: radial-gradient(58% 55% at 50% 45%, #000 0%, transparent 78%);
}

.boot__inner { position: relative; width: min(620px, 92vw); text-align: center; padding: 12px; }

.boot__tag {
  margin: 34px auto 26px;
  max-width: 44ch;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.65;
}

.boot__bar {
  height: 14px;
  background: var(--box-2);
  box-shadow: 0 0 0 3px var(--edge-lo), 0 0 0 6px var(--edge);
  margin: 0 6px;
}
.boot__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--orange) 0 6px, var(--orange-d) 6px 12px);
  transition: width .3s steps(8);
}

.boot__status {
  margin: 20px 0 0;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--edge-hi);
  min-height: 16px;
}

.boot__opts { margin: 26px 0 24px; display: flex; justify-content: center; }
.boot__logo { display: block; width: 150px; margin: 34px auto 0; opacity: .5; }

.tgl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--box-2);
  border: 0;
  padding: 10px 16px;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dim);
  box-shadow: 0 0 0 3px var(--edge-lo);
}
.tgl__dot { width: 10px; height: 10px; background: #2c4a6e; }
.tgl.is-on { color: var(--text); box-shadow: 0 0 0 3px var(--edge); }
.tgl.is-on .tgl__dot { background: var(--orange); box-shadow: 0 0 8px var(--orange); }

/* ────────────────────────────────────────────── pixel button ── */
/* four offset shadows leave the corners notched — the classic 8-bit frame */

.pbtn {
  display: inline-block;
  margin: 6px;
  padding: 13px 22px;
  background: var(--box);
  color: var(--text);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  border: 0;
  text-align: center;
  box-shadow:
     0 -3px 0 var(--edge), 0 3px 0 var(--edge),
    -3px 0 0 var(--edge),  3px 0 0 var(--edge),
     0 -6px 0 var(--edge-lo), 0 6px 0 var(--edge-lo),
    -6px 0 0 var(--edge-lo), 6px 0 0 var(--edge-lo);
  transition: transform .08s steps(2), background .12s;
}
.pbtn:hover:not(:disabled) { background: #0f3a70; transform: translateY(-2px); }
.pbtn:active:not(:disabled) { transform: translateY(1px); }
.pbtn:disabled { opacity: .4; cursor: not-allowed; }

.pbtn--go {
  background: var(--orange);
  color: #16060a;
  box-shadow:
     0 -3px 0 var(--amber), 0 3px 0 var(--amber),
    -3px 0 0 var(--amber),  3px 0 0 var(--amber),
     0 -6px 0 #3a1200, 0 6px 0 #3a1200,
    -6px 0 0 #3a1200, 6px 0 0 #3a1200;
}
.pbtn--go:hover:not(:disabled) { background: #ff6636; }

.pbtn--sm { padding: 9px 14px; font-size: 11px; }
#bootEnter { min-width: 260px; }

/* ────────────────────────────────────────────────── logo pill ── */

.pill {
  display: inline-block;
  background: var(--box);
  padding: 10px 22px;
  box-shadow:
     0 -3px 0 var(--edge-hi), 0 3px 0 var(--edge-hi),
    -3px 0 0 var(--edge-hi),  3px 0 0 var(--edge-hi),
     0 -6px 0 var(--edge-lo), 0 6px 0 var(--edge-lo),
    -6px 0 0 var(--edge-lo), 6px 0 0 var(--edge-lo);
}
.pill__in {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--px);
  color: var(--edge-hi);
  text-shadow: 0 3px 0 #06203f;
  white-space: nowrap;
}
.pill--xl .pill__in { font-size: clamp(14px, 4vw, 28px); gap: 18px; }
.pill--top .pill__in { font-size: 13px; }

.pill__mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #08131f;
  box-shadow: 0 0 0 3px #3a1200;
  flex: none;
}
.pill--xl .pill__mark { width: 54px; height: 54px; }
.pill--top .pill__mark { width: 28px; height: 28px; box-shadow: 0 0 0 2px #3a1200; }
.pill__mark svg { width: 62%; }

/* ──────────────────────────────────────────────────── stage ── */

.stage { position: fixed; inset: 0; background: var(--bg); }

#map {
  position: absolute;
  inset: 10px 10px 58px;
  background: #061a33;
}

/* recolour the grey Esri canvas into the tracker's navy */
.leaflet-tile-pane {
  filter: sepia(1) saturate(3.2) hue-rotate(178deg) brightness(.62) contrast(1.3);
}
.leaflet-container {
  background: #061a33;
  font-family: var(--body);
  outline: none;
}
.leaflet-control-attribution {
  background: rgba(3, 16, 31, .82) !important;
  color: var(--dim) !important;
  font-family: var(--ui);
  font-size: 9px !important;
  padding: 3px 7px !important;
}
.leaflet-control-attribution a { color: var(--edge-hi) !important; }
.leaflet-bar, .leaflet-control-zoom { display: none; }
.leaflet-marker-icon { background: none; border: 0; }

.scanlines {
  position: absolute;
  inset: 10px 10px 58px;
  pointer-events: none;
  z-index: 401;
  background: repeating-linear-gradient(180deg, rgba(140, 203, 255, .05) 0 1px, transparent 1px 3px);
  opacity: .7;
}

.chrome { position: absolute; inset: 0; pointer-events: none; z-index: 405; }
.chrome span { position: absolute; background: var(--edge); }
.chrome__t { top: 4px; left: 4px; right: 4px; height: 3px; }
.chrome__b { bottom: 52px; left: 4px; right: 4px; height: 3px; }
.chrome__l { top: 4px; bottom: 52px; left: 4px; width: 3px; }
.chrome__r { top: 4px; bottom: 52px; right: 4px; width: 3px; }

/* ─────────────────────────────────────────────────────── top ── */

.top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 420;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }

.badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--box);
  color: var(--edge-hi);
  box-shadow: 0 0 0 3px var(--edge-hi), 0 0 0 6px var(--edge-lo);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.badge:hover { background: var(--orange); color: #08131f; box-shadow: 0 0 0 3px var(--amber), 0 0 0 6px #3a1200; }
.badge__mark { display: block; width: 60%; }

.top__right { display: flex; align-items: center; gap: 12px; padding-top: 6px; }

.clock {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--edge-hi);
  background: rgba(6, 32, 63, .9);
  padding: 7px 10px;
  box-shadow: 0 0 0 3px var(--edge-lo);
  font-variant-numeric: tabular-nums;
}

.ibtn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--box);
  border: 0;
  color: var(--edge-hi);
  box-shadow: 0 0 0 3px var(--edge), 0 0 0 6px var(--edge-lo);
}
.ibtn:hover { background: #0f3a70; }
.ibtn[aria-pressed="false"] { color: #4d6f96; }
.ibtn[aria-pressed="false"] #waves { display: none; }

/* ────────────────────────────────────────────────────── rail ── */

.rail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 420;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rail--left { left: 22px; }
.rail--right { right: 22px; }

.rbtn {
  position: relative;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--box);
  border: 0;
  color: var(--edge-hi);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 0 0 3px var(--edge), 0 0 0 6px var(--edge-lo);
  transition: background .12s, color .12s, transform .08s steps(2);
}
.rbtn:hover { background: var(--orange); color: #08131f; box-shadow: 0 0 0 3px var(--amber), 0 0 0 6px #3a1200; transform: translateY(-2px); }
.rbtn__g { pointer-events: none; }

.rbtn::after {
  content: attr(data-tip);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--box-2);
  color: var(--edge-hi);
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 7px 10px;
  white-space: nowrap;
  box-shadow: 0 0 0 3px var(--edge);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s;
}
.rail--left .rbtn::after { left: calc(100% + 14px); }
.rail--right .rbtn::after { right: calc(100% + 14px); }
.rbtn:hover::after, .rbtn:focus-visible::after { opacity: 1; }

/* ─────────────────────────────────────────────────── filters ── */

.filters {
  position: absolute;
  left: 22px;
  bottom: 72px;
  z-index: 420;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 44px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--box-2);
  border: 0;
  padding: 8px 12px;
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--dim);
  box-shadow: 0 0 0 3px var(--edge-lo);
  transition: color .12s, background .12s, box-shadow .12s;
}
.chip:hover { color: var(--text); }
.chip.is-active { color: #08131f; background: var(--amber); box-shadow: 0 0 0 3px #6b5500; }

.dot { width: 10px; height: 10px; display: inline-block; border-radius: 50%; }
.dot--confirmed { background: var(--orange); }
.dot--rumored { background: var(--amber); }
.dot--past { background: var(--grey); }

/* ──────────────────────────────────────────────────── nextup ── */

.nextup {
  position: absolute;
  right: 22px;
  bottom: 72px;
  z-index: 420;
  width: 272px;
  padding: 14px 16px 16px;
  background: var(--box-2);
  box-shadow: 0 0 0 3px var(--edge), 0 0 0 6px var(--edge-lo);
}
.nextup__lbl { font-family: var(--ui); font-size: 10px; letter-spacing: .16em; color: var(--amber); }
.nextup__name { font-family: var(--ui); font-size: 15px; margin: 9px 0 5px; line-height: 1.3; }
.nextup__meta { font-family: var(--ui); font-size: 9.5px; color: var(--dim); letter-spacing: .04em; line-height: 1.5; }

.cd { display: flex; gap: 6px; margin-top: 13px; }
.cd__u { flex: 1; text-align: center; background: var(--bg); padding: 8px 2px 6px; box-shadow: 0 0 0 2px var(--edge-lo); }
.cd__n { font-family: var(--ui); font-size: 17px; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.cd__l { font-family: var(--ui); font-size: 8px; color: var(--dim); letter-spacing: .1em; margin-top: 2px; }

/* ─────────────────────────────────────────────────── bottom ── */

.bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52px;
  z-index: 425;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--bg);
}

.ticker {
  flex: 1;
  height: 30px;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--box-2);
  box-shadow: inset 0 0 0 3px var(--edge-lo);
}
.ticker__track {
  display: flex;
  gap: 46px;
  white-space: nowrap;
  padding-left: 100%;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--edge-hi);
  animation: roll 130s linear infinite;
}
.ticker__track b { color: var(--amber); }
@keyframes roll { to { transform: translateX(-100%); } }

/* ─────────────────────────────────────────────────── markers ── */

.pin-wrap { position: relative; }

.pin {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--orange);
  color: #08131f;
  box-shadow: 0 0 0 3px #ffe8d6, 0 0 0 6px #3a1200;
  transition: transform .1s steps(2);
}
.pin svg { width: 68%; display: block; }
.pin-wrap:hover .pin { transform: scale(1.16); }
.pin--rumored { background: var(--amber); box-shadow: 0 0 0 3px #fff4bd, 0 0 0 6px #4a3a00; }
.pin--past { background: var(--grey); box-shadow: 0 0 0 3px #cfe0f2, 0 0 0 6px #1d3350; }

.pin__n {
  position: absolute;
  top: -7px; right: -9px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--amber);
  font-family: var(--ui);
  font-size: 10px;
  box-shadow: 0 0 0 2px var(--amber);
}

.pin-wrap.is-live::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  animation: ping 2.1s steps(14) infinite;
  pointer-events: none;
}
.pin-wrap.is-rumored::before { border-color: var(--amber); }
@keyframes ping {
  0%   { transform: scale(.85); opacity: .9; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ──────────────────────────────────────────────────── panels ── */

.scrim { position: fixed; inset: 0; z-index: 500; background: rgba(2, 10, 22, .7); }

.panel {
  position: fixed;
  z-index: 501;
  top: 0; right: 0; bottom: 0;
  width: min(470px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: -6px 0 0 var(--edge), -12px 0 0 var(--edge-lo), -40px 0 70px -20px #000;
  animation: slide .26s steps(6);
}
@keyframes slide { from { transform: translateX(100%); } }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--box);
  box-shadow: 0 3px 0 var(--edge);
}
.panel__title { margin: 0; font-family: var(--ui); font-size: 15px; letter-spacing: .14em; color: var(--edge-hi); }
.panel__close {
  background: var(--box-2);
  border: 0;
  padding: 8px 12px;
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--dim);
  box-shadow: 0 0 0 3px var(--edge-lo);
}
.panel__close:hover { color: #08131f; background: var(--amber); box-shadow: 0 0 0 3px #6b5500; }

.panel__body { flex: 1; overflow-y: auto; padding: 20px 18px 34px; scrollbar-width: thin; scrollbar-color: var(--edge) var(--bg); }
.panel__body::-webkit-scrollbar { width: 10px; }
.panel__body::-webkit-scrollbar-track { background: var(--box-2); }
.panel__body::-webkit-scrollbar-thumb { background: var(--edge); }

.lead { margin: 0 0 18px; color: var(--dim); font-size: 13.5px; line-height: 1.7; }

.grouph {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--amber);
  margin: 26px 0 12px;
  padding-bottom: 8px;
  box-shadow: 0 3px 0 var(--edge-lo);
}
.grouph:first-child { margin-top: 0; }

/* feed cards — image on top, like the reference */
.card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--box-2);
  border: 0;
  padding: 0;
  margin-bottom: 14px;
  box-shadow: 0 0 0 3px var(--edge-lo);
  transition: box-shadow .14s, transform .1s steps(2);
}
.card:hover { box-shadow: 0 0 0 3px var(--edge); transform: translateY(-2px); }
.card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--box) repeating-linear-gradient(45deg, rgba(47,127,212,.13) 0 8px, transparent 8px 16px); }
.card__b { padding: 12px 14px 14px; }
.card__name { display: block; font-family: var(--ui); font-size: 13px; line-height: 1.35; color: var(--text); }
.card__meta { display: block; font-family: var(--ui); font-size: 9.5px; color: var(--dim); margin-top: 8px; letter-spacing: .04em; line-height: 1.6; }
.card__when { display: block; font-family: var(--ui); font-size: 9.5px; letter-spacing: .06em; margin-top: 8px; color: var(--edge-hi); }
.card__when.is-hot { color: var(--orange); }
.card__award { display: block; font-family: var(--ui); font-size: 9.5px; color: var(--amber); margin-top: 8px; line-height: 1.5; }

.card__tag {
  display: inline-block;
  font-family: var(--ui);
  font-size: 9px;
  letter-spacing: .1em;
  padding: 4px 8px;
  color: #08131f;
  background: var(--orange);
  margin-bottom: 10px;
}
.card__tag--rumored { background: var(--amber); }
.card__tag--past { background: var(--grey); }

.search {
  width: 100%;
  background: var(--box-2);
  border: 0;
  padding: 12px 13px;
  color: var(--text);
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .06em;
  box-shadow: 0 0 0 3px var(--edge-lo);
  margin-bottom: 18px;
}
.search:focus { outline: none; box-shadow: 0 0 0 3px var(--edge); }
.search::placeholder { color: #4d6f96; }

/* event detail */
.det__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--box) repeating-linear-gradient(45deg, rgba(47,127,212,.13) 0 8px, transparent 8px 16px); box-shadow: 0 0 0 3px var(--edge); margin-bottom: 20px; }
.det__name { margin: 0 0 8px; font-family: var(--ui); font-size: 19px; line-height: 1.35; color: var(--text); }
.det__loc { font-family: var(--ui); font-size: 11px; color: var(--amber); letter-spacing: .08em; margin-bottom: 20px; }
.det__blurb { font-size: 14px; line-height: 1.75; color: var(--dim); margin: 0 0 22px; }

.kv { display: grid; grid-template-columns: 92px 1fr; gap: 10px 14px; margin: 0 0 22px; }
.kv dt { font-family: var(--ui); font-size: 9.5px; color: var(--dim); letter-spacing: .1em; padding-top: 3px; }
.kv dd { margin: 0; font-family: var(--ui); font-size: 11.5px; line-height: 1.5; }

.award {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--box-2);
  box-shadow: 0 0 0 3px var(--amber);
  padding: 13px 15px;
  margin-bottom: 18px;
}
.award__ico { font-size: 17px; line-height: 1.2; color: var(--amber); }
.award__l { display: block; font-family: var(--ui); font-size: 9px; letter-spacing: .14em; color: var(--amber); }
.award__t { display: block; font-family: var(--ui); font-size: 12.5px; margin-top: 6px; line-height: 1.45; }

.actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 -6px; }

.legend { display: grid; gap: 16px; margin: 0 0 26px; }
.legend__i { display: flex; align-items: center; gap: 16px; }
.legend__i b { font-family: var(--ui); font-size: 12px; }
/* scoped to the description text — a bare `.legend__i span` also caught the
   pin markup and knocked the badges out of alignment */
.legend__i > div > span { display: block; color: var(--dim); font-size: 12.5px; margin-top: 5px; line-height: 1.5; }
.legend__pin { flex: none; display: grid; place-items: center; width: 40px; height: 40px; }

.keys { display: grid; gap: 10px; }
.keys div { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); }
kbd {
  font-family: var(--ui);
  font-size: 10px;
  background: var(--box-2);
  box-shadow: 0 0 0 2px var(--edge-lo);
  padding: 5px 8px;
  color: var(--text);
  min-width: 28px;
  text-align: center;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.stat { background: var(--box-2); box-shadow: 0 0 0 3px var(--edge-lo); padding: 13px 6px; text-align: center; }
.stat b { display: block; font-family: var(--ui); font-size: 20px; color: var(--orange); }
.stat span { font-family: var(--ui); font-size: 8.5px; color: var(--dim); letter-spacing: .1em; }

.empty { color: var(--dim); font-family: var(--ui); font-size: 11px; padding: 30px 0; text-align: center; }

/* ─────────────────────────────────────────────── responsive ── */

@media (max-width: 860px) {
  .pill--top { display: none; }
  .clock { display: none; }
  .badge { width: 44px; height: 44px; }
  /* 20px so the 6px outer shadow of the corner controls clears the frame line */
  .top { padding: calc(12px + var(--st)) 20px 12px; }

  .rail { top: auto; transform: none; }
  .rail--left {
    left: 0; right: 0;
    bottom: calc(60px + var(--sb));
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
  }
  .rail--right { right: 20px; top: calc(84px + var(--st)); bottom: auto; }
  .rbtn { width: 40px; height: 40px; font-size: 15px; }
  .rbtn::after { display: none; }

  .filters {
    left: 20px;
    right: 20px;
    bottom: calc(114px + var(--sb));
    max-width: none;
    gap: 6px;
  }
  .chip { padding: 6px 8px; font-size: 9px; gap: 6px; }
  .chip .dot { width: 8px; height: 8px; }
  .nextup { display: none; }

  #map, .scanlines { inset: 6px 6px calc(50px + var(--sb)); }
  .chrome__b, .chrome__l, .chrome__r { bottom: calc(44px + var(--sb)); }

  .bottom {
    height: calc(44px + var(--sb));
    padding: 0 8px var(--sb);
    gap: 8px;
  }
  .bottom .pbtn { display: none; }
  .panel { width: 100%; }
  .panel__head { padding: calc(14px + var(--st)) 14px 14px; }

  .attr { margin: 0 4px 4px 0 !important; }
  .leaflet-popup.pxpop .leaflet-popup-content { width: 208px !important; }
}

/* Phone in landscape: only ~360px of height, and the bottom stack eats a third
   of it. Tighten the controls so nothing collides with the credits corner. */
@media (max-height: 500px) and (max-width: 1024px) {
  .rail--right { top: calc(72px + var(--st)); gap: 8px; }
  .rail--right .rbtn { width: 34px; height: 34px; font-size: 14px; }
  .rail--left { bottom: calc(54px + var(--sb)); gap: 6px; }
  .rail--left .rbtn { width: 36px; height: 36px; font-size: 14px; }
  .filters { bottom: calc(104px + var(--sb)); }
  .top { padding-top: calc(8px + var(--st)); }
  .badge { width: 38px; height: 38px; }
  .ibtn { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .pin-wrap.is-live::before { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ─────────────────────────────────────────── leaflet tooltip ── */

.leaflet-tooltip.pxtip {
  background: var(--box-2);
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 0 3px var(--edge);
  color: var(--text);
  padding: 8px 11px;
  font-family: var(--ui);
  white-space: nowrap;
}
.leaflet-tooltip.pxtip::before { display: none; }
.pxtip b { display: block; font-size: 12px; }
.pxtip i { display: block; font-style: normal; font-size: 9.5px; color: var(--dim); margin-top: 5px; letter-spacing: .04em; }

/* ────────────────────────────────────────── collapsed credits ── */
/* Esri + OSM require the credit; it lives behind an "i" instead of
   running across the map. */

.attr { display: flex; align-items: center; gap: 6px; margin: 0 6px 6px 0 !important; }
.attr__b {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  background: rgba(6, 32, 63, .85);
  border: 0;
  color: var(--dim);
  font-family: var(--ui);
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(47, 127, 212, .5);
  cursor: pointer;
}
.attr__b:hover { color: var(--text); }
.attr__t {
  display: none;
  background: rgba(3, 16, 31, .9);
  color: var(--dim);
  font-family: var(--ui);
  font-size: 8.5px;
  letter-spacing: .02em;
  padding: 4px 7px;
  white-space: nowrap;
}
.attr.is-open .attr__t { display: block; }
@media (max-width: 860px) { .attr.is-open .attr__t { max-width: 60vw; white-space: normal; } }

/* ───────────────────────────────────────── pin preview popup ── */
/* Clicking a pin opens this small card at the point; its button leads
   through to the full sighting file in the side panel. */

.leaflet-popup.pxpop .leaflet-popup-content-wrapper {
  background: var(--box-2);
  border-radius: 0;
  padding: 0;
  box-shadow: 0 0 0 3px var(--edge), 0 0 0 6px var(--edge-lo), 0 14px 34px -12px #000;
}
.leaflet-popup.pxpop .leaflet-popup-content { margin: 0; width: 232px !important; line-height: 1.4; }
.leaflet-popup.pxpop .leaflet-popup-tip-container { display: none; }
.leaflet-popup.pxpop .leaflet-popup-close-button {
  right: 0; top: 0;
  width: 26px; height: 26px;
  color: #fff !important;
  background: var(--edge);
  /* Silkscreen has no usable multiplication sign — fall back to the system font */
  font: 700 17px/26px system-ui, -apple-system, sans-serif;
  text-align: center;
  padding: 0;
}
.leaflet-popup.pxpop .leaflet-popup-close-button:hover { background: var(--orange); color: #08131f !important; }

.pop__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--box) repeating-linear-gradient(45deg, rgba(47,127,212,.13) 0 8px, transparent 8px 16px); }
.pop__b { padding: 11px 12px 6px; }
.pop__tag {
  display: inline-block;
  font-family: var(--ui);
  font-size: 8px;
  letter-spacing: .1em;
  padding: 3px 6px;
  color: #08131f;
  background: var(--orange);
  margin-bottom: 8px;
}
.pop__tag--rumored { background: var(--amber); }
.pop__tag--past { background: var(--grey); }
.pop__name { font-family: var(--ui); font-size: 12px; color: var(--text); line-height: 1.35; }
.pop__meta { font-family: var(--ui); font-size: 8.5px; color: var(--dim); margin-top: 6px; letter-spacing: .03em; line-height: 1.5; }
.pop__meta--hi { color: var(--amber); }
.pop__go { display: block; width: calc(100% - 12px); margin: 12px 6px 6px; }

.det__credit {
  margin: -14px 0 20px;
  font-family: var(--ui);
  font-size: 8px;
  letter-spacing: .04em;
  color: #5f83ab;
  line-height: 1.5;
}
