:root {
  font-family: "DM Sans", sans-serif;
  color: #fff9ed;
  background: #112c34;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #ffca8c;
  outline-offset: 5px;
}
#world {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
}
#interface {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9, 31, 41, 0.35),
    transparent 30%,
    transparent 66%,
    rgba(9, 31, 41, 0.54)
  );
}
button,
a,
dialog,
.map-wrap {
  pointer-events: auto;
}
header {
  position: absolute;
  left: 38px;
  right: 38px;
  top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 8px;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 20px;
}
.wordmark span {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 2.5px;
  font-weight: 500;
  border-left: 1px solid #ffffff55;
  padding-left: 20px;
  max-width: 145px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill,
.icon-btn {
  border: 1px solid #ffffff50;
  background: #132f3633;
  backdrop-filter: blur(14px);
  height: 40px;
}
.pill {
  border-radius: 24px;
  padding: 0 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.icon-btn {
  border-radius: 50%;
  width: 40px;
  font-size: 18px;
}
.location {
  position: absolute;
  left: 40px;
  top: 133px;
  max-width: 700px;
  text-shadow: 0 2px 20px #17313b44;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: #f5c98b;
}
.location h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(28px, 3.25vw, 51px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 13px 0 11px;
}
.location p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
  letter-spacing: 0.1px;
}
.destination {
  position: absolute;
  right: 38px;
  top: 134px;
  width: 253px;
  padding: 20px 0 0 20px;
  border-left: 1px solid #ffffff55;
}
.destination h2 {
  font-size: 19px;
  font-weight: 500;
  margin: 10px 0;
}
.destination p {
  font-size: 12px;
  color: #e2e9e7;
  line-height: 1.5;
  margin: 0;
}
.destination .eyebrow {
  font-size: 10px;
}
.destination button {
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 13px;
  width: 100%;
  text-align: left;
}
.destination button span {
  float: right;
}
.route-progress {
  height: 2px;
  background: #ffffff38;
  margin-top: 15px;
}
.route-progress i {
  height: 100%;
  display: block;
  background: #ffcd89;
  width: 0;
  transition: width 0.3s;
}
.reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.2s;
}
.reticle i {
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
}
.reticle.valid {
  border-color: #ffd293;
  box-shadow: 0 0 15px #f6bf6844;
}
.reticle span {
  position: absolute;
  top: 27px;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 2px;
}
.flight-hud {
  position: absolute;
  bottom: 117px;
  left: 40px;
  width: 180px;
}
.flight-hud > span {
  font-size: 10px;
  letter-spacing: 3px;
  color: #f4c896;
}
.flight-hud strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  font-size: 52px;
  letter-spacing: -3px;
  line-height: 1.2;
}
.flight-hud strong small {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-left: 8px;
  opacity: 0.7;
}
.flight-hud > div {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.8;
}
.map-wrap {
  position: absolute;
  right: 38px;
  bottom: 97px;
  width: 224px;
  background: #0d3039b5;
  backdrop-filter: blur(18px);
  border: 1px solid #ffffff38;
  border-radius: 2px;
  overflow: hidden;
}
#minimap {
  width: 100%;
  height: 142px;
  display: block;
}
.map-wrap > div {
  padding: 10px 12px;
  border-top: 1px solid #ffffff20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.7px;
}
.map-wrap button {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 14px;
}
.north {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 10px;
  color: #f3cd94;
}
footer {
  position: absolute;
  bottom: 29px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffffff40;
  padding-top: 19px;
}
.controls {
  display: flex;
  gap: 21px;
  font-size: 11px;
  color: #e1e8e6;
}
.controls span {
  display: flex;
  align-items: center;
  gap: 7px;
}
kbd {
  font:
    10px "DM Sans",
    sans-serif;
  letter-spacing: 1px;
  border: 1px solid #ffffff66;
  border-radius: 3px;
  padding: 4px 6px;
  color: #fff9ed;
  white-space: nowrap;
}
.coordinates {
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.7;
}
.start-hint {
  position: absolute;
  left: 50%;
  bottom: 132px;
  transform: translateX(-50%);
  text-align: center;
}
.start-hint button,
.primary {
  border: 0;
  background: #f3c28b;
  color: #142f36;
  padding: 17px 30px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 2px;
  box-shadow: 0 10px 35px #061e2633;
}
.start-hint button span {
  padding-left: 42px;
}
.start-hint p {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.75;
}
.pause-btn {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  opacity: 0.65;
  font-size: 18px;
}
.toast {
  position: absolute;
  left: 50%;
  top: 95px;
  transform: translate(-50%, -10px);
  background: #0e303cdd;
  backdrop-filter: blur(10px);
  border: 1px solid #ffffff35;
  padding: 14px 24px;
  font-size: 14px;
  opacity: 0;
  transition: 0.3s;
  text-align: center;
  max-width: 80vw;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: #122f37ed;
  backdrop-filter: blur(35px);
  color: #fdf8ed;
  border: 1px solid #ffffff30;
  max-width: 660px;
  width: calc(100vw - 40px);
  padding: 45px;
  border-radius: 5px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 100px #0006;
}
dialog::backdrop {
  background: #031b2677;
  backdrop-filter: blur(8px);
}
dialog h2 {
  font:
    500 38px/1.1 Manrope,
    sans-serif;
  letter-spacing: -1.5px;
  margin: 18px 0;
}
dialog p {
  color: #d0dddd;
  font-size: 15px;
  line-height: 1.65;
}
dialog a {
  color: #ffd39e;
}
.close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 30px;
  font-weight: 400;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0;
}
.help-grid span {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-grid kbd {
  min-width: 55px;
  text-align: center;
}
.note {
  font-size: 13px !important;
}
.primary {
  margin-top: 20px;
}
.secondary {
  display: block;
  background: none;
  border: 0;
  padding: 16px 0;
  font-size: 14px;
}
details {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.7;
  color: #d0dddd;
}
details p {
  font-size: 13px;
}
#landmarks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 25px 0;
}
#landmarks button {
  border: 1px solid #ffffff25;
  background: #ffffff06;
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#landmarks button:hover {
  background: #ffffff14;
  border-color: #eac794;
}
#landmarks button span {
  color: #f0c994;
  font-size: 10px;
  letter-spacing: 1px;
}
#landmarks button strong {
  font-size: 14px;
  font-weight: 500;
}
dialog small {
  font-size: 11px;
  color: #aebcbd;
}
#loading {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 70% 60%, #26656d, #102d38 70%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 20;
  transition: opacity 0.7s;
}
#loading > div {
  margin-left: 6vw;
}
#loading h1 {
  font:
    500 clamp(40px, 7vw, 96px)/1.05 Manrope,
    sans-serif;
  letter-spacing: -0.045em;
  margin: 0 0 32px;
}
#loading p {
  font-size: 13px;
  color: #d0e3e3;
  letter-spacing: 1px;
}
.load-line {
  height: 1px;
  width: 250px;
  background: #ffffff25;
  margin-top: 20px;
}
.load-line i {
  display: block;
  height: 100%;
  width: 40%;
  background: #f3c18d;
  animation: loading 1.8s ease-in-out infinite;
}
#loading > small {
  font-size: 11px;
  letter-spacing: 3px;
}
#touch-controls {
  display: none;
}
@keyframes loading {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(150%);
  }
}
@media (max-width: 900px) {
  header {
    left: 22px;
    right: 22px;
    top: 22px;
  }
  .wordmark {
    font-size: 32px;
  }
  .wordmark span {
    font-size: 9px;
    padding-left: 13px;
    max-width: 115px;
  }
  .location {
    left: 23px;
    top: 112px;
  }
  .location h1 {
    font-size: 34px;
  }
  .destination {
    right: 23px;
    top: 218px;
    width: 190px;
    padding: 12px 0 0 12px;
  }
  .destination h2 {
    font-size: 16px;
  }
  .destination p {
    font-size: 11px;
  }
  .map-wrap {
    right: 22px;
    width: 175px;
    bottom: 95px;
  }
  #minimap {
    height: 110px;
  }
  .flight-hud {
    left: 23px;
    bottom: 100px;
  }
  footer {
    left: 23px;
    right: 23px;
  }
  .controls {
    gap: 12px;
  }
  .controls span:nth-child(n + 4),
  .coordinates {
    display: none;
  }
  .start-hint {
    bottom: 280px;
  }
  .location p {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
  }
}
@media (pointer: coarse), (max-width: 580px) {
  #touch-controls {
    display: block;
    pointer-events: none;
  }
  #joystick {
    position: absolute;
    left: 30px;
    bottom: 35px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #ffffff15;
    border: 1px solid #ffffff40;
    pointer-events: auto;
    touch-action: none;
  }
  #joystick i {
    position: absolute;
    left: 33px;
    top: 33px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff40;
    border: 1px solid #ffffff80;
  }
  #touch-controls button {
    position: absolute;
    pointer-events: auto;
    touch-action: none;
    border: 1px solid #ffffff60;
    background: #163c4488;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    bottom: 40px;
    right: 28px;
    font-size: 11px;
    letter-spacing: 1px;
  }
  #touch-controls #touch-jump {
    right: 117px;
    width: 52px;
    height: 52px;
    bottom: 49px;
    font-size: 9px;
  }
  footer {
    display: none;
  }
  .map-wrap {
    bottom: 145px;
    width: 160px;
  }
  .flight-hud {
    bottom: 165px;
  }
  .pause-btn {
    bottom: 30px;
  }
  .start-hint {
    bottom: 310px;
  }
}
@media (max-width: 580px) {
  .wordmark span {
    display: none;
  }
  .location {
    top: 98px;
  }
  .location h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .location p {
    max-width: 260px;
    line-height: 1.5;
  }
  .top-actions {
    gap: 7px;
  }
  .pill {
    font-size: 12px;
    padding: 0 10px;
  }
  .destination {
    top: 190px;
    width: 170px;
  }
  .destination p {
    display: none;
  }
  .destination button {
    font-size: 12px;
  }
  .flight-hud strong {
    font-size: 42px;
  }
  .flight-hud {
    width: 160px;
  }
  .start-hint {
    width: 220px;
  }
  .start-hint button {
    width: 100%;
    font-size: 14px;
    padding: 15px 20px;
  }
  .start-hint button span {
    padding-left: 15px;
  }
  .start-hint p {
    font-size: 9px;
  }
  dialog {
    padding: 28px;
  }
  dialog h2 {
    font-size: 30px;
  }
  .help-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #landmarks {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  #landmarks button {
    padding: 12px;
  }
  #loading h1 {
    letter-spacing: -2px;
  }
  #loading {
    padding: 25px;
  }
  .location .eyebrow {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .load-line i {
    animation: none;
  }
}
.location,
.destination,
.flight-hud {
  text-shadow:
    0 1px 4px #0a202acc,
    0 3px 22px #09253466;
}
.location h1 {
  letter-spacing: -0.035em;
}
.destination {
  padding: 18px;
  background: linear-gradient(110deg, #153a4255, #153a4210);
  backdrop-filter: blur(8px);
  border: 1px solid #fff3;
  border-radius: 3px;
}
.flight-hud {
  filter: drop-shadow(0 1px 6px #0a263999);
}
@media (max-width: 900px) {
  .destination {
    padding: 14px;
    top: 218px;
  }
  .location {
    max-width: calc(100vw - 48px);
  }
}
@media (max-width: 580px) {
  .destination {
    top: 191px;
    width: 166px;
    padding: 12px;
  }
}

/* The city fills the screen; traversal keeps only the essentials. */
#anchor-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 1px solid #f8d796;
  box-shadow: 0 0 16px #eec47577;
  rotate: 45deg;
  border-radius: 4px;
}
#anchor-marker i {
  position: absolute;
  inset: 8px;
  background: #fff3d5;
  border-radius: 50%;
}
#anchor-marker span {
  position: absolute;
  top: 32px;
  left: 50%;
  rotate: -45deg;
  font-size: 8px;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px #000;
}
#anchor-marker.attached {
  border-color: #fff;
}
.location {
  top: 142px;
  max-width: 560px;
}
.location h1 {
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 500;
}
.location p {
  font-size: 14px;
}
.playing .location {
  top: 92px;
  transition: opacity 0.4s;
}
.playing .location .eyebrow,
.playing .location p {
  display: none;
}
.playing .location h1 {
  font-size: 20px;
  letter-spacing: 0;
  margin: 0;
  color: #fff7e6;
}
.playing .destination {
  top: 92px;
  width: 228px;
  padding: 14px;
}
.playing .destination h2 {
  font-size: 15px;
}
.playing .destination .eyebrow {
  font-size: 8px;
}
.playing .destination p {
  font-size: 11px;
}
.playing .destination button {
  font-size: 11px;
  padding-bottom: 0;
}
.playing .flight-hud {
  bottom: 105px;
}
.playing .flight-hud strong {
  font-size: 40px;
}
.playing .map-wrap {
  width: 188px;
}
.playing #minimap {
  height: 114px;
}
.playing .wordmark {
  font-size: 29px;
}
.playing .wordmark span {
  font-size: 8px;
}
.playing header {
  top: 24px;
}
.playing .reticle {
  width: 5px;
  height: 5px;
  border: 0;
  opacity: 0.8;
}
.playing .reticle span {
  top: 20px;
  letter-spacing: 1px;
  font-size: 8px;
}
.playing .controls {
  font-size: 10px;
  gap: 15px;
}
.playing footer {
  opacity: 0.8;
}
.cinema #interface {
  opacity: 0;
}
.cinema #world {
  cursor: none;
}
.start-hint button {
  background: #f5ca8b;
  box-shadow: 0 12px 45px #071b2999;
  border-radius: 30px;
  padding: 19px 34px;
}
.start-hint {
  bottom: 140px;
}
.start-hint p {
  font-size: 11px;
  text-shadow: 0 2px 8px #061e26;
}
.destination {
  background: #0d2d3b55;
  border-radius: 8px;
}
.map-wrap {
  border-radius: 8px;
}
#interface {
  background: linear-gradient(180deg, #08202f77, transparent 25%, transparent 65%, #071d2c66);
}
@media (max-width: 900px) {
  .location {
    top: 122px;
  }
  .location h1 {
    font-size: 38px;
  }
  .playing .location {
    top: 83px;
  }
  .playing .destination {
    top: 126px;
    width: 185px;
  }
  .playing .destination p {
    display: none;
  }
  .playing .controls span:nth-child(n + 4) {
    display: none;
  }
}
@media (max-width: 580px) {
  .location h1 {
    font-size: 35px;
  }
  .location {
    top: 104px;
    max-width: 310px;
  }
  .playing .location h1 {
    font-size: 16px;
  }
  .playing .destination {
    top: 124px;
    width: 160px;
    padding: 10px;
  }
  .playing .destination h2 {
    font-size: 13px;
  }
  .playing .map-wrap {
    width: 144px;
    bottom: 164px;
  }
  .playing #minimap {
    height: 92px;
  }
  .playing .flight-hud {
    bottom: 173px;
  }
  .playing .flight-hud strong {
    font-size: 32px;
  }
  .start-hint {
    bottom: 310px;
  }
  .playing .flight-hud > div {
    display: block;
    font-size: 9px;
  }
  .playing .flight-hud > div span {
    display: block;
    margin-top: 5px;
  }
  .playing header {
    top: 20px;
  }
}

