@font-face {
  font-family: "GameDisplay";
  src: local("Impact"), local("Arial Black");
  font-display: swap;
}

:root {
  --ink: #0b0d0c;
  --ink-soft: #151816;
  --paper: #f3f1eb;
  --paper-2: #e8e5dd;
  --acid: #d8f238;
  --acid-strong: #c8e80b;
  --coral: #ff684f;
  --muted: #777b73;
  --line-dark: rgba(243, 241, 235, 0.24);
  --line-light: rgba(11, 13, 12, 0.2);
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  --display: "GameDisplay", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--ink); color: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--ui);
  background:
    linear-gradient(rgba(216,242,56,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,242,56,.025) 1px, transparent 1px),
    var(--ink);
  background-size: 48px 48px;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.shell { min-height: 100vh; overflow: hidden; }

.site-header {
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: .02em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--acid);
  border-radius: 50%;
  position: relative;
}

.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  background: var(--acid);
}
.brand-mark::before { width: 30px; height: 1px; top: 10px; left: -5px; }
.brand-mark::after { width: 1px; height: 30px; top: -5px; left: 10px; }

.header-meta { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); }
.header-note { font-size: 13px; color: rgba(243,241,235,.64); letter-spacing: .08em; }
.header-contact { font-size: 11px; color: rgba(243,241,235,.35); letter-spacing: .02em; white-space: nowrap; }

.welcome {
  min-height: calc(100vh - 72px);
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(54px, 9vh, 112px) clamp(20px, 6vw, 84px) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(52px, 8vw, 120px);
  align-items: center;
  position: relative;
}

