/* Arty & Garrisons HLL - Bottom ad only; full-width content, 2 columns, larger map icons */

/* Hide translation-extension UI injected into the page (e.g. "Z A" icon / login modal) */
body [id*="goog-te"],
body [class*="goog-te"],
body [class*="gt_"],
body [id*="gt-"],
body iframe[title*="Translate"],
body [class*="translation"] {
  display: none !important;
}

@font-face {
  font-family: "Core Sans AR 55 Medium";
  src: url("https://db.onlinewebfonts.com/t/2aec2f1e55c09dde0f7d04c189b569af.eot");
  src: url("https://db.onlinewebfonts.com/t/2aec2f1e55c09dde0f7d04c189b569af.eot?#iefix") format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/2aec2f1e55c09dde0f7d04c189b569af.woff2") format("woff2"),
    url("https://db.onlinewebfonts.com/t/2aec2f1e55c09dde0f7d04c189b569af.woff") format("woff"),
    url("https://db.onlinewebfonts.com/t/2aec2f1e55c09dde0f7d04c189b569af.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Core Sans AR 35 Light";
  src: url("https://db.onlinewebfonts.com/t/98f3334fc7997c5a45cccbbe7939ab97.eot");
  src: url("https://db.onlinewebfonts.com/t/98f3334fc7997c5a45cccbbe7939ab97.eot?#iefix") format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/98f3334fc7997c5a45cccbbe7939ab97.woff2") format("woff2"),
    url("https://db.onlinewebfonts.com/t/98f3334fc7997c5a45cccbbe7939ab97.woff") format("woff"),
    url("https://db.onlinewebfonts.com/t/98f3334fc7997c5a45cccbbe7939ab97.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Bottom nav replaces former 24vh ad strip; used by .layout / .page-section metrics */
  /* Taller bar: large nav icons (~3rem) + two-line caption + safe area */
  /* Fits largest nav icons (maps tabs 1.5× base slot) + labels + safe area */
  /* Match fluid nav labels (hll-bottom-nav.css): wider viewports need slightly taller reserved chrome so scroll padding clears the bar */
  --hll-bottom-nav-h: calc(8.875rem + clamp(0rem, calc((100vw - 26rem) * 0.038), 0.8rem));
  --hll-main-chrome-bottom: calc(var(--hll-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  /* #screenMap .hll-map-ad-top-wrap — keep in sync with padding-top + map ad slot; MAPS ↑ uses --hll-map-screen-top-ad-stack-h */
  --hll-map-ad-top-pad-top: max(0.5rem, env(safe-area-inset-top, 0px));
  /* Taller than STATION/SPA .ad-top (2.5rem): map hub has more usable space under status bar */
  --hll-map-ad-slot-h: clamp(3rem, 2.5rem + 1.75vw, 4rem);
  --hll-map-screen-top-ad-stack-h: calc(var(--hll-map-ad-top-pad-top) + var(--hll-map-ad-slot-h));
  /* MAPS hub: max width on large screens (same breakpoint as .ad-slot.ad-side) */
  --hll-map-hub-max-width: 64rem;
  /* STATION / SPA calculators: #adSlotTop — 0 when collapsed without .hll-native-banner-reserve-top (ad-free); native top uses max(3.75rem, --hll-admob-banner-px) on html.hll-native-banner-reserve-top */
  --hll-calculator-top-ad-slot: 2.5rem;
  /* Sticky #titleBelt height (matches .title-belt height + top safe padding — keep hero sticky top in sync). */
  --hll-title-belt-sticky-top: calc(4.5rem + env(safe-area-inset-top, 0px));
}

html {
  color-scheme: dark;
}

html.hll-theme-light {
  color-scheme: light;
}

html, body {
  margin: 0;
  padding: 0;
  padding-top: 10px;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  font-family: "Core Sans AR 55 Medium", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #000;
  color: #e8e8e8;
}

/* Allow normal selection / paste only inside real form fields (inherits user-select:none above). */
input:not([readonly]),
textarea:not([readonly]),
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

img,
svg {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Fixed height so scroll happens inside .content – sticky title with blur */
.layout {
  display: flex;
  width: 100%;
  height: calc(100vh - var(--hll-main-chrome-bottom));
  height: calc(100dvh - var(--hll-main-chrome-bottom));
  padding-bottom: 0;
  overflow-x: visible;
  overflow-y: hidden;
}

/* Map hub: ad strip above scroll (taller slot than STATION/SPA calculators — see --hll-map-ad-slot-h) */
#screenMap #mainLayout.layout {
  flex-direction: column;
}
#screenMap .hll-map-ad-top-wrap {
  flex-shrink: 0;
  width: 100%;
  padding-top: var(--hll-map-ad-top-pad-top);
  padding-left: 0.1rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
}
#screenMap .hll-map-ad-top-wrap .ad-slot.ad-top {
  width: 100%;
  height: var(--hll-map-ad-slot-h);
  min-height: var(--hll-map-ad-slot-h);
}

.ad-slot {
  flex-shrink: 0;
  background: #000;
  border: none;
}

/* Top strip on arty/SPA calculators (#screenMap slot uses more specific height) */
.ad-slot.ad-top {
  height: var(--hll-calculator-top-ad-slot);
  min-height: var(--hll-calculator-top-ad-slot);
  width: 100%;
  flex-shrink: 0;
}

/* Side strip on arty/SPA – visible on wide viewports only */
.ad-slot.ad-side {
  display: none;
  width: 6rem;
  min-width: 6rem;
  flex-shrink: 0;
  align-self: stretch;
}
@media (min-width: 56rem) {
  .ad-slot.ad-side {
    display: block;
  }
}

/* Legacy bottom ad strip removed — main screen uses .hll-bottom-nav (see hll-bottom-nav.css). */
.ad-bottom {
  display: none !important;
}

/* Full-width content; no smooth scroll / transitions (instant only) */
.content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 max(1.5rem, calc(2.5rem + env(safe-area-inset-bottom, 0px))) 0;
  overflow-y: auto;
  overflow-x: visible;
  /* Promote scroll layer — can reduce jank when JS updates title belt + classes during segment scroll (WebView). */
  transform: translateZ(0);
  /* Prevent Chrome/WebView from shifting scrollTop when map images decode (was opening off Carentan on phone). */
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  /* Native scroll only — no scroll-snap (was fighting JS / momentum, stuck at STATION) */
  scroll-snap-type: none;
  scroll-behavior: auto;
  scroll-padding-top: var(--hll-title-belt-sticky-top);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.content::-webkit-scrollbar {
  display: none;
}
/* ABOUT last page: block rubber-band / scroll chaining past bottom. */
.content.page-4 {
  overscroll-behavior: none;
}
/* ABOUT: default no extra bottom pad (legacy). iOS: reserve strip so tiles stay above fixed nav + WKWebView rounding. */
#screenMap #mainContent.content.page-4 {
  padding-bottom: 0;
}
html.hll-platform-ios {
  /* Shared: tile math + #mainContent.page-4 padding (fixed nav overlaps last rows if this is 0). */
  --hll-page4-main-pad-bottom: max(3.35rem, calc(env(safe-area-inset-bottom, 0px) + 2.35rem));
}
/* Same token as iOS for ABOUT min-height math; Android #mainContent.page-4 keeps padding-bottom: 0 from base rule. */
html.hll-platform-android {
  --hll-page4-main-pad-bottom: max(3.35rem, calc(env(safe-area-inset-bottom, 0px) + 2.35rem));
}
html.hll-platform-browser {
  --hll-page4-main-pad-bottom: max(3.35rem, calc(env(safe-area-inset-bottom, 0px) + 2.35rem));
}
html.hll-platform-ios #screenMap #mainContent.content.page-4 {
  padding-bottom: var(--hll-page4-main-pad-bottom);
  /*
   * .content uses transform:translateZ(0) for layer promotion; that breaks position:sticky for descendants
   * vs the sticky #titleBelt in iOS WKWebView — ABOUT paywall would still slide under the belt.
   */
  transform: none;
  /* Extra scroll inset so ABOUT content (hero) never lands under the belt when jumping to this page. */
  scroll-padding-top: calc(var(--hll-title-belt-sticky-top) + 1rem);
}

/*
 * Nav-only main: no finger / trackpad scrolling on STATION / SPA / ABOUT (#mainContent).
 * Bottom nav + programmatic scroll still move between pages; MAPS (page-1) unchanged.
 * html class is set from app.js when HLL_NAV_ONLY_MAIN_PAGING is true.
 */
html.hll-nav-only-main-paging body:not(.points-screen-active) #mainContent.content.page-2,
html.hll-nav-only-main-paging body:not(.points-screen-active) #mainContent.content.page-3 {
  touch-action: none;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: none;
}
/* ABOUT: allow vertical scroll so Terms / Privacy are reachable on short phones (page-2/3 stay no-pan). */
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section {
  touch-action: pan-y;
}
html.hll-nav-only-main-paging body:not(.points-screen-active) #mainContent.content.page-2 *,
html.hll-nav-only-main-paging body:not(.points-screen-active) #mainContent.content.page-3 * {
  touch-action: none;
}

/*
 * ABOUT (page 4): do not apply touch-action:none to all descendants — it blocked #mainContent scroll on iPhone.
 * Paywall + links keep pan-y / manipulation below.
 */
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section .about-apple-paywall,
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section .about-apple-paywall *,
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section .about-android-paywall,
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section .about-android-paywall *,
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section .about-browser-paywall,
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section .about-browser-paywall * {
  touch-action: pan-y !important;
}
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section button,
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section a.about-legal-link,
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section a.about-browser-store-badge {
  touch-action: manipulation !important;
}
html.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section button img {
  touch-action: manipulation !important;
  pointer-events: none;
}

/*
 * Android ≤13 WebView often ignores scrollTop after bottom-nav layout flips. Collapse earlier sections from layout
 * so STATION/SPA/ABOUT sit under the title belt at scrollTop 0 (html.hll-android-legacy-webview from app.js).
 */
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-2 .map-section.map-snap-section,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-2 .hll-maps-end-io-anchor,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-2 #hllMapsToStationDivider,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-3 .map-section.map-snap-section,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-3 .hll-maps-end-io-anchor,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-3 #hllMapsToStationDivider,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-3 #artySection,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-3 #hllArtySpaDivider,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .map-section.map-snap-section,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .hll-maps-end-io-anchor,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 #hllMapsToStationDivider,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 #artySection,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 #hllArtySpaDivider,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 #spaArtySection,
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 #hllSpaAboutDivider {
  display: none !important;
}

/*
 * Android ≤13 MAPS hub: block native vertical scroll so fling cannot reach STATION/SPA/ABOUT; use floating ↓/↑ only
 * (three .map-snap-section steps, instant jumps in app.js).
 */
html.hll-android-legacy-webview.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-1 {
  touch-action: none;
}

/* Android ≤13: MAPS ↓ sometimes stayed display:none — reinforce stacking when shown */
html.hll-android-legacy-webview .hll-maps-floating-down-arrow:not([hidden]) {
  display: flex !important;
  z-index: 10050;
  visibility: visible;
}

/* Programmatic jumps: reinforce instant scroll */
.content.scroll-instant {
  scroll-behavior: auto !important;
}

/* MAPS→STATION: marker after sync_main_layout_apply (damping is JS). */
.content.hll-maps-scroll-slow {
  overscroll-behavior-y: contain;
}
/* maps_finalize_overshoot: block further native scroll (no programmatic pin). */
.content.hll-maps-scroll-stop {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.page-section {
  min-height: calc(100vh - 4.5rem - var(--hll-main-chrome-bottom));
  min-height: calc(100dvh - 4.5rem - var(--hll-main-chrome-bottom));
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 0 2rem 0;
  background: #000;
  position: relative;
  border: none;
  outline: none;
  flex-shrink: 0;
  overflow: visible;
}

.map-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
/* MAPS blocks sit outside .page-section; spacing below ↓ is tuned to match STATION’s inner+section padding before .page-divider. */
.map-section:last-of-type {
  padding-bottom: 2rem;
}

@media (min-width: 56rem) {
  #screenMap #mainContent .map-section.map-snap-section {
    width: min(100%, var(--hll-map-hub-max-width));
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }
}

.map-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  row-gap: 0;
  gap: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
}

.map-section:first-of-type .map-row:first-of-type {
  padding-top: 1rem;
}

.map-section:last-of-type .map-row:last-of-type {
  padding-bottom: 2rem;
}
/* Utah / last row — no extra row padding (MAPS end IO anchor sits below sections) */
#mapSection3 .map-row:last-of-type {
  padding-bottom: 0;
}

/* Below last map-snap-section: same vertical rhythm as former in-flow MAPS→STATION control */
.hll-maps-end-io-anchor {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  margin-top: 1.75rem;
  padding-bottom: 3.5rem;
  pointer-events: none;
}
.hll-maps-end-io-anchor__hit {
  position: relative;
  width: 100%;
  height: 4.5rem;
  min-height: 4.5rem;
  flex-shrink: 0;
  box-sizing: border-box;
}
.hll-maps-end-io-anchor__hit .hll-arrow-visibility-sentinel {
  position: absolute;
  inset: 0;
}
/* Fixed MAPS ↓ — same icon as .map-list-arrow; shown on MAPS (page-1) while maps-to-station sentinel is NOT in view (hint above nav); hidden at bottom of maps (in-flow ↓) and on STATION+.
   High z-index: above .title-belt (100), nav.hll-bottom-nav (30), and scroll content. Appended to body. */
.hll-maps-floating-down-arrow {
  position: fixed;
  left: 0;
  right: 0;
  /* Slightly below the main-chrome line — sits a bit closer to the bottom bar */
  bottom: calc(var(--hll-main-chrome-bottom) - 0.55rem);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 0.2rem;
  box-sizing: border-box;
  pointer-events: none;
}
.hll-maps-floating-down-arrow[hidden] {
  display: none !important;
}
/* Icon only — no full-width .map-list-arrow bar; sits over map grid */
.hll-maps-floating-down-arrow__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem;
  width: auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}
/* Fixed MAPS ↓/↑: fewer synthetic-click / double-tap-zoom quirks (ghost tap on .arty-grid-item after smooth scroll). */
.hll-maps-floating-down-arrow__btn,
.hll-maps-floating-up-arrow__btn {
  touch-action: manipulation;
}
.hll-maps-floating-down-arrow__btn:hover {
  color: #fff;
}
.hll-maps-floating-down-arrow__btn:active {
  opacity: 0.82;
}
.hll-maps-floating-down-arrow__btn .map-list-arrow-icon {
  display: block;
  width: 3rem;
  height: 3rem;
  pointer-events: none;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
}

/* Fixed MAPS ↑ — below title belt; + map top ad stack (same as #screenMap .hll-map-ad-top-wrap) */
.hll-maps-floating-up-arrow {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(
    10px + var(--hll-map-screen-top-ad-stack-h) + 4.5rem + env(safe-area-inset-top, 0px) + 0.2rem
  );
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0.15rem;
  box-sizing: border-box;
  pointer-events: none;
}
.hll-maps-floating-up-arrow[hidden] {
  display: none !important;
}
.hll-maps-floating-up-arrow__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem;
  width: auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}