.performance-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #fff3;
  border-bottom: 1px solid #fff3;
  margin: 18px 0;
}
.performance-options button {
  padding: 15px 0;
}
.performance-options small {
  font-size: 10px;
}

/* Clear, restrained field instruments keep the world in focus. */
#interface {
  background: linear-gradient(180deg, #071f324d, transparent 22%, transparent 77%, #071e304d);
}
.location h1 {
  font-weight: 600;
  text-shadow: 0 2px 16px #061d3e66;
}
.location p {
  font-size: 16px;
}
.playing .destination {
  width: 235px;
  background: #112c389c;
  backdrop-filter: blur(12px);
  border: 1px solid #fff2;
  border-radius: 4px;
}
.destination .eyebrow,
.playing .destination .eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
}
.playing .destination p {
  font-size: 12px;
}
.playing .destination button {
  font-size: 13px;
  padding-top: 12px;
}
.playing .destination h2 {
  font-size: 16px;
}
.playing .flight-hud {
  bottom: 108px;
}
.playing .flight-hud strong {
  font-size: 43px;
  letter-spacing: -2px;
}
.flight-hud > span {
  font-size: 11px;
}
.flight-hud > div {
  font-size: 11px;
  letter-spacing: 0.4px;
  opacity: 0.95;
}
#flight-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff50;
  background: #0c2b3b80;
  border-radius: 24px;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 15px;
  backdrop-filter: blur(10px);
}
#flight-btn.selected {
  background: #dfb77d;
  color: #142b35;
}
#flight-btn kbd {
  font-size: 10px;
  padding: 2px 4px;
}
#traversal-hint {
  position: absolute;
  bottom: 108px;
  left: 50%;
  transform: translate(-50%, 10px);
  padding: 11px 20px;
  border-radius: 24px;
  background: #0e293dde;
  border: 1px solid #dbe9e63d;
  font-size: 13px;
  letter-spacing: 0.1px;
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
  white-space: nowrap;
  box-shadow: 0 8px 20px #06182333;
}
#traversal-hint.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#route-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #ffda9d;
  filter: drop-shadow(0 1px 4px #061c2f);
  text-align: center;
}
#route-marker i {
  font: normal 35px/1 system-ui;
  display: block;
}
#route-marker span {
  font-size: 12px;
  letter-spacing: 0.5px;
  background: #0b2c3877;
  padding: 3px 6px;
  border-radius: 4px;
}
#route-marker.offscreen i {
  font-size: 29px;
}
#anchor-marker {
  width: 22px;
  height: 22px;
  border-width: 2px;
  box-shadow: 0 0 22px #ffe1a055;
}
#anchor-marker span {
  font-size: 10px;
  font-weight: 600;
}
.playing .controls {
  font-size: 12px;
  gap: 16px;
}
.playing kbd {
  font-size: 11px;
}
.map-wrap > div {
  font-size: 10px;
  letter-spacing: 1px;
}
.playing .wordmark span {
  font-size: 10px;
}
.playing .location h1 {
  font-size: 21px;
}
.wordmark span {
  font-size: 12px;
}
.eyebrow {
  font-size: 12px;
}
dialog .eyebrow {
  font-size: 12px;
}
.help-grid span {
  font-size: 14px;
}
.help-grid kbd {
  font-size: 12px;
}
dialog p {
  font-size: 16px;
}
.sensitivity-option {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  margin: 20px 0;
}
.sensitivity-option input {
  flex: 1;
  accent-color: #edc08a;
  min-width: 90px;
}
.session-stats {
  font-size: 13px !important;
  color: #eac997 !important;
}
.performance-options small {
  font-size: 12px;
}
@media (max-width: 1050px) {
  .playing .controls {
    gap: 10px;
    font-size: 11px;
  }
  .playing .controls span:nth-child(n + 6) {
    display: none;
  }
  #traversal-hint {
    bottom: 80px;
    font-size: 12px;
  }
}
@media (max-width: 580px) {
  header,
  .playing header {
    left: 18px;
    right: 18px;
  }
  .wordmark,
  .playing .wordmark {
    font-size: 25px;
    letter-spacing: 5px;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .icon-btn {
    width: 33px;
    height: 33px;
    font-size: 15px;
  }
  .top-actions .pill {
    height: 33px;
    font-size: 11px;
    padding: 0 8px;
  }
  .playing .location {
    left: 20px;
    top: 79px;
  }
  .playing .location h1 {
    font-size: 17px;
  }
  .playing .destination {
    right: 18px;
    top: 123px;
    width: 170px;
  }
  .playing .destination h2 {
    font-size: 13px;
  }
  .playing .destination .eyebrow {
    font-size: 10px;
  }
  .playing .destination button {
    font-size: 12px;
  }
  .playing .flight-hud {
    left: 20px;
    bottom: 185px;
  }
  .playing .flight-hud > div {
    font-size: 10px;
  }
  #flight-btn {
    font-size: 11px;
    padding: 7px 10px;
    gap: 6px;
  }
  #flight-btn kbd {
    display: none;
  }
  #traversal-hint {
    bottom: 140px;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
    width: max-content;
    font-size: 12px;
    padding: 9px 15px;
  }
  .sensitivity-option {
    gap: 12px;
  }
  .performance-options {
    gap: 12px;
  }
  .performance-options small {
    font-size: 11px;
  }
  .playing .map-wrap {
    right: 18px;
  }
}
@media (pointer: coarse), (max-width: 580px) {
  #touch-controls #touch-zip {
    right: 34px;
    bottom: 127px;
    width: 58px;
    height: 58px;
    font-size: 11px;
  }
  .playing .map-wrap {
    bottom: 211px;
  }
  .playing .flight-hud {
    bottom: 198px;
  }
  .playing .destination {
    top: 126px;
  }
  #traversal-hint {
    bottom: 154px;
    max-width: 58vw;
  }
  .playing .flight-hud strong {
    font-size: 30px;
  }
}

