/* ==========================================================================
   Prime Time: the Luck Lab (/luck/).
   Page layer on top of assets/prime.css and assets/team-kits.css; every class
   is lk-*. Type stays inside the self-hosted axes (Archivo wdth 68-100 /
   wght 400-800, Instrument Sans 400-700). Volt marks the translator's score
   and tints a swap cell by its win share; nothing else is coloured.
   Layouts by width:
     1000+     the 10 x 10 swap matrix
     under 1000 boss picker + ranked list
   ========================================================================== */

/* ---------- head ---------- */
body.pt .lk-head { padding: 64px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; }
body.pt .lk-title { font-size: clamp(96px, 11vw, 150px); margin-top: 14px; }
body.pt .lk-sub { font-size: 20px; line-height: 1.5; color: var(--pt-tx2); max-width: 52ch; margin-top: 24px; text-wrap: pretty; }
body.pt .lk-jump { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 420px; }
body.pt .lk-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pt-line); color: var(--pt-tx2); font-size: 15px; font-weight: 700; }
body.pt .lk-jump a:hover { color: var(--pt-tx); border-color: var(--pt-line-2); }

/* ---------- shared pieces ---------- */
body.pt .lk-sec { scroll-margin-top: 24px; }
body.pt .lk-sec-note { font-size: 16px; line-height: 1.5; color: var(--pt-tx2); max-width: 46ch; text-wrap: pretty; }
@media (min-width: 900px) { body.pt .lk-sec-note { text-align: right; } }
body.pt .lk-method { font-size: 15px; line-height: 1.5; color: var(--pt-tx3); margin-top: 16px; text-wrap: pretty; }
body.pt .lk-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
body.pt .lk-notice strong { color: var(--pt-tx); }
body.pt .lk-face { width: 24px; height: 24px; }
body.pt .lk-skel { min-height: 420px; margin-top: 48px; }

/* ---------- the Score Translator ---------- */
body.pt .lk-tr { padding: 28px 32px 30px; display: grid; gap: 28px; }
body.pt .lk-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "label field" "range range" "help help" "presets presets"; gap: 12px 18px; align-items: center; }
body.pt .lk-label { grid-area: label; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-tx3); }
body.pt .lk-field { grid-area: field; display: flex; align-items: baseline; gap: 12px; }
body.pt .lk-input { width: 200px; min-height: 64px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--pt-line-2); background: var(--pt-bg); color: var(--pt-tx); font-size: 44px; line-height: 1; -moz-appearance: textfield; appearance: textfield; }
body.pt .lk-input::-webkit-outer-spin-button, body.pt .lk-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.pt .lk-input:focus-visible { outline: 2px solid var(--pt-ac); outline-offset: 2px; border-color: var(--pt-ac); }
body.pt .lk-unit { font-size: 17px; color: var(--pt-tx2); }
body.pt .lk-range { grid-area: range; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
body.pt .lk-range:focus-visible { outline: 2px solid var(--pt-ac); outline-offset: 4px; border-radius: 6px; }
body.pt .lk-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--pt-s2); }
body.pt .lk-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--pt-s2); }
body.pt .lk-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--pt-ac); border: 3px solid var(--pt-bg); box-shadow: 0 0 0 1px var(--pt-line-2); }
body.pt .lk-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--pt-ac); border: 3px solid var(--pt-bg); box-shadow: 0 0 0 1px var(--pt-line-2); }
body.pt .lk-help { grid-area: help; font-size: 14px; line-height: 1.45; color: var(--pt-tx3); }
body.pt .lk-presets { grid-area: presets; gap: 8px; }
body.pt .lk-preset { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; }
body.pt .lk-preset .pt-av { width: 24px; height: 24px; margin-left: -4px; }
body.pt .lk-preset-v { font-size: 15px; opacity: .8; }
body.pt .lk-preset[aria-pressed="true"] .lk-preset-v { opacity: 1; }

body.pt .lk-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.pt .lk-ft { padding: 22px 22px 22px; border: 1px solid var(--pt-line); border-radius: 14px; background: var(--pt-bg); }
body.pt .lk-fig { font-size: clamp(56px, 4.8vw, 76px); line-height: .86; letter-spacing: -.01em; color: var(--pt-tx); }
body.pt .lk-fig-of { font-size: .5em; color: var(--pt-tx2); }
body.pt .lk-fig-m { font-size: 15px; line-height: 1.5; color: var(--pt-tx2); margin-top: 12px; text-wrap: pretty; }
body.pt .lk-fig-m .pt-n { color: var(--pt-tx); font-size: 16px; }

