/* Fleet vs X pages (/vs/). Loads after /fleet.css and only adds what these pages need. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav a[aria-current] { color: var(--parchment); }

/* tap targets: the shared header and footer, at 44px on these pages */
.top .btn { min-height: 44px; }
.brand { min-height: 44px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .links a { display: inline-flex; align-items: center; min-height: 44px; }

/* breadcrumb */
.crumbs { font-size: 12px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "▶"; font-size: 9px; color: var(--brass); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fog); text-decoration: none; }
.crumbs a:hover { color: var(--flare); }
.crumbs [aria-current] { color: var(--parchment); }

/* ---------- the select screen ---------- */
.arena {
  position: relative; overflow: hidden; border-block: 2px solid var(--rigging); padding: 18px 0 28px;
  background:
    linear-gradient(rgba(34,56,90,.5) 1px, transparent 1px) 0 0/100% 40px,
    linear-gradient(90deg, rgba(34,56,90,.5) 1px, transparent 1px) 0 0/40px 100%,
    radial-gradient(ellipse at 50% 40%, #1b3f6e, #0b1626 72%);
}
.arena::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg,rgba(0,0,0,.2) 0 1px,transparent 1px 3px); }
.arena > .wrap { position: relative; z-index: 1; }
.arena-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.arena-top .p { font: 15px/1 var(--f-hud); letter-spacing: .08em; padding: 5px 8px; border: 2px solid currentColor; }
.arena-top .p1 { color: var(--brass); }
.arena-top .p2 { color: var(--hull); }
.arena h1 { text-align: center; font-size: 13px; letter-spacing: .14em; color: var(--parchment); }
@media (min-width: 720px) { .arena h1 { font-size: 16px; } .arena { padding: 26px 0 40px; } }