#exit-photo {
  display: none;
  position: fixed;
  right: 25px;
  bottom: 24px;
  border: 1px solid #fff6;
  border-radius: 24px;
  background: #0c293680;
  backdrop-filter: blur(12px);
  padding: 10px 15px;
  font-size: 13px;
}
.cinema #exit-photo {
  display: block;
}
.cinema #interface {
  pointer-events: none;
}
.cinema #interface button,
.cinema #interface a {
  pointer-events: none;
}

/* V4: a quieter camera overlay and a readable geographic navigation surface. */
#compass {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  width: 250px;
  height: 32px;
  opacity: 0.8;
  filter: drop-shadow(0 1px 3px #082331);
  pointer-events: none;
}
#interface {
  background: linear-gradient(180deg, #061c2f55, transparent 19%, transparent 74%, #061c2f55);
}
header {
  top: 28px;
  left: 34px;
  right: 34px;
}
.wordmark {
  font-size: 34px;
  letter-spacing: 6px;
}
.wordmark span {
  font-size: 11px;
  letter-spacing: 2px;
  max-width: 145px;
}
.top-actions .pill,
.top-actions .icon-btn {
  background: #0c29394d;
  border-color: #fff3;
  box-shadow: 0 2px 12px #061c2211;
}
.location {
  left: 42px;
  top: 21vh;
  max-width: 580px;
}
.location h1 {
  font-size: clamp(42px, 5.8vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 20px 0;
}
.location p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 360px;
}
.location .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
}
.destination {
  right: 34px;
  top: 24vh;
  width: 247px;
  padding: 21px;
  border-radius: 9px;
  background: #0c2e3b80;
  border: 1px solid #fff3;
  backdrop-filter: blur(15px);
}
.destination h2 {
  font-size: 19px;
}
.destination button {
  font-size: 14px;
}
.destination p {
  font-size: 13px;
}
.start-hint {
  bottom: 112px;
}
.start-hint button {
  font-size: 16px;
  padding: 19px 32px;
  min-width: 235px;
  box-shadow: 0 8px 30px #06182766;
  background: #f3cc94;
}
.start-hint p {
  font-size: 12px;
  max-width: 430px;
  line-height: 1.7;
  color: #eef3eb;
}
.playing header {
  top: 22px;
}
.playing .wordmark {
  font-size: 25px;
}
.playing .wordmark span {
  font-size: 10px;
  letter-spacing: 1.5px;
}
.playing .location {
  top: 68px;
  left: 35px;
  max-width: 440px;
}
.playing .location h1 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #e2ebe7;
  text-shadow: 0 1px 8px #031c32;
}
.playing .destination {
  top: 86px;
  right: 34px;
  width: 230px;
  padding: 16px;
  border-radius: 7px;
  background: #0d2b397d;
  box-shadow: 0 8px 32px #05182613;
}
.playing .destination .eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
}
.playing .destination h2 {
  font-size: 15px;
  line-height: 1.4;
}
.playing .destination p {
  font-size: 12px;
}
.playing .destination button {
  font-size: 13px;
}
.playing .flight-hud {
  left: 34px;
  bottom: 104px;
}
.playing .flight-hud strong {
  font-weight: 400;
  font-size: 43px;
}
.playing .map-wrap {
  right: 34px;
  bottom: 96px;
  width: 185px;
  background: #0c2a379c;
  border-color: #fff3;
}
.playing .controls {
  font-size: 11px;
  gap: 17px;
}
.playing footer {
  left: 34px;
  right: 34px;
  border-color: #fff2;
}
.playing .pause-btn {
  bottom: 70px;
}
.playing #flight-btn {
  font-size: 12px;
  padding: 7px 11px;
}
#map-dialog {
  max-width: 1050px;
  padding: 29px 34px;
  width: calc(100vw - 56px);
  background: #102e39f5;
}
#map-dialog h2 {
  font-size: 31px;
  margin: 12px 0;
}
#map-dialog > p {
  margin: 8px 0 20px;
  font-size: 14px;
}
#island-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #c9e7df2e;
  cursor: pointer;
  box-shadow: inset 0 0 50px #03121f;
}
.map-key {
  display: flex;
  gap: 23px;
  margin: 12px 2px;
  color: #b7cec6;
  font-size: 12px;
}
.map-key span:last-child {
  margin-left: auto;
  color: #e6c38f;
}
#landmarks {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 21px 0 12px;
}
#landmarks button {
  padding: 12px;
  border-radius: 5px;
  background: #ffffff05;
}
#landmarks button span {
  font-size: 9px;
  line-height: 1.5;
}
#landmarks button strong {
  font-size: 13px;
  line-height: 1.35;
}
#traversal-hint {
  font-size: 12px;
  bottom: 97px;
  padding: 9px 15px;
  box-shadow: none;
  background: #112e3bb8;
  border-color: #e9f3e822;
}
.toast {
  border-radius: 5px;
  font-size: 13px;
  top: 82px;
}
@media (max-width: 1050px) {
  #compass {
    width: 190px;
    top: 28px;
    opacity: 0.65;
  }
  .playing .wordmark span {
    display: none;
  }
  .location {
    left: 26px;
    top: 20vh;
  }
  .destination {
    right: 25px;
    top: 25vh;
  }
  .location h1 {
    font-size: 55px;
  }
  .location p {
    max-width: 275px;
    font-size: 15px;
  }
  #landmarks {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 700px) {
  #compass {
    display: none;
  }
  .playing .destination {
    width: 186px;
    right: 21px;
    top: 113px;
  }
  .playing .location {
    top: 72px;
    left: 22px;
  }
  .playing .map-wrap {
    right: 22px;
  }
  .playing .flight-hud {
    left: 22px;
  }
  #map-dialog {
    padding: 24px 18px;
    width: calc(100vw - 24px);
  }
  #landmarks {
    grid-template-columns: 1fr 1fr;
  }
  .map-key {
    font-size: 10px;
    gap: 12px;
  }
  .map-key span:last-child {
    display: none;
  }
  #map-dialog h2 {
    font-size: 27px;
  }
}
@media (max-width: 580px) {
  header,
  .playing header {
    left: 18px;
    right: 18px;
  }
  .wordmark,
  .playing .wordmark {
    font-size: 25px;
    letter-spacing: 5px;
  }
  .location {
    top: 120px;
    left: 22px;
    max-width: 325px;
  }
  .location h1 {
    font-size: 48px;
  }
  .location p {
    font-size: 15px;
    max-width: 260px;
  }
  .location .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .destination {
    top: 335px;
    right: 20px;
    width: 176px;
    padding: 14px;
  }
  .destination h2 {
    font-size: 15px;
  }
  .destination p {
    display: none;
  }
  .start-hint {
    bottom: 160px;
    min-width: 260px;
  }
  .start-hint p {
    font-size: 11px;
  }
  .playing .destination {
    top: 113px;
    width: 175px;
    padding: 12px;
  }
  .playing .destination h2 {
    font-size: 13px;
  }
  .playing .location h1 {
    font-size: 15px;
  }
  .playing .flight-hud {
    bottom: 208px;
  }
  .playing .map-wrap {
    bottom: 209px;
    width: 140px;
  }
  .playing .pause-btn {
    bottom: 25px;
  }
  .playing #flight-btn {
    font-size: 11px;
  }
  #traversal-hint {
    bottom: 157px;
    max-width: 70vw;
    font-size: 11px;
  }
  .playing .flight-hud strong {
    font-size: 32px;
  }
  #map-dialog {
    max-height: 94vh;
  }
  .map-key {
    display: none;
  }
  #island-map {
    min-height: 220px;
    object-fit: contain;
  }
  .toast {
    top: 76px;
    padding: 11px 15px;
    font-size: 12px;
  }
}
@media (max-height: 600px) and (min-width: 581px) {
  .location {
    top: 105px;
  }
  .location h1 {
    font-size: 46px;
  }
  .destination {
    top: 105px;
  }
  .start-hint {
    bottom: 83px;
  }
  .playing .map-wrap {
    bottom: 72px;
  }
  .playing .flight-hud {
    bottom: 78px;
  }
  .playing .destination {
    top: 83px;
  }
  #traversal-hint {
    bottom: 75px;
  }
}
body:not(.playing) .destination,
body:not(.playing) .flight-hud,
body:not(.playing) .map-wrap,
body:not(.playing) footer,
body:not(.playing) .pause-btn,
body:not(.playing) .reticle,
body:not(.playing) #compass,
body:not(.playing) #touch-controls {
  display: none;
}
body:not(.playing) .start-hint {
  bottom: 82px;
}
body:not(.playing) .location {
  max-width: calc(100vw - 70px);
}
.top-actions .pill {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  body:not(.playing) .location {
    top: 150px;
    left: 26px;
    max-width: calc(100vw - 52px);
  }
  body:not(.playing) .location h1 {
    font-size: clamp(44px, 7vw, 62px);
  }
  body:not(.playing) .location p {
    max-width: 350px;
  }
  body:not(.playing) .start-hint {
    bottom: 78px;
  }
  header .wordmark span {
    display: none;
  }
  .playing .destination {
    max-width: 180px;
  }
  .playing .controls {
    gap: 10px;
  }
}
@media (max-width: 580px) {
  body:not(.playing) .location {
    top: 135px;
    left: 22px;
    max-width: calc(100vw - 44px);
  }
  body:not(.playing) .location h1 {
    font-size: 45px;
  }
  .top-actions {
    gap: 5px;
  }
}

