:root {
  color-scheme: dark;
  --ink: #080a0f;
  --ink-soft: #0d1017;
  --panel: #11151d;
  --panel-raised: #171c25;
  --panel-bright: #202733;
  --line: #2a323f;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f5ef;
  --muted: #9aa3b2;
  --dim: #697382;
  --acid: #c9ff3d;
  --acid-deep: #91c719;
  --ember: #ff8847;
  --cyan: #5de1e6;
  --danger: #ff626d;
  --success: #75e69a;
  --display: "Arial Black", "Franklin Gothic Heavy", Impact, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --radius-small: 11px;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 2%, rgba(201, 255, 61, 0.095), transparent 27rem),
    radial-gradient(circle at 5% 42%, rgba(255, 136, 71, 0.07), transparent 34rem),
    var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--acid);
  color: #080a0f;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 70px;
  padding: 0 max(22px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid rgba(201, 255, 61, 0.8);
  background: #0b0e13;
  box-shadow: 0 0 22px rgba(201, 255, 61, 0.12);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  background: var(--ember);
  content: "";
  opacity: 0.75;
}

.brand-mark::before {
  width: 1px;
  height: 54px;
}

.brand-mark::after {
  width: 54px;
  height: 1px;
}

.brand-mark span {
  z-index: 1;
  transform: rotate(-45deg);
  color: var(--acid);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
}

.brand-copy {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.4px;
}

.brand-copy b {
  color: var(--acid);
  font-size: 20px;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-self: stretch;
  gap: 4px;
  margin: 0 24px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.membership-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(93, 225, 230, 0.24);
  border-radius: 99px;
  background: rgba(93, 225, 230, 0.055);
  color: var(--cyan);
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.membership-button:hover {
  border-color: var(--cyan);
  background: rgba(93, 225, 230, 0.1);
}

.membership-mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px 50% 50%;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: -0.04em;
}

.nav-link {
  position: relative;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-link::after {
  position: absolute;
  right: 13px;
  bottom: -1px;
  left: 13px;
  height: 3px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--acid);
  content: "";
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.access-locked {
  padding-right: 36px;
}

.nav-link.access-locked::before {
  position: absolute;
  top: 10px;
  right: 8px;
  padding: 2px 4px;
  border: 1px solid rgba(255, 136, 71, 0.4);
  border-radius: 4px;
  color: var(--ember);
  content: "PRO";
  font-size: 6px;
  letter-spacing: 0.08em;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 255, 61, 0.22);
  border-radius: 99px;
  background: rgba(201, 255, 61, 0.06);
  color: var(--acid);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
}

main {
  min-height: 80vh;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(40px, 8vw, 118px);
  align-items: center;
  width: min(var(--content), calc(100% - 44px));
  min-height: 580px;
  margin: 0 auto;
  padding: 72px 0 54px;
}

.hero::after {
  position: absolute;
  top: 8%;
  right: 48%;
  width: 1px;
  height: 82%;
  background: linear-gradient(transparent, var(--line), transparent);
  content: "";
  opacity: 0.65;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 750px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 245, 239, 0.72);
}

.hero-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.hero-fineprint {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 11px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #080a0f;
  box-shadow: 0 10px 32px rgba(201, 255, 61, 0.12);
}

.button-primary:hover:not(:disabled) {
  background: #dcff7d;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button-ghost:hover:not(:disabled) {
  border-color: var(--acid);
  color: var(--acid);
}

.button-wide {
  width: 100%;
  min-height: 50px;
}

.text-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.text-button:hover {
  color: var(--acid);
  text-decoration-color: var(--acid);
}

.hero-board {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 28px;
  transform: rotate(1.5deg);
  border: 1px solid rgba(201, 255, 61, 0.28);
  border-radius: 4px 34px 4px 34px;
  background: linear-gradient(145deg, rgba(24, 30, 40, 0.96), rgba(10, 13, 19, 0.98));
  box-shadow: var(--shadow), inset 0 0 70px rgba(201, 255, 61, 0.035);
}

.hero-board::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 6px;
  background: var(--ember);
  content: "";
}

.court-lines {
  position: absolute;
  inset: 0;
  opacity: 0.075;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 70px, white 71px 72px, transparent 73px),
    linear-gradient(90deg, transparent 49.8%, white 50%, transparent 50.2%);
}

