/* ============================================================
   WarTap — design tokens
   Subject: historic battles on a 3D globe. Palette leans
   "campaign map": dark sea, parchment land, an ember marker.
   ============================================================ */
:root {
  --space:       #0b1020;  /* backdrop / deep space            */
  --ocean:       #16223f;  /* globe sphere                     */
  --land:        #d9cdb0;  /* parchment continents             */
  --land-stroke: #0b1020;  /* coastlines                       */
  --ember:       #e4572e;  /* signature accent (guess pin, later) */
  --ink:         #e8eaf0;  /* primary text                     */
  --muted:       #8a93a8;  /* secondary text                   */

  --hud-pad: 16px;
}

/* ---- reset / lock the viewport ---- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--space);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;          /* no rubber-band scroll on mobile */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* Pin the whole app. position:fixed + inset:0 is the reliable way to
   fill an iOS standalone window; height:100dvh handles the dynamic
   toolbar, with a static fallback for older browsers. */
body {
  position: fixed;
  inset: 0;
  height: 100vh;   /* fallback */
  height: 100dvh;  /* preferred */
  overflow: hidden;
}

/* ---- globe fills everything, behind the chrome ---- */
#globe {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#globe canvas { display: block; }   /* kill inline-canvas whitespace */

/* ---- heads-up chrome ---- */
.hud {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--hud-pad);
  pointer-events: none;             /* chrome never eats globe taps */
}
.hud--top    { top: 0;    padding-top:    calc(var(--hud-pad) + env(safe-area-inset-top)); }
.hud--bottom { bottom: 0; padding-bottom: calc(var(--hud-pad) + env(safe-area-inset-bottom));
               justify-content: center; }

.wordmark {
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 15px;
  text-transform: uppercase;
}
.wordmark__accent { color: var(--ember); }

