/* ==========================================================================
   HERO // MATCH — visual system
   ========================================================================== */

:root {
  --bg: #07090c;
  --bg-soft: #0b0e12;
  --panel: #10151b;
  --panel-2: #151b22;
  --text: #f3efe6;
  --muted: #8d98a4;
  --muted-2: #626d79;
  --orange: #ff9f1c;
  --orange-soft: #ffc35c;
  --orange-deep: #ff6414;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --tank: #5aa7ff;
  --dps: #ff6257;
  --support: #52d99a;
  --font-display: "Arial Black", "Bahnschrift", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-body: "Bahnschrift", "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", "Menlo", monospace;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 65% 48% at 78% -8%, rgba(255, 124, 26, 0.12), transparent 65%),
    radial-gradient(ellipse 48% 42% at -8% 92%, rgba(76, 129, 255, 0.08), transparent 72%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse 55% 38% at 75% 0%, rgba(255, 159, 28, 0.1), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.36));
}

body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.32) 100%);
}

::selection {
  background: var(--orange);
  color: #130c03;
}

button {
  font: inherit;
}

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

button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.sr-only {
  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;
}

/* --------------------------------------------------------------------------
   Backdrop
   -------------------------------------------------------------------------- */

.page-grid {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.75;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 12%, black 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 12%, black 0%, transparent 78%);
}

.page-noise {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   Shell / header / footer
   -------------------------------------------------------------------------- */

.site {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(var(--max-width), calc(100% - clamp(36px, 7vw, 88px)));
  min-height: 100dvh;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-height: clamp(76px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  filter: drop-shadow(0 0 18px rgba(255, 159, 28, 0.2));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-mark svg path:first-child {
  fill: var(--orange);
}

.brand-mark svg path:nth-child(2) {
  fill: #0a0d11;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
}

.brand-mark svg circle {
  fill: var(--orange);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  color: #f7f2e8;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
}

.brand-copy strong i {
  margin: 0 1px;
  color: var(--orange);
  font-style: normal;
}

.brand-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-side {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-meta {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.header-meta i {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 2px;
  background: var(--orange);
  border-radius: 50%;
}

.fan-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 159, 28, 0.34);
  background: rgba(255, 159, 28, 0.055);
  color: var(--orange-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.app {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-width: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding: 22px 0 calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.footer-meta i {
  width: 3px;
  height: 3px;
  background: var(--orange);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pulse-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 159, 28, 0.55);
  animation: pulse-dot 2.2s ease-out infinite;
}

.eyebrow-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin-left: 2px;
  background: linear-gradient(90deg, rgba(255, 159, 28, 0.55), transparent);
}

.role-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--role-color);
}

.role-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.role-icon--tag {
  width: 13px;
  height: 13px;
  margin-right: 5px;
}

.role-icon--chip {
  width: 22px;
  height: 22px;
}

.role-icon--option {
  width: 14px;
  height: 14px;
}

.role-icon--portrait {
  width: 14px;
  height: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #c1c8d1;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.tag--role {
  border-color: color-mix(in srgb, var(--tag-color) 34%, transparent);
  background: color-mix(in srgb, var(--tag-color) 8%, transparent);
  color: var(--tag-color);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.btn--primary {
  background: linear-gradient(105deg, var(--orange-soft), var(--orange) 52%, var(--orange-deep));
  color: #180d03;
  box-shadow: 0 12px 36px rgba(255, 122, 20, 0.2);
}

.btn--primary:hover {
  background: linear-gradient(105deg, #ffd478, var(--orange-soft) 52%, var(--orange));
  box-shadow: 0 14px 42px rgba(255, 122, 20, 0.28);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: rgba(255, 159, 28, 0.5);
  background: rgba(255, 159, 28, 0.055);
  color: var(--orange-soft);
}

.btn:active {
  transform: translateY(0) scale(0.995);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 160ms ease;
}

.btn-text:hover {
  color: var(--text);
}

.btn-text svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* --------------------------------------------------------------------------
   Landing
   -------------------------------------------------------------------------- */

.landing-screen {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.9fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  flex: 1 0 auto;
  padding: clamp(38px, 7vh, 84px) 0 clamp(34px, 5vh, 62px);
}

.landing-copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.landing-eyebrow {
  margin-bottom: clamp(18px, 3vh, 30px);
}

.landing-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 6.1vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
}

.landing-title > span:first-child {
  color: transparent;
  letter-spacing: -0.04em;
  opacity: 0.9;
  -webkit-text-stroke: 1.2px rgba(243, 239, 230, 0.54);
}

.landing-title > span:last-child {
  margin-top: 0.04em;
  white-space: nowrap;
}

.landing-title em {
  position: relative;
  color: var(--orange);
  font-style: normal;
  text-shadow: 0 0 40px rgba(255, 159, 28, 0.18);
}

.landing-title em::after {
  position: absolute;
  right: 0;
  bottom: 0.06em;
  left: 0.02em;
  height: 0.035em;
  content: "";
  background: linear-gradient(90deg, var(--orange), rgba(255, 159, 28, 0.05));
}

.landing-lede {
  max-width: 540px;
  margin: 28px 0 27px;
  color: #b8c0c9;
  font-size: 14.5px;
  line-height: 1.9;
}

.landing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 31px;
}

.landing-meta > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 17px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.landing-meta > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.landing-meta b {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.landing-actions .btn {
  min-width: 210px;
  min-height: 60px;
  padding: 0 30px;
}

.btn-arrow {
  display: inline-flex;
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.btn-arrow svg {
  width: 100%;
  height: 100%;
}

.landing-actions .btn:hover .btn-arrow {
  transform: translateX(4px);
}

.landing-hint {
  max-width: 196px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Radar visual
   -------------------------------------------------------------------------- */

.radar-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin: auto;
}

.radar-stage::before {
  position: absolute;
  z-index: -1;
  inset: 8%;
  content: "";
  background: radial-gradient(circle, rgba(255, 127, 24, 0.18), transparent 62%);
  filter: blur(40px);
  opacity: 0.7;
  animation: glow-breathe 6s ease-in-out infinite;
}

.radar-corner {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(255, 255, 255, 0.34);
}

.radar-corner--tl {
  top: 2%;
  left: 1%;
  border-top-width: 1px;
  border-left-width: 1px;
}

.radar-corner--tr {
  top: 2%;
  right: 1%;
  border-top-width: 1px;
  border-right-width: 1px;
}

.radar-corner--bl {
  bottom: 2%;
  left: 1%;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.radar-corner--br {
  right: 1%;
  bottom: 2%;
  border-right-width: 1px;
  border-bottom-width: 1px;
}

.radar {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 82%;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 159, 28, 0.055) 0%, transparent 56%),
    radial-gradient(circle, rgba(12, 16, 21, 0.2) 0%, rgba(7, 9, 12, 0.82) 72%);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.5),
    0 0 0 12px rgba(255, 255, 255, 0.012);
  transform: translate(-50%, -50%);
}

.radar::after {
  position: absolute;
  inset: 4.5%;
  content: "";
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 328deg,
    rgba(255, 159, 28, 0.018) 342deg,
    rgba(255, 159, 28, 0.065) 356deg,
    rgba(255, 159, 28, 0.34) 359.4deg,
    transparent 360deg
  );
  animation: radar-sweep 11s linear infinite;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 50%;
}

.radar-ring--1 {
  inset: 12%;
}

.radar-ring--2 {
  inset: 25%;
  border-style: dashed;
  border-color: rgba(255, 159, 28, 0.14);
}

.radar-ring--3 {
  inset: 38%;
}

.radar-cross {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
}

.radar-cross--x {
  right: 7%;
  left: 7%;
  height: 1px;
}

.radar-cross--y {
  top: 7%;
  bottom: 7%;
  width: 1px;
}

.radar-blip {
  position: absolute;
  z-index: 2;
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.85);
}

