/* ============================================================
   Seven Sins × Seven Virtues
   Visual system ported 1:1 from the reference site's own CSS
   (theme-BJhvTtHK.css / QuestionnairePage / ReportPage /
    SinWheel / SinVirtueRadar). Values are the originals.
   ============================================================ */

:root {
  /* --- original palette, verbatim --- */
  --s2-bg: #070607;
  --s2-panel: rgba(20, 17, 16, .82);
  --s2-panel-strong: rgba(28, 22, 20, .96);
  --s2-ink: #f5ead8;
  --s2-muted: #bcae9a;
  --s2-dim: #8a7d6f;
  --s2-line: rgba(239, 214, 174, .16);
  --s2-line-strong: rgba(239, 214, 174, .3);
  --s2-gold: #d7ad67;
  --s2-gold-soft: #f1dcc0;
  --s2-crimson: #9f2430;
  --s2-crimson-bright: #dc4956;
  --s2-ember: #e9834e;
  --s2-radius: 10px;
  --s2-shadow: 0 26px 74px rgba(0, 0, 0, .48);

  --font-serif: "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-en: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--s2-bg); }

body {
  margin: 0;
  color: var(--s2-ink);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 74% 8%, rgba(159, 36, 48, .26), transparent 34%),
    radial-gradient(circle at 9% 62%, rgba(215, 173, 103, .13), transparent 28%),
    linear-gradient(180deg, #070607, #170d0e 48%, #050405);
  background-attachment: fixed;
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }

/* ---------- ambient glows (from .glow) ---------- */
.glow {
  position: fixed;
  z-index: 0;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}
.glow--one { top: -30vmax; right: -20vmax; background: radial-gradient(circle, rgba(159, 36, 48, .7), transparent 70%); }
.glow--two { bottom: -30vmax; left: -25vmax; background: radial-gradient(circle, rgba(215, 173, 103, .35), transparent 70%); }

/* ---------- column shell (from .s2-column) ---------- */
.column {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 18px max(64px, calc(env(safe-area-inset-bottom) + 56px));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(239, 214, 174, .028) 0 1px, transparent 1px 42px),
    rgba(8, 6, 7, .72);
  box-shadow: 0 0 0 1px rgba(239, 214, 174, .06), 0 38px 100px rgba(0, 0, 0, .58);
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; background: none; border: 0; cursor: pointer; }
.brand > .mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--s2-gold);
  border-radius: 8px;
  color: var(--s2-gold);
  font: 700 13px/1 Georgia, "Songti SC", serif;
  letter-spacing: 1px;
}
.brand > .name { font-size: 15px; font-weight: 600; color: var(--s2-gold-soft); letter-spacing: 2px; }
.brand > .name small {
  display: block;
  margin-top: 1px;
  color: var(--s2-dim);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.5px;
}

.cover-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cover-tag {
  padding: 5px 12px;
  border: 1px solid var(--s2-line-strong);
  border-radius: 999px;
  color: var(--s2-gold);
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--s2-gold);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.eyebrow > i { display: block; width: 28px; height: 1px; background: linear-gradient(90deg, var(--s2-gold), transparent); }

/* ---------- cover ---------- */
.cover { display: flex; flex-direction: column; gap: 22px; animation: s2-rise .5s ease both; }
.cover-hero { display: grid; gap: 14px; margin-top: 6px; }
.cover-hero h1 {
  font: 700 clamp(34px, 10vw, 44px)/1.18 var(--font-serif);
  letter-spacing: 1px;
  color: var(--s2-gold-soft);
}
.cover-hero h1 span { color: var(--s2-crimson-bright); }
.cover-hero .lead { color: var(--s2-muted); font-size: 14.5px; line-height: 1.85; }

