/* ═══════════════════════════════════════════
 * COMPONENTS — reusable UI pieces
 * ═══════════════════════════════════════════ */

/* ─── AXIS CARDS (Section 01) ─── */
.ax {
  padding: var(--sp-4);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease-out);
}
.ax:hover {
  border-color: var(--gold-d);
  transform: translateY(-2px);
}
.ax-name {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}
.ax-desc {
  font-family: var(--serif);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-4);
  line-height: 1.35;
}
.ax-w {
  height: 5px;
  background: var(--panel2);
  border-radius: 3px;
  overflow: hidden;
  margin-top: var(--sp-3);
}
.ax-wbar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 3px;
}
.ax-wnum {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-top: var(--sp-1);
}

/* ─── HUMAN-SIZED CARDS (Section 02) ─── */
.hs {
  padding: var(--sp-6);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  text-align: center;
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease, border-color .3s ease;
  will-change: transform;
  transform-style: preserve-3d;
  cursor: default;
}
.hs:hover {
  border-color: var(--red-d);
}
.hs-num {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--red);
  line-height: 1;
  margin-bottom: var(--sp-2);
  text-shadow: 0 0 20px rgba(224,100,79,.2);
  transform: translateZ(12px);
  display: block;
}
.hs-what {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}
.hs-desc {
  font-size: var(--fs-sm);
  color: var(--ink-mid);
  line-height: 1.5;
}

/* ─── DOSSIER CARDS (Section 03) ─── */
.dos {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--dur-slow) var(--ease-out);
  position: relative;
}
.dos.podium {
  border-color: var(--gold-d);
  box-shadow: 0 0 40px rgba(221,185,110,.08);
}
.dos:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.dos-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 220px;
}
.dos-illust {
  background: #080a10;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--edge);
  overflow: hidden;
  position: relative;
}
.dos-photo {
  width: 100%;
  height: 50%;
  object-fit: cover;
  transition: filter var(--dur-slow);
  filter: saturate(.4) brightness(.9) contrast(1.05);
}
.dos:hover .dos-photo {
  filter: saturate(1) brightness(1.05) contrast(1);
}
.dos-video-wrap {
  width: 100%;
  height: 50%;
  position: relative;
  border-top: 1px solid var(--edge);
  background: #060810;
}
.dos-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dos-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,8,16,.5);
  cursor: pointer;
  transition: opacity var(--dur-base);
  z-index: 2;
}
.dos-video-play.hidden { opacity: 0; pointer-events: none; }
.dos-video-play span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(221,185,110,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A0C10;
  font-size: 16px;
  padding-left: 3px;
  box-shadow: var(--glow-gold);
  transition: transform var(--dur-fast);
}
.dos-video-play:hover span { transform: scale(1.1); }
.dos-badge {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(6,8,16,.7);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  z-index: 3;
}
.dos-sound {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(6,8,16,.75);
  border: 1px solid var(--gold-d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  z-index: 5;
  transition: all var(--dur-base);
  opacity: .8;
  color: var(--gold);
}
.dos-sound:hover {
  opacity: 1;
  background: rgba(221,185,110,.9);
  color: #0A0C10;
  transform: scale(1.1);
}
.dos-sound.playing {
  background: var(--gold);
  color: #0A0C10;
  opacity: 1;
  animation: soundPulse 1s ease-in-out infinite;
}

.dos-head {
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-8);
}
.dos-rank {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.dos-rank::before {
  content: "●";
  margin-right: var(--sp-2);
}
.dos-name {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: var(--sp-1);
}
.dos-lat {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--ink-faint);
  font-style: italic;
}
.dos-score {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 30px rgba(221,185,110,.2);
}
.dos-score-of {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  letter-spacing: .1em;
  text-align: right;
  margin-top: var(--sp-1);
}

.dos-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 var(--sp-8) var(--sp-6);
  gap: var(--sp-4);
}
.dos-fact {
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--edge);
}
.dos-fact-l {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-1);
}
.dos-fact-v {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--ink);
}

.dos-anatomy {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: var(--sp-4) var(--sp-8);
  gap: var(--sp-2);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: var(--panel2);
}
.dos-a {
  text-align: center;
  padding: var(--sp-2);
}
.dos-a-n {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  color: var(--gold);
  line-height: 1;
}
.dos-a-l {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: var(--sp-1);
}

.dos-body {
  display: grid;
  grid-template-columns: 300px 1fr 1fr;
  gap: 0;
}
.dos-radar {
  padding: var(--sp-6);
  border-right: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dos-radar svg { max-width: 100%; height: auto; }
.dos-profile, .dos-powers {
  padding: var(--sp-6);
}
.dos-profile { border-right: 1px solid var(--edge); }
.dos-prow {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: var(--sp-2) 0;
  border-bottom: 1px dashed rgba(60,68,88,.5);
  font-size: var(--fs-sm);
}
.dos-prow:last-child { border: none; }
.dos-prow-l {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.dos-prow-v { color: var(--ink); }

.dos-sect-h {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-3);
}
.dos-sect-h.rar { color: var(--purple); }
.dos-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
}
.dos-list li {
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
  position: relative;
  font-size: var(--fs-sm);
  color: var(--ink-mid);
  line-height: 1.5;
}
.dos-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--teal);
}
.dos-list.rar li::before { color: var(--purple); }