.radar-blip::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid rgba(255, 159, 28, 0.34);
  border-radius: 50%;
  animation: blip-ring 3.4s ease-out infinite;
}

.radar-blip--1 {
  top: 22%;
  left: 62%;
}

.radar-blip--2 {
  right: 17%;
  bottom: 30%;
  animation-delay: 1s;
}

.radar-blip--3 {
  bottom: 20%;
  left: 27%;
  width: 3px;
  height: 3px;
  opacity: 0.7;
}

.radar-core {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 31%;
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, rgba(255, 159, 28, 0.12), transparent 35%),
    linear-gradient(320deg, #1b222b, #080b0e 70%);
  filter: drop-shadow(0 0 28px rgba(0, 0, 0, 0.6));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.radar-core::before {
  position: absolute;
  inset: 2px;
  content: "";
  border: 1px solid rgba(255, 159, 28, 0.36);
  clip-path: inherit;
}

.radar-core::after {
  position: absolute;
  inset: 10px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.07);
  clip-path: inherit;
}

.radar-count {
  position: relative;
  z-index: 1;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-shadow: 0 0 34px rgba(255, 159, 28, 0.25);
}

.radar-label {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: clamp(6px, 0.85vw, 8px);
  letter-spacing: 0.22em;
}

.radar-tag {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 11, 14, 0.84);
  color: #b9c2cc;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  backdrop-filter: blur(9px);
}

.radar-tag b {
  color: var(--orange);
  font-weight: 500;
}

.radar-tag--tank {
  top: 22%;
  left: -2%;
  border-color: rgba(90, 167, 255, 0.26);
}

.radar-tag--dps {
  top: 12%;
  right: -1%;
  border-color: rgba(255, 98, 87, 0.26);
}

.radar-tag--support {
  right: 1%;
  bottom: 20%;
  border-color: rgba(82, 217, 154, 0.26);
}

.radar-status {
  position: absolute;
  bottom: 1%;
  left: 17%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.15em;
}

