/* fleet view: the fleet on parade, by family */
.v-fleet .v-fleet__sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.v-fleet .v-fleet__fam { gap: 40px; }
.v-fleet .v-fleet__sil { display: inline-flex; align-items: flex-end; height: 48px; margin-left: 6px; color: var(--fg-3); }
.v-fleet .v-fleet__sil svg { display: block; height: 100%; width: auto; }
.v-fleet .v-fleet__sub { display: flex; flex-direction: column; gap: 16px; }
.v-fleet .v-fleet__h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--fg-2); }

/* ---- parade ---- */
.v-fleet .pu-block { display: flex; flex-direction: column; gap: 20px; }
.v-fleet .pu-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 32px; }
.v-fleet .pu-head__count { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.v-fleet .pu-head__num { font-family: var(--font-display); font-size: clamp(64px, 8vw, 104px); line-height: 0.95; letter-spacing: 0.01em; }
.v-fleet .pu-head__label { font-size: 17px; color: var(--fg-2); }
.v-fleet .pu-head__break { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-bottom: 6px; font-size: 14px; color: var(--fg-3); }
.v-fleet .pu-head__break b { font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.v-fleet .pu-head__rec, .v-fleet .pu-head__rec b { color: var(--y); }

.v-fleet .pu-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--fg-2); }
.v-fleet .pu-legend { column-gap: 32px; }
.v-fleet .pu-legend > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.v-fleet .pu-legend > span.pu--lost { color: var(--fg-2); }
.v-fleet .pu-legend > span.pu--lost .pu__fig { color: var(--r); }
.v-fleet .pu-legend .pu__fig--legend { flex: 0 0 auto; }
.v-fleet .pu__fig--legend { width: 7px; height: 22px; }

.v-fleet .pu-ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 4px; }
.v-fleet .pu-ranks--f9, .v-fleet .pu-ranks--f1 { grid-template-columns: repeat(auto-fill, minmax(24px, 1fr)); }
.v-fleet .pu-ranks--sh { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 14px 8px; }
.v-fleet .pu-ranks--dragon { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 20px 8px; }
.v-fleet .pu-ranks--ship { grid-template-columns: repeat(auto-fill, minmax(120px, 160px)); gap: 20px 16px; }

.v-fleet .pu { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; color: var(--fg); }
.v-fleet .pu__fig { display: block; width: 100%; height: 40px; fill: currentColor; stroke: none; overflow: visible; }
.v-fleet .pu-ranks--f1 .pu__fig { height: 26px; align-self: center; }
.v-fleet .pu-ranks--sh .pu__fig { height: 44px; }
.v-fleet .pu-ranks--dragon .pu__fig { height: 40px; }
.v-fleet .pu-ranks--ship .pu__fig { height: 52px; }
.v-fleet .pu__fig--sil, .v-fleet .pu--lost .pu__fig--sil { fill: none; stroke: currentColor; stroke-width: 1.5; }
.v-fleet .pu__fig--sil * { vector-effect: non-scaling-stroke; }
.v-fleet .pu--lost .pu__fig--sil { stroke-width: 1.2; }
.v-fleet .pu__n { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; line-height: 1.2; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.v-fleet .pu__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.v-fleet .pu-ranks--dragon .pu__n, .v-fleet .pu-ranks--ship .pu__n { font-size: 12px; }
.v-fleet .pu__n .dot { width: 6px; height: 6px; }
.v-fleet .pu__cap { display: none; max-width: 100%; overflow: hidden; white-space: nowrap; font-size: 8px; line-height: 1; color: var(--fg-3); letter-spacing: -0.02em; }

.v-fleet .pu--retired { color: var(--fg-3); }
.v-fleet .pu--retired .pu__n { color: var(--fg-3); }
.v-fleet .pu--lost { color: var(--r); }
.v-fleet .pu--lost .pu__fig { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.55; }
.v-fleet .pu--lost .pu__fig * { vector-effect: non-scaling-stroke; }
.v-fleet .pu--lost .pu__n { color: var(--fg-3); }
.v-fleet .pu--record { color: var(--y); }
.v-fleet .pu--record .pu__n, .v-fleet .pu--record .pu__cap { color: var(--y); font-weight: 700; }

.v-fleet .pu-sub { display: flex; align-items: center; gap: 16px; }
.v-fleet .pu-sub__label { flex: 0 0 auto; font-size: 13px; color: var(--fg-3); }
.v-fleet .pu-sub .pu-ranks { flex: 1 1 auto; grid-template-columns: repeat(5, 24px); }

/* ---- detail below the parades ---- */
.v-fleet .v-fleet__boosters { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.v-fleet .v-fleet__booster { gap: 16px; padding: 20px 22px; }
.v-fleet .v-fleet__booster .tile__label { font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: 0.02em; color: var(--fg); }
.v-fleet .v-fleet__booster .big__num { font-size: 44px; }
.v-fleet .v-fleet__group { display: flex; flex-direction: column; gap: 18px; }
.v-fleet .v-fleet__row { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.v-fleet .v-fleet__rowtop { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.v-fleet .v-fleet__name { min-width: 0; font-size: 17px; font-weight: 600; }
.v-fleet .v-fleet__place { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--fg-3); }
.v-fleet .v-fleet__count { margin-left: auto; font-size: 14px; color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (min-width: 1024px) {
  .v-fleet .pu-ranks--f9 { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); }
  .v-fleet .pu-ranks--sh { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
  .v-fleet .pu-sub .pu-ranks { grid-template-columns: repeat(5, 30px); }
  .v-fleet .pu-ranks--f9 .pu__cap,.v-fleet .pu-ranks--sh .pu__cap, .v-fleet .pu-ranks--dragon .pu__cap { display: block; }
}
@media (max-width: 640px) {
  .v-fleet .v-fleet__boosters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .v-fleet .v-fleet__booster { padding: 18px; gap: 12px; }
  .v-fleet .v-fleet__booster .big__num { font-size: 36px; }
  .v-fleet .v-fleet__booster .tile__label { font-size: 18px; }
  .v-fleet .pu-ranks--ship { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
}

/* status text: current = white, retired = grey, lost = red; text only */
.v-fleet .st--active, .v-fleet .st--active b { color: var(--fg); }
.v-fleet .st--retired, .v-fleet .st--retired b { color: var(--fg-3); }
.v-fleet .st--lost, .v-fleet .st--lost b { color: var(--r); }

/* in orbit now: blue, like the dot and the 人在轨 count */
.v-fleet .pu--live, .v-fleet .pu--live .pu__n, .v-fleet .pu--live .pu__name, .v-fleet .pu--live .pu__cap { color: var(--c); }
.v-fleet .pu--live .dot { background: var(--c); }
.v-fleet .pu__crew { font-size: 11px; line-height: 1.2; color: var(--c); white-space: nowrap; }
.v-fleet .v-fleet__dstats { gap: 12px 40px; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), max-content)); padding-top: 4px; }
.v-fleet .v-fleet__dstats .stat__num { font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: 0.01em; }
.v-fleet .v-fleet__dstats .stat__label { font-size: 13px; }
.v-fleet .stat--live .stat__num, .v-fleet .stat--live .stat__label { color: var(--c); }
