:root {
  --void-black: #05070d;
  --panel: #10131f;
  --aurora-blue: #8fd3ff;
  --aurora-violet: #b98bff;
  --head-spin-size: 40vmin;

  /* Fallback values only — js/intro.js sets the real ones from
     config.js's intro.shockedOffsetXPercent/shockedOffsetYPercent/
     shockedScale on #headSpin itself. These just mean nothing looks
     broken if that JS hasn't run yet. */
  --head-shocked-offset-x: 0%;
  --head-shocked-offset-y: 0%;
  --head-shocked-scale: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--void-black);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#cesiumContainer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Cesium ships its own credit line, bottom-left, listing Google's
   required attribution whenever its tiles are on screen. Restyle it to
   sit quietly against our theme — do NOT hide or remove it, Google's
   terms require the credit to stay visible. */
.cesium-viewer-bottom {
  font-size: 11px !important;
  opacity: 0.75;
}
.cesium-widget-credits {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ---------------------------------------------------------------------
   Top bar (home page only) — centered, and sized as a share of the
   viewport height so it reads the same proportionally at any window
   size. js/intro.js toggles `.fade-out` on the image itself, in step
   with the head, and js/eject.js removes it again after an eject.
--------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-top: 2vh;
  z-index: 20;
  pointer-events: none; /* the banner is decorative; clicks fall through */
}
.title-banner {
  height: 10vh; /* the tunable knob — the banner's share of viewport height */
  width: auto;
  max-width: 90vw;
  display: block;
  opacity: 1;
  transition: opacity 900ms ease; /* keep in sync with config.intro.fadeOutMs */
}
.title-banner.fade-out {
  opacity: 0;
}

/* ---------------------------------------------------------------------
   Head-spin intro. A <button> wrapping the image, so it's a real,
   keyboard-reachable control rather than a bare clickable <img>.
   --head-spin-size is set from JS (js/intro.js) every frame to match
   the globe's actual on-screen radius — the 42vmin here is only a
   fallback for the instant before that first runs.
--------------------------------------------------------------------- */
.head-spin {
  position: fixed;
  top: 50%;
  left: 47%;
  width: var(--head-spin-size, 42vmin);
  height: var(--head-spin-size, 42vmin);
  transform: translate(-50%, -50%);
  z-index: 15; /* above the Cesium canvas, below the top bar/sidebar/caption */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 1;
  transition:
    opacity 900ms ease, /* keep in sync with config.intro.fadeOutMs */
    transform 200ms ease;
}
.head-spin:hover,
.head-spin:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
}
.head-spin:focus-visible {
  outline: 2px solid var(--aurora-blue);
  outline-offset: 8px;
  border-radius: 50%;
}
.head-spin:disabled {
  cursor: default;
}
.head-spin.fade-out {
  opacity: 0;
  pointer-events: none;
}
.head-spin-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none; /* clicks land on the button, not the image */
  transform: translate(var(--head-spin-offset-x, 0%), var(--head-spin-offset-y, 0%))
    scale(var(--head-spin-scale, 1));
  transform-origin: 50% 50%;
}
/* Applied only while the shocked image is showing (js/intro.js toggles
   this class exactly when it swaps `src`). Maps the shocked-specific
   offset/scale — set from config.js's intro.shockedOffsetXPercent /
   shockedOffsetYPercent / shockedScale — onto the transform above, so
   the shocked image can be nudged/scaled independently of the spinning
   one even though both are the same <img> element. */
.head-spin-image--shocked {
  --head-spin-offset-x: var(--head-shocked-offset-x, 0%);
  --head-spin-offset-y: var(--head-shocked-offset-y, 0%);
  --head-spin-scale: var(--head-shocked-scale, 1);
}