.radar-status i {
  width: 4px;
  height: 4px;
  background: var(--support);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(82, 217, 154, 0.7);
}

/* --------------------------------------------------------------------------
   Role strip
   -------------------------------------------------------------------------- */

.role-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 17px 0 23px;
  border-top: 1px solid var(--line);
}

.role-strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 126px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.role-chip strong {
  display: block;
  color: #dce1e6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.role-chip div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.role-strip-note {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.role-strip-note span {
  margin: 0 4px;
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Quiz
   -------------------------------------------------------------------------- */

.quiz-screen {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 58px) 0 clamp(34px, 6vh, 62px);
  animation: screen-in 420ms cubic-bezier(0.22, 0.8, 0.2, 1) both;
}

.quiz-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(18px, 3vh, 27px);
}

.icon-btn {
  display: grid;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-btn:hover:not(:disabled) {
  border-color: rgba(255, 159, 28, 0.45);
  background: rgba(255, 159, 28, 0.05);
  color: var(--orange-soft);
}

.icon-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.progress-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.progress-meta span:last-child {
  color: var(--orange-soft);
  white-space: nowrap;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
}

.progress-fill {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), var(--orange-soft));
  box-shadow: 0 0 14px rgba(255, 159, 28, 0.55);
  transition: width 380ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.progress-fill::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 100%;
  content: "";
  background: #fff0cc;
  opacity: 0.75;
  filter: blur(3px);
}

.quiz-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(255, 159, 28, 0.28);
  background: rgba(255, 159, 28, 0.045);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
}

.tiebreak-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 13px;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 159, 28, 0.32);
  background: rgba(255, 159, 28, 0.045);
  animation: screen-in 360ms cubic-bezier(0.22, 0.8, 0.2, 1) both;
}

.tiebreak-note > span {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid rgba(255, 159, 28, 0.35);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  line-height: 1;
}

.tiebreak-note p {
  margin: 0;
  color: #b6bec8;
  font-size: 11.5px;
  line-height: 1.75;
}

.question-card {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4.4vw, 48px);
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 42%),
    linear-gradient(160deg, rgba(18, 24, 31, 0.96), rgba(9, 12, 16, 0.98));
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.question-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 2px;
  content: "";
  background: var(--orange);
  box-shadow: 0 0 20px rgba(255, 159, 28, 0.5);
}

.question-card::after {
  position: absolute;
  right: -10%;
  bottom: -50%;
  width: 60%;
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(255, 159, 28, 0.055), transparent 65%);
  pointer-events: none;
}

.question-watermark {
  position: absolute;
  top: -0.32em;
  right: 0.12em;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--font-display);
  font-size: clamp(9rem, 22vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.question-eyebrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.question-no {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}

.question-tag {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.question-title {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 20px 0 30px;
  color: #f5f0e7;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.48;
}

.question-title:focus {
  outline: none;
}

.option-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 11px;
}

.option {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease;
  animation: option-in 300ms cubic-bezier(0.22, 0.8, 0.2, 1) var(--option-delay, 0ms) forwards;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.option::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  background: transparent;
  transition: background 160ms ease;
}

.option:hover {
  border-color: rgba(255, 159, 28, 0.3);
  background: linear-gradient(90deg, rgba(255, 159, 28, 0.075), rgba(255, 255, 255, 0.018));
  transform: translateX(4px);
}

.option:hover::before {
  background: var(--orange);
}

.option:hover .option-key {
  border-color: rgba(255, 159, 28, 0.5);
  color: var(--orange-soft);
}

.option:active {
  transform: translateX(1px) scale(0.997);
}

.option.is-selected {
  border-color: rgba(255, 159, 28, 0.75);
  background: linear-gradient(90deg, rgba(255, 159, 28, 0.15), rgba(255, 159, 28, 0.045));
  box-shadow: inset 0 0 30px rgba(255, 159, 28, 0.04);
}

.option.is-selected::before {
  background: var(--orange);
}

.option.is-selected .option-key {
  border-color: var(--orange);
  background: var(--orange);
  color: #170d03;
}

.option.is-selected .option-text {
  color: #fffaf0;
}

.option-key {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  transition: all 160ms ease;
}

.option-text {
  min-width: 0;
  color: #d2d7de;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.6;
  transition: color 160ms ease;
}

.option-arrow {
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  transition: color 160ms ease, transform 160ms ease;
}

.option-arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.option:hover .option-arrow {
  color: var(--orange);
  transform: translateX(2px);
}

.option-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 11px;
  border-left: 1px solid var(--line);
  color: var(--role-color);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.question-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.key-hint {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Result
   -------------------------------------------------------------------------- */

.result-screen {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(30px, 5vh, 56px) 0 clamp(38px, 6vh, 58px);
  animation: screen-in 460ms cubic-bezier(0.22, 0.8, 0.2, 1) both;
}

.result-intro {
  position: relative;
}

.result-intro::after {
  position: absolute;
  top: -34px;
  right: 0;
  z-index: -1;
  color: rgba(255, 255, 255, 0.022);
  content: "MATCH";
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 10.5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.result-overline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.result-eyebrow {
  color: var(--orange-soft);
}

.result-number {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.result-title {
  max-width: 760px;
  margin: 15px 0 10px;
  background: linear-gradient(100deg, #faf5e9 22%, #ffd27c 75%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.result-title:focus {
  outline: none;
}

.result-subtitle {
  max-width: 600px;
  margin: 0;
  color: #aeb7c1;
  font-size: 13.5px;
  line-height: 1.8;
}

/* primary hero card */

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(255px, 340px) minmax(0, 1fr);
  margin-top: clamp(24px, 4vh, 38px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--accent) 7%, #0c1015), #0b0e12 58%);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  animation: hero-reveal 700ms cubic-bezier(0.22, 0.8, 0.2, 1) both;
}

.hero-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent) 58%, transparent);
}

.hero-card::after {
  position: absolute;
  top: -30%;
  right: -8%;
  width: 55%;
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-card--fallback {
  border-color: rgba(255, 176, 84, 0.34);
}

.hero-portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 410px;
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background:
    radial-gradient(circle at 38% 38%, color-mix(in srgb, var(--accent) 23%, transparent), transparent 54%),
    linear-gradient(155deg, #161d25, #090c10 76%);
}

.hero-portrait::before {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 155%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 42%, transparent), transparent);
  opacity: 0.44;
  transform: translate(-50%, -50%) rotate(-42deg);
}