#map-dialog h2 {
  letter-spacing: -0.035em;
}

#graphics-recovery {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #d1e4e2, #8cbbca);
  color: #143944;
  text-align: center;
}
#graphics-recovery[hidden] {
  display: none;
}
#graphics-recovery h2 {
  font-size: 32px;
  margin: 28px 0 12px;
}
#graphics-recovery button {
  margin-top: 20px;
  padding: 14px 24px;
  border: 0;
  border-radius: 30px;
  background: #f5ca8b;
  color: #143944;
  cursor: pointer;
}

/* ---------- v7 flow HUD ---------- */
#flow-hud {
  position: absolute;
  left: 50%;
  bottom: 158px;
  transform: translateX(-50%);
  width: min(360px, 70vw);
  display: grid;
  justify-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.playing #flow-hud.active {
  opacity: 1;
}
.cinema #flow-hud {
  display: none;
}
#flow-hud .flow-meter {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: #ffffff22;
  overflow: hidden;
}
#flow-hud .flow-meter i {
  display: block;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, #59d0c4, #ffce80 60%, #ff7a59);
  box-shadow: 0 0 12px #ffce80aa;
  transition: transform 0.15s linear;
}
#flow-hud .flow-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: Manrope, sans-serif;
  text-shadow: 0 2px 14px #0008;
}
#flow-hud .flow-score strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
#flow-hud .flow-score span {
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.75;
}
#flow-hud .flow-score em {
  font-style: normal;
  font-weight: 800;
  font-size: 15px;
  color: #ffce80;
}
#flow-hud.hot .flow-score em {
  color: #ff8c66;
  animation: flow-pulse 0.6s ease-in-out infinite alternate;
}
@keyframes flow-pulse {
  from {
    text-shadow: 0 0 0 #ff8c6600;
  }
  to {
    text-shadow: 0 0 16px #ff8c66cc;
  }
}
#flow-hud .flow-feed {
  position: absolute;
  bottom: 100%;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.flow-pop {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px #000a;
  animation: flow-in 0.28s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.flow-pop b {
  font-weight: 800;
}
.flow-pop span {
  color: #ffce80;
  font-weight: 700;
}
.flow-pop.gold b {
  color: #ffd98a;
}
.flow-pop.trick b {
  color: #9ff0e4;
}
.flow-pop.hot b {
  color: #ff9f7a;
}
.flow-pop.bank b {
  color: #fff9ed;
  font-size: 12px;
  opacity: 0.85;
}
.flow-pop.out {
  opacity: 0;
  transform: translateY(-10px);
}
@keyframes flow-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#touch-trick {
  display: none;
}
@media (pointer: coarse), (max-width: 580px) {
  #touch-controls #touch-trick {
    display: block;
    right: 110px;
    bottom: 118px;
    width: 50px;
    height: 50px;
    font-size: 9px;
  }
  #flow-hud {
    bottom: 205px;
  }
}

