/* 别靠近我雷区 · 通缉令海报 + 金属符 */
:root {
  --bg: #f7f4ef;
  --paper: #fffdf8;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --red: #c41e3a;
  --red-dark: #8b1528;
  --gold: #b8860b;
  --line: #e8e0d4;
  --metal: linear-gradient(145deg, #f0e6d2, #c9b896 40%, #e8dcc4 70%, #a8956e);
  --shadow: 0 8px 28px rgba(26, 26, 26, 0.08);
  --radius: 12px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
}

.app {
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.hidden {
  display: none !important;
}

.view {
  animation: fadeIn 0.28s ease;
}

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

/* Landing */
.view-landing {
  text-align: center;
  padding-top: 36px;
}

.stamp {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  transform: rotate(-3deg);
  margin-bottom: 16px;
}

.kicker {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.landing-title {
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  line-height: 1.35;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.landing-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.foot-note {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}

/* Buttons */
.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 18px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

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

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

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 11px 12px;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  width: 100%;
  margin: 16px 0 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px;
}

.btn-lg {
  width: 100%;
  max-width: 280px;
  padding: 14px 22px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  display: block;
  margin: 6px 0;
}

/* Quiz */
.quiz-top {
  margin-bottom: 12px;
}

.progress-wrap {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 16.66%;
  background: var(--red);
  transition: width 0.25s ease;
}

.progress-text {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}

.quiz-guide {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.question-text {
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 18px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.option-btn {
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, background 0.15s;
}

.option-btn:hover,
.option-btn:focus-visible {
  border-color: var(--red);
  outline: none;
}

.option-btn.selected {
  border-color: var(--red);
  background: #fff5f6;
}

/* Reveal */
.view-reveal {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal-inner {
  text-align: center;
}

.reveal-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.reveal-text {
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Result / Wanted */
.wanted-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.wanted-card::before {
  content: "WANTED";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--red);
  opacity: 0.45;
  font-weight: 800;
}

.wanted-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.wanted-label {
  font-size: 13px;
  font-weight: 700;
}

.wanted-id {
  font-size: 12px;
  font-weight: 800;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 2px;
}

.wanted-name {
  font-size: clamp(1.5rem, 6vw, 1.85rem);
  margin: 0 0 14px;
  line-height: 1.25;
  color: var(--red-dark);
}

.quote-bar {
  margin: 0 0 14px;
  padding: 14px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 4px;
}

.suggest-compare {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
  padding: 8px 10px;
  background: #f0ebe3;
  border-radius: 6px;
}

.charm-thumb {
  border: 2px solid #8a7a55;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  background: var(--metal);
  color: #2a2418;
}

.charm-intro {
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 10px;
  opacity: 0.92;
}

.charm-thumb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.charm-badge {
  font-size: 12px;
  font-weight: 700;
}

.charm-rarity {
  font-size: 11px;
  font-weight: 800;
  background: var(--ink);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}

.charm-rarity.sr {
  background: var(--red);
}

.charm-field-label {
  margin: 8px 0 2px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.charm-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.charm-warning-line,
.charm-skill-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.charm-skill-line {
  font-weight: 600;
}

.charm-meta-plain {
  margin: 10px 0 0;
  font-size: 12px;
  opacity: 0.9;
}

.charm-help {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

.charm-row {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(42, 36, 24, 0.2);
}

.charm-row:last-of-type {
  border-bottom: none;
}

.charm-k {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.charm-v {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.charm-hint {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  margin-top: 3px;
  line-height: 1.35;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-row .btn-primary {
  grid-column: 1 / -1;
}

.result-detail {
  margin-top: 8px;
  padding: 4px 2px 16px;
}

.side-write {
  font-size: 14px;
  padding: 12px;
  background: #fff;
  border-left: 3px solid var(--red);
  margin: 0 0 16px;
}

.detail-block {
  margin-bottom: 18px;
}

.detail-block h3 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.detail-block p {
  margin: 0;
  font-size: 15px;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.bar-track {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 4px;
  min-width: 4px;
  transition: width 0.35s ease;
}

.charm-card.metal {
  background: var(--metal);
  border: 2px solid #6e5f3d;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  color: #2a2418;
}

.charm-card p {
  margin: 0 0 6px;
}

.charm-card-title {
  font-weight: 800;
  margin-bottom: 10px !important;
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
  vertical-align: middle;
}

.charm-date {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 8px !important;
}

.tail-force {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px !important;
}

.footer-legal {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 20px;
  text-align: center;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 100;
  max-width: 90vw;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: fadeIn 0.2s ease;
}

.mirror-cta {
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