/* ---------- wheel (from .s2-wheel) ---------- */
.wheel-block {
  display: grid;
  gap: 12px;
  padding: 18px 8px 16px;
  border: 1px solid var(--s2-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 40%, rgba(159, 36, 48, .16), transparent 60%),
    var(--s2-panel);
}
.wheel {
  --size: min(84vw, 340px);
  --radius: calc(var(--size) * .405);
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  margin: 0 auto;
}
.wheel .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(215, 173, 103, .28); }
.wheel .ring--outer { inset: 3%; border-style: dashed; animation: spin 90s linear infinite; }
.wheel .ring--inner {
  inset: 24%;
  border-color: rgba(220, 73, 86, .32);
  background: radial-gradient(circle, rgba(159, 36, 48, .28), transparent 70%);
}
.wheel .core { position: absolute; inset: 36%; display: grid; place-content: center; gap: 4px; text-align: center; }
.wheel .core strong { font: 700 clamp(22px, 7vw, 30px)/1 Georgia, "Songti SC", serif; letter-spacing: 3px; color: var(--s2-gold-soft); }
.wheel .core small { font-size: 8px; letter-spacing: 1.5px; color: var(--s2-gold); }
.wheel .node {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 0;
  width: 62px;
  padding: 5px 2px;
  line-height: 1.2;
  overflow: hidden;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: 10px;
  background: rgba(12, 9, 9, .82);
  color: var(--s2-ink);
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1));
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.wheel .node b { font-size: 10.5px; font-weight: 700; color: var(--accent); white-space: nowrap; letter-spacing: -.2px; }
.wheel .node small { font-size: 8px; color: var(--s2-dim); opacity: .9; white-space: nowrap; }
.wheel .node:hover, .wheel .node.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, #0c0909);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent);
}

.wheel-detail { display: grid; gap: 8px; min-height: 82px; padding: 4px 14px 2px; }
.wheel-detail header { display: grid; gap: 3px; }
.wheel-detail header small { color: var(--s2-dim); font-size: 10.5px; letter-spacing: 2px; }
.wheel-detail header strong { font-size: 19px; }
.wheel-detail header strong em { margin: 0 6px; font-style: normal; color: var(--s2-dim); }
.wheel-detail p { color: var(--s2-muted); font-size: 13px; line-height: 1.7; }
.wheel-detail .detail-virtue { color: var(--s2-gold-soft); }
.wheel-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 82px;
  padding: 0 12px;
  color: var(--s2-dim);
  font-size: 12.5px;
  text-align: center;
}

/* ---------- meta stats (from .meta) ---------- */
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.meta li {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 6px;
  border: 1px solid var(--s2-line);
  border-radius: var(--s2-radius);
  background: var(--s2-panel);
  color: var(--s2-gold);
  text-align: center;
}
.meta li svg { color: var(--s2-gold); margin-bottom: 2px; }
.meta li b { font-size: 20px; color: var(--s2-gold-soft); }
.meta li span { color: var(--s2-muted); font-size: 12px; }

/* ---------- buttons (from .s2-button) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--s2-line-strong);
  border-radius: var(--s2-radius);
  background: rgba(255, 255, 255, .03);
  color: var(--s2-gold-soft);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover:not(:disabled) { border-color: var(--s2-gold); background: rgba(215, 173, 103, .08); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary {
  border-color: transparent;
  color: var(--s2-ink);
  background: linear-gradient(135deg, var(--s2-crimson-bright), var(--s2-crimson) 60%, #6e1520);
  box-shadow: 0 10px 30px rgba(159, 36, 48, .4);
}
.btn--primary:hover:not(:disabled) {
  border-color: transparent;
  background: linear-gradient(135deg, #ee5866, #b32b38 60%, #7d1824);
}

.actions { display: grid; gap: 10px; justify-items: center; }
.actions .btn { width: 100%; min-height: 54px; font-size: 16px; }
.restart {
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--s2-dim);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- how / disclaimer ---------- */
.how { display: grid; gap: 10px; margin: 0; padding: 0 0 0 20px; color: var(--s2-muted); font-size: 13px; line-height: 1.75; }
.how b { color: var(--s2-gold-soft); }
.disclaimer { display: flex; gap: 8px; align-items: flex-start; color: var(--s2-dim); font-size: 12px; line-height: 1.6; }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz { display: flex; flex-direction: column; gap: 14px; }
.quiz-header { display: flex; align-items: center; justify-content: space-between; }
.progress-count { display: flex; align-items: baseline; gap: 6px; color: var(--s2-dim); }
.progress-count strong { font: 700 26px/1 Georgia, serif; color: var(--s2-gold-soft); }
.progress-line { height: 3px; border-radius: 3px; background: rgba(239, 214, 174, .12); overflow: hidden; }
.progress-line i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--s2-crimson), var(--s2-gold));
  transition: width .35s ease;
}