.hero-portrait::after {
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 86%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid color-mix(in srgb, var(--accent) 19%, transparent);
  border-radius: 50%;
}

.portrait-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(135deg, black, transparent 78%);
  mask-image: linear-gradient(135deg, black, transparent 78%);
}

.portrait-glow {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.19;
  animation: glow-breathe 6s ease-in-out infinite;
}

.hero-photo {
  position: absolute;
  z-index: 2;
  inset: 34px 8px 31px;
  width: calc(100% - 16px);
  height: calc(100% - 65px);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  filter:
    drop-shadow(0 18px 25px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 18%, transparent));
  transform: scale(1.015);
}

.portrait-fallback {
  z-index: 2;
}

.portrait-role {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d7dde4;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.portrait-mark {
  position: relative;
  z-index: 2;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(8rem, 14vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
  text-shadow:
    0 0 55px color-mix(in srgb, var(--accent) 25%, transparent),
    0 10px 40px rgba(0, 0, 0, 0.4);
  transform: skewX(-5deg);
  user-select: none;
}

.portrait-mark--mid {
  font-size: clamp(5.5rem, 10vw, 8rem);
  letter-spacing: -0.06em;
}

.portrait-mark--long {
  font-size: clamp(3.7rem, 7.3vw, 5.6rem);
  letter-spacing: -0.055em;
}

.portrait-line {
  position: absolute;
  bottom: 66px;
  left: 21px;
  z-index: 3;
  width: 62px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent);
}

.portrait-no {
  position: absolute;
  right: 21px;
  bottom: 20px;
  z-index: 3;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.6vw, 40px);
}

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

.primary-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.primary-label i,
.secondary-overline i {
  margin: 0 3px;
  color: var(--muted-2);
  font-style: normal;
}

.match-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.match-badge svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.hero-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 17px;
}

.hero-name {
  margin: 0;
  color: #fbf7ee;
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 6.6vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.hero-epithet {
  margin-bottom: 5px;
  padding-left: 9px;
  border-left: 2px solid var(--accent);
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.hero-quote {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: #c7cdd4;
  font-size: 12.5px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 17px;
}

.hero-tags .tag {
  height: 25px;
  font-size: 8.5px;
}

.hero-copy {
  max-width: 62ch;
  margin: 0;
  color: #b9c1ca;
  font-size: 13.5px;
  line-height: 1.95;
}

.difference-block {
  margin-top: auto;
  padding-top: 17px;
}

.difference-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}

.diff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.diff-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(255, 176, 84, 0.24);
  background: rgba(255, 176, 84, 0.055);
  color: #d8ae72;
  font-size: 8.5px;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.diff-pill--perfect {
  border-color: rgba(82, 217, 154, 0.26);
  background: rgba(82, 217, 154, 0.06);
  color: var(--support);
}

/* secondary card */

.secondary-card {
  position: relative;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--accent) 4%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.018);
  animation: screen-in 520ms 140ms cubic-bezier(0.22, 0.8, 0.2, 1) both;
}

.secondary-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}

.hero-portrait--small {
  min-height: 216px;
  border-right: 1px solid var(--line);
}

.hero-portrait--small .portrait-role {
  top: 13px;
  left: 13px;
  gap: 5px;
  font-size: 6.5px;
}

.hero-portrait--small .portrait-mark {
  font-size: clamp(3.5rem, 7.2vw, 5rem);
}

