/* ISLA v8 street flair: an open-world HUD with a Puerto Rican urbano edge.
 * Condensed display type, hard black outlines that read over any sky,
 * sunset pink / Caribbean cyan / piragua yellow accents. Loaded after
 * style.css and only restyles; the markup is unchanged. */
:root {
  --fl-pink: #ff2e88;
  --fl-cyan: #19e0ff;
  --fl-sun: #ffd23f;
  --fl-ink: #0b0a14;
  --fl-display: Anton, "Bebas Neue", Impact, "Arial Narrow", sans-serif-condensed, sans-serif;
  --fl-cond: "Barlow Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
  --fl-outline: 0 2px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 0 18px rgba(0, 0, 0, 0.55);
}

/* Lighter vignette so the city carries the frame. */
.playing #interface {
  background: linear-gradient(180deg, rgba(8, 6, 20, 0.28), transparent 18%, transparent 78%, rgba(8, 6, 20, 0.42));
}

/* Wordmark: sunset gradient letters. */
.wordmark {
  font-family: var(--fl-display);
  font-weight: 400;
  letter-spacing: 6px;
  background: linear-gradient(95deg, var(--fl-sun), var(--fl-pink) 55%, #b44dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px rgba(255, 46, 136, 0.35));
}
.wordmark span {
  font-family: var(--fl-cond);
  font-weight: 600;
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-left-color: rgba(255, 255, 255, 0.4);
}
.playing .wordmark {
  font-size: 26px;
}

.pill,
.icon-btn {
  background: rgba(11, 10, 20, 0.55);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Area name: bottom right, big when you arrive, then it settles. */
.playing .location {
  left: auto;
  right: 34px;
  top: auto;
  bottom: 172px;
  text-align: right;
  max-width: 46vw;
}
.playing .location h1 {
  font-family: var(--fl-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  text-shadow: var(--fl-outline);
  transform-origin: 100% 100%;
  transition:
    font-size 0.5s cubic-bezier(0.2, 0.9, 0.2, 1),
    color 0.5s;
}
.playing .location.fresh h1 {
  font-size: clamp(38px, 4.4vw, 66px);
  color: var(--fl-sun);
  animation: fl-pop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}
.playing .location h1::after {
  content: "";
  display: block;
  height: 4px;
  margin: 6px 0 0 auto;
  width: 64px;
  background: linear-gradient(90deg, var(--fl-cyan), var(--fl-pink));
  box-shadow: 0 1px 0 #000;
}
@keyframes fl-pop {
  0% {
    transform: translateY(14px) skewX(-8deg);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

/* Speed and state: bottom right, italic condensed numbers. */
.playing .flight-hud {
  left: auto;
  right: 34px;
  bottom: 64px;
  width: auto;
  text-align: right;
  filter: none;
}
.flight-hud > span,
#motion-label {
  font-family: var(--fl-cond);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--fl-cyan);
  text-shadow: 0 1px 0 #000, 0 0 10px rgba(0, 0, 0, 0.6);
}
.flight-hud strong,
.playing .flight-hud strong {
  font-family: var(--fl-display);
  font-weight: 400;
  font-style: italic;
  font-size: 58px;
  letter-spacing: 0;
  line-height: 1;
  color: #fff;
  text-shadow: var(--fl-outline);
}
.flight-hud strong small {
  font-family: var(--fl-cond);
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
  color: var(--fl-pink);
  opacity: 1;
  letter-spacing: 1.5px;
}
.flight-hud > div {
  justify-content: flex-end;
  font-family: var(--fl-cond);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  opacity: 0.95;
  text-shadow: 0 1px 0 #000;
}
.playing #flight-btn {
  margin-left: auto;
}

/* Minimap: bottom left in a hard rounded frame, like a phone in the hand. */
.playing .map-wrap {
  right: auto;
  left: 28px;
  bottom: 64px;
  width: 236px;
  border: 3px solid var(--fl-ink);
  border-radius: 12px;
  background: #0b0a14;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 10px 30px rgba(0, 0, 0, 0.5);
}
.playing #minimap {
  height: 165px;
}
.map-wrap > div {
  font-family: var(--fl-cond);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  background: var(--fl-ink);
  color: #fff;
  border-top: 2px solid var(--fl-pink);
}
.north {
  color: var(--fl-sun);
  font-weight: 700;
  text-shadow: 0 1px 0 #000;
}

/* Mission card: dark glass with a pink spine; collapses when no route runs. */
.destination,
.playing .destination {
  background: rgba(11, 10, 20, 0.62);
  border: 0;
  border-left: 4px solid var(--fl-pink);
  border-radius: 4px;
  backdrop-filter: blur(10px);
}
.destination .eyebrow {
  color: var(--fl-sun);
  font-family: var(--fl-cond);
  font-weight: 800;
  letter-spacing: 2px;
}
.destination h2 {
  font-family: var(--fl-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.route-progress i {
  background: linear-gradient(90deg, var(--fl-cyan), var(--fl-pink));
}
.playing:not(.route-on) .destination {
  width: 200px;
  padding: 10px 12px;
  opacity: 0.86;
}
.playing:not(.route-on) .destination p,
.playing:not(.route-on) .destination .route-progress {
  display: none;
}
.playing:not(.route-on) .destination h2 {
  font-size: 13px;
  margin: 4px 0 0;
}
.playing:not(.route-on) .destination button {
  padding-top: 6px;
}

/* Key caps: white keys with black letters. */
kbd {
  background: #fff;
  color: var(--fl-ink);
  border-color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}
.playing footer {
  border-top: 0;
  left: 290px;
  right: 290px;
  bottom: 22px;
  justify-content: center;
}
.playing .controls {
  gap: 14px;
  font-family: var(--fl-cond);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 #000;
  flex-wrap: wrap;
  justify-content: center;
}
.playing .coordinates {
  display: none;
}

/* Prompts: one message at a time. */
#interface:has(#action-prompt:not([hidden])) #traversal-hint {
  opacity: 0;
}
#action-prompt {
  font-family: var(--fl-cond);
  font-weight: 800;
  letter-spacing: 0.5px;
}
#action-prompt .key {
  background: #fff;
  color: var(--fl-ink);
}
#traversal-hint {
  font-family: var(--fl-cond);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.toast {
  font-family: var(--fl-cond);
  font-weight: 800;
  letter-spacing: 1px;
}

