/* Shop economy layer: garage floor strip, milestone pips, synergy lines, best-value tag, buy fx. */
.shop .row { position: relative; grid-template-rows: auto auto auto; }
.shop .row > .part-no, .shop .row > .part-icon, .shop .row > .row-cost { grid-row: 1 / span 3; }
.shop .row[hidden] { display: none; }
.row-extra { grid-column: 3; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 13px; line-height: 1.25; }
.row-extra:empty { display: none; }

/* milestone pip: a short VFD bar segment and its readout */
.ms { display: inline-flex; align-items: center; gap: 7px; color: var(--amber); }
.ms b { font-family: var(--f-vfd); font-weight: 800; font-size: 11px; letter-spacing: 0.02em; }
.ms em { font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ms-bar { position: relative; display: inline-block; width: 46px; height: 5px; background: rgba(255, 173, 31, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 173, 31, 0.28); }
.ms-bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, var(--amber) 0 3px, transparent 3px 4px); filter: drop-shadow(0 0 2px var(--amber-glow)); }
.ms.done b { color: var(--amber-hot); }
.syn { color: #b9ad9a; }
.syn b { color: var(--amber); font-weight: 700; }
.lock { color: #8f867a; font-style: italic; }
.lock::before { content: "\25B8\00A0"; font-style: normal; color: var(--amber-dim); }
.row.locked .row-cost { opacity: 0.6; }

/* best value: an amber inspection sticker beside the name */
.best-tag {
  align-self: center; font-family: var(--f-cond); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #1a0f02; background: var(--amber); padding: 1px 6px 0; border-radius: 2px; line-height: 1.35;
  box-shadow: 0 0 8px var(--amber-glow); transform: rotate(-2deg);
}
.best-tag[hidden] { display: none; }
.row.is-best { background: linear-gradient(90deg, rgba(255, 173, 31, 0.06), transparent 70%); }

/* "+$X/s" floating off the hang tag */
.buy-fx {
  position: absolute; right: 8px; top: 4px; pointer-events: none; white-space: nowrap; z-index: 2;
  font-family: var(--f-vfd); font-weight: 800; font-size: 15px; color: var(--amber-hot);
  text-shadow: 0 0 8px rgba(255, 173, 31, 0.85); animation: buy-rise 1s ease-out forwards;
}
@keyframes buy-rise { from { transform: translateY(0); opacity: 1; } 70% { opacity: 1; } to { transform: translateY(-34px); opacity: 0; } }

/* garage floor: painted bay lines on dark concrete, figures in cream line-work */
.floor {
  display: flex; gap: 0; align-items: flex-end; overflow: hidden; margin: 2px 0 6px; padding: 6px 4px 0; min-height: 52px;
  background: linear-gradient(180deg, transparent 0 70%, rgba(255, 173, 31, 0.05) 70%), #100e0c;
  border-top: 1px solid rgba(239, 233, 218, 0.08); border-bottom: 2px solid rgba(255, 173, 31, 0.35);
}
.bay { position: relative; flex: 0 1 auto; min-width: 0; display: flex; align-items: flex-end; gap: 0; padding: 0 16px 3px 6px; border-right: 1px dashed rgba(255, 173, 31, 0.28); }
.bay:last-child { border-right: 0; }
.bay-figs { display: flex; align-items: flex-end; overflow: hidden; }
.fig { width: 17px; height: 24px; flex: none; fill: none; stroke: #d8cfbf; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-right: -2px; }
.bay-n { position: absolute; right: 2px; top: -3px; font-family: var(--f-vfd); font-weight: 800; font-size: 10px; color: var(--amber); text-shadow: 0 0 4px var(--amber-glow); }
.floor-empty { margin: 0 0 6px 4px; font-size: 13px; color: var(--muted); font-style: italic; }
.fig .a { transform-box: fill-box; animation-duration: 2.4s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-delay: calc(var(--d, 0s) * -1); }
.fig .sway { transform-origin: 0% 0%; animation-name: f-sway; }
.fig .buff { transform-origin: 0% 0%; animation-name: f-buff; animation-duration: 1.1s; }
.fig .wave { transform-origin: 0% 50%; animation-name: f-wave; animation-duration: 3s; }
.fig .bob { animation-name: f-bob; animation-duration: 3.2s; }
.fig .spin { transform-box: view-box; animation-name: f-spin; animation-duration: 1.6s; animation-timing-function: linear; }
@keyframes f-sway { 50% { transform: rotate(-10deg); } }
@keyframes f-buff { 50% { transform: translateX(1.2px) rotate(-4deg); } }
@keyframes f-wave { 50% { transform: skewY(-6deg) scaleX(0.94); } }
@keyframes f-bob { 50% { transform: translateY(-1px); } }
@keyframes f-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fig .a, .buy-fx { animation: none; } .buy-fx { display: none; } }
@media (max-width: 600px) {
  .row-extra { grid-column: 2; font-size: 12px; gap: 3px 10px; }
  .bay { padding: 0 13px 3px 3px; }
  .fig { width: 14px; height: 20px; }
}
