/* ================================================
   UNLOCK — Brain Capital セルフ診断キット
   Monochrome / Grayscale Design System
   ================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --gray-900: #111111;
  --gray-800: #222222;
  --gray-700: #333333;
  --gray-600: #555555;
  --gray-500: #777777;
  --gray-400: #999999;
  --gray-300: #BBBBBB;
  --gray-200: #DDDDDD;
  --gray-150: #E8E8E8;
  --gray-100: #F0F0F0;
  --gray-50: #F7F7F7;
  --white: #FFFFFF;

  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- Screen Management ---------- */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

/* ---------- Utility ---------- */
strong {
  font-weight: 600;
  color: var(--gray-900);
}

/* ================================================
   LANDING SCREEN
   ================================================ */

.landing-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  height: 48px;
  width: auto;
  filter: grayscale(100%);
}

.logo-fallback {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--black);
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
}

.landing-hero {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-200);
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.5px;
}

.landing-body {
  flex: 1;
}

.lead-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 20px;
  line-height: 1.8;
}

.body-text {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.9;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 40px 0;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
}

.info-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}

.info-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
}

.info-sublabel {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

.scoring-guide {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}

.guide-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.guide-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.guide-score {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--gray-800);
  border-radius: 50%;
  flex-shrink: 0;
}

.guide-desc {
  font-size: 13px;
  color: var(--gray-600);
}

.note-text {
  font-size: 13px;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--gray-200);
}

.landing-footer {
  margin-top: 48px;
  text-align: center;
}

.credit-text {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 16px;
  letter-spacing: 0.5px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 16px 48px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  background: var(--gray-700);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--gray-600);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover {
  border-color: var(--gray-600);
  color: var(--gray-800);
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-text {
  background: none;
  border: none;
  color: var(--gray-500);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

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

/* ================================================
   ASSESSMENT SCREEN
   ================================================ */

.assessment-container {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.assessment-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-150);
  gap: 16px;
}

.header-left {
  flex-shrink: 0;
}

.header-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--black);
}

.header-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar-container {
  flex: 1;
  height: 3px;
  background: var(--gray-150);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.header-right {
  flex-shrink: 0;
}

.part-indicator {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gray-500);
  text-transform: uppercase;
}

.assessment-body {
  flex: 1;
  padding: 32px 24px 120px;
}

.category-header {
  margin-bottom: 36px;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.category-part-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
}

.category-id {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  padding: 2px 8px;
  background: var(--gray-100);
  border-radius: 2px;
}

.category-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.category-description {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.8;
}

.questions-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Question Card */
.question-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.question-card.answered {
  border-color: var(--gray-700);
  background: var(--gray-50);
}

.question-id {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.question-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.7;
  margin-bottom: 20px;
}

.rating-group {
  display: flex;
  gap: 8px;
}

.rating-btn {
  flex: 1;
  aspect-ratio: 1;
  max-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.rating-btn:hover {
  border-color: var(--gray-600);
  color: var(--gray-800);
}

.rating-btn.selected {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--white);
}

.rating-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
}

.rating-label-text {
  font-size: 10px;
  color: var(--gray-400);
}

.assessment-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-150);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 100;
}

.assessment-footer .btn-primary,
.assessment-footer .btn-secondary {
  flex: 1;
  max-width: 200px;
  text-align: center;
}

@media (min-width: 640px) {
  .assessment-footer {
    max-width: 640px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ================================================
   RESULTS SCREEN
   ================================================ */

.results-container {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  width: 100%;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-150);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

.results-body {
  padding: 0 24px 64px;
}

/* Hero Score */
.results-hero {
  text-align: center;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 40px;
}

.results-date {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.results-main-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.score-ring-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.score-ring {
  width: 200px;
  height: 200px;
}

.score-ring-number {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 700;
  fill: var(--black);
}

.score-ring-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  fill: var(--gray-400);
}

.score-ring-level {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  fill: var(--gray-600);
}

.score-dual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.score-dual-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-dual-bar-container {
  height: 6px;
  background: var(--gray-150);
  border-radius: 3px;
  overflow: hidden;
}

.score-dual-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

.health-bar {
  background: var(--gray-700);
}

.skills-bar {
  background: var(--gray-400);
}

.score-dual-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.score-dual-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
}

.score-dual-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  font-variant-numeric: tabular-nums;
}

/* Sections */
/* Results Group Headers */
.results-group {
  padding-top: 48px;
}

.results-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-900);
}