.hll-maps-floating-up-arrow__btn:hover {
  color: #fff;
}
.hll-maps-floating-up-arrow__btn:active {
  opacity: 0.82;
}
.hll-maps-floating-up-arrow__btn .map-list-arrow-icon {
  display: block;
  width: 3rem;
  height: 3rem;
  pointer-events: none;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
}

html.hll-theme-light .hll-maps-floating-down-arrow__btn,
html.hll-theme-light .hll-maps-floating-down-arrow__btn:hover {
  color: #000;
}
html.hll-theme-light .hll-maps-floating-down-arrow__btn .map-list-arrow-icon {
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}
html.hll-theme-light .hll-maps-floating-up-arrow__btn,
html.hll-theme-light .hll-maps-floating-up-arrow__btn:hover {
  color: #000;
}
html.hll-theme-light .hll-maps-floating-up-arrow__btn .map-list-arrow-icon {
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

/* Utah Beach left column, empty right (same 2-up grid as before); down arrow on row below */
.map-row.map-row-utah-left {
  grid-template-columns: 1fr 1fr;
  /* Single short row vs tall square grid on STATION/SPA — extra space before ↓ so rhythm matches */
  padding-bottom: 0.75rem;
}
.map-item.map-item-empty-cell {
  pointer-events: none;
  visibility: hidden;
}
.map-row.map-row-to-arty-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 1rem; /* with Utah row padding ≈ gap from 2×2 grid to ↓ on calc pages (they use 0.5rem + tall grid) */
}
.map-row .map-item {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
}

/* Map thumbnails: black cell behind images in both themes (light #screenMap .content is pale) */
.map-section.map-snap-section .map-row .map-item {
  background: #000;
}

/* Light mode map cells — #e6e3e0; baked *_light.webp thumbs */
html.hll-theme-light #screenMap .map-section.map-snap-section .map-row .map-item.map-item--light-tweaks {
  background: #e6e3e0;
  isolation: isolate;
}
html.hll-theme-light #screenMap .map-section.map-snap-section .map-row .map-item.map-item--light-tweaks img {
  position: relative;
  z-index: 0;
}

.map-row .map-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  margin: 0;
  padding: 0;
}

/* Visual divider between pages – subtle gap and line */
.page-divider {
  flex-shrink: 0;
  height: 3rem;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000;
  border: none;
}
/* MAPS→STATION uses the same .page-divider (injected before #artySection). All page-dividers: 3rem band, centered rule. */

/* Belt: sticky, black + blur (no grey); safe area so title isn't clipped on notched phones */
.title-belt {
  margin: 0;
  padding: 0 0.25rem;
  padding-top: env(safe-area-inset-top, 0);
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  flex-shrink: 0;
  height: 4.5rem;
  min-height: 4.5rem;
  height: calc(4.5rem + env(safe-area-inset-top, 0));
  min-height: calc(4.5rem + env(safe-area-inset-top, 0));
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 -3px 0 0 #000;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.title-belt .title {
  margin: 0;
  padding: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 4.8vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  /* Slide previous title up / next down (pre–0bd01e8); keep scroll-instant on #mainContent for programmatic jumps */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Subpages → #screenMap: instant title belt (side picker, STATION elevation, SPA tile grids — see hllSnapTitleBeltAfterSubscreenReturn). */
.title-belt.hll-title-belt-snap .title {
  transition: none !important;
}
/*
 * Bottom-nav smooth scroll skipping one or more pages (e.g. MAPS→ABOUT): STATION/SPA titles must not
 * animate translateY(100%→-100%) through the belt. JS adds .hll-title-skip-transition on skipped h1s only.
 */
.title-belt .title.hll-title-skip-transition {
  transition: none !important;
  visibility: hidden !important;
}
/* Title switches based on scroll position (page-1=maps, 2=arty, 3=spa) */
.title-belt .title-main {
  transform: translateY(0);
}
.title-belt .title-arty,
.title-belt .title-spa-arty {
  transform: translateY(100%);
  pointer-events: none;
}
.layout.page-2 .title-belt .title-main {
  transform: translateY(-100%);
}
.layout.page-2 .title-belt .title-arty {
  transform: translateY(0);
  pointer-events: auto;
}
/* STATION→MAPS: MAPS title while #mainContent stays page-2 until landing (`syncHllBeltMapsSoon` on .layout). */
.layout.page-2.hll-belt-maps-soon .title-belt .title-main {
  transform: translateY(0);
}
.layout.page-2.hll-belt-maps-soon .title-belt .title-arty,
.layout.page-2.hll-belt-maps-soon .title-belt .title-spa-arty {
  transform: translateY(100%);
  pointer-events: none;
}
.layout.page-2.hll-belt-maps-soon .title-belt .title-about {
  transform: translateY(100%);
  pointer-events: none;
}
.layout.page-3 .title-belt .title-main,
.layout.page-3 .title-belt .title-arty {
  transform: translateY(-100%);
}
.layout.page-3 .title-belt .title-spa-arty {
  transform: translateY(0);
  pointer-events: auto;
}
.title-belt .title-about {
  transform: translateY(100%);
  pointer-events: none;
}
.layout.page-4 .title-belt .title-main,
.layout.page-4 .title-belt .title-arty,
.layout.page-4 .title-belt .title-spa-arty {
  transform: translateY(-100%);
}
.layout.page-4 .title-belt .title-about {
  transform: translateY(0);
  pointer-events: auto;
}
/* ABOUT: solid belt so the hero image never reads as sitting “under” translucent blur + ABOUT title. */
.layout.page-4 .title-belt {
  background: #000;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
html.hll-theme-light .layout.page-4 .title-belt {
  background: var(--hll-nav-bg);
}

/* Arty section (page 2) – inherits from .page-section */
/* flex-start (not center): keeps arrow-to-arrow gap equal STATION↔SPA vs SPA↔ABOUT; center + tall ABOUT inner shrank the latter */
.page-section-2.arty-section {
  padding: 2rem 0 2rem 0;
  z-index: 2;
}

/*
 * STATION block must never extend into the fixed bottom nav: .page-section min-height uses 100dvh, which can be
 * larger than the stable viewport (100svh) or the real clip above the nav. Cap with svh + safe top + main chrome.
 */
#screenMap .page-section.page-section-2.arty-section {
  --hll-arty-page2-vmax: calc(100vh - 4.5rem - env(safe-area-inset-top, 0px) - var(--hll-main-chrome-bottom));
  --hll-arty-page2-vmax: calc(100svh - 4.5rem - env(safe-area-inset-top, 0px) - var(--hll-main-chrome-bottom));
  max-height: var(--hll-arty-page2-vmax);
  min-height: min(
    calc(100dvh - 4.5rem - var(--hll-main-chrome-bottom)),
    var(--hll-arty-page2-vmax)
  );
  overflow: hidden;
  box-sizing: border-box;
}
#screenMap .page-section.page-section-2.arty-section .arty-section-inner {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
/* ~2× IO anchors + inner padding — keep square grid inside capped section */
#screenMap .page-section.page-section-2.arty-section .arty-grid {
  flex-shrink: 1;
  min-width: 0;
  min-height: 0;
  width: min(80%, calc(var(--hll-arty-page2-vmax) - 11rem));
  max-width: 80%;
  max-height: min(80vw, calc(var(--hll-arty-page2-vmax) - 11rem));
  height: auto;
  box-sizing: border-box;
}

/* Arrows positioned with padding so not cut off — same inner rhythm for STATION / SPA / ABOUT */
.arty-section-inner,
.spa-arty-section-inner,
.about-section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem 0 1.5rem 0;
  max-width: 100%;
}

/* Invisible IntersectionObserver slots (former scroll-arrow positions) */
.hll-scroll-io-anchor {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 4.5rem;
  min-height: 4.5rem;
  box-sizing: border-box;
  pointer-events: none;
}
.hll-scroll-io-anchor .hll-arrow-visibility-sentinel {
  position: absolute;
  inset: 0;
}
.arty-section .arty-section-inner {
  gap: 0;
}
.arty-section .hll-scroll-io-anchor:first-of-type {
  margin-bottom: 0.5rem;
}
.arty-section .arty-grid + .hll-scroll-io-anchor {
  margin-top: 0.5rem;
}
.spa-arty-section .spa-arty-section-inner {
  gap: 0;
}
.spa-arty-section .hll-scroll-io-anchor:first-of-type {
  margin-bottom: 0.5rem;
}
.spa-arty-section .arty-grid + .hll-scroll-io-anchor {
  margin-top: 0.5rem;
}

/* Spacer: same height as down arrow so grid position stays fixed */
.arty-arrow-spacer {
  flex-shrink: 0;
  width: 100%;
  height: 4.5rem;
  min-height: 4.5rem;
  box-sizing: border-box;
}

.arty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  border: none;
  margin: 0;
  padding: 0;
}
/* STATION + SPA die-5 grids — ~147px corners @ ~378px grid */
.arty-grid.arty-grid--five {
  position: relative;
  /* 4 + 2.286 + 4 = 10.286fr → cell ≈147px, gap ≈84px at 378px total */
  --hll-arty-five-cell: 4fr;
  --hll-arty-five-gap: 2.286fr;
  --hll-arty-five-sum: 10.286fr;
  grid-template-columns: var(--hll-arty-five-cell) var(--hll-arty-five-gap) var(--hll-arty-five-cell);
  grid-template-rows: var(--hll-arty-five-cell) var(--hll-arty-five-gap) var(--hll-arty-five-cell);
}
#artyGrid.arty-grid--five .arty-grid-item--tl,
#spaArtyGrid.arty-grid--five .arty-grid-item--tl {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-start;
  justify-content: center;
}
#artyGrid.arty-grid--five .arty-grid-item--tl img,
#spaArtyGrid.arty-grid--five .arty-grid-item--tl img {
  object-position: top center;
}
#artyGrid.arty-grid--five .arty-grid-item--tr,
#spaArtyGrid.arty-grid--five .arty-grid-item--tr {
  grid-column: 3;
  grid-row: 1;
}
#artyGrid.arty-grid--five .arty-grid-item--bl,
#spaArtyGrid.arty-grid--five .arty-grid-item--bl {
  grid-column: 1;
  grid-row: 3;
}
#artyGrid.arty-grid--five .arty-grid-item--br,
#spaArtyGrid.arty-grid--five .arty-grid-item--br {
  grid-column: 3;
  grid-row: 3;
}
/* Canada: same size as corners, overlaid on top (not a grid cell) */
#artyGrid.arty-grid--five .arty-grid-item--c,
#spaArtyGrid.arty-grid--five .arty-grid-item--c {
  position: absolute;
  left: calc(50% - (100% * 4 / 10.286) / 2);
  top: calc(50% - (100% * 4 / 10.286) / 2);
  width: calc(100% * 4 / 10.286);
  height: calc(100% * 4 / 10.286);
  z-index: 2;
  grid-column: unset;
  grid-row: unset;
  pointer-events: auto;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
  overflow: hidden;
  background: transparent;
  box-sizing: border-box;
}
#artyGrid.arty-grid--five .arty-grid-item--c img,
#spaArtyGrid.arty-grid--five .arty-grid-item--c img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border: none;
}
#screenMap .arty-section #artyGrid.arty-grid--five .arty-grid-item--c:hover,
#screenMap .arty-section #artyGrid.arty-grid--five .arty-grid-item--c:focus-visible,
#screenMap .spa-arty-section #spaArtyGrid.arty-grid--five .arty-grid-item--c:hover,
#screenMap .spa-arty-section #spaArtyGrid.arty-grid--five .arty-grid-item--c:focus-visible {
  background: transparent;
  outline: none;
  box-shadow: none;
}
.arty-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  background: transparent;
  margin: 0;
  overflow: hidden;
}
.arty-grid-item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
}
.arty-section .arty-grid,
.spa-arty-section .arty-grid {
  max-width: 80%;
}
.arty-section .arty-grid-item img,
.spa-arty-section .arty-grid-item img {
  transform: scale(1);
}
/* Light theme: gold/tan side logos → black (arty grid, SPA grid, choose-side picker) */
html.hll-theme-light img[data-hll-side-logo] {
  filter: brightness(0);
}
.arty-section .arty-grid-item,
.spa-arty-section .arty-grid-item {
  padding: 0.15rem;
  cursor: pointer;
}
.arty-section .arty-grid-item:active,
.spa-arty-section .arty-grid-item:active {
  opacity: 0.85;
}

#screenMap .arty-section .arty-grid-item:hover,
#screenMap .spa-arty-section .arty-grid-item:hover {
  background: var(--hll-nav-bg);
}

/* Match 1→2 exactly: same duration and opacity delay so no “too fast” or end jump */
/* SPA section (page 3) – inherits from .page-section */
.page-section-3.spa-arty-section {
  padding: 2rem 0 2rem 0;
  z-index: 3;
}

/* Same cap as STATION (page 2): never extend into fixed bottom nav on short / dynamic viewports */
#screenMap .page-section.page-section-3.spa-arty-section {
  --hll-spa-page3-vmax: calc(100vh - 4.5rem - env(safe-area-inset-top, 0px) - var(--hll-main-chrome-bottom));
  --hll-spa-page3-vmax: calc(100svh - 4.5rem - env(safe-area-inset-top, 0px) - var(--hll-main-chrome-bottom));
  max-height: var(--hll-spa-page3-vmax);
  min-height: min(
    calc(100dvh - 4.5rem - var(--hll-main-chrome-bottom)),
    var(--hll-spa-page3-vmax)
  );
  overflow: hidden;
  box-sizing: border-box;
}
#screenMap .page-section.page-section-3.spa-arty-section .spa-arty-section-inner {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
#screenMap .page-section.page-section-3.spa-arty-section .arty-grid {
  flex-shrink: 1;
  min-width: 0;
  min-height: 0;
  width: min(80%, calc(var(--hll-spa-page3-vmax) - 11rem));
  max-width: 80%;
  max-height: min(80vw, calc(var(--hll-spa-page3-vmax) - 11rem));
  height: auto;
  box-sizing: border-box;
}

/* ABOUT (page 4) – two rows like spa-arty-tank-grid; bottom padding 0 so section bottom meets nav.hll-bottom-nav top */
.page-section-4.about-section {
  padding: 2rem 0 0 0;
  z-index: 4;
  overflow: visible;
  flex-shrink: 0;
  justify-content: center;
}
/*
 * Native ABOUT: usable band below sticky title + top chrome (--hll-about-visible-below-title).
 * min-height fills that band; .about-section-inner matches that band (minus section padding), flex:1 fills the section,
 * and the paywall (flex:1 + CSS grid align-content:center) centers the offer stack in the remaining space under the IO anchor.
 */