.board-kicker,
.board-player,
.board-ratings,
.board-signal {
  position: relative;
  z-index: 1;
}

.board-kicker {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.board-kicker b {
  color: var(--ember);
  font-size: 18px;
}

.board-player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 17px;
  align-items: center;
  margin-top: 65px;
}

.player-position {
  display: grid;
  width: 60px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--acid);
  font-family: var(--display);
  font-size: 25px;
}

.board-player strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(19px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-transform: uppercase;
}

.board-player small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fit-orbit {
  display: grid;
  width: 72px;
  height: 72px;
  place-content: center;
  border: 2px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  font-family: var(--display);
  font-size: 27px;
  line-height: 0.9;
  text-align: center;
  box-shadow: 0 0 24px rgba(201, 255, 61, 0.15);
}

.fit-orbit small {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--body);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.board-ratings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 55px;
  background: var(--line);
}

.board-ratings div {
  padding: 17px 14px;
  background: rgba(13, 16, 23, 0.95);
}

.board-ratings span,
.board-ratings strong {
  display: block;
}

.board-ratings span {
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.board-ratings strong {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 25px;
}

.board-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 9px;
}

.board-signal span {
  width: 35px;
  height: 2px;
  background: var(--acid);
}

.intel-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--content), calc(100% - 44px));
  margin: 0 auto;
  border-block: 1px solid var(--line);
}

.intel-strip div {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 13px;
  padding: 16px 24px;
  border-right: 1px solid var(--line);
}

.intel-strip div:last-child {
  border-right: 0;
}

.intel-strip strong {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 28px);
  white-space: nowrap;
}

.intel-strip span {
  color: var(--dim);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.truth-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(var(--content), calc(100% - 44px));
  margin: 20px auto 0;
  padding: 12px 15px;
  border: 1px solid rgba(255, 136, 71, 0.22);
  border-left: 3px solid var(--ember);
  background: rgba(255, 136, 71, 0.04);
}

.truth-banner p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.truth-banner strong {
  color: var(--text);
}

.truth-banner button {
  border: 0;
  background: transparent;
  color: var(--ember);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.truth-icon {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--ember);
  border-radius: 50%;
  color: var(--ember);
  font-size: 11px;
  font-weight: 900;
}

.view {
  display: none;
  width: min(var(--content), calc(100% - 44px));
  margin: 0 auto;
  padding: 76px 0 110px;
}

.view.active {
  display: block;
  animation: view-in 280ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(35px, 4.4vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-index {
  color: var(--line);
  font-family: var(--display);
  font-size: 52px;
  line-height: 0.8;
}

.builder-layout,
.jumpshot-layout,
.data-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 0.62fr);
  gap: 22px;
  align-items: start;
}

.control-panel,
.result-panel,
.compare-panel,
.data-card,
.import-card,
.shot-readout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 21, 29, 0.94);
  box-shadow: var(--shadow);
}

.control-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span,
.panel-heading strong {
  display: block;
}

.panel-heading span {
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.panel-heading strong {
  margin-top: 2px;
  font-size: 14px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span,
.range-field label,
.priority-fieldset legend,
.inline-field {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.field select,
.inline-field select {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 15px) 51% / 5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 10px) 51% / 5px 5px no-repeat,
    var(--ink-soft);
  color: var(--text);
  font-size: 12px;
}

.field select:disabled {
  color: var(--dim);
  opacity: 0.7;
}

.field small {
  display: block;
  min-height: 30px;
  margin-top: 6px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.45;
}

.range-field {
  margin: 20px 0;
}

.range-field > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-field output {
  color: var(--acid);
  font-family: var(--display);
  font-size: 14px;
}

input[type="range"] {
  width: 100%;
  height: 5px;
  margin: 13px 0 0;
  border-radius: 99px;
  appearance: none;
  background: linear-gradient(90deg, var(--acid) var(--range-progress, 50%), var(--panel-bright) var(--range-progress, 50%));
}

input[type="range"]::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  appearance: none;
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
  cursor: grab;
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
  cursor: grab;
}

.muted-range input[type="range"] {
  filter: grayscale(1);
  opacity: 0.45;
}

.priority-fieldset {
  margin: 20px 0 22px;
  padding: 0;
  border: 0;
}