.hero-portrait--small .hero-photo {
  inset: 23px 2px 23px;
  width: calc(100% - 4px);
  height: calc(100% - 46px);
  object-fit: cover;
  object-position: center 28%;
}

.hero-portrait--small .portrait-mark--mid {
  font-size: clamp(3rem, 5.5vw, 4rem);
}

.hero-portrait--small .portrait-mark--long {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.hero-portrait--small .portrait-line {
  display: none;
}

.hero-portrait--small .portrait-no {
  right: 13px;
  bottom: 13px;
  font-size: 6.5px;
}

.secondary-main {
  padding: 20px 24px;
}

.secondary-overline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}

.secondary-index {
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.secondary-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  margin-top: 9px;
}

.secondary-name-row h3 {
  margin: 0;
  color: #f1ede4;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.secondary-name-row span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.hero-tags--small {
  margin: 11px 0;
}

.hero-tags--small .tag {
  height: 22px;
  font-size: 8px;
}

.secondary-copy {
  max-width: 70ch;
  margin: 0;
  color: #aeb6c0;
  font-size: 12px;
  line-height: 1.8;
}

.secondary-card .diff-list {
  margin-top: 10px;
}

.secondary-card .diff-pill {
  min-height: 20px;
  font-size: 8px;
}

/* five-attribute hero profile */

.profile-panel,
.match-panel,
.persona-panel {
  margin-top: 13px;
  padding: clamp(20px, 3.2vw, 28px);
}

.profile-panel {
  background:
    radial-gradient(ellipse 55% 80% at 12% 30%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.016);
}

.attribute-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.attribute-card {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.attribute-card--role {
  grid-column: 1 / -1;
}

.attribute-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.attribute-head > span {
  color: #d6dce3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.attribute-head i {
  margin-left: 6px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.attribute-head > b {
  overflow: hidden;
  color: var(--attr-color, var(--accent));
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attribute-head > small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.attribute-value {
  margin-top: 8px;
  color: var(--attr-color, var(--accent));
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.attribute-value span {
  margin-left: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0;
}

.attribute-track {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.attribute-track i {
  display: block;
  height: 100%;
  background: var(--attr-color, var(--accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--attr-color, var(--accent)) 45%, transparent);
}

.attribute-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.role-meter-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.role-meter {
  display: grid;
  grid-template-columns: 38px 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  opacity: 0.48;
}

.role-meter.is-active {
  opacity: 1;
}

.role-meter-name {
  color: #cbd2d9;
  font-size: 9.5px;
}

.role-meter-value {
  color: var(--role-color);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
}

.role-meter-track {
  display: block;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
}

.role-meter-track i {
  display: block;
  height: 100%;
  background: var(--role-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--role-color) 45%, transparent);
}

/* match breakdown */

.match-matrix {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.match-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr) 63px;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  font-size: 10.5px;
}

.match-row--head {
  min-height: 28px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.match-row--head span:last-child {
  text-align: right;
}

.match-label {
  color: #cbd2d9;
  font-weight: 600;
}

.match-mine {
  overflow: hidden;
  color: #dce2e8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-hero {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-state {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.match-state.is-match {
  color: var(--support);
}

.match-state.is-partial {
  color: var(--orange-soft);
}

.match-state.is-miss {
  color: var(--dps);
}

.match-footer {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.match-footer span {
  color: var(--muted);
  font-size: 10px;
}

.match-footer b {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
}

.match-footer small {
  flex: 1 1 100%;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.match-rationale {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

/* persona */

.persona-panel {
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 55%),
    rgba(255, 255, 255, 0.016);
}

.persona-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.persona-title {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.persona-position {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.persona-copy {
  margin: 12px 0 0;
  color: #b9c1ca;
  font-size: 12px;
  line-height: 1.9;
}

.persona-fit {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(0, 0, 0, 0.14);
}

.persona-fit > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.persona-fit p {
  margin: 0;
  color: #c8d0d8;
  font-size: 11px;
  line-height: 1.85;
}

/* legacy five-dimension radar styles (kept for compatibility) */

/* five-dimension profile */

.personality-panel {
  margin-top: 13px;
  padding: clamp(20px, 3.2vw, 28px);
  background:
    radial-gradient(ellipse 55% 80% at 12% 30%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.016);
}

.personality-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  margin-top: 12px;
}

.score-note {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.radar-wrap {
  min-width: 0;
}

.radar-chart {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
}

.radar-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.radar-grid-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
}

.radar-axis-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.radar-score-shape {
  fill: color-mix(in srgb, var(--accent) 17%, transparent);
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 30%, transparent));
  animation: radar-shape-in 700ms cubic-bezier(0.22, 0.8, 0.2, 1) 120ms both;
  transform-origin: 170px 150px;
}

.radar-score-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 55%, transparent));
}

.radar-label {
  fill: #8d98a4;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.radar-value {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.personality-side {
  min-width: 0;
}

.score-list {
  display: grid;
  gap: 10px;
}

.score-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.score-row-head span {
  color: #d3d9e0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.score-row-head i {
  margin-left: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.09em;
}

.score-row-head b {
  color: var(--bar-color);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.score-track {
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bar-color) 38%, transparent), var(--bar-color));
  box-shadow: 0 0 10px color-mix(in srgb, var(--bar-color) 45%, transparent);
  animation: score-grow 850ms cubic-bezier(0.22, 0.8, 0.2, 1) 180ms both;
}

