:root {
      --theme-stage: #0d0708;
      --theme-stage-soft: #1a0b0e;
      --theme-paper: #efede8;
      --theme-paper-deep: #d8d1c9;
      --theme-ink: #202025;
      --theme-sin: #d8453e;
      --theme-virtue: #d7aa3b;
      --theme-cream: #fff4e7;
      --bg: var(--theme-stage);
      --card: var(--theme-paper);
      --ink: var(--theme-ink);
      --muted: #6f6b70;
      --line: rgba(105, 108, 112, 0.18);
      --soft: #e7e2dc;
      --sin: #2c2c2c;
      --sin-red: var(--theme-sin);
      --virtue: #9f7a18;
      --virtue-soft: #f7f0df;
      --accent: var(--theme-sin);
      --blue: var(--theme-sin);
      --radius: 18px;
      --radius-control: 12px;
      --radius-pill: 999px;
      --shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
    }

    * { box-sizing: border-box; }

    html { min-height: 100%; background: var(--theme-stage); }

    body {
      min-height: 100vh;
      margin: 0;
      color: var(--ink);
      background:
        radial-gradient(circle at 18% 8%, rgba(216, 69, 62, 0.2), transparent 31%),
        radial-gradient(circle at 84% 16%, rgba(215, 170, 59, 0.15), transparent 34%),
        repeating-linear-gradient(90deg, rgba(255, 244, 231, 0.025) 0 1px, transparent 1px 72px),
        linear-gradient(145deg, #080405 0%, var(--theme-stage-soft) 52%, #090707 100%);
      background-attachment: fixed;
      font-family: "SF Pro Text", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      letter-spacing: 0;
      -webkit-font-smoothing: antialiased;
    }

    button, input {
      color: inherit;
      font: inherit;
      -webkit-tap-highlight-color: transparent;
    }

    button { border: 0; cursor: pointer; }
    h1, h2, h3, p { margin: 0; }

    .app {
      width: min(100%, 430px);
      min-height: 100vh;
      margin: 0 auto;
      padding: 18px;
      background: var(--theme-stage);
      container-name: app;
      container-type: inline-size;
    }

    @media (min-width: 431px) {
      .app {
        box-shadow:
          0 0 0 1px rgba(255, 244, 231, 0.05),
          0 0 90px rgba(0, 0, 0, 0.62),
          0 0 120px rgba(216, 69, 62, 0.08);
      }
    }

    @media (max-width: 390px) {
      .app { padding: 12px; }
    }

    .screen { display: none; }

    .screen.active {
      display: block;
      animation: screen-in 0.24s ease both;
    }

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

    .gate.active {
      min-height: calc(100vh - 36px);
      display: grid;
      place-items: center;
    }

    .gate-card,
    .hero-card,
    .quiz-card,
    .analyze-card,
    .panel,
    .modal-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.92);
      box-shadow: var(--shadow);
    }

    .gate-card {
      width: min(100%, 400px);
      padding: 44px 34px;
      text-align: center;
    }

    .lock-icon {
      width: 56px;
      height: 56px;
      margin: 0 auto 22px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--soft);
      color: #9999a0;
    }

    .gate-card h1 {
      font-size: 21px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .gate-card p {
      margin-top: 8px;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.6;
    }

    .password-wrap {
      margin-top: 24px;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .password-wrap:focus-within {
      border-color: var(--theme-sin);
      box-shadow: 0 0 0 3px rgba(216, 69, 62, 0.12);
    }

    .password-wrap input {
      width: 100%;
      height: 44px;
      border: 0;
      outline: 0;
      background: transparent;
      font-size: 15px;
      letter-spacing: 0.04em;
    }

    .home-auth {
      display: grid;
      gap: 9px;
      max-width: 410px;
      margin-top: 28px;
      text-align: left;
    }

    .home-auth label {
      color: #e2b660;
      font-size: 14px;
      font-weight: 900;
    }

    .home-auth .password-wrap {
      height: 64px;
      margin-top: 0;
      border-color: rgba(226, 182, 96, 0.48);
      border-radius: 10px;
      background: rgba(5, 3, 4, 0.94);
      box-shadow:
        inset 0 0 0 1px rgba(255, 244, 224, 0.045),
        0 10px 28px rgba(0, 0, 0, 0.34);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .home-auth .password-wrap:focus-within {
      border-color: #d44a45;
      box-shadow:
        0 0 0 3px rgba(212, 74, 69, 0.14),
        0 0 28px rgba(212, 74, 69, 0.16);
    }

    .home-auth .password-wrap input {
      height: 100%;
      color: #fff6e8;
      font-size: 18px;
      font-weight: 900;
      text-align: center;
    }

    .home-auth .password-wrap input::placeholder {
      color: rgba(255, 246, 232, 0.72);
    }

    .home-auth .eye-btn {
      color: rgba(255, 224, 159, 0.76);
    }

    .home-auth .error-msg {
      min-height: 18px;
      margin-top: 0;
      color: #ff5b55;
    }

    .eye-btn {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: transparent;
      color: #9999a0;
      font-weight: 900;
    }

    .error-msg {
      min-height: 20px;
      margin-top: 11px;
      color: #ff3b30;
      font-size: 13px;
      opacity: 0;
      transition: opacity 0.15s;
    }

    .error-msg.visible { opacity: 1; }

    .primary-btn,
    .ghost-btn {
      min-height: 46px;
      display: inline-grid;
      place-items: center;
      padding: 0 24px;
      border-radius: 999px;
      font-size: 15px;
      font-weight: 800;
      transition: transform 0.16s, background 0.16s, opacity 0.16s;
    }

    .primary-btn {
      width: 100%;
      margin-top: 16px;
      color: #fff;
      background: linear-gradient(100deg, var(--theme-sin), #c56d34 58%, var(--theme-virtue));
    }

    .primary-btn:hover { background: linear-gradient(100deg, #e1544c, #d17a3b 58%, #e1b94f); }

    .ghost-btn {
      border: 1px solid var(--line);
      background: #fff;
      color: var(--muted);
    }

    .primary-btn:active,
    .ghost-btn:active { transform: scale(0.99); }

    .primary-btn:disabled,
    .ghost-btn:disabled {
      cursor: not-allowed;
      opacity: 0.45;
      transform: none;
    }

    .footer-note {
      margin-top: 28px;
      color: #9999a0;
      font-size: 12px;
      text-align: center;
    }

    .welcome.active {
      min-height: calc(100vh - 36px);
      display: grid;
      place-items: center;
    }

    .hero-card {
      position: relative;
      width: min(100%, 920px);
      min-height: min(760px, calc(100vh - 36px));
      padding: clamp(26px, 5vw, 54px);
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.9fr);
      align-items: center;
      gap: clamp(22px, 5vw, 54px);
      overflow: hidden;
      text-align: left;
      color: #fff7ea;
      border-color: rgba(226, 182, 96, 0.16);
      border-radius: 0;
      background:
        radial-gradient(circle at 53% 31%, rgba(255, 88, 62, 0.28), transparent 33%),
        radial-gradient(circle at 82% 34%, rgba(222, 54, 48, 0.42), transparent 31%),
        radial-gradient(circle at 69% 74%, rgba(104, 55, 42, 0.32), transparent 30%),
        linear-gradient(90deg, rgba(92, 8, 18, 0.42), transparent 33%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 64px),
        #120606;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: -20% -12%;
      pointer-events: none;
      background:
        linear-gradient(115deg, transparent 0 33%, rgba(226, 182, 96, 0.16) 34%, rgba(255, 236, 194, 0.08) 35%, transparent 37% 100%),
        radial-gradient(circle at 70% 45%, rgba(255, 246, 232, 0.13), transparent 38%);
      opacity: 1;
    }

    .hero-card::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0, transparent 46%, rgba(0, 0, 0, 0.26));
    }

    .home-copy,
    .judgement-visual,
    .metric-row,
    .creator {
      position: relative;
      z-index: 1;
    }

    .home-copy {
      text-align: center;
    }

    .hero-kicker {
      display: inline-flex;
      align-items: center;
      justify-self: center;
      gap: 12px;
      color: #e2b660;
      font-size: 13px;
      font-weight: 950;
      letter-spacing: 0.16em;
    }

    .hero-kicker::after {
      content: "01";
      display: inline-grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border: 1px solid rgba(226, 182, 96, 0.34);
      border-radius: 9px;
      color: #fff7ea;
      letter-spacing: 0;
    }

    .seal { display: none; }

    .hero-card h1 {
      margin-top: 22px;
      font-size: clamp(32px, 8.2vw, 56px);
      line-height: 0.96;
      font-weight: 950;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .hero-card .sub {
      margin: 22px auto 0;
      max-width: 470px;
      color: rgba(255, 246, 232, 0.78);
      font-size: 18px;
      line-height: 1.78;
    }

    .judgement-visual {
      min-height: 430px;
      display: grid;
      place-items: center;
    }

    .scale-scene {
      position: relative;
      width: min(100%, 420px);
      aspect-ratio: 1;
      display: grid;
      place-items: center;
      isolation: isolate;
      animation: scale-float 5.4s ease-in-out infinite;
    }

    .scale-orb {
      position: absolute;
      inset: 7%;
      border-radius: 50%;
      background:
        radial-gradient(circle at 48% 46%, rgba(255, 228, 180, 0.18), transparent 32%),
        conic-gradient(from 215deg, rgba(67, 6, 11, 0.72), rgba(152, 20, 24, 0.44), rgba(226, 182, 96, 0.25), rgba(255, 73, 58, 0.48), rgba(67, 6, 11, 0.72));
      opacity: 0.96;
      box-shadow:
        inset 0 0 52px rgba(255, 102, 77, 0.18),
        0 0 58px rgba(210, 46, 40, 0.24);
      filter: drop-shadow(0 0 48px rgba(210, 46, 40, 0.3));
    }

    .scale-orb::before,
    .scale-orb::after {
      content: "";
      position: absolute;
      inset: 15%;
      border: 1px solid rgba(226, 182, 96, 0.26);
      border-radius: 50%;
    }

    .scale-orb::after {
      inset: 30%;
      border-color: rgba(255, 246, 232, 0.24);
    }

    .scale-beam {
      position: absolute;
      top: 37%;
      left: 12%;
      width: 76%;
      height: 5px;
      border-radius: 999px;
      background: linear-gradient(90deg, #43070c, #89171d 31%, #e2b660 52%, #ff473f);
      box-shadow: 0 0 22px rgba(255, 71, 63, 0.28);
      transform: rotate(5deg);
      transform-origin: 50% 50%;
      animation: beam-sway 4.6s ease-in-out infinite;
      z-index: 3;
    }

    .scale-pivot {
      position: absolute;
      top: calc(37% - 20px);
      left: calc(50% - 20px);
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(226, 182, 96, 0.68);
      border-radius: 50%;
      background: #140b08;
      color: #e2b660;
      font-size: 20px;
      font-weight: 950;
      box-shadow:
        0 0 26px rgba(226, 182, 96, 0.32),
        0 0 42px rgba(255, 71, 63, 0.16);
      z-index: 5;
    }

    .scale-stem {
      position: absolute;
      top: 39%;
      left: calc(50% - 2px);
      width: 4px;
      height: 33%;
      border-radius: 999px;
      background: linear-gradient(#f0c66e, rgba(226, 182, 96, 0.28));
      z-index: 2;
    }

    .scale-base {
      position: absolute;
      left: 33%;
      bottom: 18%;
      width: 34%;
      height: 14px;
      border: 1px solid rgba(226, 182, 96, 0.35);
      border-radius: 999px;
      background: rgba(16, 7, 7, 0.72);
      box-shadow: 0 0 18px rgba(226, 182, 96, 0.16);
      z-index: 3;
    }

    .scale-pan {
      position: absolute;
      top: 50%;
      width: 118px;
      height: 88px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(226, 182, 96, 0.28);
      border-top: 0;
      border-radius: 0 0 64px 64px;
      background: linear-gradient(180deg, rgba(255, 246, 232, 0.08), rgba(17, 6, 7, 0.38));
      z-index: 4;
    }

    .scale-pan::before,
    .scale-pan::after {
      content: "";
      position: absolute;
      top: -70px;
      width: 1px;
      height: 72px;
      background: rgba(226, 182, 96, 0.35);
      transform-origin: bottom;
    }

    .scale-pan::before { left: 25%; transform: rotate(16deg); }
    .scale-pan::after { right: 25%; transform: rotate(-16deg); }

    .scale-pan.left {
      left: 4%;
      transform: translateY(-8px);
      border-color: rgba(151, 25, 30, 0.6);
      background: linear-gradient(180deg, rgba(104, 11, 19, 0.42), rgba(16, 5, 7, 0.5));
      box-shadow: 0 0 28px rgba(151, 25, 30, 0.18);
      animation: pan-left-sway 4.6s ease-in-out infinite;
    }

    .scale-pan.right {
      right: 4%;
      transform: translateY(18px);
      border-color: rgba(255, 104, 92, 0.62);
      background: linear-gradient(180deg, rgba(255, 91, 77, 0.24), rgba(25, 7, 8, 0.34));
      box-shadow: 0 0 34px rgba(255, 71, 63, 0.22);
      animation: pan-right-sway 4.6s ease-in-out infinite;
    }

    .heart-shape {
      position: relative;
      width: 56px;
      height: 56px;
      transform: rotate(-45deg);
      background: linear-gradient(135deg, #43070c, #7d1118 50%, #b82327);
      box-shadow:
        0 10px 28px rgba(43, 3, 7, 0.5),
        0 0 18px rgba(184, 35, 39, 0.2);
    }

    .heart-shape::before,
    .heart-shape::after {
      content: "";
      position: absolute;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: inherit;
    }

    .heart-shape::before { top: -28px; left: 0; }
    .heart-shape::after { top: 0; left: 28px; }

    .feather-shape {
      position: relative;
      width: 48px;
      height: 88px;
      border-radius: 78% 8% 78% 8%;
      background:
        linear-gradient(125deg, rgba(255, 246, 232, 1), rgba(255, 184, 145, 0.82) 43%, rgba(255, 68, 58, 0.96) 74%, rgba(160, 15, 22, 0.78)),
        repeating-linear-gradient(155deg, transparent 0 9px, rgba(5, 5, 5, 0.12) 10px 11px);
      box-shadow: 0 10px 34px rgba(255, 56, 48, 0.38);
      transform: rotate(28deg);
      overflow: hidden;
    }

    .feather-shape::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 5px;
      width: 2px;
      height: 92px;
      border-radius: 999px;
      background: rgba(5, 5, 5, 0.35);
      transform: translateX(-50%) rotate(3deg);
    }

    .feather-shape::after {
      content: "";
      position: absolute;
      right: -3px;
      bottom: 9px;
      width: 30px;
      height: 34px;
      border-radius: 80% 0 80% 0;
      background: rgba(5, 5, 5, 0.22);
      transform: rotate(16deg);
    }

    .scale-note {
      position: absolute;
      left: 50%;
      bottom: 6%;
      width: 74%;
      display: flex;
      justify-content: space-between;
      transform: translateX(-50%);
      color: rgba(255, 246, 232, 0.54);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.12em;
      z-index: 5;
    }

    .scale-note span:first-child {
      color: #d35b52;
      text-shadow: 0 0 12px rgba(211, 91, 82, 0.32);
    }

    .scale-note span:last-child {
      color: #ff8a7f;
      text-shadow: 0 0 16px rgba(255, 71, 63, 0.46);
    }

    @keyframes scale-float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-7px); }
    }

    @keyframes beam-sway {
      0%, 100% { transform: rotate(5deg); }
      50% { transform: rotate(-4deg); }
    }

    @keyframes pan-left-sway {
      0%, 100% { transform: translateY(-8px); }
      50% { transform: translateY(18px); }
    }

    @keyframes pan-right-sway {
      0%, 100% { transform: translateY(18px); }
      50% { transform: translateY(-10px); }
    }

    .metric-row {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border: 1px solid rgba(226, 182, 96, 0.16);
      margin-top: clamp(8px, 3vw, 18px);
      background: rgba(0, 0, 0, 0.22);
    }

    .metric {
      padding: 14px 8px;
      border-right: 1px solid rgba(226, 182, 96, 0.16);
      text-align: center;
    }

    .metric:last-child { border-right: 0; }

    .metric b {
      display: block;
      color: #fff7ea;
      font-size: 24px;
      line-height: 1;
    }

    .metric span {
      display: block;
      margin-top: 7px;
      color: rgba(255, 246, 232, 0.52);
      font-size: 12px;
      font-weight: 700;
    }

    .welcome .primary-btn {
      min-height: 64px;
      margin-top: 28px;
      border-radius: 8px;
      color: #fff7ea;
      background: linear-gradient(90deg, var(--theme-sin), #c6683a 56%, var(--theme-virtue));
      box-shadow: 0 18px 36px rgba(162, 42, 63, 0.28);
      font-size: 20px;
    }

    .welcome .primary-btn:hover {
      background: linear-gradient(90deg, #e1544c, #d7793d 56%, #e1b94f);
    }

    .latest-result-btn {
      width: 100%;
      min-height: 50px;
      margin-top: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 18px;
      border: 1px solid rgba(226, 182, 96, 0.34);
      border-radius: 8px;
      color: rgba(255, 246, 232, 0.82);
      background: rgba(8, 6, 7, 0.52);
      box-shadow: inset 0 0 0 1px rgba(255, 244, 224, 0.025);
      font-size: 14px;
      font-weight: 800;
      line-height: 1.35;
      transition: border-color 0.18s, color 0.18s, background 0.18s, transform 0.18s;
    }

    .latest-result-btn::before {
      content: "↺";
      color: #e2b660;
      font-size: 17px;
      line-height: 1;
    }

    .latest-result-btn:hover {
      border-color: rgba(226, 182, 96, 0.62);
      color: #fff6e8;
      background: rgba(226, 182, 96, 0.09);
    }

    .latest-result-btn:active {
      transform: scale(0.99);
    }

    .latest-result-btn[hidden] {
      display: none;
    }

    .home-controls {
      width: 100%;
      display: grid;
      gap: 10px;
    }

    .creator {
      grid-column: 1 / -1;
      margin-top: 14px;
      color: rgba(255, 246, 232, 0.38);
      font-size: 12px;
      text-align: center;
    }

    .quiz.active {
      min-height: calc(100vh - 36px);
      display: grid;
      align-items: start;
      padding-top: clamp(8px, 5vh, 42px);
    }

    .quiz-card {
      position: relative;
      overflow: hidden;
      width: min(100%, 430px);
      min-height: min(720px, calc(100svh - 36px));
      margin: 0 auto;
      padding: 22px 20px;
      display: flex;
      flex-direction: column;
      border-color: rgba(232, 189, 99, 0.28);
      border-radius: 18px;
      color: #fff4e7;
      background:
        radial-gradient(circle at 50% 42%, rgba(216, 37, 36, 0.32), transparent 42%),
        radial-gradient(circle at 86% 38%, rgba(215, 170, 59, 0.13), transparent 34%),
        linear-gradient(160deg, #160406 0%, #080706 54%, #111711 100%);
      box-shadow: inset 0 0 80px rgba(216, 37, 36, 0.14);
    }

    .quiz-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(232, 189, 99, 0.048) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 189, 99, 0.048) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(to bottom, #000, transparent 92%);
      pointer-events: none;
    }

    .quiz-card > * {
      position: relative;
      z-index: 1;
    }

    .progress-head {
      margin-bottom: 14px;
    }

    .answer-guidance {
      margin: 0 2px 18px;
      color: rgba(255, 244, 231, 0.62);
      font-size: 12px;
      line-height: 1.65;
      text-align: center;
    }

    .progress-meter {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 14px;
      min-height: 42px;
    }

    .progress-count {
      padding: 7px 10px;
      border: 1px solid rgba(232, 189, 99, 0.35);
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.4);
      color: #fff4e7;
      font-size: 14px;
      font-weight: 900;
      line-height: 1;
      white-space: nowrap;
    }

    .progress-line {
      height: 8px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255, 244, 231, 0.13);
      box-shadow: inset 0 0 0 1px rgba(232, 189, 99, 0.12);
    }

    .progress-line i {
      display: block;
      width: var(--progress);
      min-width: 20px;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--theme-sin), #d9863b 54%, var(--theme-virtue));
      box-shadow: 0 0 15px rgba(216, 37, 36, 0.36);
      transition: width 0.2s ease;
    }

    .progress-text {
      display: none;
    }

    .question {
      margin-top: 8px;
      padding: 30px 20px 28px;
      border: 1px solid rgba(232, 189, 99, 0.25);
      border-radius: 18px;
      background:
        radial-gradient(circle at 84% 10%, rgba(215, 170, 59, 0.13), transparent 36%),
        radial-gradient(circle at 0% 100%, rgba(216, 37, 36, 0.18), transparent 42%),
        rgba(5, 4, 3, 0.74);
      box-shadow:
        inset 0 1px 0 rgba(255, 244, 231, 0.06),
        0 18px 48px rgba(0, 0, 0, 0.25);
    }

    .question-index {
      margin-bottom: 14px;
      color: #e8bd63;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 0.15em;
    }

    .question-type {
      display: none;
    }

    .question h2 {
      color: #fff4e7;
      font-size: clamp(24px, 7vw, 28px);
      line-height: 1.42;
      font-weight: 800;
      letter-spacing: 0;
      text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
    }

    .options-scale,
    .options-choice {
      display: grid;
      counter-reset: option;
      gap: 11px;
      margin-top: 24px;
    }

    .opt-scale,
    .opt-choice {
      width: 100%;
      min-height: 52px;
      display: grid;
      grid-template-columns: 32px minmax(0, 1fr) 17px;
      align-items: center;
      gap: 11px;
      padding: 0 14px;
      border: 1px solid rgba(255, 244, 231, 0.13);
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.38);
      color: rgba(255, 244, 231, 0.86);
      box-shadow: inset 0 1px 0 rgba(255, 244, 231, 0.04);
      text-align: left;
      font-weight: 700;
      transition:
        border-color 120ms ease,
        background 120ms ease,
        box-shadow 120ms ease,
        color 120ms ease;
    }

    .opt-scale::before,
    .opt-choice::before {
      counter-increment: option;
      content: counter(option, decimal-leading-zero);
      color: #e8bd63;
      font-size: 13px;
      font-weight: 800;
    }

    .opt-scale span:first-child,
    .opt-choice {
      min-width: 0;
      line-height: 1.45;
    }

    .opt-scale .dot {
      width: 17px;
      height: 17px;
      border: 1px solid rgba(255, 244, 231, 0.36);
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.24);
    }

    .opt-choice::after {
      content: "";
      width: 17px;
      height: 17px;
      border: 1px solid rgba(255, 244, 231, 0.36);
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.24);
    }

    .opt-scale.selected,
    .opt-choice.selected {
      border-color: rgba(255, 244, 231, 0.68);
      background:
        linear-gradient(90deg, rgba(255, 244, 231, 0.14), rgba(255, 244, 231, 0.05)),
        rgba(0, 0, 0, 0.46);
      color: #fff4e7;
      box-shadow:
        inset 0 0 0 1px rgba(255, 244, 231, 0.12),
        0 8px 22px rgba(0, 0, 0, 0.18);
    }

    .opt-scale.selected .dot,
    .opt-choice.selected::after {
      border-color: #fff4e7;
      background: #fff4e7;
      box-shadow: 0 0 0 3px rgba(255, 244, 231, 0.14);
    }

    .quiz-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 11px;
      margin-top: auto;
      padding-top: 22px;
    }

    .quiz-actions .primary-btn,
    .quiz-actions .ghost-btn {
      width: 100%;
      min-height: 48px;
      margin: 0;
      border-radius: 12px;
      font-weight: 800;
    }

    .quiz-actions .ghost-btn {
      border: 1px solid rgba(255, 244, 231, 0.16);
      background: rgba(0, 0, 0, 0.3);
      color: rgba(255, 244, 231, 0.7);
    }

    .quiz-actions .primary-btn {
      border: 1px solid rgba(216, 37, 36, 0.58);
      color: #fff7ea;
      background: linear-gradient(100deg, var(--theme-sin), #d47939 56%, var(--theme-virtue));
    }

    .quiz-actions .primary-btn:hover {
      background: linear-gradient(100deg, #e1544c, #e08a43 56%, #e1b94f);
    }

    /* Keep the complete answering flow inside one mobile viewport. */
    @media (max-width: 600px) {
      .app:has(.quiz.active) {
        min-height: 100svh;
        padding: 0;
      }

      .quiz.active {
        width: 100%;
        height: 100svh;
        min-height: 0;
        padding: max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom));
        align-items: stretch;
      }

      .quiz-card {
        width: 100%;
        height: calc(100svh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
        min-height: 0;
        padding: clamp(10px, 1.8svh, 16px) 14px;
        border-radius: 16px;
      }

      .progress-head {
        margin-bottom: clamp(4px, 0.8svh, 8px);
      }

      .progress-meter {
        gap: 10px;
        min-height: clamp(30px, 4.8svh, 38px);
      }

      .progress-count {
        padding: 5px 8px;
        border-radius: 8px;
        font-size: 12px;
      }

      .progress-line {
        height: 6px;
      }

      .answer-guidance {
        margin: 0 2px clamp(5px, 1svh, 9px);
        font-size: clamp(10px, 1.45svh, 12px);
        line-height: 1.35;
      }

      .question {
        margin-top: 0;
        padding: clamp(10px, 1.7svh, 16px) 14px;
        border-radius: 14px;
      }

      .question-index {
        margin-bottom: clamp(4px, 0.7svh, 8px);
        font-size: 12px;
      }

      .question h2 {
        font-size: clamp(18px, 2.85svh, 24px);
        line-height: 1.3;
      }

      .options-scale,
      .options-choice {
        gap: clamp(5px, 0.85svh, 9px);
        margin-top: clamp(8px, 1.35svh, 14px);
      }

      .opt-scale,
      .opt-choice {
        min-height: clamp(44px, 6svh, 49px);
        grid-template-columns: 28px minmax(0, 1fr) 15px;
        gap: 8px;
        padding: 0 12px;
        font-size: clamp(13px, 1.9svh, 14px);
      }

      .opt-scale::before,
      .opt-choice::before {
        font-size: 11px;
      }

      .opt-scale .dot,
      .opt-choice::after {
        width: 15px;
        height: 15px;
      }

      .quiz-actions {
        gap: 8px;
        padding-top: clamp(7px, 1.25svh, 13px);
      }

      .quiz-actions .primary-btn,
      .quiz-actions .ghost-btn {
        min-height: clamp(44px, 5.8svh, 48px);
      }
    }

    @media (max-width: 600px) and (max-height: 720px) {
      .quiz.active {
        padding: max(3px, env(safe-area-inset-top)) 4px max(3px, env(safe-area-inset-bottom));
      }

      .quiz-card {
        height: calc(100svh - max(6px, env(safe-area-inset-top)) - max(6px, env(safe-area-inset-bottom)));
        padding: 7px 10px;
        border-radius: 13px;
      }

      .progress-head { margin-bottom: 2px; }
      .progress-meter { min-height: 28px; }

      .answer-guidance {
        margin-bottom: 3px;
        font-size: 10px;
        line-height: 1.25;
      }

      .question {
        padding: 7px 11px 8px;
        border-radius: 12px;
      }

      .question-index {
        margin-bottom: 3px;
        font-size: 10px;
      }

      .question h2 {
        font-size: 17px;
        line-height: 1.23;
      }

      .options-scale,
      .options-choice {
        gap: 4px;
        margin-top: 6px;
      }

      .opt-scale,
      .opt-choice {
        min-height: 44px;
        font-size: 13px;
      }

      .quiz-actions {
        padding-top: 5px;
      }

      .quiz-actions .primary-btn,
      .quiz-actions .ghost-btn {
        min-height: 44px;
        font-size: 13px;
      }
    }

    .analyzing.active {
      min-height: calc(100vh - 36px);
      display: grid;
      place-items: center;
      position: relative;
      isolation: isolate;
      overflow: hidden;
      margin: -18px;
      padding: 18px;
      background:
        radial-gradient(circle at 50% 26%, rgba(216, 69, 62, 0.2), transparent 34%),
        linear-gradient(180deg, #100507 0%, #241317 58%, #66584f 100%);
    }

    .analyzing.active::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset: 0 -28% -24%;
      background: radial-gradient(circle at 50% 108%, rgba(239, 237, 232, 0.9), rgba(215, 170, 59, 0.16) 38%, transparent 70%);
      filter: blur(10px);
      animation: insight-rise 1.68s ease-in-out both;
    }

    .analyze-card {
      position: relative;
      width: min(100%, 420px);
      overflow: hidden;
      padding: 40px 24px 36px;
      border-color: rgba(215, 170, 59, 0.3);
      color: var(--theme-cream);
      background:
        radial-gradient(circle at 50% 38%, rgba(215, 170, 59, 0.16), transparent 42%),
        linear-gradient(155deg, rgba(27, 6, 9, 0.96), rgba(40, 25, 21, 0.94));
      box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 244, 231, 0.04),
        inset 0 -30px 70px rgba(215, 170, 59, 0.08);
      text-align: center;
    }

    .loader {
      width: 88px;
      height: 88px;
      margin: 0 auto 20px;
      border-radius: 50%;
      border: 2px solid rgba(255, 244, 231, 0.14);
      border-top-color: var(--theme-sin);
      border-right-color: var(--theme-virtue);
      box-shadow:
        0 0 0 10px rgba(255, 244, 231, 0.025),
        0 0 34px rgba(216, 69, 62, 0.2);
      animation: spin 1s linear infinite;
    }

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

    .analyze-card p {
      color: rgba(255, 244, 231, 0.82);
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.03em;
    }

    .analyze-card p::before {
      content: "INNER BALANCE";
      display: block;
      margin-bottom: 8px;
      color: var(--theme-virtue);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.18em;
    }

    @keyframes insight-rise {
      from { opacity: 0.18; transform: translateY(30px) scale(0.82); }
      to { opacity: 0.9; transform: translateY(-20px) scale(1.08); }
    }

    .report {
      display: grid;
      gap: 14px;
      max-width: 960px;
      margin: 0 auto;
    }

    .top-grid,
    .analysis-grid {
      display: grid;
      gap: 12px;
    }

    .panel {
      padding: 18px;
      overflow: hidden;
    }

    .score-card {
      min-height: 132px;
      display: grid;
      align-content: center;
      gap: 8px;
      text-align: center;
    }

    .score-card span {
      color: #9999a0;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.08em;
    }

    .score-card b {
      font-size: 36px;
      line-height: 1;
      font-weight: 950;
    }

    .score-card em {
      color: var(--accent);
      font-style: normal;
      font-size: 13px;
      font-weight: 900;
    }

    .panel h2 {
      font-size: 22px;
      line-height: 1.18;
      letter-spacing: -0.02em;
    }

    .portrait p,
    .analysis-row,
    .growth-desc,
    .dim-desc,
    .help-text {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.74;
    }

    .portrait p + p { margin-top: 10px; }

    .portrait-verdict {
      color: #f7eee2;
      font-size: 15px;
      line-height: 1.72;
    }

    .portrait-timeline {
      margin-top: 16px;
      display: grid;
      gap: 12px;
      position: relative;
    }

    .portrait-timeline::before {
      content: "";
      position: absolute;
      left: 6px;
      top: 8px;
      bottom: 8px;
      width: 1px;
      background: linear-gradient(180deg, #ff4d43, #ffd867);
      opacity: 0.58;
    }

    .portrait-step {
      position: relative;
      display: grid;
      gap: 3px;
      padding-left: 26px;
    }

    .portrait-step::before {
      content: "";
      position: absolute;
      left: 0;
      top: 5px;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: #130303;
      border: 2px solid #ffd867;
      box-shadow: 0 0 12px rgba(255, 216, 103, 0.22);
    }

    .portrait-step span {
      color: rgba(255, 236, 214, 0.68);
      font-size: 14px;
    }

    .portrait-step b {
      color: #ffd867;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.5;
    }

    .trait-header,
    .tension-pair,
    .dim-header,
    .panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .trait-name {
      font-size: 28px;
      font-weight: 950;
      letter-spacing: -0.03em;
    }

    .trait-score {
      color: var(--accent);
      font-size: 18px;
      font-weight: 950;
    }

    .analysis-row {
      display: grid;
      gap: 4px;
      margin-top: 13px;
      padding-top: 13px;
      border-top: 1px solid var(--line);
    }

    .row-label {
      color: var(--ink);
      font-size: 13px;
      font-weight: 950;
    }

    .tension-pair {
      margin-top: 10px;
      padding: 12px;
      border-radius: 14px;
      background: var(--soft);
    }

    .tension-side {
      flex: 1;
      text-align: center;
    }

    .tension-name {
      font-size: 15px;
      font-weight: 950;
    }

    .tension-score {
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .tension-vs {
      color: #bbb;
      font-size: 12px;
      font-weight: 950;
    }

    .growth-list {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }

    .growth-item {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 10px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }

    .growth-num {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: #fff3f0;
      color: var(--accent);
      font-size: 13px;
      font-weight: 950;
    }

    .growth-title {
      font-weight: 950;
    }

    .growth-desc { margin-top: 4px; }

    .tab-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 14px;
    }

    .tab-btn {
      min-height: 40px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--muted);
      font-weight: 950;
    }

    .tab-btn.active {
      background: #1a1a1a;
      color: #fff;
      border-color: #1a1a1a;
    }

    .dim-list {
      display: grid;
      gap: 10px;
      margin-top: 13px;
    }

    .dim-item {
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }

    .dim-name { font-weight: 950; }

    .dim-score {
      color: var(--accent);
      font-weight: 950;
    }

    .dim-bar {
      height: 8px;
      overflow: hidden;
      margin-top: 9px;
      border-radius: 999px;
      background: var(--soft);
    }

    .dim-bar-fill {
      height: 100%;
      border-radius: inherit;
      background: var(--accent);
    }

    .dim-desc { margin-top: 8px; }

    .help-panel h2 { margin-bottom: 8px; }
    .help-text + .help-text { margin-top: 8px; }

    .report-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .report-actions .primary-btn,
    .report-actions .ghost-btn {
      width: 100%;
      margin: 0;
    }

    .copyright {
      color: #9999a0;
      font-size: 12px;
      line-height: 1.7;
      text-align: center;
    }

    .modal {
      position: fixed;
      inset: 0;
      z-index: 30;
      display: none;
      place-items: center;
      padding: 18px;
      background: rgba(0, 0, 0, 0.42);
    }

    .modal.active { display: grid; }

    .modal-card {
      width: min(100%, 390px);
      padding: 24px;
      text-align: center;
    }

    .modal-card h2 {
      font-size: 24px;
    }

    .modal-card p {
      margin-top: 10px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.72;
    }

    .result .report {
      max-width: 980px;
    }

    .result .report > .balance-panel,
    .result .report > .report-actions,
    .result .report > .copyright {
      display: none;
    }

    .result .report > .report-actions.result-end-action {
      width: min(100%, 410px);
      margin: 2px auto 0;
      display: grid;
      grid-template-columns: 1fr;
    }

    .result-light-action-btn {
      width: 100%;
      min-height: 44px;
      border: 1px solid rgba(255, 216, 103, 0.52);
      border-radius: 999px;
      background: rgba(8, 3, 3, 0.34);
      color: #fff2df;
      font-size: 15px;
      font-weight: 500;
      box-shadow: inset 0 0 18px rgba(255, 216, 103, 0.06);
      cursor: pointer;
    }

    @container app (min-width: 760px) {
      .hero-card {
        padding: clamp(36px, 5vw, 58px);
      }

      .top-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .analysis-grid .wide {
        grid-column: span 2;
      }

      .panel {
        padding: 24px;
      }
    }

    @container app (max-width: 390px) {
      .gate-card { padding: 36px 24px; }
      .analyzing.active { margin: -12px; }
      .metric-row { gap: 7px; }
      .metric { padding: 12px 5px; }
      .report-actions { grid-template-columns: 1fr; }
    }

    @container app (max-width: 780px) {
      .hero-card {
        min-height: calc(100svh - 24px);
        grid-template-columns: 1fr;
        align-content: center;
        gap: 16px;
      }

      .home-copy {
        display: grid;
        gap: 14px;
      }

      .judgement-visual {
        min-height: 252px;
        order: -1;
      }

      .scale-scene {
        width: min(100%, 258px);
      }

      .home-auth {
        max-width: none;
        margin-top: 2px;
      }

      .hero-card h1,
      .hero-card .sub,
      .welcome .primary-btn {
        margin-top: 0;
      }

      .hero-card .sub {
        max-width: none;
        line-height: 1.62;
      }

      .metric-row {
        margin-top: 0;
      }

      .creator {
        display: none;
      }
    }

    @container app (max-width: 520px) {
      .hero-card {
        padding: 18px;
      }

      .hero-kicker {
        font-size: 11px;
      }

      .hero-card h1 {
        font-size: clamp(30px, 8.7vw, 41px);
      }

      .hero-card .sub {
        font-size: 14px;
      }

      .home-auth .password-wrap,
      .welcome .primary-btn {
        min-height: 54px;
        height: 54px;
      }

      .home-auth .password-wrap input {
        font-size: 16px;
      }

      .welcome .primary-btn {
        font-size: 18px;
      }

      .scale-pan {
        width: 82px;
        height: 60px;
      }

      .heart-shape {
        width: 36px;
        height: 36px;
      }

      .heart-shape::before,
      .heart-shape::after {
        width: 36px;
        height: 36px;
      }

      .heart-shape::before { top: -18px; }
      .heart-shape::after { left: 18px; }

      .feather-shape {
        width: 32px;
        height: 60px;
      }
    }

    .result.active {
      display: block;
      min-height: calc(100vh - 36px);
      margin: -18px;
      padding: 14px 14px 36px;
      background:
        radial-gradient(circle at 18% 22%, rgba(255, 77, 67, 0.14), transparent 34%),
        radial-gradient(circle at 82% 28%, rgba(255, 211, 106, 0.13), transparent 34%),
        radial-gradient(circle at 50% 68%, rgba(255, 77, 67, 0.08), transparent 42%),
        linear-gradient(180deg, #120608 0%, #0d0304 46%, #050203 100%);
      border-radius: 0;
      animation: result-reveal 0.62s cubic-bezier(0.2, 0.72, 0.24, 1) both;
    }

    .result .report {
      max-width: 430px;
      gap: 12px;
    }

    .result-page-title {
      margin: 0 auto 8px;
      color: #fff5ea;
      font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
      font-size: clamp(25px, 7.4vw, 34px);
      line-height: 1.08;
      font-weight: 720;
      letter-spacing: 0.015em;
      text-align: center;
      text-shadow: 0 2px 14px rgba(0, 0, 0, 0.62);
    }

    .result-page-title .title-key {
      display: inline-flex;
      align-items: baseline;
      gap: 0.08em;
      margin: 0 0.08em;
      white-space: nowrap;
    }

    .result-page-title .title-sin {
      color: #ff4d42;
      text-shadow: 0 0 18px rgba(255, 49, 40, 0.48), 0 2px 10px rgba(0, 0, 0, 0.75);
    }

    .result-page-title .title-vs {
      color: inherit;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 0.68em;
      font-weight: 700;
      letter-spacing: 0;
      text-shadow: inherit;
    }

    .result-page-title .title-virtue {
      color: #ffd36a;
      text-shadow: 0 0 18px rgba(255, 211, 106, 0.46), 0 2px 10px rgba(0, 0, 0, 0.75);
    }

    .result .panel {
      border-color: rgba(255, 185, 90, 0.18);
      background:
        radial-gradient(circle at 18% 0%, rgba(255, 77, 67, 0.07), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(255, 211, 106, 0.07), transparent 34%),
        linear-gradient(145deg, rgba(18, 7, 9, 0.82), rgba(5, 2, 3, 0.9));
      color: #fff5ea;
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 235, 170, 0.035);
    }

    .result .panel h2,
    .result .trait-name,
    .result .tension-name,
    .result .dim-name,
    .result .growth-title {
      color: #fff4e3;
      font-weight: 650;
      letter-spacing: 0;
    }

    .result .panel h2 {
      font-size: 20px;
    }

    .result .overline,
    .result .legend,
    .result .portrait p,
    .result .analysis-row,
    .result .growth-desc,
    .result .dim-desc,
    .result .help-text,
    .result .tension-score {
      color: rgba(255, 236, 214, 0.72);
    }

    .result .legend span:first-child i {
      background: #ff4d43;
    }

    .result .legend span:last-child i {
      background: #ffd867;
    }

    .result .analysis-row {
      border-top-color: rgba(255, 211, 119, 0.14);
    }

    .result .row-label,
    .result .trait-score,
    .result .dim-score,
    .result .growth-num {
      color: #f6ce67;
    }

    .result .tension-pair,
    .result .growth-item,
    .result .dim-item {
      border-color: rgba(255, 211, 119, 0.16);
      background: rgba(8, 4, 4, 0.5);
    }

    .result .growth-num {
      background: rgba(246, 206, 103, 0.1);
      border: 1px solid rgba(246, 206, 103, 0.18);
    }

    .result .growth-item > div:last-child {
      min-width: 0;
    }

    @container app (min-width: 760px) {
      .result .growth-panel {
        grid-column: 1 / -1;
      }

      .result .growth-panel .growth-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
      }

      .result .growth-panel .growth-item {
        align-content: start;
      }
    }

    .result .top-grid {
      position: relative;
      width: min(100%, 366px);
      margin: 2px auto 0;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .result .top-grid::after {
      content: "VS";
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 2;
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      color: #fff5ea;
      font-size: 14px;
      font-weight: 800;
      border: 1px solid rgba(255, 232, 210, 0.26);
      border-radius: var(--radius-pill);
      background: rgba(18, 7, 9, 0.88);
      box-shadow: 0 0 22px rgba(255, 211, 106, 0.18), inset 0 0 10px rgba(255, 244, 239, 0.04);
      transform: translate(-50%, -50%);
      pointer-events: none;
    }

    .result .score-card {
      min-height: 150px;
      align-content: center;
      gap: 4px;
      padding: 14px 9px 13px;
      border: 1px solid rgba(255, 185, 90, 0.18);
      border-radius: 6px;
      background:
        radial-gradient(circle at 50% 42%, rgba(255, 241, 220, 0.07), transparent 64%),
        rgba(18, 7, 9, 0.72);
      box-shadow: inset 0 0 28px rgba(255, 241, 220, 0.035);
    }

    .result .score-card:first-child {
      border-color: rgba(255, 77, 67, 0.24);
      background:
        radial-gradient(circle at 50% 50%, rgba(255, 77, 67, 0.14), transparent 68%),
        rgba(18, 7, 9, 0.72);
    }

    .result .score-card:last-child {
      border-color: rgba(255, 211, 106, 0.22);
      background:
        radial-gradient(circle at 50% 50%, rgba(255, 211, 106, 0.12), transparent 68%),
        rgba(18, 7, 9, 0.72);
    }

    .result .score-card span {
      color: rgba(255, 232, 210, 0.72);
      font-size: 13px;
      line-height: 1.2;
      letter-spacing: 0;
    }

    .result .score-card b {
      color: #fff7ed;
      font-size: clamp(31px, 8.8vw, 42px);
      line-height: 1.02;
      font-weight: 800;
      text-shadow: 0 0 18px rgba(255, 241, 220, 0.18), 0 2px 8px rgba(0, 0, 0, 0.72);
    }

    .result .score-card em {
      color: rgba(255, 241, 220, 0.86);
      font-size: 17px;
      line-height: 1.15;
      font-weight: 850;
    }

    .result-summary-diff {
      width: min(100%, 346px);
      margin: 12px auto 0;
      padding: 8px 16px;
      border: 1px solid rgba(255, 211, 106, 0.18);
      border-radius: 999px;
      background: rgba(255, 211, 106, 0.07);
      color: rgba(255, 245, 234, 0.92);
      font-size: 15px;
      line-height: 1.45;
      font-weight: 850;
      text-align: center;
      text-shadow: 0 1px 8px rgba(0, 0, 0, 0.62);
    }

    .result .trait-readout {
      padding: 0;
      overflow: hidden;
      border-color: rgba(255, 92, 72, 0.26);
      background:
        radial-gradient(circle at 80% 8%, rgba(255, 216, 103, 0.12), transparent 30%),
        radial-gradient(circle at 20% 70%, rgba(255, 77, 67, 0.16), transparent 36%),
        linear-gradient(180deg, #360808 0%, #160303 100%);
    }

    .trait-energy {
      position: relative;
      padding: 18px;
    }

    .trait-energy::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(116deg, transparent 0 30%, rgba(255, 216, 103, 0.09) 38%, transparent 50%),
        repeating-linear-gradient(90deg, rgba(255, 236, 190, 0.04) 0 1px, transparent 1px 68px);
      pointer-events: none;
    }

    .trait-energy > * {
      position: relative;
      z-index: 1;
    }

    .trait-energy-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 13px;
      border-bottom: 1px solid rgba(255, 216, 103, 0.14);
    }

    .trait-energy-kicker {
      color: #ffd867;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: 0.01em;
    }

    .trait-energy-name {
      margin-top: 4px;
      color: #fff2df;
      font-size: clamp(34px, 7.8vw, 38px);
      line-height: 1.02;
      font-weight: 400;
      letter-spacing: 0;
      text-shadow: 0 5px 16px rgba(0, 0, 0, 0.62);
    }

    .trait-energy-score {
      color: #ffd867;
      font-size: clamp(40px, 9vw, 44px);
      line-height: 1;
      font-weight: 500;
      white-space: nowrap;
      text-shadow: 0 0 18px rgba(255, 216, 103, 0.26);
    }

    .trait-energy-score span {
      font-size: 18px;
      font-weight: 500;
    }

    .trait-energy-bar {
      height: 14px;
      margin-top: 13px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255, 236, 214, 0.1);
    }

    .trait-energy-bar i {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #ff4d43, #ff7c50, #ffd867);
      box-shadow: 0 0 24px rgba(255, 77, 67, 0.34);
    }

    .trait-energy.is-virtue .trait-energy-bar i {
      background: linear-gradient(90deg, #ffb347, #ffd867);
      box-shadow: 0 0 24px rgba(255, 216, 103, 0.24);
    }

    .trait-energy-copy {
      margin-top: 13px;
      color: rgba(255, 232, 210, 0.76);
      font-size: 14px;
      line-height: 1.72;
    }

    .dual-core-grid {
      display: grid;
      gap: 10px;
      margin-top: 13px;
    }

    .core-card {
      padding: 14px;
      border: 1px solid rgba(255, 211, 106, 0.16);
      border-radius: 12px;
      background: rgba(8, 3, 3, 0.48);
    }

    .core-card.is-sin {
      border-color: rgba(255, 77, 67, 0.36);
      box-shadow: inset 0 0 24px rgba(255, 77, 67, 0.08);
    }

    .core-card.is-virtue {
      border-color: rgba(255, 216, 103, 0.34);
      box-shadow: inset 0 0 24px rgba(255, 216, 103, 0.07);
    }

    .core-top {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 10px;
    }

    .core-top span,
    .core-meta span {
      color: rgba(255, 232, 210, 0.64);
      font-size: 13px;
      font-weight: 500;
    }

    .core-top strong {
      display: block;
      margin-top: 4px;
      color: #fff2df;
      font-size: 30px;
      line-height: 1;
      font-weight: 900;
      text-shadow: 0 4px 14px rgba(0, 0, 0, 0.62);
    }

    .core-top em {
      color: #ffd867;
      font-style: normal;
      font-size: 20px;
      line-height: 1;
      font-weight: 850;
      white-space: nowrap;
    }

    .core-card p {
      margin-top: 11px;
      color: rgba(255, 232, 210, 0.76);
      font-size: 14px;
      line-height: 1.65;
    }

    .core-meta {
      display: grid;
      gap: 4px;
      margin-top: 11px;
      padding-top: 11px;
      border-top: 1px solid rgba(255, 216, 103, 0.13);
    }

    .core-meta b {
      color: #fff4e3;
      font-size: 14px;
      line-height: 1.55;
      font-weight: 650;
    }

    .identity-panel #tension-body {
      margin-top: 13px;
    }

    .identity-panel #portrait-text {
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid rgba(255, 216, 103, 0.14);
    }

    .tension-duel {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: stretch;
      gap: 9px;
      margin-top: 13px;
    }

    .tension-duel-card {
      min-height: 126px;
      display: grid;
      align-content: space-between;
      gap: 8px;
      padding: 13px;
      border-radius: 16px;
      background: rgba(8, 3, 3, 0.58);
    }

    .tension-duel-card.is-sin {
      border: 1px solid rgba(255, 77, 67, 0.56);
      box-shadow: inset 0 0 24px rgba(255, 77, 67, 0.09);
    }

    .tension-duel-card.is-virtue {
      border: 1px solid rgba(255, 216, 103, 0.52);
      box-shadow: inset 0 0 24px rgba(255, 216, 103, 0.08);
    }

    .tension-duel-label {
      color: rgba(255, 232, 210, 0.66);
      font-size: 13px;
      font-weight: 500;
    }

    .tension-duel-name {
      color: #fff2df;
      font-size: 25px;
      line-height: 1.08;
      font-weight: 650;
      letter-spacing: 0;
    }

    .tension-duel-score {
      color: #ffd867;
      font-size: 15px;
      font-weight: 650;
    }

    .tension-duel-vs {
      display: grid;
      place-items: center;
      color: #ffd867;
      font-size: 15px;
      font-weight: 650;
    }

    .tension-duel-vs span {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      border: 1px solid rgba(255, 216, 103, 0.36);
      background: rgba(5, 2, 2, 0.72);
      box-shadow: 0 0 20px rgba(255, 77, 67, 0.15);
    }

    .tension-duel-result {
      margin-top: 12px;
      padding: 12px;
      border-radius: 14px;
      border: 1px solid rgba(255, 216, 103, 0.2);
      background: rgba(8, 3, 3, 0.42);
      color: rgba(255, 232, 210, 0.78);
      font-size: 14px;
      line-height: 1.58;
    }

    .detail-panel {
      overflow: hidden;
    }

    .detail-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      cursor: pointer;
      list-style: none;
    }

    .detail-summary::-webkit-details-marker {
      display: none;
    }

    .detail-summary span {
      display: grid;
      gap: 4px;
    }

    .detail-summary b {
      color: #fff4e3;
      font-size: 20px;
      line-height: 1.1;
      font-weight: 650;
    }

    .detail-summary em {
      color: rgba(255, 236, 214, 0.62);
      font-style: normal;
      font-size: 12px;
      font-weight: 850;
      letter-spacing: 0.08em;
    }

    .detail-summary i {
      padding: 7px 12px;
      border: 1px solid rgba(255, 216, 103, 0.2);
      border-radius: 999px;
      color: #ffd867;
      background: rgba(8, 3, 3, 0.42);
      font-style: normal;
      font-size: 13px;
      font-weight: 850;
    }

    .detail-panel[open] .detail-summary i {
      font-size: 0;
    }

    .detail-panel[open] .detail-summary i::after {
      content: "收起";
      font-size: 13px;
    }

    .detail-content {
      margin-top: 12px;
    }

    .result-footnote {
      width: min(100%, 410px);
      margin: 0 auto;
      color: rgba(255, 232, 210, 0.56);
      font-size: 12px;
      line-height: 1.6;
      text-align: center;
    }

    @container app (max-width: 390px) {
      .tension-duel {
        gap: 6px;
      }

      .tension-duel-card {
        padding: 11px 10px;
      }

      .tension-duel-name {
        font-size: 22px;
      }
    }

    .result .tab-btn {
      border-color: rgba(255, 211, 119, 0.22);
      background: rgba(8, 4, 4, 0.52);
      color: rgba(255, 236, 214, 0.72);
    }

    .result .tab-btn.active {
      border-color: rgba(255, 83, 72, 0.72);
      background: linear-gradient(100deg, #b72a34, #e5623e 58%, #ffd867);
      color: #fff7ec;
    }

    .result .dim-bar {
      background: rgba(255, 241, 220, 0.12);
    }

    .result .dim-bar-fill {
      background: linear-gradient(90deg, #c92a32, #f6ce67);
    }

    @container app (min-width: 760px) {
      .result.active {
        margin: -26px;
        padding: 18px 18px 42px;
      }

      .result .report {
        max-width: 880px;
        gap: 16px;
      }

      .result-page-title {
        font-size: clamp(38px, 5vw, 56px);
      }

      .result .top-grid {
        width: min(100%, 660px);
        gap: 18px;
      }

      .result .score-card {
        min-height: 146px;
      }

      .result-summary-diff {
        width: min(100%, 620px);
        margin-top: 16px;
      }

      .dual-core-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }

      .result-footnote {
        width: min(100%, 620px);
      }
    }

    @container app (max-width: 390px) {
      .result.active {
        margin: -12px;
        padding: 10px 10px 30px;
      }
    }

    /* Unified theme hierarchy: one visual voice across welcome, quiz and result. */
    .result .report,
    .result .analysis-grid,
    .result .report > *,
    .result .panel {
      width: 100%;
      min-width: 0;
      max-width: 100%;
    }

    .result-footnote,
    .result .report > .report-actions.result-end-action {
      width: 100%;
      max-width: 100%;
    }

    .hero-kicker,
    .progress-count,
    .question-index,
    .opt-scale::before,
    .opt-choice::before {
      font-weight: 800;
    }

    .hero-card h1 {
      font-weight: 900;
    }

    .question h2,
    .quiz-actions .primary-btn,
    .quiz-actions .ghost-btn,
    .result .panel h2,
    .result .trait-name,
    .result .tension-name,
    .result .dim-name,
    .result .growth-title,
    .core-top strong,
    .core-meta b,
    .tension-duel-name,
    .detail-summary b {
      font-weight: 800;
    }

    .opt-scale,
    .opt-choice,
    .result .row-label,
    .result .trait-score,
    .result .dim-score,
    .result .growth-num {
      font-weight: 700;
    }

    @keyframes result-reveal {
      from {
        opacity: 0;
        filter: brightness(0.72) saturate(1.08);
        transform: translateY(12px);
      }
      to {
        opacity: 1;
        filter: none;
        transform: translateY(0);
      }
    }

    .verdict-poster {
      position: relative;
      isolation: isolate;
      width: min(100%, 430px);
      aspect-ratio: 800 / 900;
      margin: 2px auto 0;
      overflow: hidden;
      border: 0;
      border-radius: 0;
      background:
        radial-gradient(circle at 50% 48%, rgba(255, 244, 220, 0.018), transparent 58%),
        #0b0c0d;
      box-shadow: none;
      color: #f2ebdd;
    }

    .verdict-poster-head {
      position: absolute;
      z-index: 4;
      top: 0;
      left: 0;
      right: 0;
      display: flex;
      height: 38px;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    .verdict-poster-kicker {
      display: none;
    }

    .verdict-poster-head h2 {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(6px, 2.2cqw, 10px);
      color: #f2ebdd;
      font-size: clamp(14px, 3.8cqw, 17px);
      line-height: 1.1;
      font-weight: 800;
      letter-spacing: 0.04em;
      white-space: nowrap;
      font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    }

    .verdict-poster-head h2 .is-sin {
      color: #f2554a;
    }

    .verdict-poster-head h2 .is-virtue {
      color: #e5c46b;
    }

    .verdict-poster-head h2 i {
      color: rgba(242, 235, 221, 0.32);
      font-style: normal;
      font-weight: 400;
    }

    .verdict-poster-head h2::before,
    .verdict-poster-head h2::after {
      display: none;
    }

    .verdict-poster-head::after {
      content: "";
      position: absolute;
      left: 14%;
      right: 14%;
      bottom: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(242, 85, 74, 0.5) 38%, rgba(229, 196, 107, 0.5) 62%, transparent);
    }

    .verdict-poster-chart {
      position: absolute;
      top: 34px;
      left: 0;
      right: 0;
      height: calc(100% - 34px);
      z-index: 2;
    }

    #verdict-poster-svg {
      width: 100%;
      height: 100%;
      overflow: visible;
      font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    }

    #verdict-poster-svg .poster-area {
      transform-box: view-box;
      transform-origin: 400px 465px;
      animation: poster-area-enter 0.6s cubic-bezier(0.16, 0.78, 0.18, 1) 1 both;
    }

    #verdict-poster-svg .poster-area.is-virtue { animation-delay: 0.045s; }

    @keyframes poster-area-enter {
      from { opacity: 0; transform: scale(0.12); }
      to { opacity: 1; transform: scale(1); }
    }

    .verdict-poster-summary {
      display: none;
    }

    .verdict-poster-result {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr) auto;
      align-items: baseline;
      gap: 10px;
      min-height: 48px;
      padding: 11px 0 9px;
      border-top: 1px solid rgba(242, 235, 221, 0.17);
    }

    .verdict-poster-result > span {
      color: rgba(242, 235, 221, 0.42);
      font-size: clamp(8px, 2vw, 10px);
      font-weight: 700;
      letter-spacing: 0.12em;
    }

    .verdict-poster-result strong {
      font-size: clamp(20px, 6vw, 28px);
      line-height: 1;
      font-weight: 760;
    }

    .verdict-poster-result em {
      color: rgba(242, 235, 221, 0.42);
      font-style: normal;
      font-size: clamp(9px, 2.2vw, 11px);
    }

    .verdict-poster-result em b {
      margin-right: 3px;
      font-size: clamp(25px, 7vw, 34px);
      line-height: 1;
      font-weight: 660;
    }

    .verdict-poster-result.is-sin strong,
    .verdict-poster-result.is-sin em b { color: #f2554a; }

    .verdict-poster-result.is-virtue strong,
    .verdict-poster-result.is-virtue em b { color: #e5c46b; }
    }

    .radar-detail-panel {
      padding: 16px 12px 14px;
    }

    .radar-detail-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 4px;
      cursor: pointer;
      list-style: none;
    }

    .radar-detail-summary::-webkit-details-marker { display: none; }

    .radar-detail-summary span { display: grid; gap: 3px; text-align: left; }
    .radar-detail-summary b { color: #fff3df; font-size: 18px; }
    .radar-detail-summary em {
      color: rgba(255, 236, 213, 0.58);
      font-style: normal;
      font-size: 11px;
    }

    .radar-detail-summary i {
      padding: 6px 11px;
      border: 1px solid rgba(215, 170, 59, 0.24);
      border-radius: 999px;
      color: #ffd867;
      background: rgba(8, 3, 3, 0.48);
      font-style: normal;
      font-size: 12px;
      font-weight: 850;
    }

    .radar-detail-panel[open] .radar-detail-summary i { font-size: 0; }
    .radar-detail-panel[open] .radar-detail-summary i::after { content: "收起"; font-size: 12px; }
    .radar-detail-panel:not([open]) > :not(summary) { display: none; }

    @media (prefers-reduced-motion: reduce) {
      #verdict-poster-svg .poster-area { animation: none; }
    }

    @container app (max-width: 390px) {
      .verdict-poster { border-radius: 0; }
      .verdict-poster-result { grid-template-columns: 66px minmax(0, 1fr) auto; }
    }



    @media (prefers-reduced-motion: reduce) {
      .scale-scene,
      .scale-beam,
      .scale-pan.left,
      .scale-pan.right,
      .analyzing.active::before,
      .result.active {
        animation: none;
      }
    }

    /* Result battle meter — demon and angel push the live average-score frontline. */
    .result-summary-diff.battle-meter {
      --battle-position: 50%;
      position: relative;
      width: min(100%, 390px);
      margin: 12px auto 0;
      padding: 12px 14px 11px;
      overflow: hidden;
      border: 1px solid rgba(255, 211, 106, 0.24);
      border-radius: 16px;
      background:
        radial-gradient(circle at 9% 68%, rgba(242, 68, 60, 0.17), transparent 34%),
        radial-gradient(circle at 91% 68%, rgba(255, 216, 101, 0.14), transparent 34%),
        linear-gradient(100deg, rgba(31, 7, 10, 0.94), rgba(8, 4, 5, 0.98) 50%, rgba(31, 22, 8, 0.92));
      box-shadow: 0 15px 32px rgba(0, 0, 0, 0.3), inset 0 0 28px rgba(255, 230, 160, 0.025);
      color: #fff3df;
      text-align: initial;
    }

    .battle-meter::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.55;
      background: linear-gradient(90deg, rgba(242, 68, 60, 0.055), transparent 42% 58%, rgba(255, 216, 101, 0.05));
    }

    .battle-meter-head,
    .battle-score-row,
    .battle-stage {
      position: relative;
      z-index: 1;
    }

    .battle-meter-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .battle-meter-head > span {
      color: rgba(255, 236, 213, 0.48);
      font-size: 9px;
      font-weight: 850;
      letter-spacing: 0.12em;
    }

    .battle-meter-head strong {
      color: #fff1d1;
      font-size: 13px;
      line-height: 1.2;
      font-weight: 900;
    }

    .battle-score-row {
      display: flex;
      justify-content: space-between;
      margin-top: 6px;
    }

    .battle-score {
      display: flex;
      align-items: baseline;
      gap: 6px;
      font-size: 11px;
      font-weight: 760;
    }

    .battle-score span { color: rgba(255, 236, 213, 0.62); }
    .battle-score b { font-size: 21px; line-height: 1; }
    .battle-score.is-sin b { color: #ff594f; text-shadow: 0 0 14px rgba(255, 67, 60, 0.42); }
    .battle-score.is-virtue b { color: #ffd968; text-shadow: 0 0 14px rgba(255, 216, 101, 0.38); }

    .battle-stage {
      height: 62px;
      margin-top: 2px;
    }

    .battle-lane {
      position: absolute;
      left: 10%;
      right: 10%;
      top: 35px;
      height: 8px;
      border: 1px solid rgba(255, 236, 213, 0.16);
      border-radius: 999px;
      background: rgba(2, 1, 2, 0.84);
      box-shadow: inset 0 1px 7px rgba(0, 0, 0, 0.9);
    }

    .battle-force {
      position: absolute;
      top: 1px;
      bottom: 1px;
      transition: width 0.85s cubic-bezier(0.18, 0.82, 0.2, 1);
    }

    .battle-force.is-sin {
      left: 1px;
      width: calc(var(--battle-position) - 1px);
      border-radius: 999px 0 0 999px;
      background: linear-gradient(90deg, #8d111c, #ff4d43 72%, #ff9a6f);
      box-shadow: 0 0 15px rgba(255, 61, 54, 0.55);
    }

    .battle-force.is-virtue {
      right: 1px;
      width: calc(100% - var(--battle-position) - 1px);
      border-radius: 0 999px 999px 0;
      background: linear-gradient(90deg, #fff0a8, #ffd45c 35%, #9a6915);
      box-shadow: 0 0 15px rgba(255, 215, 90, 0.48);
    }

    .battle-center-line {
      position: absolute;
      left: 50%;
      top: 27px;
      bottom: 6px;
      width: 1px;
      background: linear-gradient(transparent, rgba(255, 247, 223, 0.36), transparent);
    }

    .battle-clash {
      position: absolute;
      left: var(--battle-position);
      top: 50%;
      width: 23px;
      height: 23px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 244, 217, 0.72);
      border-radius: 50%;
      background:
        linear-gradient(90deg, rgba(139, 16, 27, 0.98) 0 49%, rgba(114, 78, 15, 0.98) 51% 100%);
      color: #fff7e8;
      font-style: normal;
      transform: translate(-50%, -50%);
      box-shadow:
        -6px 0 16px rgba(255, 66, 58, 0.62),
        6px 0 16px rgba(255, 215, 90, 0.58),
        0 0 0 3px rgba(255, 239, 202, 0.05);
      transition: left 0.85s cubic-bezier(0.18, 0.82, 0.2, 1);
      animation: battle-clash-pulse 1.9s ease-in-out infinite;
    }

    .battle-clash::before,
    .battle-clash::after {
      display: none;
    }

    .battle-clash span {
      position: relative;
      z-index: 1;
      color: #fff4c6;
      font-size: 12px;
      line-height: 1;
      text-shadow: 0 0 7px #fff0a8;
    }

    .battle-fighter {
      position: absolute;
      top: -3px;
      width: 58px;
      display: grid;
      justify-items: center;
      gap: 0;
      transition: transform 0.85s cubic-bezier(0.18, 0.82, 0.2, 1);
      filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.48));
    }

    .battle-demon {
      left: 3px;
      color: #ff655b;
      transform: translateX(var(--battle-shift, 0px));
    }

    .battle-angel {
      right: 3px;
      color: #ffe18a;
      transform: translateX(var(--battle-shift, 0px));
    }

    .battle-character { width: 58px; height: 52px; overflow: visible; }

    .battle-role-name {
      margin-top: -3px;
      font-size: 9px;
      line-height: 1;
      font-weight: 900;
      letter-spacing: 0.08em;
    }

    .battle-demon .battle-role-name {
      color: #ff665b;
      text-shadow: 0 0 9px rgba(255, 65, 58, 0.48);
    }

    .battle-angel .battle-role-name {
      color: #ffe28b;
      text-shadow: 0 0 9px rgba(255, 216, 90, 0.42);
    }

    .demon-role-horns,
    .demon-role-brow,
    .demon-role-fang,
    .demon-role-tail {
      fill: none;
      stroke: #ff4d43;
      stroke-width: 2.4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .demon-role-head {
      fill: url(#battle-demon-sigil);
      stroke: #ff8275;
      stroke-width: 1.6;
      filter: drop-shadow(0 0 7px rgba(255, 65, 58, 0.54));
    }

    .demon-role-brow { stroke: #ffe0bd; stroke-width: 2; }
    .demon-role-fang { stroke: #ffd7b0; stroke-width: 1.7; }

    .angel-role-halo,
    .angel-role-wing,
    .angel-role-feather {
      fill: none;
      stroke: #f0cc68;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .angel-role-halo {
      stroke: #ffe58b;
      stroke-width: 3;
      filter: drop-shadow(0 0 6px rgba(255, 216, 90, 0.68));
    }

    .angel-role-star {
      fill: url(#battle-angel-sigil);
      stroke: #fff0ae;
      stroke-width: 1.5;
      filter: drop-shadow(0 0 7px rgba(255, 216, 90, 0.54));
    }

    @keyframes battle-clash-pulse {
      0%, 100% { filter: brightness(0.92); transform: translate(-50%, -50%) scale(0.94); }
      50% { filter: brightness(1.22); transform: translate(-50%, -50%) scale(1.08); }
    }

    @container app (min-width: 760px) {
      .result-summary-diff.battle-meter { width: min(100%, 620px); padding-inline: 22px; }
      .battle-stage { height: 68px; }
      .battle-fighter { width: 64px; }
      .battle-character { width: 64px; height: 58px; }
      .battle-lane { left: 9%; right: 9%; top: 39px; }
      .battle-center-line { top: 29px; bottom: 7px; }
    }

    @container app (max-width: 390px) {
      .result-summary-diff.battle-meter { padding: 12px 10px 10px; }
      .battle-meter-head > span { letter-spacing: 0.08em; }
      .battle-meter-head strong { font-size: 12px; }
      .battle-stage { height: 58px; }
      .battle-fighter { width: 54px; }
      .battle-character { width: 54px; height: 49px; }
      .battle-lane { left: 10%; right: 10%; top: 33px; }
      .battle-center-line { top: 25px; bottom: 5px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .battle-clash,
      .battle-demon,
      .battle-angel { animation: none; }
    }

    /* Minimal verdict seesaw. Positive difference lowers the virtue side. */
    .seesaw-meter {
      --seesaw-angle: 0deg;
      --seesaw-overshoot: 0deg;
      --seesaw-rebound: 0deg;
      padding: 12px 14px 11px;
      background:
        radial-gradient(circle at 10% 72%, rgba(242, 68, 60, 0.1), transparent 30%),
        radial-gradient(circle at 90% 72%, rgba(255, 216, 101, 0.085), transparent 30%),
        rgba(12, 7, 7, 0.82);
    }

    .seesaw-stage {
      position: relative;
      z-index: 1;
      height: 70px;
      margin-top: 2px;
      overflow: hidden;
    }

    .seesaw-verdict {
      position: relative;
      z-index: 2;
      display: block;
      width: max-content;
      max-width: 100%;
      margin: 3px auto 0;
      color: #f5e7c9;
      font-size: 13px;
      line-height: 1.25;
      font-weight: 900;
      text-align: center;
      letter-spacing: 0.03em;
    }

    .seesaw-meter.is-sin-leading .seesaw-verdict {
      color: #ff746a;
      text-shadow: 0 0 12px rgba(255, 65, 58, 0.28);
    }

    .seesaw-meter.is-virtue-leading .seesaw-verdict {
      color: #ffe08a;
      text-shadow: 0 0 12px rgba(255, 216, 90, 0.24);
    }

    .seesaw-beam-wrap {
      position: absolute;
      left: 9%;
      right: 9%;
      top: 13px;
      height: 42px;
      transform: rotate(0deg);
      transform-origin: 50% 50%;
    }

    .seesaw-meter.is-ready .seesaw-beam-wrap {
      animation: seesaw-settle 1.05s cubic-bezier(0.2, 0.74, 0.2, 1) forwards;
    }

    .seesaw-beam {
      position: absolute;
      left: 0;
      right: 0;
      top: 18px;
      height: 6px;
      border: 1px solid rgba(255, 238, 205, 0.22);
      border-radius: 999px;
      background: linear-gradient(90deg, #8e151e 0%, #ef4941 45%, #f0cd69 55%, #9a6d18 100%);
      box-shadow:
        -8px 0 15px rgba(255, 64, 57, 0.28),
        8px 0 15px rgba(255, 215, 90, 0.25),
        0 5px 12px rgba(0, 0, 0, 0.34);
    }

    .seesaw-beam::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      width: 8px;
      height: 8px;
      border: 1px solid rgba(255, 241, 211, 0.62);
      border-radius: 50%;
      background: #21150d;
      transform: translate(-50%, -50%);
      box-shadow: 0 0 8px rgba(255, 218, 120, 0.3);
    }

    .seesaw-end {
      position: absolute;
      top: 50%;
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      font-size: 12px;
      line-height: 1;
      font-weight: 900;
      transform: translateY(-50%);
    }

    .seesaw-end.is-sin {
      left: -4px;
      border: 1px solid rgba(255, 92, 82, 0.72);
      background: #3a0b10;
      color: #ff6a60;
      box-shadow: 0 0 13px rgba(255, 65, 58, 0.32);
    }

    .seesaw-end.is-virtue {
      right: -4px;
      border: 1px solid rgba(255, 222, 116, 0.72);
      background: #35270d;
      color: #ffe080;
      box-shadow: 0 0 13px rgba(255, 216, 90, 0.28);
    }

    .seesaw-pivot {
      position: absolute;
      left: 50%;
      top: 41px;
      width: 0;
      height: 0;
      border-left: 18px solid transparent;
      border-right: 18px solid transparent;
      border-bottom: 27px solid rgba(166, 119, 35, 0.76);
      transform: translateX(-50%);
      filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.38));
    }

    .seesaw-pivot::after {
      content: "";
      position: absolute;
      left: -22px;
      top: 25px;
      width: 44px;
      height: 2px;
      border-radius: 999px;
      background: rgba(229, 196, 107, 0.5);
    }

    .seesaw-pivot span {
      position: absolute;
      left: 50%;
      top: 17px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #f0ce74;
      transform: translateX(-50%);
      box-shadow: 0 0 7px rgba(255, 218, 120, 0.38);
    }

    @keyframes seesaw-settle {
      0% { transform: rotate(0deg); }
      54% { transform: rotate(var(--seesaw-overshoot)); }
      77% { transform: rotate(var(--seesaw-rebound)); }
      100% { transform: rotate(var(--seesaw-angle)); }
    }

    @container app (max-width: 390px) {
      .seesaw-meter { padding: 11px 10px 10px; }
      .seesaw-stage { height: 66px; }
      .seesaw-beam-wrap { left: 10%; right: 10%; top: 11px; }
      .seesaw-pivot { top: 39px; }
      .seesaw-verdict { margin-top: 2px; font-size: 12px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .seesaw-meter.is-ready .seesaw-beam-wrap {
        animation: none;
        transform: rotate(var(--seesaw-angle));
      }
    }

    .result .score-card .score-card-label {
      color: rgba(214, 197, 180, 0.53);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 11px;
      line-height: 1.2;
      font-weight: 650;
      letter-spacing: 0.08em;
    }

    .result .score-card > b {
      margin-top: 7px;
      color: #f6ead5;
      font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
      font-size: clamp(40px, 11vw, 55px);
      line-height: 1;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.56);
    }

    .result .score-card .score-card-score {
      display: flex;
      align-items: baseline;
      justify-content: center;
      gap: 4px;
      margin-top: 4px;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-style: normal;
      line-height: 1;
    }

    .result .score-card .score-card-score strong {
      font-size: 30px;
      line-height: 1;
      font-weight: 850;
    }

    .result .score-card .score-card-score small {
      color: rgba(194, 181, 166, 0.58);
      font-size: 13px;
      line-height: 1;
      font-weight: 750;
      letter-spacing: 0.02em;
    }

    .result .score-card.is-sin .score-card-score strong {
      color: #ef514c;
      text-shadow: 0 0 14px rgba(239, 81, 76, 0.24);
    }

    .result .score-card.is-virtue .score-card-score strong {
      color: #dfb659;
      text-shadow: 0 0 14px rgba(223, 182, 89, 0.22);
    }

    @container app (max-width: 390px) {
      .result-page-title { font-size: clamp(24px, 7.1vw, 31px); }
      .result .score-card { min-height: 146px; }
      .result .score-card > b { font-size: clamp(37px, 10.5vw, 49px); }
      .result .score-card .score-card-score strong { font-size: 28px; }
    }

    /* Compact rankings complement the radar without repeating a full data wall. */
    .ranking-panel {
      padding: 18px 16px 16px;
    }

    .ranking-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .ranking-kicker {
      display: block;
      margin-bottom: 3px;
      color: rgba(214, 197, 180, 0.48);
      font-size: 9px;
      line-height: 1;
      font-weight: 850;
      letter-spacing: 0.16em;
    }

    .result .ranking-head h2 {
      color: #f6ead5;
      font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
      font-size: 24px;
      line-height: 1.1;
      font-weight: 700;
    }

    .ranking-note {
      flex: none;
      color: rgba(214, 197, 180, 0.48);
      font-size: 11px;
      line-height: 1.2;
    }

    .ranking-columns {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .ranking-group {
      min-width: 0;
      padding: 12px 11px;
      border: 1px solid rgba(255, 238, 205, 0.1);
      border-radius: 12px;
      background: rgba(7, 3, 4, 0.45);
    }

    .ranking-group.is-sin {
      border-color: rgba(239, 81, 76, 0.22);
      background: linear-gradient(145deg, rgba(72, 12, 17, 0.3), rgba(7, 3, 4, 0.48) 62%);
    }

    .ranking-group.is-virtue {
      border-color: rgba(223, 182, 89, 0.2);
      background: linear-gradient(215deg, rgba(72, 52, 12, 0.25), rgba(7, 3, 4, 0.48) 62%);
    }

    .ranking-group h3 {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 6px;
      margin-bottom: 11px;
      color: #f3e6d0;
      font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
      font-size: 17px;
      line-height: 1;
      font-weight: 700;
    }

    .ranking-group h3 em {
      color: rgba(214, 197, 180, 0.45);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 8px;
      font-style: normal;
      font-weight: 850;
      letter-spacing: 0.12em;
    }

    .ranking-list {
      display: grid;
      gap: 11px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .ranking-item {
      min-width: 0;
    }

    .ranking-item-main {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .ranking-index {
      min-width: 18px;
      height: 18px;
      display: grid;
      place-items: center;
      padding: 0 3px;
      border: 1px solid currentColor;
      border-radius: 999px;
      color: rgba(214, 197, 180, 0.48);
      font-size: 8px;
      line-height: 1;
      font-weight: 850;
      white-space: nowrap;
    }

    .ranking-name {
      min-width: 0;
      overflow: hidden;
      color: rgba(246, 234, 213, 0.88);
      font-size: 13px;
      line-height: 1.2;
      font-weight: 720;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .ranking-score {
      color: #f6ead5;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 18px;
      line-height: 1;
      font-weight: 700;
    }

    .ranking-bar {
      height: 4px;
      margin: 6px 0 0 24px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255, 242, 218, 0.09);
    }

    .ranking-bar i {
      display: block;
      width: var(--ranking-score);
      height: 100%;
      border-radius: inherit;
    }

    .ranking-group.is-sin .ranking-bar i {
      background: linear-gradient(90deg, #8f1720, #ef514c);
      box-shadow: 0 0 9px rgba(239, 81, 76, 0.3);
    }

    .ranking-group.is-virtue .ranking-bar i {
      background: linear-gradient(90deg, #8c681c, #dfb659);
      box-shadow: 0 0 9px rgba(223, 182, 89, 0.25);
    }

    .ranking-group.is-sin .ranking-item:first-child .ranking-index,
    .ranking-group.is-sin .ranking-item:first-child .ranking-score {
      color: #ef625c;
    }

    .ranking-group.is-virtue .ranking-item:first-child .ranking-index,
    .ranking-group.is-virtue .ranking-item:first-child .ranking-score {
      color: #e3bd68;
    }

    .ranking-details {
      margin-top: 13px;
      padding-top: 12px;
      border-top: 1px solid rgba(255, 230, 190, 0.1);
    }

    .ranking-details > summary {
      width: max-content;
      max-width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin: 0 auto;
      color: rgba(246, 234, 213, 0.7);
      cursor: pointer;
      list-style: none;
      font-size: 12px;
      line-height: 1.2;
      font-weight: 750;
    }

    .ranking-details > summary::-webkit-details-marker {
      display: none;
    }

    .ranking-details > summary:focus {
      outline: none;
    }

    .ranking-details > summary:focus-visible {
      border-radius: 4px;
      outline: 1px solid rgba(216, 184, 109, 0.52);
      outline-offset: 5px;
    }

    .ranking-details > summary i {
      width: 7px;
      height: 7px;
      border-right: 1.5px solid #d8b86d;
      border-bottom: 1.5px solid #d8b86d;
      transform: translateY(-2px) rotate(45deg);
      transition: transform 0.2s ease;
    }

    .ranking-close-label {
      display: none;
    }

    .ranking-details[open] .ranking-open-label {
      display: none;
    }

    .ranking-details[open] .ranking-close-label {
      display: inline;
    }

    .ranking-details[open] > summary i {
      transform: translateY(2px) rotate(225deg);
    }

    .ranking-full {
      margin-top: 13px;
      animation: ranking-reveal 0.24s ease-out both;
    }

    .ranking-full .ranking-list {
      gap: 9px;
    }

    .ranking-full .ranking-bar {
      height: 3px;
    }

    @keyframes ranking-reveal {
      from { opacity: 0; transform: translateY(-5px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @container app (max-width: 390px) {
      .ranking-panel { padding: 16px 12px 14px; }
      .ranking-columns { gap: 7px; }
      .ranking-group { padding: 11px 8px; }
      .ranking-name { font-size: 12px; }
      .ranking-score { font-size: 17px; }
      .ranking-index { min-width: 17px; height: 17px; font-size: 7px; }
      .ranking-item-main { gap: 4px; }
      .ranking-bar { margin-left: 21px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .ranking-full { animation: none; }
      .ranking-details > summary i { transition: none; }
    }

    /* Explanation chain: score → need → trigger → response → action. */
    .insight-panel {
      position: relative;
      overflow: hidden;
      padding: 18px 17px 16px;
      border-color: rgba(216, 184, 109, 0.2);
      background:
        radial-gradient(circle at 10% 18%, rgba(239, 81, 76, 0.1), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(223, 182, 89, 0.08), transparent 34%),
        rgba(12, 5, 6, 0.82);
    }

    .insight-panel::after {
      content: "";
      position: absolute;
      right: -32px;
      top: -42px;
      width: 116px;
      height: 116px;
      border: 1px solid rgba(216, 184, 109, 0.08);
      border-radius: 50%;
      box-shadow: 0 0 0 22px rgba(239, 81, 76, 0.025);
      pointer-events: none;
    }

    .insight-head {
      position: relative;
      z-index: 1;
      align-items: flex-end;
    }

    .insight-kicker {
      display: block;
      margin-bottom: 4px;
      color: rgba(214, 197, 180, 0.48);
      font-size: 9px;
      line-height: 1;
      font-weight: 850;
      letter-spacing: 0.16em;
    }

    .result .insight-head h2 {
      color: #f6ead5;
      font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
      font-size: 24px;
      line-height: 1.1;
      font-weight: 700;
    }

    .insight-balance {
      flex: none;
      padding: 5px 9px;
      border: 1px solid rgba(216, 184, 109, 0.18);
      border-radius: 999px;
      color: #d8b86d;
      background: rgba(216, 184, 109, 0.06);
      font-size: 10px;
      line-height: 1;
      font-weight: 800;
    }

    .insight-copy {
      position: relative;
      z-index: 1;
      margin-top: 14px;
      color: rgba(246, 234, 213, 0.78);
      font-size: 14px;
      line-height: 1.82;
      text-align: justify;
    }

    .insight-copy strong {
      color: #f7ead3;
      font-weight: 800;
    }

    .insight-copy .is-sin {
      color: #ef625c;
    }

    .insight-copy .is-virtue {
      color: #e3bd68;
    }

    .insight-tags {
      position: relative;
      z-index: 1;
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 14px;
      padding-top: 13px;
      border-top: 1px solid rgba(255, 230, 190, 0.09);
    }

    .insight-tag {
      padding: 6px 10px;
      border: 1px solid rgba(216, 184, 109, 0.17);
      border-radius: 999px;
      color: rgba(246, 234, 213, 0.72);
      background: rgba(4, 2, 2, 0.38);
      font-size: 11px;
      line-height: 1;
      font-weight: 720;
    }

    .insight-tag.is-sin {
      border-color: rgba(239, 81, 76, 0.22);
      color: #e99791;
    }

    .insight-tag.is-virtue {
      border-color: rgba(223, 182, 89, 0.22);
      color: #dfc482;
    }

    .insight-facts {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 12px;
    }

    .insight-fact {
      min-width: 0;
      padding: 10px 11px;
      border: 1px solid rgba(255, 230, 190, 0.09);
      border-radius: 10px;
      background: rgba(4, 2, 2, 0.34);
    }

    .insight-fact.is-sin {
      border-color: rgba(239, 81, 76, 0.18);
    }

    .insight-fact.is-virtue {
      border-color: rgba(223, 182, 89, 0.18);
    }

    .insight-fact span {
      display: block;
      color: rgba(214, 197, 180, 0.46);
      font-size: 9px;
      line-height: 1;
      font-weight: 820;
      letter-spacing: 0.08em;
    }

    .insight-fact b {
      display: block;
      margin-top: 6px;
      color: rgba(246, 234, 213, 0.76);
      font-size: 11px;
      line-height: 1.55;
      font-weight: 680;
    }

    .insight-fact.is-sin b {
      color: #dfa09b;
    }

    .insight-fact.is-virtue b {
      color: #dbc484;
    }

    .identity-panel #portrait-text {
      margin-top: 14px;
      padding-top: 0;
      border-top: 0;
    }

    .reaction-chain {
      position: relative;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .reaction-chain::before {
      content: "";
      position: absolute;
      left: 9%;
      right: 9%;
      top: 17px;
      height: 1px;
      background: linear-gradient(90deg, #b72d32, #db7147 46%, #d8b86d);
      opacity: 0.52;
    }

    .reaction-step {
      position: relative;
      min-width: 0;
      padding: 36px 9px 11px;
      border: 1px solid rgba(255, 230, 190, 0.1);
      border-radius: 11px;
      background: rgba(5, 2, 3, 0.38);
    }

    .reaction-step::before {
      content: attr(data-step);
      position: absolute;
      left: 50%;
      top: 8px;
      z-index: 1;
      width: 20px;
      height: 20px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(216, 184, 109, 0.44);
      border-radius: 50%;
      color: #e5c36f;
      background: #170b09;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 10px;
      font-weight: 700;
      transform: translateX(-50%);
      box-shadow: 0 0 12px rgba(216, 184, 109, 0.12);
    }

    .reaction-step.is-sin::before {
      border-color: rgba(239, 81, 76, 0.58);
      color: #ef625c;
      box-shadow: 0 0 12px rgba(239, 81, 76, 0.18);
    }

    .reaction-step span {
      display: block;
      color: rgba(214, 197, 180, 0.48);
      font-size: 9px;
      line-height: 1;
      font-weight: 800;
      letter-spacing: 0.08em;
    }

    .reaction-step b {
      display: block;
      margin-top: 7px;
      color: rgba(246, 234, 213, 0.84);
      font-size: 12px;
      line-height: 1.55;
      font-weight: 720;
    }

    .reaction-step.is-sin b {
      color: #eaa19b;
    }

    .reaction-step.is-virtue b {
      color: #e2c77e;
    }

    .reaction-summary {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      margin-top: 12px;
      padding: 10px 12px;
      border-left: 2px solid rgba(216, 184, 109, 0.5);
      border-radius: 0 8px 8px 0;
      color: rgba(246, 234, 213, 0.68);
      background: rgba(216, 184, 109, 0.045);
      font-size: 12px;
      line-height: 1.65;
    }

    .reaction-summary span {
      flex: none;
      color: rgba(216, 184, 109, 0.58);
      font-size: 9px;
      line-height: 1.8;
      font-weight: 850;
      letter-spacing: 0.08em;
    }

    .reaction-summary b {
      color: #e3c97f;
      font-size: 12px;
      line-height: 1.65;
      font-weight: 720;
    }

    .growth-action-label {
      display: inline-block;
      margin-bottom: 3px;
      color: rgba(216, 184, 109, 0.55);
      font-size: 9px;
      line-height: 1;
      font-weight: 850;
      letter-spacing: 0.1em;
    }

    @container app (max-width: 560px) {
      .reaction-chain {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .reaction-chain::before {
        left: 17px;
        right: auto;
        top: 18px;
        bottom: 18px;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, #b72d32, #db7147 46%, #d8b86d);
      }

      .reaction-step {
        min-height: 62px;
        padding: 11px 11px 11px 48px;
      }

      .reaction-step::before {
        left: 17px;
        top: 50%;
        transform: translate(-50%, -50%);
      }
    }

    @container app (max-width: 390px) {
      .insight-panel { padding: 16px 14px 14px; }
      .insight-copy { font-size: 13px; line-height: 1.78; }
      .insight-tag { padding: 6px 9px; font-size: 10px; }
      .insight-facts { grid-template-columns: 1fr; }
    }

    /* Editorial result flow — one outer surface, fewer nested boxes. */
    .ranking-panel,
    .identity-panel,
    .growth-panel {
      padding: 20px 18px 18px;
      border-color: rgba(216, 184, 109, 0.14);
      background: linear-gradient(180deg, rgba(18, 8, 9, 0.72), rgba(7, 3, 4, 0.82));
      box-shadow: inset 0 1px 0 rgba(255, 241, 218, 0.025);
    }

    .ranking-kicker,
    .insight-kicker,
    .section-kicker {
      display: block;
      margin-bottom: 5px;
      color: rgba(216, 184, 109, 0.52);
      font-size: 9px;
      line-height: 1;
      font-weight: 850;
      letter-spacing: 0.16em;
    }

    .result .ranking-head h2,
    .result .insight-head h2,
    .result .identity-panel .panel-head h2,
    .result .growth-panel .panel-head h2 {
      color: #f5e8d2;
      font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
      font-size: 25px;
      line-height: 1.08;
      font-weight: 700;
      letter-spacing: 0.01em;
      text-shadow: none;
    }

    .ranking-head,
    .identity-panel .panel-head,
    .growth-panel .panel-head {
      margin-bottom: 16px;
      padding-bottom: 13px;
      border-bottom: 1px solid rgba(255, 230, 190, 0.09);
    }

    .ranking-group {
      padding: 2px 12px 3px;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    .ranking-group.is-sin,
    .ranking-group.is-virtue {
      border-color: transparent;
      background: transparent;
    }

    .ranking-group + .ranking-group {
      border-left: 1px solid rgba(255, 230, 190, 0.09);
    }

    .ranking-group h3 {
      margin-bottom: 13px;
      font-size: 16px;
    }

    .ranking-list {
      gap: 13px;
    }

    .ranking-details {
      margin-top: 16px;
      padding-top: 13px;
    }

    .insight-panel {
      padding: 22px 19px 18px;
      border-color: rgba(223, 182, 89, 0.3);
      background:
        radial-gradient(circle at 0% 0%, rgba(239, 81, 76, 0.13), transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(223, 182, 89, 0.1), transparent 40%),
        linear-gradient(145deg, rgba(27, 9, 11, 0.94), rgba(9, 4, 5, 0.96));
      box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 238, 205, 0.04);
    }

    .insight-head {
      padding-bottom: 13px;
      border-bottom: 1px solid rgba(255, 230, 190, 0.1);
    }

    .insight-copy {
      max-width: 42em;
      margin-top: 16px;
      color: rgba(246, 234, 213, 0.82);
      font-size: 14px;
      line-height: 1.9;
      text-align: left;
    }

    .insight-tags {
      gap: 9px;
      margin-top: 14px;
      padding-top: 0;
      border-top: 0;
    }

    .insight-tag {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: none;
      font-size: 11px;
    }

    .insight-tag + .insight-tag::before {
      content: "·";
      margin-right: 9px;
      color: rgba(216, 184, 109, 0.36);
    }

    .insight-facts {
      gap: 0;
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid rgba(255, 230, 190, 0.1);
    }

    .insight-fact {
      padding: 1px 13px 1px 0;
      border: 0;
      border-radius: 0;
      background: none;
    }

    .insight-fact.is-sin,
    .insight-fact.is-virtue {
      border-color: transparent;
    }

    .insight-fact + .insight-fact {
      padding-right: 0;
      padding-left: 14px;
      border-left: 1px solid rgba(255, 230, 190, 0.1);
    }

    .insight-fact b {
      font-size: 12px;
      line-height: 1.65;
    }

    .identity-panel #portrait-text {
      margin-top: 0;
    }

    .reaction-chain {
      gap: 0;
    }

    .reaction-chain::before {
      left: 16.66%;
      right: 16.66%;
      top: 13px;
      opacity: 0.62;
    }

    .reaction-step {
      padding: 34px 14px 5px;
      border: 0;
      border-radius: 0;
      background: transparent;
      text-align: center;
    }

    .reaction-step::before {
      top: 3px;
    }

    .reaction-step span {
      font-size: 10px;
    }

    .reaction-step b {
      margin-top: 8px;
      font-size: 13px;
      line-height: 1.6;
    }

    .reaction-summary {
      justify-content: center;
      margin-top: 16px;
      padding: 11px 12px;
      border: 0;
      border-top: 1px solid rgba(223, 182, 89, 0.18);
      border-radius: 0;
      background: linear-gradient(90deg, transparent, rgba(223, 182, 89, 0.055), transparent);
      text-align: center;
    }

    .growth-hint {
      color: rgba(216, 184, 109, 0.55);
      font-size: 10px;
      line-height: 1;
      font-weight: 760;
    }

    .growth-list {
      gap: 0;
      margin-top: 0;
    }

    .growth-item {
      grid-template-columns: 32px minmax(0, 1fr);
      gap: 11px;
      padding: 14px 2px;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    .growth-item + .growth-item {
      border-top: 1px solid rgba(255, 230, 190, 0.09);
    }

    .growth-item.is-primary {
      margin-bottom: 4px;
      padding: 15px 14px;
      border: 1px solid rgba(223, 182, 89, 0.24);
      border-radius: 12px;
      background: linear-gradient(110deg, rgba(93, 29, 25, 0.19), rgba(92, 67, 17, 0.15));
      box-shadow: inset 0 1px 0 rgba(255, 237, 201, 0.035);
    }

    .growth-item.is-primary + .growth-item {
      border-top: 0;
    }

    .growth-item.is-secondary {
      opacity: 0.82;
    }

    .growth-item.is-primary .growth-num {
      color: #f0cf78;
      border-color: rgba(223, 182, 89, 0.38);
      background: rgba(223, 182, 89, 0.08);
    }

    .growth-item.is-primary .growth-title {
      color: #f5e8d2;
      font-size: 17px;
    }

    .growth-item.is-secondary .growth-num {
      width: 24px;
      height: 24px;
      margin: 2px auto 0;
      border: 0;
      background: rgba(216, 184, 109, 0.06);
      font-size: 10px;
    }

    .growth-item.is-secondary .growth-title {
      font-size: 14px;
    }

    .growth-item.is-secondary .growth-desc {
      font-size: 12px;
      line-height: 1.65;
    }

    @container app (max-width: 560px) {
      .ranking-panel,
      .identity-panel,
      .growth-panel { padding: 18px 16px 16px; }

      .reaction-chain { gap: 0; }

      .reaction-chain::before {
        left: 12px;
        top: 13px;
        bottom: 13px;
      }

      .reaction-step {
        min-height: 52px;
        padding: 6px 4px 7px 36px;
        text-align: left;
      }

      .reaction-step::before {
        left: 12px;
        top: 50%;
      }

      .reaction-step + .reaction-step {
        border-top: 1px solid rgba(255, 230, 190, 0.065);
      }

      .reaction-summary {
        justify-content: flex-start;
        text-align: left;
      }

      .growth-item.is-secondary {
        grid-template-columns: 24px minmax(0, 1fr);
        padding: 10px 2px;
        column-gap: 9px;
      }

      .growth-item.is-secondary .growth-action-label {
        display: none;
      }

      .growth-item.is-secondary .growth-desc {
        margin-top: 2px;
        line-height: 1.5;
      }
    }

    @container app (max-width: 390px) {
      .ranking-panel { padding: 17px 12px 15px; }
      .ranking-group { padding: 2px 8px 3px; }
      .ranking-group + .ranking-group { border-left-color: rgba(255, 230, 190, 0.07); }
      .insight-panel { padding: 19px 15px 16px; }
      .insight-copy { font-size: 13px; line-height: 1.85; }
      .insight-facts { grid-template-columns: 1fr; }
      .insight-fact { padding: 1px 0 11px; }
      .insight-fact + .insight-fact { padding: 11px 0 1px; border-left: 0; border-top: 1px solid rgba(255, 230, 190, 0.08); }
      .growth-item.is-primary { padding: 14px 12px; }
    }

    /* Result interpretation — one continuous seven-part narrative. */
    .inner-reading-panel {
      padding: 23px 20px 20px;
    }

    .reading-label {
      display: block;
      color: rgba(223, 182, 89, 0.72);
      font-size: 10px;
      line-height: 1.4;
      font-weight: 850;
      letter-spacing: 0.16em;
    }

    .reading-lead {
      margin-top: 17px;
      padding: 7px 0 18px;
      border-bottom: 1px solid rgba(255, 230, 190, 0.1);
    }

    .reading-verdict {
      max-width: 38em;
      margin-top: 8px;
      color: #f8ead6;
      font-family: "Songti SC", "STSong", "SimSun", serif;
      font-size: clamp(19px, 3.1cqw, 23px);
      line-height: 1.72;
      font-weight: 760;
      text-wrap: pretty;
    }

    .reading-verdict strong,
    .reading-section strong {
      font-weight: 900;
    }

    .reading-verdict .is-sin,
    .reading-section .is-sin { color: #ff6259; }

    .reading-verdict .is-virtue,
    .reading-section .is-virtue { color: #f2cc68; }

    .reading-pair {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0;
      margin-top: 0;
    }

    .reading-section {
      min-width: 0;
      padding: 16px 17px 2px 0;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    .reading-section.is-protection {
      border-color: transparent;
      background: transparent;
    }

    .reading-section.is-tension {
      padding-right: 0;
      padding-left: 17px;
      border-left: 1px solid rgba(255, 230, 190, 0.1);
      background: transparent;
    }

    .reading-section p {
      margin-top: 8px;
      color: rgba(246, 234, 213, 0.8);
      font-size: 13px;
      line-height: 1.82;
      text-wrap: pretty;
    }

    .evidence-panel {
      padding: 22px 19px 19px;
    }

    .evidence-scenes {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0;
    }

    .evidence-scene {
      display: flex;
      min-width: 0;
      min-height: 100%;
      padding: 15px 17px 5px 0;
      flex-direction: column;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    .evidence-scene.is-sin {
      border-color: transparent;
      background: transparent;
    }

    .evidence-scene.is-virtue {
      padding-right: 0;
      padding-left: 17px;
      border-left: 1px solid rgba(255, 230, 190, 0.1);
      background: transparent;
    }

    .evidence-scene header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .evidence-scene header span {
      color: rgba(246, 234, 213, 0.5);
      font-size: 10px;
      font-weight: 820;
      letter-spacing: 0.12em;
    }

    .evidence-scene header b {
      font-size: 14px;
      font-weight: 900;
    }

    .evidence-scene.is-sin header b { color: #ff6259; }
    .evidence-scene.is-virtue header b { color: #f1cb68; }

    .evidence-scene blockquote {
      margin-top: 13px;
      color: #f5e8d3;
      font-family: "Songti SC", "STSong", "SimSun", serif;
      font-size: 15px;
      line-height: 1.78;
      font-weight: 700;
      text-wrap: pretty;
    }

    .evidence-answer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 13px;
      padding: 8px 0 0;
      border-top: 1px solid rgba(255, 245, 225, 0.07);
      border-radius: 0;
      background: transparent;
    }

    .evidence-answer span {
      color: rgba(246, 234, 213, 0.46);
      font-size: 10px;
    }

    .evidence-answer strong {
      color: #fff1dc;
      font-size: 12px;
      font-weight: 850;
    }

    .pattern-cost {
      margin-top: 14px;
      padding: 14px 0 2px;
      border-top: 1px solid rgba(255, 230, 190, 0.11);
      background: transparent;
    }

    .pattern-cost p {
      margin-top: 8px;
      color: rgba(246, 234, 213, 0.78);
      font-size: 13px;
      line-height: 1.82;
      text-wrap: pretty;
    }

    .next-step-panel {
      padding: 22px 19px 20px;
      border-color: rgba(223, 182, 89, 0.27);
      background:
        radial-gradient(circle at 50% 110%, rgba(223, 182, 89, 0.11), transparent 46%),
        linear-gradient(145deg, rgba(25, 10, 10, 0.96), rgba(8, 5, 5, 0.97));
    }

    .single-action {
      padding: 7px 0 16px 15px;
      border: 0;
      border-left: 2px solid rgba(223, 182, 89, 0.5);
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .single-action-context {
      display: block;
      color: #e2b955;
      font-size: 11px;
      line-height: 1.55;
      font-weight: 850;
      letter-spacing: 0.04em;
    }

    .single-action p {
      margin-top: 8px;
      color: #f8ead6;
      font-size: 17px;
      line-height: 1.75;
      font-weight: 760;
      text-wrap: pretty;
    }

    .share-ending {
      position: relative;
      margin-top: 17px;
      padding: 28px 8px 5px;
      border-top: 1px solid rgba(255, 230, 190, 0.1);
      color: #f6dd9b;
      font-family: "Songti SC", "STSong", "SimSun", serif;
      font-size: clamp(19px, 3.2cqw, 23px);
      line-height: 1.65;
      font-weight: 800;
      text-align: center;
      text-wrap: balance;
    }

    .share-ending::before {
      content: "留给你的一句话";
      position: absolute;
      top: 0;
      left: 50%;
      color: rgba(223, 182, 89, 0.48);
      font-family: system-ui, -apple-system, sans-serif;
      font-size: 9px;
      line-height: 1;
      font-weight: 850;
      letter-spacing: 0.18em;
      transform: translateX(-50%);
      white-space: nowrap;
    }

    @container app (max-width: 560px) {
      .inner-reading-panel,
      .evidence-panel,
      .next-step-panel { padding: 19px 15px 17px; }

      .reading-lead { padding: 15px 14px 16px; }
      .reading-verdict { font-size: 19px; line-height: 1.68; }
      .reading-pair,
      .evidence-scenes { grid-template-columns: 1fr; }
      .reading-lead { padding-inline: 0; }
      .reading-section,
      .reading-section.is-tension { padding: 14px 0 4px; border-left: 0; }
      .reading-section + .reading-section { margin-top: 9px; border-top: 1px solid rgba(255, 230, 190, 0.08); }
      .evidence-scene,
      .evidence-scene.is-virtue { padding: 14px 0 5px; border-left: 0; }
      .evidence-scene + .evidence-scene { margin-top: 10px; border-top: 1px solid rgba(255, 230, 190, 0.09); }
      .pattern-cost { padding: 14px 0 4px; }
      .single-action { padding: 6px 0 14px 13px; }
      .single-action p { font-size: 16px; }
      .share-ending { padding-inline: 3px; font-size: 20px; }
    }

    /* Home poster — preserve the full artwork; controls live in its lower fade. */
    .app:has(.welcome.active) {
      padding: 0;
      background: #050404;
    }

    .welcome.active {
      min-height: 100svh;
    }

    .hero-card {
      width: 100%;
      min-height: 100svh;
      padding: 0 18px 20px;
      display: block;
      border: 0;
      border-radius: 0;
      background-color: #050404;
      background-image:
        linear-gradient(180deg, rgba(255, 244, 224, 0.055) 0 68%, rgba(5, 4, 4, 0.18) 80%, #050404 100%),
        url("../assets/seven-sins-seven-virtues-hero.jpg");
      background-position: center top;
      background-size: 100% 100%, 100% auto;
      background-repeat: no-repeat;
      background-blend-mode: screen, normal;
    }

    .hero-card::before {
      inset: 0;
      background:
        linear-gradient(90deg, rgba(221, 42, 47, 0.12), transparent 45%, rgba(255, 215, 121, 0.1));
      mix-blend-mode: screen;
      opacity: 1;
    }

    .hero-card::after {
      background:
        linear-gradient(180deg, transparent 0 84%, rgba(5, 4, 4, 0.06) 90%, rgba(5, 4, 4, 0.28) 100%);
      box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.16);
    }

    .home-copy {
      padding: 160cqw 0 4px;
      border: 0;
      background: transparent;
      text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
      gap: 10px;
    }

    .home-copy .hero-kicker { display: none; }

    .home-copy .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0;
    }

    .hero-card .sub {
      max-width: none;
      color: rgba(255, 246, 232, 0.72);
      font-size: 13px;
      line-height: 1.55;
    }

    .home-auth {
      margin-top: 0;
      gap: 0;
    }

    .home-auth .error-msg:not(.visible) { display: none; }

    .welcome .primary-btn {
      min-height: 54px;
      height: 54px;
      margin-top: 0;
      border: 1px solid rgba(224, 178, 84, 0.42);
      color: #fff3dc;
      background: linear-gradient(100deg, #761017 0%, #a92826 48%, #9a6a28 100%);
      box-shadow:
        0 14px 30px rgba(91, 9, 15, 0.32),
        inset 0 1px 0 rgba(255, 232, 177, 0.12);
    }

    .welcome .primary-btn:hover {
      background: linear-gradient(100deg, #88141b 0%, #bc332e 48%, #ad7a31 100%);
    }

    .latest-result-btn {
      min-height: 44px;
      margin-top: 0;
      padding-block: 8px;
    }

    .metric-row {
      margin-top: 10px;
      background: rgba(0, 0, 0, 0.38);
    }

    .metric { padding: 10px 6px; }
    .metric b { font-size: 21px; }
    .metric span { margin-top: 5px; font-size: 11px; }

    @container app (max-width: 780px) {
      .hero-card {
        min-height: 100svh;
        padding-bottom: 0;
        background-position: center top;
        background-size: 100% 100%, 100% auto;
      }

      .hero-card::before {
        background: linear-gradient(90deg, rgba(221, 42, 47, 0.11), transparent 46%, rgba(255, 215, 121, 0.09));
      }

      .home-copy {
        margin-top: 0;
        padding: clamp(420px, calc(100svh - 205px), 600px) 0 max(4px, env(safe-area-inset-bottom));
        border: 0;
        background: transparent;
        gap: 10px;
      }

      .home-controls {
        position: relative;
        isolation: isolate;
        width: min(88%, 340px);
        margin-inline: auto;
        padding: 10px;
        gap: 9px;
        border: 1px solid rgba(226, 182, 96, 0.28);
        border-radius: 18px;
        background:
          radial-gradient(circle at 8% 0%, rgba(137, 20, 27, 0.22), transparent 44%),
          linear-gradient(145deg, rgba(10, 4, 5, 0.97), rgba(5, 4, 4, 0.96));
        box-shadow:
          0 18px 44px rgba(0, 0, 0, 0.5),
          inset 0 1px 0 rgba(255, 235, 191, 0.055);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
      }

      .home-controls::before {
        content: "";
        position: absolute;
        z-index: -1;
        left: -12%;
        right: -12%;
        top: -92px;
        bottom: -14px;
        pointer-events: none;
        background: linear-gradient(180deg, transparent 0, rgba(5, 4, 4, 0.64) 44%, #050404 82%);
      }

      .home-copy > * {
        position: relative;
        z-index: 1;
      }

      .hero-card .sub { display: none; }

      .home-auth,
      .welcome .primary-btn,
      .latest-result-btn {
        width: 100%;
        margin-inline: 0;
      }

      .home-auth .password-wrap {
        height: 56px;
      }

      .home-auth .password-wrap input {
        font-size: 17px;
      }

      .welcome .primary-btn {
        min-height: 52px;
        height: 52px;
      }

      .latest-result-btn {
        min-height: 42px;
      }

      .welcome .metric-row { display: none; }
      .welcome .creator { display: none; }
    }

    @container app (max-width: 390px) {
      .hero-card { padding-inline: 14px; }
      .hero-card { background-size: 100% 100%, 100% auto; }
      .home-copy { padding-top: clamp(410px, calc(100svh - 198px), 570px); }
      .home-controls { width: min(92%, 330px); padding: 9px; }
      .hero-card .sub { font-size: 12px; }
    }