.priority-fieldset legend {
  width: 100%;
  margin-bottom: 10px;
}

.priority-fieldset legend small {
  float: right;
  color: var(--dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.priority-grid label {
  position: relative;
}

.priority-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.priority-grid span {
  display: grid;
  min-height: 35px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--ink-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.priority-grid input:focus-visible + span {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.priority-grid input:checked + span {
  border-color: var(--acid);
  background: rgba(201, 255, 61, 0.09);
  color: var(--acid);
}

.result-panel {
  min-height: 780px;
  overflow: hidden;
}

.result-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(201, 255, 61, 0.08), transparent 42%),
    var(--panel-raised);
}

.result-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--acid));
  content: "";
}

.result-hero h3 {
  max-width: 600px;
  margin: 3px 0 6px;
  font-family: var(--display);
  font-size: clamp(25px, 3.3vw, 39px);
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.result-model {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.fit-score {
  display: grid;
  width: 86px;
  height: 86px;
  place-content: center;
  border: 2px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  font-family: var(--display);
  font-size: 31px;
  line-height: 0.9;
  text-align: center;
  box-shadow: 0 0 30px rgba(201, 255, 61, 0.11);
}

.fit-score small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.dimension-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.dimension-row div {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.dimension-row div:last-child {
  border-right: 0;
}

.dimension-row span,
.dimension-row strong {
  display: block;
}

.dimension-row span {
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dimension-row strong {
  margin-top: 3px;
  font-size: 12px;
}

.result-body {
  padding: 24px 28px 28px;
}

.result-section + .result-section {
  margin-top: 26px;
}

.result-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.result-section-title h4 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-section-title span {
  color: var(--dim);
  font-size: 9px;
}

.badge-fit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.badge-fit {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--ink-soft);
}

.badge-fit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge-fit strong {
  font-size: 11px;
}

.badge-fit b {
  color: var(--acid);
  font-family: var(--display);
  font-size: 17px;
}

.badge-fit span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.attribute-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.attribute-group h5 {
  margin: 0 0 9px;
  color: var(--ember);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.attribute-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 34px 34px;
  gap: 8px;
  align-items: center;
  margin: 7px 0;
}

.attribute-row > span:first-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attribute-value {
  color: var(--text);
  font-family: var(--display);
  font-size: 11px;
  text-align: right;
}

.attribute-cap {
  color: var(--dim);
  font-size: 8px;
  text-align: right;
}

.attribute-track {
  grid-column: 1 / -1;
  position: relative;
  height: 3px;
  margin-top: -3px;
  background: var(--panel-bright);
}

.attribute-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--acid-deep), var(--acid));
}

.attribute-track i {
  position: absolute;
  top: -2px;
  width: 1px;
  height: 7px;
  background: var(--ember);
}

.build-readout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.readout-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.readout-card span {
  display: block;
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.readout-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 11px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.result-disclaimer {
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 9px;
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.segmented button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}

.segmented button.active {
  background: var(--acid);
  color: var(--ink);
}

.inline-field {
  min-width: 180px;
  margin-left: auto;
}

.inline-field select {
  min-height: 38px;
}

.result-count {
  padding-bottom: 10px;
  color: var(--dim);
  font-size: 10px;
  white-space: nowrap;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.build-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--panel);
  transition: transform 160ms ease, border-color 160ms ease;
}

.build-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 255, 61, 0.4);
}