body.pt .lk-strip { display: grid; gap: 8px; }
body.pt .lk-strip-box { position: relative; padding-top: 30px; }
body.pt .lk-strip-svg { display: block; width: 100%; height: 150px; overflow: visible; }
body.pt .lk-dots { fill: none; stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
body.pt .lk-dots-l { stroke: var(--pt-loss); }
body.pt .lk-dots-w { stroke: var(--pt-tx2); }
body.pt .lk-marker line { stroke: var(--pt-ac); stroke-width: 2px; vector-effect: non-scaling-stroke; }
body.pt .lk-marker { transition: transform .24s var(--pt-ease); }
body.pt .lk-marker-tag { position: absolute; top: 0; transform: translateX(-50%); padding: 2px 8px; border-radius: 6px; background: var(--pt-ac); color: var(--pt-ink); font-size: 15px; white-space: nowrap; transition: left .24s var(--pt-ease); }
body.pt .lk-axis { position: relative; height: 20px; border-top: 1px solid var(--pt-line); font-size: 14px; color: var(--pt-tx3); }
body.pt .lk-axis span { position: absolute; top: 4px; transform: translateX(-50%); font-family: var(--pt-display); font-stretch: 84%; font-weight: 700; font-variant-numeric: tabular-nums; }
body.pt .lk-legend { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--pt-tx3); }
body.pt .lk-key { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
body.pt .lk-key-w { background: var(--pt-tx2); }
body.pt .lk-key-l { background: var(--pt-loss); margin-left: 8px; }
body.pt .lk-extremes { font-size: 15px; line-height: 1.5; color: var(--pt-tx2); }
body.pt .lk-extremes .pt-n { color: var(--pt-tx); font-size: 16px; }
body.pt .lk-tr .lk-method { margin-top: 0; }

/* ---------- the Schedule Swap ---------- */
body.pt .lk-seasons { margin-bottom: 20px; }
body.pt .lk-season { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--pt-display); font-stretch: 84%; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 18px; padding: 0 16px; }
body.pt .lk-sofar { font-family: var(--pt-body); font-size: 14px; font-weight: 600; color: var(--pt-tx3); letter-spacing: 0; }
body.pt .lk-season[aria-selected="true"] .lk-sofar { color: var(--pt-ac); }
body.pt .lk-when { font-size: 15px; color: var(--pt-tx3); }
body.pt .lk-sentence { font-size: 20px; line-height: 1.45; color: var(--pt-tx); margin-top: 10px; max-width: 70ch; text-wrap: pretty; }
body.pt .lk-swap-body > .pt-card, body.pt .lk-list-view { margin-top: 20px; }
body.pt .lk-swap-body[aria-busy="true"] { opacity: .6; }

body.pt .lk-matrix-wrap { padding: 8px; overflow: hidden; }
body.pt .lk-matrix { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
body.pt .lk-matrix th { text-align: left; font-weight: 700; }
body.pt .lk-matrix thead th { padding: 6px 4px 10px; border-bottom: 1px solid var(--pt-line); vertical-align: bottom; }
body.pt .lk-corner { width: 210px; font-size: 14px; font-weight: 600; color: var(--pt-tx3); line-height: 1.35; padding-left: 8px; }
body.pt .lk-corner span { display: block; max-width: 200px; }
body.pt .lk-col-in { display: inline-flex; align-items: center; font-size: 14px; color: var(--pt-tx2); }
body.pt .lk-col-in .fbi-team-chip__name { color: inherit; }
body.pt .lk-matrix tbody th { padding: 0; vertical-align: middle; }
body.pt .lk-row-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 4px 8px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--pt-tx); font: inherit; text-align: left; cursor: pointer; }
body.pt .lk-row-btn:hover { border-color: var(--pt-line-2); }
body.pt .lk-row-btn[aria-pressed="true"] { border-color: var(--pt-tx); box-shadow: inset 0 0 0 1px var(--pt-tx); }
body.pt .lk-row-btn .pt-av { width: 28px; height: 28px; }
body.pt .lk-row-id { display: grid; gap: 1px; min-width: 0; }
body.pt .lk-row-n { font-size: 15px; font-weight: 700; line-height: 1.2; }
body.pt .lk-row-m { font-size: 14px; color: var(--pt-tx3); white-space: nowrap; }
body.pt .lk-row-m .pt-n { color: var(--pt-tx2); }
body.pt .lk-matrix td { padding: 0; }
body.pt .lk-cell { display: grid; place-items: center; min-height: 52px; border-radius: 8px; border: 1px solid var(--pt-line); background: color-mix(in srgb, var(--pt-ac) var(--mix, 0%), var(--pt-s1)); font-size: 16px; color: var(--pt-tx); }
body.pt .lk-cell.is-own { box-shadow: inset 0 0 0 2px var(--pt-tx); border-color: var(--pt-tx); }
body.pt .lk-matrix tr.is-picked .lk-cell { border-color: var(--pt-line-2); }
body.pt .lk-matrix tr.is-picked .lk-cell.is-own { border-color: var(--pt-tx); }