.rounds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.rounds button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  border: 1px solid var(--s2-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  color: var(--s2-dim);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s ease;
}
.rounds button:disabled { opacity: .4; cursor: not-allowed; }
.rounds button.sin.done, .rounds button.sin.active { color: var(--s2-crimson-bright); border-color: rgba(220, 73, 86, .55); }
.rounds button.virtue.done, .rounds button.virtue.active { color: var(--s2-gold); border-color: rgba(215, 173, 103, .6); }
.rounds button.active { background: rgba(255, 255, 255, .07); box-shadow: 0 0 18px rgba(255, 255, 255, .06); }

.card {
  display: grid;
  gap: 20px;
  padding: 24px 18px 18px;
  border: 1px solid var(--s2-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 22, 20, .92), rgba(16, 12, 12, .92));
  box-shadow: var(--s2-shadow);
  animation: s2-rise .32s ease both;
}
.card.sin { --accent: var(--s2-crimson-bright); }
.card.virtue { --accent: var(--s2-gold); }
.card h2 { font: 600 clamp(19px, 5.4vw, 22px)/1.65 var(--font-serif); color: var(--s2-ink); }
.card-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: 1px; }
.card-tag em { color: var(--s2-dim); font-style: normal; font-weight: 400; letter-spacing: 0; }

.options { display: grid; gap: 9px; }
.option {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--s2-line);
  border-radius: var(--s2-radius);
  background: rgba(255, 255, 255, .024);
  color: var(--s2-ink);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.option:hover { border-color: var(--s2-line-strong); background: rgba(255, 255, 255, .05); }
.option:active { transform: scale(.992); }
.option.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.option kbd { color: var(--s2-dim); font: 11px/1 ui-monospace, monospace; }
.option .option-check { position: absolute; right: 12px; color: var(--accent); }
.option.selected kbd { opacity: 0; }

.scale { display: flex; gap: 3px; }
.scale i { width: 8px; height: 8px; border-radius: 50%; background: rgba(239, 214, 174, .16); transition: background .16s ease; }
.scale i.on { background: var(--s2-dim); }
.option.selected .scale i.on { background: var(--accent); }

.quiz-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 4px; }
.quiz-footer p { display: grid; justify-items: center; gap: 2px; color: var(--s2-muted); font-size: 12.5px; }
.quiz-footer p small { display: inline-flex; align-items: center; gap: 4px; color: var(--s2-dim); font-size: 11px; }
.nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--s2-line);
  border-radius: var(--s2-radius);
  background: rgba(255, 255, 255, .03);
  color: var(--s2-gold-soft);
  font-size: 14px;
  cursor: pointer;
}
.nav:first-child { justify-self: start; }
.nav:last-child { justify-self: end; }
.nav:disabled { opacity: .38; cursor: not-allowed; }
.nav--primary {
  border-color: transparent;
  color: #fff7ea;
  background: linear-gradient(135deg, var(--s2-crimson-bright), var(--s2-crimson));
}

/* ============================================================
   REPORT
   ============================================================ */
.report-shell {
  display: flex;
  justify-content: center;
  padding: 12px 12px max(26px, env(safe-area-inset-bottom));
}
.sin-report {
  position: relative;
  width: min(100%, 480px);
  padding: 13px 12px 16px;
  overflow: hidden;
  border: 1px solid rgba(215, 173, 103, .38);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, rgba(159, 36, 48, .3), transparent 26%),
    radial-gradient(circle at 100% 0, rgba(159, 36, 48, .26), transparent 28%),
    radial-gradient(circle at 50% 16%, rgba(215, 173, 103, .08), transparent 34%),
    repeating-linear-gradient(90deg, rgba(239, 214, 174, .025) 0 1px, transparent 1px 44px),
    rgba(6, 6, 5, .94);
  box-shadow: 0 26px 74px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(239, 214, 174, .06);
  animation: s2-rise .5s ease both;
}
.sin-report::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(215, 173, 103, .18);
  border-radius: 8px;
}
.sin-report > * { position: relative; z-index: 1; }