/* ---------- v7 settled HUD: once playing, the city takes the frame ---------- */
.playing.settled footer {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.playing.settled .destination:not(.route-on) {
  opacity: 0.0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.playing.settled .destination:not(.route-on) * {
  pointer-events: none;
}
.playing.settled header .wordmark {
  opacity: 0.55;
  transition: opacity 0.8s ease;
}
.playing.settled .map-wrap {
  opacity: 0.82;
}
.playing.settled .flight-hud > div,
.playing.settled #flight-btn {
  opacity: 0.6;
}
.playing #traversal-hint {
  bottom: 150px;
}
.playing.settled .location h1 {
  opacity: 0.8;
}
body.hud-peek.settled footer,
body.hud-peek.settled .destination {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* ---------- Rides: contextual ENTER / EXIT button on touch ---------- */
#touch-ride {
  display: none;
}
@media (pointer: coarse), (max-width: 580px) {
  body.ride-near #touch-controls #touch-ride {
    display: block;
    right: 170px;
    bottom: 64px;
    width: 58px;
    height: 58px;
    font-size: 9px;
    background: rgba(228, 83, 43, 0.82);
  }
}
body.riding #reticle,
body.riding #anchor-marker,
body.riding #flow-hud {
  display: none;
}

/* ---------- Context prompts: what you can press or tap right now ---------- */
#action-prompt {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: rgba(8, 24, 29, 0.78);
  border: 1px solid rgba(143, 238, 255, 0.55);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 22px rgba(47, 220, 255, 0.25);
  color: #fff9ed;
  pointer-events: none;
  white-space: nowrap;
  animation: prompt-in 0.25s ease-out;
}
#action-prompt::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 1px;
  height: 9px;
  background: rgba(143, 238, 255, 0.6);
}
#action-prompt .key,
#move-prompts .key {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fff3d5;
  color: #10262c;
  font: 800 13px "Manrope", "DM Sans", sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 0 #c89a58;
  animation: key-pulse 1.4s ease-in-out infinite;
}
#action-prompt .verb {
  font: 700 14px "Manrope", "DM Sans", sans-serif;
  letter-spacing: 0.3px;
}
#action-prompt .what {
  font-size: 11px;
  opacity: 0.72;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