/* Loading: sunset poster. */
#loading {
  background:
    radial-gradient(120% 90% at 85% 110%, rgba(255, 46, 136, 0.55), transparent 55%),
    radial-gradient(90% 70% at 10% 0%, rgba(25, 224, 255, 0.22), transparent 60%),
    linear-gradient(160deg, #130a2a, #2a0b3a 45%, #5b1036 75%, #c2410c);
}
#loading h1 {
  font-family: var(--fl-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.95;
  text-shadow: 0 3px 0 #000;
}
#loading .load-line i {
  background: linear-gradient(90deg, var(--fl-cyan), var(--fl-pink), var(--fl-sun));
}

@media (max-width: 900px) {
  .playing .map-wrap {
    width: 170px;
    left: 14px;
  }
  .playing #minimap {
    height: 119px;
  }
  .playing footer {
    display: none;
  }
  .playing .location {
    right: 16px;
    bottom: 150px;
  }
  .playing .flight-hud {
    right: 16px;
  }
}

/* The free-flight button is for touch; keyboards have F. */
@media (hover: hover) and (pointer: fine) {
  .playing #flight-btn {
    display: none;
  }
}

/* Hero creator (creator.js injects its own base styles; these win on
 * specificity): the same sunset-poster look as the loading screen. */
html .icr {
  --bg: #170a2c;
  --accent: #ff2e88;
  --focus: #19e0ff;
  --muted: #d9c6ec;
  /* The La Kapital key art (#menu-art) paints behind: keep the hero side
   * clear and darken only toward the options panel for legibility. */
  background: linear-gradient(90deg, rgba(20, 6, 34, 0.05) 0%, rgba(20, 6, 34, 0.12) 45%, rgba(20, 6, 34, 0.62) 64%, rgba(20, 6, 34, 0.82) 100%);
}
/* Mid-game editor: the city is behind, so a lighter veil. */
html .icr.icr-editing {
  background: linear-gradient(90deg, rgba(20, 6, 34, 0.1), rgba(20, 6, 34, 0.7) 64%, rgba(20, 6, 34, 0.86));
}
html .icr-mark {
  font-family: var(--fl-display);
  font-weight: 400;
  letter-spacing: 6px;
  background: linear-gradient(95deg, var(--fl-sun), var(--fl-pink) 55%, #b44dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #000);
}
html .icr-heroname,
html .icr-title h1 {
  font-family: var(--fl-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
html .icr-heroname {
  color: var(--fl-sun);
  text-shadow: var(--fl-outline);
  font-size: clamp(38px, 5.4vw, 76px);
}
html .icr-eyebrow {
  color: var(--fl-cyan);
  font-family: var(--fl-cond);
  font-weight: 800;
}
html .icr-label {
  font-family: var(--fl-cond);
  font-weight: 800;
  letter-spacing: 2px;
}
html .icr-field input {
  background: rgba(11, 10, 20, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
  font-family: var(--fl-cond);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
}
html .icr-preset {
  background: rgba(11, 10, 20, 0.45);
  font-family: var(--fl-cond);
  font-weight: 800;
  font-size: 14px;
}
html .icr-preset[aria-pressed="true"] {
  background: rgba(255, 46, 136, 0.18);
}
html .icr-seg input:checked + span {
  color: #fff;
}
html .icr-actions {
  background: linear-gradient(rgba(23, 10, 44, 0), rgba(23, 10, 44, 0.92) 12px);
}
html .icr-primary {
  font-family: var(--fl-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #2c1d3f;
  color: var(--fl-sun);
}
html .icr-ready .icr-primary,
html .icr-editing .icr-primary {
  background: linear-gradient(95deg, var(--fl-pink), #ff7a3c);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 35px rgba(255, 46, 136, 0.35);
}
html .icr-meter i {
  background: linear-gradient(90deg, rgba(25, 224, 255, 0.35), rgba(255, 46, 136, 0.45));
}
@media (max-width: 760px) {
  html .icr-top {
    background: linear-gradient(#170a2c 85%, rgba(23, 10, 44, 0));
  }
}

/* Players online: a live pill beside the time-of-day control. */
.online-count {
  font-family: var(--fl-cond);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  gap: 8px;
}
.online-count::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ed957;
  box-shadow: 0 0 8px #7ed957;
}
.online-count[hidden] {
  display: none;
}

/* The vehicle prompt: hidden really hides it (style.css sets display:flex),
 * and it gets the street look: black pill, white key, pink edge. */
#action-prompt[hidden] {
  display: none;
}
#action-prompt {
  background: rgba(11, 10, 20, 0.82);
  border: 1px solid rgba(255, 46, 136, 0.7);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(255, 46, 136, 0.3);
}
#action-prompt .verb {
  font-family: var(--fl-cond);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
#action-prompt .what {
  color: var(--fl-cyan);
  font-family: var(--fl-cond);
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* Race timer: top centre, big italic numbers. */
#race-hud {
  position: absolute;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 22px 12px;
  background: rgba(11, 10, 20, 0.62);
  border-bottom: 3px solid var(--fl-pink);
  border-radius: 6px;
  text-align: center;
  pointer-events: none;
}
#race-hud[hidden],
#coqui-counter[hidden] {
  display: none;
}
#race-hud .race-name {
  font-family: var(--fl-cond);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--fl-cyan);
}
#race-hud .race-time {
  font-family: var(--fl-display);
  font-weight: 400;
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: #fff;
  text-shadow: var(--fl-outline);
}
#race-hud .race-meta {
  font-family: var(--fl-cond);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--fl-sun);
}
#coqui-counter {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fl-display);
  font-size: 34px;
  letter-spacing: 1px;
  color: var(--fl-sun);
  text-shadow: var(--fl-outline);
  animation: fl-pop 0.5s cubic-bezier(0.2, 1.4, 0.3, 1);
  pointer-events: none;
}