html.hll-platform-ios #screenMap .page-section.page-section-4.about-section,
html.hll-platform-android #screenMap .page-section.page-section-4.about-section,
html.hll-platform-browser #screenMap .page-section.page-section-4.about-section {
  flex-grow: 0;
  flex-shrink: 0;
  padding-top: 0.75rem;
  padding-bottom: 0;
  margin-bottom: 0;
  --hll-about-title-stack: calc(4.5rem + env(safe-area-inset-top, 0px));
  --hll-about-visible-below-title: calc(
    100dvh - var(--hll-main-chrome-bottom) - var(--hll-map-screen-top-ad-stack-h) - var(--hll-about-title-stack) - 0.35rem -
      var(--hll-page4-main-pad-bottom)
  );
  /* Room: IO anchor + subscription disclosure (~4.25rem) + 3 tile rows + gaps */
  --hll-about-tile-max: calc((var(--hll-about-visible-below-title) - 2.25rem - 0.7rem - 4.25rem) / 3);
  min-height: var(--hll-about-visible-below-title) !important;
}
html.hll-platform-ios.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-top) #screenMap .page-section.page-section-4.about-section,
html.hll-platform-android.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-top) #screenMap .page-section.page-section-4.about-section,
html.hll-platform-browser.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-top) #screenMap .page-section.page-section-4.about-section {
  --hll-about-visible-below-title: calc(
    100dvh - var(--hll-main-chrome-bottom) - var(--hll-about-title-stack) - 0.35rem - var(--hll-page4-main-pad-bottom)
  );
  --hll-about-tile-max: calc((var(--hll-about-visible-below-title) - 2.25rem - 0.7rem - 4.25rem) / 3);
}
.about-section .about-section-inner {
  gap: 0;
  flex-shrink: 0;
  overflow: visible;
  width: 100%;
}
html.hll-platform-ios .about-section .about-section-inner,
html.hll-platform-android .about-section .about-section-inner,
html.hll-platform-browser .about-section .about-section-inner {
  /* Grow to native section min-height so the paywall flex child gets a definite vertical band. */
  flex: 1 1 auto;
  /* Space below belt before IO anchor / paywall (belt is outside this inner but scroll aligns here). */
  padding-top: 1rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  margin-bottom: 0;
  overflow: visible;
  max-height: none;
  align-items: stretch;
  /* One band height (matches #aboutSection min-height minus native section padding-top 0.75rem). */
  min-height: calc(var(--hll-about-visible-below-title) - 0.75rem);
  justify-content: flex-start;
}
/* ABOUT: avoid first section pixels scrolling under sticky .title-belt (z-index 100). */
html.hll-platform-ios #screenMap #aboutSection,
html.hll-platform-android #screenMap #aboutSection,
html.hll-platform-browser #screenMap #aboutSection {
  scroll-margin-top: calc(var(--hll-title-belt-sticky-top) + 1rem);
}
.about-section .hll-scroll-io-anchor {
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  height: calc(4.5rem / 4);
  min-height: calc(4.5rem / 4);
}
html.hll-platform-ios .about-section .hll-scroll-io-anchor,
html.hll-platform-android .about-section .hll-scroll-io-anchor,
html.hll-platform-browser .about-section .hll-scroll-io-anchor {
  margin-bottom: 0.25rem;
}

html:not(.hll-platform-ios) .about-apple-paywall {
  display: none !important;
}
html:not(.hll-platform-android) .about-android-paywall {
  display: none !important;
}
html:not(.hll-platform-browser) .about-browser-paywall {
  display: none !important;
}

/* Native / browser ABOUT paywall (scrolls if needed on small phones; readable on iPad). */
.about-apple-paywall,
.about-android-paywall,
.about-browser-paywall {
  /* Hairline row width: matches .about-apple-column content (≈ 20rem − horizontal padding). */
  --about-apple-divider-w: min(18.7rem, calc(100vw - 2.75rem));
  /* Uniform vertical rhythm: column flex gap + paywall grid gap (both hairlines + title↔icon match). */
  --about-apple-hairline-gap: clamp(1.05rem, 3.1vmin, 1.3rem);
  /* Extra breathing room above/below the app icon only (same top & bottom). */
  --about-app-icon-margin-block: clamp(1.3rem, 6vmin, 2.3rem);
  width: 100%;
  max-width: min(26rem, 94vw);
  margin: 0 auto;
  padding: 0 max(0.75rem, env(safe-area-inset-left, 0px)) 0.5rem max(0.75rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  /* Grid: align-content centers the whole offer stack when min-height leaves extra band (flex+min-height is flaky on iOS WKWebView). */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--about-apple-hairline-gap);
  justify-items: center;
  align-content: center;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.95);
  -webkit-font-smoothing: antialiased;
}
html.hll-platform-ios .about-apple-paywall {
  /* position:relative: entire paywall scrolls with #mainContent so Terms/Privacy are reachable (tall sticky clipped the bottom). */
  position: relative;
  top: auto;
  z-index: 1;
  align-self: stretch;
  width: 100%;
  max-width: min(26rem, 94vw);
  margin-left: auto;
  margin-right: auto;
  background-color: #000;
  /* Fill .about-section-inner below IO anchor; grid align-content centers the stack in this band. */
  flex: 1 1 auto;
  min-height: 0;
  padding-top: clamp(1.35rem, 5.5vmin, 3.25rem);
  box-sizing: border-box;
  /* Room for Terms / Privacy above bottom nav + home indicator */
  padding-bottom: max(1.5rem, calc(var(--hll-main-chrome-bottom) + env(safe-area-inset-bottom, 0px) + 1rem));
}
html.hll-platform-android .about-android-paywall {
  position: relative;
  top: auto;
  z-index: 1;
  align-self: stretch;
  width: 100%;
  max-width: min(26rem, 94vw);
  margin-left: auto;
  margin-right: auto;
  background-color: #000;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: clamp(1.35rem, 5.5vmin, 3.25rem);
  box-sizing: border-box;
  padding-bottom: max(1.5rem, calc(var(--hll-main-chrome-bottom) + env(safe-area-inset-bottom, 0px) + 1rem));
}
html.hll-platform-browser .about-browser-paywall {
  position: relative;
  top: auto;
  z-index: 1;
  align-self: stretch;
  width: 100%;
  max-width: min(26rem, 94vw);
  margin-left: auto;
  margin-right: auto;
  background-color: #000;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: clamp(1.35rem, 5.5vmin, 3.25rem);
  box-sizing: border-box;
  padding-bottom: max(1.5rem, calc(var(--hll-main-chrome-bottom) + env(safe-area-inset-bottom, 0px) + 1rem));
}
.about-browser-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(20rem, 92vw);
  margin: 0 auto;
}
.about-browser-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  line-height: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.about-browser-store-badge:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.about-browser-store-badge:active {
  transform: scale(0.98);
}
.about-browser-store-badge img {
  display: block;
  height: min(3.25rem, 12vw);
  width: auto;
  max-width: 100%;
  pointer-events: none;
}
.about-browser-legal .about-legal-sep {
  display: none;
}
html.hll-theme-light.hll-platform-ios #screenMap #aboutSection #aboutApplePaywall,
html.hll-theme-light.hll-platform-android #screenMap #aboutSection #aboutAndroidPaywall,
html.hll-theme-light.hll-platform-browser #screenMap #aboutSection #aboutBrowserPaywall {
  background-color: var(--hll-nav-bg);
}

/*
 * Tablet / iPad: wider column + type scale. Vertical centering: paywall grid align-content + native min-height band.
 * Breakpoint 700px (not 768): iPad mini portrait is ~744px wide — 768px missed narrow tablets.
 * Restore / Rate / legal are paywall direct children while CTAs live in .about-apple-column: without a shared max-width they center in the wider paywall and look offset from the hairline + buttons above — constrain them to the column width.
 */
@media (min-width: 700px) {
  html.hll-platform-ios .about-apple-paywall,
  html.hll-platform-android .about-android-paywall,
  html.hll-platform-browser .about-browser-paywall {
    --about-apple-tablet-col: min(28rem, 88vw);
    max-width: min(36rem, 94vw);
    padding-top: clamp(1.25rem, 2.5vmin, 2rem);
  }
  html.hll-platform-ios .about-apple-paywall .about-apple-column,
  html.hll-platform-android .about-android-paywall .about-apple-column,
  html.hll-platform-browser .about-browser-paywall .about-apple-column {
    max-width: var(--about-apple-tablet-col);
  }
  html.hll-platform-ios .about-apple-paywall .about-apple-heading,
  html.hll-platform-android .about-android-paywall .about-apple-heading,
  html.hll-platform-browser .about-browser-paywall .about-apple-heading {
    max-width: 100%;
  }
  html.hll-platform-ios .about-apple-paywall > .about-apple-link-btn,
  html.hll-platform-android .about-android-paywall > .about-apple-link-btn,
  html.hll-platform-ios .about-apple-paywall > .about-apple-hairline.about-apple-hairline--links,
  html.hll-platform-android .about-android-paywall > .about-apple-hairline.about-apple-hairline--links,
  html.hll-platform-ios .about-apple-paywall > .about-apple-legal,
  html.hll-platform-android .about-android-paywall > .about-apple-legal,
  html.hll-platform-browser .about-browser-paywall > .about-apple-legal {
    max-width: var(--about-apple-tablet-col);
    width: 100%;
    box-sizing: border-box;
    align-self: center;
  }
  html.hll-platform-ios .about-apple-paywall,
  html.hll-platform-android .about-android-paywall,
  html.hll-platform-browser .about-browser-paywall {
    --about-apple-divider-w: min(26rem, calc(100vw - 3rem));
  }
  html.hll-platform-ios .about-apple-paywall .about-apple-title-line,
  html.hll-platform-android .about-android-paywall .about-apple-title-line {
    font-size: clamp(1.55rem, 2.75vw, 2.15rem);
  }
  html.hll-platform-ios .about-apple-paywall .about-apple-subtitle-line,
  html.hll-platform-android .about-android-paywall .about-apple-subtitle-line {
    font-size: clamp(1.12rem, 2vw, 1.35rem);
  }
  html.hll-platform-ios .about-apple-paywall .about-apple-link-btn,
  html.hll-platform-android .about-android-paywall .about-apple-link-btn {
    font-size: clamp(1.08rem, 1.85vw, 1.22rem);
  }
  html.hll-platform-ios .about-apple-paywall .about-browser-version-link,
  html.hll-platform-android .about-android-paywall .about-browser-version-link {
    font-size: clamp(1.08rem, 1.85vw, 1.22rem);
  }
  html.hll-platform-ios .about-apple-paywall .about-rate-secondary-link,
  html.hll-platform-android .about-android-paywall .about-rate-secondary-link {
    font-size: calc(0.9 * clamp(1.08rem, 1.85vw, 1.22rem));
  }
  html.hll-platform-ios .about-apple-paywall .about-native-link-stack,
  html.hll-platform-android .about-android-paywall .about-native-link-stack {
    gap: 0.45rem;
  }
  html.hll-platform-ios .about-apple-paywall .about-apple-legal,
  html.hll-platform-android .about-android-paywall .about-apple-legal {
    font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  }
}

/* Shared column: heading + icon + hairlines + Rate — one vertical rhythm via flex gap. */
.about-apple-column {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  padding: 0 0.65rem;
  box-sizing: border-box;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--about-apple-hairline-gap);
}
.about-apple-heading {
  width: 100%;
  max-width: min(20rem, 92vw);
  margin: 0 auto;
  padding: 0 0.15rem;
  box-sizing: border-box;
  text-align: center;
}
/* Hairline: margin handled by parent .about-apple-column gap so space above & below each line matches. */
.about-apple-hairline {
  width: var(--about-apple-divider-w);
  max-width: var(--about-apple-divider-w);
  margin: 0 auto;
  padding: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  height: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}
.about-apple-title-line {
  margin: 0;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.96);
}
.about-app-icon {
  display: block;
  width: clamp(8.5rem, 34vmin, 11.5rem);
  height: auto;
  margin: var(--about-app-icon-margin-block) auto;
  flex-shrink: 0;
  border-radius: 22%;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}
html.hll-theme-light.hll-platform-ios .about-app-icon,
html.hll-theme-light.hll-platform-android .about-app-icon {
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
}
.about-apple-subtitle-line {
  margin: 0;
  font-size: clamp(0.88rem, 2.6vw, 1rem);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}
html.hll-theme-light.hll-platform-ios .about-apple-title-line,
html.hll-theme-light.hll-platform-android .about-apple-title-line {
  color: rgba(15, 23, 42, 0.95);
}
html.hll-theme-light.hll-platform-ios .about-apple-subtitle-line,
html.hll-theme-light.hll-platform-android .about-apple-subtitle-line {
  color: rgba(15, 23, 42, 0.78);
}
.about-apple-legal .about-legal-sep {
  font-weight: 400;
  color: inherit;
  opacity: 0.9;
}
.about-apple-link-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  padding: 0.32rem 0.25rem;
  margin: 0;
  font-family: inherit;
  font-size: clamp(0.88rem, 2.4vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  text-decoration: none;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  align-self: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* Native ABOUT (iOS + Android): browser CTA primary, store rate secondary — between hairlines */
.about-native-link-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.1rem 0;
  box-sizing: border-box;
}
.about-apple-paywall .about-browser-version-link,
.about-android-paywall .about-browser-version-link,
.about-apple-paywall .about-rate-secondary-link,
.about-android-paywall .about-rate-secondary-link {
  color: rgba(180, 210, 255, 0.98);
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: 1.3;
  padding: 0.28rem 0.35rem;
}
.about-apple-paywall .about-browser-version-link,
.about-android-paywall .about-browser-version-link {
  font-size: clamp(0.88rem, 2.4vw, 0.98rem);
  font-weight: 600;
}
.about-apple-paywall .about-rate-secondary-link,
.about-android-paywall .about-rate-secondary-link {
  font-size: calc(0.9 * clamp(0.88rem, 2.4vw, 0.98rem));
  font-weight: 600;
  color: rgba(180, 210, 255, 0.88);
}
.about-apple-paywall .about-browser-version-link:active,
.about-android-paywall .about-browser-version-link:active,
.about-apple-paywall .about-rate-secondary-link:active,
.about-android-paywall .about-rate-secondary-link:active {
  opacity: 0.8;
}
/* Legacy: large “Rate …” hero row (web dev mock only if reintroduced) */
.about-apple-paywall .about-apple-link-btn.about-rate-between-lines,
.about-android-paywall .about-apple-link-btn.about-rate-between-lines {
  color: rgba(180, 210, 255, 0.98);
}
.about-apple-link-btn.about-rate-between-lines {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: calc(2 * clamp(0.88rem, 2.4vw, 0.98rem));
  font-weight: 700;
  line-height: 1.28;
  padding: 0.45rem 0.35rem;
}
.about-rate-store-name {
  white-space: nowrap;
}
.about-apple-link-btn:active {
  opacity: 0.75;
}
html.hll-theme-light #screenMap .about-section .about-apple-hairline {
  border-top-color: rgba(15, 23, 42, 0.22);
}
.about-apple-legal {
  margin: 0;
  padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  font-size: clamp(0.78rem, 2.2vw, 0.88rem);
  line-height: 1.45;
}
.about-apple-paywall .about-legal-link,
.about-android-paywall .about-legal-link {
  color: rgba(180, 210, 255, 0.98);
  text-decoration: none;
}
.about-apple-paywall .about-legal-link:active,
.about-android-paywall .about-legal-link:active {
  opacity: 0.8;
}
/* Light theme: pale blue legal links are invisible on --hll-nav-bg; use readable link + body text for " and " */
html.hll-theme-light.hll-platform-ios .about-apple-paywall .about-apple-legal,
html.hll-theme-light.hll-platform-android .about-android-paywall .about-apple-legal {
  color: rgba(15, 23, 42, 0.78);
}
html.hll-theme-light.hll-platform-ios .about-apple-paywall .about-legal-link,
html.hll-theme-light.hll-platform-android .about-android-paywall .about-legal-link {
  color: #0a5ed6;
}
html.hll-theme-light.hll-platform-ios .about-apple-paywall .about-legal-link:active,
html.hll-theme-light.hll-platform-android .about-android-paywall .about-legal-link:active {
  opacity: 0.85;
}
html.hll-theme-light.hll-platform-ios .about-apple-paywall .about-browser-version-link,
html.hll-theme-light.hll-platform-android .about-android-paywall .about-browser-version-link,
html.hll-theme-light.hll-platform-ios .about-apple-paywall .about-rate-secondary-link,
html.hll-theme-light.hll-platform-android .about-android-paywall .about-rate-secondary-link {
  color: #0a5ed6;
}
html.hll-theme-light.hll-platform-ios .about-apple-paywall .about-rate-secondary-link,
html.hll-theme-light.hll-platform-android .about-android-paywall .about-rate-secondary-link {
  color: rgba(10, 94, 214, 0.82);
}
html.hll-theme-light.hll-platform-ios .about-apple-paywall .about-browser-version-link:active,
html.hll-theme-light.hll-platform-android .about-android-paywall .about-browser-version-link:active,
html.hll-theme-light.hll-platform-ios .about-apple-paywall .about-rate-secondary-link:active,
html.hll-theme-light.hll-platform-android .about-android-paywall .about-rate-secondary-link:active {
  opacity: 0.85;
}

