/* Voyage Board — the landing for a bare URL (no ?v=). A browsable wall of
   expeditions: scan the fleet, then follow one out into its 3D console.
   Tokens come from style.css :root; everything here is scoped to #voyage-board
   so it never collides with the console. */

/* When the board is the active view, the 3D console chrome stands down. */
body.board .console,
body.board .nav-spine,
body.board .nav-drawer,
body.board .hud,
body.board .gx-panel,
body.board .gx-scrim,
body.board .holo-overlay,
body.board .voyage-restore { display: none !important; }
body.board .nav-fleet { display: none; }        /* already on the board */
body.board { overflow-y: auto; }

#voyage-board { display: none; }
body.board #voyage-board { display: block; }

.vb-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; }
.vb-wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 28px 96px; }

/* ---- board header ---- */
.vb-head { padding: 30px 0 20px; max-width: 660px; }
.vb-eyebrow {
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent-dim);
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.vb-eyebrow::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--accent-deep), transparent); }
.vb-head h1 { font-size: 30px; line-height: 1.22; font-weight: 500; margin: 0 0 14px; letter-spacing: -0.01em; text-wrap: balance; }
.vb-head p { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 54ch; }
.vb-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.06em; }
.vb-meta b { color: var(--ink); font-weight: 500; }

/* ---- grid ---- */
.vb-fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(324px, 1fr)); gap: 20px; margin-top: 32px; }

.vb-card { position: relative; border: 1px solid var(--line-bright); background: var(--bg-panel);
  border-radius: 4px; cursor: pointer; overflow: hidden; color: inherit; text-align: left; padding: 0;
  font: inherit; display: block; width: 100%;
  transition: border-color .35s var(--ease), transform .35s var(--ease); }
.vb-card:hover { transform: translateY(-3px); border-color: var(--twilight); }
.vb-card:focus-visible { outline: 1px solid var(--accent-dim); outline-offset: 2px; }

.vb-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-raised); }
.vb-cover canvas { width: 100%; height: 100%; display: block; transition: transform .6s var(--ease); }
.vb-card:hover .vb-cover canvas { transform: scale(1.055); }
.vb-cover .vb-chip { position: absolute; top: 12px; left: 12px; z-index: 2; }
.vb-vid { position: absolute; top: 13px; right: 13px; z-index: 2; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(233, 231, 224, 0.7); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.vb-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 16px 13px;
  background: linear-gradient(transparent, rgba(6, 8, 12, 0.78) 62%, rgba(6, 8, 12, 0.92)); }

.vb-route { display: flex; align-items: center; gap: 9px; }
.vb-route .vb-city { font-size: 16px; font-weight: 500; color: var(--ink); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); letter-spacing: 0.01em; }
.vb-route .vb-dest { color: var(--accent); }
.vb-route .vb-sep { flex: 1; height: 1px; min-width: 14px; position: relative;
  background: linear-gradient(90deg, var(--ink-mute), var(--accent-dim)); opacity: 0.75; }
.vb-route .vb-sep::after { content: "▸"; position: absolute; right: -2px; top: -9px; font-size: 9px; color: var(--accent-dim); }
.vb-tagline { margin: 5px 0 0; font-size: 12px; color: var(--ink-soft); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vb-chip { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px;
  border: 1px solid transparent; white-space: nowrap; backdrop-filter: blur(4px); }
.vb-chip.underway { color: var(--accent); border-color: var(--accent-deep); background: rgba(20, 15, 6, 0.5); }
.vb-chip.planned { color: var(--ink); border-color: var(--twilight); background: rgba(10, 13, 20, 0.5); }
.vb-chip.arrived { color: var(--ok, #7fb0a3); border-color: rgba(127, 176, 163, 0.4); background: rgba(10, 20, 18, 0.5); }

.vb-body { padding: 13px 15px 14px; }
.vb-lead { margin-bottom: 13px; min-height: 22px; display: flex; align-items: baseline; gap: 8px; }
.vb-lead .big { font-size: 15px; color: var(--ink); }
.vb-lead .lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.vb-lead.count .big { color: var(--warn); }
.vb-lead.arr .big { color: var(--ok, #7fb0a3); }
.vb-meter { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 9px; }
.vb-meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.vb-meter.done > i { background: linear-gradient(90deg, rgba(127, 176, 163, 0.5), var(--ok, #7fb0a3)); }
.vb-leadwrap { margin-bottom: 13px; }

.vb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 12px; border-top: 1px solid var(--line); }
.vb-capt { font-size: 11.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-capt b { color: var(--ink); font-weight: 500; }
.vb-stack { display: flex; align-items: center; flex: none; }
.vb-av { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--bg-panel); margin-left: -7px;
  display: grid; place-items: center; font-size: 9px; font-weight: 600; color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); overflow: hidden; position: relative; flex: none; }
.vb-av:first-child { margin-left: 0; }
.vb-av img { width: 100%; height: 100%; object-fit: cover; }
.vb-av::after { content: ""; position: absolute; inset: 0; background: radial-gradient(100% 100% at 30% 22%, rgba(255, 255, 255, 0.26), transparent 55%); }
.vb-stack .more { margin-left: 6px; font-size: 11px; color: var(--ink-mute); }
.vb-seeking { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.04em; }

.vb-empty, .vb-error { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: var(--ink-mute);
  border: 1px dashed var(--line-bright); border-radius: 4px; font-size: 13px; }

/* Back-to-fleet control, shown only inside a vessel (?v=). */
.nav-fleet { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
  text-decoration: none; border: 1px solid var(--line-bright); padding: 6px 12px; border-radius: 2px;
  margin-right: auto; transition: color .3s var(--ease), border-color .3s var(--ease); }
.nav-fleet:hover { color: var(--ink); border-color: var(--twilight); }

@media (max-width: 560px) { .vb-head h1 { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { #voyage-board * { animation: none !important; transition: none !important; } }