/* ---------------------------------------------------------------------
   Right-hand icon sidebar, rendered by js/pageChrome.js from
   config.sidebar.items. Present on every page. Each icon is its own
   standalone image with a transparent background (a 3D render
   screenshot) — no background circle, border, or shading layered on
   top; sizing is the only knob here (--sidebar-item-size).

   Two independent kinds of "hidden" layer on top of that base:
   - .intro-hidden — home page only. Set by js/main.js at the start of
     the intro and cleared by js/intro.js the instant the title banner
     starts its own fade-out (and reinstated by js/eject.js if the
     camera gets ejected back to space) — the whole sidebar, toggle
     included, simply isn't part of the experience until Brem's
     location has actually been revealed.
   - .collapsed — available on every page, toggled by the little arrow
     button, and remembered per-browser (see pageChrome.js). This is
     Brem's own "get these out of my way" control for whenever a
     subpage's content runs under the icon column — the icons slide out
     and stop accepting clicks, but the toggle itself stays put so
     they're one tap from coming back.
--------------------------------------------------------------------- */
.sidebar {
  --sidebar-item-size: 140px;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--sidebar-item-size);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 8px;
  z-index: 20;
  overflow-y: visible;
  scrollbar-width: thin;
  opacity: 1;
  transition: opacity 900ms ease; /* keep in sync with config.intro.fadeOutMs */
}
.sidebar.intro-hidden {
  opacity: 0;
  pointer-events: none;
}
.sidebar-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 150ms ease;
}
.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.55);
}
.sidebar-toggle-arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--aurora-blue);
  border-bottom: 2px solid var(--aurora-blue);
  transform: translateY(-2px) rotate(45deg); /* pointing down: "expanded, tap to hide" */
  transition: transform 250ms ease;
}
.sidebar.collapsed .sidebar-toggle-arrow {
  transform: translateY(2px) rotate(-135deg); /* pointing up: "collapsed, tap to show" */
}
.sidebar-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 250ms ease, opacity 250ms ease;
}
.sidebar.collapsed .sidebar-items {
  transform: translateX(140%);
  opacity: 0;
  pointer-events: none;
}
.sidebar-item {
  display: block;
  width: var(--sidebar-item-size);
  height: var(--sidebar-item-size);
  transition: transform 150ms ease, filter 150ms ease;
}
.sidebar-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sidebar-item:hover,
.sidebar-item:focus-visible {
  transform: scale(1.08);
  outline: none;
}
.sidebar-item.active img {
  filter: drop-shadow(0 0 10px var(--aurora-blue));
}

/* ---------------------------------------------------------------------
   City caption pill, bottom-center. Does not reserve sidebar space —
   per Brem's note, only the sidebar icons themselves need to avoid
   overlapping real content, not the whole right-hand column.
--------------------------------------------------------------------- */
#cityCaption {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  z-index: 20;
  white-space: nowrap;
  max-width: 80vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void-black);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  letter-spacing: 0.3px;
  z-index: 30;
  transition: opacity 0.4s ease;
}
.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   The "Brem [phrase] [city]" arrival announcement. Displayed instantly
   (no typing) in Noto Sans, white fill with a black outline, dead-center.
   js/locationAnnouncement.js sets the text and toggles `.visible`.
--------------------------------------------------------------------- */
#locationAnnouncement {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  pointer-events: none;
  text-align: center;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  color: #fff;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  font-size: clamp(28px, 6vw, 72px);
  max-width: 90vw;
  opacity: 0;
  transition: opacity 700ms ease; /* keep in sync with config.locationAnnouncement.fadeMs */
}
#locationAnnouncement.visible {
  opacity: 1;
}

/* ---------------------------------------------------------------------
   The NPC-style dialogue box — Undertale/visual-novel style: a flat
   black bar spanning the full width of the screen, flush against the
   bottom edge, with a thick white top border instead of the earlier
   floating rounded card. Idiqlat, typed out by js/dialogue.js.
--------------------------------------------------------------------- */
#dialogueBox {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 20vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 28px clamp(24px, 6vw, 96px);
  background: rgb(50 50 50 / 0%);/* #585858;*/
  border-top: 6px solid rgba(0 0 0 / 0%);/*#000;*/
  border-radius: 0;
  box-shadow: none;
  font-family: "Idiqlat", serif;
  font-size: clamp(18px, 2.6vw, 28px);
  line-height: 1.5;
  color: rgba(255 255 255 / 0%); /*#fff;*/
  text-align: left;
  z-index: 40; /* above absolutely everything, including the loading overlay */
  pointer-events: none;
  opacity: 1;
  transition: background, border-top, color 400ms ease; /* keep in sync with config.dialogue.fadeMs */
}
#dialogueBox.visible {
  background: rgba(124 124 124 / 0.5);
  border-top: 6px solid rgba(0 0 0 / 1);
  color: rgba(255 255 255 / 1);
  /*opacity: 0.5;*/
}

/* ---------------------------------------------------------------------
   Placeholder pages (subscribe / merch — still on disk, just unlinked
   from the sidebar). No header/title banner on these — they stand on
   their own, per Brem's direction.
--------------------------------------------------------------------- */
.page-body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, var(--panel), var(--void-black));
}
.page-body p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