.results-group-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--gray-900);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.results-group-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.results-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-200);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Type Classification */
.type-card {
  text-align: center;
  padding: 32px 24px;
  border: 2px solid var(--gray-800);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.type-badge {
  display: inline-block;
  padding: 4px 20px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.type-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.type-description {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* Type Matrix */
.type-matrix {
  position: relative;
  padding: 24px 0;
  max-width: 400px;
  margin: 0 auto;
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  margin: 8px 0;
}

.matrix-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 12px;
  transition: var(--transition);
}

.matrix-cell.active {
  background: var(--gray-900);
  border-color: var(--gray-900);
}

.matrix-cell.active .matrix-type,
.matrix-cell.active .matrix-label {
  color: var(--white);
}

.matrix-type {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.matrix-label {
  font-size: 11px;
  color: var(--gray-400);
}

.matrix-axis-y,
.matrix-axis-y-bottom {
  text-align: center;
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 0.5px;
  padding: 4px 0;
}

.matrix-axis-x {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* Radar Chart */
.radar-container {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.radar-chart {
  width: 100%;
  max-width: 360px;
}

/* Category Breakdown */
.category-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.breakdown-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.breakdown-score {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  font-variant-numeric: tabular-nums;
}

.breakdown-bar-container {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.breakdown-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
  background: var(--gray-700);
}

.breakdown-bar.low {
  background: var(--gray-400);
}

.breakdown-bar.mid {
  background: var(--gray-600);
}

.breakdown-bar.high {
  background: var(--gray-900);
}

/* Interpretation Table */
.interpretation-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.interp-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.interp-row.active {
  border-color: var(--gray-800);
  background: var(--gray-50);
}

.interp-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-500);
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  flex-shrink: 0;
}

.interp-row.active .interp-badge {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--white);
}

.interp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.interp-range {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-800);
}

.interp-level {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.interp-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-top: 2px;
}

/* Improvement Actions */
.improvement-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-card {
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
}

.action-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.action-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.action-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* AI Prompt */
.prompt-box {
  position: relative;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  padding-top: 20px;
}

.prompt-text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

.btn-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 16px;
  background: var(--gray-800);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--gray-600);
}

.btn-copy.copied {
  background: var(--gray-500);
}

/* Footer */
.results-footer {
  text-align: center;
  padding: 48px 0 32px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 8px;
}

.footer-credit {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.5px;
}

/* ================================================
   BIPOLAR QUESTIONS (Brain Type)
   ================================================ */

.bipolar-card .bipolar-statements {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 20px;
}

.bipolar-left,
.bipolar-right {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.6;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-150);
}

.bipolar-vs {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--gray-300);
  font-weight: 600;
  flex-shrink: 0;
}

/* ================================================
   BRAIN TYPE RESULTS
   ================================================ */

.bt-type-card {
  text-align: center;
  padding: 32px 24px;
  border: 2px solid var(--gray-800);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.bt-type-code {
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--black);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.bt-type-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.bt-type-description {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
}

.bt-axes-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bt-axis-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bt-axis-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.bt-axis-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
  transition: var(--transition);
}

.bt-axis-label.active {
  font-weight: 700;
  color: var(--gray-900);
}

.bt-axis-bar-container {
  position: relative;
  height: 10px;
  background: var(--gray-100);
  border-radius: 5px;
  overflow: hidden;
}

.bt-axis-bar {
  height: 100%;
  background: var(--gray-700);
  border-radius: 5px;
  transition: width 0.8s ease;
}

.bt-axis-midline {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--gray-300);
  transform: translateX(-50%);
}

/* ================================================
   NARRATIVE FEEDBACK
   ================================================ */

.narrative-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.narrative-opening {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--gray-150);
}

.narrative-block {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.narrative-strength {
  background: var(--gray-50);
  border-left: 4px solid var(--gray-900);
}

.narrative-weakness {
  background: var(--white);
  border-left: 4px solid var(--gray-400);
}

.narrative-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.strength-label {
  color: var(--gray-900);
}

.weakness-label {
  color: var(--gray-500);
}

.narrative-cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.narrative-cat-score {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
}

.narrative-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.9;
}

.narrative-bold {
  font-weight: 500;
  color: var(--gray-800);
  font-size: 14px;
}

.narrative-closing {
  padding-top: 16px;
  border-top: 1px solid var(--gray-150);
}

.narrative-italic {
  font-style: italic;
  color: var(--gray-500);
}

/* ================================================
   BRAIN TYPE COMPATIBILITY
   ================================================ */

.compat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compat-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compat-header {
  padding: 12px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.compat-best .compat-header {
  background: var(--gray-900);
}

.compat-best .compat-relation {
  color: var(--white);
}

.compat-relation {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gray-700);
}

.compat-body {
  padding: 20px;
}