.preference-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.preference-row > span {
  flex: 1 1 120px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.12);
}

.preference-row small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}

.preference-row b {
  color: #d9dfe5;
  font-size: 10.5px;
  font-weight: 600;
}

.profile-narrative {
  margin: 13px 0 0;
  color: #aeb7c1;
  font-size: 11.5px;
  line-height: 1.9;
}

.personality-rationale {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

/* lower result panels */

.result-lower {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 13px;
  margin-top: 13px;
}

.info-panel {
  position: relative;
  padding: 19px 21px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
}

.info-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 1px;
  content: "";
  background: rgba(255, 159, 28, 0.6);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: #d6dbe1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.panel-heading small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.profile-item {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(0, 0, 0, 0.12);
}

.profile-item span {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-item b {
  display: block;
  overflow: hidden;
  color: #cfd5dc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rationale {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}

.rationale-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--orange);
}

.rationale-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.rationale p {
  margin: 0;
  color: #aeb7c1;
  font-size: 11.5px;
  line-height: 1.9;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
}

.result-actions .btn--primary {
  min-width: 208px;
}

.result-actions .btn--ghost {
  min-width: 156px;
}

.result-disclaimer {
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Sparks / toast / copy dialog
   -------------------------------------------------------------------------- */

.spark-layer {
  position: fixed;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.spark {
  position: absolute;
  bottom: 12%;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background: var(--orange);
  opacity: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: spark-rise 2.3s cubic-bezier(0.16, 0.7, 0.3, 1) var(--delay) forwards;
}

.toast {
  position: fixed;
  bottom: calc(26px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 12px 17px;
  border: 1px solid rgba(255, 159, 28, 0.35);
  background: rgba(14, 18, 23, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: var(--orange-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(12px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.dialog-open {
  overflow: hidden;
}

.copy-dialog {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.copy-dialog[hidden] {
  display: none;
}

.copy-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 7, 0.82);
  backdrop-filter: blur(8px);
}

.copy-dialog__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  padding: clamp(22px, 4vw, 32px);
  overflow: auto;
  border: 1px solid rgba(255, 159, 28, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 159, 28, 0.055), transparent 40%),
    #0f141a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  animation: screen-in 260ms cubic-bezier(0.22, 0.8, 0.2, 1) both;
}

.copy-dialog__close {
  position: absolute;
  top: 8px;
  right: 11px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.copy-dialog__close:hover {
  color: var(--orange);
}

.copy-dialog__panel h2 {
  margin: 10px 0 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.copy-dialog__hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.copy-dialog__panel textarea {
  display: block;
  width: 100%;
  height: min(300px, 32vh);
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  background: #070a0d;
  color: #c9d0d8;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.8;
}

.copy-dialog__panel textarea:focus {
  outline: 1px solid rgba(255, 159, 28, 0.55);
  outline-offset: 1px;
}

.copy-dialog__actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.copy-dialog__actions .btn {
  min-height: 48px;
  font-size: 12px;
}

@media (max-width: 480px) {
  .copy-dialog {
    padding: 12px;
  }

  .copy-dialog__panel {
    max-height: calc(100dvh - 24px);
    padding: 20px 16px;
  }

  .copy-dialog__panel textarea {
    height: 38vh;
  }

  .copy-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .copy-dialog__actions .btn {
    min-width: 0;
    padding: 0 12px;
  }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

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

@keyframes option-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 159, 28, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 159, 28, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 159, 28, 0);
  }
}

@keyframes radar-sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blip-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.5);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.03);
  }
}

@keyframes spark-rise {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0) scale(0.6);
  }
  18% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), -68vh) rotate(220deg) scale(1);
  }
}