.build-card::after {
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(201, 255, 61, 0.12);
  border-radius: 50%;
  content: "";
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mode-chip,
.tag,
.lock-chip {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-fit {
  color: var(--acid);
  font-family: var(--display);
  font-size: 20px;
}

.build-card h3 {
  margin: 24px 0 8px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.build-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.card-dimensions {
  display: flex;
  gap: 9px;
  margin: 17px 0;
  padding-block: 11px;
  border-block: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 9px;
}

.card-dimensions strong {
  color: var(--text);
}

.key-attribute-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.key-attribute-list div {
  padding: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}

.key-attribute-list span,
.key-attribute-list strong {
  display: block;
}

.key-attribute-list span {
  overflow: hidden;
  color: var(--dim);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-attribute-list strong {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.tag {
  min-height: 19px;
  border-color: rgba(255, 136, 71, 0.2);
  color: var(--ember);
}

.card-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}

.card-actions .button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 9px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.icon-button:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.compare-panel {
  margin-top: 28px;
  padding: 22px;
}

.empty-state {
  padding: 36px 20px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--dim);
  font-size: 11px;
  text-align: center;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 10px;
}

.compare-table th,
.compare-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-table th:not(:first-child) {
  color: var(--acid);
}

.compare-table td:not(:first-child) {
  color: var(--text);
  font-weight: 750;
}

.compare-remove-row {
  display: flex;
  justify-content: end;
  gap: 8px;
  margin-top: 12px;
}

.compare-remove-row button {
  border: 0;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 9px;
}

.compare-remove-row button:hover {
  color: var(--danger);
}

.badge-overview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 25px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.badge-count-orbit {
  display: grid;
  width: 108px;
  height: 108px;
  place-content: center;
  border: 2px solid var(--acid);
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 0 35px rgba(201, 255, 61, 0.1);
}

.badge-count-orbit strong {
  color: var(--acid);
  font-family: var(--display);
  font-size: 42px;
  line-height: 0.9;
}

.badge-count-orbit span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.badge-overview h3 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 25px;
  text-transform: uppercase;
}

.badge-overview p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.completeness-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--panel-bright);
}

.completeness-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  transition: width 450ms ease;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 18px;
}

.badge-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--panel);
}

.badge-card::after {
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(201, 255, 61, 0.1);
  border-radius: 50%;
  content: "";
}

.badge-symbol {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(201, 255, 61, 0.35);
  border-radius: 50% 50% 50% 9px;
  color: var(--acid);
  font-family: var(--display);
  font-size: 19px;
}

.badge-card h3 {
  margin: 26px 0 8px;
  font-family: var(--display);
  font-size: 25px;
  text-transform: uppercase;
}

.badge-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.badge-meta {
  display: flex;
  gap: 7px;
  margin-top: 20px;
}

.badge-meta span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--dim);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-card.pending {
  border-style: dashed;
  background: rgba(17, 21, 29, 0.55);
}

.badge-card.pending .badge-symbol {
  border-color: var(--line);
  color: var(--dim);
}

.jumpshot-layout {
  grid-template-columns: minmax(340px, 0.43fr) minmax(0, 0.57fr);
}

.lock-chip {
  border-color: rgba(255, 136, 71, 0.28);
  color: var(--ember) !important;
}

.shot-readout {
  min-height: 560px;
  padding: 40px;
}

.radar-placeholder {
  position: relative;
  display: grid;
  width: 240px;
  height: 240px;
  margin: 12px auto 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(30deg, transparent 49.7%, var(--line) 50%, transparent 50.3%),
    linear-gradient(90deg, transparent 49.7%, var(--line) 50%, transparent 50.3%),
    linear-gradient(150deg, transparent 49.7%, var(--line) 50%, transparent 50.3%);
}

.radar-placeholder::before,
.radar-placeholder::after {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.radar-placeholder::before { inset: 40px; }
.radar-placeholder::after { inset: 80px; }

.radar-placeholder span {
  z-index: 1;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-soft);
  color: var(--dim);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.shot-readout h3,
.import-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.shot-readout > p:not(.eyebrow),
.import-card > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.shot-record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.shot-metric {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-soft);
}

.shot-metric span,
.shot-metric strong {
  display: block;
}

.shot-metric span {
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot-metric strong {
  margin-top: 6px;
  color: var(--acid);
  font-family: var(--display);
  font-size: 21px;
}

.data-layout {
  grid-template-columns: minmax(0, 0.66fr) minmax(310px, 0.34fr);
}

.data-main {
  display: grid;
  gap: 16px;
}

.data-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.data-stat {
  min-height: 125px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--panel);
}

.data-stat span,
.data-stat strong,
.data-stat small {
  display: block;
}