.dos-vs {
  padding: var(--sp-4);
  background: rgba(224,100,79,.06);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: var(--sp-6);
}
.dos-vs-h {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-2);
}
.dos-vs-t {
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.55;
}

.dos-curio {
  padding: var(--sp-6) var(--sp-8);
  background: var(--panel2);
  border-top: 1px solid var(--edge);
}
.dos-curio-h {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-2);
}
.dos-curio-h::before { content: "◈ "; }
.dos-curio-t {
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.6;
}
.dos-tag {
  padding: var(--sp-3) var(--sp-8);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--ink-faint);
  border-top: 1px solid var(--edge);
}

/* ─── LEADERBOARD (Section 04) ─── */
.sortbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.sb {
  padding: var(--sp-2) var(--sp-4);
  background: var(--panel);
  border: 1px solid var(--edge);
  color: var(--ink-mid);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.sb:hover { border-color: var(--gold-d); color: var(--ink); }
.sb.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}
.board {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  overflow: hidden;
}
.brow {
  display: grid;
  grid-template-columns: 40px 220px 1fr 100px;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-6);
  border-bottom: 1px solid var(--edge);
  align-items: center;
  transition: background var(--dur-fast);
}
.brow:last-child { border: none; }
.brow:hover { background: var(--panel2); }
.brow.top { border-left: 2px solid var(--gold); }
.brk {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  letter-spacing: .1em;
}
.bn { font-family: var(--serif); font-size: var(--fs-md); }
.bl {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-top: 2px;
}
.bbar { display: flex; height: 22px; border-radius: var(--r-sm); overflow: hidden; }
.bseg { height: 100%; transition: opacity var(--dur-fast); }
.bseg:hover { opacity: .8; }
.bsc {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  color: var(--gold);
  text-align: right;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.legend i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* ─── SCATTER (Section 05) ─── */
.cross {
  padding: var(--sp-8);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
}
.cross-title {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  color: var(--teal);
  margin-bottom: var(--sp-3);
}
.cross-sub {
  color: var(--ink-mid);
  margin-bottom: var(--sp-8);
  max-width: 800px;
}
#scatter svg { max-width: 100%; height: auto; }

/* ─── SURVIVAL MATRIX (Section 06) ─── */
.surv-grid {
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: var(--panel);
}
.surv-table {
  min-width: 900px;
  width: 100%;
}
.surv-head, .surv-row {
  display: grid;
  grid-template-columns: 200px 320px repeat(5, 1fr);
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) var(--sp-6);
  border-bottom: 1px solid var(--edge);
}
.surv-head {
  background: var(--panel2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  padding: var(--sp-4) var(--sp-6);
}
.surv-head div { text-align: center; }
.surv-head div:first-child { text-align: left; }
.surv-row { transition: background var(--dur-fast); }
.surv-row:hover { background: var(--panel2); }
.surv-label {
  position: relative;
}
.surv-name { font-family: var(--serif); font-size: var(--fs-md); }
.surv-lat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 2px;
}
/* Floating video popup for survival section */
.surv-vid-popup {
  position: absolute;
  width: 200px;
  height: 113px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: 0 12px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(221,185,110,.2);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(6px) scale(.95);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
}
.surv-vid-popup.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.surv-vid-popup video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.surv-temp {
  height: 20px;
  background: linear-gradient(90deg, #4a90e2 0%, #5BC8B8 40%, #DDB96E 80%, #E0644F 100%);
  border-radius: var(--r-sm);
  position: relative;
  border: 1px solid var(--edge);
}
.surv-tmarker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 3px;
  background: var(--ink);
  box-shadow: 0 0 4px rgba(0,0,0,.5);
}
.surv-tmarker.human { background: var(--red); }
.surv-val {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  color: var(--gold);
  text-align: center;
}
.surv-val-l {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 2px;
}

/* ─── PLANETARY (Section 07) ─── */
.planet-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.pcard {
  padding: var(--sp-6);
  background: linear-gradient(135deg, var(--panel), var(--panel2));
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  border-top: 3px solid var(--teal);
}
.pcard-h {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-3);
}
.pcard-w {
  font-family: var(--serif);
  font-size: var(--fs-md);
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: var(--sp-3);
}
.pcard-w b { color: var(--gold); white-space: nowrap; }
.pcard-d {
  font-size: var(--fs-sm);
  color: var(--ink-mid);
  line-height: 1.55;
}

