:root {
  --ink: #17233b;
  --muted: #667085;
  --paper: #f7f6ef;
  --white: #fffefa;
  --blue: #2764f0;
  --yellow: #ffd84d;
  --coral: #ff6a5c;
  --line: #d9dddf;
  --shadow: 0 16px 36px rgba(24, 34, 54, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #eaf8ff;
  font-family: "DM Sans", system-ui, sans-serif;
}

button, a { font: inherit; }
button { color: inherit; }

.app-shell {
  min-height: 100vh;
  background-color: #f8fbf4;
  background-image:
    linear-gradient(rgba(36, 62, 97, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 62, 97, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.brand-block {
  border-radius: 5px;
  color: white;
  background: var(--ink);
  padding: 8px 9px;
  font-size: 12px;
  letter-spacing: 0;
}

.round-status, .question-kicker, .deck-label, .match-eyebrow, .reveal-copy p {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.round-status { color: var(--muted); }

.icon-button, .back-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.icon-button { justify-self: end; }

.cover-view {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: url("./assets/cover-engineer-world.jpg") 75% center / cover no-repeat;
}
.cover-view::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(760px, 58vw);
  border-right: 1px solid rgba(255, 255, 255, .6);
  background: rgba(248, 251, 244, .84);
  box-shadow: 28px 0 50px rgba(248, 251, 244, .24);
  backdrop-filter: blur(5px);
  pointer-events: none;
}
.cover-copy { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 70px; }
.cover-copy > * { max-width: min(540px, calc(58vw - 40px)); }
.cover-copy > p:first-child { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 900; }
.cover-copy h1 { margin: 0; font: 900 68px/.94 "Figtree", sans-serif; letter-spacing: 0; text-shadow: 0 2px 0 rgba(255,255,255,.72), 0 0 30px rgba(255,255,255,.88); }
.cover-copy > p:nth-of-type(2) { margin: 20px 0 26px; color: #26344c; font-size: 18px; font-weight: 700; line-height: 1.45; text-shadow: 0 1px 10px rgba(255,255,255,.9); }
.cover-start { min-height: 52px; border: 1px solid var(--ink); border-radius: 7px; padding: 0 22px; color: white; background: var(--ink); cursor: pointer; font-size: 15px; font-weight: 900; }
.cover-start:hover { transform: translateY(-2px); }
.cover-start:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
.cover-copy > span { display: block; margin-top: 11px; color: #344056; font-size: 11px; font-weight: 800; }

.quiz-view {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 34px;
}

.question-copy { position: relative; padding: 0 56px; text-align: center; }
.question-back { position: absolute; top: 6px; left: 0; z-index: 2; }

.question-copy h1, .reveal-copy h1 {
  margin: 0;
  font-family: "Figtree", sans-serif;
  font-size: 58px;
  line-height: 0.98;
  letter-spacing: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 38px auto 0;
}
.card-grid.is-multi { max-width: 1100px; }

.quiz-continue { display: flex; justify-content: center; margin-top: 24px; }

.choice-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 0.72;
  border: 4px solid #665338;
  border-radius: 46% 46% 13% 13% / 18% 18% 8% 8%;
  padding: 10px 9px 14px;
  background: #efd89b;
  box-shadow: inset 0 0 0 4px #fff0b7, inset 0 0 0 7px #9e7b45, 0 7px 0 #4c402e, var(--shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  isolation: isolate;
}

.choice-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 44% 44% 11% 11% / 17% 17% 7% 7%;
  pointer-events: none;
  z-index: 3;
}

.choice-card:hover, .choice-card:focus-visible { transform: translateY(-7px) rotate(-.7deg); outline: none; }
.choice-card.is-unavailable { opacity: .56; filter: saturate(.58); cursor: not-allowed; }
.choice-card.is-unavailable:hover { transform: none; }
.choice-card.is-selected { transform: translateY(-8px); filter: saturate(1.15); box-shadow: inset 0 0 0 4px #dce9ff, inset 0 0 0 7px var(--blue), 0 7px 0 #173f9f, 0 0 0 6px rgba(39,100,240,.28), var(--shadow); }
.choice-card.is-selected::before { border-color: rgba(255,255,255,.9); }
.choice-card.is-selected .choice-nameplate { border-color: #173f9f; color: white; background: var(--blue); box-shadow: inset 0 0 0 2px #8db4ff, 0 3px 0 #173f9f; }
.choice-card.is-selected .choice-type { border-color: #173f9f; color: white; background: #305fc3; }

.choice-inner {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 0;
  border-radius: 45% 45% 9% 9% / 21% 21% 5% 5%;
  padding: 8px 8px 11px;
  background: #f3e3bd;
  overflow: visible;
}

.choice-meta, .hero-card__topline, .stat-row, .ability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.choice-art {
  min-height: 0;
  overflow: hidden;
  border: 5px solid #8f7446;
  border-radius: 48% 48% 8px 8px / 26% 26% 8px 8px;
  background: white;
  box-shadow: inset 0 0 0 2px #f7d77e, 0 3px 0 #5a4b35;
}

.choice-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.choice-cost {
  position: absolute;
  top: -9px;
  left: -9px;
  z-index: 7;
  width: 46px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 4px solid #405680;
  border-radius: 50% 50% 45% 45%;
  color: white;
  background: #3f8df5;
  box-shadow: inset 0 0 0 3px #8edcff, 0 3px 0 #243756;
  font: 900 24px/1 "Figtree", sans-serif;
  text-shadow: 0 2px 0 #22324c;
}

.choice-nameplate {
  position: relative;
  z-index: 4;
  width: calc(100% + 24px);
  min-height: 36px;
  margin: -18px -12px 0;
  display: grid;
  place-items: center;
  border: 3px solid #695135;
  border-radius: 50% 50% 28% 28% / 30% 30% 55% 55%;
  background: #e3b967;
  box-shadow: inset 0 0 0 2px #ffe4a0, 0 3px 0 #4f402e;
  font: 900 clamp(13px, 1.4vw, 19px)/1 "Figtree", sans-serif;
  text-align: center;
}

.choice-rules {
  min-height: 55px;
  display: grid;
  place-items: center;
  padding: 10px 10px 5px;
  border: 2px solid #a88754;
  border-top: 0;
  background: #f8edcf;
  font-size: 10px;
  line-height: 1.22;
  text-align: center;
}

.choice-type {
  justify-self: center;
  min-width: 62%;
  margin-top: -1px;
  padding: 4px 8px;
  border: 2px solid #8b6b3e;
  border-radius: 999px;
  background: #f1cb75;
  font-size: 8px;
  font-weight: 900;
  text-align: center;
}

.choice-brand {
  position: absolute;
  right: 14px;
  bottom: 13px;
  z-index: 8;
  color: #645333;
  font: 900 7px/1 "Figtree", sans-serif;
  opacity: .72;
}

.choice-picked { position: absolute; top: 20px; right: 16px; z-index: 10; min-height: 32px; display: flex; align-items: center; gap: 5px; border: 3px solid white; border-radius: 18px; padding: 0 10px 0 5px; color: white; background: var(--blue); box-shadow: 0 3px 0 #173f9f, 0 7px 15px rgba(23,35,59,.22); font-size: 9px; font-weight: 900; }
.choice-picked b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: white; font-size: 12px; }

.choice-stat {
  position: absolute;
  bottom: -10px;
  z-index: 7;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid #534734;
  border-radius: 50%;
  color: white;
  text-shadow: 0 2px 0 #283044;
}
.choice-stat b { font: 900 22px/.9 "Figtree", sans-serif; }
.choice-stat small { margin-top: 3px; font-size: 6px; font-weight: 900; }
.choice-stat--left { left: -7px; background: #f0b72d; box-shadow: inset 0 0 0 3px #fff0a1; }
.choice-stat--right { right: -7px; background: #e95a55; box-shadow: inset 0 0 0 3px #ffaaa3; }

.deck-strip {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 980px;
  margin: 36px auto 0;
}

.deck-slots { display: flex; justify-content: center; gap: 9px; }
.deck-slot { width: 52px; height: 42px; display: grid; place-items: center; border: 2px dashed #c4c9cf; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.55); overflow: hidden; font-size: 7px; font-weight: 900; text-align: center; }
.deck-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-slot.is-filled { border-style: solid; border-color: #8f7446; color: var(--ink); background: #f8edcf; }
button.deck-slot { cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
button.deck-slot:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 4px 0 rgba(39,100,240,.2); }
button.deck-slot:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.deck-slot.is-current { border-color: var(--blue); box-shadow: inset 0 0 0 2px rgba(39,100,240,.16); }
.deck-slot.is-locked { opacity: .62; }
.deck-label { color: var(--muted); }

.result-view { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 70px; }
.post-nav { width: min(520px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto 38px; border-bottom: 1px solid var(--line); }
.post-nav button { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 900; }
.post-nav button span { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; }
.post-nav button[aria-current="step"] { border-bottom-color: var(--blue); color: var(--blue); }
.post-nav button:focus-visible { outline: 3px solid rgba(242,183,44,.45); outline-offset: 2px; }
.result-screen { min-height: calc(100vh - 190px); }
.reveal-copy { text-align: center; margin-bottom: 28px; }
.reveal-copy p { margin: 0 0 8px; color: var(--coral); }
.result-layout { display: grid; grid-template-columns: minmax(310px, 430px) minmax(320px, 1fr); gap: clamp(30px, 7vw, 88px); align-items: center; }

.hero-card {
  --card-accent: #ffd84d;
  position: relative;
  overflow: hidden;
  border: 8px solid #75603e;
  border-radius: 46% 46% 14% 14% / 16% 16% 7% 7%;
  padding: 28px 24px 42px;
  background: #efd79a;
  box-shadow: inset 0 0 0 5px #ffedb0, inset 0 0 0 9px #9c7b46, 0 12px 0 #4c402e, 0 28px 70px rgba(23,35,59,.26);
  transform: rotate(-1.4deg);
  isolation: isolate;
}

.hero-card::before { content: ""; position: absolute; inset: 8px; border: 2px solid rgba(255,255,255,.55); border-radius: 44% 44% 12% 12% / 15% 15% 6% 6%; z-index: 4; pointer-events: none; }
.foil { position: absolute; inset: -60%; z-index: 3; pointer-events: none; opacity: .15; background: linear-gradient(115deg, transparent 35%, #65e6ff 43%, #ff74c9 49%, #fff48a 55%, transparent 63%); transform: translateX(-22%) rotate(8deg); animation: foil 5s ease-in-out infinite; }
@keyframes foil { 50% { transform: translateX(24%) rotate(8deg); } }

.hero-card__topline { position: relative; z-index: 2; justify-content: center; gap: 10px; color: #6b583b; font-size: 9px; font-weight: 900; }
.hero-card h2 { position: relative; z-index: 5; width: calc(100% + 48px); min-height: 55px; margin: -24px -24px 0; padding: 4px 20px; display: grid; place-items: center; border: 4px solid #705638; border-radius: 50% 50% 29% 29% / 33% 33% 58% 58%; background: #dfb45f; box-shadow: inset 0 0 0 3px #ffe59f, 0 4px 0 #4f402e; font: 900 var(--card-title-size, 32px)/.95 "Figtree", sans-serif; letter-spacing: 0; text-align: center; overflow-wrap: anywhere; }
.hero-art-wrap { position: relative; aspect-ratio: 1 / .98; margin-top: 8px; border: 7px solid #8e7247; border-radius: 48% 48% 10px 10px / 31% 31% 10px 10px; overflow: hidden; background: white; box-shadow: inset 0 0 0 3px #f7d77e, 0 4px 0 #584a35; }
.hero-art-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.edition { position: absolute; right: 6px; bottom: 5px; padding: 4px 6px; color: white; background: rgba(23,35,59,.82); font-size: 8px; font-weight: 900; }
.hero-ability { position: relative; z-index: 2; min-height: 158px; margin-top: 0; padding: 23px 19px 54px; border: 3px solid #a58250; border-top: 0; background: #f7e9c6; text-align: center; }
.ability-row { justify-content: center; gap: 6px; font-size: 15px; }
.hero-ability p { margin: 9px 0 0; font-size: 12px; line-height: 1.32; }
.weakness { position: relative; z-index: 2; margin: 0; padding: 10px 38px 0; font-size: 8px; text-align: center; }
.weakness strong { font-size: 9px; }

.player-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 9px 25px 0;
  padding: 8px 0;
  border-top: 1px solid #a98652;
  border-bottom: 1px solid #a98652;
  color: #69593f;
  font-size: 7px;
  font-weight: 900;
  text-align: center;
}
.player-stats b { display: block; margin-top: 2px; color: #17233b; font-size: 13px; }

.hero-cost {
  position: absolute; top: 20px; left: -14px; z-index: 8; width: 70px; height: 78px; display: grid; place-items: center;
  border: 6px solid #41577d; border-radius: 50% 50% 44% 44%; color: white; background: #438ef3;
  box-shadow: inset 0 0 0 5px #98dcff, 0 4px 0 #253855; font: 900 38px/1 "Figtree", sans-serif; text-shadow: 0 3px 0 #263754;
}

.card-class { position: relative; z-index: 4; width: 60%; margin: -2px auto 0; padding: 5px 8px; border: 3px solid #86683e; border-radius: 999px; background: #f0c66e; font-size: 9px; font-weight: 900; text-align: center; }
.battle-stat { position: absolute; bottom: -13px; z-index: 8; width: 72px; height: 72px; display: grid; place-items: center; border: 6px solid #504536; border-radius: 50%; color: white; text-shadow: 0 3px 0 #273147; }
.battle-stat strong { font: 900 34px/1 "Figtree", sans-serif; }
.battle-stat span { margin-top: -16px; font-size: 7px; font-weight: 900; }
.battle-stat--left { left: -13px; background: #f0b52b; box-shadow: inset 0 0 0 4px #fff0a2; }
.battle-stat--right { right: -13px; background: #e85c55; box-shadow: inset 0 0 0 4px #ffaaa3; }

.card-brand {
  position: absolute;
  right: 36px;
  bottom: 15px;
  z-index: 8;
  color: #665338;
  font: 900 9px/1 "Figtree", sans-serif;
  opacity: .72;
}

.engine-crest {
  position: absolute;
  top: 17px;
  left: 4px;
  z-index: 8;
  width: 120px;
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 5px solid #405680;
  border-radius: 28% 44% 44% 28%;
  color: white;
  background: var(--card-accent);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.5), 0 4px 0 #263754;
  padding: 11px 9px;
  text-align: center;
  text-shadow: 0 2px 0 #263754;
}
.engine-crest span { font-size: 7px; font-weight: 900; }
.engine-crest strong { font: 900 13px/1 "Figtree", sans-serif; }

.route-medallion {
  position: absolute;
  bottom: 27px;
  z-index: 8;
  width: 118px;
  min-height: 82px;
  display: grid;
  place-items: center;
  border: 5px solid #564932;
  color: white;
  padding: 12px 8px;
  text-align: center;
  text-shadow: 0 2px 0 #273147;
}
.route-medallion span { font-size: 7px; font-weight: 900; }
.route-medallion strong { font: 900 14px/.95 "Figtree", sans-serif; }
.route-medallion--left { left: 4px; border-radius: 50%; background: #e2ab2d; box-shadow: inset 0 0 0 4px #ffe899; }
.route-medallion--right { right: 4px; border-radius: 45% 45% 50% 50%; background: #e7645b; box-shadow: inset 0 0 0 4px #ffaaa3; }

.card-footer {
  position: relative;
  z-index: 7;
  width: 48%;
  min-height: 45px;
  display: grid;
  place-items: center;
  margin: 7px auto -32px;
  border: 3px solid #7b613b;
  border-radius: 50% 50% 24% 24%;
  color: white;
  background: #347abd;
  box-shadow: inset 0 0 0 2px #85cef2;
}
.card-footer strong { font: 900 19px/1 "Figtree", sans-serif; }
.card-footer span { color: #fff4c7; font-size: 6px; font-weight: 900; }

.route-recap { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 10px; }
.route-chip { border: 1px solid #c8c2af; border-radius: 999px; background: #fffbed; padding: 7px 10px; font-size: 10px; font-weight: 800; }

.match-panel, .card-summary { max-width: 480px; }
.match-eyebrow { color: var(--blue); margin: 0 0 9px; }
.match-panel h2, .card-summary h2 { margin: 0 0 24px; font: 900 44px/1 "Figtree", sans-serif; letter-spacing: 0; }
.trait-spectrum { display: grid; gap: 18px; margin: 26px 0 28px; text-align: left; }
.trait-rail header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.trait-rail header strong { font-size: 10px; text-transform: uppercase; }
.trait-rail header span { color: var(--blue); font-size: 10px; font-weight: 900; text-align: right; }

.trophy-case { width: min(1040px, 100%); margin: 78px auto 0; padding-top: 28px; border-top: 2px solid var(--ink); }
.trophy-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.trophy-heading p { margin: 0; color: var(--coral); font-size: 10px; font-weight: 900; }
.trophy-heading h2 { margin: 0; font: 900 27px/1 "Figtree", sans-serif; }
.trophy-shelf { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 12px; padding: 0 10px 24px; }
.trophy-shelf::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 12px; border: 2px solid #665338; border-radius: 3px; background: #d9a953; box-shadow: 0 5px 0 #665338; }
.trophy-card { min-width: 0; aspect-ratio: .72; display: flex; flex-direction: column; border: 3px solid #665338; border-radius: 44% 44% 9px 9px / 17% 17% 7px 7px; padding: 5px; color: var(--ink); background: #f3dda4; box-shadow: inset 0 0 0 2px #fff0b7, 0 5px 0 color-mix(in srgb, var(--trophy-accent), #17233b 38%); overflow: hidden; text-align: center; }
.trophy-art { flex: 1 1 auto; min-height: 0; border: 2px solid #8e7247; border-radius: 43% 43% 5px 5px / 18% 18% 5px 5px; overflow: hidden; background: var(--trophy-accent); }
.trophy-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trophy-card strong { min-height: 29px; display: grid; place-items: center; padding: 5px 2px 2px; font: 900 10px/1.05 "Figtree", sans-serif; overflow-wrap: anywhere; }
.trophy-card small { border-radius: 3px; padding: 3px 2px; color: white; background: var(--trophy-accent); font-size: 6px; font-weight: 900; }
.trait-poles { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 800; }
.trait-track { position: relative; height: 12px; border: 2px solid #aeb6c1; border-radius: 6px; background: linear-gradient(90deg, #f6c544 0 50%, #5f86e8 50% 100%); box-shadow: inset 0 2px 3px rgba(23,35,59,.18); }
.trait-track::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; background: rgba(23,35,59,.28); transform: translateX(-1px); }
.trait-track i { position: absolute; top: 50%; left: var(--trait-position); z-index: 2; width: 23px; height: 23px; border: 4px solid white; border-radius: 50%; background: var(--ink); box-shadow: 0 2px 6px rgba(23,35,59,.35); transform: translate(-50%, -50%); }
.why-pulled { margin: 0 0 20px; padding-left: 16px; border-left: 4px solid var(--yellow); text-align: left; }
.why-pulled strong { font-size: 10px; }
.why-pulled p { margin: 6px 0 0; color: #3e4b61; font-size: 14px; line-height: 1.42; }
.company-list { display: grid; gap: 8px; }
.more-matches-button { width: 100%; margin-top: 14px; }
.company-match { border-bottom: 1px solid var(--line); }
.company-match__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; min-height: 76px; }
.company-link { display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; align-items: center; gap: 12px; margin: 4px 0; border-radius: 7px; padding: 5px 8px 5px 0; color: var(--ink); text-decoration: none; transition: background .16s ease, transform .16s ease; }
.company-link:hover { color: var(--blue); background: rgba(69, 127, 177, .08); transform: translateX(3px); }
.company-link--static { cursor: default; }
.company-link--static:hover { color: var(--ink); background: transparent; transform: none; }
.company-link:focus-visible { outline: 3px solid rgba(242,183,44,.45); outline-offset: 2px; }
.company-rank { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-size: 11px; font-weight: 900; }
.company-copy strong { display: block; font-size: 17px; }
.company-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.company-external { color: var(--blue); font-size: 18px; font-weight: 900; opacity: .55; transition: opacity .16s ease, transform .16s ease; }
.company-link:hover .company-external { opacity: 1; transform: translate(2px, -2px); }
.company-fit { align-self: center; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; padding: 10px 8px; color: var(--muted); background: transparent; cursor: pointer; font: 800 11px/1 "DM Sans", sans-serif; white-space: nowrap; }
.company-fit:hover { color: var(--blue); background: rgba(69, 127, 177, .08); }
.company-fit:focus-visible { outline: 3px solid rgba(242,183,44,.45); outline-offset: 2px; }
.company-fit i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.company-match.is-open .company-fit i { transform: rotate(225deg) translate(-1px, -1px); }
.fit-detail { margin: 0 0 14px 50px; border-left: 3px solid var(--yellow); padding: 3px 0 4px 14px; }
.fit-detail__header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.fit-detail__header strong { font-size: 13px; }
.fit-detail__header span { color: var(--blue); font-size: 10px; font-weight: 900; }
.fit-detail p { margin: 7px 0 0; color: #3e4b61; font-size: 12px; line-height: 1.45; }
.fit-detail__caveat { color: var(--muted) !important; }
.match-refinement { margin-top: 17px; }
.refine-trigger { width: 100%; min-height: 42px; }
.refine-panel { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 0 16px; }
.refine-question { margin: 0 0 17px; padding: 0; border: 0; }
.refine-question legend { margin-bottom: 9px; font-size: 12px; font-weight: 900; }
.refine-question legend span { margin-left: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.refine-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.refine-question--multi .refine-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.refine-options button { min-height: 44px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; color: var(--ink); background: white; cursor: pointer; font: 800 11px/1.25 "DM Sans", sans-serif; }
.refine-options button:hover { border-color: var(--ink); }
.refine-options button[aria-pressed="true"] { border-color: var(--ink); color: white; background: var(--ink); }
.refine-options button:focus-visible { outline: 3px solid rgba(242,183,44,.45); outline-offset: 2px; }
.refine-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.match-note { margin: 22px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.result-actions--stacked { display: grid; align-items: start; }
.result-actions--stacked > .primary-button { width: 100%; }
.result-actions--stacked > div { display: flex; flex-wrap: wrap; gap: 9px; }
.screen-heading { max-width: 680px; margin: 28px auto 36px; text-align: center; }
.screen-heading h1 { margin: 0; font: 900 52px/.98 "Figtree", sans-serif; letter-spacing: 0; }
.screen-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.matches-layout { width: min(760px, 100%); margin: 0 auto; }
.screen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 24px; }
.primary-button, .secondary-button, .text-button { min-height: 45px; border-radius: 7px; padding: 0 17px; cursor: pointer; font-weight: 800; }
.primary-button { border: 1px solid var(--ink); color: white; background: var(--ink); }
.secondary-button { border: 1px solid var(--line); background: white; }
.text-button { border: 0; color: var(--muted); background: transparent; }

.intro-quest {
  width: min(1040px, 100%);
  margin: 20px auto 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 248, 220, .58);
}
.intro-ask { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: 34px clamp(22px, 5vw, 52px); }
.intro-kicker { margin: 0 0 7px; color: var(--coral); font-size: 10px; font-weight: 900; }
.intro-ask h2, .intro-heading h2 { margin: 0; font: 900 clamp(27px, 4vw, 40px)/1.04 "Figtree", sans-serif; }
.intro-ask p:not(.intro-kicker), .intro-heading p:not(.intro-kicker) { max-width: 610px; margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.intro-ask .privacy-summary { color: var(--blue); font-size: 12px; font-weight: 800; }
.intro-ask__actions { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 225px; }

.intro-form, .intro-pack { padding: 40px clamp(22px, 5vw, 52px) 44px; }
.intro-heading { margin-bottom: 28px; }
.intro-company-fieldset { margin: 0 0 26px; padding: 0; border: 0; }
.intro-company-fieldset legend, .intro-field > span, .blurb-editor > span { margin-bottom: 9px; color: var(--ink); font-size: 11px; font-weight: 900; }
.intro-company-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-company-option { position: relative; }
.intro-company-option input { position: absolute; opacity: 0; pointer-events: none; }
.intro-company-option span { display: block; border: 2px solid var(--line); border-radius: 7px; padding: 10px 13px; background: white; cursor: pointer; font-size: 13px; font-weight: 800; }
.intro-company-option input:checked + span { border-color: var(--ink); color: white; background: var(--ink); }
.intro-company-option input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.intro-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.intro-field { display: grid; align-content: start; }
.intro-field--wide { grid-column: 1 / -1; }
.intro-field small { color: var(--muted); font-size: 9px; }
.intro-field input, .intro-field select, .intro-field textarea, .blurb-rich { width: 100%; border: 1px solid #aaa690; border-radius: 7px; color: var(--ink); background: rgba(255,255,255,.9); font: 600 14px/1.4 "DM Sans", sans-serif; }
.intro-field input, .intro-field select { height: 48px; padding: 0 13px; }
.intro-field textarea { min-height: 122px; padding: 12px 13px; resize: vertical; }
.intro-field input:focus, .intro-field select:focus, .intro-field textarea:focus, .blurb-rich:focus { outline: 3px solid rgba(242,183,44,.45); border-color: #8d6d23; }
.intro-error { min-height: 20px; margin: 12px 0 0; color: #aa342e; font-size: 12px; font-weight: 800; }
.privacy-promise { margin: 4px 0 18px; border-left: 4px solid var(--blue); padding: 3px 0 3px 14px; }
.privacy-promise strong { font-size: 11px; }
.privacy-promise p { max-width: 720px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.intro-form__actions, .intro-pack__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }

.role-searches { display: grid; gap: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.role-search { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; min-height: 72px; border-bottom: 1px solid var(--line); }
.role-search__rank { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 10px; font-weight: 900; }
.role-search strong { display: block; font-size: 16px; }
.role-search small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.role-search__description { margin-top: 3px; }
.role-search__focus { margin-top: 4px; color: var(--blue) !important; font-weight: 800; }
.role-search a { border: 1px solid var(--ink); border-radius: 7px; padding: 9px 11px; color: var(--ink); background: white; font-size: 11px; font-weight: 900; text-decoration: none; }
.role-search__empty { border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; color: var(--muted); background: rgba(255,255,255,.52); font-size: 11px; font-weight: 800; }
.blurb-editor { display: grid; }
.blurb-rich { min-height: 145px; padding: 14px; }
.blurb-rich.is-editing { outline: 3px solid rgba(242,183,44,.45); border-color: #8d6d23; background: white; }
.blurb-rich a { color: var(--blue); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.blurb-rich p { margin: 0 0 14px; }
.blurb-rich p:last-child { margin-bottom: 0; }
.research-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.research-sources > span { color: var(--muted); font-size: 10px; font-weight: 900; }
.research-sources a { border-bottom: 1px solid var(--line); color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.submission-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 650px; margin-left: auto; margin-right: auto; }
  .card-grid.is-multi { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
  .choice-card { aspect-ratio: .76; }
  .result-layout { grid-template-columns: minmax(280px, 380px) minmax(280px, 1fr); gap: 30px; }
  .match-panel, .card-summary { text-align: center; }
  .company-match { text-align: left; }
  .result-actions { justify-content: center; }
  .intro-ask { align-items: flex-start; }
}

@media (max-width: 560px) {
  .topbar { width: calc(100% - 24px); height: 64px; }
  .brand > span:last-child, .round-status { font-size: 10px; }
  .cover-view { min-height: calc(100vh - 64px); align-items: end; background-position: 76% center; }
  .cover-view::before { width: 100%; border-right: 0; background: rgba(248, 251, 244, .76); backdrop-filter: blur(3px); }
  .cover-copy { width: calc(100% - 24px); padding: 44px 0 48px; }
  .cover-copy > * { max-width: 100%; }
  .cover-copy h1 { max-width: 330px; font-size: 46px; }
  .cover-copy > p:nth-of-type(2) { max-width: 350px; font-size: 15px; }
  .quiz-view { width: calc(100% - 24px); padding-top: 30px; }
  .question-copy h1, .reveal-copy h1 { font-size: 38px; }
  .card-grid { gap: 10px; margin-top: 27px; }
  .card-grid.is-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-card { padding: 5px; border-radius: 10px; box-shadow: 0 4px 0 color-mix(in srgb, var(--card-accent), #17233b 34%), 0 10px 20px rgba(24,34,54,.14); }
  .choice-inner { padding: 6px; }
  .choice-picked { top: 11px; right: 8px; min-height: 27px; padding-right: 7px; font-size: 7px; }
  .choice-picked b { width: 17px; height: 17px; }
  .choice-nameplate { width: calc(100% + 16px); margin-left: -8px; margin-right: -8px; font-size: 12px; }
  .choice-rules { min-height: 48px; padding: 8px 4px 3px; font-size: 8px; }
  .choice-cost { width: 36px; height: 40px; font-size: 19px; }
  .choice-stat { width: 34px; height: 34px; }
  .choice-stat b { font-size: 16px; }
  .choice-stat small { font-size: 5px; }
  .question-copy { padding: 52px 4px 0; }
  .question-back { top: 0; }
  .deck-strip { grid-template-columns: 1fr; margin-top: 24px; }
  .deck-label { display: none; }
  .deck-slots { gap: 5px; }
  .deck-slot { width: 30px; height: 39px; }
  .result-view { width: calc(100% - 24px); padding-top: 28px; }
  .post-nav { margin-bottom: 28px; }
  .post-nav button { font-size: 9px; }
  .result-layout { grid-template-columns: 1fr; justify-items: center; }
  .hero-card { width: 100%; max-width: 390px; }
  .trophy-case { margin-top: 58px; }
  .trophy-heading { align-items: start; flex-direction: column; gap: 6px; }
  .trophy-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding-right: 4px; padding-left: 4px; }
  .match-panel h2, .card-summary h2, .screen-heading h1 { font-size: 32px; }
  .company-match__row { grid-template-columns: 1fr; gap: 0; padding: 7px 0; }
  .company-link { grid-template-columns: 34px minmax(0, 1fr) 20px; margin: 0; padding-right: 5px; }
  .company-fit { justify-self: start; margin-left: 38px; padding: 8px; }
  .fit-detail { margin-left: 46px; }
  .refine-options { grid-template-columns: 1fr; }
  .intro-quest { margin-top: 50px; }
  .intro-ask { min-height: 0; flex-direction: column; gap: 22px; padding-top: 28px; padding-bottom: 28px; }
  .intro-ask__actions { width: 100%; min-width: 0; }
  .intro-form, .intro-pack { padding-left: 14px; padding-right: 14px; }
  .intro-fields { grid-template-columns: 1fr; }
  .intro-field--wide { grid-column: auto; }
  .role-search { grid-template-columns: 36px 1fr; padding: 12px 0; }
  .role-search a { grid-column: 2; justify-self: start; }
  .role-search__empty { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .choice-card, .foil { transition: none; animation: none; }
}