/* ---------------------------------------------------------------------
   "Behind the Racket" / "Behind the Good Book" — the embedded-page
   iframe and its always-visible fallback link (about.html, bible.html).
   See about.html's inline module for why the link isn't conditionally
   shown.

   This fills essentially the full viewport height now — only ~5vh of
   breathing room top and bottom — rather than being capped by a fixed
   aspect-ratio (which was sizing the height off the *width*, leaving a
   lot of unused vertical space on anything narrower than it is short).
   .page-body's own flex centering is overridden here (flex-start
   instead of center) so .embed-wrap's flex-grow actually has the room
   to fill, instead of the whole group just being centered as a block.
--------------------------------------------------------------------- */
.page-embed {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 5vh clamp(16px, 4vw, 64px);
  padding-right: calc(var(--sidebar-item-size, 140px) + 48px);
  box-sizing: border-box;
}
.embed-heading {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: #fff;
}
.embed-wrap {
  flex: 1 1 auto;
  min-height: 0; /* lets a flex child actually shrink/grow inside a column instead of overflowing */
  width: min(1100px, 100%);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  /* .embed-wrap is itself a flex container, with the iframe as its one
     flex-grow child, rather than giving the iframe `height: 100%` —
     percentage heights only resolve against an ancestor with a
     *specified* (not just flex-resolved) height, and that chain breaks
     here since .page-embed's own height ultimately comes from
     min-height, not height. Flexbox's own grow distribution doesn't
     have that limitation: it hands the iframe real pixels directly,
     which is why this box was sizing correctly already but the iframe
     inside it wasn't. */
  display: flex;
  flex-direction: column;
}
.embed-frame {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border: 0;
  display: block;
}
.embed-open-link {
  flex: 0 0 auto;
  color: var(--aurora-blue);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.embed-open-link:hover,
.embed-open-link:focus-visible {
  border-bottom-color: var(--aurora-blue);
}

/* ---------------------------------------------------------------------
   "Behind the Quar" (quar.html) — a normal top-to-bottom scrolling page
   rather than the centered .page-body layout, since the whole point is
   a long vertical sequence of photos. js/quarGallery.js fills
   #quarGallery from config.quarGallery.
--------------------------------------------------------------------- */
.page-quar {
  display: block;
  min-height: 100%;
  background: linear-gradient(to bottom, var(--panel), var(--void-black));
  padding: 48px clamp(16px, 4vw, 64px) 80px;
  padding-right: calc(var(--sidebar-item-size, 140px) + 48px);
}
.quar-scroll {
  max-width: 720px;
  margin: 0 auto;
}
.quar-heading {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  color: #fff;
}
.quar-intro {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.5;
}
.quar-gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.quar-photo {
  margin: 0;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.quar-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.quar-photo figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------------------------
   "Behind the Dog Bone" (pets.html) — a full-bleed farm backdrop with
   clickable animal cutouts, positioned by js/petsPage.js from
   config.pets (percentages, so it holds together at any window size).
--------------------------------------------------------------------- */
.page-pets {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
.pets-heading {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  margin: 0;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.pets-scene {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.pet-animal {
  position: absolute;
  transform: translate(-50%, -100%);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
  transition: filter 150ms ease;
}
.pet-animal img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.pet-animal:hover,
.pet-animal:focus-visible {
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)) brightness(1.12);
}
.pet-animal:focus-visible {
  outline: 2px solid var(--aurora-blue);
  outline-offset: 4px;
  border-radius: 8px;
}
.pet-animal.bounce {
  animation: pet-bounce 550ms ease;
}
@keyframes pet-bounce {
  0% {
    transform: translate(-50%, -100%) scale(1);
  }
  30% {
    transform: translate(-50%, -140%) scale(1.05);
  }
  55% {
    transform: translate(-50%, -85%) scale(0.97);
  }
  75% {
    transform: translate(-50%, -108%) scale(1.02);
  }
  100% {
    transform: translate(-50%, -100%) scale(1);
  }
}

/* ---------------------------------------------------------------------
   Mobile / portrait viewports. This site is meant to be viewed on a
   phone held upright first, with wider/landscape/desktop as the bonus
   case — most of the layout above already scales itself with vw/vh/
   clamp() and needs nothing extra here. This section only covers the
   handful of spots that don't: the fixed-width sidebar column, and the
   racket embed's aspect-ratio-based height.
--------------------------------------------------------------------- */

/* Narrow screens: let the sidebar icons shrink a bit rather than
   overwhelm a small viewport, and give .page-embed / .page-quar back
   the reserved right-hand space to match. */
@media (max-width: 480px) {
  .sidebar {
    --sidebar-item-size: 88px;
  }
  .page-embed,
  .page-quar {
    padding-right: clamp(16px, 4vw, 64px);
  }
}

@media (max-height: 600px) {
  .sidebar {
    --sidebar-item-size: 64px;
    gap: 4px;
  }
}

/* Portrait phones specifically (this can trigger independently of the
   480px width check above — e.g. a slightly wider phone, or a tablet
   held upright). Shrink the sidebar a touch further so it never eats
   too much of a narrow-but-not-tiny width. */
@media (orientation: portrait) and (max-width: 700px) {
  .sidebar {
    --sidebar-item-size: 80px;
  }
  .page-embed,
  .page-quar {
    padding-right: clamp(16px, 4vw, 64px);
  }
}



/* ---------------------------------------------------------------------
   admin.html / admin-track.html — Brem and Ethan's dashboard, sitting
   behind Cloudflare Access (see DEPLOYMENT.md). Deliberately plain and
   utilitarian rather than themed like the public pages — this is a
   tool, not part of the "Where is Brem?" experience itself.
--------------------------------------------------------------------- */
.page-admin {
  display: block;
  min-height: 100%;
  background: linear-gradient(to bottom, var(--panel), var(--void-black));
  padding: 40px clamp(16px, 4vw, 64px) 80px;
  padding-right: calc(var(--sidebar-item-size, 140px) + 48px);
}
.admin-scroll {
  max-width: 820px;
  margin: 0 auto;
}
.admin-heading {
  margin: 0 0 4px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  color: #fff;
}
.admin-whoami {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}
.admin-section {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px clamp(16px, 3vw, 32px);
  margin-bottom: 28px;
}
.admin-section h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.admin-section h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.admin-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-list-row .admin-input {
  flex: 1 1 auto;
}
.admin-list-row-buttons {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
.admin-section-hint {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.admin-field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.admin-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.admin-row .admin-field {
  flex: 1 1 160px;
}
.admin-input,
.admin-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  padding: 10px 12px;
  font-family: inherit;
  box-sizing: border-box;
}
.admin-input:focus,
.admin-textarea:focus {
  outline: none;
  border-color: var(--aurora-blue);
}
.admin-input:disabled,
.admin-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-textarea {
  resize: vertical;
  min-height: 60px;
}
.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.admin-button {
  appearance: none;
  border: 1px solid var(--aurora-blue);
  background: rgba(143, 211, 255, 0.12);
  color: var(--aurora-blue);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease, opacity 150ms ease;
}
.admin-button:hover:not(:disabled) {
  background: rgba(143, 211, 255, 0.22);
}
.admin-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.admin-button--danger {
  border-color: #ff8f8f;
  background: rgba(255, 143, 143, 0.1);
  color: #ff8f8f;
}
.admin-button--danger:hover:not(:disabled) {
  background: rgba(255, 143, 143, 0.2);
}
.admin-button--small {
  padding: 5px 10px;
  font-size: 12px;
}
.admin-status {
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}
.admin-status--ok {
  color: #8fffb0;
}
.admin-status--error {
  color: #ff8f8f;
}
.admin-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
}
.admin-toggle-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--aurora-blue);
}
.admin-toggle-row label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* Quar entry manager */
.quar-admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.quar-admin-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}
.quar-admin-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: rgba(255, 255, 255, 0.05);
}
.quar-admin-item-fields {
  min-width: 0;
}
.quar-admin-item-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
.quar-admin-order-buttons {
  display: flex;
  gap: 4px;
}
.quar-empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

/* ---------------------------------------------------------------------
   admin-track.html — the page Brem opens on his own phone to broadcast
   his location while auto-tracking is on. Deliberately huge/simple: it
   needs to be legibly usable at a glance, one-handed.
--------------------------------------------------------------------- */
.page-track {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
  background: linear-gradient(to bottom, var(--panel), var(--void-black));
  text-align: center;
}
.track-heading {
  margin: 0;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 600;
  color: #fff;
}
.track-status {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  line-height: 1.5;
}
.track-toggle-button {
  appearance: none;
  border: 3px solid var(--aurora-blue);
  background: rgba(143, 211, 255, 0.1);
  color: var(--aurora-blue);
  font-size: 20px;
  font-weight: 700;
  padding: 24px 40px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.track-toggle-button:active {
  transform: scale(0.97);
}
.track-toggle-button.is-on {
  border-color: #8fffb0;
  background: rgba(143, 255, 176, 0.15);
  color: #8fffb0;
}
.track-last-ping {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