/* ─── HEAD-TO-HEAD (Section 08) ─── */
.h2h {
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 480px;
}
.h2h-side {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.h2h-center {
  padding: var(--sp-8);
  border-left: 1px solid var(--edge);
  border-right: 1px solid var(--edge);
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.h2h-select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--panel2);
  border: 1px solid var(--edge);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-6);
}
.h2h-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-d);
  margin-bottom: var(--sp-4);
  cursor: pointer;
  transition: transform var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
  box-shadow: 0 8px 24px rgba(0,0,0,.4), inset 0 1px 2px rgba(255,255,255,.1);
}
.h2h-photo:hover {
  transform: scale(1.06);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 24px rgba(221,185,110,.35);
}
.h2h-side:nth-child(3) .h2h-photo { border-color: var(--teal); }
.h2h-side:nth-child(3) .h2h-photo:hover { border-color: var(--teal); box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 24px rgba(91,200,184,.35); }
.h2h-name { font-family: var(--serif); font-size: 28px; }
.h2h-lat {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--ink-faint);
  font-style: italic;
  margin-bottom: var(--sp-6);
}
.h2h-radar { margin-bottom: var(--sp-6); }
.h2h-radar svg { width: 300px; height: 300px; max-width: 100%; }
.h2h-score {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--gold);
}
.h2h-vs {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: var(--sp-4);
}
.h2h-drow {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: var(--sp-3);
  align-items: center;
  font-family: var(--mono);
  font-size: var(--fs-xs);
}
.h2h-drow-l { color: var(--gold); letter-spacing: .1em; }
.h2h-drow-bar {
  display: flex;
  justify-content: center;
  height: 14px;
  background: rgba(60,68,88,.3);
  border-radius: 2px;
  position: relative;
}
.h2h-drow-bar-inner {
  position: absolute;
  height: 100%;
  border-radius: 2px;
}
.h2h-drow-n { text-align: right; color: var(--ink); font-weight: 500; }

/* ─── TRADE-OFFS (Section 09) ─── */
.trades { display: flex; flex-direction: column; gap: var(--sp-6); }
.trade {
  padding: var(--sp-8);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
}
.trade-title {
  font-family: var(--serif);
  font-size: var(--fs-md);
  color: var(--teal);
  margin-bottom: var(--sp-2);
}
.trade-sub {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}
.trade svg { max-width: 100%; height: auto; }

/* ─── MOST LIKELY TO ─── */
.mlt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.mlt {
  padding: var(--sp-6);
  background: linear-gradient(135deg, var(--panel), var(--panel2));
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  transition: all var(--dur-base);
  position: relative;
  cursor: default;
}
.mlt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}
.mlt:hover {
  border-color: var(--gold-d);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.mlt-icon {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: 24px;
  opacity: .6;
}
.mlt-l {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.mlt-n { font-family: var(--serif); font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.mlt-w {
  font-size: var(--fs-sm);
  color: var(--ink-mid);
  line-height: 1.55;
  margin-top: var(--sp-3);
}

/* Floating photo popup above Most Likely cards */
.mlt-photo-popup {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,.7), 0 0 0 1px rgba(221,185,110,.25);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(.88);
  transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
  z-index: 999;
}
.mlt-photo-popup.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.mlt-photo-popup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── CONFESSIONAL ─── */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.conf {
  padding: var(--sp-6);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  transition: all var(--dur-base);
}
.conf:hover {
  border-left-color: var(--teal);
  background: var(--panel2);
  transform: translateX(4px);
}
.conf-who {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.conf-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--edge);
}
.conf:hover .conf-photo { border-color: var(--gold); }
.conf-n { font-family: var(--serif); font-size: var(--fs-md); }
.conf-l {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  font-style: italic;
}
.conf-t {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink-mid);
}
.conf-t::before, .conf-t::after {
  color: var(--gold);
  font-size: 24px;
}
.conf-t::before { content: '"'; margin-right: 2px; }
.conf-t::after { content: '"'; margin-left: 2px; }

