.game-stage {
  --street-lime: #d4f525;
  --street-cobalt: #0755df;
  --street-line: #286cce;
  --street-ink: #10141d;
  --street-white: #f6f9ff;
  --street-display: "Arial Black", Arial, sans-serif;
}

.street-panel {
  position: relative;
  isolation: isolate;
  color: var(--street-white);
  padding: 13px 28px 16px;
}
.street-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 8px;
  transform: skewX(-9deg);
  background: linear-gradient(158deg,#1c2128f7,#0c1016fa 60%,#151b22fa);
  border: 1px solid var(--street-line);
  border-top-color: #b8cde6;
  border-right: 4px solid var(--street-cobalt);
  box-shadow: 0 9px 28px #0008;
}
.street-heading, .street-tag, .street-action, .street-tab, .street-count {
  font-family: var(--street-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}
.street-heading { margin: 0; font-size: clamp(22px,3vw,40px); line-height: 1; letter-spacing: -.055em; }
.street-tag, .street-action, .street-tab { position: relative; isolation: isolate; display: inline-flex; align-items: center; }
.street-tag::before, .street-action::before, .street-tab::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  transform: skewX(-16deg);
  background: var(--street-lime);
}
.street-tag { color: var(--street-ink); padding: 6px 15px; }
.street-action, .street-tab {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--street-ink);
}
.street-action > span, .street-tab { padding: 8px 13px; }
.street-action:hover::before, .street-tab[aria-pressed="true"]:hover::before { background: #efff83; }
.street-action:focus-visible, .street-tab:focus-visible, button.spot-book__card:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.street-key {
  display: inline-block;
  font: italic 900 13px var(--street-display);
  color: white;
  position: relative;
  isolation: isolate;
  padding: 8px 10px;
}
.street-key::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-16deg);
  background: linear-gradient(#1267f2,#063bb6);
  box-shadow: inset 0 1px #72b0ff;
}

.venue-prompt {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
  pointer-events: none;
  text-align: center;
}
.venue-prompt__hint { display: block; width: 187px; margin: auto; }
.venue-prompt__name {
  display: block;
  padding: 3px 12px;
  background: #111b2dec;
  color: var(--street-white);
  font: italic 900 12px var(--street-display);
  text-transform: uppercase;
  clip-path: polygon(5% 0,100% 0,95% 100%,0 100%);
}
.venue-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 48.8%;
  transform: translate(-50%,-50%);
  width: min(920px,64vw,calc((100vh - 185px)*1.9));
}
.venue-panel:focus { outline: none; }
.venue-heading {
  padding: 0 0 8px 20px;
  margin-bottom: 9px;
  border-left: 17px solid var(--street-lime);
  border-bottom: 1px solid var(--street-line);
  transform: skewX(-9deg);
}
.venue-heading > * { transform: skewX(9deg); }
.venue-product { margin: 5px 0 0; font: italic 700 15px Arial,sans-serif; text-transform: uppercase; }
.venue-scene {
  display: block;
  width: 100%;
  clip-path: polygon(5.8% 0,100% 0,94.2% 100%,0 100%);
}
.venue-panel[data-kind="cafe"] .venue-scene {
  aspect-ratio: 2.78;
  object-fit: cover;
  object-position: center 82%;
}
.venue-controls, .spot-book__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.venue-controls .street-tag, .venue-status { font-size: 13px; }
.venue-status { flex: 1; margin: 0; padding: 4px 4px 6px; border-bottom: 1px solid var(--street-line); font-weight: bold; font-style: italic; text-transform: uppercase; }
.venue-controls .street-action, .spot-book__footer .street-action { flex: none; margin-right: 8px; }

