/* Last Fare — haunted miniature city presentation. The world itself is
   supplied by the authored Blender kit; this sheet only builds the readable
   cyan site chrome and the game HUD around it. */

:root {
  --lf-ink: #050b10;
  --lf-ink-soft: #0a161b;
  --lf-panel: rgba(6, 16, 21, 0.92);
  --lf-panel-solid: #081318;
  --lf-line: rgba(50, 229, 224, 0.34);
  --lf-line-strong: #00d9d4;
  --lf-cyan: #87ffff;
  --lf-cyan-soft: #45d4d1;
  --lf-plum: #241932;
  --lf-amber: #ffc36d;
  --lf-rose: #f18eaa;
  --lf-green: #8cffc5;
  --lf-red: #ff879e;
  --lf-shadow: 0 20px 70px rgba(0, 0, 0, 0.46);
}

.lf-shell {
  max-width: 1500px;
}

.lf-shell [hidden] {
  display: none !important;
}

.lf-game {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lf-line-strong);
  background:
    radial-gradient(circle at 50% -15%, rgba(45, 107, 119, 0.28), transparent 46%),
    linear-gradient(145deg, #050b11, #130e1e 55%, #070e13);
  box-shadow: var(--lf-shadow), 0 0 36px rgba(0, 204, 204, 0.13);
  color: #e8ffff;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.lf-loader {
  min-height: min(760px, 68vh);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 11px;
  padding: 40px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0, 13, 18, 0.97), rgba(22, 12, 34, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(0, 229, 224, 0.04) 81px 82px);
}

.lf-loader__sigil {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lf-line-strong);
  border-radius: 50%;
  color: var(--lf-cyan);
  font-size: 2.4rem;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), inset 0 0 28px rgba(0, 255, 255, 0.1);
}

.lf-loader strong {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.45rem);
  letter-spacing: 0.08em;
}

.lf-loader span {
  max-width: 36rem;
  color: #a8c6c8;
  font-size: 0.83rem;
}

.lf-loader progress {
  width: min(390px, 78vw);
  height: 8px;
  accent-color: var(--lf-line-strong);
}

.lf-interface {
  position: relative;
}

.lf-hud {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(6, minmax(86px, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--lf-line);
  background: rgba(3, 9, 13, 0.96);
}

.lf-hud__identity,
.lf-hud__stat {
  min-width: 0;
  min-height: 78px;
  padding: 10px 12px;
  background: linear-gradient(160deg, rgba(15, 31, 38, 0.98), rgba(5, 14, 18, 0.98));
}

.lf-hud__identity {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 2px 10px;
}

.lf-hud__identity .lf-eyebrow {
  grid-column: 1 / -1;
}

.lf-hud__identity label {
  align-self: center;
  color: #a6c5c7;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lf-hud__identity input {
  min-width: 0;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(96, 244, 239, 0.48);
  border-radius: 2px;
  outline: 0;
  background: rgba(0, 8, 12, 0.75);
  color: #efffff;
  font: inherit;
  font-size: 0.78rem;
}

.lf-hud__identity input::placeholder {
  color: #769091;
}

.lf-hud__identity input:focus {
  border-color: var(--lf-cyan);
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.15);
}

.lf-keeper-display {
  grid-column: 2;
  align-self: center;
  overflow: hidden;
  color: #efffff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-hud__identity.is-playing input { display: none; }

.lf-hud__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-left: 1px solid rgba(0, 204, 204, 0.13);
}

.lf-hud__stat > span,
.lf-hud__stat > small {
  color: #8daeb0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lf-hud__stat > strong {
  overflow: hidden;
  color: var(--lf-cyan);
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(0.92rem, 1.4vw, 1.18rem);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-hud__stat > small {
  overflow: hidden;
  color: #b5c8c9;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-hud__boost meter {
  width: 100%;
  height: 5px;
  accent-color: var(--lf-amber);
}

.lf-viewport {
  position: relative;
  min-height: 610px;
  aspect-ratio: 2.05 / 1;
  overflow: hidden;
  background: #080f16;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 610px;
  touch-action: none;
  outline: 0;
}

.lf-game:fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border: 0;
  box-shadow: none;
}

.lf-game:fullscreen .lf-interface {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lf-game:fullscreen .lf-viewport {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}

.lf-game:fullscreen #gameCanvas {
  min-height: 0;
}