html.hll-platform-ios.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section-inner,
html.hll-platform-android.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section-inner,
html.hll-platform-browser.hll-nav-only-main-paging body:not(.points-screen-active) #screenMap #mainContent.content.page-4 .about-section-inner {
  touch-action: pan-y !important;
}
html.hll-platform-ios .about-section .arty-arrow-spacer,
html.hll-platform-android .about-section .arty-arrow-spacer,
html.hll-platform-browser .about-section .arty-arrow-spacer {
  display: none;
}
/* Less dead space under ABOUT — scroll area is for content, not a full arrow spacer */
.about-section .arty-arrow-spacer {
  height: 1.25rem;
  min-height: 1.25rem;
  flex-shrink: 0;
}

/* 2 columns, zero gaps; full width */
.map-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  row-gap: 0;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
}

/* No fixed aspect ratio – row height from content; images not cropped */
.map-item {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
  transition: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.map-item:active {
  transform: scale(0.98);
}

.map-item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
  -webkit-user-drag: none;
  object-fit: contain;
  object-position: top center;
}

/* Chevron icon (floating MAPS arrows only — in-flow scroll arrows removed) */
.map-list-arrow-icon {
  display: block;
  width: 3rem;
  height: 3rem;
  pointer-events: none;
}

/* IO overlay — positioned inside .hll-scroll-io-anchor / .hll-maps-end-io-anchor__hit */
.hll-arrow-visibility-sentinel {
  pointer-events: none;
  opacity: 0;
  visibility: visible;
  box-sizing: border-box;
}

/* Screen switching */
.screen {
  display: block;
  width: 100%;
  min-height: 100%;
}
.screen-hidden {
  display: none;
}

/* Choose a side subpage: no scroll, grid fills view */
.content-side {
  padding-top: 0;
  padding-bottom: var(--hll-side-ad-strip-h);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.title-bar.title-bar-side {
  margin: -1rem -1rem 0 -1rem;
  padding: 1.4rem 1rem 1.1rem 1rem;
  padding-left: 3.5rem;
  width: calc(100% + 2rem);
  max-width: calc(100% + 2rem);
  height: 4.5rem;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #000;
  box-shadow: none;
}
.title-bar-side .back-arrow {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(calc(-50% + 0.2rem));
}
.title-bar-side .back-arrow:active {
  transform: translateY(calc(-50% + 0.2rem)) scale(0.96);
}
.back-arrow {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: none;
}
.back-arrow-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}
.back-arrow:hover {
  color: #fff;
}
.back-arrow:active { transform: scale(0.96); }
.title-side {
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  white-space: normal;
  line-height: 1.25;
  font-size: clamp(0.85rem, 2.2vh, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.title-bar-side .title {
  display: none;
}
.content-side .side-banner .title {
  display: block;
}
.side-banner {
  flex: 0 0 12%;
  min-height: 4.5rem;
  max-height: 12vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  margin: 0;
  background: #000;
  flex-shrink: 0;
  box-sizing: border-box;
}
.side-banner .title-side {
  margin: 0;
  padding: 0;
  text-align: center;
  position: static;
  left: auto;
  right: auto;
}
.title-side-sub {
  display: block;
  margin-top: 0.15em;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}
.title-bar .title {
  flex: 1;
  min-width: 0;
  text-align: center;
  pointer-events: none;
  padding-left: 0;
}

/* Side list: arty-grid-like 2 columns; with 2 sides this is a single row. */
.side-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 80%;
  aspect-ratio: 2 / 1;
  padding: 0;
  margin: auto;
  flex: 0 0 auto;
  overflow: hidden;
  background: #000;
  align-items: stretch;
  justify-items: stretch;
}
/* Choose-a-side: reserve bottom strip for fixed ad (same height as map points) — shrinks .side-list grid */
#screenSide.screen-side {
  --hll-side-ad-strip-h: 12dvh;
  /* Same idea as STATION/SPA .arty-grid caps: height-limited so wide viewports do not blow up the flag row */
  --hll-side-page-vmax: calc(100vh - 4.5rem - env(safe-area-inset-top, 0px) - var(--hll-main-chrome-bottom) - var(--hll-side-ad-strip-h, 12dvh));
  --hll-side-page-vmax: calc(100svh - 4.5rem - env(safe-area-inset-top, 0px) - var(--hll-main-chrome-bottom) - var(--hll-side-ad-strip-h, 12dvh));
}
/* 2:1 flag row — mirror #screenMap .arty-section .arty-grid sizing (80% width + vmax/ vw height ceiling) */
#screenSide .side-list {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  width: min(80%, calc(2 * (var(--hll-side-page-vmax) - 11rem)));
  max-width: 80%;
  max-height: min(40vw, calc(var(--hll-side-page-vmax) - 11rem));
  height: auto;
  margin-top: auto;
  margin-bottom: auto;
  box-sizing: border-box;
}
.side-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0.15rem;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: none;
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.side-item:hover {
  background: var(--hll-nav-bg);
}
.side-item:active { transform: scale(0.99); }
.side-item-label {
  display: none !important;
}
.side-item-logo {
  display: block;
  flex: 0 1 auto;
  min-height: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  border: none;
}
/* Android ≤13 WebView (html.hll-android-legacy-webview from app.js): avoid 0×0 logo cells */
html.hll-android-legacy-webview .side-item-logo {
  min-height: 0;
  min-width: 0;
  height: auto;
}

/* Station + SPA calculators: disable long-press text selection and iOS magnifier / “Copy” callout on labels, tables, images, buttons */
#artySection,
#spaArtySection,
#screenArtyElevation,
#screenSpaArtySoviet,
#screenSpaArtyBritish,
#screenSpaArtyGerman {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#artySection img,
#spaArtySection img,
#screenArtyElevation img,
#screenSpaArtySoviet img,
#screenSpaArtyBritish img,
#screenSpaArtyGerman img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Editable inputs only — still allow tapping to change numbers / use keyboard */
#artySection input:not([readonly]),
#spaArtySection input:not([readonly]),
#screenArtyElevation input:not([readonly]),
#screenSpaArtySoviet input:not([readonly]),
#screenSpaArtyBritish input:not([readonly]),
#screenSpaArtyGerman input:not([readonly]),
#artySection textarea,
#spaArtySection textarea,
#screenArtyElevation textarea,
#screenSpaArtySoviet textarea,
#screenSpaArtyBritish textarea,
#screenSpaArtyGerman textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Arty elevation screen (Germany side) – match reference: black, thin font, gold/green; full viewport, no ad area */
.screen-arty-elevation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--hll-main-chrome-bottom);
  z-index: 21;
  background: #000;
  font-family: "Core Sans AR 35 Light", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  /* Clip flex descendants — tables frame was painting under fixed bottom nav (65vh + flex 0 0 auto stack). */
  overflow: hidden;
  /* Flex column so .layout → .screen-wrap → main fill height to bottom edge (flush above hll-bottom-nav). */
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.screen-arty-elevation > .layout-arty-elevation {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: none;
}
.screen-arty-elevation.screen-hidden {
  display: none;
}
.layout-arty-elevation {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  background: #000;
  overflow-x: auto;
  overflow-y: hidden;
  border: none;
}
.arty-elevation-screen-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0.5rem;
  padding-top: max(0.5rem, env(safe-area-inset-top, 0));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* Header and content 0.1rem from viewport left; top = safe area only (ad-top div reserves 2.5rem) */