.data-stat span {
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-stat strong {
  margin-top: 13px;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.05;
  text-transform: uppercase;
}

.data-stat small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.data-card,
.import-card {
  padding: 22px;
  box-shadow: none;
}

.timeline {
  display: grid;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 0 0 22px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  position: absolute;
  top: 6px;
  bottom: -6px;
  left: 68px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-date {
  color: var(--acid);
  font-family: var(--display);
  font-size: 11px;
}

.timeline-copy {
  position: relative;
  padding-left: 14px;
}

.timeline-copy::before {
  position: absolute;
  top: 4px;
  left: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 9px var(--acid);
  content: "";
}

.timeline-copy strong,
.timeline-copy span {
  display: block;
}

.timeline-copy strong {
  font-size: 11px;
}

.timeline-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.source-list {
  display: grid;
  gap: 7px;
}

.source-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}

.source-link:hover {
  border-color: var(--acid);
  color: var(--text);
}

.source-link b {
  margin-left: auto;
  color: var(--acid);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.import-card {
  position: sticky;
  top: 92px;
  padding: 28px;
}

.file-drop {
  display: grid;
  min-height: 150px;
  margin: 22px 0 14px;
  place-content: center;
  border: 1px dashed var(--line);
  border-radius: 11px;
  background: var(--ink-soft);
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.file-drop:hover {
  border-color: var(--acid);
  background: rgba(201, 255, 61, 0.04);
}

.file-drop > span {
  color: var(--acid);
  font-size: 28px;
}

.file-drop strong {
  margin-top: 5px;
  font-size: 11px;
}

.file-drop small {
  margin-top: 4px;
  color: var(--dim);
  font-size: 8px;
}

.import-actions {
  display: grid;
  gap: 9px;
}

.import-actions .button {
  min-height: 40px;
}

.import-receipt {
  margin-top: 18px;
  padding: 11px;
  border-left: 2px solid var(--acid);
  background: rgba(201, 255, 61, 0.04);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.import-receipt.error {
  border-color: var(--danger);
  background: rgba(255, 98, 109, 0.05);
  color: #ffb0b6;
}

footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  width: min(var(--content), calc(100% - 44px));
  margin: 0 auto;
  padding: 38px 0 52px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  transform: scale(0.9);
  transform-origin: left center;
}

footer p {
  margin: 0;
  color: var(--dim);
  font-size: 9px;
}

footer > span {
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  max-width: min(380px, calc(100% - 44px));
  padding: 13px 16px;
  transform: translateY(30px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--acid);
  border-radius: 8px;
  background: #171c25;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-left-color: var(--danger);
}

.membership-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(93, 225, 230, 0.28);
  border-radius: 22px;
  background: #0d1118;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.72);
  color: var(--text);
}

.membership-dialog::backdrop {
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(8px);
}

.membership-shell {
  position: relative;
  overflow: hidden;
  padding: 38px;
  background:
    radial-gradient(circle at 100% 0, rgba(93, 225, 230, 0.12), transparent 20rem),
    linear-gradient(145deg, rgba(23, 28, 37, 0.98), rgba(9, 12, 18, 0.98));
}

.membership-shell::after {
  position: absolute;
  right: -95px;
  bottom: -95px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(201, 255, 61, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.dialog-close-form {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  margin: 0;
}

.dialog-close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 10, 15, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.membership-plan-mark,
.membership-lock-visual {
  display: grid;
  place-items: center;
  border: 1px solid rgba(93, 225, 230, 0.45);
  background: rgba(93, 225, 230, 0.055);
  color: var(--cyan);
}

.membership-plan-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 25px;
  transform: rotate(45deg);
  border-radius: 10px 50% 50%;
}

.membership-plan-mark span,
.membership-plan-mark b {
  grid-area: 1 / 1;
  transform: rotate(-45deg);
  font-family: var(--display);
}

.membership-plan-mark span {
  font-size: 29px;
}

.membership-plan-mark b {
  margin: -29px 0 0 36px;
  color: var(--acid);
  font-size: 15px;
}

.membership-dialog h2 {
  max-width: 470px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 7vw, 50px);
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-transform: uppercase;
}

.membership-description {
  max-width: 470px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.membership-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 255, 61, 0.2);
  border-radius: 9px;
  background: rgba(201, 255, 61, 0.045);
}

.membership-state span {
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.membership-state strong {
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.membership-benefits {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.membership-benefits li {
  position: relative;
  padding-left: 23px;
  color: var(--text);
  font-size: 11px;
}

.membership-benefits li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--acid);
  content: "✓";
  font-weight: 900;
}

.membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 27px;
}

.membership-security {
  max-width: 470px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 9px;
  line-height: 1.55;
}

.membership-lock-visual {
  width: 150px;
  height: 150px;
  margin: 15px auto 36px;
  border-radius: 18px 50% 50%;
  transform: rotate(45deg);
}

.membership-lock-visual span,
.membership-lock-visual small {
  grid-area: 1 / 1;
  transform: rotate(-45deg);
}

.membership-lock-visual span {
  font-family: var(--display);
  font-size: 38px;
}

.membership-lock-visual small {
  margin-top: 62px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.comparison-access-gate {
  display: grid;
  justify-items: start;
  max-width: 620px;
  gap: 9px;
  padding: 14px 0 4px;
}

.comparison-access-gate strong {
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
}

.comparison-access-gate p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.membership-mini-mark {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid rgba(93, 225, 230, 0.4);
  border-radius: 5px;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 10px;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto 1fr;
    padding: 10px 22px 0;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    min-width: 0;
    margin: 8px -22px 0;
    overflow-x: auto;
    padding: 0 22px;
  }

  .nav-link {
    min-height: 42px;
    flex: 0 0 auto;
  }

  .topbar-actions {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr 0.85fr;
    gap: 45px;
    min-height: 520px;
  }

  .hero::after {
    display: none;
  }

  .hero-board {
    min-height: 350px;
  }

  .board-player {
    grid-template-columns: auto 1fr;
    margin-top: 50px;
  }

  .fit-orbit {
    display: none;
  }

  .recommendation-grid,
  .badge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-board {
    width: min(580px, 96%);
    justify-self: center;
  }

  .intel-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .intel-strip div:nth-child(2) {
    border-right: 0;
  }

  .intel-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .builder-layout,
  .jumpshot-layout,
  .data-layout {
    grid-template-columns: 1fr;
  }

  .control-panel,
  .import-card {
    position: static;
  }

  .result-panel {
    min-height: 0;
  }

  .badge-overview {
    grid-template-columns: auto 1fr;
  }

  .completeness-meter {
    grid-column: 1 / -1;
  }

  .data-layout .import-card {
    grid-row: 1;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  footer > span {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding-inline: 14px;
  }

  .topbar-status span:last-child {
    display: none;
  }

  .topbar-status {
    min-width: 30px;
    justify-content: center;
    padding-inline: 8px;
  }

  .membership-button > span:last-child {
    display: none;
  }

  .membership-button {
    min-width: 34px;
    justify-content: center;
    padding-inline: 6px;
  }

  .membership-shell {
    padding: 30px 22px;
  }

  .membership-state {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .primary-nav {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .hero,
  .intel-strip,
  .truth-banner,
  .view,
  footer {
    width: min(100% - 28px, var(--content));
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 62px);
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-board {
    width: 100%;
    min-height: 320px;
    padding: 20px;
    transform: none;
  }

  .player-position {
    width: 52px;
    height: 60px;
  }

  .board-player strong {
    font-size: 19px;
  }

  .board-ratings {
    margin-top: 42px;
  }

  .board-ratings div {
    padding-inline: 10px;
  }

  .intel-strip div {
    min-height: 74px;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 2px;
    padding: 13px;
  }

  .truth-banner {
    align-items: start;
  }

  .truth-banner button {
    display: none;
  }

  .view {
    padding: 56px 0 80px;
  }

  .section-heading {
    position: relative;
    align-items: start;
    padding-right: 48px;
  }

  .section-index {
    position: absolute;
    top: 4px;
    right: 0;
    font-size: 38px;
  }

  .two-column,
  .attribute-groups,
  .recommendation-grid,
  .badge-grid,
  .data-summary {
    grid-template-columns: 1fr;
  }

  .priority-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-hero {
    padding: 22px;
  }

  .fit-score {
    width: 70px;
    height: 70px;
    font-size: 25px;
  }

  .dimension-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .dimension-row div:nth-child(2) {
    border-right: 0;
  }

  .dimension-row div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .result-body {
    padding: 20px;
  }

  .badge-fit-row {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segmented button {
    flex: 1 0 auto;
  }

  .inline-field {
    width: 100%;
    margin-left: 0;
  }

  .result-count {
    padding: 0;
  }

  .badge-overview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .badge-count-orbit {
    margin: auto;
  }

  .shot-readout {
    padding: 25px;
  }

  .radar-placeholder {
    width: 210px;
    height: 210px;
  }

  .shot-record-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