#move-prompts {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
#move-prompts .chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(8, 24, 29, 0.66);
  border: 1px solid rgba(255, 243, 213, 0.28);
  font: 600 12px "DM Sans", sans-serif;
  color: #fff9ed;
  animation: prompt-in 0.25s ease-out;
}
#move-prompts .chip .key {
  min-width: 26px;
  height: 26px;
  font-size: 11px;
  animation: none;
}
@keyframes key-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes prompt-in {
  from { opacity: 0; transform: translate(-50%, -80%); }
}
#move-prompts .chip { animation-name: chip-in; }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  #action-prompt, #move-prompts .chip, #action-prompt .key { animation: none; }
}
body:not(.playing) #action-prompt,
body:not(.playing) #move-prompts,
.cinema #action-prompt,
.cinema #move-prompts {
  display: none !important;
}
@media (pointer: coarse), (max-width: 580px) {
  #move-prompts {
    bottom: auto;
    top: calc(74px + env(safe-area-inset-top, 0px));
  }
}

/* v7.4: map views (old city / Greater San Juan). */
.map-views {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
}
.map-views button {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #c9e7df33;
  background: #ffffff08;
  color: #d9e6df;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.map-views button.selected {
  background: #f0ba79;
  border-color: #f0ba79;
  color: #102b32;
  font-weight: 600;
}
#landmarks button[hidden] {
  display: none;
}