.screen-arty-elevation .arty-elevation-screen-wrap {
  padding-left: 0.1rem;
  padding-top: max(0.5rem, env(safe-area-inset-top, 0));
  padding-bottom: 0;
  flex: 1 1 0;
  min-height: 0;
}
.arty-elevation-header-box {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  /* Room below elevation row so yellow MIL box bottom border is not covered by main (margin-bottom -3px + main overflow:hidden). */
  padding: 0 0 5px 0;
  margin-bottom: -3px;
  background: #000;
  border: 2px solid transparent;
  box-sizing: border-box;
  width: 100%;
  max-width: 24rem;
  align-self: center;
  overflow: visible;
}
/* Override .title-bar-arty-elevation when used as header box: keep row layout; bottom pad keeps MIL border above main overlap */
.arty-elevation-header-box.title-bar-arty-elevation {
  flex-direction: row;
  padding: 0 0 5px 0;
  justify-content: flex-start;
}
/* SPA Soviet: same red header box as stationary – left edge aligns with columns container below */
.arty-elevation-header-box.title-bar-spa-arty-soviet {
  flex-direction: row;
  padding: 0 0 5px 0;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
  margin-bottom: -3px;
  align-self: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 24rem;
  /* Center when viewport ≥ 24rem; no negative inset when narrower (e.g. Pixel 8 ~359px) */
  margin-left: max(0px, calc((100% - min(24rem, 100%)) / 2));
}
/* SPA Soviet: full viewport height (no 24dvh gap), no bottom border/grey line – match stationary frame */
.screen-spa-arty-soviet .layout-spa-arty-soviet {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  box-sizing: border-box;
  border: none;
  overflow-x: hidden;
}
.screen-spa-arty-soviet .arty-elevation-screen-wrap.spa-arty-screen-wrap {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0.1rem;
  padding-right: 0.5rem;
  padding-top: max(0.5rem, env(safe-area-inset-top, 0));
  padding-bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
/* Wide SPA: let left + elevation columns share row (no side ad rail on SPA Soviet) */
@media (min-width: 56rem) {
  .screen-spa-arty-soviet .arty-elevation-under-header .arty-elevation-columns-container .arty-elevation-left-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
  }
  .screen-spa-arty-soviet .arty-elevation-under-header .arty-elevation-columns-container .content.content-arty-elevation {
    flex: 1.22 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
  }
}
/* Main = row: left col (aligns with header), terrain, content-arty-elevation; stretch so columns full height */
.screen-spa-arty-soviet .content-spa-arty-soviet.spa-arty-main-row {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  margin-top: -3px;
  margin-bottom: 0;
  touch-action: none;
  overflow: hidden;
}
/* Left: terrain wrap – takes remaining space, fits content */
.screen-spa-arty-soviet .spa-arty-main-row .spa-arty-terrain-wrap {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: auto;
}
/* SPA right column: same as stationary; right-aligned; when has top row, wider to fit left col + one-cell */
.screen-spa-arty-soviet .content.content-arty-elevation {
  flex: 0 0 auto;
  width: 13.23rem;
  max-width: 13.23rem;
  min-height: 0;
  align-self: stretch;
  margin-left: auto !important;
  margin-right: 0;
}
/* SPA: distance arrows cell (below tables); explicit height 5rem so tables-frame + one-cell = left col total */
.screen-spa-arty-soviet .arty-elevation-under-header .arty-elevation-columns-container .content.content-arty-elevation > .arty-elevation-one-cell {
  margin-top: -2px;
  height: 5rem;
  min-height: 5rem;
  flex: 0 0 5rem;
}
/* Main row: padding so elevation block aligns with header (header centered max-width 24rem) */
.screen-spa-arty-soviet .content-spa-arty-soviet.spa-arty-main-row {
  min-width: 0;
  padding-left: max(0px, calc((100% - min(24rem, 100%)) / 2));
}
/* Wrapper under header: same width as header (24rem); joined to header; stretch to main row height */
.screen-spa-arty-soviet .arty-elevation-under-header {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 24rem;
  flex-shrink: 0;
  align-self: stretch;
  margin-top: 4px;
  margin-bottom: 0;
  min-height: 0;
  min-width: 0;
}
/* Single container for both columns; flush to bottom nav (column bottoms meet nav; left = terrain arrows cell last) */
.screen-spa-arty-soviet .arty-elevation-under-header .arty-elevation-columns-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
}
/* Left column: 45% of container; overflow visible so fill cell is not clipped (left cells sum 779px) */
.screen-spa-arty-soviet .arty-elevation-under-header .arty-elevation-columns-container .arty-elevation-left-col {
  display: flex;
  flex-direction: column;
  flex: 0 0 45%;
  width: 45%;
  min-width: 0;
  max-width: 45%;
  min-height: 0;
  height: 100%;
  gap: 0;
  margin-top: 0;
  margin-bottom: 0;
  align-self: stretch;
  overflow: visible;
}
/* content-arty-elevation inside columns container: 55% of container; match columns container height exactly so same as left col */
.screen-spa-arty-soviet .arty-elevation-under-header .arty-elevation-columns-container .content.content-arty-elevation {
  flex: 0 0 55%;
  width: 55%;
  max-width: 55%;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin-left: 0 !important;
  margin-right: 0;
  padding-left: 0;
  padding-bottom: 0;
  align-self: stretch !important;
  display: flex;
  flex-direction: column;
}
/* Inside columns container: one-cell and tables-frame fill the 55% column; no left margin so left border aligns */
.screen-spa-arty-soviet .arty-elevation-under-header .arty-elevation-columns-container .content.content-arty-elevation .arty-elevation-one-cell,
.screen-spa-arty-soviet .arty-elevation-under-header .arty-elevation-columns-container .content.content-arty-elevation .arty-elevation-tables-frame {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}
/* Right column: tables-frame grows with column height (ad-free / collapsed top slot → more room for distance table) */
.screen-spa-arty-soviet .arty-elevation-under-header .arty-elevation-columns-container .content.content-arty-elevation > .arty-elevation-tables-frame {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  height: auto;
  max-height: none;
  margin-top: 0;
  margin-bottom: -2px;
}
/* 55% column can be < 13.23rem on phones — drop fixed min-width so layout stays within viewport */
.screen-spa-arty-soviet .arty-elevation-under-header .spa-arty-distance-wrap {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.screen-spa-arty-soviet .arty-elevation-left-cell {
  flex-shrink: 0;
  width: 100%;
  min-height: 5rem;
  height: 5rem;
  border: 2px solid transparent;
  box-sizing: border-box;
  background: #000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 0.5rem;
  margin-bottom: 0;
}
.screen-spa-arty-soviet .arty-elevation-left-cell:first-child {
  margin-top: 0;
  margin-bottom: 0;
  align-items: flex-end;
}
.screen-spa-arty-soviet .arty-elevation-left-cell:last-child {
  margin-bottom: 0;
}
/* Fourth left cell: flex-grow so terrain strip gains height when top ad / main padding collapse (matches tables-frame growth) */
.screen-spa-arty-soviet .arty-elevation-left-col .arty-elevation-left-cell-fill {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: none;
  margin-bottom: 0;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  padding: 0;
}
/* Terrain slider fills fill cell so content reaches bottom (no gap); align to bottom so -250 MIL lines up with right column bottom */
.screen-spa-arty-soviet .arty-elevation-left-cell-fill .spa-arty-terrain-slider-wrap {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  justify-content: center;
  align-self: stretch;
}
/* First left cell: terrain label (moved from spa-arty-terrain-head) */
.screen-spa-arty-soviet .arty-elevation-left-cell .spa-arty-terrain-label-two-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}
/* Second left cell: terrain input row (moved from spa-arty-terrain-head); same color as terrain label */
.screen-spa-arty-soviet .arty-elevation-left-cell .spa-arty-terrain-input-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  flex-shrink: 0;
  color: #cc6969;
}
/* Terrain input: same size as distance box (height 2.5rem, min-width 7rem, same font/padding) */
.screen-spa-arty-soviet .arty-elevation-left-cell .spa-arty-terrain-input-row .spa-arty-terrain-input-header {
  box-sizing: border-box;
  height: 2.5rem;
  min-width: 7rem;
  width: 7rem;
  padding: 0.25rem 0.35rem;
  border: 2px solid #cc6969;
  border-radius: 4px;
  background: #000;
  font-size: clamp(1.5rem, 3.84vw, 1.92rem);
  text-align: center !important;
  color: #cc6969;
  outline: 2px solid #cc6969;
  outline-offset: -2px;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.screen-spa-arty-soviet .arty-elevation-left-cell .spa-arty-terrain-input-row .spa-arty-terrain-input-header::placeholder {
  color: rgba(204, 105, 105, 0.5);
}
.screen-spa-arty-soviet .arty-elevation-left-cell .spa-arty-terrain-input-row .spa-arty-terrain-input-header:focus {
  outline: none;
  box-shadow: none;
}
.hll-spa-custom-keypad-field {
  cursor: pointer;
  caret-color: transparent;
}
.hll-spa-custom-keypad-field.hll-spa-custom-keypad-field--active {
  outline: 2px solid rgba(204, 105, 105, 0.65);
  outline-offset: 1px;
}
html.hll-theme-light .hll-spa-custom-keypad-field.hll-spa-custom-keypad-field--active {
  outline-color: rgba(112, 56, 56, 0.55);
}
/* SPA custom numeric keypad — replaces system keyboard (dark + light via html.hll-theme-light) */
.hll-spa-custom-keypad {
  --hll-spa-kb-panel-bg: #141414;
  --hll-spa-kb-key-bg: #2a2a2a;
  --hll-spa-kb-key-bg-active: #3d3d3d;
  --hll-spa-kb-key-text: #f5f5f5;
  --hll-spa-kb-key-muted: #9ca3af;
  --hll-spa-kb-done-bg: #cc6969;
  --hll-spa-kb-done-text: #fff;
  --hll-spa-kb-border: rgba(255, 255, 255, 0.1);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10070;
  display: none;
  flex-direction: column;
  padding: 0.35rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: var(--hll-spa-kb-panel-bg);
  border-top: 1px solid var(--hll-spa-kb-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: "Core Sans AR 35 Light", system-ui, -apple-system, sans-serif;
}
.hll-spa-custom-keypad.is-open {
  display: flex;
}
html.hll-theme-light .hll-spa-custom-keypad {
  --hll-spa-kb-panel-bg: #e6e3e0;
  --hll-spa-kb-key-bg: #d4d1ce;
  --hll-spa-kb-key-bg-active: #c4c1be;
  --hll-spa-kb-key-text: #0f172a;
  --hll-spa-kb-key-muted: #64748b;
  --hll-spa-kb-done-bg: #703838;
  --hll-spa-kb-done-text: #fff;
  --hll-spa-kb-border: rgba(15, 23, 42, 0.14);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
}
.hll-spa-custom-keypad__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}
.hll-spa-custom-keypad__key {
  min-height: 2.65rem;
  margin: 0;
  padding: 0.35rem;
  border: none;
  border-radius: 0.35rem;
  background: var(--hll-spa-kb-key-bg);
  color: var(--hll-spa-kb-key-text);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.hll-spa-custom-keypad__key:active {
  background: var(--hll-spa-kb-key-bg-active);
}
.hll-spa-custom-keypad__key--muted {
  color: var(--hll-spa-kb-key-muted);
  font-size: 1.15rem;
}
.hll-spa-custom-keypad__key--hidden {
  visibility: hidden;
  pointer-events: none;
}
.hll-spa-custom-keypad__done {
  width: 100%;
  max-width: 24rem;
  margin: 0.4rem auto 0;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.4rem;
  background: var(--hll-spa-kb-done-bg);
  color: var(--hll-spa-kb-done-text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.hll-spa-custom-keypad__done:active {
  filter: brightness(0.92);
}
body.hll-spa-custom-keypad-open {
  overflow: hidden;
}
.screen-spa-arty-soviet .arty-elevation-left-cell .spa-arty-terrain-input-row .elevation-unit-terrain {
  color: #cc6969;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
}
/* Left col arrows cell: same half-width buttons as station one-cell */
.screen-spa-arty-soviet .arty-elevation-left-cell-arrows {
  justify-content: flex-start;
  padding: 0;
}
.screen-spa-arty-soviet .arty-elevation-left-cell-arrows .arty-one-cell-arrow-icon {
  width: 1.5rem;
  height: 1.5rem;
}
.screen-spa-arty-soviet .arty-elevation-tables-frame > .spa-arty-distance-wrap {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding-top: 0.23rem;
  padding-bottom: 0;
  box-sizing: border-box;
}
.screen-spa-arty-soviet .arty-elevation-header-box .arty-header-right .arty-header-cell-inner {
  padding-left: 0.1rem !important;
  padding-right: 0.5rem;
  overflow: visible !important;
}
.screen-spa-arty-soviet .arty-elevation-header-box .spa-arty-elevation-controls {
  margin-left: -1rem !important;
  margin-right: 0 !important;
  /* Same row height as stationary (.elevation-input-box height: 2.5rem) so header width:height proportion matches */
  grid-auto-rows: 2.5rem;
}
/* SPA header: same input and unit font sizes as stationary so proportions match */
.screen-spa-arty-soviet .arty-elevation-header-box .elevation-input,
.screen-spa-arty-soviet .arty-elevation-header-box .elevation-input-distance,
.screen-spa-arty-soviet .arty-elevation-header-box .elevation-input-mil {
  font-size: clamp(1.5rem, 3.84vw, 1.92rem);
  text-align: center !important;
}
.screen-spa-arty-soviet .arty-elevation-header-box .spa-arty-elevation-controls .elevation-unit {
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
}
/* Vertical divider between left (arrow) and right (controls) – transparent so no visible red line */
.arty-elevation-header-box::after {
  content: '';
  position: absolute;
  left: 20%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: transparent;
  pointer-events: none;
}
.arty-header-left {
  width: 20%;
  min-width: 4rem;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  padding: 0;
  box-sizing: border-box;
}
.arty-header-right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}
.arty-header-cell-inner {
  flex: 1 1 0;
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  box-sizing: border-box;
}
.arty-header-left .arty-header-cell-inner {
  justify-content: center;
  overflow: hidden;
}
.arty-header-right .arty-header-cell-inner {
  gap: 0.5rem;
  padding: 0 0.5rem 0 0.1rem;
  min-width: 0;
  justify-content: flex-start;
}
/* Red cell: left 0.1rem, right 0.5rem; overflow visible so M, MIL and box borders are never cut */
.screen-arty-elevation .arty-elevation-header-box .arty-header-right .arty-header-cell-inner {
  padding-left: -0.1rem !important;
  padding-right: 0.5rem;
  overflow: visible !important;
}
.screen-arty-elevation .arty-elevation-header-box .elevation-controls {
  margin-left: -1rem !important;
  margin-right: 0 !important;
}
/* Keep arrow in left cell: override global .back-arrow-arty-elevation { position: absolute } */
.arty-header-left .back-arrow-arty-elevation {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  flex-shrink: 0;
}
.arty-header-left .back-arrow-arty-elevation:active {
  transform: scale(0.96);
}
.arty-elevation-header-box .elevation-controls {
  align-self: start;
  margin: 0;
  flex: 0 1 auto;
  min-width: 18.5rem;
  max-width: 100%;
  overflow: visible;
  /* Label | green/yellow box (input only) | M/MIL – box column a bit narrower */
  grid-template-columns: minmax(8rem, 11rem) minmax(7rem, 7.5rem) 4rem;
  gap: 0.6rem 0.5rem;
  align-items: center;
}
.arty-elevation-header-box .elevation-controls .elevation-label {
  grid-column: 1;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}
.arty-elevation-header-box .elevation-controls .elevation-input-box {
  grid-column: 2;
}
/* M and MIL on same line as label and box – center align in row */
.arty-elevation-header-box .elevation-controls .elevation-unit {
  grid-column: 3;
  overflow: visible;
  align-self: center;
  flex-shrink: 0;
  min-width: 4rem;
  white-space: nowrap;
}
/* Box wraps only the input; center the input and its content; overflow visible so 1600 etc. never clipped; 2px border so always visible at all dimensions */
.arty-elevation-header-box .elevation-input-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 4px;
  background: #000;
  overflow: visible;
  min-width: 7rem;
  padding: 0 0.35rem;
  flex-shrink: 0;
}
.arty-elevation-header-box .elevation-input-box-distance {
  border-color: #00d948;
  border-width: 2px;
  outline: 2px solid #00d948;
  outline-offset: -2px;
}
.arty-elevation-header-box .elevation-input-box-mil {
  border-color: #f2e088;
  border-width: 2px;
  outline: 2px solid #f2e088;
  outline-offset: -2px;
}
.arty-elevation-header-box .elevation-input-box .elevation-input {
  border: none;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 0.25rem 0.35rem;
  flex: 1 1 0;
  box-sizing: border-box;
  text-align: center !important;
  direction: ltr;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.arty-elevation-header-box .elevation-input-box .elevation-input::-webkit-scrollbar {
  display: none;
}
.arty-elevation-header-box .elevation-input-box .elevation-input::-webkit-inner-spin-button,
.arty-elevation-header-box .elevation-input-box .elevation-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  appearance: none;
}
.arty-elevation-header-box .elevation-input-box .elevation-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.arty-elevation-header-box .elevation-input-box .elevation-input:focus,
.arty-elevation-header-box .elevation-input-box .elevation-input:focus-visible {
  outline: none;
  box-shadow: none;
}
/* Header inputs: font large enough to fill box, number centered; 4 digits still fit */
.screen-arty-elevation .arty-elevation-header-box .elevation-input {
  font-size: clamp(1.5rem, 3.84vw, 1.92rem);
  text-align: center !important;
  overflow: visible;
}
.screen-arty-elevation .arty-elevation-header-box .elevation-input-box .elevation-input {
  text-align: center !important;
}
.screen-arty-elevation .arty-elevation-header-box .elevation-input-box input[type="number"] {
  text-align: center !important;
}
.screen-arty-elevation .arty-elevation-header-box .elevation-input-distance,
.screen-arty-elevation .arty-elevation-header-box .elevation-input-mil {
  font-size: clamp(1.5rem, 3.84vw, 1.92rem);
}
.screen-arty-elevation .arty-elevation-header-box .elevation-controls .elevation-unit {
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
}
.title-bar-arty-elevation {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 0 1rem 1rem;
  padding-left: 3.5rem;
  flex-shrink: 0;
  background: #000;
  position: relative;
}
.elevation-controls {
  display: grid;
  grid-template-columns: 11rem 6.5rem 3rem;
  grid-auto-rows: auto;
  gap: 0.6rem 0.5rem;
  align-self: flex-end;
  align-items: center;
  max-width: 22rem;
  margin-right: 5px;
}
.elevation-control-row {
  display: contents;
}
.elevation-control-row .elevation-label {
  grid-column: 1;
}
.elevation-control-row .elevation-input,
.elevation-control-row .spa-arty-terrain-input-header {
  grid-column: 2;
}
.elevation-control-row .elevation-unit {
  grid-column: 3;
}
.elevation-label {
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6e3e0;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.elevation-input {
  font-family: inherit;
  font-weight: 400;
  padding: 0.35rem 0.5rem;
  border: 1px solid;
  border-radius: 4px;
  background: #000;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.elevation-input-distance {
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  border-color: #00d948;
  color: #00d948;
}
.elevation-input-distance::placeholder {
  color: rgba(0, 217, 72, 0.5);
}
.elevation-input-mil {
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  border-color: #f2e088;
  color: #f2e088;
  cursor: default;
}
.elevation-input-readonly {
  cursor: default;
  pointer-events: none;
}
.elevation-unit {
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.elevation-unit-m {
  color: #00d948;
}
.elevation-unit-mil {
  color: #f2e088;
}
.elevation-unit-terrain {
  color: #cc6969;
}
.back-arrow-arty-elevation {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}
.back-arrow-arty-elevation:active {
  transform: translateY(-50%) scale(0.96);
}
/* Arrows on stationary and SPA arty screens: same white as sliders (#e6e3e0) */
.title-bar-arty-elevation .back-arrow,
.title-bar-spa-arty-soviet .back-arrow {
  color: #e6e3e0;
}
.title-bar-arty-elevation .back-arrow:hover,
.title-bar-spa-arty-soviet .back-arrow:hover {
  color: #e6e3e0;
}
/* Overflow visible so negative margins (header/one-cell join) are not clipped by .content’s overflow-y: auto */
.content-arty-elevation {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  align-self: flex-start;
  margin-top: 0;
  margin-left: calc((100% - 24rem) / 2);
  padding: 0 0 2.5rem 0;
  min-height: 0;
  min-width: 0;
  touch-action: none;
  gap: 0;
  width: 13.23rem;
  max-width: 13.23rem;
  overflow: visible;
  overflow-x: visible;
  overflow-y: visible;
}
/* Station arty: horizontal row — slider column | right rail (skyscraper / future ad). Replaces lone #adSlotSide below tables. */
.screen-arty-elevation main.content-arty-elevation {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  align-self: stretch;
  margin-left: 0;
  padding-left: max(0.1rem, calc((100% - 24rem) / 2));
  padding-right: 0.5rem;
  padding-bottom: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 0;
  overflow: hidden;
  box-sizing: border-box;
}
.screen-arty-elevation .arty-elevation-slider-stack {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-self: stretch;
  width: 13.23rem;
  max-width: 13.23rem;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.screen-arty-elevation .arty-elevation-slider-stack .arty-elevation-tables-frame {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  margin-top: -3px;
  margin-bottom: -2px;
}
.screen-arty-elevation .arty-elevation-slider-stack > .arty-elevation-one-cell {
  margin-top: -2px;
}
/* 65vh is full viewport — ignores nav + header; fill frame so bottom stays above fixed nav */
.screen-arty-elevation main.content-arty-elevation .arty-elevation-tables-frame > .elevation-slider-wrap {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.screen-arty-elevation .arty-elevation-ad-rail {
  flex: 1 1 0;
  min-width: 3rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: flex-start;
}
/*
 * Native Advanced overlay: #adSlotSide rect is what JS measures for ElevationSideBanner.showAtRect.
 * Grow the slot to fill the rail (up to max-height) so height/width match the visible column.
 */
.screen-arty-elevation .arty-elevation-ad-rail .ad-slot.ad-side {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 6rem;
  max-height: min(72vh, 32rem);
  align-self: stretch;
}
/* One-cell: two equal-width hit targets (each button flex:1); icon centered in each half */
.arty-elevation-one-cell {
  flex-shrink: 0;
  width: 13.23rem;
  max-width: 13.23rem;
  min-height: 5rem;
  border: 2px solid transparent;
  box-sizing: border-box;
  background: #000;
  align-self: flex-start;
  margin-top: -3px;
  margin-bottom: -2px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
/* Arrow in one-cell: same size/color as artyElevationBack; button fills half row × cell height; icon centered */
.arty-elevation-one-cell .arty-one-cell-arrow {
  flex: 1 1 0;
  min-width: 0;
  min-height: 5rem;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6e3e0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.arty-elevation-one-cell .arty-one-cell-arrow:hover {
  color: #fff;
}
.arty-elevation-one-cell .arty-one-cell-arrow:focus {
  outline: none;
}
.arty-elevation-one-cell .arty-one-cell-arrow-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  pointer-events: none;
}
.arty-elevation-one-cell .arty-one-cell-arrow-up .arty-one-cell-arrow-icon {
  transform: rotate(90deg);
}
.arty-elevation-one-cell .arty-one-cell-arrow-down .arty-one-cell-arrow-icon {
  transform: rotate(270deg);
}
/* Same width as one-cell so right borders align */
.arty-elevation-tables-frame {
  position: relative;
  display: flex;
  flex-direction: row;
  flex: 1 1 0;
  min-width: 13.23rem;
  width: 13.23rem;
  min-height: 0;
  max-width: 13.23rem;
  align-self: flex-start;
  gap: 0;
  border: 2px solid transparent;
  box-sizing: border-box;
  align-items: stretch;
  margin-top: -2px;
  margin-bottom: 0;
}
/* Distance from green column to wrap left border = distance from yellow column to wrap right border (same value) */
.content-arty-elevation .arty-elevation-tables-frame > .elevation-slider-wrap {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 13.23rem;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  display: flex;
  /* Fill frame height so slider track reaches bottom red border; override base max-height */
  height: 100%;
  min-height: 0;
  max-height: none;
}
.arty-elevation-tables-frame > .elevation-slider-wrap:first-child {
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
/* Inner wrapper: grid with equal side columns so track is exactly centered in frame */
.arty-elevation-tables-frame > .elevation-slider-wrap > .elevation-cell-inner {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr;
  align-items: stretch;
  gap: 1.14rem;
  box-sizing: border-box;
  height: 100%;
  padding-top: 0.23rem;
  padding-bottom: 0;
}
.arty-elevation-tables-frame > .elevation-slider-wrap > .elevation-cell-inner > .elevation-meters {
  grid-column: 1;
  min-width: 0;
  padding-left: 0.5rem;
  padding-right: 0;
  box-sizing: border-box;
}
.arty-elevation-tables-frame > .elevation-slider-wrap > .elevation-cell-inner > .elevation-track {
  grid-column: 2;
}
.arty-elevation-tables-frame > .elevation-slider-wrap > .elevation-cell-inner > .elevation-mils {
  grid-column: 3;
  min-width: 0;
  padding-left: 0;
  padding-right: 0.5rem;
  box-sizing: border-box;
}
/* Columns fill cell height so track stretches to bottom red border */
.arty-elevation-tables-frame .elevation-cell-inner > .elevation-column {
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  justify-content: space-between;
  max-width: 6.25rem;
  box-sizing: border-box;
  font-size: clamp(0.7rem, min(2.5vw, 2.85vh), 1.02rem);
}
/* Green numbers column: 0.5rem from wrap left border (matches yellow column 0.5rem from wrap right) */
.arty-elevation-tables-frame > .elevation-slider-wrap:first-child .elevation-cell-inner > .elevation-meters {
  padding-left: 0.5rem;
  padding-right: 0;
  min-width: 5rem;
  text-align: right;
}
/* Soviet: same 0.5rem inset as other sides */
.screen-arty-elevation[data-side="soviet"] .arty-elevation-tables-frame > .elevation-slider-wrap:first-child .elevation-cell-inner > .elevation-meters {
  padding-left: 0.5rem;
  margin-left: 0;
}
.arty-elevation-tables-frame .elevation-cell-inner > .elevation-mils {
  margin-left: 0;
  min-width: 5rem;
  padding-right: 0.5rem;
  padding-left: 0;
  box-sizing: border-box;
}
/* Slider track: stretches to full content height so bottom touches red border */
.arty-elevation-tables-frame > .elevation-slider-wrap > .elevation-cell-inner > .elevation-track {
  align-self: stretch;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 0;
}
.elevation-slider-wrap {
  display: flex;
  align-items: stretch;
  gap: 1.14rem;
  width: 100%;
  max-width: 24rem;
  height: 65vh;
  max-height: 32rem;
  margin-top: -18px;
  margin-bottom: 36px;
  margin-left: -1.4rem;
  touch-action: none;
}
.elevation-slider-wrap-right {
  margin-left: 0;
  font-size: clamp(0.86rem, 2.57vw, 1.08rem);
  overflow: visible;
  padding-right: 0;
  min-width: 10rem;
}
.elevation-slider-wrap-right .elevation-column {
  font-size: clamp(0.7rem, min(2.5vw, 2.85vh), 1.02rem);
  max-width: 6.25rem;
  overflow: hidden;
  box-sizing: border-box;
}
.elevation-slider-wrap-right .elevation-mils {
  margin-left: -1.4rem;
  min-width: 5.4rem;
  padding-right: 0.5rem;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}
.elevation-slider-wrap-right .elevation-meters {
  min-width: 5rem;
  padding-right: 0.35rem;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}
.elevation-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: clamp(0.86rem, 2.57vw, 1.08rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.23rem 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.elevation-meters {
  color: #00d948;
  text-align: right;
  min-width: 5rem;
}
.elevation-mils {
  color: #e6e3e0;
  text-align: right;
  min-width: 5rem;
  margin-left: -1.4rem;
}
.elevation-value {
  flex-shrink: 0;
  line-height: 1.3;
}
.elevation-track {
  position: relative;
  width: 5px;
  flex-shrink: 0;
  background: #f2e088;
  border-radius: 2.5px;
  touch-action: none;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(242, 224, 136, 0.4);
}
.elevation-handle {
  position: absolute;
  left: 50%;
  width: 25px;
  height: 25px;
  margin-left: -12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #f2e088;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3), 0 0 12px rgba(242, 224, 136, 0.5);
  pointer-events: none;
}

/* Station and SPA arty: boxes and labels 10% smaller */
.screen-arty-elevation .title-bar-arty-elevation,
.screen-arty-elevation .content-arty-elevation,
.screen-spa-arty-soviet .title-bar-spa-arty-soviet,
.screen-spa-arty-soviet .content-spa-arty-soviet {
  font-size: 0.9em;
}
.screen-arty-elevation .elevation-input,
.screen-spa-arty-soviet .elevation-input {
  width: 100%;
}

/* Stationary arty: DISTANCE label green; both sliders green; ELEVATION label and table 2 MIL numbers yellow */
.screen-arty-elevation .elevation-controls .elevation-control-row:first-child .elevation-label {
  color: #00d948;
}
.screen-arty-elevation .elevation-controls .elevation-control-row:last-child .elevation-label {
  color: #f2e088;
}
.screen-arty-elevation .elevation-track,
.screen-arty-elevation .elevation-handle {
  background: #e6e3e0;
  box-shadow: 0 0 8px rgba(230, 227, 224, 0.4);
}
.screen-arty-elevation .elevation-handle {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3), 0 0 12px rgba(230, 227, 224, 0.5);
}
.screen-arty-elevation .arty-elevation-tables-frame > .elevation-slider-wrap:first-child .elevation-mils {
  color: #f2e088;
}

/* SPA arty – Soviet/British/German tank calculators: terrain + distance/elevation; full viewport, no ad area */
.screen-spa-arty-soviet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--hll-main-chrome-bottom);
  z-index: 21;
  background: #000;
  font-family: "Core Sans AR 35 Light", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.screen-spa-arty-soviet > .layout-spa-arty-soviet {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: none;
}
.screen-spa-arty-soviet.screen-hidden {
  display: none;
}

/* SPA ARTY subpages (British / German): same banner, 1 col x 2 rows tank grid; leave space for ad like upper screen */
.screen-spa-arty-subpage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--hll-main-chrome-bottom);
  height: calc(100vh - var(--hll-main-chrome-bottom));
  height: calc(100dvh - var(--hll-main-chrome-bottom));
  z-index: 15;
  background: #000;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.screen-spa-arty-subpage.screen-hidden {
  display: none;
}
/* Subpage layout: fill screen so main has definite height for vertical centering */
.screen-spa-arty-subpage .layout-spa-arty-soviet {
  background: #000;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* Safe area only — top ad strip is .spa-arty-subpage-wrap > .ad-slot.ad-top (same as Soviet wrap) */
  padding-left: 0.1rem;
  padding-right: 0.5rem;
  padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0;
  box-sizing: border-box;
}
/* British / German: column flex — ad + header + main; extra height flows to .spa-arty-tank-grid when ad collapses */
.screen-spa-arty-subpage .spa-arty-subpage-wrap {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}
/* Choose-tank subpage: bar and content never overlap – grid sits below header */
.screen-spa-arty-subpage .title-bar-spa-arty-soviet {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  /* Match vertical size / spacing of main SPA arty header */
  padding: 1.25rem 0 1rem 3.5rem;
  min-height: 5.75rem;
  position: relative;
  width: 24rem;
  max-width: 24rem;
  align-self: flex-start;
  margin: 0 0 0 calc((100% - 24rem) / 2);
  background: #000;
}
/* Only show back arrow in SPA tank-choose header */
.screen-spa-arty-subpage .title-spa-arty-subpage {
  display: none;
}
.screen-spa-arty-subpage .back-arrow-arty-elevation {
  left: 1rem;
}
.screen-spa-arty-subpage .content-spa-arty-subpage {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 0 1rem;
  overflow: hidden;
  position: relative;
  min-height: 0;
  background: #000;
  width: 100%;
  box-sizing: border-box;
}
/* Flex fills space above bottom nav — avoid absolute positioning bleeding over the bar */
.screen-spa-arty-subpage .spa-arty-tank-grid {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  justify-items: center;
}
.screen-spa-arty-subpage .spa-arty-tank-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  min-height: 0;
}
/* Match side-item-label (CHOOSE YOUR SIDE) size and font */
.screen-spa-arty-subpage .spa-arty-tank-card-title {
  margin: 0 0 0.5rem 0;
  font-size: clamp(0.85rem, 2.2vh, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  flex-shrink: 0;
  order: 1;
}
.screen-spa-arty-subpage .spa-arty-tank-card-img {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: contain;
  order: 2;
}

.layout-spa-arty-soviet {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #000;
  overflow-x: auto;
  overflow-y: hidden;
}
.title-bar-spa-arty-soviet {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 0 1rem 1rem;
  padding-left: 3.5rem;
  flex-shrink: 0;
  background: #000;
  position: relative;
  z-index: 1;
}
.spa-arty-elevation-controls {
  display: grid;
  grid-template-columns: 11rem 6.5rem 3rem;
  grid-auto-rows: auto;
  gap: 0.6rem 0.5rem;
  align-self: flex-end;
  align-items: center;
  max-width: 22rem;
  margin-right: 5px;
}
.spa-arty-elevation-controls .elevation-control-row {
  display: contents;
}
.spa-arty-elevation-controls .elevation-control-row .elevation-label {
  grid-column: 1;
}
.spa-arty-elevation-controls .elevation-control-row .elevation-input,
.spa-arty-elevation-controls .elevation-control-row .spa-arty-terrain-input-header {
  grid-column: 2;
}
.spa-arty-elevation-controls .elevation-control-row .elevation-unit {
  grid-column: 3;
}
.content-spa-arty-soviet {
  flex: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.5rem 1.5rem 0rem;
  padding-top: var(--hll-calculator-top-ad-slot);
  padding-left: 0.75rem;
  min-height: 0;
  min-width: 0;
  touch-action: none;
  gap: 0.95rem;
  position: relative;
  z-index: 2;
}
.spa-arty-terrain-wrap {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.spa-arty-terrain-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-left: -3rem;
  margin-top: -1.5rem;
  margin-bottom: 0;
  padding-left: 0.5rem;
  position: relative;
  z-index: 10;
}
.screen-spa-arty-soviet .spa-arty-main-row .spa-arty-terrain-head {
  margin-left: 0;
  margin-top: 0;
  padding-left: 0.5rem;
}
.spa-arty-terrain-label-two-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cc6969;
  line-height: 1.25;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: pointer;
}
.spa-arty-terrain-label-two-lines .terrain-line-1 {
  display: block;
}
.spa-arty-terrain-label-two-lines .terrain-line-2 {
  display: block;
}
.spa-arty-terrain-head .spa-arty-terrain-input-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
  flex-shrink: 0;
}
.spa-arty-terrain-head .spa-arty-terrain-input-row .spa-arty-terrain-input-header {
  width: 6.5rem;
}
.spa-arty-terrain-head .spa-arty-terrain-input-row .elevation-unit-terrain {
  text-align: center;
  color: #cc6969;
}
.spa-arty-terrain-title {
  font-size: clamp(0.9rem, 2.7vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cc6969;
  margin: -1rem 0 0.5rem 0;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.spa-arty-terrain-input-row {
  flex-shrink: 0;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-start;
}
.spa-arty-terrain-input {
  font-family: inherit;
  font-weight: 400;
  padding: 0.35rem 0.5rem;
  border: 1px solid #cc6969;
  border-radius: 4px;
  background: #000;
  color: #cc6969;
  width: 6.5rem;
  flex-shrink: 0;
  text-align: center;
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.spa-arty-terrain-input::placeholder {
  color: rgba(204, 105, 105, 0.5);
}
.spa-arty-terrain-input-header {
  font-family: inherit;
  font-weight: 400;
  padding: 0.35rem 0.5rem;
  border: 1px solid #cc6969;
  border-radius: 4px;
  background: #000;
  color: #cc6969;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.spa-arty-terrain-input-header::placeholder {
  color: rgba(204, 105, 105, 0.5);
}
.spa-arty-terrain-slider-wrap {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  height: calc(65vh - 8.7rem + 2.5rem - var(--hll-calculator-top-ad-slot));
  max-height: calc(32rem - 8.7rem + 2.5rem - var(--hll-calculator-top-ad-slot));
  flex: 0 0 auto;
  touch-action: none;
  margin-top: 0.4rem;
  margin-left: 1.5rem;
}
.spa-arty-terrain-values {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #cc6969;
  text-align: right;
  min-width: 4.25rem;
  max-width: 6.25rem;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  /* Shorter viewports: cap by vh so dense ticks don’t balloon type */
  font-size: clamp(0.7rem, min(2.5vw, 2.85vh), 1.02rem);
  padding: 0.2rem 0;
}
.spa-arty-terrain-values .elevation-value {
  flex-shrink: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  max-width: 100%;
}
.spa-arty-terrain-track {
  position: relative;
  width: 6px;
  flex-shrink: 0;
  background: #e6e3e0;
  border-radius: 3px;
  touch-action: none;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(230, 227, 224, 0.4);
}
.spa-arty-terrain-handle {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #e6e3e0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3), 0 0 10px rgba(230, 227, 224, 0.5);
  pointer-events: none;
}
/* SPA arty: same table rules as stationary arty – red frame, grid, centered track, 0.5rem distance to left/right */
.spa-arty-distance-wrap {
  flex: 1 1 0;
  min-width: 13.23rem;
  max-width: 13.23rem;
  width: 13.23rem;
  /* Grow by freed top ad strip when --hll-calculator-top-ad-slot is 0 */
  height: calc(65vh + 2.5rem - var(--hll-calculator-top-ad-slot));
  max-height: calc(32rem + 2.5rem - var(--hll-calculator-top-ad-slot));
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr;
  gap: 1.14rem;
  align-items: stretch;
  border: 2px solid transparent;
  background: #000;
}
.spa-arty-distance-wrap .elevation-meters {
  grid-column: 1;
  min-width: 5rem;
  max-width: 6.25rem;
  padding-left: 0.5rem;
  padding-right: 0;
  margin-left: 0;
  box-sizing: border-box;
  color: #00d948;
  text-align: right;
  overflow: hidden;
  font-size: clamp(0.7rem, min(2.5vw, 2.85vh), 1.02rem);
}
/* Same row box height as MIL column so space-between keeps M / MIL / track handle aligned when some MIL cells are empty */
.spa-arty-distance-wrap .elevation-meters .elevation-value,
.spa-arty-distance-wrap .elevation-mils .elevation-value {
  min-height: 1.45em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}
.spa-arty-distance-wrap .elevation-track {
  grid-column: 2;
  align-self: stretch;
}
.spa-arty-distance-wrap .elevation-mils {
  grid-column: 3;
  min-width: 5rem;
  max-width: 6.25rem;
  padding-left: 0;
  padding-right: 0.5rem;
  margin-left: 0;
  box-sizing: border-box;
  color: #f2e088;
  text-align: right;
  overflow: hidden;
  font-size: clamp(0.7rem, min(2.5vw, 2.85vh), 1.02rem);
}
.spa-arty-distance-wrap .elevation-mils .elevation-value.spa-table-mil-beyond-gun {
  color: #ffb347;
  text-shadow: 0 0 6px rgba(255, 179, 71, 0.35);
}
/* Same text as visible row so layout matches orange rows; only visibility toggled */
.spa-arty-distance-wrap .elevation-mils .elevation-value.spa-table-mil-hidden {
  visibility: hidden;
  user-select: none;
  pointer-events: none;
}
/* SPA: no overlap between physical dial limits and table-derived range (terrain + distance impossible) */
#screenSpaArtySoviet.spa-dial-infeasible #spaArtyHandle,
#screenSpaArtySoviet.spa-dial-infeasible #spaArtyMilInput,
#screenSpaArtySoviet.spa-dial-infeasible #spaArtyMils {
  visibility: hidden;
}
.spa-arty-distance-wrap .elevation-track,
.spa-arty-distance-wrap .elevation-handle {
  background: #e6e3e0;
  box-shadow: 0 0 8px rgba(230, 227, 224, 0.4);
}
.spa-arty-distance-wrap .elevation-handle {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3), 0 0 12px rgba(230, 227, 224, 0.5);
}
/* SPA Soviet header: same grid and alignment as German (stationary arty) – DISTANCE green; ELEVATION yellow */
.title-bar-spa-arty-soviet .spa-arty-elevation-controls {
  grid-template-columns: minmax(8rem, 11rem) minmax(7rem, 7.5rem) 4rem;
  gap: 0.6rem 0.5rem;
  align-items: center;
  align-self: start;
  min-width: 18.5rem;
  max-width: 100%;
}
.title-bar-spa-arty-soviet .spa-arty-elevation-controls .elevation-control-row .elevation-label {
  grid-column: 1;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}
/* Same as stationary: input wrapped in elevation-input-box so yellow/green box borders (including bottom) are visible */
.title-bar-spa-arty-soviet .spa-arty-elevation-controls .elevation-input-box {
  grid-column: 2;
}
.title-bar-spa-arty-soviet .spa-arty-elevation-controls .elevation-control-row .elevation-input {
  grid-column: 2;
  text-align: center !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.title-bar-spa-arty-soviet .spa-arty-elevation-controls .elevation-control-row .elevation-unit {
  grid-column: 3;
  overflow: visible;
  align-self: center;
  flex-shrink: 0;
  min-width: 4rem;
  white-space: nowrap;
}
.title-bar-spa-arty-soviet .spa-arty-elevation-controls .elevation-control-row:first-child .elevation-label {
  color: #00d948;
}
.title-bar-spa-arty-soviet .spa-arty-elevation-controls .elevation-control-row:last-child .elevation-label {
  color: #f2e088;
}
.title-bar-spa-arty-soviet .elevation-input-mil {
  border-color: #f2e088;
  color: #f2e088;
}
.title-bar-spa-arty-soviet .elevation-unit-mil {
  color: #f2e088;
}

/* Screen 3: Map points PNG – pinch-zoom; ends above shared bottom nav */
.screen-points {
  --hll-points-ad-strip-h: 12dvh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--hll-main-chrome-bottom);
  z-index: 20;
  margin: 0;
  padding: 0;
  background: #000;
}
.screen-points.screen-hidden {
  display: none;
}
.points-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  /* Normal system arrow (OS draws light cursor on dark backgrounds where supported). */
  cursor: default;
}
.points-container.hll-points-mouse-panning {
  cursor: default;
}
.points-zoom-area {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  /* Reserve strip for fixed ad above hll-bottom-nav (ad is out of flex flow) */
  padding-bottom: var(--hll-points-ad-strip-h, 12dvh);
  box-sizing: border-box;
}
.points-zoom-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform;
}
/* Hint lives in .points-zoom-area (sibling of wrap) so it is NOT scaled by #pointsZoomWrap transform */
.points-zoom-area > video.points-zoom-hint-video,
.points-zoom-area > .points-zoom-hint-pinch {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Viewport-ish box only — same physical size on every map and orientation */
  width: min(28vmin, 12.5rem);
  height: min(28vmin, 12.5rem);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  transform-origin: center center;
}
.points-zoom-area > video.points-zoom-hint-video {
  object-fit: contain;
  /* Black line art → white on map (WebM alpha on Android / desktop) */
  filter: invert(1);
}
/* iOS: two-finger pinch cue (UIKit-style affordance); no video / raster — avoids WKWebView white tile. */
.points-zoom-area > .points-zoom-hint-pinch {
  display: none;
  align-items: center;
  justify-content: center;
}
.points-zoom-hint-pinch-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.85rem, 5vmin, 1.65rem);
  width: 92%;
  max-width: 15rem;
  min-height: 6.75rem;
  padding-bottom: 0.1rem;
}
.pzp-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.05rem;
}
.pzp-stack--left {
  animation: hll-pzp-spread-left 1.65s ease-in-out infinite;
}
.pzp-stack--right {
  animation: hll-pzp-spread-right 1.65s ease-in-out infinite;
}
.points-zoom-hint-pinch-inner .pzp-finger-img {
  width: min(3.35rem, 11vmin);
  height: auto;
  max-height: 4.5rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  /* Line-art finger → white on any map; same in dark & light app theme */
  filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(0, 0, 0, 0.65)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
/* finger.png is a right hand; mirror for the left column only */
.pzp-finger-img--mirror {
  transform: scaleX(-1);
}
.pzp-dot {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border: 0.3rem solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}
@keyframes hll-pzp-spread-left {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-0.55rem);
  }
}
@keyframes hll-pzp-spread-right {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(0.55rem);
  }
}
html.hll-points-zoom-hint-pinch .points-zoom-area > video#pointsZoomHintVideo {
  display: none !important;
  visibility: hidden;
}
html.hll-points-zoom-hint-pinch .points-zoom-area > .points-zoom-hint-pinch {
  display: flex;
}
/* Pinch hint: keep rings + finger art white in both app themes (overrides light-theme map UI tweaks). */
html.hll-theme-light .points-zoom-hint-pinch .pzp-dot,
.points-zoom-hint-pinch .pzp-dot {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
html.hll-theme-light .points-zoom-hint-pinch-inner .pzp-finger-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(0, 0, 0, 0.5)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.points-zoom-area > video.points-zoom-hint-video.points-zoom-hint-visible,
.points-zoom-area > .points-zoom-hint-pinch.points-zoom-hint-visible {
  opacity: 1;
}
.points-zoom-area > video.points-zoom-hint-video.points-zoom-hint-dismissed,
.points-zoom-area > .points-zoom-hint-pinch.points-zoom-hint-dismissed {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.ad-slot.ad-bottom-points {
  height: 12dvh;
  min-height: 12dvh;
  flex-shrink: 0;
  width: 100%;
  background: #000;
  border: none;
}
/* Pinned just above bottom nav (viewport), not lost under in-flow flex quirks */
/* #screenSide slot must not live under main.content — .content has transform:translateZ(0), which re-roots fixed positioning away from the viewport */
#screenPoints .ad-slot.ad-bottom-points,
#screenSide .ad-slot.ad-bottom-points {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--hll-main-chrome-bottom);
  z-index: 25;
  box-sizing: border-box;
}
#screenPoints .ad-slot.ad-bottom-points {
  height: var(--hll-points-ad-strip-h, 12dvh);
  min-height: var(--hll-points-ad-strip-h, 12dvh);
}
#screenSide .ad-slot.ad-bottom-points {
  height: var(--hll-side-ad-strip-h, 12dvh);
  min-height: var(--hll-side-ad-strip-h, 12dvh);
}