.spot-book-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: #04091313;
}
.venue-panel[hidden], .venue-prompt[hidden], .spot-book-overlay[hidden], .spot-book [hidden] { display: none; }
.spot-book { width: min(1210px,85vw,calc(100% - 104px)); max-height: calc(100vh - 100px); padding-top: 0; display: flex; flex-direction: column; transform: translateY(-2%); }
.spot-book__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(12px,2.5vh,24px);
  border-bottom: 1px solid var(--street-line);
}
.spot-book__title { margin: 0 0 -2px -9px; width: clamp(175px,26vw,398px); flex: none; }
.spot-book__title img { width: 100%; aspect-ratio: 5.55; object-fit: fill; display: block; }
.street-count { font-size: clamp(16px,2.2vw,29px); white-space: nowrap; }
.spot-book__filters { margin-left: auto; display: flex; gap: 8px; }
.spot-book__filters .street-tab { justify-content: center; min-width: clamp(80px,12vw,172px); font-size: clamp(11px,1.35vw,18px); }
.street-tab { color: var(--street-white); }
.street-tab::before { background: #1f2938; border: 1px solid #31548b; }
.street-tab[aria-pressed="true"] { color: var(--street-ink); }
.street-tab[aria-pressed="true"]::before { border-color: var(--street-lime); background: var(--street-lime); }
.street-tab:focus-visible { outline: none; }
.street-tab:focus-visible::before { outline: 2px solid white; outline-offset: 2px; }
.spot-book__content { display: grid; grid-template-columns: 1fr; min-height: 0; }
.spot-book__content:has(.spot-book__preview:not([hidden])) { grid-template-columns: minmax(166px, 41fr) minmax(0, 59fr); gap: 24px; }
.spot-book__body { overflow: auto; padding: 4px 10px 4px 4px; min-height: 66px; max-height: min(36vh,315px); scrollbar-color: #31548b #10141d; }
.spot-book__row + .spot-book__row { margin-top: 13px; }
.spot-book h3 { margin: 0 0 7px; font: italic 900 13px var(--street-display); text-transform: uppercase; }
.spot-book__row.is-done h3 { color: var(--street-lime); }
.spot-book__row.is-done h3::after { content: "  SET COMPLETE"; }
.spot-book__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.spot-book__card {
  aspect-ratio: 1.7;
  width: 100%;
  min-width: 0;
  padding: 4px 10%;
  position: relative;
  isolation: isolate;
  background: none;
  border: 0;
  display: grid;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  place-items: center;
  font: 900 20px Arial,sans-serif;
  color: #a7b5c7;
}
.spot-book__card::before {
  content: "";
  position: absolute;
  inset: 0 5%;
  z-index: -1;
  transform: skewX(-9deg);
  border: 1px solid #54657d;
  background: #161d29;
}
button.spot-book__card { cursor: pointer; }
button.spot-book__card:hover::before, button.spot-book__card[aria-pressed="true"]::before { border-color: var(--street-lime); box-shadow: inset 0 0 0 2px var(--street-lime); }
button.spot-book__card:focus-visible { outline: none; }
button.spot-book__card:focus-visible::before { outline: 2px solid white; }
.spot-book__card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.spot-book__card.is-missing::before { background: repeating-linear-gradient(-45deg,#151a24 0 7px,#222933 7px 9px); }
.spot-book__preview { margin: 0; min-width: 0; align-self: start; }
.spot-book__art {
  position: relative;
  isolation: isolate;
  padding: 6px 6%;
}
.spot-book__art::before {
  content: "";
  position: absolute;
  inset: 0 3%;
  z-index: -1;
  transform: skewX(-9deg);
  border: 1px solid #284668;
  background: #131923;
}
.spot-book__preview img {
  display: block;
  width: 100%;
  height: min(29vh,258px);
  object-fit: contain;
}
.spot-book__preview figcaption { padding-top: 9px; font: italic 900 13px var(--street-display); text-transform: uppercase; }
.spot-book__footer { margin-left: 43%; }
.spot-book__footer::before { content: ""; height: 1px; flex: 1; background: var(--street-line); }

.game-ui :is(.speedster-start,.speedster-pause) {
  gap: 16px 24px;
  padding: 26px 60px 26px 36px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.speedster-start {
  --game-ui-start-width: min(780px,calc(100% - 88px));
  --game-ui-start-columns: repeat(auto-fit,minmax(min(100%,250px),1fr));
  align-items: center;
}
.speedster-start .game-ui__lead { min-width: 0; padding: 10px 0; }
.speedster-start .game-ui__primary { justify-self: start; min-width: 145px; border-radius: 2px; }
.speedster-start .speedster-rules { padding-left: 28px; border-left: 1px solid var(--game-ui-border); }
.game-ui .speedster-pause {
  width: min(780px,calc(100% - 88px));
  grid-template-columns: minmax(176px,1fr) minmax(0,2fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "title guide" "actions guide";
  align-items: start;
}
.speedster-pause > h2 { grid-area: title; justify-self: start; }
.speedster-pause .game-ui__guide {
  grid-area: guide;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-right: 4px;
}
.game-ui .speedster-pause:has(details:not([open])) {
  width: min(510px,calc(100% - 88px));
  grid-template-columns: minmax(176px,1.2fr) minmax(118px,1fr);
}
.speedster-pause summary { cursor: pointer; font: italic 900 20px var(--street-display); text-transform: uppercase; white-space: nowrap; }
.speedster-pause__actions { grid-area: actions; display: grid; gap: 10px; }
.game-ui .speedster-pause__actions button {
  justify-content: flex-start;
  width: 100%;
  min-height: 43px;
  border-radius: 2px;
  font: italic 900 13px var(--street-display);
  text-transform: uppercase;
}
.game-ui .speedster-pause__actions .game-ui__primary { background: var(--street-lime); border-color: var(--street-lime); }
.game-ui .speedster-pause__actions .street-action { background: #172336; border-color: var(--street-line); }
.speedster-pause__actions .street-action::before { content: none; }
.game-ui .speedster-pause .game-ui__key, .game-ui .speedster-pause .key-hint { background: var(--street-cobalt); }

.game-ui__play-controls, .game-ui__shortcuts { gap: 5px; }
.street-hud-hint {
  --street-hint-height: clamp(18px,2.04vw,29px);
  display: block;
  width: calc(var(--street-hint-ratio) * var(--street-hint-height));
  height: var(--street-hint-height);
}