/* ─── FLOATING NAV ─── */
.fnav {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 7px;
  background:
    linear-gradient(180deg, rgba(30,36,50,.55) 0%, rgba(14,17,23,.72) 50%, rgba(30,36,50,.55) 100%),
    rgba(14,17,23,.5);
  border: 1px solid rgba(140,155,180,.22);
  border-radius: 32px;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    0 8px 24px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.4);
  animation: fnavFloat 6s ease-in-out infinite;
}
@keyframes fnavFloat {
  0%, 100% { transform: translateY(calc(-50% - 2px)); }
  50%      { transform: translateY(calc(-50% + 2px)); }
}
/* Rail behind the dots — subtle scroll spine */
.fnav::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(140,155,180,.16) 15%,
    rgba(140,155,180,.16) 85%,
    transparent 100%);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.fnav-dot {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background .3s ease;
  background: radial-gradient(circle at 32% 26%,
    color-mix(in srgb, var(--dc), white 45%) 0%,
    color-mix(in srgb, var(--dc), white 10%) 30%,
    var(--dc) 55%,
    color-mix(in srgb, var(--dc), #000 55%) 100%);
  box-shadow:
    inset 0 3px 6px rgba(255,255,255,.35),
    inset 0 -4px 8px rgba(0,0,0,.45),
    inset 0 0 0 1px color-mix(in srgb, var(--dc), white 40%),
    0 3px 10px rgba(0,0,0,.55),
    0 1px 3px rgba(0,0,0,.4);
  z-index: 1;
  opacity: .72;
  filter: saturate(.75);
}
.fnav-dot span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 4px rgba(0,0,0,.5);
  transition: transform .3s ease;
}
.fnav-dot:hover {
  transform: scale(1.28) translateX(-4px);
  opacity: 1;
  filter: saturate(1.1);
  box-shadow:
    inset 0 3px 6px rgba(255,255,255,.4),
    inset 0 -4px 8px rgba(0,0,0,.35),
    inset 0 0 0 1px color-mix(in srgb, var(--dc), white 50%),
    0 6px 18px rgba(0,0,0,.55),
    0 0 20px var(--dc),
    0 0 40px color-mix(in srgb, var(--dc), transparent 45%);
}
.fnav-dot:hover span { transform: scale(1.08); }

/* ACTIVE STATE — Clear, unmistakable, magnetic */
.fnav-dot.active {
  transform: scale(1.42) translateX(-6px);
  opacity: 1;
  filter: saturate(1.25) brightness(1.1);
  background: radial-gradient(circle at 32% 26%,
    #fff 0%,
    color-mix(in srgb, var(--dc), white 55%) 20%,
    var(--dc) 60%,
    color-mix(in srgb, var(--dc), #000 40%) 100%);
  box-shadow:
    inset 0 3px 6px rgba(255,255,255,.55),
    inset 0 -4px 8px rgba(0,0,0,.3),
    inset 0 0 0 1.5px #fff,
    0 8px 24px rgba(0,0,0,.6),
    0 0 0 3px color-mix(in srgb, var(--dc), transparent 55%),
    0 0 28px var(--dc),
    0 0 56px color-mix(in srgb, var(--dc), transparent 25%);
  animation: fnavActivePulse 2.4s ease-in-out infinite;
}
.fnav-dot.active span {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.6);
  transform: scale(1.05);
}
/* Left-side pointer — the arrow that says "you are here" */
.fnav-dot.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid var(--dc);
  filter: drop-shadow(0 0 4px var(--dc));
  animation: fnavArrowSlide .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes fnavArrowSlide {
  from { opacity: 0; transform: translate(-4px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}
@keyframes fnavActivePulse {
  0%, 100% {
    box-shadow:
      inset 0 3px 6px rgba(255,255,255,.55),
      inset 0 -4px 8px rgba(0,0,0,.3),
      inset 0 0 0 1.5px #fff,
      0 8px 24px rgba(0,0,0,.6),
      0 0 0 3px color-mix(in srgb, var(--dc), transparent 55%),
      0 0 28px var(--dc),
      0 0 56px color-mix(in srgb, var(--dc), transparent 25%);
  }
  50% {
    box-shadow:
      inset 0 3px 6px rgba(255,255,255,.55),
      inset 0 -4px 8px rgba(0,0,0,.3),
      inset 0 0 0 1.5px #fff,
      0 8px 24px rgba(0,0,0,.6),
      0 0 0 5px color-mix(in srgb, var(--dc), transparent 40%),
      0 0 36px var(--dc),
      0 0 72px color-mix(in srgb, var(--dc), transparent 10%);
  }
}

/* Section label — a mini tooltip that appears on hover / active */
.fnav-dot::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 5px 10px;
  background: rgba(14,17,23,.95);
  border: 1px solid color-mix(in srgb, var(--dc), transparent 60%);
  border-radius: 6px;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.6), 0 0 12px color-mix(in srgb, var(--dc), transparent 50%);
  z-index: 5;
}
.fnav-dot:hover::after,
.fnav-dot.active::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.fnav-dot.active::after {
  background: color-mix(in srgb, var(--dc), #0A0C10 65%);
  color: #fff;
  font-weight: 700;
}

/* ─── TOOLTIP ─── */
.tip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(14,17,23,.95);
  border: 1px solid var(--gold-d);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  max-width: 320px;
  line-height: 1.5;
  opacity: 0;
  transition: opacity var(--dur-fast);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}
.tip.show { opacity: 1; }
.tip b { color: var(--gold); }

/* ─── ONBOARDING ─── */
.onboard {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10,12,16,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: onboardIn .6s;
  cursor: pointer;
}
.onboard.hide { animation: onboardOut .4s forwards; }
.onboard-card {
  text-align: center;
  max-width: 520px;
  padding: var(--sp-12) var(--sp-10);
  background: rgba(19,24,37,.95);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.onboard-title {
  font-size: var(--fs-xl);
  color: var(--gold);
  margin-bottom: var(--sp-8);
  line-height: 1.3;
}
.onboard-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  text-align: left;
}
.onboard-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-md);
  color: var(--ink);
  line-height: 1.4;
}
.onboard-icon {
  font-size: 24px;
  min-width: 36px;
  text-align: center;
  color: var(--gold);
}
.onboard-hint {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ─── RESPONSIVE OVERRIDES ─── */
@media (max-width: 1100px) {
  .dos-top { grid-template-columns: 260px 1fr; }
  .dos-body { grid-template-columns: 260px 1fr 1fr; }
  .planet-stats { grid-template-columns: repeat(2, 1fr); }
  .mlt-grid { grid-template-columns: repeat(2, 1fr); }
  .h2h { grid-template-columns: 1fr 260px 1fr; }
}
@media (max-width: 900px) {
  .dos-top { grid-template-columns: 1fr; min-height: auto; }
  .dos-illust { flex-direction: row; height: 200px; }
  .dos-photo, .dos-video-wrap { width: 50%; height: 100%; }
  .dos-video-wrap { border-top: none; border-left: 1px solid var(--edge); }
  .dos-body { grid-template-columns: 1fr; }
  .dos-radar, .dos-profile { border-right: none; border-bottom: 1px solid var(--edge); }
  .dos-strip { grid-template-columns: repeat(3, 1fr); }
  .dos-anatomy { grid-template-columns: repeat(4, 1fr); }
  .brow { grid-template-columns: 30px 1fr 200px 70px; padding: var(--sp-2) var(--sp-4); }
  .h2h { grid-template-columns: 1fr; }
  .h2h-center { border-left: none; border-right: none; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
  .conf-grid { grid-template-columns: 1fr; }
  /* fnav tablet: smaller, compact */
  .fnav { right: 6px; gap: 3px; padding: 6px 5px; border-radius: 24px; }
  .fnav-dot { width: 32px; height: 32px; opacity: .8; }
  .fnav-dot span { font-size: 10px; }
  .fnav-dot::after { display: none; } /* hide tooltips on tablet */
  .fnav-dot.active::before { left: -10px; }
}

@media (max-width: 600px) {
  /* fnav mobile: horizontal strip at bottom of screen */
  .fnav {
    right: auto;
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    transform: none;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 3px;
    padding: 6px 8px;
    border-radius: 0;
    border-top: 1px solid rgba(140,155,180,.22);
    border-bottom: none;
    border-left: none;
    border-right: none;
    animation: none;
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    z-index: 9000;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .fnav::-webkit-scrollbar { display: none; }
  .fnav::before { display: none; } /* hide rail on mobile */
  .fnav-dot {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    opacity: .75;
  }
  .fnav-dot span { font-size: 9px; }
  .fnav-dot::after { display: none; } /* no tooltips on mobile */
  .fnav-dot::before { display: none; } /* no arrow on mobile */
  .fnav-dot.active {
    transform: scale(1.25);
    opacity: 1;
    animation: none;
    box-shadow:
      inset 0 3px 6px rgba(255,255,255,.4),
      inset 0 -4px 8px rgba(0,0,0,.3),
      0 0 14px var(--dc);
  }
  .fnav-dot:hover { transform: scale(1.1); }
  /* Extra bottom padding on main content so fnav doesn't cover it */
  main.wrap { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .dos-illust { flex-direction: column; height: auto; }
  .dos-photo, .dos-video-wrap { width: 100%; height: 180px; }
  .dos-video-wrap { border-left: none; border-top: 1px solid var(--edge); }
  .dos-strip { grid-template-columns: 1fr 1fr; padding: 0 var(--sp-4) var(--sp-4); }
  .dos-anatomy { grid-template-columns: repeat(3, 1fr); }
  .dos-head, .dos-strip, .dos-radar, .dos-profile, .dos-powers, .dos-curio { padding: var(--sp-4); }
  .dos-name { font-size: 24px; }
  .dos-score { font-size: 40px; }
  .brow { grid-template-columns: 30px 1fr 80px; }
  .bbar { display: none; }
  .planet-stats { grid-template-columns: 1fr; }
  .mlt-grid { grid-template-columns: 1fr; }

  /* H2H: stacked on mobile, photos smaller */
  .h2h { grid-template-columns: 1fr; gap: var(--sp-4); }
  .h2h-side { align-items: center; text-align: center; padding: var(--sp-4); }
  .h2h-photo { width: 90px; height: 90px; margin-bottom: var(--sp-3); }
  .h2h-name { font-size: 20px; }
  .h2h-center { padding: var(--sp-4) var(--sp-2); }
  .h2h-drow { gap: var(--sp-2); }
  .h2h-drow-l { font-size: 9px; min-width: 28px; }
  .h2h-vs { font-size: 28px; margin-bottom: var(--sp-4); }

  /* Survival matrix: scrollable on mobile — wrapper clips overflow */
  #s06 { overflow: hidden; }
  .surv-grid, #surv {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .surv-table { min-width: 540px; width: 540px; }
  .surv-head, .surv-row { min-width: 540px; width: 540px; }

  /* Scatter plot: constrain */
  #scatter svg { max-width: 100%; }

  /* Trade-offs: single column */
  .trades { grid-template-columns: 1fr !important; }

  /* Confessional: tighter */
  .conf { flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); }
  .conf-who { flex-direction: row; align-items: center; gap: var(--sp-3); }
  .conf-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  .conf-n { font-size: 16px; }
  .conf-t { font-size: var(--fs-sm); }

  /* Affiliate books: single column */
  .dos-books-list { grid-template-columns: 1fr; }

  /* Prevent horizontal overflow from wide elements */
  .dos-sig-cover { overflow: hidden; }
  img { max-width: 100%; height: auto; }
}

/* ═══ HOMO SAPIENS — reference row styling ═══ */
.brow.ref {
  background: var(--panel2);
  border-left: 3px solid var(--ink-faint);
  font-style: italic;
}
.brow.ref .brk,
.brow.ref .bn,
.brow.ref .bl,
.brow.ref .bsc {
  color: var(--ink-faint);
}
.brow.ref .bsc {
  font-style: normal;
}
.bn-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--edge);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: var(--sp-2);
  vertical-align: middle;
}

.surv-row-ref {
  background: var(--panel2);
  border-top: 1px solid var(--gold-d);
  font-style: italic;
}
.surv-row-ref .surv-name,
.surv-row-ref .surv-lat,
.surv-row-ref .surv-val,
.surv-row-ref .surv-val-l {
  color: var(--ink-faint);
}
.surv-row-ref .surv-val { font-style: normal; }
.surv-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--edge);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: var(--sp-2);
  vertical-align: middle;
}

