@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --border: #dde1e8;
  --accent: #a07c1e;
  --accent2: #2a6fa8;
  --danger: #c84b4b;
  --text: #1a1e26;
  --btn-text: #1a1e26;
  --muted: #7a8494;
  --yes: #d4edda;
  --yes-hover: #b8dfc4;
  --no: #f8d7da;
  --no-hover: #f1b8bc;
  --partial: #fff8d4;
  --partial-hover: #f5ebb0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c0f;
    --panel: #111418;
    --border: #1e2530;
    --accent: #c8a84b;
    --accent2: #4b8fc8;
    --text: #d4d8de;
    --btn-text: #ffffff;
    --muted: #5a6070;
    --yes: #2a5c3a;
    --yes-hover: #3a7c50;
    --no: #5c2a2a;
    --no-hover: #7c3a3a;
    --partial: #3a3a1a;
    --partial-hover: #5c5c2a;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(160,124,30,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(42,111,168,0.05) 0%, transparent 50%);
}

/* ----------------
   Header
---------------- */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.header .label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.header h1 {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  line-height: 1.3;
}

.header p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ----------------
   Question Card
---------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  max-width: 560px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.step-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.question {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}

.sub-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: -16px;
  margin-bottom: 24px;
  font-style: italic;
}

/* ----------------
   Choices
---------------- */
.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--btn-text);
}

.btn-yes         { background: var(--yes);    border-color: #3a7c50; }
.btn-yes:hover   { background: var(--yes-hover); transform: translateX(4px); }

.btn-no          { background: var(--no);     border-color: #7c3a3a; }
.btn-no:hover    { background: var(--no-hover);  transform: translateX(4px); }

.btn-partial     { background: var(--partial); border-color: #7c7c3a; }
.btn-partial:hover { background: var(--partial-hover); transform: translateX(4px); }

.btn-neutral     { background: #1a2030; border-color: var(--accent2); }
.btn-neutral:hover { background: #1e2840; transform: translateX(4px); }

.btn .icon  { font-size: 18px; flex-shrink: 0; }
.btn .text  { flex: 1; }
.btn .arrow { color: var(--muted); font-size: 12px; flex-shrink: 0; }

/* ----------------
   Result Card
---------------- */
.result-card {
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 32px 24px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.result-emoji   { font-size: 64px; margin-bottom: 16px; display: block; }

.result-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.result-vehicle {
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 900;

  margin-bottom: 16px;
}

.result-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
}

.result-desc strong { color: var(--accent); }

.result-warning {
  background: rgba(200,168,75,0.08);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-restart {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-restart:hover { background: rgba(200,168,75,0.1); }

.result-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
}

/* ----------------
   Progress
---------------- */
.progress {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}

.progress-dot.active { background: var(--accent); }
.progress-dot.done   { background: var(--muted); }

/* ----------------
   Confidence Meter
---------------- */
.confidence-meter {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.meter-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ----------------
   Animation
---------------- */
.fade-enter {
  animation: fadeIn 0.25s ease;
}

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

/* ----------------
   Wiki Links
---------------- */
.result-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-wiki {
  display: block;
  padding: 12px 18px;
  border-radius: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s ease;
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.4);
  color: var(--accent);
}

.btn-wiki:hover {
  background: rgba(200,168,75,0.22);
  transform: translateY(-1px);
}

.btn-wiki-sub {
  background: rgba(75,143,200,0.08);
  border-color: rgba(75,143,200,0.3);
  color: var(--accent2);
}

.btn-wiki-sub:hover {
  background: rgba(75,143,200,0.16);
}