/* Loaded on index.html only, after style.css. The pixel street (js/street.js) and the home title. */

/* ============================================
   Home: title and the walkable street of old Deutsch Eylau
   ============================================ */
.town { padding-top: 1.5rem; }
.town__head { text-align: center; margin-bottom: 1.25rem; }
.town__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: var(--gold-hi);
  text-shadow:
    3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
    3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink),
    5px 6px 0 var(--oxblood), 6px 7px 0 var(--ink);
}
:root[data-theme="day"] .town__name { color: var(--gold-hi); }
.town__role { margin-top: 0.6rem; font-family: var(--font-body); font-variant-caps: all-small-caps; font-weight: 600; letter-spacing: 0.06em; font-size: clamp(1.1rem, 2.1vw, 1.45rem); color: var(--page-text); }
@media (max-width: 560px) {
  /* always two lines on phones, so the fallback font and Cinzel give the same height */
  .town__name span { display: block; }
  .town__role { line-height: 1.6; min-height: 4.8em; }
  .town__name {
    text-shadow:
      2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink),
      2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink),
      3px 4px 0 var(--oxblood);
  }
}

.stage--street { height: calc(var(--scene-h) * var(--scene-px) + 2 * var(--px)); --scene-h: 204; --scene-px: 2.7px; background: linear-gradient(180deg, #4f86c8, #dde8ec 65%, #8e8a84 65%); }
:root:not([data-theme="day"]) .stage--street { background: linear-gradient(180deg, #060a1c, #2e305c 65%, #2a2a38 65%); }
/* The pixel size must match streetPixel() in js/street.js. The street fills the site's frame (the
   width of the menu bar) and shows 600 street pixels across it, unless the screen is too short for
   that height: then the pixels stay smaller (--street-cap) and more of the street shows. */
@media (max-width: 559.98px) { .stage--street { --scene-px: 2px; } }
@media (min-width: 560px) and (max-height: 859.98px) { .stage--street { --scene-px: 1.8px; --street-cap: 1.8px; } }
@media (min-width: 1700px) and (min-height: 1100px) { .stage--street { --scene-px: 3.6px; --street-cap: 3.6px; } }
@media (min-width: 560px) {
  .town { container-type: inline-size; }
  .stage--street { width: calc(min(100%, var(--max)) - 2 * var(--gutter)); margin-inline: auto; border-left: var(--px) solid var(--ink); border-right: var(--px) solid var(--ink); }
  @supports (width: 1cqi) {
    .stage--street { --scene-px: min(var(--street-cap, 2.7px), (min(100cqi, var(--max)) - 2 * var(--gutter) - 2 * var(--px)) / 600); }
  }
}

.street { position: relative; height: 100%; outline: none; touch-action: manipulation; }
.street:focus-visible { box-shadow: inset 0 0 0 var(--px) var(--gold); }
.street canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; cursor: var(--cursor); }
.street canvas.is-smooth { image-rendering: auto; }

.street__hint, .street__label, .street__caption, .street__weather, .street__postcard {
  position: absolute;
  z-index: 2;
  color: var(--cream);
  background: linear-gradient(180deg, var(--win-top), var(--win-bot));
  background-clip: padding-box;
  border: calc(2 * var(--px)) solid transparent;
  border-image: url("../assets/pixel/frame-thin.svg") 18 stretch;
  box-shadow: calc(1 * var(--px)) calc(1 * var(--px)) 0 rgba(0, 0, 0, 0.4);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.street__hint {
  margin: 0;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-menu);
  font-weight: 500;
  font-size: 0.95rem;
  pointer-events: none;
}
/* the intro card: the keys, then a word on the town, in a bubble over the walker; gone with his first step */
.street__intro { max-width: min(44rem, calc(100% - 12px)); padding: 0.4rem 0.7rem 0.45rem; pointer-events: auto; visibility: hidden; }
.street__intro.is-placed { visibility: visible; }
.street__intro::after {   /* the bubble's tail, pointing down at the walker */
  content: "";
  position: absolute;
  left: calc(var(--tail, 50%) - 7px);
  bottom: calc(-2 * var(--px) - 9px);
  width: 14px;
  height: 9px;
  background: var(--win-bot);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.street__intro[hidden] { display: none; }
.street__intro p { margin: 0; }
.street__keys { font-size: 1.05rem; white-space: nowrap; }
.street__keys kbd { font-size: max(12px, 0.8em); }
.street__about { margin-top: 0.4rem !important; font-family: var(--font-body, inherit); font-size: 1.28rem; line-height: 1.38; color: var(--win-dim, var(--cream)); }
.street__about a { color: var(--gold); }
/* "Shift · feed the birds": a clickable prompt above the walker, and the bird-food count */
.street__prompt, .street__food {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: var(--cream);
  background: linear-gradient(180deg, var(--win-top), var(--win-bot));
  background-clip: padding-box;
  border: calc(2 * var(--px)) solid transparent;
  border-image: url("../assets/pixel/frame-thin.svg") 18 stretch;
  box-shadow: calc(1 * var(--px)) calc(1 * var(--px)) 0 rgba(0, 0, 0, 0.4);
  font-family: var(--font-menu);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.street__prompt { padding: 0.15rem 0.4rem; font-size: 0.78rem; line-height: 1.2; cursor: pointer; }
.street__prompt kbd { font-size: max(12px, 0.85em); padding: 0 0.2em; }
.street__prompt:hover, .street__prompt:focus-visible { color: var(--gold-hi); }
.street__prompt:focus-visible { outline: var(--px) dashed var(--gold-hi); outline-offset: 3px; }
.street__prompt[hidden], .street__food[hidden] { display: none; }
.street__food { top: calc(21 * var(--scene-px, 2px) + 6px); right: calc(5 * var(--scene-px, 2px)); padding: 0.25rem 0.55rem; font-size: 0.85rem; }
.street__food span { color: var(--gold); padding-left: 0.2rem; }
.street__keys > span { color: var(--gold); padding: 0 0.15rem; }
.street__about span[lang] { color: var(--gold); }
.street__label {
  transform: translate(-50%, 0);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.35rem 0.8rem 0.4rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.street__label:hover, .street__label:focus-visible { filter: brightness(1.15); }
.street__place { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--cream); }
.street__page { font-family: var(--font-pixel); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.street__key { font-family: var(--font-menu); font-size: 0.85rem; color: var(--win-dim); }
.street__caption {
  top: 0.75rem;
  left: 0.75rem;
  max-width: min(34rem, 70%);
  margin: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* weather and postcard: small square icon buttons, the words in their labels */
.street__weather, .street__postcard {
  --ui: var(--scene-px, 2px);                      /* one pixel of the street */
  top: calc(5 * var(--ui));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(16 * var(--ui));
  height: calc(16 * var(--ui));
  padding: 0;
  border-width: var(--ui);
  cursor: var(--cursor);
}
.street__weather { right: calc(5 * var(--ui)); }
.street__postcard { right: calc(24 * var(--ui)); }
.street__postcard img { image-rendering: pixelated; width: calc(14 * var(--ui)); height: auto; }
.street__postcard:hover, .street__postcard:focus-visible, .street__weather:hover { color: var(--gold-hi); }
.street__weather img { image-rendering: pixelated; height: auto; }   /* one street pixel per icon pixel */
.street__weather .icon-clear { width: calc(12 * var(--ui)); }
.street__weather .icon-rain { width: calc(14 * var(--ui)); }
.street__weather .icon-snow { width: calc(11 * var(--ui)); }
.street__weather .icon-rain, .street__weather .icon-snow { display: none; }
:root:not([data-theme="day"]) .street__weather .icon-clear { content: url("../assets/pixel/moon.png"); }
.street__weather[data-weather="rain"] .icon-clear, .street__weather[data-weather="snow"] .icon-clear { display: none; }
.street__weather[data-weather="rain"] .icon-rain, .street__weather[data-weather="snow"] .icon-snow { display: block; }
.street__weather:hover { filter: brightness(1.15); }
.street__pad { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0.5rem; display: none; justify-content: space-between; padding: 0 0.5rem; pointer-events: none; }
.street__pad div { display: flex; gap: 0.4rem; }
.street__pad button {
  pointer-events: auto;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.6rem;
  font-family: var(--font-pixel);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cream);
  background: rgba(10, 12, 28, 0.62);
  border: var(--px) solid var(--gold-lo);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.street__pad button:active { background: rgba(233, 197, 106, 0.4); }
@media (pointer: coarse), (max-width: 700px) { .street__pad { display: flex; } }
.street__fade { position: absolute; inset: 0; z-index: 3; background: #05060e; opacity: 0; pointer-events: none; transition: opacity 0.28s steps(4); }
.street__fade.is-on { opacity: 1; }
html:not(.js) .street__hint, html:not(.js) .street__weather, html:not(.js) .street__postcard, html:not(.js) .street__pad { display: none; }
@media (max-width: 560px) {
  .street__keys { font-size: 0.9rem; white-space: normal; }
  .street__about { font-size: 1.08rem; }
  .street__place { font-size: 0.9rem; }
}

@media print {
  .street__hint, .street__caption, .street__weather, .street__pad, .street__prompt, .street__food, .street__label { display: none !important; }
}

/* On phones the door label sits under the weather button, the place name ellipsized. */
.street__label.is-narrow { transform: none; display: grid; justify-items: start; gap: 0.1rem; max-width: calc(100% - 16px); }
.street__label.is-narrow .street__place { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* The conversation window, as in the old role-playing games, set like a page: one window of one shape
   for the whole talk. The speaker's portrait sits in an inset frame on the left, drawn at a whole
   number of screen pixels per pixel; the name is a small-caps plate above the line (gold for the
   townspeople, silver for you, pale for a ghost, paper for a notice); the line is always set
   left-aligned in the book face. An aside about today is a footnote band under the line it comments
   on. A pixel arrow shows there is more; the square end mark shows the talk ends here. */
.street__dialog {
  --dlg-face: 96px;                                    /* 32 portrait pixels, 3 screen pixels each */
  --dlg-col: calc(var(--dlg-face) + 2 * var(--px));    /* the portrait column, frame included */
  --dlg-gap: 1rem;
  --dlg-pad-x: 1.05rem;
  --dlg-pad-y: 0.75rem;
  --dlg-lines: 3;                                      /* room for three lines; four questions fit too */
  --dlg-top: calc(21 * var(--scene-px, 2px) + 8px);   /* below the icon buttons */
  --dlg-glove: 30px;
  position: absolute;
  z-index: 4;
  top: var(--dlg-top);
  left: 0;
  right: 0;
  width: min(42rem, calc(100% - 1.5rem));            /* about 55 characters a line */
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--dlg-col) minmax(0, 1fr) auto;
  grid-template-areas: "face name hint" "face main main" "note note note";
  grid-template-rows: auto 1fr auto;
  align-items: start;
  column-gap: var(--dlg-gap);
  padding: var(--dlg-pad-y) var(--dlg-pad-x);
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%), linear-gradient(180deg, #22307a, #0b1238);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(180deg, color-mix(in srgb, var(--win-top) 76%, #000), color-mix(in srgb, var(--win-bot) 82%, #000));
  background-clip: padding-box;
  border: calc(3 * var(--px)) solid transparent;
  border-image: url("../assets/pixel/frame.svg") 24 stretch;
  box-shadow: calc(2 * var(--px)) calc(3 * var(--px)) 0 rgba(0, 0, 0, 0.45);
  cursor: var(--cursor);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.street__dialog[hidden] { display: none; }
.street__dialog p { margin: 0; }
/* the portrait in its inset: dark bevel, gold rim */
.dlg__face {
  grid-area: face;
  display: grid;
  place-items: center;
  width: var(--dlg-col);
  height: var(--dlg-col);
  background: radial-gradient(circle at 50% 38%, #3a4c9a, #141c4c 72%);
  border: var(--px) solid var(--ink);
  box-shadow: 0 0 0 var(--px) var(--gold-lo), inset var(--px) var(--px) 0 rgba(0, 0, 0, 0.4);
}
.dlg__portrait {
  width: var(--dlg-face);
  height: var(--dlg-face);
  width: round(down, var(--dlg-face), var(--dot, 1px));   /* a whole number of screen pixels per pixel */
  height: round(down, var(--dlg-face), var(--dot, 1px));
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.street__dialog.is-ghost .dlg__face { background: radial-gradient(circle at 50% 38%, #8aa0d8, #1c2850 72%); }
/* the name plate and, across from it, the key to go on */
.dlg__name {
  grid-area: name;
  justify-self: start;
  align-self: center;
  padding: 0.1em 0.65em 0.16em;
  font-weight: 700;
  font-size: 0.84em;
  line-height: 1.2;
  letter-spacing: 0.08em;
  font-variant-caps: all-small-caps;
  color: #1a1208;
  text-shadow: none;
  background: linear-gradient(180deg, #f6dd98, #d9aa4c);
  box-shadow: 0 0 0 1px #5a3c12, 1px 2px 0 1px rgba(0, 0, 0, 0.4);
}
.street__dialog[data-who="you"] .dlg__name { background: linear-gradient(180deg, #eef0f7, #aeb7d6); box-shadow: 0 0 0 1px #3a4262, 1px 2px 0 1px rgba(0, 0, 0, 0.4); }
.street__dialog.is-ghost .dlg__name { color: #18203a; background: linear-gradient(180deg, #f1f6ff, #b4c6ee); box-shadow: 0 0 0 1px #4a5a8a, 1px 2px 0 1px rgba(0, 0, 0, 0.4); }
.street__dialog[data-who="notice"] .dlg__name { color: var(--oxblood); background: linear-gradient(180deg, #f7f0dc, #e4d4ae); box-shadow: 0 0 0 1px #6a5a3c, 1px 2px 0 1px rgba(0, 0, 0, 0.4); }
.dlg__hint {
  grid-area: hint;
  justify-self: end;
  align-self: center;
  padding-left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.8em;
  letter-spacing: 0.06em;
  font-variant-caps: all-small-caps;
  white-space: nowrap;
  color: rgba(220, 225, 244, 0.72);
}
.street__dialog .dlg__name, .street__dialog .dlg__hint { margin-bottom: 0.5rem; }
.dlg__hint kbd { font-size: 0.82em; letter-spacing: 0; font-variant-caps: normal; }
/* the line: always left-aligned, with room kept for four lines so the window does not jump */
.dlg__text, .dlg__said {
  grid-area: main;
  min-height: calc(var(--dlg-lines) * 1.42em);
  line-height: 1.42;
  text-wrap: pretty;
}
.dlg__rest { visibility: hidden; }   /* the part not yet typed: laid out, so no word jumps a line */
/* an aside about today: a footnote band across the foot of the window, under the line it comments on */
.street__dialog.has-note .dlg__said { min-height: 0; color: rgba(243, 234, 214, 0.78); }
.street__dialog.has-note .dlg__text {
  grid-area: note;
  position: relative;
  min-height: 0;
  margin: 0.85rem calc(-1 * var(--dlg-pad-x)) calc(-1 * var(--dlg-pad-y));
  padding: 0.6rem var(--dlg-pad-x) 0.95rem calc(var(--dlg-pad-x) + var(--dlg-col) + var(--dlg-gap));
  font-style: italic;
  font-size: 0.94em;
  line-height: 1.45;
  color: #eee6d2;
  background:
    linear-gradient(90deg, var(--gold-lo) 50%, transparent 0) 0 0 / calc(2 * var(--px)) 1px repeat-x,
    rgba(3, 6, 20, 0.34);
}
.street__dialog.has-note .dlg__text::before {
  content: "Today";
  position: absolute;
  left: var(--dlg-pad-x);
  width: var(--dlg-col);
  top: 0.66rem;
  text-align: right;
  font-style: normal;
  font-weight: 700;
  font-size: 0.86em;
  letter-spacing: 0.08em;
  font-variant-caps: all-small-caps;
  color: var(--gold);
}
/* more to come: a pixel arrow bobbing in the corner; the last line: a still end mark */
.dlg__arrow {
  position: absolute;
  right: calc(var(--dlg-pad-x) - 0.35rem);
  bottom: 0.2rem;
  width: calc(6 * var(--px));
  height: calc(4 * var(--px));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4' shape-rendering='crispEdges'%3E%3Cpath fill='%230d0a12' d='M1 1h5v1h-1v1h-1v1h-1v-1h-1v-1h-1z'/%3E%3Cpath fill='%23f6dd98' d='M0 0h5v1h-1v1h-1v1h-1v-1h-1v-1h-1z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  visibility: hidden;
}
.street__dialog.is-last .dlg__arrow {
  width: calc(4 * var(--px));
  height: calc(4 * var(--px));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4' shape-rendering='crispEdges'%3E%3Cpath fill='%230d0a12' d='M1 1h3v3h-3z'/%3E%3Cpath fill='%23f6dd98' d='M0 0h3v3h-3z'/%3E%3C/svg%3E");
}
.street__dialog.is-done .dlg__arrow { visibility: visible; animation: dlg-bob 0.9s steps(2, jump-none) infinite; }
.street__dialog.is-done.is-last .dlg__arrow, .street__dialog.is-choosing .dlg__arrow { animation: none; }
.street__dialog.is-choosing .dlg__arrow { visibility: hidden; }
@keyframes dlg-bob { from { transform: translateY(0); } to { transform: translateY(var(--px)); } }
/* your questions: a numbered menu with the pointing glove (↑ ↓ or the number, or a click) */
.street__dialog.is-choosing .dlg__text { display: none; }
.dlg__choices {
  grid-area: main;
  min-height: calc(var(--dlg-lines) * 1.5em);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dlg-choice;
  line-height: 1.3;
}
.dlg__choices li {
  counter-increment: dlg-choice;
  position: relative;
  padding: 0.08em 0.6em 0.12em calc(var(--dlg-glove) + 1.75em);   /* 1.5em a row, as a line of text */
  color: rgba(243, 234, 214, 0.72);
  cursor: var(--cursor);
}
.dlg__choices li::before {
  content: counter(dlg-choice);
  position: absolute;
  left: calc(var(--dlg-glove) + 0.4em);
  top: 0.14em;
  font-size: 0.86em;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: #c49b52;
}
.dlg__choices li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--dlg-glove);
  height: calc(var(--dlg-glove) * 2 / 3);
  margin-top: calc(var(--dlg-glove) / -3);
  background: url("../assets/pixel/hand-2x.png") center / 100% 100% no-repeat;
  image-rendering: pixelated;
  visibility: hidden;
}
.dlg__choices li.is-picked {
  color: var(--cream);
  background: linear-gradient(90deg, rgba(233, 197, 106, 0.16), rgba(233, 197, 106, 0.05) 70%, transparent) calc(var(--dlg-glove) + 0.15em) 0 / 100% 100% no-repeat;
}
.dlg__choices li.is-picked::before { color: var(--gold-hi); }
.dlg__choices li.is-picked::after { visibility: visible; animation: nudge 0.8s steps(2) infinite; }
@media (prefers-reduced-motion: reduce) {
  .street__dialog.is-done .dlg__arrow, .dlg__choices li.is-picked::after { animation: none; }
}
/* touch screens: no keys to show */
@media (pointer: coarse) {
  .dlg__hint kbd, .dlg__choices li::before { display: none; }
  .dlg__hint::before { content: "tap \00b7"; }
  .dlg__choices li { padding-left: calc(var(--dlg-glove) + 0.6em); }
}
@media (min-width: 2200px) {
  .street__dialog { --dlg-face: 128px; --dlg-glove: 45px; width: min(48rem, calc(100% - 2rem)); font-size: 1.5rem; }
}
@media (max-width: 560px) {
  .street__dialog { --dlg-face: 64px; --dlg-gap: 0.75rem; --dlg-pad-x: 0.75rem; --dlg-pad-y: 0.6rem; width: calc(100% - 1rem); font-size: 1.06rem; }
  .dlg__name { font-size: 0.8em; }
  /* the footnote's label runs in, so the aside has the full width */
  .street__dialog.has-note .dlg__text { padding-left: var(--dlg-pad-x); }
  .street__dialog.has-note .dlg__text::before { position: static; margin-right: 0.45em; }
}

/* while someone talks, the caption and the controls hint step aside */
.street.is-talking .street__caption, .street.is-talking .street__hint { visibility: hidden; }
.street.has-intro .street__label.is-narrow { visibility: hidden; }   /* on a phone the door label would sit under the bubble */

/* Otto Estner's postcards: a framed viewer over the street */
.street__gallery {
  position: absolute;
  z-index: 6;
  inset: 0.6rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  color: var(--cream);
  background: rgba(10, 12, 24, 0.92);
  border: calc(3 * var(--px)) solid transparent;
  border-image: url("../assets/pixel/frame.svg") 24 stretch;
}
.street__gallery[hidden] { display: none; }
.street__gallery figure { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; min-height: 0; height: 100%; justify-content: center; }
.street__gallery img { max-width: 100%; max-height: calc(100% - 3.6rem); object-fit: contain; background: #f1e7cf; padding: 0.35rem; box-shadow: 0 0 0 var(--px) #3a3024; }
.street__gallery figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1rem; text-align: center; font-size: 1rem; }
.street__gallery-title { font-family: var(--font-display); font-weight: 700; color: #f2d586; }
.street__gallery-today { font-style: italic; }
.street__gallery-credit { font-size: 0.85rem; color: var(--win-dim); }
.street__gallery button { font-family: var(--font-menu); color: var(--cream); background: linear-gradient(180deg, var(--win-top), var(--win-bot)); border: calc(2 * var(--px)) solid var(--gold-lo); padding: 0.35rem 0.6rem; cursor: pointer; }
.street__gallery button:hover, .street__gallery button:focus-visible { color: var(--gold-hi); }
.street__gallery-prev { grid-column: 1; grid-row: 1; }
.street__gallery-next { grid-column: 3; grid-row: 1; }
.street__gallery-close { position: absolute; top: 0.4rem; right: 0.4rem; }
.street__gallery-count { position: absolute; top: 0.55rem; left: 0.8rem; margin: 0; font-family: var(--font-menu); font-size: 0.85rem; color: var(--win-dim); }

/* The conversation window ends above the heads of the people it is about (their heads are at about 152
   street pixels from the top); a long answer scrolls inside it. The name plate stays on one line. */
.street__dialog { max-height: calc(152 * var(--scene-px, 2.7px) - var(--dlg-top) - 8px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dlg__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* on touch screens the prompt is tapped, so it shows no key */
@media (pointer: coarse) { .street__prompt kbd { display: none; } }

/* A landmark's caption may take two lines (today's name is often at its end); the door label is one compact
   line in the road strip, below the walker's feet. */
.street__caption { display: none !important; }
.street__label { padding: 0.12rem 0.7rem 0.16rem; }
.street__label .street__place { font-size: 0.95rem; line-height: 1.2; }
.street__label .street__page { font-size: 0.82rem; line-height: 1.2; }

/* a link in a line of dialogue (written [words](url) in the talk data) */
.dlg__link {
  display: inline-block; margin: 0.15em 0.1em; padding: 0.1em 0.55em 0.15em;
  font-weight: 700; font-style: normal; text-decoration: none; white-space: nowrap;
  color: #1d1a24 !important; background: var(--gold-hi, #f6dc84);
  box-shadow: 0 0 0 2px #1d1a24, 0 0 0 4px var(--gold, #e0b64e);
}
.dlg__link::after { content: " \2197"; }   /* an arrow: it opens a new tab */
.dlg__link:hover, .dlg__link:focus-visible { background: #fff2c0; }