.compat-partner-code {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--black);
  margin-bottom: 2px;
}

.compat-partner-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.compat-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 8px;
}

.compat-partner-detail {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.7;
  font-style: italic;
}

/* ================================================
   SHARE & SAVE
   ================================================ */

.share-section {
  border-bottom: none;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.btn-share-line {
  background: #06C755;
  color: #fff;
}

.btn-share-line:hover {
  background: #05a848;
}

.btn-share-x {
  background: var(--gray-900);
  color: #fff;
}

.btn-share-x:hover {
  background: var(--gray-700);
}

.btn-share:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ================================================
   LINE CTA (Primary Conversion)
   ================================================ */

.line-cta-section {
  border-bottom: none;
  padding-top: 48px;
  padding-bottom: 48px;
}

.line-cta-card {
  text-align: center;
  padding: 40px 28px;
  background: linear-gradient(135deg, #06C755 0%, #04a347 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.line-cta-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.line-cta-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.line-cta-badge {
  display: inline-block;
  padding: 3px 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 20px;
}

.line-cta-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.line-cta-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.line-cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.line-cta-benefits li {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.line-cta-benefits li::before {
  content: '\2713\0020';
  font-weight: 700;
}

.btn-line-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 16px 24px;
  background: #fff;
  color: #06C755;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-line-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-line-cta:active {
  transform: translateY(0);
}

.line-cta-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.question-card {
  animation: fadeInUp 0.4s ease both;
}

.question-card:nth-child(1) { animation-delay: 0.05s; }
.question-card:nth-child(2) { animation-delay: 0.15s; }
.question-card:nth-child(3) { animation-delay: 0.25s; }
.question-card:nth-child(4) { animation-delay: 0.35s; }

/* Category transition */
.questions-container.transitioning {
  opacity: 0;
  transform: translateY(12px);
}

.questions-container {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 480px) {
  .landing-container {
    padding: 32px 20px 48px;
  }

  .hero-title {
    font-size: 26px;
  }

  .info-grid {
    gap: 8px;
  }

  .info-number {
    font-size: 28px;
  }

  .assessment-body {
    padding: 24px 20px 100px;
  }

  .category-title {
    font-size: 20px;
  }

  .rating-btn {
    max-width: 48px;
    font-size: 15px;
  }

  .results-body {
    padding: 0 20px 48px;
  }

  .score-ring {
    width: 170px;
    height: 170px;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 40px;
  }

  .landing-container {
    padding: 64px 32px 80px;
  }

  .select-container {
    padding: 64px 32px 80px;
  }
}

/* ================================================
   LANGUAGE & MODE SELECT SCREENS
   ================================================ */

.select-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.select-logo {
  text-align: center;
  margin-bottom: 48px;
}

.select-logo .logo-image {
  height: 48px;
  width: auto;
  filter: grayscale(100%);
}

.select-logo .logo-text,
.select-logo .header-logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--black);
  text-transform: uppercase;
}

.select-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

.select-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.8;
  margin-bottom: 40px;
}

.select-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 400px;
}

.select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 40px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  flex: 1;
  min-width: 160px;
}

.select-card:hover {
  border-color: var(--gray-800);
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.select-card:active {
  transform: translateY(0);
}

.select-card-icon {
  font-size: 40px;
  line-height: 1;
}

.select-card-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
}

/* Mode Select */
.mode-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  text-align: left;
  position: relative;
}

.mode-card:hover {
  border-color: var(--gray-800);
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mode-card:active {
  transform: translateY(0);
}

.mode-card-recommended {
  border-color: var(--gray-800);
  background: var(--gray-50);
}

.mode-card-recommend-badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  align-self: flex-start;
  margin-bottom: 4px;
}

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

.mode-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.mode-card-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.mode-card-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.mode-card-detail {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

@media (max-width: 480px) {
  .select-options {
    flex-direction: column;
  }

  .select-card {
    padding: 24px 32px;
  }

  .select-title {
    font-size: 18px;
  }
}

/* ---------- History Button (Mode Select) ---------- */
.btn-history {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 16px auto 0;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-history:hover {
  border-color: var(--gray-600);
  color: var(--gray-900);
}

/* ---------- History Screen ---------- */
.history-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 8px;
}

.history-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: var(--font-sans);
}

.history-card:hover {
  border-color: var(--gray-400);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.history-card-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  flex-shrink: 0;
}

.history-card-scores {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.history-score {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
}

.history-score small {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
}

.history-level {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--gray-800);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}

.history-brain-type {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.history-brain-type-name {
  font-size: 12px;
  color: var(--gray-500);
}

.history-empty {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 40px;
  line-height: 1.8;
}
