/* Necessity Robotics v4, lane ENGINE: the 3-D view (explore.html). Load after css/site.css, css/v4.css and
   js/place/place.css. Tokens of site.css only: black, one blue accent, heavy text on its own black backing.
   Phone first (390 px); desktop from 760 px. Every control is 44 px or more. Nothing here animates by itself.
   body[data-state] follows the place: still | loading | live | failed. Elements with .xp-live exist on screen only
   while the place is live (R3: a hint is true when it shows). */

html, body.xp { height: 100%; }
body.xp { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none;
  font-size: 16px; line-height: 1.45; }
.xp p { margin: 0; max-width: none; }
.xp button { font-family: var(--sans); }
.xp svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.xp-live { display: none !important; }
.xp[data-state="live"] .xp-live:not([hidden]) { display: flex !important; }
/* words and controls that belong to a mouse and a keyboard only (R8: touch says touch) */
.xp-fine { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .xp[data-state="live"] .xp-fine { display: flex !important; }
  .xp[data-state="live"] .xp-pad.xp-fine { display: grid !important; }
}
html.can-hover .xp[data-state="live"] .xp-fine { display: flex !important; }
html.can-hover .xp[data-state="live"] .xp-pad.xp-fine { display: grid !important; }
html.is-touch .xp[data-state="live"] .xp-fine, html.is-touch .xp[data-state="live"] .xp-pad.xp-fine { display: none !important; }
/* words that only a wide screen has room for (a phone gets the short form of the same sentence) */
.xp-wide { display: none; }
.xp-narrow { display: inline; }             /* and the full stops of the phone's one-line form */

/* ------------------------------------------------------------ top bar */
.xp-top { position: relative; z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back . switch" "title title title";
  align-items: center; gap: 6px 8px; padding: 6px 10px 8px; padding-top: max(6px, env(safe-area-inset-top)); background: #000; border-bottom: 1px solid var(--line-2); }
.xp-back { grid-area: back; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line-3);
  color: var(--fg); text-decoration: none; font: 700 15px/1 var(--sans); white-space: nowrap; }
.xp-back:hover { border-color: var(--fg); color: var(--fg); background: rgba(255, 255, 255, .06); }
.xp-arr { color: var(--ion); font-size: 17px; line-height: 1; }
.xp-wm { display: none; }
.xp-title { grid-area: title; min-width: 0; padding: 0 2px; }
.xp-name { margin: 0; font: 750 17px/1.2 var(--display); letter-spacing: -0.01em; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap; }
.xp-line { margin-top: 2px !important; font-size: 13.5px; line-height: 1.3; color: var(--fg-2); }
.xp-line b { color: var(--fg); font-weight: 750; }
html.xp-other:not(.xp-ready) .xp-name { visibility: hidden; }
.xp-switch { grid-area: switch; display: flex; align-items: center; gap: 4px; }
.xp-nav { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-3);
  color: var(--fg); background: #000; }
.xp-nav:hover { border-color: var(--fg); color: var(--fg); background: rgba(255, 255, 255, .06); }
.xp-nav svg { width: 22px; height: 22px; }
.xp-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px 4px 5px; border-radius: 999px; border: 1px solid var(--line-3);
  background: #000; color: var(--fg); cursor: pointer; text-align: left; }
.xp-pill:hover, .xp-pill[aria-expanded="true"] { border-color: var(--ion); }
.xp-pill-pic { width: 46px; height: 32px; object-fit: cover; border-radius: 999px; background: #111; }
.xp-pill-t { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.xp-pill-t b { font: 750 14px/1 var(--sans); color: var(--fg); }
.xp-pill-t i { font: 650 12.5px/1 var(--sans); font-style: normal; color: var(--ion); }
.xp-pill-v { width: 16px; height: 16px; color: var(--ion); flex: none; }
.xp-pill[aria-expanded="true"] .xp-pill-v { transform: rotate(180deg); }
.xp-about { display: none; }

/* ------------------------------------------------------------ the stage */
.xp-stage { position: relative; min-height: 0; overflow: hidden; background: #000; }
.xp-stage > .pl { position: absolute; inset: 0; }
.xp-panel, .xp-hint, .xp-you, .xp-photo figcaption, .xp-said, .xp-cannot, .xp-aboveui .xp-above-t { background: rgba(0, 0, 0, .9); border: 1px solid var(--line-2); border-radius: 12px; }

.xp-status { position: absolute; z-index: 6; left: 50%; top: 12px; transform: translateX(-50%); }
.xp-cannot { position: absolute; z-index: 6; left: 10px; right: 10px; bottom: 12px; margin: 0 auto; max-width: 520px; padding: 16px 18px 18px; border-color: var(--line-3); }
.xp-cannot p:first-child { font: 700 17.5px/1.35 var(--display); color: var(--fg); text-wrap: balance; }
.xp .nb { white-space: nowrap; }
.xp-cannot-b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px !important; }

/* the hint. Phone: two short lines at the top ("Nothing moves until you do." / "Swipe to look. Tap a blue circle to
   step."); it folds into the small "How to move" button after the first swipe. Desktop: a card beside the path. */
.xp-hint { position: absolute; z-index: 5; left: 10px; top: 10px; width: fit-content; max-width: calc(100% - 20px); flex-direction: column; gap: 2px; padding: 8px 46px 9px 12px; }
.xp-hint-h { font: 600 14.5px/1.3 var(--sans); color: var(--fg); }
.xp-hint-h b { color: var(--ion); font-weight: 750; white-space: nowrap; }
.xp-hint-rows { list-style: none; margin: 0; padding: 0; display: block; font-size: 14px; line-height: 1.3; color: var(--fg-2); }
.xp-hint-rows li { display: inline; }
.xp-hint-rows li b { color: var(--fg); font-weight: 750; }
.xp-hint-rows li.is-done { color: var(--fg-3); }
.xp-hint-rows li.is-done b { color: var(--fg-2); }
.xp-hint-rows li.is-done .xp-ic { color: var(--fg-3); }
.xp-hint-rows li.is-done .xp-ic .b { stroke: var(--fg-3); }
.xp-ic { display: none; flex: none; width: 36px; height: 20px; color: var(--fg); }
.xp-ic svg { width: 100%; height: 100%; stroke-width: 2; }
.xp-ic .b { stroke: var(--ion); }
.xp-hint-x { position: absolute; right: 0; top: 50%; margin-top: -22px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--fg-2); cursor: pointer; border-radius: 12px; }
.xp-hint-x:hover { color: var(--fg); }
.xp-hint-x svg { width: 18px; height: 18px; }
.xp-help { position: absolute; z-index: 5; left: 10px; top: 10px; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-3); background: rgba(0, 0, 0, .9);
  color: var(--fg); font: 700 14.5px/1 var(--sans); cursor: pointer; }