.lf-game:fullscreen .lf-rail > section {
  min-height: 108px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Driving owns the fullscreen viewport. Dispatch, fares and radio remain
   available through one compact drawer so the street view is not reduced to
   a narrow strip by the information rail. Pausing opens the drawer for
   settings and credits without taking controls away from the player. */
.lf-game:fullscreen[data-running="true"] .lf-interface {
  grid-template-rows: auto minmax(0, 1fr);
}

.lf-game:fullscreen[data-running="true"] .lf-rail:not(.is-open) {
  display: none;
}

.lf-game:fullscreen[data-running="true"] .lf-rail.is-open,
.lf-game:fullscreen[data-running="true"][data-paused="true"] .lf-rail {
  position: absolute;
  z-index: 8;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 1fr);
  max-height: min(46vh, 380px);
  overflow: auto;
  border: 1px solid var(--lf-line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lf-game:fullscreen[data-running="true"] .lf-rail.is-open > section,
.lf-game:fullscreen[data-running="true"][data-paused="true"] .lf-rail > section {
  min-height: 0;
  padding: 12px 14px;
}

.lf-viewport__vignette {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 5, 8, 0.38), transparent 26%, transparent 73%, rgba(0, 5, 8, 0.58)),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 2, 7, 0.56) 100%);
}

.lf-compass {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(133, 255, 255, 0.44);
  border-radius: 50%;
  background: rgba(3, 11, 16, 0.74);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.11);
  pointer-events: none;
}

