:root {
  --bg: #090a0d;
  --card: #14161b;
  --ink: #f1f2f5;
  --soft: rgba(241, 242, 245, 0.55);
  --line: rgba(241, 242, 245, 0.09);
  --accent: #ffc53d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 9%, var(--bg)) 0%, var(--bg) 72%);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 8px 10px;
}

.tr { position: relative; width: min(316px, 100%); padding: 10px 10px 12px; border-radius: 28px; background: linear-gradient(180deg, #1a1d23, var(--card)); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 34px 60px -34px rgba(0, 0, 0, 0.95); }

.tr__map { height: min(104px, 26vh); border-radius: 19px; background: #0e1014; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tr__map svg { display: block; width: 100%; height: 100%; fill: none; }
.tr__streets { stroke: rgba(241, 242, 245, 0.07); stroke-width: 7; stroke-linecap: round; }
.tr__route { stroke: var(--accent); stroke-width: 3.500; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tr__from { fill: #0e1014; stroke: var(--ink); stroke-width: 3; }
.tr__to { fill: var(--ink); }
.tr__car { fill: var(--accent); stroke: #0e1014; stroke-width: 2.500; opacity: 0; }

.tr__facts { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 11px 6px 0; }
.tr__small { font-size: 13.500px; line-height: 18px; font-weight: 680; white-space: nowrap; }
.tr__meta { font-size: 12px; line-height: 16px; font-weight: 540; color: var(--soft); white-space: nowrap; }
.tr__fare { display: grid; justify-items: end; }
.tr__fare span { font-size: 11px; line-height: 13px; font-weight: 600; color: var(--soft); }
.tr__fare b { display: block; font-size: 24px; line-height: 27px; font-weight: 760; font-stretch: 95%; letter-spacing: -0.02em; white-space: nowrap; }

.tr__rate { margin-top: 12px; padding: 11px 12px 12px; border-radius: 19px; background: rgba(241, 242, 245, 0.045); box-shadow: inset 0 0 0 1px var(--line); }
.tr__ask { display: flex; align-items: center; justify-content: space-between; height: 18px; font-size: 13.500px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.tr__ask b { font-weight: 740; }
.tr__word { height: 18px; overflow: hidden; margin-left: auto; font-size: 12.500px; font-weight: 680; color: var(--accent); }
.tr__word i { display: block; font-style: normal; }
.tr__stars { display: flex; justify-content: space-between; margin-top: 8px; }
.tr__star { position: relative; width: 40px; height: 38px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; outline: none; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.tr__star:focus-visible, .tr__tip:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.tr__star svg { position: absolute; left: 4px; top: 3px; width: 32px; height: 32px; overflow: visible; }
.tr__star .tr__hollow { fill: none; stroke: rgba(241, 242, 245, 0.26); stroke-width: 1.600; stroke-linejoin: round; }
.tr__star .tr__full { fill: var(--accent); stroke: var(--accent); stroke-width: 1.600; stroke-linejoin: round; }

.tr__tips { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); height: 38px; margin-top: 8px; padding: 3px; border-radius: 15px; background: rgba(241, 242, 245, 0.045); box-shadow: inset 0 0 0 1px var(--line); }
.tr__marker { position: absolute; left: 3px; top: 3px; width: 60px; height: 32px; border-radius: 12px; background: var(--ink); box-shadow: 0 6px 10px -6px rgba(0, 0, 0, 0.9); }
.tr__tip { position: relative; height: 32px; border: 0; border-radius: 12px; background: none; color: var(--soft); font: inherit; font-size: 13px; font-weight: 680; white-space: nowrap; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; transition: color 0.2s; }
.tr__tip[aria-checked="true"] { color: #0d0e11; }
.tr__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #ffffff; stroke: #101216; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 5; }