body.pt .lk-list-view { display: none; }
body.pt .lk-picker { margin: 0 calc(-1 * var(--pt-edge)); padding: 0 var(--pt-edge); }
body.pt .lk-picker-in { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
body.pt .lk-picker-in::-webkit-scrollbar { display: none; }
body.pt .lk-pk { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 48px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--pt-line); background: var(--pt-s1); color: var(--pt-tx2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
body.pt .lk-pk:hover { color: var(--pt-tx); border-color: var(--pt-line-2); }
body.pt .lk-pk[aria-pressed="true"] { border-color: var(--pt-tx); color: var(--pt-tx); box-shadow: inset 0 0 0 1px var(--pt-tx); }
body.pt .lk-pk .pt-av { width: 24px; height: 24px; }
body.pt .lk-pk-r { font-size: 16px; color: var(--pt-tx3); }
body.pt .lk-pk[aria-pressed="true"] .lk-pk-r { color: var(--pt-tx); }
body.pt .lk-list-card { padding: 16px 20px 10px; margin-top: 12px; }
body.pt .lk-list-head { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--pt-tx2); padding-bottom: 12px; border-bottom: 1px solid var(--pt-line); }
body.pt .lk-list-head .pt-av { width: 28px; height: 28px; }
body.pt .lk-list-head b { color: var(--pt-tx); }
body.pt .lk-list-head .pt-n { color: var(--pt-tx); font-size: 16px; }
body.pt .lk-list { display: flex; flex-direction: column; }
body.pt .lk-lr { display: grid; grid-template-columns: 28px minmax(0, 1fr) 96px auto; gap: 12px; align-items: center; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--pt-line); }
body.pt .lk-lr:first-child { border-top: 0; }
body.pt .lk-lr-rank { font-size: 16px; color: var(--pt-tx3); }
body.pt .lk-lr-who { font-size: 16px; color: var(--pt-tx2); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
body.pt .lk-lr.is-own .lk-lr-who { color: var(--pt-tx); font-weight: 700; }
body.pt .lk-lr-tag { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-ac); }
body.pt .lk-lr-bar { height: 10px; border-radius: 5px; background: var(--pt-s2); overflow: hidden; }
body.pt .lk-lr-fill { display: block; height: 100%; border-radius: 5px; background: var(--pt-tx2); }
body.pt .lk-lr.is-own .lk-lr-fill { background: var(--pt-ac); }
body.pt .lk-lr-rec { font-size: 20px; color: var(--pt-tx); min-width: 60px; text-align: right; }