/* Coaching chips and the control strip share the bottom edge: show one at a time. */
.playing:has(#move-prompts .chip) footer {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.playing .destination.away {
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.playing .destination.away * {
  pointer-events: none;
}

/* ---------- La Kapital: tropical key art behind the first screen ---------- */
#menu-art {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 19;
  pointer-events: none;
  transform-origin: 34% 64%;
  transition: opacity 0.9s ease;
  animation: lk-drift 38s ease-in-out infinite alternate;
}
#menu-art.off {
  opacity: 0;
  animation: none;
}
@keyframes lk-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.2%, -0.6%, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #menu-art {
    animation: none;
  }
}
#loading {
  background: linear-gradient(90deg, rgba(20, 6, 34, 0.55), transparent 55%);
}
/* Poster title: sunset-filled condensed caps, hard black outline, a shove of shadow. */
.lk-title {
  margin: 0;
  font-family: var(--fl-display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.88;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: rotate(-4deg) skewX(-6deg);
  transform-origin: left bottom;
  background: linear-gradient(180deg, #fff3b0 0%, #ffc24a 38%, #ff7a45 62%, #ff2e88 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px #140820;
  filter: drop-shadow(6px 7px 0 #140820) drop-shadow(0 0 24px rgba(255, 46, 136, 0.35));
}
#loading h1.lk-title {
  text-shadow: none;
}
.lk-tag {
  margin: 18px 0 26px 6px;
  font-family: var(--fl-cond);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff4e0;
  text-shadow: 2px 2px 0 #ff2e88, 0 0 14px rgba(0, 0, 0, 0.6);
}
/* Long driving hints wrap instead of running under the minimap. */
.playing #traversal-hint {
  width: max-content;
  max-width: min(620px, calc(100vw - 2 * 300px));
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .playing #traversal-hint {
    max-width: calc(100vw - 32px);
  }
}