/*
 * Ad-free / native AdMob: collapse DOM ad slots. One native overlay; plugin = TOP/CENTER/BOTTOM only.
 * .hll-native-banner-reserve-top — map + calculator top strip (TOP_CENTER + primary ad unit).
 * .hll-native-banner-reserve-bottom — points + side picker bottom strip (BOTTOM_CENTER + secondary ad unit).
 */
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-top) #screenMap .hll-map-ad-top-wrap {
  display: none;
}
html.hll-native-banner-reserve-top.hll-inline-ads-collapsed #screenMap .hll-map-ad-top-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  min-height: max(var(--hll-map-screen-top-ad-stack-h), var(--hll-admob-banner-px, 0px));
  visibility: hidden;
  pointer-events: none;
}
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-bottom) #screenPoints.screen-points {
  --hll-points-ad-strip-h: 0px;
}
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-bottom) #screenSide.screen-side {
  --hll-side-ad-strip-h: 0px;
}
html.hll-native-banner-reserve-bottom.hll-inline-ads-collapsed #screenPoints.screen-points {
  /* Match native adaptive height (SizeChanged → --hll-admob-banner-px); avoid 12dvh floor — that left empty strip vs 320×50. */
  --hll-points-ad-strip-h: max(3.5rem, var(--hll-admob-banner-px, 0px));
}
/* Bottom native banner: DOM slots are display:none — pad container so zoom / side list is not under the overlay */
html.hll-native-banner-reserve-bottom.hll-inline-ads-collapsed #screenPoints .points-container {
  padding-bottom: max(3.5rem, var(--hll-admob-banner-px, 0px));
  box-sizing: border-box;
}
html.hll-native-banner-reserve-bottom.hll-inline-ads-collapsed #screenSide.screen-side {
  --hll-side-ad-strip-h: max(3.5rem, var(--hll-admob-banner-px, 0px));
  padding-bottom: max(3.5rem, var(--hll-admob-banner-px, 0px));
  box-sizing: border-box;
}
/* Ad-free / native without top reserve: drop calculator top strip */
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-top) {
  --hll-calculator-top-ad-slot: 0px;
}
/* Native TOP banner: floor ≥ typical adaptive/test height (~60px) until bannerAdSizeChanged sets --hll-admob-banner-px */
html.hll-native-banner-reserve-top.hll-inline-ads-collapsed {
  --hll-calculator-top-ad-slot: max(3.75rem, var(--hll-admob-banner-px, 0px));
}
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-top) #screenArtyElevation .arty-elevation-screen-wrap > .ad-slot.ad-top,
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-top) #screenSpaArtySoviet .arty-elevation-screen-wrap > .ad-slot.ad-top,
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-top) #screenSpaArtyBritish .spa-arty-subpage-wrap > .ad-slot.ad-top,
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-top) #screenSpaArtyGerman .spa-arty-subpage-wrap > .ad-slot.ad-top {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: none !important;
  visibility: hidden;
  pointer-events: none;
}
html.hll-native-banner-reserve-top.hll-inline-ads-collapsed #screenArtyElevation .arty-elevation-screen-wrap > .ad-slot.ad-top,
html.hll-native-banner-reserve-top.hll-inline-ads-collapsed #screenSpaArtySoviet .arty-elevation-screen-wrap > .ad-slot.ad-top,
html.hll-native-banner-reserve-top.hll-inline-ads-collapsed #screenSpaArtyBritish .spa-arty-subpage-wrap > .ad-slot.ad-top,
html.hll-native-banner-reserve-top.hll-inline-ads-collapsed #screenSpaArtyGerman .spa-arty-subpage-wrap > .ad-slot.ad-top {
  visibility: hidden;
  pointer-events: none;
}
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-bottom) #screenPoints .ad-slot.ad-bottom-points,
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-bottom) #screenSide .ad-slot.ad-bottom-points {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
html.hll-native-banner-reserve-bottom.hll-inline-ads-collapsed #screenPoints .ad-slot.ad-bottom-points,
html.hll-native-banner-reserve-bottom.hll-inline-ads-collapsed #screenSide .ad-slot.ad-bottom-points {
  visibility: hidden;
  pointer-events: none;
}
/* MAPS ↑: when map-top strip is gone (ad-free), tuck arrow up; native top banner keeps default .hll-maps-floating-up-arrow offset */
html.hll-inline-ads-collapsed:not(.hll-native-banner-reserve-top) .hll-maps-floating-up-arrow {
  top: calc(10px + 4.5rem + env(safe-area-inset-top, 0px) + 0.2rem);
}
.points-image {
  display: block;
  margin: 0;
  padding: 0;
}
.points-image.points-fit-width {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}
.points-image.points-fit-height {
  width: auto;
  height: 100vh;
  height: 100dvh;
  min-width: 100%;
  object-fit: contain;
  object-position: left center;
}
/* Map points back arrow: separate layer from map (outside #screenPoints), fixed to viewport; JS keeps it in device top-left when page zooms */
.back-arrow-viewport {
  display: none;
  position: fixed;
  z-index: 21;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  pointer-events: none;
  isolation: isolate;
  contain: layout paint;
}
body.points-screen-active .back-arrow-viewport {
  display: block;
}
.back-arrow-viewport .back-arrow-overlay-wrap {
  position: absolute;
  left: 1rem;
  top: 2.25rem;
  transform: translateY(-50%);
  transform-origin: 0 0;
}
.back-arrow-viewport .back-arrow-overlay {
  pointer-events: auto;
}
.back-arrow-overlay {
  margin: 0;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.95);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  flex-shrink: 0;
}
.back-arrow-overlay:hover {
  color: #fff;
}
.back-arrow-overlay:active { transform: scale(0.94); }
.back-arrow-overlay-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  pointer-events: none;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Light theme: map points + STATION elevation + SPA calculators (full-screen) */
/* Uses --hll-nav-bg from hll-bottom-nav.css on html.hll-theme-light           */
/* -------------------------------------------------------------------------- */
html.hll-theme-light #screenPoints,
html.hll-theme-light #screenSide.screen-side,
html.hll-theme-light #screenArtyElevation.screen-arty-elevation,
html.hll-theme-light #screenSpaArtySoviet.screen-spa-arty-soviet,
html.hll-theme-light #screenSpaArtyBritish.screen-spa-arty-subpage,
html.hll-theme-light #screenSpaArtyGerman.screen-spa-arty-subpage {
  background: var(--hll-nav-bg);
  color: #0f172a;
}