.lf-compass__label {
  position: absolute;
  top: 7px;
  color: var(--lf-cyan);
  font-size: 0.47rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lf-compass__needle {
  display: grid;
  width: 24px;
  height: 40px;
  place-items: center;
  color: var(--lf-amber);
  line-height: 1;
  transform-origin: 50% 58%;
  filter: drop-shadow(0 0 5px rgba(255, 195, 109, 0.7));
}

.lf-compass__arrow {
  display: block;
  width: 24px;
  height: 40px;
  fill: currentColor;
}

.lf-target-readout {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  width: min(300px, 30%);
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-left: 2px solid var(--lf-line-strong);
  background: linear-gradient(90deg, rgba(4, 13, 18, 0.9), rgba(4, 13, 18, 0.2));
  pointer-events: none;
}

.lf-target-readout strong {
  overflow: hidden;
  color: #f1ffff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(0.8rem, 1.6vw, 1.16rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-target-readout > span:not(.lf-eyebrow) {
  color: var(--lf-amber);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.lf-target-readout small {
  overflow: hidden;
  color: #a9c3c4;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-minimap {
  position: absolute;
  z-index: 3;
  right: 17px;
  bottom: 17px;
  width: 220px;
  height: 160px;
  border: 1px solid rgba(128, 255, 255, 0.56);
  background: rgba(3, 8, 13, 0.8);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  image-rendering: auto;
  pointer-events: none;
}

.lf-stop-prompt {
  position: absolute;
  z-index: 3;
  bottom: 21px;
  left: 50%;
  width: min(280px, 40%);
  display: grid;
  gap: 4px;
  padding: 11px 15px 13px;
  transform: translateX(-50%);
  border: 1px solid var(--lf-amber);
  background: rgba(21, 13, 12, 0.9);
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 181, 86, 0.18);
  pointer-events: none;
}

.lf-stop-prompt strong {
  color: var(--lf-amber);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.9rem;
}

.lf-stop-prompt span {
  color: #f5d7ad;
  font-size: 0.73rem;
}

.lf-stop-prompt progress {
  width: 100%;
  height: 5px;
  accent-color: var(--lf-amber);
}

.lf-feedback {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 18px;
  max-width: 265px;
  min-height: 1.2em;
  padding: 8px 12px;
  border-right: 2px solid var(--lf-cyan-soft);
  background: rgba(4, 12, 17, 0.78);
  color: #dfffff;
  font-size: 0.75rem;
  line-height: 1.42;
  text-align: right;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.lf-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lf-quick-actions {
  position: absolute;
  z-index: 6;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.lf-quick-actions .lf-button {
  min-height: 34px;
  padding: 6px 10px;
  background: rgba(3, 12, 17, 0.76);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.lf-overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 40px 5%;
  background: radial-gradient(ellipse at center, rgba(12, 18, 29, 0.68), rgba(2, 8, 12, 0.9));
  text-align: center;
}

.lf-overlay--start {
  align-content: center;
  justify-items: center;
}

.lf-title-lockup {
  display: grid;
  gap: 3px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.9);
}

.lf-title-lockup strong {
  color: #f1ffff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1;
}

.lf-title-lockup > span:last-child {
  color: #c0d3d4;
  font-size: clamp(0.74rem, 1.5vw, 1rem);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.lf-eyebrow {
  color: var(--lf-cyan-soft);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.lf-mode-picker {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.lf-mode {
  display: grid;
  gap: 7px;
  min-height: 84px;
  padding: 13px 14px;
  border: 1px solid rgba(105, 223, 223, 0.36);
  border-radius: 2px;
  background: rgba(5, 15, 20, 0.82);
  color: #bad2d3;
  font: inherit;
  text-align: left;
  cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lf-mode strong {
  color: #ecffff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.88rem;
}

.lf-mode span {
  color: #9cb6b8;
  font-size: 0.7rem;
  line-height: 1.35;
}

.lf-mode:hover,
.lf-mode:focus-visible,
.lf-mode.is-selected {
  border-color: var(--lf-cyan);
  background: linear-gradient(145deg, rgba(4, 45, 50, 0.88), rgba(20, 13, 31, 0.91));
}

.lf-mode.is-selected {
  box-shadow: inset 0 0 0 1px rgba(120, 255, 255, 0.15), 0 0 18px rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

.lf-overlay__status {
  max-width: 500px;
  min-height: 1.35em;
  margin: 0;
  color: #bfd3d4;
  font-size: 0.79rem;
}

.lf-career-briefing {
  width: min(560px, 100%);
  display: grid;
  gap: 4px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 195, 109, 0.32);
  background: rgba(17, 12, 24, 0.72);
  text-align: left;
}

.lf-career-briefing strong {
  color: #ffe6bc;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.9rem;
}

.lf-career-briefing p {
  margin: 0;
  color: #b9cccd;
  font-size: 0.74rem;
  line-height: 1.4;
}

.lf-career-briefing > span:last-of-type {
  color: #8da5a6;
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lf-career-briefing .lf-button {
  justify-self: start;
  margin-top: 4px;
}

.lf-overlay > strong {
  color: #f4ffff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.14em;
}

.lf-overlay > p {
  max-width: 560px;
  margin: 0;
  color: #c2d6d7;
  line-height: 1.55;
}

.lf-button,
.lf-icon-button {
  border: 1px solid var(--lf-line-strong);
  border-radius: 2px;
  background: rgba(5, 20, 25, 0.88);
  color: var(--lf-cyan);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lf-button {
  min-height: 40px;
  padding: 9px 18px;
}

.lf-button:hover,
.lf-button:focus-visible,
.lf-icon-button:hover,
.lf-icon-button:focus-visible {
  background: rgba(0, 214, 214, 0.18);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 245, 245, 0.16);
  transform: translateY(-1px);
}

.lf-button--primary {
  min-width: 210px;
  border-color: var(--lf-amber);
  background: linear-gradient(145deg, rgba(151, 77, 43, 0.82), rgba(84, 36, 44, 0.88));
  color: #fff2d4;
  box-shadow: 0 0 22px rgba(255, 167, 80, 0.17);
}

.lf-button--primary:hover,
.lf-button--primary:focus-visible {
  background: linear-gradient(145deg, rgba(188, 104, 50, 0.9), rgba(111, 44, 54, 0.94));
  box-shadow: 0 0 26px rgba(255, 167, 80, 0.3);
}

.lf-button--small {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 0.64rem;
}

.lf-button:disabled {
  border-color: rgba(129, 155, 156, 0.33);
  background: rgba(18, 26, 30, 0.7);
  color: #657879;
  cursor: not-allowed;
  transform: none;
}

.lf-overlay__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.lf-result-grade {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: -3px 0 1px;
}

.lf-result-grade span {
  color: var(--lf-amber);
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 0.86;
  text-shadow: 0 0 26px rgba(255, 190, 100, 0.28);
}

.lf-result-grade small {
  color: #d8f5f2;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lf-result-grid {
  width: min(600px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(0, 204, 204, 0.2);
  background: rgba(0, 204, 204, 0.2);
}

.lf-result-grid > div {
  display: grid;
  gap: 3px;
  padding: 10px 8px;
  background: rgba(5, 17, 22, 0.88);
}

.lf-result-grid span {
  color: #8eaaab;
  font-size: 0.59rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lf-result-grid strong {
  color: #efffff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.lf-local-note {
  margin: 0;
  color: #94abad !important;
  font-size: 0.68rem !important;
}

.lf-overlay--fatal {
  background: radial-gradient(ellipse at center, rgba(41, 12, 28, 0.83), rgba(6, 8, 14, 0.96));
}

.lf-overlay--fatal .lf-eyebrow {
  color: var(--lf-red);
}

.lf-rail {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(240px, 1.4fr) minmax(220px, 1fr);
  gap: 1px;
  border-top: 1px solid var(--lf-line);
  background: var(--lf-line);
}

.lf-rail > section {
  min-height: 148px;
  padding: 16px 18px;
  background: linear-gradient(155deg, rgba(11, 27, 33, 0.98), rgba(8, 14, 22, 0.98));
}

.lf-dispatch-card__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.lf-dispatch-card__head img {
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  object-fit: cover;
  border: 1px solid var(--lf-line-strong);
  border-radius: 50%;
  background: #071218;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.14);
}

.lf-dispatch-card__head div {
  display: grid;
  gap: 4px;
}

.lf-dispatch-card__head strong {
  color: #f0ffff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.93rem;
}

.lf-dispatch-card p {
  min-height: 2.9em;
  margin: 0;
  color: #bad1d2;
  font-size: 0.82rem;
  line-height: 1.46;
}

.lf-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.lf-chip {
  padding: 4px 7px;
  border: 1px solid rgba(255, 195, 109, 0.46);
  color: var(--lf-amber);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lf-fare-card > strong {
  display: block;
  overflow: hidden;
  color: #efffff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-fare-card p {
  min-height: 2.75em;
  margin: 6px 0 10px;
  color: #9fbabb;
  font-size: 0.8rem;
  line-height: 1.4;
}

.lf-fare-route {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--lf-amber);
  font-size: 0.65rem;
}

.lf-fare-route span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-fare-route span:first-child {
  color: #8ec9c8;
}

.lf-fare-route span:last-child {
  color: #f4d4a3;
}

.lf-fare-offers {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.lf-fare-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(73, 181, 183, 0.28);
  border-radius: 2px;
  background: rgba(3, 12, 17, 0.7);
  color: #c6dddd;
  font: inherit;
  font-size: 0.7rem;
  text-align: left;
  cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer;
}

.lf-fare-offer:hover,
.lf-fare-offer:focus-visible,
.lf-fare-offer.is-selected {
  border-color: var(--lf-amber);
  background: rgba(83, 47, 29, 0.42);
  color: #ffe8bc;
}

.lf-fare-offer strong,
.lf-fare-offer small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-fare-offer strong {
  color: inherit;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.67rem;
}

.lf-fare-offer small {
  display: block;
  margin-top: 2px;
  color: #8bb8b8;
  font-size: 0.57rem;
}

.lf-fare-offer > span {
  color: var(--lf-amber);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lf-controls-card > p {
  min-height: 2.8em;
  margin: 0 0 12px;
  color: #9fbabb;
  font-size: 0.78rem;
  line-height: 1.42;
}

.lf-radio {
  margin-top: 12px;
  border-top: 1px solid rgba(0, 204, 204, 0.2);
  padding-top: 9px;
}

.lf-radio summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--lf-cyan);
  cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer;
  list-style-position: inside;
}

.lf-radio summary span {
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lf-radio summary strong {
  overflow: hidden;
  max-width: 68%;
  color: #9fbabb;
  font-size: 0.61rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-radio__body {
  display: grid;
  gap: 9px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid rgba(0, 204, 204, 0.22);
  background: rgba(3, 11, 16, 0.72);
}

.lf-radio__body > label,
.lf-radio__sliders label {
  display: grid;
  gap: 4px;
  color: #9fbabb;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lf-radio__body select {
  width: 100%;
  padding: 6px 7px;
  border: 1px solid rgba(105, 223, 223, 0.42);
  border-radius: 2px;
  background: #071318;
  color: #e1ffff;
  font: inherit;
  font-size: 0.68rem;
}

.lf-radio__track {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lf-radio__track span {
  overflow: hidden;
  color: #efffff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-radio__track small {
  overflow: hidden;
  color: #87a9aa;
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-radio__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.lf-radio__actions .lf-button { flex: 1 1 72px; min-width: 0; padding-left: 6px; padding-right: 6px; }

.lf-radio__sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.lf-radio__sliders input {
  width: 100%;
  accent-color: var(--lf-cyan);
}

.lf-link-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lf-cyan);
  font: inherit;
  font-size: 0.61rem;
  text-decoration: underline;
  cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer;
}

.lf-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--lf-line-strong);
  border-radius: 2px;
  background: #081318;
  color: #e6ffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 26px rgba(0, 255, 255, 0.15);
}

.lf-dialog::backdrop {
  background: rgba(1, 7, 11, 0.78);
  backdrop-filter: blur(4px);
}

.lf-dialog__head,
.lf-dialog__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 204, 204, 0.25);
}

.lf-dialog__head h2 {
  margin: 0;
  color: var(--lf-cyan);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.15rem;
}

.lf-dialog__intro {
  margin: 0;
  padding: 14px 18px 5px;
  color: #a7c1c2;
  font-size: 0.75rem;
  line-height: 1.5;
}

.lf-dialog__body {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
  padding: 12px 18px 17px;
}

.lf-dialog__station h3 {
  margin: 0 0 5px;
  color: #ffe3ae;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.85rem;
}

.lf-dialog__station p {
  margin: 2px 0;
  color: #b9d0d0;
  font-size: 0.7rem;
  line-height: 1.4;
}

.lf-dialog__station a {
  color: var(--lf-cyan);
  text-decoration: underline;
  cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer;
}

.lf-dialog__foot {
  justify-content: flex-end;
  border-top: 1px solid rgba(0, 204, 204, 0.25);
  border-bottom: 0;
}

.lf-control-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lf-quality {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9fbabb;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.lf-quality select {
  padding: 6px 7px;
  border: 1px solid rgba(105, 223, 223, 0.42);
  border-radius: 2px;
  background: #071318;
  color: #dbffff;
  font: inherit;
  font-size: 0.68rem;
}

.lf-icon-button {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 0.59rem;
}

.lf-status {
  min-height: 1.2em;
  margin: 0;
  padding: 9px 15px 10px;
  border-top: 1px solid rgba(0, 204, 204, 0.18);
  background: rgba(3, 9, 12, 0.9);
  color: #9eb9ba;
  font-size: 0.71rem;
  letter-spacing: 0.03em;
  text-align: center;
}

.lf-status.is-good { color: var(--lf-green); }
.lf-status.is-bad { color: var(--lf-red); }

.lf-local-records {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(200px, 1fr) minmax(540px, 2.4fr);
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 17px 18px 18px;
  border: 1px solid rgba(0, 204, 204, 0.3);
  background: linear-gradient(145deg, rgba(7, 21, 26, 0.95), rgba(16, 10, 26, 0.95));
}

.lf-local-records h2 {
  margin: 4px 0 0;
  color: #efffff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.16rem;
}

.lf-local-records > p {
  margin: 0;
  color: #9eb8ba;
  font-size: 0.73rem;
  line-height: 1.45;
}

.lf-record-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(0, 204, 204, 0.22);
}

.lf-record-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  background: rgba(4, 13, 18, 0.85);
}

.lf-record-grid span,
.lf-record-grid small {
  color: #91abad;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lf-record-grid strong {
  color: var(--lf-cyan);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.lf-record-grid small {
  overflow: hidden;
  color: #7f9697;
  font-size: 0.57rem;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .lf-hud {
    grid-template-columns: minmax(210px, 1.7fr) repeat(6, minmax(74px, 1fr));
  }

  .lf-hud__identity,
  .lf-hud__stat { padding-left: 8px; padding-right: 8px; }

  .lf-rail { grid-template-columns: repeat(3, 1fr); }
  .lf-local-records { grid-template-columns: minmax(160px, 0.75fr) minmax(160px, 0.9fr) minmax(470px, 2.3fr); gap: 12px; }
  .lf-mode-picker { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .lf-hud { grid-template-columns: minmax(190px, 1.7fr) repeat(3, 1fr); }
  .lf-hud__stat:nth-of-type(n + 5) { display: none; }
  .lf-viewport, #gameCanvas { min-height: 500px; }
  .lf-rail { grid-template-columns: 1fr 1fr; }
  .lf-rail > section:last-child { grid-column: 1 / -1; min-height: auto; }
  .lf-local-records { grid-template-columns: 1fr; }
  .lf-local-records > p { max-width: 500px; }
  .lf-record-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-height: 760px) and (min-width: 921px) {
  .lf-viewport, #gameCanvas { min-height: 470px; }
  .lf-hud__identity, .lf-hud__stat { min-height: 64px; padding-top: 7px; padding-bottom: 7px; }
  .lf-rail > section { min-height: 126px; padding-top: 12px; padding-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lf-mode,
  .lf-button,
  .lf-icon-button,
  .lf-feedback { transition: none; }
}