/* Cut to black for doors and respawns. */
#screen-fade {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #07030d;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease;
}
#screen-fade.on {
  opacity: 1;
}

/* Pause: a sunset poster card. */
#pause-dialog {
  background:
    repeating-linear-gradient(180deg, transparent 0 14px, rgba(20, 8, 32, 0.35) 14px 17px) bottom / 100% 42% no-repeat,
    radial-gradient(60% 80% at 50% 100%, #ffc24a 0%, #ff7a45 30%, rgba(255, 46, 136, 0.55) 55%, transparent 75%),
    linear-gradient(180deg, #1c0b3b, #4a1466 55%, #b2276f);
  border: 3px solid #140820;
  box-shadow: 8px 9px 0 #140820, 0 30px 80px rgba(0, 0, 0, 0.55);
  border-radius: 6px;
}
#pause-dialog h2 {
  font-family: var(--fl-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.95;
  color: #fff4e0;
  text-shadow: 3px 3px 0 #ff2e88, 6px 6px 0 #140820;
}
#pause-dialog .eyebrow {
  color: var(--fl-sun);
  font-family: var(--fl-cond);
  font-weight: 800;
  letter-spacing: 3px;
}
#pause-dialog button.primary {
  background: linear-gradient(90deg, #ff2e88, #ff7a45);
  color: #fff;
  border: 2px solid #140820;
  box-shadow: 3px 3px 0 #140820;
  font-family: var(--fl-cond);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
#pause-dialog button.secondary {
  background: rgba(20, 8, 32, 0.6);
  border: 2px solid rgba(255, 244, 224, 0.6);
  color: #fff4e0;
  font-family: var(--fl-cond);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Dialogs follow the La Kapital dusk palette. */
dialog {
  background: linear-gradient(170deg, rgba(28, 11, 59, 0.96), rgba(58, 16, 72, 0.96) 70%, rgba(110, 24, 80, 0.96));
  border: 1px solid rgba(255, 180, 120, 0.28);
}
dialog::backdrop {
  background: rgba(20, 6, 34, 0.5);
}
dialog h2 {
  font-family: var(--fl-display);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Street characters carry a hook; supernatural zip and flight stay hidden. */
.street-hero #touch-zip[hidden],
.street-hero #flight-btn {
  display: none !important;
}

/* Live players on the big map: legend dot (multicolour, like the dots themselves). */
.map-key .mpk-dot{display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:50%;vertical-align:-1px;
  background:conic-gradient(#ff2e88,#ffd23f,#7dff3a,#19e0ff,#b07cff,#ff2e88);box-shadow:0 0 0 2px #fff,0 0 0 3px #0b0a14}
.map-key #map-players-key[hidden]{display:none}
.map-key #map-players-key b{font-weight:800;color:#fff}
#mode-switch-btn[data-arm="1"]{background:var(--fl-pink,#ff2e88);color:#fff}

/* Loading screen: a bar you can actually see, and a nudge to be patient. */
#loading .load-line {
  height: 18px;
  width: min(560px, 80vw);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(20, 8, 32, 0.7);
  border: 3px solid #140820;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28), 0 8px 24px rgba(0, 0, 0, 0.45);
}
#loading .lk-wait {
  margin: 0 0 8px;
  font-family: var(--fl-display);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff8f2;
  text-shadow: 0 3px 0 #140820, 0 0 22px rgba(255, 46, 136, 0.45);
}
#loading #load-status {
  font-size: 15px;
}