.tagline {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.status {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(11, 16, 32, 0.55);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* required imagery attribution */
.credit {
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(138, 147, 168, 0.75);
}

/* ---- utility ---- */
.is-hidden { display: none !important; }

/* ---- score chip (top right, replaces tagline once playing) ---- */
.score {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: rgba(11, 16, 32, 0.55);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ---- battle prompt card ---- */
.prompt {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  top: calc(56px + env(safe-area-inset-top));
  max-width: min(86vw, 420px);
  text-align: center;
  padding: 12px 20px 14px;
  border-radius: 16px;
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 234, 240, 0.08);
  pointer-events: none;
}
.prompt__round {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.prompt__name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}
.prompt__meta {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ember);
}

/* ---- bottom hud stacks button above status pill ---- */
.hud--bottom {
  flex-direction: column;
  gap: 10px;
}

/* ---- action buttons ---- */
.btn {
  pointer-events: auto;             /* hud container is pointer-events:none */
  appearance: none;
  border: none;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ember);
  padding: 14px 34px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(228, 87, 46, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--gold {
  background: #f2b134;
  color: #0b1020;
  box-shadow: 0 4px 16px rgba(242, 177, 52, 0.35);
}

/* ---- reveal card (distance + points + fact) ---- */
.reveal {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(126px + env(safe-area-inset-bottom));
  width: min(88vw, 440px);
  padding: 14px 18px 15px;
  border-radius: 16px;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 234, 240, 0.1);
  pointer-events: none;
  animation: reveal-up 260ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}
.reveal__stats {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.reveal__dist {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.reveal__pts {
  font-size: 20px;
  font-weight: 800;
  color: #f2b134;
}
.reveal__comment {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #f5a623;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.35);
  margin-bottom: 8px;
}
.reveal__fact {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

/* ---- results screen ---- */
.results {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 460px);
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  padding: 20px 20px 18px;
  border-radius: 20px;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 234, 240, 0.12);
  pointer-events: auto;
  text-align: center;
  animation: reveal-up 300ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.results__kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.results__score {
  font-size: 30px;
  font-weight: 800;
  margin: 6px 0 14px;
}
.results__score em {
  font-style: normal;
  color: var(--ember);
}
.results__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  text-align: left;
}
.results__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(232, 234, 240, 0.07);
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.results__list li::after {
  content: "\203A";           /* › tap-to-review affordance */
  color: var(--muted);
  font-size: 16px;
}
.results__list li:active { background: rgba(232, 234, 240, 0.05); }
.results__list li:last-child { border-bottom: none; }
.r__emoji { font-size: 16px; }
.r__name  { flex: 1; font-weight: 600; }
.r__meta  { color: var(--muted); white-space: nowrap; }
.results__toast {
  margin-top: 10px;
  font-size: 12px;
  color: #2ecc71;
  font-weight: 600;
}
.results__foot {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- battle review sheet ---- */
.review {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(92vw, 460px);
  max-height: 62dvh;
  overflow-y: auto;
  padding: 14px 16px 14px;
  border-radius: 18px;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 234, 240, 0.12);
  pointer-events: auto;
  animation: reveal-up 260ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.review__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1;
  appearance: none;
  border: none;
  background: rgba(11, 16, 32, 0.7);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
}
.review__imgwrap {
  position: relative;
  margin: 0 0 10px;
  border-radius: 12px;
  overflow: hidden;
}
.review__imgwrap img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #16223f;
}
.review__credit {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 9px;
  color: rgba(232, 234, 240, 0.8);
  background: rgba(11, 16, 32, 0.65);
  padding: 3px 8px;
  border-top-left-radius: 8px;
}
.review__name {
  font-size: 18px;
  font-weight: 800;
  padding-right: 30px;
}
.review__meta {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ember);
}
.review__fact {
  margin: 8px 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.review__stats {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.review__stats em {
  font-style: normal;
  color: #f2b134;
}
.review__nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.btn--small {
  font-size: 12px;
  padding: 10px 18px;
  box-shadow: none;
  background: rgba(232, 234, 240, 0.1);
  color: var(--ink);
}
.btn--small:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---- era chip + sheet ---- */
.chip {
  pointer-events: auto;
  appearance: none;
  border: 1px solid rgba(232, 234, 240, 0.18);
  background: rgba(11, 16, 32, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chip::after { content: " \25BE"; color: var(--muted); }

.erasheet {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  top: calc(56px + env(safe-area-inset-top));
  width: min(88vw, 380px);
  max-height: 65dvh;
  overflow-y: auto;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(11, 16, 32, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 234, 240, 0.12);
  pointer-events: auto;
  animation: reveal-up 220ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.erasheet__title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
}
.erasheet__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  appearance: none;
  border: none;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding: 11px 10px;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.erasheet__option:active { background: rgba(232, 234, 240, 0.06); }
.erasheet__option.is-active { color: var(--ember); }
.erasheet__done {
  font-size: 12px;
  font-weight: 700;
  color: #2ecc71;
}
.erasheet__note {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

.results__streak {
  font-size: 13px;
  font-weight: 700;
  color: #f2b134;
  margin: -8px 0 12px;
}

.chip--icon { padding: 6px 10px; }
.chip--icon::after { content: none; }

.erasheet__option--hard {
  border-top: 1px solid rgba(232, 234, 240, 0.1);
  margin-top: 6px;
  font-size: 13px;
}

/* ---- stats panel ---- */
.stats {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 420px);
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  padding: 20px 20px 16px;
  border-radius: 20px;
  background: rgba(11, 16, 32, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 234, 240, 0.12);
  pointer-events: auto;
  text-align: center;
  animation: reveal-up 260ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 12px;
}
.stats__cell em {
  display: block;
  font-style: normal;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.stats__cell span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats__bulls {
  font-size: 14px;
  font-weight: 700;
  color: #f2b134;
  margin-bottom: 14px;
}
.stats__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.stats__emoji { font-size: 14px; }
.stats__track { flex: 1; }
.stats__bar {
  min-width: 22px;
  height: 20px;
  border-radius: 5px;
  color: #0b1020;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: right;
  padding-right: 6px;
  box-sizing: border-box;
}

.hud__row {
  display: flex;
  gap: 10px;
  pointer-events: none;
}

/* ---- world-tour story cards (float on the globe) ---- */
.tourcard {
  width: 216px;
  padding: 10px 12px 11px;
  border-radius: 12px;
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 234, 240, 0.1);
  pointer-events: none;
  text-align: left;
  transform: translateY(-50%);
}
.tourcard__imgwrap {
  position: relative;
  margin: 0 0 7px;
  border-radius: 8px;
  overflow: hidden;
}
.tourcard__img {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
  background: #16223f;
}
.tourcard__credit {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 8px;
  color: rgba(232, 234, 240, 0.8);
  background: rgba(11, 16, 32, 0.65);
  padding: 2px 6px;
  border-top-left-radius: 6px;
}
.tourcard__name {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.tourcard__meta {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ember);
  font-weight: 700;
}
.tourcard__desc {
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(232, 234, 240, 0.85);
}

/* ---- post-round reader: fixed photo banner at the top ---- */
.reader {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  top: calc(52px + env(safe-area-inset-top));
  width: min(94vw, 440px);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(11, 16, 32, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 234, 240, 0.12);
  pointer-events: auto;
  animation: reveal-up 260ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.reader__imgwrap { position: relative; background: #16223f; }
.reader__img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
}
.reader__credit {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 9px;
  color: rgba(232, 234, 240, 0.85);
  background: rgba(11, 16, 32, 0.65);
  padding: 3px 8px;
  border-top-left-radius: 8px;
}
.reader__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}
.reader__nav {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  background: rgba(232, 234, 240, 0.1);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.reader__nav:disabled { opacity: 0.3; }
.reader__caption { flex: 1; text-align: center; min-width: 0; }
.reader__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader__meta {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ember);
  font-weight: 700;
}

/* ---- first-run how-to-play ---- */
.howto {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}
.howto__card {
  width: min(88vw, 380px);
  padding: 24px 22px 20px;
  border-radius: 20px;
  background: rgba(17, 22, 38, 0.98);
  border: 1px solid rgba(232, 234, 240, 0.14);
  text-align: center;
  animation: reveal-up 300ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.howto__badge { font-size: 40px; line-height: 1; }
.howto__title {
  font-size: 20px;
  font-weight: 800;
  margin: 8px 0 14px;
  color: var(--ink);
}
.howto__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  text-align: left;
}
.howto__list li {
  position: relative;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(232, 234, 240, 0.9);
  padding: 7px 0 7px 22px;
}
.howto__list li::before {
  content: "\2022";
  position: absolute;
  left: 4px;
  color: var(--ember);
  font-weight: 700;
}
.howto__list b { color: var(--ink); }
.howto .btn { width: 100%; }

/* ---- private leaderboard ---- */
.lb { margin: 4px 0 16px; }
.lb__join { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lb__input {
  flex: 1 1 120px;
  min-width: 0;
  appearance: none;
  border: 1px solid rgba(232, 234, 240, 0.16);
  background: rgba(232, 234, 240, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 10px;
}
.lb__input::placeholder { color: var(--muted); }
.lb__board { text-align: left; }
.lb__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.lb__leave {
  appearance: none; border: none; background: none;
  color: var(--muted); font: inherit; font-size: 11px;
  text-decoration: underline; cursor: pointer;
}
.lb__rows { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.lb__rows li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(232, 234, 240, 0.07);
  font-size: 13px;
}
.lb__rows li:last-child { border-bottom: none; }
.lb__rows li::before {
  counter-increment: rank; content: counter(rank);
  flex: 0 0 20px; text-align: right;
  color: var(--muted); font-weight: 700;
}
.lb__rows .lb__name { flex: 1; font-weight: 600; }
.lb__rows .lb__me { color: var(--ember); }
.lb__rows .lb__score { color: var(--ink); font-weight: 700; }
.lb__empty { font-size: 12px; color: var(--muted); padding: 8px 4px; }
.lbpanel__era {
  font-size: 12px;
  color: var(--ember);
  font-weight: 700;
  margin: 6px 0 12px;
}
.lbpanel__body { text-align: left; }

/* ---- splash screen ---- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--space); /* transparent logo: backdrop = the game's own space black, so the reveal is seamless */
  opacity: 1;
  transition: opacity 900ms ease;
}
/* Anchor the logo so the WHEEL CENTER (48.7%, 63.0% of the transparent
   cannon asset) sits at the screen center — the same point where the
   game globe renders. translate percentages are relative to the
   element's own size, which is exactly the alignment trick needed. */
.splash__anchor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(64vw, 330px);
  transform: translate(-48.7%, -63.0%);
}
.splash__logo {
  display: block;
  width: 100%;
  height: auto;
  animation: splash-in 700ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
  transform-origin: 48.7% 63.0%; /* grow FROM the wheel center */
}
.splash__word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16%;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.34em;
  color: var(--ink);
  animation: splash-in 700ms cubic-bezier(0.2, 0.8, 0.3, 1) 180ms both;
  transition: opacity 400ms ease;
}
.splash__word span { color: var(--ember); }
@keyframes splash-in {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
/* Reveal: game.js animates an expanding transparent hole (CSS mask) at
   the wheel center while these transitions run — the cannon swells from
   its own wheel and thins out as the planet grows through it. */
.splash--reveal { pointer-events: none; }
.splash--reveal .splash__word { opacity: 0; }
.splash--reveal .splash__logo {
  animation: none;
  transition: transform 1100ms ease, opacity 1100ms ease;
  transform: scale(1.35);
  opacity: 0.25;
}
/* Fallback (no mask support / reduced motion): simple fade. */
.splash--out { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .splash__logo, .splash__word { animation: none; }
  .splash { transition-duration: 250ms; }
  .splash--reveal .splash__logo { transition: none; transform: none; opacity: 1; }
}

/* ---- ParkTap cross-promo ---- */
.promo {
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(150px + env(safe-area-inset-bottom));
  width: min(90vw, 360px);
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 234, 240, 0.14);
  pointer-events: auto;
  animation: reveal-up 320ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.promo__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 34px 10px 12px;
  text-decoration: none;
  color: rgba(232, 234, 240, 0.9);
}
.promo__img {
  width: 74px;
  height: auto;
  flex: 0 0 auto;
}
.promo__text { font-size: 12.5px; line-height: 1.4; }
.promo__text b { color: var(--ink); }
.promo__close {
  position: absolute;
  top: 2px;
  right: 4px;
  appearance: none;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ---- guess pin ----
   globe.gl's HTML layer centers elements on the coordinate; shifting
   up half our height puts the pin TIP exactly on the tapped spot. */
.pin {
  transform: translateY(-50%);
  pointer-events: none;              /* never block the next tap */
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
  animation: pin-drop 220ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

@keyframes pin-drop {
  from { transform: translateY(-90%); opacity: 0; }
  to   { transform: translateY(-50%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pin { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* globe.js reads this to disable idle auto-rotation */
}