/* Human scatter dot — subtle grey */
.scat-dot-ref circle { stroke: var(--ink-faint) !important; opacity: 0.6; }

/* ═══ EDITORIAL PULL-QUOTES ═══ */
.pquote {
  margin: var(--sp-24) auto;
  max-width: 900px;
  padding: var(--sp-10) var(--sp-8);
  text-align: center;
  position: relative;
}
.pquote::before,
.pquote::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto var(--sp-6);
  opacity: 0.5;
}
.pquote::after {
  margin: var(--sp-6) auto 0;
}
.pquote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -.015em;
  font-weight: 300;
  text-wrap: balance;
}
.pquote-text .em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.pquote-source {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: var(--sp-6);
}
@media (max-width: 900px) {
  .pquote-text { font-size: var(--fs-xl); }
  .pquote { padding: var(--sp-6) var(--sp-4); margin: var(--sp-16) auto; }
}

/* ═══ SPIRIT / FAVORITE HIGHLIGHTS ═══ */
.dos.is-spirit {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(221,185,110,.15);
}
.dos-spirit-tag {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10,12,16,.7);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  z-index: 6;
}
.brow.is-spirit .brk::before {
  content: '★';
  color: var(--gold);
  margin-right: 4px;
}
.brow.is-spirit {
  background: rgba(221,185,110,.04);
}
.mlt.is-spirit,
.conf.is-spirit {
  border-color: var(--gold);
}

