:root {
  --canvas: #f7f6f1;
  --paper: #fffef9;
  --ink: #15171a;
  --blue: #2457e6;
  --blue-soft: #e9efff;
  --coral: #ff6542;
  --line: #deddd7;
  --muted: #6e737b;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { color: inherit; font: inherit; }

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

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(36, 87, 230, 0.1), transparent 26%),
    radial-gradient(circle at 8% 58%, rgba(255, 101, 66, 0.06), transparent 23%),
    var(--canvas);
}

.site-shell::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(21, 23, 26, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 23, 26, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.site-header,
.intro,
.quiz,
.result,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  transform: rotate(-5deg);
  border-radius: 6px;
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.edition {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.header-right {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.dqd-badge {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(28, 40, 76, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.dqd-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(28, 40, 76, 0.22);
}

.dqd-badge img { width: 100%; height: 100%; object-fit: cover; }

.intro {
  display: grid;
  min-height: calc(100svh - 154px);
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 54px;
  padding: 74px 0 86px;
}

.intro-copy { position: relative; z-index: 2; }

.kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.kicker span {
  padding: 5px 8px;
  transform: rotate(-2deg);
  border-radius: 4px;
  background: var(--coral);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.intro h1 {
  max-width: 700px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 1.02;
}

.intro h1 span {
  position: relative;
  display: inline-block;
  color: var(--blue);
}

.intro h1 span::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 4px;
  height: 7px;
  content: "";
  transform: rotate(-1deg);
  border-radius: 50%;
  background: var(--coral);
  clip-path: polygon(0 45%, 100% 0, 98% 80%, 2% 100%);
}

.intro-lede {
  max-width: 530px;
  margin: 36px 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.intro-lede strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding: 0 25px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--blue);
  box-shadow: 6px 6px 0 var(--coral);
  color: #fff;
}

.primary-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--coral);
}

.primary-button span { font-size: 21px; line-height: 1; }

.secondary-button {
  background: var(--paper);
  color: var(--blue);
}

.secondary-button:hover { background: var(--blue-soft); }

.intro-meta {
  display: flex;
  gap: 30px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 11px;
}

.intro-meta span { display: flex; align-items: baseline; gap: 5px; }
.intro-meta b { color: var(--ink); font-size: 18px; }

.intro-visual {
  position: relative;
  min-height: 520px;
  perspective: 1200px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(36, 87, 230, 0.24);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  position: absolute;
  width: 11px;
  height: 11px;
  content: "";
  border-radius: 50%;
  background: var(--coral);
}

.orbit-one { inset: 18px 8px 30px 0; transform: rotate(17deg); }
.orbit-one::before { top: 30px; left: 92px; }
.orbit-one::after { right: 36px; bottom: 98px; background: var(--blue); }
.orbit-two { inset: 90px 65px 85px 48px; transform: rotate(-28deg); }
.orbit-two::before { right: 72px; bottom: 18px; background: var(--blue); }
.orbit-two::after { top: 50px; left: 16px; }

.player-card {
  position: absolute;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(28, 40, 76, 0.14);
}

.card-back {
  top: 54px;
  right: 28px;
  display: flex;
  width: 270px;
  height: 390px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transform: rotate(12deg);
  border: 2px solid var(--ink);
  background: var(--coral);
  color: #fff;
}

.card-back::before {
  position: absolute;
  inset: -20%;
  content: "";
  transform: rotate(20deg);
  background: repeating-linear-gradient(90deg, transparent 0 32px, rgba(255, 255, 255, 0.14) 32px 34px);
}

.card-back span {
  position: relative;
  font-size: 90px;
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.card-back b {
  position: relative;
  margin-top: 8px;
  font-size: 18px;
  letter-spacing: 0.22em;
}

.card-front {
  top: 68px;
  left: 54px;
  display: flex;
  width: 300px;
  height: 420px;
  flex-direction: column;
  padding: 26px;
  transform: rotate(-7deg);
  border: 2px solid var(--blue);
  background: var(--paper);
  color: var(--ink);
}

.card-front::before {
  position: absolute;
  inset: 16px;
  content: "";
  border: 1px solid rgba(36, 87, 230, 0.3);
  border-radius: 11px;
}

.card-topline,
.card-name,
.card-bars { position: relative; z-index: 1; }

.card-topline {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.card-number {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1;
  place-items: center;
  color: var(--blue);
  font-size: 210px;
  font-weight: 950;
  line-height: 1;
}

.card-name { font-size: 27px; font-weight: 950; letter-spacing: -0.04em; }

.card-bars { display: flex; gap: 5px; margin-top: 14px; }
.card-bars i { display: block; height: 8px; flex: 1; background: var(--blue); }
.card-bars i:nth-child(2) { opacity: 0.58; }
.card-bars i:nth-child(3) { opacity: 0.22; }

.sticker {
  position: absolute;
  z-index: 4;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 11px;
  font-weight: 950;
}

.sticker-one {
  right: 12px;
  bottom: 82px;
  transform: rotate(-7deg);
  background: #fff;
  color: var(--ink);
}

.sticker-two {
  bottom: 26px;
  left: 10px;
  transform: rotate(6deg);
  background: var(--blue);
  color: #fff;
}

.quiz { min-height: calc(100svh - 154px); padding: 50px 0 64px; }

.progress-wrap { max-width: 870px; margin: 0 auto 42px; }

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.progress-copy b { color: var(--blue); }

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e4de;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 300ms ease;
}

.question-card {
  position: relative;
  display: grid;
  max-width: 980px;
  min-height: 500px;
  margin: auto;
  grid-template-columns: 110px 1fr;
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(28, 40, 76, 0.08);
  animation: question-in 320ms ease both;
}

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

.question-card::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 130px;
  height: 130px;
  content: "";
  border-left: 1px solid rgba(36, 87, 230, 0.13);
  border-bottom: 1px solid rgba(36, 87, 230, 0.13);
  border-radius: 0 16px 0 100%;
  background: var(--blue-soft);
}

.question-number {
  color: var(--blue);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.question-body { position: relative; z-index: 1; }

.question-eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.question-body h2 {
  max-width: 670px;
  margin: 0 0 34px;
  color: var(--ink);
  font-size: clamp(27px, 3.4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.32;
}

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.option {
  display: grid;
  min-height: 82px;
  grid-template-columns: 34px 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfaf6;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.option:hover,
.option.selected {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 7px 18px rgba(36, 87, 230, 0.08);
}

.option-key {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 5px;
  background: #ecebe5;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
}

.option:hover .option-key,
.option.selected .option-key { background: var(--blue); color: #fff; }

.option > span:nth-child(2) { font-size: 14px; font-weight: 700; line-height: 1.55; }
.option i { color: #b9bac0; font-style: normal; font-size: 16px; }
.option:hover i, .option.selected i { color: var(--coral); }

.quiz-footer {
  display: flex;
  max-width: 870px;
  justify-content: space-between;
  margin: 25px auto 0;
  color: #9a9ca1;
  font-size: 10px;
}

.text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.result { min-height: calc(100svh - 154px); padding: 50px 0 64px; }

.result-heading { margin-bottom: 34px; }

.result-heading p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.result-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 950;
  letter-spacing: -0.055em;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 18px;
}

.result-card,
.result-analysis { min-height: 500px; border-radius: 16px; }

.result-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 2px solid color-mix(in srgb, var(--team-secondary) 72%, #15171a 28%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--team-primary) 78%, white 22%), var(--team-primary));
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--team-secondary) 74%, #15171a 26%);
  color: var(--team-secondary);
}

.result-card::before {
  position: absolute;
  inset: -30%;
  content: "";
  transform: rotate(19deg);
  background: repeating-linear-gradient(90deg, transparent 0 46px, color-mix(in srgb, var(--team-secondary) 7%, transparent) 46px 48px);
}

.result-card.has-background {
  border-color: rgba(244, 241, 232, 0.74);
  background: #111c38;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--team-secondary) 62%, #111c38 38%);
  color: #fff;
  text-shadow: 0 2px 14px rgba(2, 8, 24, 0.72);
}

.result-card.has-background::before {
  inset: 0;
  transform: none;
  background:
    linear-gradient(180deg, rgba(4, 9, 25, 0.42) 0%, rgba(4, 9, 25, 0.04) 31%, rgba(4, 9, 25, 0.22) 55%, rgba(4, 9, 25, 0.94) 100%),
    linear-gradient(90deg, rgba(4, 9, 25, 0.46) 0%, transparent 48%),
    var(--team-background) center center / cover no-repeat;
}

.result-card.has-background .club-badge {
  top: 70px;
  right: auto;
  left: 28px;
  width: 96px;
  height: 96px;
  color: var(--team-secondary);
  text-shadow: none;
}

.result-card.has-background .club-badge img {
  filter: drop-shadow(0 3px 10px rgba(2, 8, 24, 0.85));
}

.result-card.has-background .club-badge span { font-size: 23px; }

.result-card.has-background .keyword-row span {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(4, 9, 25, 0.22);
  backdrop-filter: blur(3px);
}

.result-card-top,
.club-copy,
.keyword-row,
.club-badge { position: relative; z-index: 2; }

.result-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.club-badge {
  position: absolute;
  top: 85px;
  right: auto;
  left: 38px;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
}

.club-badge span { font-size: 28px; font-weight: 950; letter-spacing: -0.06em; }

.club-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(4, 9, 25, 0.28));
}

.club-copy {
  position: absolute;
  right: 34px;
  bottom: 96px;
  left: 34px;
}

.club-copy p { margin: 0 0 9px; font-size: 12px; font-weight: 900; }

.club-copy h2 {
  max-width: 74%;
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 1.04;
}

.club-copy h3 { margin: 10px 0 0; font-size: clamp(22px, 3vw, 34px); font-weight: 950; }

.keyword-row {
  position: absolute;
  right: 34px;
  bottom: 30px;
  left: 34px;
  display: flex;
  gap: 8px;
}

.keyword-row span {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--team-secondary) 48%, transparent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.ticket-cut {
  position: absolute;
  top: 70%;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--canvas);
}

.ticket-cut-left { left: -15px; }
.ticket-cut-right { right: -15px; }

.result-analysis {
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(28, 40, 76, 0.06);
}

.analysis-label {
  margin: 0 0 15px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.analysis-text {
  margin: 0;
  color: #373a40;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.9;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.metric > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.metric b { color: var(--blue); }

.metric-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e4de;
}

.metric-track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }

.partner-notes {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.partner-notes > div {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f4;
}

.partner-notes span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.partner-notes p {
  margin: 6px 0 0;
  color: #4d5158;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.alternatives {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.alternatives > span { color: var(--muted); font-size: 11px; font-weight: 900; }
.alternatives > div { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.alternatives b { color: var(--ink); font-size: 13px; }

.result-actions { display: flex; align-items: center; gap: 13px; margin-top: 24px; }
.result-actions .primary-button, .result-actions .secondary-button { min-height: 52px; }

.result-disclaimer { margin: 30px 0 0; color: #99999a; font-size: 10px; }

.site-footer {
  display: flex;
  height: 66px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #939498;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; padding-top: 48px; }
  .intro-copy { text-align: center; }
  .kicker, .intro-meta { justify-content: center; }
  .intro-lede { margin-inline: auto; }
  .intro-visual { width: min(500px, 100%); margin: -12px auto 0; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card { min-height: 460px; }
  .result-analysis { min-height: 0; }
}

@media (max-width: 680px) {
  .site-header, .intro, .quiz, .result, .site-footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 74px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 31px; height: 31px; }
  .edition { display: none; }
  .intro { min-height: auto; padding: 48px 0 54px; gap: 34px; }
  .intro h1 { font-size: clamp(43px, 13vw, 66px); }
  .intro-lede { font-size: 15px; line-height: 1.75; }
  .intro-meta { gap: 17px; margin-top: 30px; }
  .intro-visual { min-height: 390px; }
  .card-front { top: 32px; left: 50%; width: 220px; height: 318px; margin-left: -138px; padding: 20px; }
  .card-back { top: 28px; right: calc(50% - 140px); width: 208px; height: 320px; }
  .card-number { font-size: 150px; }
  .card-name { font-size: 20px; }
  .card-back span { font-size: 62px; }
  .sticker-one { right: 2px; bottom: 38px; }
  .sticker-two { bottom: 0; left: 8px; }
  .orbit-one { inset: 5px -50px 18px; }
  .orbit-two { inset: 55px 4px 58px; }
  .quiz, .result { padding: 34px 0 48px; }
  .progress-wrap { margin-bottom: 26px; }
  .question-card { display: block; min-height: 0; padding: 26px 18px 20px; }
  .question-number { display: block; margin-bottom: 19px; }
  .question-body h2 { margin-bottom: 24px; font-size: 27px; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 68px; }
  .quiz-footer span { display: none; }
  .result-heading h1 { font-size: 38px; }
  .result-card { min-height: 420px; padding: 25px; }
  .club-badge { top: 78px; right: auto; left: 24px; width: 96px; height: 96px; }
  .club-badge span { font-size: 22px; }
  .club-copy { right: 25px; bottom: 86px; left: 25px; }
  .club-copy h2 { max-width: 78%; font-size: 45px; }
  .keyword-row { right: 25px; bottom: 25px; left: 25px; }
  .result-analysis { min-height: 0; padding: 28px 24px 32px; }
  .analysis-text { font-size: 16px; }
  .metrics { gap: 20px 18px; }
  .partner-notes { margin-top: 24px; }
  .alternatives { display: block; margin-top: 26px; padding-top: 24px; }
  .alternatives > div { margin-top: 12px; text-align: left; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .site-footer { height: 62px; }
  .site-footer span:last-child { display: none; }
}

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