/* v29: a quieter frame, with the island and its sunset carrying the colour. */
:root {
  --fl-outline: 0 2px 4px rgba(5, 3, 12, .95), 0 0 18px rgba(5, 3, 12, .35);
  --fl-cond: "Barlow Condensed", "Arial Narrow", "Avenir Next Condensed", system-ui, sans-serif;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #7ee8ed;
  outline-offset: 4px;
}
.playing header {
  top: max(20px, env(safe-area-inset-top));
}
.playing .wordmark {
  letter-spacing: 4px;
  filter: drop-shadow(0 2px 3px #0b0a14);
}
.pill,
.icon-btn {
  height: 42px;
  background: rgba(13, 10, 24, .84);
  border-color: rgba(255, 244, 224, .24);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .15s ease, border-color .15s ease;
}
.icon-btn {
  width: 42px;
}
.pill:hover,
.icon-btn:hover {
  background: rgba(45, 25, 57, .98);
  border-color: rgba(126, 232, 237, .8);
}
.playing .destination {
  border-left-width: 2px;
  border-radius: 10px;
  background: rgba(13, 10, 24, .88);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.playing .destination h2 {
  font-size: 17px;
  line-height: 1.25;
}
.playing:not(.route-on) .destination {
  width: 216px;
  padding: 12px 14px;
  opacity: .95;
}
.playing .location h1 {
  font-size: 23px;
}
.playing .location h1::after {
  height: 2px;
  width: 48px;
}
.playing .location.fresh h1 {
  font-size: clamp(32px, 3.6vw, 52px);
}
.playing .flight-hud strong {
  font-size: 48px;
  font-variant-numeric: tabular-nums;
}
.playing .map-wrap {
  width: 214px;
  border-width: 2px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .26), 0 0 0 1px rgba(255, 244, 224, .18);
}
.playing #minimap {
  height: 150px;
}
.map-wrap > div {
  border-top-width: 1px;
}
.map-wrap button {
  width: 32px;
  height: 28px;
  border-radius: 6px;
}
.map-wrap button:hover {
  background: #ffffff18;
}
.playing .pause-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  bottom: max(16px, env(safe-area-inset-bottom));
  padding: 0;
  border: 1px solid #fff4e035;
  border-radius: 50%;
  background: rgba(13, 10, 24, .84);
  opacity: .9;
}
.playing footer {
  bottom: 24px;
  left: 260px;
  right: 260px;
}
.playing .controls {
  column-gap: 12px;
  row-gap: 8px;
}
#action-prompt {
  max-width: calc(100vw - 32px);
  border-color: #fff4e055;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .3);
  white-space: normal;
}
#action-prompt .verb,
#action-prompt .what {
  line-height: 1.15;
}
#action-prompt .what {
  letter-spacing: .6px;
}
#action-prompt .key {
  flex: none;
  animation: none;
}
#traversal-hint {
  background: rgba(13, 10, 24, .88);
  border-color: #fff4e026;
  backdrop-filter: none;
}
dialog,
#map-dialog {
  background: linear-gradient(145deg, #1b102e, #271437 70%, #391b42);
  border-color: #fff4e035;
  border-radius: 16px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
dialog::backdrop {
  background: rgba(7, 5, 16, .64);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
dialog h2 {
  line-height: 1.08;
}
dialog p,
details,
dialog small {
  color: #dbcfe5;
}
.close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  color: #fff4e0;
}
.close:hover {
  background: #ffffff12;
}
#pause-dialog {
  border: 1px solid #fff4e040;
  border-radius: 16px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .55);
}
#pause-dialog h2 {
  text-shadow: 0 3px 5px rgba(11, 10, 20, .65);
}
#pause-dialog button.primary,
#pause-dialog button.secondary {
  border-radius: 10px;
  min-height: 48px;
}
#pause-dialog button.secondary {
  border: 1px solid #fff4e03d;
}
#pause-dialog button.secondary:hover {
  background: rgba(59, 29, 75, .92);
  border-color: #7ee8ed;
}
@media (max-width: 1050px) {
  .playing footer {
    left: 240px;
    right: 240px;
  }
  .playing .controls span:nth-child(n + 5) {
    display: none;
  }
  .top-actions {
    gap: 6px;
  }
}
@media (max-width: 900px) {
  .playing .map-wrap {
    width: 170px;
    left: 14px;
  }
  .playing #minimap {
    height: 119px;
  }
  .playing .flight-hud strong {
    font-size: 40px;
  }
}
@media (max-width: 760px) {
  .playing header {
    align-items: flex-start;
    gap: 12px;
  }
  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .playing .destination {
    top: 118px;
  }
  .playing .location {
    bottom: 162px;
  }
  .playing .wordmark {
    font-size: 22px;
    letter-spacing: 3px;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
  }
  .pill {
    min-height: 36px;
    height: auto;
  }
}
@media (hover: hover) and (pointer: fine) and (max-width: 900px) {
  .playing.hud-peek footer {
    display: flex;
    left: 20px;
    right: 20px;
    bottom: 70px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(13, 10, 24, .92);
  }
  .playing.hud-peek .controls span {
    display: flex;
  }
}
@media (max-width: 580px) {
  .playing .map-wrap {
    width: 140px;
    bottom: 209px;
  }
  .playing #minimap {
    height: 98px;
  }
  .playing .location {
    bottom: 263px;
    max-width: 48vw;
  }
  .playing .location h1 {
    font-size: 18px;
  }
  .playing .flight-hud {
    bottom: 208px;
  }
  .playing .flight-hud strong {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .playing .location.fresh h1,
  #coqui-counter {
    animation: none;
  }
  .pill,
  .icon-btn {
    transition: none;
  }
}

/* Title and creator own the whole screen; gameplay controls wait for the city. */
html.lki-on #interface,
html.icr-cover #interface {
  visibility: hidden;
}
html.lki-on .snap-btn,
html.icr-cover .snap-btn,
body:has(.icr.icr-in) .snap-btn,
body:not(.playing) .snap-btn {
  display: none !important;
}

.street-hero:not(.riding):not(.hook-active) #rope-state,
.street-hero:not(.riding) #altitude {
  display: none;
}

/* Short desktop viewports reserve space for the contextual action and ammo. */
.playing:not(.route-on):has(.pb-hud.pb-armed) .destination {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .playing .pause-btn {
    left: auto;
    right: max(18px, env(safe-area-inset-right));
    transform: none;
  }
}
@media (max-height: 600px) and (hover: hover) and (pointer: fine) {
  .playing:not(.hud-peek) footer {
    display: none;
  }
  .playing.hud-peek footer {
    display: flex;
  }
}
@media (max-height: 600px) and (min-width: 900px) {
  .playing.route-on:has(.pb-hud.pb-armed) .destination {
    right: 310px;
  }
}