/* ---------- the career schedule effect ---------- */
body.pt .lk-career { padding: 12px 24px 22px; }
body.pt .lk-crs { display: flex; flex-direction: column; }
body.pt .lk-cr { display: grid; grid-template-columns: 28px 32px 110px minmax(0, 1fr) 84px minmax(0, 1.2fr); grid-template-areas: "rank face name bar n m"; gap: 14px; align-items: center; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--pt-line); }
body.pt .lk-cr:first-child { border-top: 0; }
body.pt .lk-cr-rank { grid-area: rank; font-size: 16px; color: var(--pt-tx3); }
body.pt .lk-cr .pt-av { grid-area: face; width: 32px; height: 32px; }
body.pt .lk-cr-name { grid-area: name; display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; color: var(--pt-tx); }
body.pt .lk-cr-name:hover { color: var(--pt-ac); }
body.pt .lk-cr-bar { grid-area: bar; position: relative; height: 12px; border-radius: 6px; background: var(--pt-s2); }
body.pt .lk-cr-zero { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--pt-line-2); }
body.pt .lk-cr-fill { position: absolute; top: 0; bottom: 0; background: var(--pt-ac); border-radius: 0 6px 6px 0; }
body.pt .lk-cr.is-neg .lk-cr-fill { background: var(--pt-loss); border-radius: 6px 0 0 6px; }
body.pt .lk-cr-n { grid-area: n; font-size: 22px; color: var(--pt-tx); text-align: right; }
body.pt .lk-cr.is-neg .lk-cr-n { color: var(--pt-tx2); }
body.pt .lk-cr-m { grid-area: m; font-size: 14px; color: var(--pt-tx3); line-height: 1.4; }

/* ---------- responsive ---------- */
@media (max-width: 1239px) {
  body.pt .lk-head { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 48px; gap: 24px; }
  body.pt .lk-jump { justify-content: flex-start; max-width: none; }
  body.pt .lk-title { font-size: clamp(84px, 13vw, 140px); }
  body.pt .lk-cr { grid-template-columns: 28px 32px minmax(0, 1fr) 84px; grid-template-areas: "rank face name n" "rank face bar bar" "rank face m m"; gap: 6px 14px; padding: 12px 0; }
  body.pt .lk-cr-name { min-height: 44px; margin: -10px 0; }
}
@media (max-width: 999px) {
  body.pt .lk-matrix-wrap { display: none; }
  body.pt .lk-list-view { display: block; }
}
@media (max-width: 899px) {
  body.pt .lk-figs { grid-template-columns: minmax(0, 1fr); }
  body.pt .lk-ft { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 0 20px; align-items: center; }
  body.pt .lk-ft .lk-fig-m { margin-top: 0; }
}
@media (max-width: 639px) {
  body.pt .lk-head { padding-top: 36px; gap: 20px; }
  body.pt .lk-title { font-size: min(72px, 18.6vw); }
  body.pt .lk-sub { font-size: 18px; margin-top: 18px; }
  body.pt .lk-jump a { padding: 0 13px; font-size: 14px; }
  body.pt .lk-tr { padding: 20px 16px 22px; gap: 22px; }
  body.pt .lk-controls { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "field" "range" "help" "presets"; gap: 10px; }
  body.pt .lk-input { width: 100%; min-height: 60px; font-size: 40px; }
  body.pt .lk-field { flex-wrap: wrap; }
  body.pt .lk-preset { padding: 0 12px; font-size: 14px; }
  body.pt .lk-ft { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  body.pt .lk-ft .lk-fig-m { margin-top: 10px; }
  body.pt .lk-fig { font-size: 56px; }
  body.pt .lk-strip-svg { height: 120px; }
  body.pt .lk-axis span:nth-child(even) { display: none; }
  body.pt .lk-season { padding: 0 11px; font-size: 17px; gap: 5px; }
  body.pt .lk-sofar { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--pt-tx3); align-self: center; }
  body.pt .lk-season[aria-selected="true"] .lk-sofar { background: var(--pt-ac); }
  body.pt .lk-sofar-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.pt .lk-sentence { font-size: 18px; }
  body.pt .lk-list-card { padding: 14px 14px 6px; }
  body.pt .lk-lr { grid-template-columns: 24px minmax(0, 1fr) 64px auto; gap: 10px; }
  body.pt .lk-lr-who { font-size: 15px; }
  body.pt .lk-lr-rec { font-size: 18px; min-width: 52px; }
  body.pt .lk-career { padding: 8px 16px 18px; }
  body.pt .lk-cr { grid-template-columns: 24px 32px minmax(0, 1fr) 72px; gap: 6px 10px; }
  body.pt .lk-cr-n { font-size: 20px; }
}
@media (max-width: 379px) {
  body.pt .lk-title { font-size: min(60px, 17vw); }
  body.pt .lk-lr { grid-template-columns: 22px minmax(0, 1fr) 48px auto; }
}
@media (prefers-reduced-motion: reduce) {
  body.pt .lk-marker, body.pt .lk-marker-tag { transition: none; }
}