.xp-help::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--ion); color: var(--ink); font: 800 13px/1 var(--sans); }
.xp-help:hover { border-color: var(--fg); }

/* the plain line after the first look and the first step */
.xp-said { position: absolute; z-index: 7; left: 10px; right: 10px; top: 10px; margin: 0 auto !important; width: fit-content; max-width: min(560px, calc(100% - 20px)); padding: 11px 16px; border-color: rgba(255, 106, 43, .7);
  font: 700 16px/1.35 var(--display); color: var(--fg); text-align: center; text-wrap: balance; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; pointer-events: none; }
.xp-said.is-on { opacity: 1; visibility: visible; transition: opacity .25s; }
.xp[data-state="live"] .xp-said { top: 62px; max-width: min(300px, calc(100% - 20px)); padding: 9px 14px; font-size: 15px; }   /* phone: under the "How to move" button */
.xp[data-state="live"][data-hint="open"] .xp-said { top: var(--xp-hint-b, 76px); }
.xp[data-above] .xp-said { display: none; }

/* "You are here" */
.xp-you { position: absolute; z-index: 5; left: 10px; bottom: 10px; width: 126px; flex-direction: column; padding: 7px; gap: 4px; }
.xp-you-h { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font: 750 12.5px/1.2 var(--sans); letter-spacing: .01em; color: var(--fg); white-space: nowrap; }
.xp-you-h b { font-weight: 750; }
.xp-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ion); border: 2px solid #fff; }
.xp-prog { flex-basis: 100%; font: 650 12px/1.25 var(--sans); letter-spacing: 0; color: var(--fg-2); }       /* "117 m of 227 m" */
.xp-map { position: relative; height: 60px; border-radius: 8px; background: #050505; border: 1px solid var(--line); overflow: hidden; }
.xp-map.v4-route--map { min-height: 0; }
.xp-map-note { font-size: 12px; line-height: 1.25; color: var(--fg-2); font-weight: 600; }
.xp-map-note span { color: var(--ion); font-weight: 750; }
.xp-note-more { display: none; font-style: normal; }
.xp-above { display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; min-height: 44px; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--line-3); background: #000;
  color: var(--fg); font: 700 12.5px/1.2 var(--sans); cursor: pointer; text-align: left; }