/* ═══ DOSSIER RHYTHM — variable layouts by rank ═══ */

/* Rank 1 — CINEMATIC hero dossier */
.dos.dos-hero {
  border-color: var(--gold);
  box-shadow: 0 0 60px rgba(221,185,110,.12), 0 20px 60px rgba(0,0,0,.5);
}
.dos.dos-hero .dos-top {
  grid-template-columns: 1fr;
  min-height: auto;
}
.dos.dos-hero .dos-illust {
  height: 480px;
  border-right: none;
  border-bottom: 1px solid var(--edge);
  position: relative;
}
.dos.dos-hero .dos-photo {
  width: 100%;
  height: 100%;
  filter: saturate(.6) brightness(.85) contrast(1.1);
}
.dos.dos-hero .dos-video-wrap {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 260px;
  height: 146px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.dos.dos-hero .dos-badge {
  top: 8px;
  left: 8px;
  font-size: 9px;
}
.dos.dos-hero .dos-head {
  padding: var(--sp-10) var(--sp-12);
}
.dos.dos-hero .dos-name {
  font-size: 56px;
  line-height: 1.05;
}
.dos.dos-hero .dos-score {
  font-size: 88px;
}
.dos.dos-hero .dos-strip {
  padding: 0 var(--sp-12) var(--sp-10);
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-6);
}
.dos.dos-hero .dos-anatomy {
  padding: var(--sp-6) var(--sp-12);
}
.dos.dos-hero .dos-body {
  grid-template-columns: 380px 1fr 1fr;
}
.dos.dos-hero .dos-radar,
.dos.dos-hero .dos-profile,
.dos.dos-hero .dos-powers {
  padding: var(--sp-10);
}