.result-head { padding: 13px 12px 15px; text-align: center; border-bottom: 1px solid rgba(215, 173, 103, .3); }
.result-kicker { color: var(--s2-gold); font-size: 10px; font-weight: 900; letter-spacing: .24em; }
.result-report-title {
  margin-top: 8px;
  color: var(--s2-gold-soft);
  font: 900 clamp(22px, 6.2vw, 30px)/1.3 var(--font-en);
  text-shadow: 0 10px 28px rgba(0, 0, 0, .56), 0 0 24px rgba(215, 173, 103, .12);
}
.vs-mark {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 8px 3px;
  color: #fff3df;
  font-size: .72em;
  vertical-align: middle;
  white-space: nowrap;
  background: linear-gradient(135deg, #78171f, #b7333d 52%, #77171d);
  border: 1px solid rgba(239, 214, 174, .28);
  border-radius: 4px;
}
.result-subtitle {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: var(--s2-muted);
  font-size: 13px;
}
.result-subtitle::before, .result-subtitle::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--s2-gold));
  opacity: .72;
}
.result-subtitle::after { background: linear-gradient(90deg, var(--s2-gold), transparent); }

.plate {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 173, 103, .24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(159, 36, 48, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(9, 9, 8, .78);
  box-shadow: inset 0 0 0 1px rgba(239, 214, 174, .035), 0 14px 36px rgba(0, 0, 0, .2);
}
.plate::before {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border: 1px solid rgba(215, 173, 103, .08);
  border-radius: 7px;
}
.section { margin-top: 10px; padding: 14px 13px; }
.section-title {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--s2-gold-soft);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}
.section-title::before, .section-title::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--s2-gold));
  opacity: .72;
}
.section-title::after { background: linear-gradient(90deg, var(--s2-gold), transparent); }
.hint { margin: 6px 0 4px; color: var(--s2-dim); font-size: 12px; line-height: 1.6; text-align: center; }

.hero-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 10px; margin-top: 12px; }
.score-plate, .brief-plate { padding: 14px 13px; text-align: center; }
.score-plate span, .dominant-plate span, .brief-plate span { display: block; color: var(--s2-gold-soft); font-size: 14px; font-weight: 900; }
.score-plate strong {
  display: inline-block;
  margin-top: 12px;
  color: var(--s2-gold-soft);
  font: 900 64px/.9 Georgia, serif;
  text-shadow: 0 0 20px rgba(215, 173, 103, .16);
}
.score-plate small { color: var(--s2-gold-soft); font: 24px Georgia, serif; }
.score-plate p { margin-top: 12px; color: var(--s2-muted); font-size: 13px; line-height: 1.52; }

.dominant-plate {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px 12px 13px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(159, 36, 48, .36), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .043), rgba(255, 255, 255, .012)),
    rgba(9, 9, 8, .82);
}
.dominant-plate p { color: var(--s2-muted); font-size: 12px; line-height: 1.45; }
.dominant-orb {
  position: relative;
  display: grid;
  gap: 6px;
  place-items: center;
  align-content: center;
  width: 158px;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  color: var(--s2-gold-soft);
  background:
    radial-gradient(circle at 50% 38%, rgba(159, 36, 48, .82), rgba(30, 12, 12, .88) 56%, rgba(6, 5, 5, .95) 72%),
    repeating-conic-gradient(from -90deg, rgba(215, 173, 103, .22) 0 1deg, transparent 1deg 12deg);
  border: 1px solid rgba(215, 173, 103, .5);
  border-radius: 50%;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, .54), 0 0 32px rgba(159, 36, 48, .24);
}
.dominant-orb::before { content: "♛"; color: var(--s2-gold); font-size: 24px; line-height: 1; }
.dominant-orb::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(215, 173, 103, .24);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(215, 173, 103, .035);
}
.dominant-orb small { color: var(--s2-gold); font: 12px Georgia, serif; letter-spacing: .12em; }
.dominant-orb h2 {
  color: var(--s2-gold-soft);
  font: 900 clamp(24px, 7vw, 34px)/1.05 Georgia, var(--font-serif);
  overflow-wrap: anywhere;
}

