/* Landfall */
.gm-head [hidden] { display: none; }
.gm-landfall { --lf-sea: #E4EBF0; --lf-land: #FCFCFA; --lf-border: #9E9E97; --lf-river: #A9C0D0; --lf-nation: #B4B4AD;
  --lf-state: #E0E0DA; --lf-grat: #A9BBC8; --lf-eq: #8FA5B5; }

.lf-top { min-height: 104px; }
.lf-kick { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.lf-city { margin: 2px 0 0; font-size: clamp(30px, 7vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.lf-city .of { font-size: .5em; font-weight: 600; color: var(--quiet); letter-spacing: 0; }
.lf-where { margin: 4px 0 0; font-size: 18px; min-height: 1.5em; }
.lf-where.hid { color: var(--quiet); font-style: italic; font-size: 16px; }

/* Round strip */
.lf-prog { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr) 1.2fr; gap: 6px; margin: 16px 0 12px; padding: 0; }
.lf-prog li { border: 2px solid var(--rail); border-radius: 6px; padding: 4px 8px 5px; min-width: 0; }
.lf-prog .n { display: block; font-size: 11px; color: var(--quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-prog b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.lf-prog .cur { border-color: var(--ink); }
.lf-prog .cur b { font-weight: 600; font-size: 15px; }
.lf-prog .done.hit { background: var(--gm-hit); border-color: var(--gm-hit); color: #fff; }
.lf-prog .done.hit .n { color: #DCE4FA; }
.lf-prog .done.near { background: var(--gm-near); border-color: var(--gm-near); }
.lf-prog .done.near .n { color: #5C4E00; }
.lf-prog .done.miss { background: var(--wash); border-color: var(--faint); }
.lf-prog .tot { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.lf-prog .tot .n { color: #BDBDBD; }

/* Map */
.lf-map { position: relative; aspect-ratio: 2 / 1; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden;
  background: var(--lf-sea); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.lf-map:focus-visible { outline: 3px solid var(--cite); outline-offset: 3px; }
.lf-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lf-svg { position: relative; display: block; width: 100%; height: 100%; cursor: grab; }
.lf-map.picking .lf-svg { cursor: crosshair; }
.lf-map.dragging .lf-svg { cursor: grabbing; }
.lf-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.lf-pin { fill: var(--ink); stroke: #fff; stroke-width: 1.6; }
.lf-pin-dot { fill: #fff; }
.lf-mk.guess { animation: lf-drop .28s var(--ease); }
@keyframes lf-drop { from { opacity: 0; } }
.lf-ring { fill: rgba(31, 72, 184, .18); stroke: var(--cite); stroke-width: 1.5; }
.lf-dot { fill: var(--cite); stroke: #fff; stroke-width: 2; }
.lf-mk text { font: 700 13px/1 var(--sans); fill: var(--ink); }
.lf-lbg { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.lf-cross { display: none; pointer-events: none; }
.lf-cross circle { fill: none; stroke: var(--cite); stroke-width: 2; }
.lf-cross path { stroke: var(--cite); stroke-width: 2.5; stroke-linecap: round; }
.lf-map.kb:focus-within .lf-cross { display: inline; }

.lf-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.lf-z { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink);
  font: 700 22px/1 var(--sans); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.lf-z:hover { background: var(--wash); }
.lf-z[disabled] { opacity: .35; cursor: default; }

/* Under the map */
.lf-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; min-height: 64px; }
.lf-bar.end { display: block; }
.lf-hint { margin: 0; color: var(--quiet); font-size: 15px; max-width: 46ch; }
.lf-lock { min-width: 140px; }
.lf-out { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; animation: lf-in .35s var(--ease); }
.lf-out p { margin: 0; }
.lf-km { font-size: 20px; font-weight: 600; }
.lf-pts { font-size: 18px; }
.lf-pts b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 4px; }
.lf-out.hit .lf-pts b { background: var(--gm-hit); color: #fff; }
.lf-out.near .lf-pts b { background: var(--gm-near); }
.lf-out.miss .lf-pts b { background: var(--rail); }
@keyframes lf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lf-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.lf-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Results table */
.lf-tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 4px 0 8px; }
.lf-tbl th, .lf-tbl td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--rail); vertical-align: middle; }
.lf-tbl thead th { font-size: 12px; font-weight: 600; color: var(--quiet); text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--ink); }
.lf-tbl tbody th { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.lf-tbl tbody th small { display: block; font-weight: 400; color: var(--quiet); font-size: 13px; }
.lf-tbl .rn { font-variant-numeric: tabular-nums; color: var(--quiet); min-width: 1em; }
.lf-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lf-tbl tfoot th, .lf-tbl tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); }
.lf-tbl .chip { display: inline-block; min-width: 3.2em; text-align: center; padding: 1px 6px; border-radius: 3px; font-weight: 700; }
.lf-tbl .chip.hit { background: var(--gm-hit); color: #fff; }
.lf-tbl .chip.near { background: var(--gm-near); }
.lf-tbl .chip.miss { background: var(--rail); }
.lf-res-tot { font-size: 18px; }
.lf-res-tot b { font-size: 28px; font-weight: 800; }
.lf-note { font-size: 13px; color: var(--quiet); }

@media (max-width: 640px) {
  .lf-top { min-height: 92px; }
  .lf-map { aspect-ratio: 16 / 10; }
  .lf-prog { grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .lf-prog li { padding: 3px 4px 4px; text-align: center; }
  .lf-prog .n { font-size: 0; }
  .lf-prog .n::before { content: attr(data-s); font-size: 10px; }
  .lf-prog b { font-size: 14px; }
  .lf-bar { flex-wrap: wrap; }
  .lf-bar > .gm-btn { flex: 1 1 100%; }
  .lf-z { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lf-out, .lf-mk.guess { animation: none; }
}