/* Ranks 2-3 — PODIUM asymmetric */
.dos.dos-podium {
  border-color: var(--gold-d);
  box-shadow: 0 0 40px rgba(221,185,110,.06);
}
.dos.dos-podium .dos-top {
  grid-template-columns: 400px 1fr;
  min-height: 260px;
}
.dos.dos-podium .dos-name {
  font-size: 40px;
}
.dos.dos-podium .dos-score {
  font-size: 68px;
}

/* Ranks 11-16 — COMPACT card */
.dos.dos-compact .dos-top {
  min-height: 180px;
  grid-template-columns: 240px 1fr;
}
.dos.dos-compact .dos-illust {
  height: 180px;
}
.dos.dos-compact .dos-name {
  font-size: 24px;
}
.dos.dos-compact .dos-score {
  font-size: 42px;
}
.dos.dos-compact .dos-head {
  padding: var(--sp-4) var(--sp-6);
}
.dos.dos-compact .dos-strip {
  padding: 0 var(--sp-6) var(--sp-4);
}
.dos.dos-compact .dos-anatomy {
  padding: var(--sp-3) var(--sp-6);
}
.dos.dos-compact .dos-radar {
  padding: var(--sp-4);
}
.dos.dos-compact .dos-radar svg { max-width: 240px; }
.dos.dos-compact .dos-body {
  grid-template-columns: 260px 1fr 1fr;
}
.dos.dos-compact .dos-profile,
.dos.dos-compact .dos-powers {
  padding: var(--sp-4) var(--sp-6);
}
.dos.dos-compact .dos-curio {
  padding: var(--sp-4) var(--sp-6);
}

/* Responsive */
@media (max-width: 900px) {
  .dos.dos-hero .dos-illust { height: 300px; }
  .dos.dos-hero .dos-video-wrap { width: 180px; height: 101px; }
  .dos.dos-hero .dos-name { font-size: 40px; }
  .dos.dos-hero .dos-score { font-size: 60px; }
  .dos.dos-hero .dos-head,
  .dos.dos-hero .dos-strip,
  .dos.dos-hero .dos-radar,
  .dos.dos-hero .dos-profile,
  .dos.dos-hero .dos-powers { padding: var(--sp-6); }
  .dos.dos-hero .dos-body { grid-template-columns: 1fr; }
  .dos.dos-podium .dos-top { grid-template-columns: 1fr; }
  .dos.dos-compact .dos-top { grid-template-columns: 1fr; }
  .dos.dos-compact .dos-body { grid-template-columns: 1fr; }
}

/* ═══ SIGNATURE DOSSIER — magazine cover treatment for rank 1 ═══ */
.dos.dos-signature {
  border: none;
  background: transparent;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: var(--sp-24);
}
.dos-sig-cover {
  position: relative;
  height: 92vh;
  min-height: 720px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #000;
  box-shadow:
    0 2px 8px rgba(0,0,0,.3),
    0 12px 32px rgba(0,0,0,.35),
    0 40px 80px rgba(0,0,0,.45),
    0 0 60px rgba(221,185,110,.06);
}
.dos-sig-photo,
.dos-sig-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dos-sig-photo {
  object-fit: cover;
  z-index: 1;
  filter: saturate(.85) brightness(.8) contrast(1.05);
  animation: sigKenBurns 32s ease-in-out infinite alternate;
}
@keyframes sigKenBurns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.16); }
}
.dos-sig-video-wrap {
  z-index: 2;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
  pointer-events: none;
}
.dos-sig-video-wrap.play {
  opacity: 1;
}
.dos-sig-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.dos-sig-overlay {
  position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(180deg,
      rgba(10,12,16,0.6) 0%,
      rgba(10,12,16,0.2) 25%,
      rgba(10,12,16,0.1) 55%,
      rgba(10,12,16,0.85) 100%),
    linear-gradient(90deg,
      rgba(10,12,16,0.55) 0%,
      transparent 40%,
      transparent 60%,
      rgba(10,12,16,0.55) 100%);
}
.dos-sig-vignette {
  position: absolute; inset: 0; z-index: 4;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(10,12,16,0.55) 100%);
  pointer-events: none;
}