.brief-plate { grid-column: 1 / -1; }
.brief-plate b { display: block; margin-top: 12px; color: var(--s2-gold-soft); font-size: 20px; line-height: 1.3; }
.brief-plate p { margin-top: 8px; color: var(--s2-muted); font-size: 13px; line-height: 1.65; }

.chief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.chief-card { padding: 16px 12px 14px; text-align: center; }
.chief-card span { display: block; color: var(--s2-dim); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.chief-card small { display: block; margin-top: 10px; color: var(--s2-gold); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.chief-card h2 {
  margin-top: 4px;
  color: var(--s2-gold-soft);
  font: 900 clamp(22px, 6.4vw, 30px)/1.1 Georgia, var(--font-serif);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.chief-card strong { display: block; margin-top: 8px; color: var(--s2-crimson-bright); font-size: 22px; font-weight: 900; }
.chief-card strong::after { content: " / 100"; color: var(--s2-dim); font-size: 12px; font-weight: 700; }
.chief-virtue {
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 173, 103, .16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)),
    rgba(9, 9, 8, .78);
}
.chief-virtue strong { color: var(--s2-gold); }

.balance-line { margin: 12px 2px 0; color: var(--s2-ember); font-size: 13px; font-weight: 700; line-height: 1.6; text-align: center; }

.quality {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 11px 13px;
  color: #f0b48f;
  font-size: 12.5px;
  line-height: 1.7;
  background: rgba(233, 131, 78, .07);
  border: 1px solid rgba(233, 131, 78, .45);
  border-radius: 8px;
}
.quality svg { flex: none; margin-top: 3px; }
.quality.low { color: #f0a0a7; background: rgba(220, 73, 86, .08); border-color: rgba(220, 73, 86, .55); }

/* --- radar (from SinVirtueRadar) --- */
.radar { margin: 0; }
.radar svg {
  display: block;
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(215, 173, 103, .1) 0 50%, rgba(159, 36, 48, .12) 50% 100%),
    radial-gradient(circle at 50% 50%, rgba(159, 36, 48, .1), transparent 48%);
  width: 100%;
  height: auto;
  overflow: visible;
}
.radar .rings polygon { fill: none; stroke: rgba(239, 214, 174, .14); stroke-width: 1; }
.radar .rings polygon:last-child { stroke: rgba(239, 214, 174, .28); }
.radar .axes line { stroke: rgba(239, 214, 174, .1); stroke-width: 1; }
.radar .divider { stroke: rgba(241, 220, 192, .55); stroke-width: 1.4; stroke-dasharray: 4 3; }
.radar .score { font-size: 9.5px; font-weight: 800; opacity: .9; }
.radar .shape { stroke-width: 1.6; stroke-linejoin: round; transition: all .4s ease; }
.radar .shape--sin { fill: rgba(159, 36, 48, .46); stroke: rgba(220, 73, 86, .95); filter: drop-shadow(0 0 10px rgba(159, 36, 48, .4)); }
.radar .shape--virtue { fill: rgba(215, 173, 103, .24); stroke: rgba(241, 220, 192, .9); filter: drop-shadow(0 0 8px rgba(215, 173, 103, .28)); }
.radar .dot { stroke: #070607; stroke-width: 1.5; }
.radar .dot--active { filter: drop-shadow(0 0 6px currentcolor); }
.radar .label { font-size: 12px; font-weight: 600; opacity: .88; }
.radar .label--active { font-size: 13.5px; font-weight: 800; opacity: 1; }
.radar figcaption { display: flex; justify-content: center; gap: 22px; margin-top: 6px; color: var(--s2-muted); font-size: 12px; }
.radar figcaption span { display: inline-flex; align-items: center; gap: 7px; }
.radar .swatch { display: inline-block; width: 18px; height: 8px; border-radius: 4px; }
.radar .swatch--sin { background: var(--s2-crimson-bright); }
.radar .swatch--virtue { background: var(--s2-gold); }

/* --- ranking bars (from .seal-bar) --- */
.seal-bars { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.seal-bars li.open { background: rgba(215, 173, 103, .05); border-radius: 8px; }
.seal-bar {
  display: grid;
  grid-template-columns: 34px minmax(64px, auto) minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 7px;
  text-align: left;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(159, 36, 48, .22), transparent 58%), rgba(8, 7, 7, .24);
  border: 0;
  border-bottom: 1px solid rgba(215, 173, 103, .1);
}
.seal-bar b { color: var(--s2-gold-soft); font-size: 14px; white-space: nowrap; }
.seal-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--s2-gold);
  font: 900 10px Georgia, serif;
  background: radial-gradient(circle at 50% 50%, rgba(159, 36, 48, .4), transparent 58%), rgba(10, 8, 8, .86);
  border: 1px solid rgba(215, 173, 103, .28);
  border-radius: 50%;
}
.bar-track { height: 9px; overflow: hidden; background: rgba(239, 214, 174, .12); border-radius: 999px; }
.bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5f1419, var(--s2-crimson-bright), var(--s2-gold));
  border-radius: inherit;
  box-shadow: 0 0 14px rgba(220, 73, 86, .36);
  transition: width .6s ease;
}
.virtue-rank .bar-track i { background: linear-gradient(90deg, rgba(215, 173, 103, .55), var(--s2-gold)); box-shadow: 0 0 14px rgba(215, 173, 103, .3); }
.seal-score { color: var(--s2-gold-soft); font: 22px Georgia, serif; text-align: right; }
.seal-detail { display: grid; gap: 9px; padding: 4px 12px 14px; color: var(--s2-muted); font-size: 13px; line-height: 1.8; }
.seal-detail .role { color: var(--s2-dim); font-size: 12.5px; }
.seal-detail .role em {
  margin-right: 8px;
  padding: 2px 8px;
  color: var(--s2-gold);
  font-style: normal;
  font-weight: 700;
  background: rgba(215, 173, 103, .12);
  border-radius: 999px;
}
.seal-detail dl { display: grid; gap: 6px; margin: 0; }
.seal-detail dl div { display: grid; grid-template-columns: 62px 1fr; gap: 8px; }
.seal-detail dt { color: var(--s2-gold); font-size: 12px; font-weight: 700; }
.seal-detail dd { margin: 0; }