/* v8: the minimap and the big map are teleporters. */
#minimap,
#island-map {
  cursor: crosshair;
}

/* Español: las teclas con nombre largo (ESPACIO, Manejar, Paintball) no se encogen. */
.help-grid kbd {
  flex: none;
}
/* Español: en pantallas angostas la barra superior pasa las píldoras a otra fila en vez de salirse. */
@media (max-width: 480px) {
  .wordmark,
  .playing .wordmark {
    white-space: nowrap;
  }
  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 5px;
  }
}
#pause-dialog button.secondary {
  padding-inline: 16px;
}

html,body{overscroll-behavior:none}

/* Native hidden state must win over component display rules. */
[hidden] {
  display: none !important;
}

/* Keep menus usable with browser zoom, small windows and safe-area insets. */
dialog {
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b8a3cc transparent;
}
.help-section-title {
  margin: 28px 0 14px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7ee8ed;
}
.help-grid {
  gap: 12px 20px;
  margin: 16px 0 24px;
}
.help-grid > span {
  min-width: 0;
  align-items: flex-start;
  line-height: 1.55;
}
.help-grid kbd {
  margin-top: 1px;
  line-height: 1.3;
}
.help-category {
  margin: 10px 0;
  padding: 0 16px;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  background: #ffffff05;
}
.help-category > summary {
  padding: 14px 0;
  color: #fff4e0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.help-category > summary:focus-visible {
  outline: 2px solid #7ee8ed;
  outline-offset: 4px;
  border-radius: 4px;
}
.help-category .help-grid {
  grid-template-columns: minmax(0, 1fr);
  margin: 2px 0 20px;
}
.sensitivity-option {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(100px, 1.2fr);
  gap: 18px;
}
.sensitivity-option input {
  width: 100%;
  margin: 0;
  min-height: 32px;
}
.map-views,
.map-key {
  flex-wrap: wrap;
}
.map-views button {
  min-height: 36px;
  text-align: left;
}
#landmarks button {
  min-width: 0;
}
#landmarks button strong,
#landmarks button span {
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .help-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  #screen-fade,
  .location h1,
  .destination,
  footer,
  .toast,
  .route-progress i {
    transition: none !important;
    animation: none !important;
  }
}