html.hll-theme-light #screenPoints .ad-slot.ad-bottom-points,
html.hll-theme-light #screenSide .ad-slot.ad-bottom-points {
  background: var(--hll-nav-bg);
}

html.hll-theme-light body.points-screen-active .back-arrow-overlay {
  color: #0f172a;
}
html.hll-theme-light body.points-screen-active .back-arrow-overlay:hover {
  color: #000000;
}

/* —— STATION elevation —— */
html.hll-theme-light #screenArtyElevation .layout-arty-elevation,
html.hll-theme-light #screenArtyElevation .arty-elevation-header-box,
html.hll-theme-light #screenArtyElevation .title-bar-arty-elevation,
html.hll-theme-light #screenArtyElevation .arty-elevation-one-cell,
html.hll-theme-light #screenArtyElevation .elevation-input,
html.hll-theme-light #screenArtyElevation .arty-elevation-header-box .elevation-input-box,
html.hll-theme-light #screenArtyElevation .arty-elevation-ad-rail .ad-slot.ad-side,
html.hll-theme-light #screenArtyElevation .ad-slot.ad-top {
  background: var(--hll-nav-bg);
}

html.hll-theme-light #screenArtyElevation .title-bar-arty-elevation .back-arrow,
html.hll-theme-light #screenArtyElevation .title-bar-arty-elevation .back-arrow:hover {
  color: #0f172a;
}