/* --- pairs --- */
.pairs { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.pairs li { display: grid; gap: 6px; padding: 12px 13px; background: rgba(8, 7, 7, .28); border: 1px solid rgba(215, 173, 103, .14); border-radius: 8px; }
.pairs li.focus { border-color: rgba(220, 73, 86, .5); }
.pairs li.steady { border-color: rgba(215, 173, 103, .5); }
.pairs header { display: flex; gap: 8px; align-items: center; }
.pairs header b { font-size: 15px; }
.pairs header .p-sin { color: #f0c4b0; }
.pairs header .p-virtue { color: var(--s2-gold-soft); }
.pairs header .vs { color: var(--s2-dim); font-size: 10.5px; letter-spacing: 2px; }
.pairs header em {
  margin-left: auto;
  padding: 2px 9px;
  color: var(--s2-muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
  border: 1px solid rgba(215, 173, 103, .3);
  border-radius: 999px;
  flex: 0 0 auto;
}
.pairs header b { flex: 0 0 auto; }
.pairs header .vs { flex: 0 0 auto; }
.pairs .state-exposed header em { color: var(--s2-crimson-bright); border-color: rgba(220, 73, 86, .6); }
.pairs .state-steady header em, .pairs .state-tension header em { color: var(--s2-gold); border-color: rgba(215, 173, 103, .6); }
.pairs p { color: var(--s2-muted); font-size: 12.5px; line-height: 1.75; }
.duel { display: flex; gap: 3px; justify-content: center; height: 8px; }
.duel i { display: block; height: 100%; transition: width .5s ease; }
.duel .duel-sin { margin-left: auto; background: linear-gradient(90deg, var(--s2-gold), var(--s2-crimson-bright)); border-radius: 999px 0 0 999px; }
.duel .duel-virtue { margin-right: auto; background: linear-gradient(90deg, var(--s2-gold-soft), var(--s2-gold)); border-radius: 0 999px 999px 0; }
.duel-scale { display: flex; justify-content: space-between; color: var(--s2-dim); font: 600 11.5px Georgia, serif; }

/* --- matrices --- */
.matrix { display: grid; gap: 7px; margin-top: 12px; }
.matrix-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 7px 8px;
  background: rgba(8, 7, 7, .28);
  border-bottom: 1px solid rgba(215, 173, 103, .1);
}
.matrix-item b { display: block; color: var(--s2-gold-soft); font-size: 14px; }
.matrix-item p { margin-top: 3px; color: var(--s2-dim); font-size: 11px; line-height: 1.4; }
.matrix-item strong { order: 2; font-size: 0; white-space: nowrap; }
.matrix-item strong::before { content: attr(data-flames); color: var(--s2-crimson-bright); font-size: 15px; letter-spacing: .08em; }
.matrix--shield .matrix-item strong::before { color: var(--s2-gold); }

/* --- life --- */
.life { display: grid; gap: 9px; margin-top: 12px; }
.life article { padding: 10px 12px; background: rgba(8, 7, 7, .28); border-left: 2px solid var(--s2-gold); }
.life article b { color: var(--s2-gold); font-size: 14px; }
.life article p { margin-top: 4px; color: var(--s2-muted); font-size: 13px; line-height: 1.8; }

/* --- advice --- */
.advice-grid { display: grid; gap: 10px; margin-top: 12px; }
.advice-card {
  position: relative;
  min-height: 62px;
  padding: 8px 8px 8px 52px;
  background: rgba(8, 7, 7, .24);
  border-bottom: 1px solid rgba(215, 173, 103, .1);
}
.advice-card::before {
  content: attr(data-index);
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--s2-gold);
  font: 900 16px Georgia, serif;
  background: radial-gradient(circle, rgba(159, 36, 48, .44), transparent 64%);
  border: 1px solid rgba(215, 173, 103, .28);
  border-radius: 50%;
}
.advice-card b { color: var(--s2-gold-soft); font-size: 15px; }
.advice-card p { margin-top: 5px; color: var(--s2-muted); font-size: 12.5px; line-height: 1.65; }

/* --- report footer --- */
.report-footer { margin-top: 12px; padding: 14px 10px 2px; text-align: center; border-top: 1px solid rgba(215, 173, 103, .22); }
.report-footer p { margin-bottom: 10px; color: var(--s2-gold-soft); font-size: 14px; line-height: 1.5; }
.report-footer small { display: block; color: var(--s2-dim); font-size: 11.5px; line-height: 1.75; }
.foot-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }

/* --- misc --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--s2-gold-soft);
  color: #1a1410;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hidden { display: none !important; }

@keyframes s2-spin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes s2-rise {
  0% { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .glow, .foot-actions, .toast, .rounds, .nav { display: none !important; }
  body { background: #fff; color: #000; }
  .sin-report, .plate { border-color: #ccc; background: #fff; }
}

/* ---------- floating language switch ---------- */
.lang-fab {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 6px 13px;
  border: 1px solid var(--s2-line-strong);
  border-radius: 999px;
  background: rgba(10, 8, 8, .78);
  backdrop-filter: blur(8px);
  color: var(--s2-gold);
  font-size: 12px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: border-color .18s, color .18s;
}
.lang-fab:hover { border-color: var(--s2-gold); color: var(--s2-gold-soft); }