.bout { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: start; gap: 6px; margin-top: 18px; }
@media (min-width: 720px) { .bout { gap: 28px; margin-top: 24px; } }
.pod { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; text-align: center; }
.pic { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1/1; background: var(--abyss); border: 3px solid var(--hull); box-shadow: 0 0 0 3px var(--deep); }
.p1 .pic, .pic.p1 { border-color: var(--brass); box-shadow: 0 0 0 3px var(--deep), 0 0 28px rgba(212,162,76,.35); }
.pic fleet-scene, .pic canvas.still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pic canvas.still { image-rendering: pixelated; }
.pic.flip fleet-scene, .pic.flip canvas.still { transform: scaleX(-1); }
.pic .fb { position: absolute; inset: 0; display: grid; place-items: center; }
.pic .fb svg { width: 72%; height: auto; }
.pic .badge { position: absolute; left: 6px; top: 6px; z-index: 2; font: 12px/1 var(--f-hud); letter-spacing: .06em; padding: 4px 6px; background: var(--hull); color: var(--abyss); }
.p1 .pic .badge { background: var(--brass); }
.plate { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.plate .nm { font-size: clamp(14px, 3.6vw, 40px); line-height: 1.05; max-width: 100%; }
.plate .nm.long { font-size: clamp(12px, 3.1vw, 34px); }
.plate .vkind { font-size: 11px; color: var(--fog); }
@media (min-width: 720px) { .plate .vkind { font-size: 13px; } }
.quip { font-size: 13px; line-height: 1.35; color: var(--parchment); max-width: 30ch; }
@media (min-width: 720px) { .quip { font-size: 16px; } }
.bout .vs-mark { align-self: center; margin-bottom: 18%; }
.vs-mark { font-size: clamp(40px, 12vw, 150px); line-height: .95; letter-spacing: -.04em; transform: rotate(-8deg); padding: 0 .12em 0 0; filter: drop-shadow(0 2px 0 #3a2a0a) drop-shadow(0 5px 0 var(--deep)); }

/* tale of the tape */
.tape { margin-top: 26px; padding: 14px 12px 6px; }
@media (min-width: 720px) { .tape { margin-top: 36px; padding: 18px 22px 10px; } }
.tape-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 10px; }
.tape-head .hud { color: var(--flare); font-size: 15px; }
.stat { padding: 12px 0 14px; border-top: 1px solid rgba(223,228,238,.22); }
.stat .lb { text-align: center; font-family: var(--f-hud); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.stat .lb small { display: block; margin-top: 3px; font: 11px/1.2 var(--f-mono); letter-spacing: 0; text-transform: none; color: var(--dialog-edge); opacity: .7; }
.duel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 12px; margin-top: 9px; }
@media (min-width: 720px) { .duel { gap: 8px 28px; } }
.side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.side.s1 { text-align: right; }
.bar { height: 16px; display: flex; border: 2px solid var(--deep); background: rgba(6,11,19,.7); }
.s1 .bar { justify-content: flex-end; }
.bar i { display: block; width: var(--v); background: repeating-linear-gradient(90deg,#f3cf7e 0 8px,#8a6420 8px 10px); transition: width .9s steps(10); }
.s2 .bar i { background: repeating-linear-gradient(90deg,#eef0f5 0 8px,#5d6374 8px 10px); }
.tape.armed .bar i { width: 0; }
.tape.armed.on .bar i { width: var(--v); }
.val { font-size: 13px; line-height: 1.35; overflow-wrap: break-word; }
@media (min-width: 720px) { .val { font-size: 15px; } }
.side.lead .val b { color: var(--sonar); }
.side .val b { font-weight: 700; }
.who-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 8px; font: 12px/1 var(--f-hud); letter-spacing: .08em; text-transform: uppercase; }
.who-row span:first-child { text-align: right; color: var(--brass); }
.who-row span:last-child { color: var(--hull-hi); }

/* one line and Set sail, under the boats */
.pitch { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 22px; text-align: center; }
.pitch p { font-size: 17px; line-height: 1.4; max-width: 34em; color: var(--parchment); }
@media (min-width: 720px) { .pitch { margin-top: 30px; } .pitch p { font-size: 20px; } }

/* ---------- comparison table ---------- */
.cmp-wrap { margin-top: 32px; }
.cmp { width: 100%; border-collapse: collapse; background: var(--panel); border: 2px solid; border-color: var(--tile-hi) var(--deep) var(--deep) var(--tile-hi); }
.cmp th, .cmp td { padding: 12px 14px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--rigging); font-size: 15px; line-height: 1.45; }
.cmp thead th { font: 13px/1.2 var(--f-hud); letter-spacing: .08em; text-transform: uppercase; background: var(--deep); color: var(--fog); }
.cmp thead th.f { color: var(--brass); }
.cmp tbody th { font-weight: 700; width: 20%; color: var(--parchment); }
.cmp td { width: 40%; }
.cmp td.win { background: rgba(79,240,176,.06); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.edge { display: inline-block; margin-left: 6px; font: 11px/1 var(--f-hud); letter-spacing: .06em; padding: 3px 5px; border: 1px solid var(--sonar); color: var(--sonar); vertical-align: 2px; white-space: nowrap; }
@media (max-width: 719px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { border-bottom: 2px solid var(--rigging); padding: 4px 0 8px; }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp tbody th { border: 0; padding: 12px 14px 2px; font-size: 16px; width: auto; }
  .cmp td { border: 0; padding: 6px 14px; width: auto; }
  .cmp td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 11px/1.2 var(--f-hud); letter-spacing: .08em; text-transform: uppercase; color: var(--fog); }
  .cmp td.f::before { color: var(--brass); }
}

/* the hub's wide table scrolls inside itself on narrow screens */
.scroller { overflow-x: auto; margin-top: 32px; border: 2px solid; border-color: var(--tile-hi) var(--deep) var(--deep) var(--tile-hi); background: var(--panel); }
.scroller:focus-visible { outline-offset: 2px; }
.glance { border: 0; min-width: 760px; }
.glance th, .glance td { font-size: 14px; }
.glance tbody th { position: sticky; left: 0; z-index: 1; background: var(--panel); width: 150px; min-width: 150px; box-shadow: 2px 0 0 var(--rigging); }
.glance thead th:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 2px 0 0 var(--rigging); }
.glance td { width: auto; }
.glance td.f { background: rgba(212,162,76,.07); }
.scroll-hint { margin-top: 8px; font-size: 12px; color: var(--fog); }
@media (min-width: 860px) { .scroll-hint { display: none; } }
@media (max-width: 719px) {
  .glance thead { display: table-header-group; }
  .glance { display: table; } .glance tbody { display: table-row-group; } .glance tr { display: table-row; padding: 0; border: 0; }
  .glance th, .glance td { display: table-cell; width: auto; }
  .glance tbody th { padding: 12px 14px; font-size: 14px; width: 120px; min-width: 120px; }
  .glance td { padding: 12px 14px; border-bottom: 1px solid var(--rigging); }
  .glance td::before { content: none; }
}

/* ---------- only on Fleet ---------- */
.only { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 900px) { .only { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; } }
.only .tile { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.only h3 { font-size: 24px; line-height: 1.1; color: var(--brass); }
.only p { font-size: 16px; line-height: 1.5; }

/* ---------- when the rival wins ---------- */
.credit { margin-top: 36px; }
.credit .window { padding: 18px; }
.credit .points li { font-size: 16px; }
.credit .window .points li::before { background: var(--flare); }

/* ---------- hub ---------- */
.hub-bout { display: grid; gap: 18px; margin-top: 18px; align-items: center; }
@media (min-width: 900px) { .hub-bout { grid-template-columns: minmax(0,.9fr) auto minmax(0,1.6fr); gap: 28px; } }
.hub-bout .p1 .pic { max-width: 300px; }
@media (max-width: 899px) { .hub-bout .p1 .pic { max-width: 200px; } .hub-bout .vs-mark { text-align: center; font-size: 56px; } }
.challengers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
@media (min-width: 900px) { .challengers { gap: 16px; } }
.card { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-width: 0; color: var(--parchment); text-decoration: none; }
.card:hover { color: var(--parchment); border-color: var(--brass) var(--deep) var(--deep) var(--brass); }
.card:hover .go, .card:focus-visible .go { color: var(--flare); }
.card .pic { max-width: none; aspect-ratio: 4/3; border-width: 2px; }
.card .nm { font-size: clamp(13px, 3.3vw, 20px); line-height: 1.05; }
.card .nm.long { font-size: clamp(11px, 2.9vw, 17px); }
.card .vkind { font-size: 11px; color: var(--fog); }
.card .quip { font-size: 13px; max-width: none; color: var(--fog); }
.card .go { margin-top: auto; font-size: 13px; color: var(--brass); }

/* ---------- other matchups, sources ---------- */
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 56px; }
.more .hud { font-size: 12px; }
.more-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.more-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--parchment); }
.more-links a:hover { color: var(--flare); }
.srcs { margin-top: 28px; }
.srcs summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font: 12.5px/1.4 var(--f-mono); color: var(--fog); }
.srcs ol { margin: 6px 0 0; padding-left: 22px; max-width: 900px; }
.srcs li { font: 12px/1.5 var(--f-mono); color: var(--fog); }
.srcs li a { display: block; padding: 6px 0; overflow-wrap: anywhere; color: var(--fog); }

.closing .press { display: inline-block; padding: 10px 0; font-size: clamp(15px, 4.2vw, 40px); white-space: nowrap; text-decoration: none; animation: vs-blink 1.3s steps(1) infinite; }
@keyframes vs-blink { 50% { opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  .bar i { transition: none; }
  .closing .press { animation: none; }
}