html.hll-theme-light #screenArtyElevation .elevation-label {
  color: #334155;
}
html.hll-theme-light #screenArtyElevation .elevation-controls .elevation-control-row:first-child .elevation-label {
  color: #023c2b;
}
html.hll-theme-light #screenArtyElevation .elevation-controls .elevation-control-row:last-child .elevation-label {
  color: #4a2204;
}

html.hll-theme-light #screenArtyElevation .elevation-mils,
html.hll-theme-light #screenArtyElevation .elevation-mils .elevation-value {
  color: #475569;
}
html.hll-theme-light #screenArtyElevation .arty-elevation-tables-frame > .elevation-slider-wrap:first-child .elevation-mils,
html.hll-theme-light #screenArtyElevation .arty-elevation-tables-frame > .elevation-slider-wrap:first-child .elevation-mils .elevation-value {
  color: #4a2204;
}

html.hll-theme-light #screenArtyElevation .elevation-meters,
html.hll-theme-light #screenArtyElevation .elevation-meters .elevation-value,
html.hll-theme-light #screenArtyElevation .elevation-unit-m {
  color: #023c2b;
}
html.hll-theme-light #screenArtyElevation .elevation-input-distance {
  border-color: #023c2b;
  color: #023c2b;
}
html.hll-theme-light #screenArtyElevation .elevation-input-distance::placeholder {
  color: rgba(2, 60, 43, 0.55);
}
html.hll-theme-light #screenArtyElevation .arty-elevation-header-box .elevation-input-box-distance {
  border-color: #023c2b;
  outline-color: #023c2b;
}
html.hll-theme-light #screenArtyElevation .elevation-unit-mil,
html.hll-theme-light #screenArtyElevation .elevation-input-mil {
  border-color: #4a2204;
  color: #4a2204;
}
html.hll-theme-light #screenArtyElevation .arty-elevation-header-box .elevation-input-box-mil {
  border-color: #4a2204;
  outline-color: #4a2204;
}

html.hll-theme-light #screenArtyElevation .arty-elevation-one-cell .arty-one-cell-arrow,
html.hll-theme-light #screenArtyElevation .arty-elevation-one-cell .arty-one-cell-arrow:hover {
  color: #1e293b;
}

/* Light mode: slider rail + dot */
html.hll-theme-light #screenArtyElevation .elevation-track,
html.hll-theme-light #screenArtyElevation .elevation-handle {
  background: #0f172a;
}
html.hll-theme-light #screenArtyElevation .elevation-track {
  box-shadow: none;
}
html.hll-theme-light #screenArtyElevation .elevation-handle {
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.35);
}

/* —— SPA Soviet calculator —— */
html.hll-theme-light #screenSpaArtySoviet .layout-spa-arty-soviet,
html.hll-theme-light #screenSpaArtySoviet .title-bar-spa-arty-soviet,
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-header-box,
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-one-cell,
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-left-cell,
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-left-cell-fill,
html.hll-theme-light #screenSpaArtySoviet .elevation-input,
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-header-box .elevation-input-box,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-input,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-input-header,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-distance-wrap,
html.hll-theme-light #screenSpaArtySoviet .ad-slot.ad-side,
html.hll-theme-light #screenSpaArtySoviet .ad-slot.ad-top {
  background: var(--hll-nav-bg);
}

html.hll-theme-light #screenSpaArtySoviet .title-bar-spa-arty-soviet .back-arrow,
html.hll-theme-light #screenSpaArtySoviet .title-bar-spa-arty-soviet .back-arrow:hover {
  color: #0f172a;
}

html.hll-theme-light #screenSpaArtySoviet .elevation-label {
  color: #334155;
}
html.hll-theme-light #screenSpaArtySoviet .spa-arty-elevation-controls .elevation-control-row:first-child .elevation-label {
  color: #023c2b;
}
html.hll-theme-light #screenSpaArtySoviet .spa-arty-elevation-controls .elevation-control-row:last-child .elevation-label {
  color: #4a2204;
}

html.hll-theme-light #screenSpaArtySoviet .spa-arty-distance-wrap .elevation-meters,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-distance-wrap .elevation-meters .elevation-value,
html.hll-theme-light #screenSpaArtySoviet .elevation-unit-m {
  color: #023c2b;
}
html.hll-theme-light #screenSpaArtySoviet .spa-arty-distance-wrap .elevation-mils,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-distance-wrap .elevation-mils .elevation-value,
html.hll-theme-light #screenSpaArtySoviet .elevation-unit-mil {
  color: #4a2204;
}
html.hll-theme-light #screenSpaArtySoviet .spa-arty-distance-wrap .elevation-mils .elevation-value.spa-table-mil-beyond-gun {
  color: #c2410c;
}
html.hll-theme-light #screenSpaArtySoviet .elevation-input-distance {
  border-color: #023c2b;
  color: #023c2b;
}
html.hll-theme-light #screenSpaArtySoviet .elevation-input-distance::placeholder {
  color: rgba(2, 60, 43, 0.55);
}
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-header-box .elevation-input-box-distance {
  border-color: #023c2b;
  outline-color: #023c2b;
}
html.hll-theme-light #screenSpaArtySoviet .elevation-input-mil,
html.hll-theme-light #screenSpaArtySoviet .title-bar-spa-arty-soviet .elevation-input-mil {
  border-color: #4a2204;
  color: #4a2204;
}
html.hll-theme-light #screenSpaArtySoviet .title-bar-spa-arty-soviet .elevation-unit-mil {
  color: #4a2204;
}
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-header-box .elevation-input-box-mil {
  border-color: #4a2204;
  outline-color: #4a2204;
}

/* Light: SPA terrain accent (#cc6969 → #703838) */
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-left-cell .spa-arty-terrain-input-row {
  color: #703838;
}
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-left-cell .spa-arty-terrain-input-row .spa-arty-terrain-input-header {
  border-color: #703838;
  color: #703838;
  outline: 2px solid #703838;
  outline-offset: -2px;
}
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-left-cell .spa-arty-terrain-input-row .spa-arty-terrain-input-header::placeholder {
  color: rgba(112, 56, 56, 0.5);
}
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-left-cell .spa-arty-terrain-input-row .elevation-unit-terrain,
html.hll-theme-light #screenSpaArtySoviet .elevation-unit-terrain,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-label-two-lines,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-head .spa-arty-terrain-input-row .elevation-unit-terrain,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-title,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-values {
  color: #703838;
}
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-input,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-input-header {
  border-color: #703838;
  color: #703838;
}
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-input::placeholder,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-input-header::placeholder {
  color: rgba(112, 56, 56, 0.5);
}

html.hll-theme-light #screenSpaArtySoviet .arty-elevation-left-cell .arty-one-cell-arrow,
html.hll-theme-light #screenSpaArtySoviet .arty-elevation-left-cell .arty-one-cell-arrow:hover {
  color: #1e293b;
}

html.hll-theme-light #screenSpaArtySoviet #spaArtyArrowUp,
html.hll-theme-light #screenSpaArtySoviet #spaArtyArrowDown,
html.hll-theme-light #screenSpaArtySoviet #spaArtyArrowUp:hover,
html.hll-theme-light #screenSpaArtySoviet #spaArtyArrowDown:hover {
  color: #0f172a;
}

html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-track,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-handle {
  background: #0f172a;
}
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-track {
  box-shadow: none;
}
html.hll-theme-light #screenSpaArtySoviet .spa-arty-terrain-handle {
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.35);
}

html.hll-theme-light #screenSpaArtySoviet .spa-arty-distance-wrap .elevation-track,
html.hll-theme-light #screenSpaArtySoviet .spa-arty-distance-wrap .elevation-handle {
  background: #0f172a;
}
html.hll-theme-light #screenSpaArtySoviet .spa-arty-distance-wrap .elevation-track {
  box-shadow: none;
}
html.hll-theme-light #screenSpaArtySoviet .spa-arty-distance-wrap .elevation-handle {
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.35);
}

/* —— SPA British / German tank pickers —— */
html.hll-theme-light #screenSpaArtyBritish .layout-spa-arty-soviet,
html.hll-theme-light #screenSpaArtyBritish .spa-arty-subpage-wrap,
html.hll-theme-light #screenSpaArtyBritish .spa-arty-subpage-wrap > .ad-slot.ad-top,
html.hll-theme-light #screenSpaArtyBritish .title-bar-spa-arty-soviet,
html.hll-theme-light #screenSpaArtyBritish .content-spa-arty-subpage,
html.hll-theme-light #screenSpaArtyGerman .layout-spa-arty-soviet,
html.hll-theme-light #screenSpaArtyGerman .spa-arty-subpage-wrap,
html.hll-theme-light #screenSpaArtyGerman .spa-arty-subpage-wrap > .ad-slot.ad-top,
html.hll-theme-light #screenSpaArtyGerman .title-bar-spa-arty-soviet,
html.hll-theme-light #screenSpaArtyGerman .content-spa-arty-subpage {
  background: var(--hll-nav-bg);
}

html.hll-theme-light #screenSpaArtyBritish .spa-arty-tank-card-title,
html.hll-theme-light #screenSpaArtyGerman .spa-arty-tank-card-title {
  color: #0f172a;
}

html.hll-theme-light #screenSpaArtyBritish .title-bar-spa-arty-soviet .back-arrow,
html.hll-theme-light #screenSpaArtyBritish .title-bar-spa-arty-soviet .back-arrow:hover,
html.hll-theme-light #screenSpaArtyGerman .title-bar-spa-arty-soviet .back-arrow,
html.hll-theme-light #screenSpaArtyGerman .title-bar-spa-arty-soviet .back-arrow:hover {
  color: #0f172a;
}

/* Store update prompt (@capawesome/capacitor-app-update) — above in-app chrome */
.hll-store-update-dialog {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hll-store-update-dialog__card {
  width: 100%;
  max-width: 22rem;
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem 1.15rem;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

html.hll-theme-light .hll-store-update-dialog__card {
  background: #f4f1ee;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);
}

.hll-store-update-dialog__title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f5f5f5;
  letter-spacing: 0.02em;
}

html.hll-theme-light .hll-store-update-dialog__title {
  color: #0f172a;
}

.hll-store-update-dialog__body {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #c8c8c8;
  font-family: "Core Sans AR 35 Light", "Core Sans AR 55 Medium", system-ui, sans-serif;
}

html.hll-theme-light .hll-store-update-dialog__body {
  color: #334155;
}

.hll-store-update-dialog__actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hll-store-update-dialog__btn {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hll-store-update-dialog__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e8e8e8;
}

html.hll-theme-light .hll-store-update-dialog__btn--secondary {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.hll-store-update-dialog__btn--primary {
  background: #c9a227;
  color: #111;
  font-weight: 600;
}

.hll-store-update-dialog__btn--primary:active,
.hll-store-update-dialog__btn--secondary:active {
  transform: scale(0.97);
}