/* Earned rewards and first-load guidance. */
#loading .lk-load-note { max-width: 38ch; font-size: 14px; line-height: 1.55; letter-spacing: 0; color: #fff0d9; }
#reward-boost-status { position: fixed; top: calc(74px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); border: 1px solid #7ee8d866; border-radius: 16px; padding: 7px 12px; color: #dcfff5; background: #17162dde; font: 600 12px/1.4 Manrope, sans-serif; text-align: center; pointer-events: none; z-index: 6; }
#reward-boost-status[hidden] { display: none; }
body.mobile #reward-boost-status { top: auto; bottom: calc(190px + env(safe-area-inset-bottom, 0px)); font-size: 10px; padding: 5px 10px; }

@media (max-height: 500px) { body.mobile #reward-boost-status { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); } }

#loading .lk-desktop-note { display:none; max-width:36ch; font-size:13px; line-height:1.5; letter-spacing:0; color:#b9f6e9; }
.mobile #loading .lk-desktop-note { display:block; }

/* Keep navigation labels separate from the moving hook target on phones.
   These selectors also apply after the dedicated touch stylesheet loads. */
body.mobile.playing #interface .location h1,
body.mobile.playing #interface .location.fresh h1 {
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.mobile.playing #interface .location h1::after {
  display: none;
}
body.mobile.playing:not(:has(.sp-hud:not([hidden]), .shd:not([hidden]))) #interface #flight-hud {
  display: grid;
}
body.mobile.playing #interface #flight-hud {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  top: calc(var(--mobile-top) + 152px);
  width: calc(100vw - var(--mobile-left) - var(--mobile-right) - 156px);
}
body.mobile.playing #interface #motion-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.mobile.playing #interface #speed {
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}
body.mobile.playing #interface #flight-btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0;
}
body.mobile.playing #interface #anchor-marker span {
  display: none;
}
@media (min-width: 640px) and (max-height: 560px) {
  body.mobile.playing #interface #flight-hud {
    top: calc(var(--mobile-top) + 112px);
    width: 190px;
  }
}

/* A temporary message uses the same phone banner space as the control hint. */
body.mobile:has(.toast.show) #traversal-hint { visibility: hidden; }