.xp-above:hover { border-color: var(--ion); }
@media (max-width: 759px) {
  .xp-above { padding: 3px 1px 0; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: none; text-decoration: underline; text-decoration-color: var(--ion); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
  .xp-map .v4-route-fan, .xp-map .v4-route-you circle { scale: .74; }
  .xp-map .v4-route-line { stroke-width: 2.4; }
}
.xp-above svg { display: none; flex: none; width: 17px; height: 17px; color: var(--ion); }
.xp-prog-row { display: block; font: 650 12.5px/1.2 var(--sans); color: var(--fg-2); }

/* the camera's photo of this spot, set like a print. The print is a button. Phone: a small picture over the ride
   button; a tap opens the card (larger photo + the sentence). Desktop: the card is open; a click makes the photo larger. */
.xp-photo { position: absolute; z-index: 5; right: 10px; bottom: calc(18px + var(--xp-move-h, 110px)); width: 96px; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0; }
.xp-print { display: block; width: 100%; padding: 3px; border: 0; background: #f4f4f4; border-radius: 3px; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.xp-photo.is-open .xp-print { cursor: zoom-out; }
.xp-print img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #111; }
.xp-print:hover { background: #fff; }
.xp-print:focus-visible { outline: 3px solid var(--ion); outline-offset: 2px; }
.xp-photo-s { padding: 3px 8px 4px; border-radius: 999px; background: rgba(0, 0, 0, .9); border: 1px solid var(--line-2); font: 700 11.5px/1.25 var(--sans); color: var(--fg); white-space: nowrap; }
.xp-photo figcaption { display: none; margin: 0; padding: 7px 9px 8px; font-size: 13.5px; line-height: 1.35; color: var(--fg-2); max-width: none; align-self: stretch; }
.xp-photo figcaption b { display: block; font: 750 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--fg); margin: 0; }
.xp-photo.is-open { z-index: 8; width: min(236px, calc(100% - 156px)); }      /* clear of the "You are here" panel */
.xp-photo.is-open figcaption { display: block; }
.xp-photo.is-open .xp-photo-s { display: none; }

/* walk and ride */
.xp-move { position: absolute; z-index: 5; right: 10px; bottom: 10px; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.xp-move > * { pointer-events: auto; }
.xp-pad { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 48px); gap: 6px; justify-content: center; }
.xp-pad .xp-key--fwd { grid-column: 2; }
.xp-pad .xp-key[data-act="left"] { grid-column: 1; grid-row: 2; }
.xp-pad .xp-key[data-act="back"] { grid-column: 2; grid-row: 2; }
.xp-pad .xp-key[data-act="right"] { grid-column: 3; grid-row: 2; }
.xp-key { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-3); background: rgba(0, 0, 0, .9); color: var(--fg); cursor: pointer; }
.xp-key:hover { border-color: var(--fg); background: #1a1a1a; }
.xp-key:active { background: #2a2a2a; }
.xp-key svg { width: 22px; height: 22px; }
.xp-key--fwd { background: var(--ion); border-color: var(--ion); color: var(--ink); }
.xp-key--fwd:hover { background: var(--v4-ion-hi); border-color: var(--v4-ion-hi); }
.xp-key--fwd:active { background: #fff; }
.xp-pad-cap { justify-content: center; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .9); border: 1px solid var(--line-2); font: 650 13px/1.2 var(--sans); color: var(--fg); white-space: nowrap; }
.xp-ride-row { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
/* phone: the round button in the corner under the thumb; its sentence in two short lines above it, until the first ride */
.xp-ride { display: inline-flex; flex-direction: column-reverse; align-items: flex-end; gap: 6px; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.xp-ride-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ion); color: var(--ink); border: 3px solid #000; box-shadow: 0 0 0 1.5px var(--ion); }
.xp-ride-ic svg { width: 30px; height: 30px; stroke-width: 2.6; }
.xp-ride-t { max-width: 104px; padding: 4px 8px 5px; border-radius: 10px; background: rgba(0, 0, 0, .9); border: 1px solid var(--line-2); font: 700 12px/1.25 var(--sans); text-align: right; color: var(--fg); }
.xp-ride:focus-visible { outline: none; }
.xp-ride:focus-visible .xp-ride-ic { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 759px) { .xp[data-rode] .xp-ride-t { display: none; } }      /* after the first ride "Keep riding" takes its place */
.xp-ride:hover .xp-ride-ic { background: var(--v4-ion-hi); }
.xp[data-riding] .xp-ride-ic { background: #fff; box-shadow: 0 0 0 1.5px #fff, 0 0 0 6px rgba(255, 106, 43, .45); }
.xp-keep { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ion); background: rgba(0, 0, 0, .92); color: var(--ion); font: 750 14.5px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.xp-keep:hover { background: #241006; }
.xp-keep[aria-pressed="true"] { background: var(--ion); color: var(--ink); }

/* one button back: off the path, or above it */
.xp-center { position: absolute; z-index: 6; left: 50%; top: 34%; transform: translateX(-50%); align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ion);
  background: rgba(0, 0, 0, .92); color: var(--fg); font: 750 15px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.xp-center::before { content: "\21A9"; margin-right: 8px; color: var(--ion); font-size: 17px; }
.xp-center:hover { background: #241006; }
.xp-aboveui { position: absolute; z-index: 6; left: 10px; right: 10px; top: 10px; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.xp-aboveui > * { pointer-events: auto; }
.xp-above-t { padding: 10px 15px; font: 700 15px/1.35 var(--display); color: var(--fg); text-align: center; text-wrap: balance; max-width: 520px; }
.xp-ground { min-height: 48px; }
/* above: the ground controls step aside */
.xp[data-above][data-state] .xp-hint.xp-live, .xp[data-above][data-state] .xp-help.xp-live, .xp[data-above][data-state] .xp-photo.xp-live, .xp[data-above][data-state] .xp-move.xp-live,
.xp[data-above][data-state] #xp-backpath.xp-live, .xp[data-above] .xp-above, .xp[data-above] .xp-map-note { display: none !important; }

/* ------------------------------------------------------------ the fixed bottom line */
.xp-foot { position: relative; z-index: 30; display: flex; flex-direction: column; gap: 1px; padding: 7px 12px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: #000; border-top: 1px solid var(--line-2); }
.xp-honest { font: 750 14.5px/1.3 var(--display); color: var(--fg); }
.xp-foot-r { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.xp-link { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; padding: 0; background: none; border: 0; color: var(--fg-2); font: 650 14px/1.2 var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.xp-link:hover { color: var(--fg); }
.xp-credit { color: var(--fg-2); flex-basis: 100%; }
.xp-credit-ros { display: none; }
html.xp-ros .xp-credit-ros { display: inline; }
html.xp-ros .xp-credit-own { display: none; }
html.xp-other:not(.xp-ros):not(.xp-ready) .xp-credit-own { visibility: hidden; }

/* ------------------------------------------------------------ change place */
.xp-places { position: fixed; z-index: 40; left: 0; right: 0; top: var(--xp-top-h, 100px); max-height: calc(100dvh - var(--xp-top-h, 100px)); overflow: auto; padding: 12px 12px 16px; background: #000;
  border-bottom: 1px solid var(--line-3); box-shadow: 0 24px 60px rgba(0, 0, 0, .8); }
.xp-places-head, .xp-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.xp-places h2, .xp-sheet h2 { margin: 0; font: 750 20px/1.2 var(--display); letter-spacing: -0.01em; outline: none; }
.xp-x { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-3); background: #000; color: var(--fg); font: 700 14.5px/1 var(--sans); cursor: pointer; }
.xp-x:hover { border-color: var(--fg); }
.xp-places .v4-placerow-item span { font-size: 13px; }
.xp-here { color: var(--ion); }

/* ------------------------------------------------------------ the sheet: About this place / For engineers */
.xp-sheet { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; max-height: min(82dvh, 720px); display: flex; flex-direction: column; background: #000; border-top: 1px solid var(--line-3);
  border-radius: 16px 16px 0 0; box-shadow: 0 -24px 60px rgba(0, 0, 0, .8); }
.xp-sheet[hidden] { display: none; }
.xp-sheet-head { flex: none; margin: 0; padding: 12px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.xp-sheet-body { overflow: auto; padding: 14px 18px 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.xp-sheet-body h3 { margin: 18px 0 4px; font: 750 17px/1.3 var(--display); letter-spacing: 0; }
.xp-sheet-body p { font-size: 16px; line-height: 1.55; color: var(--fg); max-width: 60ch; }
.xp-sheet-body p + p { margin-top: 8px; }
.xp-s-kind { color: var(--fg-2) !important; }
.xp-s-kind b { display: block; font: 750 18px/1.3 var(--display); color: var(--fg); }
.xp-s-quiet { color: var(--fg-2) !important; font-size: 15px !important; }
.xp-s-credit { margin-top: 16px !important; font-size: 13px !important; color: var(--fg-2) !important; }
.xp-eng { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-1); }
.xp-eng summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer; font: 750 16px/1.2 var(--display); color: var(--fg); list-style: none; }
.xp-eng summary::-webkit-details-marker { display: none; }
.xp-eng summary::after { content: "+"; margin-left: auto; color: var(--ion); font: 500 22px/1 var(--mono); }
.xp-eng[open] summary::after { content: "\2212"; }
.xp-eng[open] summary { border-bottom: 1px solid var(--line); }
.xp-eng-body { padding: 14px 16px 18px; font-size: 15px; line-height: 1.5; }
.xp-eng-body h4 { margin: 18px 0 8px; font: 500 12.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.xp-eng-body h4:first-child { margin-top: 0; }
.xp-eng-body p { font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.xp-eng-title { font: 750 18px/1.25 var(--display) !important; color: var(--fg) !important; }
.xp-eng-body dl.kv { gap: 6px 16px; font-size: 15px; }
.xp-eng-body dl.kv dt { font-size: 12px; }
.xp-eng-body dl.kv dd { color: var(--fg); overflow-wrap: anywhere; }
.xp-eng-body .lic { margin: 8px 0 4px; }
.xp-eng-body .seg { margin: 0 0 8px; }
.xp-eng-body .seg button { min-height: 40px; }
.xp-eng-body label.tog { display: flex; align-items: center; gap: 9px; min-height: 40px; color: var(--fg); font-size: 15px; cursor: pointer; }
.xp-eng-body label.tog input { width: 18px; height: 18px; accent-color: var(--ion); }
.xp-ld { list-style: none; margin: 0; padding: 0; font: 400 13.5px/1.6 var(--mono); color: var(--fg-2); }
.xp-ld b { color: var(--fg); font-weight: 600; }
.xp-eng-feed { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; }
.xp-eng-feed img { width: 128px; height: auto; border-radius: 4px; background: #111; }
.xp-eng-note { margin-top: 8px !important; padding: 8px 12px; border-left: 2px solid var(--line-3); color: var(--fg) !important; }
.xp-eng-ask { margin-top: 6px !important; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--fg) !important; }
.xp-eng-ask button { margin: 8px 8px 0 0; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-3); background: #000; color: var(--fg); font: 700 14px/1 var(--sans); cursor: pointer; }
.xp-eng-ask button:first-of-type { background: var(--ion); border-color: var(--ion); color: var(--ink); }

.xp-noscript { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: 110px; margin: 0 auto; max-width: 520px; padding: 14px 16px; border-radius: 12px; background: #000; border: 1px solid var(--line-3); font-weight: 700; }

/* ------------------------------------------------------------ ?bare=1: the picture alone (pose-matched stills) */
html.xp-bare .xp-top, html.xp-bare .xp-foot, html.xp-bare #main > :not(#pl), html.xp-bare .xp-places, html.xp-bare .xp-sheet, html.xp-bare .skip { display: none !important; }
html.xp-bare body.xp { grid-template-rows: minmax(0, 1fr); }

/* ------------------------------------------------------------ small phones */
@media (max-width: 374px) {
  .xp-back { padding: 0 11px 0 9px; font-size: 14px; }
  .xp-pill-pic { display: none; }
  .xp-pill { padding-left: 12px; }
  .xp-you { width: 118px; }
  .xp-photo { width: 88px; }
  .xp-hint-h { font-size: 13.5px; }
  .xp-hint-rows { font-size: 13px; }
}

/* ------------------------------------------------------------ desktop and tablet */
@media (min-width: 760px) {
  body.xp { font-size: 17px; }
  .xp-top { grid-template-columns: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "back wm title switch about"; gap: 14px; min-height: 64px; padding: 8px 16px; }
  .xp-title { padding: 0 0 0 6px; border-left: 1px solid var(--line-2); padding-left: 16px; }
  .xp-name { font-size: 19px; }
  .xp-line { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .xp-about { grid-area: about; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-3); background: #000; color: var(--fg); font: 700 15px/1 var(--sans); cursor: pointer; white-space: nowrap; }
  .xp-about:hover, .xp-about[aria-expanded="true"] { border-color: var(--fg); background: rgba(255, 255, 255, .06); }
  .xp-link--about { display: none; }
  .xp-pill { padding: 4px 14px 4px 5px; gap: 10px; }
  .xp-pill-pic { width: 54px; height: 36px; }
  .xp-pill-t b { font-size: 15px; }
  .xp-pill-t i { font-size: 13px; }

  .xp-status { top: 16px; }
  .xp-cannot { left: 16px; right: 16px; bottom: 22px; padding: 20px 22px 22px; }
  .xp-cannot p:first-child { font-size: 20px; }
  .xp-wide { display: inline; }
  .xp-narrow { display: none; }
  .xp-hint { left: 16px; top: 16px; width: 384px; max-width: none; gap: 9px; padding: 14px 44px 14px 16px; }
  .xp-hint-h { font-size: 16px; line-height: 1.35; }
  .xp-hint-x { top: 0; margin-top: 0; }
  .xp-hint-rows { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.25; }
  .xp-hint-rows li { display: flex; align-items: center; gap: 12px; }
  .xp-hint-rows li.is-done::after { content: "done"; margin-left: auto; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); font: 700 11.5px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
  .xp-ic { display: block; width: 52px; height: 29px; }
  .xp-help { left: 16px; top: 16px; }
  .xp-said, .xp[data-state="live"] .xp-said, .xp[data-state="live"][data-hint="open"] .xp-said { top: 16px; max-width: min(560px, calc(100% - 20px)); font-size: 17.5px; padding: 12px 20px; }
  .xp-aboveui { top: 16px; }
  .xp-above-t { font-size: 16.5px; }

  .xp-you { left: 16px; bottom: 16px; width: 296px; padding: 11px 12px 12px; gap: 7px; }
  .xp-you-h { flex-wrap: nowrap; gap: 7px; font-size: 14px; letter-spacing: .02em; }
  .xp-dot { width: 12px; height: 12px; }
  .xp-prog { flex-basis: auto; margin-left: auto; font-size: 13.5px; }
  .xp-map { height: 132px; }
  .xp-map-note { font-size: 13px; }
  .xp-above { justify-content: center; font-size: 14.5px; padding: 6px 12px; }
  .xp-above svg { display: block; }
  .xp-note-more { display: inline; }
  .xp-photo { right: auto; left: 324px; bottom: 16px; width: 204px; align-items: stretch; gap: 6px; }
  .xp-photo-s { display: none; }
  .xp-photo figcaption { display: block; padding: 8px 10px 9px; }
  .xp-photo.is-open { width: 326px; }

  .xp-move { right: 16px; bottom: 16px; align-items: center; gap: 8px; padding: 12px 12px 12px; border-radius: 14px; background: rgba(0, 0, 0, .78); border: 1px solid var(--line-2); pointer-events: auto; }
  .xp-pad-cap { border: 0; background: none; padding: 0; font-size: 13.5px; color: var(--fg-2); }
  .xp-ride-row { flex-direction: row; align-items: center; gap: 8px; width: 100%; justify-content: center; }
  .xp-ride { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 4px 16px 4px 5px; border-radius: 999px; border: 1px solid var(--ion); background: #000; }
  .xp-ride:hover { background: #241006; }
  .xp-ride:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .xp-ride:focus-visible .xp-ride-ic { outline: none; }
  .xp-ride-ic { width: 38px; height: 38px; border: 0; box-shadow: none; }
  .xp-ride-ic svg { width: 22px; height: 22px; }
  .xp-ride-t { max-width: none; padding: 0; border: 0; background: none; font-size: 14.5px; text-align: left; white-space: nowrap; color: var(--fg); }
  .xp[data-riding] .xp-ride { background: #241006; }
  .xp-center { top: auto; bottom: 22px; }

  .xp-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 44px; padding: 6px 16px; }
  .xp-honest { font-size: 15.5px; }
  .xp-foot-r { flex-wrap: nowrap; gap: 0 18px; }
  .xp-credit { flex-basis: auto; font-size: 13px; }

  .xp-places { padding: 16px 16px 20px; }
  .xp-sheet { left: auto; right: 0; top: var(--xp-top-h, 64px); bottom: var(--xp-foot-h, 44px); width: min(460px, 100vw); max-height: none; border-top: 0; border-left: 1px solid var(--line-3); border-radius: 0;
    box-shadow: -24px 0 60px rgba(0, 0, 0, .7); }
}
@media (min-width: 1120px) {
  .xp-wm { display: inline-flex; }
}
@media (min-width: 760px) and (max-width: 1040px) {
  .xp-photo { width: 168px; }
  .xp-photo.is-open { width: 260px; }
  /* a tablet, a narrow window: the name and its line get their own row (as on a phone), so neither is cut short */
  .xp-top { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "back . switch about" "title title title title"; gap: 6px 10px; }
  .xp-title { padding: 0 2px 2px; border-left: 0; }
  .xp-foot { flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 16px 8px; }
  .xp-foot-r { flex-wrap: wrap; }
}
@media (min-width: 760px) and (max-width: 1040px) and (max-height: 560px) { .xp-line { display: none; } }
/* low windows (a phone held sideways, a small laptop window): keep the place in view */
@media (max-height: 560px) {
  .xp-hint-rows li#xp-h-keys { display: none !important; }
  .xp-photo { display: none !important; }
  .xp-map { height: 64px; }
  .xp-map-note, .xp-pad-cap { display: none !important; }
}
@media (min-width: 760px) and (max-height: 700px) { .xp-map { height: 96px; } }

@media (prefers-reduced-motion: reduce) {
  .xp-said, .xp-said.is-on { transition: none; }
}

@media (max-width: 759px) and (max-height: 700px) { .xp-map { height: 48px; } }      /* a small phone: the place keeps more room */

/* ================================================================== 2026-11-12: ONE control dock (owner: the buttons were confusing) */
.xp-dock { position: absolute; z-index: 6; right: 16px; bottom: 16px; display: none; grid-template-columns: 52px minmax(0, auto) 52px; align-items: center; gap: 8px;
  padding: 10px; border-radius: 20px; background: rgba(0, 0, 0, .82); border: 1px solid var(--line-2); }
.xp[data-state="live"] .xp-dock.xp-live:not([hidden]) { display: grid !important; }
.xp-dock .xp-key { width: 52px; height: 52px; border-radius: 50%; }
.xp-auto { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 22px 6px 8px; border-radius: 999px; border: 0; cursor: pointer; text-align: left;
  background: var(--ion); color: var(--ink); box-shadow: 0 0 0 1px var(--ion), 0 0 34px rgba(255, 106, 43, .45); transition: box-shadow .25s, background .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.xp-auto:hover { background: var(--v4-ion-hi, #ffa27a); box-shadow: 0 0 0 1px var(--ion), 0 0 46px rgba(255, 106, 43, .7); }
.xp-auto:active { transform: scale(.98); }
.xp-auto:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.xp-auto-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #140600; color: var(--ion); }
.xp-auto-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.xp-ic-stop { display: none; }
.xp-ic-stop rect { fill: currentColor; stroke: none; }
.xp-auto-t b { display: block; font: 800 18px/1.15 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.xp-auto-t i { display: block; margin-top: 2px; font: 500 13px/1.2 var(--sans); font-style: normal; opacity: .82; white-space: nowrap; }
.xp-auto[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 1px #fff, 0 0 0 6px rgba(255, 106, 43, .45); }
.xp-auto[aria-pressed="true"] .xp-ic-go { display: none; }
.xp-auto[aria-pressed="true"] .xp-ic-stop { display: block; }
.xp-auto.is-offer { animation: xp-offer 1.6s ease-in-out 3; }
@keyframes xp-offer { 50% { box-shadow: 0 0 0 1px var(--ion), 0 0 0 10px rgba(255, 106, 43, .35), 0 0 60px rgba(255, 106, 43, .9); } }
.xp-speed { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.xp-speed-l { margin-right: 4px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.xp-speed button { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #000; color: var(--fg-2); font: 650 13.5px/1 var(--sans); cursor: pointer; }
.xp-speed button:hover { border-color: var(--ion); color: #fff; }
.xp-speed button[aria-pressed="true"] { border-color: var(--ion); background: rgba(255, 106, 43, .16); color: #fff; }
.xp-speed button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.xp[data-above] .xp-dock .xp-key, .xp[data-above] .xp-speed { visibility: hidden; }
@media (max-width: 759px) {
  .xp-dock { left: 8px; right: 8px; bottom: 8px; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 6px; padding: 8px; border-radius: 18px; }
  .xp-dock .xp-key { width: 48px; height: 48px; }
  .xp-auto { min-height: 56px; padding: 5px 14px 5px 6px; gap: 10px; justify-content: flex-start; }
  .xp-auto-ic { width: 42px; height: 42px; }
  .xp-auto-t b { font-size: 16.5px; white-space: normal; }
  .xp-auto-t i { font-size: 12px; white-space: normal; }
  .xp-speed button { min-height: 32px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .xp-auto.is-offer { animation: none; } }

.xp-auto .xp-auto-t b, .xp-auto .xp-auto-t i { color: #140600; }
@media (max-width: 759px) {
  .xp-you.xp-live { bottom: calc(var(--xp-move-h, 132px) + 18px) !important; }
  .xp-speed-l { display: none; }
}

@media (min-width: 760px) { .xp-auto { min-width: 300px; } }

/* ================================================================== 2026-11-12 (b): the dock after the checks */
.xp-dock { grid-template-columns: minmax(0, auto) auto; }
.xp-steps { display: grid; gap: 6px; }
.xp-dock .xp-steps .xp-key { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-width: 96px; height: 34px; padding: 0 12px 0 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .9); border: 1px solid var(--line-3); color: var(--fg); font: 650 13.5px/1 var(--sans); }
.xp-dock .xp-steps .xp-key svg { width: 18px; height: 18px; }
.xp-dock .xp-steps .xp-key:hover { border-color: var(--ion); }
.xp-ic-stop path { fill: none; }
.xp-auto.is-offer { animation-iteration-count: 1; }
.xp:not([data-rode]) .xp-speed { display: none; }                       /* the speeds appear after the first ride */
.xp-speed-l { margin-right: 4px; font: 500 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.xp[data-above] .xp-dock .xp-steps, .xp[data-above] .xp-speed { display: none; }
.xp[data-above] .xp-dock { grid-template-columns: auto; }
.xp-hint-rows li.is-done::after { content: none !important; }
@media (max-width: 759px) {
  .xp-dock { grid-template-columns: minmax(0, 1fr) auto; }
  .xp-dock .xp-steps .xp-key { min-width: 84px; height: 30px; }
  .xp-speed-l { display: none; }
  .xp-foot .xp-honest { display: none; }                               /* the top line already says "Not a video." */
}

/* look with your phone (js/place/tilt.js): a glass square in the top bar, touch + HTTPS only; pressed = bone */
.xp-tilt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 0; background: rgba(0, 0, 0, .86); color: #f3f5f6;
  font: 600 14px/1 var(--sans, system-ui); letter-spacing: .01em; cursor: pointer; }
.xp-tilt[hidden] { display: none; }
.xp-tilt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.xp-tilt[aria-pressed="true"] { background: var(--acc, #e8e0cf); border-color: var(--acc, #e8e0cf); color: var(--on-acc, #1a1712); }
@media (max-width: 759px) { .xp-tilt-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* its place (touch only; a desktop never shows it, so its bar is untouched): its own column in the bar */
@media (hover: none), (pointer: coarse) {
  @media (max-width: 759px) {
    .xp-top { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "back . switch switch" "title title title tilt"; }
    .xp-tilt { grid-area: tilt; align-self: start; }
  }
  @media (min-width: 760px) and (max-width: 1040px) {
    .xp-top { grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "back . switch about tilt" "title title title title title"; }
    .xp-tilt { grid-area: tilt; }
  }
  @media (min-width: 1041px) {
    .xp-top { grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; grid-template-areas: "back wm title switch about tilt"; }
    .xp-tilt { grid-area: tilt; }
  }
}

/* ============================================================ MAP FIRST on phones and tablets (owner 11-17: "the buttons still take up
   more space than the map itself ... can barely see map in phone \ tablet, make buttons smaller or come up with best idea").
   Touch only (a desktop never matches), after every other rule: the bar is one row, the controls are small glass pieces at
   the edges, the words fold away, the 3-D place gets the screen. */
@media (hover: none), (pointer: coarse) {
  /* ---- the bar: one row on a phone (the back link is its arrow; the title is the name only) */
  @media (max-width: 759px) {
    html body .xp-top { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "back . switch tilt" "title title title title"; gap: 4px 6px; padding: 6px 8px 6px; }
    html body .xp-tilt { grid-area: tilt; align-self: center; width: 40px; min-width: 40px; height: 40px; padding: 0; }
    html body.v12 .xp-back { width: 40px; min-height: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0 !important; gap: 0; overflow: hidden; }
    html body.v12 .xp-back .xp-arr { font-size: 19px; }
    html body.v12 .xp-nav { width: 40px; height: 40px; }
    html body.v12 .xp-pill { min-height: 40px; padding: 0 8px; }
    html body .xp-pill-pic { display: none; }
    html body .xp-line { display: none; }
    html body .xp-name { font-size: 15.5px; line-height: 1.25; }
  }
  /* ---- the words: small, and they fold away */
  html body.xp .xp-hint { padding: 7px 34px 8px 10px; gap: 3px; max-width: min(330px, calc(100% - 20px)); }
  html body.xp .xp-hint-h { font-size: 13.5px; line-height: 1.3; }
  html body.xp .xp-hint-rows { font-size: 13px; line-height: 1.3; gap: 2px; }
  html body.xp .xp-hint-rows li { gap: 8px; }
  html body.xp .xp-hint-x { min-width: 36px; min-height: 36px; }
  html body.v12 .xp-help { min-height: 36px; padding: 0 12px; font-size: 13px; }
  html body.xp .xp-said, html body.xp[data-state="live"] .xp-said, html body.xp[data-state="live"][data-hint="open"] .xp-said { font-size: 14px; padding: 8px 12px; max-width: min(420px, calc(100% - 20px)); }
  /* ---- "You are here": a small map card (the map is the button: tap the path) */
  html body.xp .xp-you { left: 8px; bottom: 8px; width: 112px; padding: 5px; gap: 4px; }
  html body.xp .xp-you-h { font-size: 11px; gap: 4px; }
  html body.xp .xp-you-h b { display: none; }
  html body.xp .xp-map { height: 56px; }
  html body.xp .xp-map-note { display: none; }
  html body.v12 .xp-above { min-height: 34px; padding: 0 8px; justify-content: center; font-size: 12px; gap: 6px; }
  html body.v12 .xp-above span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html body.v12 .xp-above::after { content: "From above"; content: "From above" / ""; }
  /* ---- the camera's photo: a small print; it opens on a tap */
  html body.xp .xp-photo:not(.is-open) { width: 66px; }
  html body.xp .xp-photo:not(.is-open) .xp-photo-s, html body.xp .xp-photo:not(.is-open) figcaption { display: none; }
  /* ---- the ride dock: one small glass strip (Ride + Step + Back), not a big block */
  html body.v12 .xp-dock { right: 8px; bottom: 8px; left: auto; gap: 4px; padding: 4px; grid-template-columns: none; grid-auto-flow: column; align-items: center; }
  html body.v12 .xp-auto { min-height: 44px; padding: 0 14px 0 4px; gap: 8px; }
  html body.v12 .xp-auto-ic { width: 36px; height: 36px; }
  html body.v12 .xp-auto-t i { display: none; }
  html body.v12 .xp-auto-t b { font: 600 15px/1 var(--sans); letter-spacing: .01em; }
  html body.v12 .xp-dock .xp-steps { display: flex; gap: 4px; }
  html body.v12 .xp-dock .xp-steps .xp-key { width: 44px !important; min-width: 44px !important; height: 44px !important; padding: 0; flex-direction: column; gap: 2px;
    font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  html body.v12 .xp-dock .xp-steps .xp-key svg { width: 16px; height: 16px; }
  /* ---- the foot: one small line */
  html body.xp .xp-foot { padding: 4px 10px; padding-bottom: max(4px, env(safe-area-inset-bottom)); gap: 0; font-size: 12px; line-height: 1.35; }
  html body.xp .xp-foot .xp-link { font-size: 12.5px; min-height: 32px; }
  html body.xp .xp-foot-r { gap: 0 14px; }
  /* ---- a tablet: the same pieces, a little larger */
  @media (min-width: 760px) {
    html body.xp .xp-you { left: 12px; bottom: 12px; width: 200px; padding: 7px; }
    html body.xp .xp-you-h { font-size: 12.5px; }
    html body.xp .xp-you-h b { display: inline; }
    html body.xp .xp-map { height: 96px; }
    html body.xp .xp-photo:not(.is-open) { left: auto; right: 12px; width: 120px; bottom: calc(24px + var(--xp-move-h, 56px)); }
    html body.v12 .xp-dock { right: 12px; bottom: 12px; }
    html body.xp .xp-hint { max-width: 360px; }
    html body.xp .xp-foot { flex-direction: row; align-items: center; gap: 4px 18px; min-height: 0; }
  }
}
@media (hover: none) and (max-width: 759px), (pointer: coarse) and (max-width: 759px) {
  /* a phone: "Ride" / "Stop" (the button's own label keeps the full words for screen readers) */
  html body.v12 .xp-auto-t b { display: none; }
  html body.v12 .xp-auto-t::after { content: "Ride"; font: 600 15px/1 var(--sans); letter-spacing: .01em; }
  html body.v12 .xp-auto[aria-pressed="true"] .xp-auto-t::after { content: "Stop"; }
}

/* ============================================================ CHANGE PLACE on phones and tablets (owner 11-17: "make sure user can easily
   switch maps ... both for ios and android (in ios map switch panel from top not seen / not works)"). A full-screen sheet
   above everything (the 3-D view rests and hides under it, so no WebGL layer can paint over it on iOS), big picture
   cards, the current place marked. Pictures load when the sheet opens (iOS often never loads lazy images in a scroller). */
@media (hover: none), (pointer: coarse) {
  html body .xp-places { position: fixed; inset: 0; z-index: 200; max-height: none; height: 100vh; height: 100dvh;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: max(10px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom)); background: #000; border: 0; box-shadow: none; }
  html body .xp-places[hidden] { display: none; }
  html body .xp-places-head { position: sticky; top: 0; z-index: 2; margin: 0 -12px 12px; padding: 6px 12px 10px; background: #000; border-bottom: 1px solid rgba(255, 255, 255, .2); }
  html body .xp-places h2 { font-size: 22px; }
  html body .xp-places .v4-placerow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html body .xp-places .v4-placerow-item { border-radius: 0; border: 1px solid rgba(255, 255, 255, .22); background: #0b0b0c; min-height: 44px; }
  html body .xp-places .v4-placerow-item img { aspect-ratio: 4 / 3; }
  html body .xp-places .v4-placerow-item span { padding: 8px 10px 10px; font: 600 15px/1.25 var(--sans); }
  html body .xp-places .v4-placerow-item[aria-current] { border-color: var(--acc, #e8e0cf); box-shadow: inset 0 0 0 1px var(--acc, #e8e0cf); }
  html body .xp-places .v4-placerow-item[aria-current] span::after { content: "You are here"; display: block; margin-top: 4px; font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc, #e8e0cf); }
  html body .xp-places .v4-placerow-credit { margin-top: 12px; font-size: 12px; }
  @media (min-width: 760px) { html body .xp-places .v4-placerow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
  html body.xp[data-places-open] #pl, html body.xp[data-places-open] .xp-foot { visibility: hidden; }
  /* the switch in the bar reads as a button to change place */
  html body .xp-pill-t i::before { content: "\21C6\00a0"; font-style: normal; }
}
/* review fixes (touch only) */
@media (hover: none), (pointer: coarse) {
  html body.v12 .xp-dock .xp-speed { display: none !important; }       /* after a ride: no third item that widens the dock */
  @media (min-width: 760px) {
    html body.xp .xp-photo.is-open { left: auto; right: 12px; bottom: calc(24px + var(--xp-move-h, 56px)); }   /* clear of Ride */
    html body.xp .xp-you-h { flex-wrap: wrap; white-space: normal; }
    html body.xp .xp-foot .xp-link { min-height: 28px; }
  }
  @media (max-width: 759px) {
    /* the bar's line is gone on a phone: the name says it */
    html body .xp-name::after { content: " \00b7  Not a video";   /* two spaces: the first one ends the escape */ font: 500 12px/1 var(--sans); color: var(--fg-3, #9a9a9a); white-space: nowrap; }
  }
}
/* a phone held sideways (wide, but short; any width): the bar is one short row and the foot is one line, so the place gets
   the height. Touch only; a tablet (taller than 540 px) and a desktop never match. */
@media (hover: none) and (orientation: landscape) and (max-height: 540px), (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  html body .xp-top { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "back title switch tilt"; gap: 6px; min-height: 0; padding: 4px 8px; }
  html body .xp-title { border-left: 0; padding: 0 4px; min-width: 0; }
  html body .xp-name { font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body .xp-name::after { content: " \00b7  Not a video"; font: 500 12px/1 var(--sans); color: var(--fg-3, #9a9a9a); }
  html body .xp-line, html body .xp-about, html body .xp-pill-pic, html body .xp-wm { display: none; }
  html body .xp-link--about { display: inline-flex; }
  html body.v12 .xp-back { width: 40px; min-height: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0 !important; gap: 0; overflow: hidden; }
  html body.v12 .xp-back .xp-arr { font-size: 19px; }
  html body.v12 .xp-nav { width: 40px; height: 40px; }
  html body.v12 .xp-pill { min-height: 40px; padding: 0 8px; }
  html body .xp-tilt { grid-area: tilt; width: 40px; min-width: 40px; height: 40px; padding: 0; }
  html body .xp-tilt-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html body.xp .xp-foot .xp-honest { display: none; }
  html body.xp .xp-foot { flex-direction: row; flex-wrap: nowrap; align-items: center; min-height: 30px; padding: 1px 10px; padding-bottom: max(1px, env(safe-area-inset-bottom)); font-size: 11.5px; }
  html body.xp .xp-foot .xp-link { min-height: 28px; font-size: 12px; }
  html body.xp .xp-foot-r { flex-wrap: nowrap; min-width: 0; }
  html body.xp .xp-foot .xp-credit { flex-basis: auto; font-size: inherit; min-width: 0; }   /* it may wrap inside itself; it is never cut */
  html body.xp .xp-you { left: 8px; bottom: 8px; width: 120px; padding: 5px; }
  html body.xp .xp-you.xp-live { bottom: max(8px, env(safe-area-inset-bottom)) !important; }      /* (a phone's own rule stacks it above the dock) */
  /* the hint: the phone's short one-paragraph form, so it does not reach down to the map card */
  html body.xp .xp-hint { top: 8px; }
  html body.xp .xp-hint-rows { display: block; }
  html body.xp .xp-hint-rows li { display: inline; }
  html body.xp .xp-hint .xp-ic, html body.xp .xp-hint .xp-wide { display: none; }
  html body.xp .xp-hint .xp-narrow { display: inline; }
  /* the camera's photo, opened: a small print with no caption, above the dock */
  html body.xp .xp-photo.is-open { left: auto; width: 180px; bottom: calc(16px + var(--xp-move-h, 56px)); }
  html body.xp .xp-photo.is-open figcaption { display: none; }
  html body.xp .xp-you-h b { display: none; }
  html body.xp .xp-map { height: 56px; }
  html body.v12 .xp-dock { right: 8px; bottom: 8px; }
  /* an iPhone held sideways (viewport-fit=cover): keep every piece clear of the notch and the round corners */
  html body .xp-top { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  html body.xp .xp-foot { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  html body.xp .xp-you { left: max(8px, env(safe-area-inset-left)); }
  html body.xp .xp-hint, html body.v12 .xp-help { left: max(10px, env(safe-area-inset-left)); }
  html body.v12 .xp-dock { right: max(8px, env(safe-area-inset-right)); }
  html body.xp .xp-photo:not(.is-open), html body.xp .xp-photo.is-open { right: max(12px, env(safe-area-inset-right)); }
  html body .xp-places { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  html body .xp-sheet-head { padding-right: max(14px, env(safe-area-inset-right)); }
  html body .xp-sheet-body { padding-right: max(18px, env(safe-area-inset-right)); }
}
/* tablets and sideways phones: "Back to the camera's path" sits above the dock, not on Ride */
@media (hover: none) and (min-width: 760px), (pointer: coarse) and (min-width: 760px) {
  html body.xp .xp-center { bottom: calc(var(--xp-move-h, 56px) + 20px); }
}
/* ============================================================ the Phone / Touch switch (owner 11-21: the phone look is the
   default, "option to toggle to touch"). One glass piece in the bar's tilt place, two halves; the lit half is what runs.
   Touch devices only (the switch never shows on a desktop). */
.xp-tilt.xp-look { gap: 0; padding: 0; min-width: 0; width: auto; overflow: hidden; }
.xp-tilt.xp-look[hidden] { display: none; }
.xp-look-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 100%; padding: 0 11px;
  border: 0; background: transparent; color: #f3f5f6; font: 600 13.5px/1 var(--sans, system-ui); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xp-look-b + .xp-look-b { border-left: 1px solid rgba(255, 255, 255, .3); }
.xp-look-b svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.xp-look-b[aria-pressed="true"] { background: var(--acc, #e8e0cf); color: var(--on-acc, #1a1712); }
.xp-look-b:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
@media (hover: none), (pointer: coarse) {
  html body .xp-tilt.xp-look { width: auto; min-width: 0; padding: 0; }
  @media (max-width: 759px) {
    html body .xp-look-b { min-width: 40px; padding: 0 9px; }
    html body .xp-look-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  }
}
@media (hover: none) and (orientation: landscape) and (max-height: 540px), (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  html body .xp-tilt.xp-look { width: auto; min-width: 0; height: 40px; }
  html body .xp-look-b { min-width: 40px; padding: 0 9px; }
  html body .xp-look-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