/* Masthead — top strip */
.dos-sig-masthead {
  position: absolute;
  top: var(--sp-8);
  left: 0; right: 0;
  z-index: 5;
  padding: 0 var(--sp-10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.dos-sig-mast-l {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.dos-sig-rank-tag {
  color: var(--gold);
  font-weight: 700;
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 1px;
  letter-spacing: .35em;
}
.dos-sig-sep { color: var(--ink-faint); opacity: .5; }
.dos-sig-order { color: var(--ink-mid); font-style: italic; text-transform: none; font-family: var(--serif); letter-spacing: .05em; font-size: 12px; }
.dos-sig-mast-r .dos-sound {
  position: static;
  width: auto;
  height: auto;
  padding: 6px 14px;
  border-radius: 2px;
  background: rgba(14,17,23,.6);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  border: 1px solid var(--gold-d);
  backdrop-filter: blur(8px);
  opacity: 1;
}

/* Title block — center-left */
.dos-sig-titleblock {
  position: absolute;
  left: var(--sp-12);
  bottom: 42%;
  z-index: 5;
  max-width: 700px;
}
.dos-sig-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.dos-sig-name {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 110px);
  line-height: .92;
  letter-spacing: -.04em;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
  font-optical-sizing: auto;
}
.dos-sig-name span { display: block; }
.dos-sig-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  display: block;
}
.dos-sig-lat {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mid);
  font-style: italic;
  letter-spacing: .12em;
}

/* Score block — right side */
.dos-sig-score-wrap {
  position: absolute;
  right: var(--sp-12);
  bottom: 42%;
  z-index: 5;
  text-align: right;
  max-width: 300px;
}
.dos-sig-score {
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 160px);
  line-height: 1;
  color: var(--gold);
  font-weight: 400;
  text-shadow:
    0 0 30px rgba(221,185,110,.3),
    0 0 60px rgba(221,185,110,.15),
    0 2px 4px rgba(0,0,0,.4);
  letter-spacing: -.05em;
  font-optical-sizing: auto;
}
.dos-sig-score-of {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .35em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: var(--sp-1);
}
.dos-sig-score-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: var(--sp-4) 0 var(--sp-3);
  margin-left: auto;
  opacity: 0.6;
}
.dos-sig-score-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.45;
}

/* Bottom stats strip */
.dos-sig-strip {
  position: absolute;
  left: var(--sp-12);
  right: var(--sp-12);
  bottom: var(--sp-10);
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(221,185,110,.3);
  border-bottom: 1px solid rgba(221,185,110,.3);
  padding: var(--sp-4) 0;
}
.dos-sig-stat {
  padding: 0 var(--sp-4);
  text-align: left;
  border-left: 1px solid rgba(255,255,255,.06);
}
.dos-sig-stat:first-child { border-left: none; padding-left: 0; }
.dos-sig-stat-v {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}
.dos-sig-stat-v small {
  font-size: 14px;
  color: var(--ink-mid);
  margin-left: 4px;
  font-style: italic;
}
.dos-sig-stat-l {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Detail body under signature cover */
.dos.dos-signature .dos-body {
  margin-top: var(--sp-8);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
}
.dos.dos-signature .dos-curio {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: var(--sp-6) var(--sp-8);
}

@media (max-width: 900px) {
  .dos-sig-cover { height: 80vh; min-height: 620px; }
  .dos-sig-masthead { padding: 0 var(--sp-6); font-size: 8px; }
  .dos-sig-order { display: none; }
  .dos-sig-titleblock {
    left: var(--sp-6);
    right: var(--sp-6);
    bottom: auto;
    top: 25%;
    max-width: none;
  }
  .dos-sig-score-wrap {
    right: var(--sp-6);
    left: var(--sp-6);
    bottom: 25%;
    top: auto;
    text-align: left;
  }
  .dos-sig-score-rule { margin-left: 0; }
  .dos-sig-strip {
    left: var(--sp-4); right: var(--sp-4);
    bottom: var(--sp-6);
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
  }
  .dos-sig-stat:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
  .dos-sig-name { font-size: 48px; }
  .dos-sig-score { font-size: 80px; }
  .dos-sig-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .dos-sig-stat:nth-child(n+3) { display: none; }
}

/* ═══ FURTHER READING — affiliate panel ═══ */
.dos-books {
  padding: var(--sp-6) var(--sp-8);
  background: var(--panel2);
  border-top: 1px solid var(--edge);
}
.dos-books-h {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.dos-books-h::before { content: "◈ "; }
.dos-books-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.dos-book {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.dos-book:hover {
  border-color: var(--gold-d);
  background: var(--gold-soft);
  transform: translateY(-2px);
}
.dos-book-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.dos-book-title {
  font-size: var(--fs-sm);
  color: var(--ink-mid);
  line-height: 1.35;
  flex: 1;
}
.dos-book:hover .dos-book-title { color: var(--ink); }
.dos-book-arrow {
  color: var(--gold);
  font-size: var(--fs-sm);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--dur-base);
  flex-shrink: 0;
}
.dos-book:hover .dos-book-arrow {
  opacity: 1;
  transform: translateX(0);
}
.dos-books-disc {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin-top: var(--sp-3);
  text-transform: uppercase;
  opacity: .7;
}
@media (max-width: 900px) {
  .dos-books-list { grid-template-columns: 1fr; }
}
