.game-shell {
  gap: 4px;
  grid-template-rows: 40px minmax(0, 1fr) auto minmax(44px, 44px);
  padding-inline: 6px;
}

.top-bar {
  grid-template-columns: minmax(52px, 0.88fr) 36px minmax(52px, 0.84fr) 28px 28px 28px;
  gap: 3px;
}

.wallet {
  padding-inline: 5px;
}

.wallet #coins {
  font-size: 9px;
}

.prestige-badge {
  padding-inline: 4px;
  font-size: 6.5px;
}

.icon-button {
  width: 46px;
  height: 36px;
  font-size: 15px;
}

.coin-icon {
  width: 15px;
  height: 15px;
}

.mission-card {
  top: 4px;
  min-height: 38px;
  padding: 4px 5px;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.mission-card span {
  font-size: 7px;
}

.mission-card strong {
  font-size: 9px;
}

.borough-track {
  top: 74px;
  left: 6px;
  right: 6px;
  gap: 2px;
}

.borough-track span {
  min-height: 18px;
  padding: 3px 2px;
  font-size: 6px;
}

.road {
  inset: 102px 0 0;
}

.lane {
  min-height: 40px;
}

.lane-lock {
  width: min(76px, 44%);
  gap: 1px;
  padding: 2px 3px;
  border-width: 1px;
  box-shadow: 0 3px 0 rgba(109, 71, 0, 0.22), 0 7px 10px rgba(0, 0, 0, 0.18);
}

.lane-lock strong {
  font-size: 6px;
  line-height: 1;
}

.lane-lock span {
  min-height: 9px;
  padding-inline: 2px;
  font-size: 5px;
}

.toll-gate {
  width: 42px;
  right: 8px;
  top: 7%;
  bottom: 7%;
  height: auto;
}

.toll-gate span {
  font-size: 9px;
  line-height: 1;
}

.toll-gate em {
  display: none;
}

.toll-gate small {
  font-size: 5.4px;
}

.toll-gate::before {
  top: 4px;
  width: 4px;
  height: 4px;
  box-shadow: 6px 0 0 #ffd44d, -6px 0 0 #ff6b6b;
}

.lane-grade {
  left: 3px;
  bottom: 2px;
  min-width: 42px;
  height: 13px;
  padding: 0 2px;
  font-size: 5.4px;
}

.lane::before,
.vip-lane::before {
  left: 7px;
  font-size: 7px;
}

.booth-grid {
  gap: 2px;
}

.booth-slot {
  max-height: 30px;
}

.yard-actions {
  gap: 1px;
  align-items: stretch;
}

.yard-actions .vip-button {
  min-width: 32px;
  padding-inline: 1px;
  font-size: 8px;
}

.yard-actions .boost-button,
.yard-actions .clear-traffic-btn {
  --ad-btn-w: 62px;
  --ad-btn-h: 32px;
  --ad-btn-pad-left: 27px;
  --ad-btn-pad-right: 2px;
}

.yard-actions .boost-button {
  --ad-text-inset: 8px;
}

.yard-actions .clear-traffic-btn {
  --ad-text-inset: 16px;
  --ad-btn-pad-left: 30px;
}

.yard-actions .ad-pair .ad-icon,
.yard-actions .clear-traffic-btn .ad-icon,
.yard-actions .boost-button .ad-icon {
  display: grid;
  left: 5px;
  width: 13px;
  height: 13px;
  font-size: 7px;
}

.yard-actions .ad-pair span,
.yard-actions .clear-traffic-btn .clear-line-main {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.yard-actions .ad-pair strong,
.yard-actions .clear-traffic-btn .clear-line-sub {
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.yard-actions .small-button strong {
  margin-top: 0;
  font-size: 5.4px;
  line-height: 1;
}

.yard-actions .small-button span {
  font-size: 4.8px;
  line-height: 1;
}

.yard-actions .small-button i {
  display: none;
}

.yard-actions .ad-pair .ad-icon {
  display: grid;
}

.flow-lane-btn {
  min-height: 22px;
  padding: 2px 3px 1px 5px;
  gap: 1px;
}

.flow-lane-name {
  font-size: 4.6px;
}

.flow-lane-level {
  font-size: 6px;
}

.flow-lane-cost {
  font-size: 5.5px;
}

.lane-drop {
  right: 1%;
  top: 8px;
  width: 42px;
  height: calc(100% - 16px);
  background: rgba(19, 24, 38, 0.42);
  border: 2px dashed rgba(255, 212, 77, 0.85);
  border-radius: 6px;
  z-index: 4;
}

.lane-drop span {
  font-size: 6.5px;
}

.lane-drop small {
  font-size: 5.6px;
}

.action-bar {
  --ab-gap: 2px;
  --ab-pad-x: 2px;
  --ab-icon-col: 11px;
  --ab-icon-gap: 2px;
  --ab-label: 6.8px;
  --ab-label-long: 6.4px;
  --ab-status: 6px;
  max-height: 40px;
  border-radius: 10px;
}

.action-bar .action-btn {
  min-height: 0;
  max-height: none;
  border-radius: 6px;
}

.action-bar .btn-badge {
  width: 5px;
  height: 5px;
  top: 1px;
  right: 1px;
}

.car {
  top: calc(50% - 11px);
  height: 22px;
  width: clamp(20px, var(--car-width, 48px), 40px);
  border-radius: 10px 11px 6px 6px;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.12),
    0 2px 0 rgba(0, 0, 0, 0.08),
    6px 1px 8px rgba(255, 247, 192, 0.06);
  transform: translateX(var(--x, 0));
}

.car::before {
  display: none;
}

.car::after {
  left: 3px;
  right: 3px;
  bottom: -1px;
  height: 3px;
}

.car.taxi {
  height: 18px;
}

.car.van,
.car.suv,
.car.truck {
  height: 19px;
}

.car.sports {
  height: 16px;
  border-radius: 14px 16px 5px 7px;
}

.car.vip {
  width: clamp(20px, var(--car-width, 64px), 32px);
  height: 18px;
}

.car.limo {
  height: 18px;
}

.assist-marker {
  left: -20px;
  width: 24px;
  height: 16px;
  border-radius: 6px 8px 4px 4px;
}

.assist-marker::before {
  left: 5px;
  right: 5px;
  top: -3px;
  height: 3px;
}

.booth-slot.merge-ready:not(.empty)::after {
  content: attr(data-merge-label);
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  padding: 1px 4px;
  background: linear-gradient(180deg, #72f3aa, #1ebc78);
  color: #08291d;
  font-size: 6px;
  transform: translate(-50%, -50%);
}

.booth-slot.merge-ready:not(.empty) {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(109, 240, 163, 0.22), rgba(20, 28, 46, 0.96));
  box-shadow:
    inset 0 0 0 2px rgba(109, 240, 163, 0.68),
    inset 0 -12px 18px rgba(0, 0, 0, 0.14),
    0 6px 0 rgba(0, 0, 0, 0.18),
    0 0 20px rgba(109, 240, 163, 0.24);
}


.lane:not(.locked) .toll-gate::after { content: none; }