@keyframes radar-shape-in {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes score-grow {
  from {
    width: 0;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .landing {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 24px;
  }

  .radar-tag--tank {
    left: -1%;
  }

  .hero-card {
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  }

  .hero-portrait {
    min-height: 380px;
  }

  .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .landing {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: clamp(34px, 6vh, 56px);
  }

  .landing-copy {
    max-width: 640px;
  }

  .landing-title {
    font-size: clamp(3.2rem, 9.4vw, 5rem);
  }

  .radar-stage {
    width: min(330px, 68vw);
    margin-top: 22px;
  }

  .radar-tag--tank {
    left: -6%;
  }

  .radar-tag--dps {
    right: -5%;
  }

  .radar-tag--support {
    right: -4%;
  }

  .result-lower {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .personality-layout {
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    gap: 24px;
  }

  .hero-portrait {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .site {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 68px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy > span {
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .header-meta {
    display: none;
  }

  .fan-badge {
    height: 23px;
    padding: 0 7px;
    font-size: 7px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-top: 17px;
    font-size: 8px;
  }

  .tiebreak-note {
    gap: 9px;
    padding: 10px 11px;
  }

  .tiebreak-note p {
    font-size: 10.5px;
    line-height: 1.7;
  }

  .personality-panel {
    padding: 18px 15px;
  }

  .personality-layout {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .radar-chart {
    max-width: 300px;
  }

  .personality-side {
    width: 100%;
  }

  .score-list {
    gap: 8px;
  }

  .score-row-head span {
    font-size: 10px;
  }

  .score-row-head i {
    font-size: 6.5px;
  }

  .score-row-head b {
    font-size: 11px;
  }

  .profile-narrative {
    font-size: 11px;
    line-height: 1.85;
  }

  .personality-rationale {
    margin-top: 15px;
    padding-top: 13px;
  }

  .landing {
    padding-bottom: 22px;
  }

  .landing-title {
    font-size: clamp(2.85rem, 11.6vw, 4.2rem);
  }

  .landing-lede {
    margin: 22px 0;
    font-size: 13.5px;
    line-height: 1.85;
  }

  .landing-meta {
    margin-bottom: 26px;
  }

  .landing-meta > span {
    padding: 0 11px;
    font-size: 9px;
  }

  .landing-meta b {
    font-size: 13px;
  }

  .landing-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .landing-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
  }

  .landing-hint {
    max-width: 100%;
    font-size: 9px;
  }

  .radar-stage {
    width: min(280px, 78vw);
    margin-top: 16px;
  }

  .radar-tag {
    padding: 4px 6px;
    font-size: 7px;
  }

  .radar-tag--tank {
    top: 20%;
    left: 0;
  }

  .radar-tag--dps {
    top: 13%;
    right: 0;
  }

  .radar-tag--support {
    right: 1%;
    bottom: 16%;
  }

  .radar-status {
    bottom: -1%;
    left: 10%;
    font-size: 6.5px;
  }

  .role-strip {
    gap: 12px;
    padding: 13px 0 18px;
  }

  .role-strip-list {
    gap: 6px;
  }

  .role-chip {
    min-width: 105px;
    gap: 7px;
    padding: 8px 9px;
  }

  .role-chip strong {
    font-size: 10px;
  }

  .role-chip span span {
    font-size: 7px;
  }

  .role-chip .role-icon--chip {
    width: 18px;
    height: 18px;
  }

  .role-strip-note {
    display: none;
  }

  .quiz-screen {
    padding-top: 18px;
  }

  .quiz-top {
    gap: 12px;
    margin-bottom: 15px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .quiz-badge {
    display: none;
  }

  .progress-meta {
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .question-card {
    padding: 24px 17px 19px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  }

  .question-card::before {
    width: 62px;
  }

  .question-watermark {
    top: -0.24em;
    right: 0.04em;
    font-size: clamp(7rem, 28vw, 10rem);
  }

  .question-title {
    margin: 16px 0 22px;
    font-size: clamp(1.24rem, 4.9vw, 1.55rem);
    line-height: 1.5;
    letter-spacing: -0.02em;
  }

  .option-list {
    gap: 9px;
  }

  .option {
    grid-template-columns: 35px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 61px;
    padding: 12px 12px;
  }

  .option-key {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .option-text {
    font-size: 13px;
    line-height: 1.55;
  }

  .option-role {
    gap: 4px;
    padding-left: 8px;
    font-size: 7px;
  }

  .option-arrow {
    width: 15px;
    height: 15px;
  }

  .question-foot {
    margin-top: 15px;
    font-size: 7px;
  }

  .result-screen {
    padding-top: 24px;
  }

  .result-overline {
    align-items: flex-start;
  }

  .result-number {
    font-size: 7px;
  }

  .result-title {
    margin-top: 12px;
    font-size: clamp(2.15rem, 9vw, 3rem);
    letter-spacing: -0.05em;
  }

  .result-subtitle {
    font-size: 12.5px;
    line-height: 1.75;
  }

  .hero-card {
    grid-template-columns: 1fr;
    margin-top: 24px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  }

  .hero-portrait {
    min-height: 290px;
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  }

  .hero-photo {
    inset: 33px 8px 30px;
    width: calc(100% - 16px);
    height: calc(100% - 63px);
  }

  .hero-portrait--small {
    min-height: 190px;
  }

  .hero-portrait--small .hero-photo {
    inset: 21px 2px 21px;
    width: calc(100% - 4px);
    height: calc(100% - 42px);
  }

  .portrait-mark {
    font-size: clamp(7rem, 28vw, 10rem);
  }

  .portrait-mark--mid {
    font-size: clamp(5rem, 19vw, 7rem);
  }

  .portrait-mark--long {
    font-size: clamp(3.4rem, 13vw, 4.7rem);
  }

  .portrait-role {
    top: 16px;
    left: 17px;
  }

  .portrait-no {
    right: 17px;
    bottom: 16px;
  }

  .portrait-line {
    bottom: 45px;
    left: 17px;
  }

  .hero-main {
    padding: 22px 18px 25px;
  }

  .hero-name-row {
    gap: 10px;
    margin-top: 14px;
  }

  .hero-name {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .hero-epithet {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .hero-quote {
    margin-top: 15px;
    font-size: 11.5px;
  }

  .hero-tags {
    margin: 15px 0;
  }

  .hero-copy {
    font-size: 12.5px;
    line-height: 1.85;
  }

  .secondary-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .hero-portrait--small {
    min-height: 190px;
  }

  .secondary-main {
    padding: 17px 15px;
  }

  .secondary-overline {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 7px;
  }

  .secondary-index {
    font-size: 7px;
  }

  .secondary-name-row {
    gap: 7px;
    margin-top: 8px;
  }

  .secondary-name-row h3 {
    font-size: 24px;
  }

  .secondary-name-row span {
    font-size: 8px;
  }

  .secondary-copy {
    font-size: 11.5px;
    line-height: 1.8;
  }

  .result-lower {
    margin-top: 11px;
  }

  .info-panel {
    padding: 17px 15px;
  }

  .panel-heading {
    font-size: 10px;
  }

  .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .profile-item {
    padding: 8px 7px;
  }

  .profile-item span {
    font-size: 7.5px;
  }

  .profile-item b {
    font-size: 10px;
  }

  .rationale p {
    font-size: 11px;
    line-height: 1.85;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 19px;
  }

  .result-actions .btn {
    min-width: 0;
    min-height: 52px;
    padding: 0 17px;
    font-size: 12px;
  }

  .result-actions .btn-text {
    grid-column: 1 / -1;
    min-height: 38px;
  }

  .result-disclaimer {
    margin-top: 17px;
  }

  .result-intro::after {
    top: -15px;
    font-size: 5rem;
  }
}

@media (max-width: 520px) {
  .landing-title {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  .landing-meta > span {
    padding: 0 9px;
  }

  .landing-meta > span:last-child {
    padding-right: 0;
  }

  .key-hint {
    display: none;
  }

  .result-eyebrow {
    max-width: 76%;
    font-size: 7.5px;
    line-height: 1.5;
  }

  .result-title {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .secondary-overline .secondary-index {
    display: none;
  }

  .secondary-main {
    padding: 15px 13px;
  }

  .hero-tags--small .tag {
    height: 21px;
    padding: 0 7px;
    font-size: 7.5px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .result-actions .btn-text {
    grid-column: 1;
  }
}

@media (max-width: 380px) {
  .site {
    width: calc(100% - 24px);
  }

  .brand-copy > span {
    display: none;
  }

  .landing-title {
    font-size: 2.35rem;
  }

  .landing-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .landing-hint {
    max-width: none;
  }

  .radar-stage {
    width: 245px;
  }

  .question-card {
    padding-right: 13px;
    padding-left: 13px;
  }

  .option {
    grid-template-columns: 31px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .option-key {
    width: 31px;
    height: 31px;
  }

  .option-text {
    font-size: 12.5px;
  }

  .option-role {
    padding-left: 0;
    border-left: 0;
  }

  .option-role-text {
    display: none;
  }

  .option-role .role-icon--option {
    width: 16px;
    height: 16px;
  }

  .hero-name {
    font-size: 2.7rem;
  }

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

  .profile-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .profile-panel,
  .match-panel,
  .persona-panel {
    padding: 18px 15px;
  }

  .attribute-grid {
    gap: 8px;
    margin-top: 12px;
  }

  .attribute-card {
    padding: 11px 12px;
  }

  .attribute-head > span {
    font-size: 10px;
  }

  .attribute-head i {
    font-size: 6px;
  }

  .attribute-head > b {
    font-size: 11px;
  }

  .attribute-value {
    font-size: 24px;
  }

  .attribute-note {
    font-size: 9px;
  }

  .role-meter {
    grid-template-columns: 34px 25px minmax(0, 1fr);
    gap: 7px;
  }

  .match-row {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 54px;
    gap: 6px;
    min-height: 34px;
    font-size: 9.5px;
  }

  .match-row--head {
    font-size: 6.5px;
  }

  .match-state {
    font-size: 6.5px;
  }

  .match-footer b {
    font-size: 18px;
  }

  .persona-title {
    font-size: 1.3rem;
  }

  .persona-copy {
    font-size: 11px;
    line-height: 1.85;
  }

  .persona-fit p {
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .attribute-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .attribute-card--role {
    grid-column: auto;
  }

  .match-row {
    grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr) 50px;
  }

  .match-mine,
  .match-hero {
    font-size: 9px;
  }
}

@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;
  }

  .option {
    opacity: 1;
    transform: none;
  }

  .spark-layer {
    display: none;
  }
}