.welcome::before {
  content: "0101";
  position: absolute;
  right: 2vw;
  top: 2vh;
  font: 280px/.8 var(--display);
  color: rgba(243,241,235,.025);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.hero-figure {
  position: absolute;
  z-index: 0;
  width: min(34vw, 450px);
  max-height: calc(100vh - 100px);
  object-fit: contain;
  left: 72%;
  bottom: 0;
  transform: translateX(-47%);
  pointer-events: none;
  mix-blend-mode: screen;
  filter: saturate(.95) contrast(1.04);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 82%, transparent 100%);
}
.hero-title {
  margin: 0;
  font: clamp(80px, 12vw, 180px)/.78 var(--display);
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.hero-title span { color: var(--acid); }
.hero-subtitle {
  margin: 34px 0 0;
  max-width: 660px;
  font-size: clamp(24px, 2.7vw, 42px);
  font-weight: 850;
  line-height: 1.25;
}

.hero-note { margin: 18px 0 34px; color: rgba(243,241,235,.65); font-size: 15px; }

.primary-btn, .secondary-btn, .icon-btn, .vote-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 54px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.primary-btn {
  padding: 0 28px;
  background: var(--acid);
  color: var(--ink);
  box-shadow: 7px 7px 0 rgba(216,242,56,.2);
}
.primary-btn:hover { transform: translate(-2px, -2px); background: #e5fa67; }
.primary-btn:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.secondary-btn { padding: 0 24px; background: transparent; color: inherit; border-color: currentColor; }
.secondary-btn:hover { background: currentColor; color: var(--paper); }

.axis-preview {
  border: 1px solid var(--line-dark);
  padding: 26px;
  position: relative;
  background: rgba(11,13,12,.92);
  z-index: 2;
}

.axis-preview::after, .result-hero::after {
  content: "";
  width: 80px;
  height: 80px;
  position: absolute;
  right: 28px;
  top: 28px;
  border: 1px solid rgba(216,242,56,.26);
  border-radius: 50%;
  background: linear-gradient(transparent 49%, rgba(216,242,56,.2) 50%, transparent 51%), linear-gradient(90deg, transparent 49%, rgba(216,242,56,.2) 50%, transparent 51%);
}

.section-label { margin: 0 0 28px; color: var(--acid); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.axis-preview-list { display: grid; gap: 26px; }
.axis-preview-row { border-bottom: 1px solid var(--line-dark); padding-bottom: 20px; }
.axis-preview-row:last-child { border-bottom: 0; padding-bottom: 0; }
.axis-preview-row strong { display: block; font-size: 18px; }
.axis-preview-row span { display: block; margin-top: 6px; color: rgba(243,241,235,.52); font-size: 13px; }

.quiz-page { background: var(--paper); color: var(--ink); min-height: 100vh; }
.quiz-page .site-header { color: var(--paper); background: var(--ink); }
.quiz-wrap { max-width: 1120px; margin: 0 auto; padding: clamp(34px, 6vw, 76px) clamp(20px, 7vw, 90px) 48px; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.progress-track { height: 5px; background: #d9d7d0; flex: 1; overflow: hidden; }
.progress-fill { height: 100%; background: var(--acid-strong); transition: width .3s ease; }
.dimension-title { margin: 46px 0 24px; display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 900; }
.dimension-title::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 5px var(--paper); background: var(--acid); }
.question-copy { margin: 0; max-width: 830px; font-size: clamp(30px, 4vw, 54px); line-height: 1.34; letter-spacing: -.02em; font-weight: 900; }
.answer-area { margin-top: clamp(46px, 8vh, 92px); }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.likert-choice {
  min-height: 92px;
  padding: 12px 8px;
  border: 1px solid var(--ink);
  background: transparent;
  display: grid;
  place-items: center;
  gap: 6px;
  font: inherit;
  cursor: pointer;
}
.likert-choice strong { font-size: 20px; }
.likert-choice span { font-size: 12px; color: var(--muted); font-weight: 700; }
.likert-choice.selected { background: var(--acid); border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: translate(-3px,-3px); }
.likert-option { position: relative; }
.likert-option input { position: absolute; opacity: 0; pointer-events: none; }
.likert-option label {
  min-height: 92px;
  border: 1px solid #b8b6af;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  transition: .18s ease;
}
.likert-option label span { font-size: 12px; color: var(--muted); font-weight: 600; }
.likert-option input:checked + label { background: var(--acid); border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: translate(-3px,-3px); }
.binary-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.binary-btn { min-height: 96px; border: 1px solid var(--ink); background: transparent; font-size: 19px; font-weight: 900; }
.binary-btn.selected { background: var(--acid); box-shadow: 5px 5px 0 var(--ink); transform: translate(-3px,-3px); }
.quiz-actions { margin-top: 62px; display: flex; justify-content: space-between; gap: 16px; }
.quiz-actions .secondary-btn { color: var(--ink); min-width: 120px; }
.quiz-actions .secondary-btn:hover { color: var(--paper); background: var(--ink); }
.quiz-actions .primary-btn { min-width: 190px; }

.survey-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.survey-title { margin: 0 0 12px; font: clamp(44px, 6vw, 76px)/1 var(--display); }
.survey-subtitle { color: var(--muted); margin: 0 0 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 9px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 850; }
.field input, .field select {
  width: 100%; min-height: 52px; border: 1px solid #aaa89f; border-radius: 0; background: transparent; padding: 0 14px; color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--ink); }
.spend-panel { border-left: 1px solid var(--line-light); padding-left: 34px; }
.spend-panel h3 { margin: 0 0 22px; font-size: 22px; }
.spend-question { margin: 0 0 28px; }
.spend-question p { margin: 0 0 10px; line-height: 1.5; font-size: 14px; font-weight: 700; }
.mini-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mini-scale button { aspect-ratio: 1; border: 1px solid #aaa89f; background: transparent; font-weight: 800; }
.mini-scale button.selected { background: var(--acid); border-color: var(--ink); }
.privacy-note { margin: 32px 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.survey-back-btn { width: 100%; margin-top: 14px; color: var(--ink); }
.spend-panel .primary-btn { width: 100%; }

.share-page { min-height: 100vh; display: grid; place-items: center; padding: 26px; position: relative; }
.share-box { width: min(720px, 100%); border: 1px solid var(--line-dark); padding: clamp(30px, 6vw, 70px); text-align: center; background: rgba(255,255,255,.015); box-shadow: var(--shadow); }
.share-icon { width: 84px; height: 84px; margin: 0 auto 26px; border: 1px solid var(--acid); border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: var(--acid); }
.share-box h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); }
.share-box p { color: rgba(243,241,235,.62); line-height: 1.7; }
.share-actions { margin-top: 34px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.share-footnote { margin-top: 26px !important; font-size: 12px; }

.result-page { min-height: 100vh; background: var(--paper); color: var(--ink); }
.result-page .site-header { color: var(--paper); background: var(--ink); }
.result-wrap { max-width: 1280px; margin: 0 auto; padding: 42px clamp(18px, 5vw, 64px) 80px; }
.result-hero { min-height: 560px; border-bottom: 1px solid var(--line-light); display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); gap: 50px; align-items: center; position: relative; }
.result-kicker { color: var(--coral); font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.result-code { margin: 8px 0 0; font: clamp(100px, 15vw, 210px)/.78 var(--display); letter-spacing: -.04em; }
.result-code span { display: block; margin-top: 18px; color: var(--muted); font: 800 clamp(18px, 2vw, 28px)/1 var(--ui); letter-spacing: .12em; }
.persona-title { display: inline-block; margin: 18px 0; padding: 11px 16px; background: var(--ink); color: var(--paper); font-size: clamp(22px, 3vw, 36px); }
.persona-description { max-width: 650px; line-height: 1.75; color: #4f534d; white-space: pre-line; }
.axis-chart { display: grid; gap: 18px; position: relative; z-index: 1; }
.axis-result { padding-bottom: 16px; border-bottom: 1px solid var(--line-light); }
.axis-result:last-child { border-bottom: 0; }
.axis-row { display: grid; grid-template-columns: 145px 1fr 175px; gap: 14px; align-items: center; }
.axis-row span:first-child { text-align: right; }
.axis-row span { font-size: 13px; font-weight: 800; }
.axis-bar { height: 12px; background: #d6d3cb; position: relative; }
.axis-bar::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--ink); }
.axis-value { height: 100%; background: var(--acid-strong); transition: width .6s ease; }
.axis-score { color: var(--coral); font-family: var(--display); font-size: 24px !important; }
.axis-definition { margin-top: 9px; display: grid; gap: 3px; }
.axis-definition strong { color: var(--coral); font-size: 12px; }
.axis-definition span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.recommend-section { padding: 46px 0; border-bottom: 1px solid var(--line-light); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.recommend-section h2, .leaderboard-section h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 46px); }
.recommend-copy { color: var(--muted); line-height: 1.6; }
.role-ticket { background: var(--ink); color: var(--paper); padding: 26px; min-height: 220px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.role-ticket::after { content: "?"; position: absolute; right: 10px; bottom: -52px; color: rgba(216,242,56,.1); font: 250px/1 var(--display); }
.role-game { color: var(--acid); font-size: 13px; font-weight: 800; }
.role-name { margin: 12px 0; font: clamp(46px, 6vw, 80px)/1 var(--display); position: relative; z-index: 1; }
.feedback-row { display: flex; gap: 10px; position: relative; z-index: 1; }
.icon-btn { min-width: 64px; padding: 0 16px; color: var(--paper); background: transparent; border-color: rgba(243,241,235,.3); }
.icon-btn.active, .icon-btn:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }

.leaderboard-section { padding-top: 46px; }
.leaderboard-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.total-votes { color: var(--muted); font-size: 13px; }
.leaderboard { border-top: 1px solid var(--ink); }
.leader-row { display: grid; grid-template-columns: 48px 58px minmax(160px, 1.1fr) minmax(180px, 1.4fr) 62px 104px; gap: 16px; align-items: center; min-height: 82px; border-bottom: 1px solid var(--line-light); }
.rank { font: 28px/1 var(--display); color: var(--muted); }
.candidate-art { width: 52px; height: 64px; overflow: hidden; display: grid; place-items: center; background: #dedbd2; border: 1px solid var(--line-light); color: #8d9088; font: 30px/1 var(--display); }
.candidate-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.role-label strong { display: block; }
.role-label span { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.role-vote-link { appearance: none; border: 0; padding: 0; background: transparent; color: var(--ink); text-align: left; }
.role-vote-link:hover strong { color: var(--coral); text-decoration: underline; text-underline-offset: 4px; }
.vote-bar { height: 8px; background: #d9d6ce; }
.vote-bar div { height: 100%; background: var(--acid-strong); }
.percent { font-family: var(--display); font-size: 22px; }
.vote-btn { min-height: 38px; background: transparent; border-color: var(--ink); }
.vote-btn:hover { background: var(--acid); }
.nomination-action { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 8px; }
.nomination-action > span { color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.custom-vote-note { margin: 30px 0 12px; color: var(--muted); line-height: 1.7; }
.custom-vote { margin-top: 34px; padding: 26px; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.custom-vote .field input { color: var(--paper); border-color: rgba(243,241,235,.35); }
.custom-vote .primary-btn { box-shadow: none; }

.persona-feedback-section { margin-top: 54px; padding: 38px; background: var(--ink); color: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.persona-feedback-section h2 { margin: 8px 0 6px; font-size: clamp(26px, 4vw, 42px); }
.persona-feedback-section p { margin: 0; color: rgba(243,241,235,.62); }
.persona-feedback-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 260px; }
.accuracy-btn { min-height: 58px; padding: 0 26px; border: 1px solid rgba(243,241,235,.4); background: transparent; color: var(--paper); font-weight: 900; }
.accuracy-btn:hover, .accuracy-btn.active { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.shared-result-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.shared-result-banner span { font-weight: 800; }
.shared-result-banner .primary-btn { width: auto; min-width: 132px; margin: 0; }
.result-share-btn { margin-top: 20px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.result-share-btn:hover { background: #252622; color: var(--paper); border-color: #252622; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--coral); color: var(--ink); padding: 13px 20px; z-index: 100; font-weight: 800; transition: transform .25s ease; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }
.loading { min-height: 100vh; display: grid; place-items: center; font-size: 18px; color: var(--acid); }

@media (max-width: 860px) {
  .site-header { height: 64px; padding: 0 20px; }
  .header-note { display: none; }
  .header-contact { max-width: 170px; font-size: 10px; line-height: 1.35; color: rgba(243,241,235,.32); white-space: normal; text-align: right; }
  .welcome { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-figure { display: none; }
  .hero-title { font-size: clamp(72px, 22vw, 124px); }
  .axis-preview { margin-bottom: 20px; }
  .survey-grid, .result-hero, .recommend-section { grid-template-columns: 1fr; }
  .spend-panel { border-left: 0; border-top: 1px solid var(--line-light); padding: 30px 0 0; }
  .result-hero { padding: 36px 0 46px; }
  .axis-chart { margin-bottom: 20px; }
  .leader-row { grid-template-columns: 40px 52px minmax(140px, 1fr) 52px 96px; }
  .leader-row .vote-bar { display: none; }
  .custom-vote { grid-template-columns: 1fr 1fr; }
  .custom-vote .primary-btn { grid-column: 1 / -1; }
  .persona-feedback-section { align-items: stretch; flex-direction: column; }
}

@media (max-width: 560px) {
  .brand { font-size: 21px; }
  .welcome { min-height: auto; gap: 52px; padding-bottom: 52px; }
  .hero-title { font-size: clamp(64px, 21vw, 96px); }
  .hero-subtitle { font-size: 26px; }
  .hero-note { font-size: 13px; }
  .primary-btn { min-height: 58px; width: 100%; }
  .axis-preview { padding: 22px 18px; }
  .quiz-wrap { padding: 28px 18px 28px; }
  .question-copy { font-size: 30px; }
  .dimension-title { margin-top: 38px; }
  .answer-area { margin-top: 44px; }
  .likert { gap: 7px; }
  .likert-choice { min-height: 78px; padding: 8px 4px; }
  .likert-choice span { font-size: 10px; }
  .binary-options { grid-template-columns: 1fr; gap: 10px; }
  .binary-btn { min-height: 64px; }
  .likert-option label { min-height: 80px; font-size: 14px; }
  .likert-option label span { font-size: 10px; text-align: center; }
  .quiz-actions { margin-top: 42px; }
  .quiz-actions .secondary-btn { min-width: 80px; padding: 0 14px; }
  .quiz-actions .primary-btn { min-width: 0; width: auto; flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .survey-title { font-size: 50px; }
  .share-actions { display: grid; }
  .result-wrap { padding-left: 16px; padding-right: 16px; }
  .result-code { font-size: 110px; }
  .result-code span { font-size: 17px; }
  .axis-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .axis-row span { font-size: 10px; }
  .axis-row span:first-child { grid-column: 1; grid-row: 1; text-align: left; }
  .axis-row .axis-bar { grid-column: 1 / -1; grid-row: 2; }
  .axis-row span:last-child { grid-column: 2; grid-row: 1; text-align: right; }
  .axis-score { display: none; }
  .recommend-section { padding-top: 34px; }
  .leaderboard-head { align-items: start; flex-direction: column; }
  .leader-row { gap: 8px; min-height: 76px; grid-template-columns: 28px 44px minmax(92px, 1fr) 40px 78px; }
  .shared-result-banner { align-items: stretch; flex-direction: column; }
  .shared-result-banner .primary-btn { width: 100%; }
  .candidate-art { width: 40px; height: 54px; font-size: 24px; }
  .nomination-action { grid-template-columns: 1fr 36px; gap: 4px; }
  .nomination-action > span { font-size: 10px; }
  .vote-btn { padding: 0; }
  .custom-vote { grid-template-columns: 1fr; padding: 20px; }
  .custom-vote .primary-btn { grid-column: auto; }
  .persona-feedback-section { padding: 26px 20px; }
  .persona-feedback-actions { min-width: 0; }
}

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