:root {
  color-scheme: dark;
  --bg: #090506;
  --panel: #16090d;
  --panel-2: #211014;
  --red: #e9283f;
  --red-dark: #8d1020;
  --gold: #f4c76a;
  --cream: #f8ead0;
  --muted: #bca4a8;
  --line: rgba(244, 199, 106, 0.22);
  --shadow: rgba(233, 40, 63, 0.24);
  font-family: Inter, "PingFang SC", "Hiragino Sans", "Hiragino Sans GB", "Apple SD Gothic Neo", "Microsoft YaHei", Arial, sans-serif;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #301016 0, #090506 48%, #050303 100%);
  color: var(--cream);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  overflow: hidden;
}

.view {
  display: none;
  min-height: 100vh;
}

.view.is-active {
  display: block;
}

.view[hidden],
.view:not(.is-active),
#view-result.result:not(.is-active) {
  display: none !important;
}

#view-result.result.is-active {
  display: grid !important;
}

.hero {
  position: relative;
  padding: 22px clamp(18px, 4vw, 56px) clamp(26px, 4vw, 52px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 5, 6, 0.98), rgba(9, 5, 6, 0.76) 48%, rgba(45, 7, 14, 0.72)),
    linear-gradient(135deg, rgba(244, 199, 106, 0.08), transparent 38%, rgba(233, 40, 63, 0.14));
  opacity: 0.92;
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--cream);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(620px, 58vw, 910px);
  max-width: min(92vw, 910px);
  height: auto;
  object-fit: contain;
  transform: translateX(-14px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.34));
}

#result-brand-logo {
  transform: scale(1.25);
  transform-origin: left top;
  margin-left: 0;
}

html[lang="ja"] .brand-logo {
  width: clamp(786px, 82vw, 1187px);
  max-width: min(calc(100vw - 260px), 1187px);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  margin-left: auto;
}

.contact-link,
.language-toggle {
  display: inline-grid;
  justify-content: center;
  place-items: center;
  min-height: 29px;
  width: fit-content;
  max-width: max-content;
  padding: 0 5px;
  border: 1px solid rgba(244, 199, 106, 0.7);
  border-radius: 999px;
  background: rgba(48, 19, 18, 0.74);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 232, 168, 0.07);
  white-space: nowrap;
  min-width: 0;
}

.language-control {
  position: relative;
}

.contact-control {
  position: relative;
}

.contact-link {
  appearance: none;
  border: 1px solid rgba(244, 199, 106, 0.7);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.contact-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 6;
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 168px;
  padding: 6px;
  border: 1px solid rgba(244, 199, 106, 0.42);
  border-radius: 8px;
  background: rgba(24, 9, 11, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.contact-menu:not([hidden]) {
  display: grid;
}

.contact-menu a {
  min-height: 46px;
  border-radius: 6px;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: normal;
}

.contact-menu a small {
  max-width: 220px;
  color: rgba(255, 248, 232, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-menu a:hover,
.contact-menu a:focus-visible {
  background: rgba(244, 199, 106, 0.12);
  color: #ffe3a1;
}

.contact-menu a:hover small,
.contact-menu a:focus-visible small {
  color: rgba(255, 227, 161, 0.82);
}

.contact-menu a[aria-disabled="true"] {
  opacity: 0.72;
  cursor: not-allowed;
}

.language-toggle {
  grid-auto-flow: column;
  gap: 2px;
  padding: 0 5px;
  min-height: 29px;
  font-size: 13px;
}

.toggle-label {
  line-height: 1;
  font-size: 13px;
}

.toggle-label::first-letter {
  font-size: 14px;
}

.language-caret {
  font-size: 10px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.language-toggle[aria-expanded="true"] .language-caret {
  transform: rotate(180deg);
}

.globe {
  display: inline-grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
}

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

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  transform-origin: top right;
  z-index: 5;
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 100%;
  padding: 6px 0;
  border: 1px solid rgba(244, 199, 106, 0.42);
  border-radius: 8px;
  background: rgba(24, 9, 11, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.language-menu:not([hidden]) {
  display: grid;
}

.language-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  text-align: left;
  padding: 0 10px 0 5px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1;
}

.language-menu button:hover,
.language-menu button.is-active {
  background: rgba(244, 199, 106, 0.12);
  color: #ffe3a1;
}

.menu-flag {
  font-size: 19px;
  width: 1.4em;
  text-align: left;
  line-height: 1;
  transform: translateY(-1px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(440px, 620px);
  gap: clamp(34px, 4vw, 64px);
  align-items: center;
  min-height: calc(100vh - 104px);
  max-width: 1460px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-kicker-with-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(244, 199, 106, 0.42);
  color: #ffe3a1;
  text-transform: none;
}

.eyebrow span {
  color: #ffe3a1;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow em {
  color: rgba(248, 234, 208, 0.82);
  font-size: 12px;
  font-style: normal;
}

h1 {
  margin: 0;
  white-space: normal;
  max-width: 600px;
  font-size: clamp(38px, 5.1vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  margin-right: 22px;
  padding-right: 24px;
}

html[lang="ja"] .hero-copy {
  max-width: 580px;
}

html[lang="ja"] h1 {
  max-width: 620px;
  white-space: nowrap;
  font-size: clamp(36px, 4.8vw, 78px);
}

@media (min-width: 1100px) {
  html[lang="en"] h1,
  html[lang="ko"] h1 {
    white-space: nowrap;
  }

  html[lang="en"] .trust-strip {
    margin-left: -10px;
  }
}

@media (min-width: 1400px) {
  .brand-logo {
    transform: translateX(-8%);
  }

  html[lang="ja"] .brand-logo {
    width: clamp(608px, 63vw, 920px);
    max-width: min(calc(100vw - 240px), 920px);
  }

  html[lang="en"] h1 {
    max-width: 560px;
    font-size: clamp(38px, 4.2vw, 60px);
  }

  html[lang="en"] .hero-copy {
    max-width: 560px;
    margin-right: 10px;
    padding-right: 10px;
  }

  html[lang="en"] .trust-strip {
    max-width: 560px;
    gap: 4px;
    margin-left: -16px;
  }

  html[lang="en"] .trust-strip span {
    padding: 0 5px;
    font-size: 10px;
  }
}

.subtitle {
  max-width: 580px;
  margin: 24px 0 0;
  color: #f1dfe2;
}

.subtitle-main {
  display: block;
  color: #fff4e5;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1.4;
}

html[lang="ja"] .subtitle-main {
  white-space: nowrap;
  font-size: clamp(13px, 2vw, 18px);
}

html[lang="en"] .subtitle-main,
html[lang^="en-"] .subtitle-main {
  white-space: nowrap;
  line-height: 1.2;
}

.subtitle-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 5px;
  max-width: 560px;
  margin-top: 10px;
  color: #f3dde1;
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 700;
  line-height: 1.35;
}

.subtitle-signals span {
  display: inline-flex;
  align-items: center;
  flex: 1 1 48%;
  min-width: 220px;
  gap: 3px;
  white-space: normal;
}


.subtitle-signals em {
  font-style: normal;
}

.subtitle-signals b {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  line-height: 1;
}

.signal-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.trust-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 26px;
  max-width: 820px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 7px;
  border: 1px solid rgba(244, 199, 106, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(244, 199, 106, 0.11), rgba(244, 199, 106, 0.035));
  color: #fff1d1;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.badge-carousel {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(244, 199, 106, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 16, 20, 0.94), rgba(8, 4, 5, 0.96));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.featured-badge {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 190px;
  padding: 18px 22px;
}

.hero-badge-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  padding: 9px;
  border: 1px solid rgba(244, 199, 106, 0.68);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 232, 168, 0.22), rgba(130, 74, 25, 0.08)),
    rgba(13, 7, 8, 0.9);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.42));
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: inset 0 0 0 5px rgba(244, 199, 106, 0.07), inset 0 0 30px rgba(244, 199, 106, 0.12);
}

.hero-badge-frame::before,
.hero-badge-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 232, 168, 0.34);
  border-radius: 10px;
  pointer-events: none;
}

.hero-badge-frame::after {
  inset: 15px;
  border-color: rgba(244, 199, 106, 0.16);
}

.hero-badge-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: contain;
}

.stage-label {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  color: var(--gold);
}

.stage-label span {
  color: #ffe3a1;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.stage-label em {
  color: rgba(248, 234, 208, 0.74);
  font-size: 12px;
  font-style: normal;
}

.featured-badge strong {
  display: block;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.featured-badge span {
  display: block;
  margin-top: 10px;
  color: #e8d0d4;
  line-height: 1.5;
}

.intake-panel,
.modal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(33, 16, 20, 0.96), rgba(12, 6, 8, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), 0 0 34px var(--shadow);
}

.intake-panel {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
}

.field-label {
  display: grid;
  gap: 8px;
  color: #f6d9df;
  font-size: 14px;
}

.grow {
  min-width: 0;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(248, 234, 208, 0.15);
  border-radius: 8px;
  background: rgba(6, 3, 4, 0.82);
  color: var(--cream);
  outline: none;
}

input {
  min-height: 50px;
  padding: 0 15px;
}

textarea {
  min-height: 160px;
  resize: vertical;
  padding: 14px 15px;
}

input:focus,
textarea:focus {
  border-color: rgba(244, 199, 106, 0.7);
  box-shadow: 0 0 0 3px rgba(244, 199, 106, 0.12);
}

.upload-row {
  display: grid;
  grid-template-columns: 150px 28px 1fr;
  gap: 14px;
  align-items: start;
}

.upload-slot {
  display: grid;
  gap: 7px;
}

.upload-box {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 214px;
  padding: 18px;
  border: 1px dashed rgba(244, 199, 106, 0.42);
  border-radius: 8px;
  background: rgba(233, 40, 63, 0.08);
  color: var(--cream);
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.upload-box.has-file {
  border-style: solid;
  border-color: rgba(244, 199, 106, 0.82);
  background: rgba(244, 199, 106, 0.1);
  box-shadow: inset 0 0 0 1px rgba(244, 199, 106, 0.14);
}

.upload-box.is-dragging {
  border-style: solid;
  border-color: rgba(255, 232, 168, 0.96);
  background: rgba(244, 199, 106, 0.16);
  box-shadow: 0 0 0 3px rgba(244, 199, 106, 0.12), inset 0 0 0 1px rgba(244, 199, 106, 0.2);
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  font-size: 28px;
  line-height: 1;
}

.upload-box small {
  display: block;
  min-height: 18px;
  color: rgba(248, 234, 208, 0.68);
  font-size: 12px;
}

.upload-box.has-file small {
  color: #ffe3a1;
  font-weight: 700;
}

.upload-confirmation {
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 199, 106, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(244, 199, 106, 0.18), rgba(46, 141, 91, 0.13));
  box-shadow: inset 0 0 0 1px rgba(255, 232, 168, 0.08), 0 12px 28px rgba(0, 0, 0, 0.2);
}

.upload-confirmation[hidden] {
  display: none !important;
}

.upload-confirmation strong {
  color: #ffe3a1;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.upload-confirmation span {
  color: rgba(248, 234, 208, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.upload-confirmation.has-warning {
  border-color: rgba(244, 199, 106, 0.76);
  background: linear-gradient(135deg, rgba(244, 199, 106, 0.2), rgba(233, 40, 63, 0.1));
}

.input-warning {
  display: grid;
  gap: 4px;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 176, 64, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 176, 64, 0.18), rgba(233, 40, 63, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 232, 168, 0.08), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.input-warning[hidden] {
  display: none !important;
}

.input-warning strong {
  color: #ffd08a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.input-warning span {
  color: rgba(248, 234, 208, 0.86);
  font-size: 12px;
  line-height: 1.45;
}

.input-warning.is-attention {
  animation: input-warning-pulse 0.28s ease;
}

@keyframes input-warning-pulse {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

.or-line {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.unlock-inline,
.cert-actions button,
.pay-grid button {
  border: 0;
  border-radius: 8px;
  color: #fff;
}

.primary-btn {
  min-height: 54px;
  background: linear-gradient(135deg, var(--red), #a81328);
  box-shadow: 0 14px 40px var(--shadow);
  font-weight: 800;
}

.upload-success-popup {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 232, 168, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(233, 40, 63, 0.9), rgba(127, 13, 30, 0.94)),
    #a81328;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(244, 199, 106, 0.1);
  color: #fff8df;
  text-align: center;
  transform: translateY(-4px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.upload-success-popup[hidden] {
  display: none !important;
}

.upload-success-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.upload-success-popup b {
  color: #fff5c9;
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 950;
  line-height: 1.15;
}

.upload-success-popup span {
  color: rgba(255, 250, 232, 0.9);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.analysis {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background: radial-gradient(circle at center, #3a1219 0, #0a0506 55%, #030202 100%);
  z-index: 2;
}

.analysis.is-active {
  display: grid;
}

.analysis-core {
  display: grid;
  place-items: center;
  gap: 26px;
  width: min(520px, calc(100vw - 40px));
}

.pulse-ring {
  width: 180px;
  height: 180px;
  border: 1px solid rgba(244, 199, 106, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 40, 63, 0.44), rgba(233, 40, 63, 0.08) 52%, transparent 53%);
  box-shadow: 0 0 80px rgba(233, 40, 63, 0.35);
  animation: pulse 1.5s infinite ease-in-out;
}

.analysis-step {
  margin: 0;
  color: var(--cream);
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 900;
}

.analysis-detail {
  width: min(460px, 100%);
  min-height: 44px;
  margin: -10px 0 0;
  color: rgba(255, 250, 232, 0.74);
  font-size: clamp(14px, 3.2vw, 18px);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.meter span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width 0.35s ease;
}

.result {
  display: none;
  width: 100%;
  min-height: calc(100svh - 24px);
  padding: clamp(14px, 3vw, 28px);
  justify-items: center;
  gap: 12px;
}

.result.is-active {
  display: grid;
}

.result-header {
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto 14px;
}

.result-header #restart-btn {
  margin-left: auto;
  transform: none;
  margin-right: 4px;
  white-space: nowrap;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  border: 3px solid #fff6cc;
  background: linear-gradient(135deg, #ff7c4a, #ffd36f);
  box-shadow: 0 6px 16px rgba(255, 198, 96, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ghost-btn {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(244, 199, 106, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, #8d1020, #c61e35);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#result-brand-logo {
  width: min(248px, 44vw);
  max-width: 250px;
  height: auto;
  margin: 0;
  margin-left: 6px;
  transform: none;
  object-fit: contain;
}

.certificate-stage {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow-x: visible;
  padding-bottom: 0;
}

.certificate {
  display: grid;
  grid-template-columns: minmax(300px, 1.65fr) minmax(270px, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(244, 199, 106, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 4, 5, 0.96), rgba(44, 10, 16, 0.92)),
    radial-gradient(circle at 20% 0%, rgba(244, 199, 106, 0.18), transparent 32%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 6px rgba(255, 255, 255, 0.025);
}

.cert-main {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-head {
  display: grid;
  gap: 4px;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.cert-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.cert-head h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  line-height: 1.15;
}

.cert-head p,
.cert-head small {
  display: block;
  margin: 0;
  color: var(--muted);
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cert-head small {
  font-size: 15px;
}

.cert-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 14px;
}

.cert-meta div,
.metric,
.locked-report li {
  border: 1px solid rgba(244, 199, 106, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.cert-meta div {
  padding: 12px;
}

.cert-meta span,
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.cert-meta strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.2;
}

.cert-body {
  display: grid;
  grid-template-columns: minmax(190px, 232px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.relation-copy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.badge-wrap {
  position: relative;
}

.badge-wrap img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.38));
}

.level-chip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.76);
  color: var(--gold);
  font-size: 14px;
}

.interpretation h4 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3.7vw, 1.9rem);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.interpretation p:last-child {
  margin: 0;
  max-width: 100%;
  color: #f2dcdf;
  line-height: 1.7;
}

.interpretation-text-box {
  margin: 0;
  max-width: 100%;
  color: #f2dcdf;
  background: rgba(28, 10, 14, 0.52);
  border: 1px solid rgba(244, 199, 106, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.65;
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-line;
  min-height: 86px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 18px;
}

.metric {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 134px;
  padding: 14px 10px;
  text-align: center;
}

.metric-title {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.metric-icon {
  width: 30px;
  height: 30px;
  line-height: 1;
}

.metric-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.metric strong {
  color: #fff;
  font-size: 25px;
  line-height: 1.05;
}

.metric em {
  color: var(--gold);
  font-size: 14px;
  font-style: normal;
  line-height: 1.2;
}

.action-plan {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.action-plan ol,
.action-plan .action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding-left: 0;
  color: #f8e6e9;
  line-height: 1.45;
}

.action-plan li,
.action-plan p {
  color: #f8e6e9;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.action-plan .section-kicker-with-icon img {
  width: 32px;
  height: 32px;
}

.evidence-panel {
  min-height: auto;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(244, 199, 106, 0.22);
  background: rgba(6, 3, 4, 0.62);
}

.evidence-panel.frontend-hidden {
  display: none;
}

.evidence-meta {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.evidence-empty {
  margin: 8px 0 0;
  padding: 12px;
  border-radius: 6px;
  background: rgba(244, 199, 106, 0.08);
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed rgba(244, 199, 106, 0.3);
}

.table-scroll {
  overflow-x: auto;
}

.evidence-panel table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ai-judgment-flow-panel {
  margin-top: 12px;
}

.analysis-flow-summary {
  margin: 2px 0 8px;
  color: #f0d8cc;
  font-size: 12px;
  line-height: 1.45;
}

.analysis-flow-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 6px 0 4px;
}

.flow-heat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(244, 199, 106, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1;
}

.flow-heat-item strong {
  color: var(--cream);
  font-size: 12px;
}

.flow-heat-item.flow-heat-coverage {
  border-color: rgba(244, 199, 106, 0.45);
}

.flow-heat-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}

.flow-heat-dot.ai-flow {
  background: #e9283f;
}

.flow-heat-dot.pending-flow {
  background: #f4c76a;
}

.flow-heat-dot.accepted-flow {
  background: #7de59a;
}

.flow-heat-dot.rejected-flow {
  background: #ffb9c0;
}

.flow-heat-dot.human-flow {
  background: #4cc9f0;
}

.flow-heat-dot.bank-flow {
  background: #b79efc;
}

.analysis-flow-meta {
  color: var(--muted);
}

.flow-source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 199, 106, 0.36);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  font-weight: 800;
}

.flow-source-badge.ai {
  background: rgba(233, 40, 63, 0.22);
}

.flow-source-badge.bank {
  background: rgba(244, 199, 106, 0.18);
}

.flow-source-badge.missing {
  background: rgba(255, 255, 255, 0.12);
}

.flow-source-badge.pending {
  background: rgba(233, 40, 63, 0.22);
}

.evidence-panel tbody tr.is-pending {
  background: rgba(233, 40, 63, 0.08);
}

.evidence-panel tbody tr.is-accepted {
  background: rgba(125, 229, 154, 0.08);
}

.evidence-panel tbody tr.is-rejected {
  background: rgba(255, 185, 192, 0.08);
}

.flow-action-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flow-action-btn {
  min-height: 24px;
  border: 1px solid rgba(244, 199, 106, 0.35);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(48, 9, 13, 0.85);
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
}

.flow-action-btn:disabled {
  opacity: 0.55;
}

.flow-action-btn.flow-action-accept {
  border-color: rgba(60, 255, 150, 0.5);
}

.flow-action-btn.flow-action-reject {
  border-color: rgba(255, 180, 188, 0.6);
}

.flow-action-btn.flow-action-rescore {
  border-color: rgba(244, 199, 106, 0.6);
}

.ai-judgment-flow-panel tbody tr.is-missing {
  opacity: 0.72;
}

.ai-judgment-flow-panel tbody tr.is-missing td {
  color: #dfbdc2;
}

.evidence-panel th,
.evidence-panel td {
  border: 1px solid rgba(244, 199, 106, 0.18);
  color: var(--cream);
  font-size: 12px;
  text-align: left;
  padding: 8px 10px;
  vertical-align: top;
}

.evidence-panel th {
  background: rgba(244, 199, 106, 0.16);
  color: #ffe3a1;
  font-weight: 800;
  white-space: nowrap;
}

.evidence-panel tbody tr.evidence-added {
  background: rgba(233, 40, 63, 0.18);
}

.evidence-panel tbody tr.evidence-added td {
  color: #ffd2d7;
}

.evidence-panel td {
  line-height: 1.5;
  word-break: break-word;
}

.cert-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 199, 106, 0.18);
}

.seal-block {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
}

.seal {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.seal-caption {
  display: block;
  color: #f7d89b;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: nowrap;
}

.cert-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.signature {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  transform: translate(-24px, 4px);
}

.signature span {
  color: #f7d89b;
  font-family: "Apple Chancery", "Kaiti SC", "STKaiti", "KaiTi", cursive;
  font-size: 19px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-shadow: 0 1px 6px rgba(244, 199, 106, 0.28);
}

.signature img {
  max-width: 172px;
  max-height: 56px;
  object-fit: contain;
}

.locked-report {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(77, 11, 22, 0.62), rgba(7, 3, 4, 0.72));
  border: 1px solid rgba(233, 40, 63, 0.34);
}

#locked-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

.locked-report ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.locked-report li {
  display: grid;
  gap: 5px;
  padding: 12px;
  color: #fff;
}

.locked-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.locked-item-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.locked-report span,
.locked-report small {
  color: var(--muted);
  font-size: 12px;
}

.unlock-cta {
  justify-self: center;
  display: grid;
  gap: 10px;
  width: min(100%, 314px);
  margin-top: 22px;
  text-align: center;
}

.unlock-cta small {
  line-height: 1.65;
  text-align: center;
}

.unlock-inline {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 56px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--gold), var(--red));
  font-weight: 900;
}

.unlock-inline span,
.unlock-inline b {
  display: block;
  line-height: 1.15;
}

.cert-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.cert-actions button {
  min-height: 60px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(244, 199, 106, 0.2);
  color: #fff;
  font-weight: 800;
}

.cert-actions span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.result-legal-note {
  grid-column: 1 / -1;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(244, 199, 106, 0.18);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.icra-brand-mark {
  position: relative;
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.28;
  font-style: italic;
  font-family: "Times New Roman", "Georgia", serif;
  padding-right: 44px;
}

.icra-brand-mark::after {
  content: "ICRA";
  position: absolute;
  right: 0;
  top: -9px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244, 199, 106, 0.7);
  display: grid;
  place-items: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 12px;
  font-style: normal;
  color: #f4c76a;
  transform: rotate(-9deg);
}

.result-disclaimer {
  margin: 0;
  max-width: 32ch;
  color: rgba(248, 230, 233, 0.78);
  font-size: 10px;
  line-height: 1.35;
}

.result-header {
  margin-top: 0;
}

@media (max-width: 900px) {
  .result {
    padding: 12px 12px 16px;
  }

  .result-header {
    width: 100%;
    margin-bottom: 12px;
  }

  #result-brand-logo {
    width: min(188px, 42vw);
    max-width: 188px;
    margin-left: 10px;
  }

  .result-header #restart-btn {
    min-height: 29px;
    padding: 0 10px;
    font-size: 11px;
  }

  .certificate-stage {
    width: 100%;
  }

  .certificate {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .cert-actions {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: center;
    gap: 8px;
  }

  .cert-actions button {
    min-height: 56px;
    padding: 8px 8px;
    min-width: 0;
    width: auto;
  }

  .cert-actions span {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.2;
  }

  .result-legal-note {
    margin-top: 4px;
    gap: 6px;
  }

  .icra-brand-mark {
    font-size: 12px;
    letter-spacing: 0.06em;
    padding-right: 38px;
  }

  .icra-brand-mark::after {
    width: 30px;
    height: 30px;
    top: -8px;
    font-size: 10px;
  }

  .result-disclaimer {
    max-width: 100%;
    font-size: 9px;
    line-height: 1.3;
  }
}

@media (max-width: 560px) {
  .result {
    padding: 10px 9px 14px;
    min-height: 100svh;
  }

  #result-brand-logo {
    width: min(146px, calc(100vw - 118px));
  }

  .result-header #restart-btn {
    font-size: 11px;
    min-height: 30px;
    padding: 0 8px;
  }

  .certificate {
    padding: 12px;
    gap: 12px;
  }

  .certificate-stage {
    padding-bottom: 0;
  }

  .cert-head h3 {
    font-size: 1.8rem;
  }

  .cert-head p {
    font-size: 1rem;
  }

  .cert-head small {
    font-size: 12px;
  }

  .cert-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 10px;
  }

  .cert-meta div {
    padding: 10px 8px;
  }

  .cert-meta div:first-child {
    grid-column: 1 / -1;
  }

  .cert-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .relation-copy-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .badge-wrap {
    justify-self: center;
    max-width: 176px;
  }

  .badge-wrap img {
    max-width: 176px;
  }

  .interpretation h4 {
    font-size: 1.6rem;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 12px;
  }

  .metric {
    min-height: 112px;
    padding: 10px 6px;
  }

  .metric-title {
    font-size: 14px;
  }

  .metric-icon img,
  .metric-icon-large img {
    width: 26px;
    height: 26px;
  }

  .metric strong {
    font-size: 20px;
  }

  .metric em {
    font-size: 11px;
  }

  .cert-footer {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }

  .signature {
    justify-items: start;
  }

  .locked-report {
    padding: 12px;
    gap: 12px;
  }

  #locked-list {
    grid-template-columns: 1fr;
  }

  .cert-actions {
    margin-top: 2px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cert-actions button {
    min-height: 52px;
    padding: 8px 7px;
  }

  .cert-actions span {
    font-size: 9px;
    margin-top: 2px;
  }

  .result-legal-note {
    padding-top: 8px;
    margin-top: 4px;
  }

  .icra-brand-mark {
    font-size: 11px;
    padding-right: 34px;
  }

  .icra-brand-mark::after {
    width: 28px;
    height: 28px;
    font-size: 10px;
    top: -8px;
  }

  .result-disclaimer {
    max-width: 100%;
    font-size: 8px;
    line-height: 1.25;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 22px 14px 30px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(9, 5, 6, 0.86), rgba(9, 5, 6, 0.98)),
      linear-gradient(135deg, rgba(244, 199, 106, 0.08), transparent 44%, rgba(233, 40, 63, 0.12));
  }

  .hero-top {
    align-items: flex-start;
  }

  .brand-logo {
    width: clamp(463px, 85vw, 640px);
    transform: translateX(-14px);
  }

  html[lang="ja"] .brand-logo {
    width: min(1113px, calc((100vw - 220px) * 26 / 21));
    max-width: min(1113px, calc((100vw - 220px) * 26 / 21));
  }

  .header-actions {
    gap: 4px;
    margin-left: auto;
    justify-content: flex-end;
  }

  .contact-link,
  .language-toggle {
    min-height: 28px;
    padding: 0 5px;
    font-size: 12px;
  }

  .hero-top .toggle-label {
    font-size: 12px;
  }

  .language-toggle {
    min-height: 28px;
    padding: 0 5px;
    gap: 2px;
  }

  .toggle-label::first-letter {
    font-size: 13px;
  }

  .language-menu button {
    min-height: 34px;
    padding: 0 8px 0 5px;
    font-size: 13px;
    gap: 10px;
  }

  .menu-flag {
    font-size: 17px;
    width: 1.3em;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
    min-height: auto;
    padding-top: 10px;
  }

  html:not([lang="en"]):not([lang="ja"]):not([lang="ko"]) h1 {
    white-space: normal;
  }

  html[lang="en"] h1,
  html[lang^="en-"] h1 {
    white-space: nowrap;
    font-size: clamp(28px, 7vw, 56px);
  }

  html[lang="ko"] h1 {
    white-space: normal;
  }

  html[lang="ja"] h1 {
    max-width: min(100%, 720px);
    font-size: clamp(36px, 7.2vw, 58px);
    white-space: nowrap;
  }

  .subtitle-signals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-wrap: nowrap;
    gap: 6px 3px;
  }


  html[lang="ja"] .subtitle-main {
    font-size: 12px;
    letter-spacing: -0.25px;
    white-space: nowrap;
  }

  html[lang="en"] .subtitle-main,
  html[lang^="en-"] .subtitle-main {
    font-size: 11px;
    letter-spacing: -0.28px;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .subtitle-signals span {
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.2;
  }

  html[lang="en"] .subtitle-signals span,
  html[lang^="en-"] .subtitle-signals span {
    white-space: nowrap;
    min-width: 0;
  }

  .hero-side {
    margin-top: -4px;
    gap: 14px;
  }

  .subtitle-signals span {
    min-width: 0;
  }

  .subtitle-signals span:nth-of-type(3) .signal-icon {
    width: 16px;
    height: 16px;
  }

  .subtitle {
    margin: 14px 0 0;
  }

  html[lang="en"] .subtitle-main,
  html[lang^="en-"] .subtitle-main {
    font-size: 11px;
    letter-spacing: -0.28px;
  }

  html[lang="ja"] .subtitle-main {
    font-size: 12px;
    letter-spacing: -0.28px;
  }

  .trust-strip {
    flex-wrap: wrap;
  }

  .featured-badge {
    grid-template-columns: 110px 1fr;
    min-height: 156px;
  }

  .hero-badge-frame {
    width: 110px;
    height: 110px;
  }

  .upload-row {
    grid-template-columns: 1fr;
  }

  .upload-box {
    min-height: 120px;
  }

  .or-line {
    min-height: 22px;
  }

  .result-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .result-header h2 {
    text-align: left;
    margin-right: 10px;
    white-space: nowrap;
  }

  .subtitle-signals b {
    width: 16px;
    height: 16px;
  }

  .signal-icon {
    width: 15px;
    height: 15px;
  }

  .result-header #restart-btn {
    margin-left: auto;
    white-space: nowrap;
    min-height: 26px;
    padding: 0 9px;
    font-size: 10px;
  }

  .certificate {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .cert-actions {
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .cert-actions button {
    min-height: 56px;
    padding: 8px 8px;
    min-width: 0;
    width: auto;
  }

  .cert-actions span {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.2;
  }

  .result-legal-note {
    margin-top: 4px;
    gap: 6px;
  }

  .icra-brand-mark {
    font-size: 12px;
    letter-spacing: 0.06em;
    padding-right: 38px;
  }

  .icra-brand-mark::after {
    width: 30px;
    height: 30px;
    top: -8px;
    font-size: 10px;
  }

  .result-disclaimer {
    max-width: 100%;
    font-size: 9px;
    line-height: 1.3;
  }
  }
}

/* ===== 结果页重构样式（仅生效于结果页） ===== */
#view-result.result {
  width: 100%;
  min-height: 100svh;
  padding: clamp(10px, 2.2vw, 22px);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(10px, 2.2vw, 22px));
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  overflow-x: hidden;
}

#view-result.result .result-header {
  width: min(1140px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

#view-result.result #result-brand-logo {
  width: clamp(190px, 36vw, 320px);
  max-width: calc(100% - 118px);
  height: auto;
  display: block;
  margin: 0;
  margin-left: 8px;
  transform: none;
  transform-origin: left center;
}

#view-result.result .result-header #restart-btn {
  margin-left: 0;
  margin-right: 23px;
  padding: 0 12px;
  min-height: 32px;
  font-size: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 8px 20px rgba(233, 40, 63, 0.35), inset 0 0 0 1px rgba(255, 232, 168, 0.22);
}

#view-result.result .certificate-stage {
  width: min(1140px, 100%);
  display: grid;
  gap: 12px;
  overflow: hidden;
  margin: 0;
}

#view-result.result .certificate {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(244, 199, 106, 0.26);
  background:
    linear-gradient(140deg, rgba(12, 5, 6, 0.96), rgba(44, 12, 18, 0.84)),
    radial-gradient(circle at 16% -8%, rgba(244, 199, 106, 0.24), transparent 30%);
}

#view-result.result .cert-main {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

#view-result.result .cert-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1px;
}

#view-result.result .cert-head h3 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(1.52rem, 4.3vw, 2.1rem);
}

#view-result.result .cert-head p {
  margin: 0;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  line-height: 1.2;
  color: #f0d8cc;
}

#view-result.result .cert-head small {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.76rem, 1.9vw, 0.98rem);
  line-height: 1.2;
}

#view-result.result .cert-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

#view-result.result .cert-meta div {
  border: 1px solid rgba(244, 199, 106, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
}

#view-result.result .cert-meta span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

#view-result.result .cert-meta strong {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
  overflow-wrap: anywhere;
}

#view-result.result .cert-body {
  display: grid;
  grid-template-columns: minmax(180px, 232px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

#view-result.result .badge-wrap {
  justify-self: center;
}

#view-result.result .badge-wrap img {
  width: clamp(166px, 24vw, 210px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.35));
}

#view-result.result .level-chip {
  left: 12px;
  right: 12px;
  bottom: 10px;
  width: auto;
  border-radius: 10px;
  font-size: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
}

#view-result.result .badge-wrap.is-testing-stage .level-chip {
  display: none;
}

#view-result.result .badge-wrap.is-testing-stage {
  transform: translateX(-10px);
}

#view-result.result .interpretation {
  margin-top: 0;
}

#view-result.result .badge-wrap {
  margin-top: 0;
}

#view-result.result .interpretation .section-kicker {
  font-size: 18px;
  line-height: 1.05;
  position: relative;
  top: -23px;
  white-space: nowrap;
}

#view-result.result .interpretation .section-kicker-with-icon img {
  width: 29px;
  height: 29px;
}

#view-result.result .interpretation h4 {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 400;
  color: #f1dfe4;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: block;
  min-height: auto;
  white-space: normal;
}

#view-result.result .relation-copy-layout {
  min-width: 0;
  margin-left: -23px;
}

#view-result.result .relation-copy-layout > .interpretation,
#view-result.result .relation-copy-layout > .action-plan {
  min-width: 0;
}

#view-result.result .relation-copy-layout .section-kicker-with-icon {
  white-space: nowrap;
}

#view-result.result .action-plan .section-kicker {
  font-size: 18px;
  line-height: 1.05;
  position: relative;
  top: -23px;
  margin: 0 0 -1px;
  white-space: nowrap;
}

#view-result.result .interpretation-text-box {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 400;
  color: #f1dfe4;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-line;
  min-height: 90px;
  margin-right: 1px;
  transform: translateX(-4px);
}

#view-result.result .relation-copy-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#view-result.result .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

#view-result.result .metric {
  border-radius: 10px;
  border: 1px solid rgba(244, 199, 106, 0.22);
  background: rgba(0, 0, 0, 0.22);
  padding: 14px 8px 12px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 5px;
  min-height: 176px;
}

#view-result.result .metric-title {
  color: #ffe6a8;
  font-size: clamp(0.8rem, 1.9vw, 1rem);
  line-height: 1.2;
}

#view-result.result .metric-icon,
#view-result.result .metric-icon img {
  width: 28px;
  height: 28px;
}

#view-result.result .metric-icon {
  transform: translateY(-2px);
}

#view-result.result .metric-affection .metric-icon,
#view-result.result .metric-affection .metric-icon img {
  width: 56px;
  height: 56px;
}

#view-result.result .metric-affection .metric-title {
  font-size: clamp(0.8rem, 1.9vw, 1rem);
}

#view-result.result .metric strong {
  color: #fff;
  font-size: 1.48rem;
  line-height: 1.05;
  display: inline-block;
  transform: translateY(-8px);
}

#view-result.result .metric-affection strong {
  font-size: 1.42rem;
  position: relative;
  top: -6px;
}

#view-result.result .metric-affection.metric-affection-main .metric-icon,
#view-result.result .metric-affection.metric-affection-main .metric-icon img {
  width: 58px;
  height: 58px;
}

#view-result.result .metric-affection.metric-affection-main .metric-icon-initiative,
#view-result.result .metric-affection.metric-affection-main .metric-icon-initiative img {
  width: 60px;
  height: 60px;
}

#view-result.result .metric-affection.metric-affection-main .metric-icon-handsignal,
#view-result.result .metric-affection.metric-affection-main .metric-icon-handsignal img {
  width: 62px;
  height: 62px;
}

#view-result.result .metric-affection.metric-affection-main strong {
  font-size: 1.38rem;
}

#view-result.result .metric em {
  color: #fff7ee;
  font-size: 14px;
  font-style: normal;
  line-height: 1.2;
}

#view-result.result .metric-affection em {
  font-size: 14px;
}

#view-result.result .action-plan {
  border-radius: 0;
  padding: 0;
  background: transparent;
}

#view-result.result .action-plan-box {
  border: 1px solid rgba(244, 199, 106, 0.22);
  border-radius: 10px;
  background: rgba(28, 10, 14, 0.52);
  padding: 10px 12px;
  margin: 0;
  line-height: 1.4;
  font-size: 13.5px;
  color: #f1dfe4;
  min-height: 90px;
  margin-right: 1px;
  transform: translateX(-4px);
}

#view-result.result .action-plan ol,
#view-result.result .action-list {
  display: block;
  width: 100%;
  margin: 0;
  padding-left: 0;
  gap: 0;
  color: #f1dfe4;
  line-height: 1.45;
  font-size: 13.5px;
}

#view-result.result #action-list {
  display: block !important;
  width: 100% !important;
  gap: 0 !important;
  margin: 0 !important;
  padding-left: 0 !important;
  color: #f1dfe4;
  font-size: 13.5px;
  line-height: 1.4;
}

#view-result.result .action-plan li,
#view-result.result .action-plan p,
#view-result.result #action-list li {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  min-width: auto;
  white-space: normal;
  word-break: break-word;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 400;
}

#view-result.result .action-plan li:last-child,
#view-result.result .action-plan p:last-child,
#view-result.result #action-list li:last-child {
  margin-bottom: 0;
}

#view-result.result .interpretation h4:empty {
  display: none;
  margin: 0;
}

#view-result.result .action-plan .section-kicker-with-icon img {
  width: 29px;
  height: 29px;
}

#view-result.result .action-plan li,
#view-result.result .action-plan p {
  color: #f1dfe4;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 400;
}

#view-result.result .section-kicker {
  font-size: 13px;
}

#view-result.result .section-kicker-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#view-result.result .section-kicker-with-icon img {
  width: 16px;
  height: 16px;
}

#view-result.result .cert-footer {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(180px, 220px);
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 199, 106, 0.2);
}

#view-result.result .seal-block {
  justify-self: start;
}

#view-result.result .seal {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

#view-result.result .seal-caption {
  font-size: 14px;
}

#view-result.result .signature {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  transform: translate(-32px, 4px);
}

#view-result.result .signature img {
  max-width: 177px;
  max-height: 58px;
  object-fit: contain;
}

#view-result.result .locked-report {
  display: grid;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(233, 40, 63, 0.3);
  background: linear-gradient(180deg, rgba(69, 12, 22, 0.72), rgba(6, 2, 3, 0.78));
  padding: 14px;
}

#view-result.result .locked-report ul,
#view-result.result .locked-report li {
  display: grid;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#view-result.result .locked-report li {
  border-radius: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(244, 199, 106, 0.16);
}

#view-result.result #locked-list {
  grid-template-columns: max-content max-content max-content;
  align-items: start;
  justify-content: start;
  gap: 8px;
}

#view-result.result #locked-list > li:not(.locked-item-signal-card) {
  grid-column: 1 / -1;
}

#view-result.result .locked-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #f8e6e9;
  font-size: 13px;
  line-height: 1.3;
}

#view-result.result .locked-item-kiss-row {
  display: grid;
  grid-template-columns: auto max-content auto;
  align-items: center;
  justify-content: start;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  padding-right: 6px;
  gap: 2px !important;
  position: relative;
  overflow: visible;
  border: 2px solid rgba(244, 199, 106, 0.52);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 231, 238, 0.12) inset,
    0 0 12px rgba(244, 199, 106, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.24);
}

#view-result.result .locked-item-signal-card[data-unlock-trigger],
#view-result.result .download-certificate-card,
#view-result.result .share-to-her-card {
  cursor: pointer;
}

#view-result.result .locked-item-signal-card.is-unlocked {
  cursor: default;
  border-color: rgba(110, 213, 154, 0.48);
  background: rgba(255, 255, 255, 0.07);
}

#view-result.result .locked-item-signal-card.is-unlocked .locked-item-kiss-detail {
  color: rgba(255, 247, 235, 0.88);
  line-height: 1.42;
}

#view-result.result .locked-item-signal-card.is-unlocked .locked-item-kiss-detail > span {
  white-space: normal;
}

#view-result.result .download-certificate-card {
  min-width: 218px;
  padding-right: 10px;
}

#view-result.result .share-to-her-card {
  border-color: rgba(255, 143, 176, 0.78);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 143, 176, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 95, 127, 0.14), rgba(0, 0, 0, 0.15));
  box-shadow:
    0 0 0 1px rgba(255, 231, 238, 0.2) inset,
    0 0 16px rgba(255, 95, 127, 0.24),
    0 8px 22px rgba(0, 0, 0, 0.24);
}

#view-result.result .locked-item-signal-card[data-unlock-trigger]:focus-visible,
#view-result.result .download-certificate-card:focus-visible,
#view-result.result .share-to-her-card:focus-visible {
  outline: 2px solid rgba(255, 232, 168, 0.84);
  outline-offset: 3px;
}

#view-result.result .download-certificate-card .locked-item-kiss-title {
  font-size: 20px !important;
}

#view-result.result .share-to-her-card .locked-item-kiss-title {
  color: #fff4f8 !important;
  text-shadow:
    0 1px 2px rgba(255, 238, 245, 0.95),
    0 0 14px rgba(255, 143, 176, 0.78),
    0 0 24px rgba(244, 199, 106, 0.42);
}

#view-result.result .share-to-her-card > .locked-kiss-lock {
  filter:
    drop-shadow(0 0 8px rgba(255, 143, 176, 0.55))
    drop-shadow(0 1px 1px rgba(244, 199, 106, 0.4));
}

#view-result.result .locked-item-kiss-row > .locked-item-icon {
  margin-left: -9px !important;
  width: 33px !important;
  height: 33px !important;
  transform: translateY(-4px);
}

#view-result.result .locked-item-kiss-content {
  display: grid;
  gap: 22px !important;
  justify-items: center;
  text-align: center;
  min-width: 0;
  min-height: 38px !important;
  margin-top: 4px !important;
}

#view-result.result .locked-item-kiss-title {
  display: inline-flex;
  line-height: 1.05 !important;
  font-size: 19px !important;
  font-family: "Apple Chancery", "Comic Sans MS", "Kaiti SC", "PingFang SC", cursive;
  color: #fffdf8 !important;
  letter-spacing: 1px;
  font-weight: 700;
  text-shadow:
    0 1px 2px rgba(255, 238, 245, 0.92),
    0 0 12px rgba(255, 228, 240, 0.7),
    0 0 20px rgba(255, 255, 255, 0.5);
}

#view-result.result .locked-item-kiss-detail {
  display: block;
  grid-template-columns: none;
  align-items: center;
  gap: 4px !important;
  color: #f8e6e9;
  font-size: 14px !important;
  line-height: 1.35 !important;
  margin-top: -20px !important;
  margin-left: 0 !important;
}

#view-result.result .locked-item-kiss-detail .locked-lock {
  width: 52px !important;
  height: 52px !important;
}

#view-result.result .locked-item-kiss-row > .locked-kiss-lock {
  width: 40px !important;
  height: 40px !important;
  margin-left: 2px !important;
  align-self: center;
  justify-self: start;
}

#view-result.result .locked-item-kiss-detail > span {
  transform: none;
  font-size: 12px !important;
}

#view-result.result .download-certificate-card.is-processing,
#view-result.result .share-to-her-card.is-processing {
  cursor: wait !important;
  opacity: 0.78 !important;
  filter: saturate(0.85) !important;
}

#view-result.result .certificate-action-feedback {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(244, 199, 106, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  color: #f8e6e9;
  font-size: 12px;
  line-height: 1.45;
}

#view-result.result .certificate-action-feedback[hidden] {
  display: none !important;
}

#view-result.result .certificate-action-feedback.is-success {
  border-color: rgba(110, 213, 154, 0.62);
  color: #d8ffe4;
}

#view-result.result .certificate-action-feedback.is-error {
  border-color: rgba(239, 123, 136, 0.72);
  color: #ffd5dc;
}

#view-result.result .certificate-action-feedback a,
#view-result.result .certificate-action-feedback button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 6px;
  border: 1px solid rgba(244, 199, 106, 0.48);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(244, 199, 106, 0.1);
  color: #ffe6a8;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

#view-result.result .locked-item-icon {
  width: 23px;
  height: 23px;
}

#view-result.result .locked-item span {
  overflow-wrap: anywhere;
}

#view-result.result .locked-lock {
  margin-left: auto;
  width: 38px;
  height: 38px;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
  border: 0;
  filter: drop-shadow(0 1px 1px rgba(244, 199, 106, 0.4));
}

#view-result.result .unlock-cta {
  margin-top: 10px;
  width: min(100%, 360px);
  justify-self: center;
  display: grid;
  gap: 8px;
  text-align: center;
}

#view-result.result .unlock-inline {
  min-height: 58px;
  padding: 10px 12px;
  font-size: 15px;
}

#view-result.result .unlock-inline span,
#view-result.result .unlock-inline b {
  display: block;
  line-height: 1.2;
}

#view-result.result .unlock-inline b {
  color: #1a1308;
  margin-top: 2px;
}

#view-result.result .cert-actions {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#view-result.result .cert-actions button {
  min-height: 58px;
  padding: 9px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 199, 106, 0.28);
  color: #fff;
  font-weight: 800;
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
}

#view-result.result .cert-actions span {
  margin-top: 0;
  display: block;
  color: var(--muted);
  line-height: 1.2;
  font-size: 11px;
}

#view-result.result .result-legal-note {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(244, 199, 106, 0.16);
  padding-top: 8px;
  margin-top: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

#view-result.result .icra-brand-mark {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #f7d89b;
  line-height: 1.25;
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  padding-right: 44px;
  position: relative;
}

#view-result.result .icra-brand-mark::after {
  content: "ICRA";
  position: absolute;
  right: 0;
  top: -9px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(244, 199, 106, 0.7);
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: normal;
  color: #f4c76a;
  transform: rotate(-8deg);
}

#view-result.result .result-disclaimer {
  margin: 0;
  color: rgba(248, 230, 233, 0.78);
  font-size: 9px;
  max-width: 52ch;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  #view-result.result .certificate {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
  }

  #view-result.result .cert-head h3 {
    font-size: clamp(1.48rem, 4.4vw, 1.86rem);
  }
}

@media (max-width: 960px) {
  #view-result.result .result-header {
    gap: 8px;
  }

  #view-result.result #result-brand-logo {
    width: clamp(220px, 58vw, 300px);
  }

  #view-result.result .certificate {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }

  #view-result.result .cert-actions button {
    min-height: 54px;
    padding: 8px 6px;
  }

  #view-result.result .locked-item-icon {
    width: 53px;
    height: 53px;
  }

  #view-result.result .locked-item-kiss-row > .locked-item-icon {
    width: 57px !important;
    height: 57px !important;
  }

  #view-result.result .cert-actions span {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  #view-result.result {
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 8px 10px;
    gap: 8px;
    align-content: start;
  }

  #view-result.result .result-header {
    width: 100%;
    align-items: center;
  }

  #view-result.result #result-brand-logo {
    width: clamp(210px, 70vw, 270px);
    max-width: calc(100% - 66px);
  }

  #view-result.result .result-header #restart-btn {
    padding: 0 9px;
    font-size: 10px;
    min-height: 30px;
    border-radius: 999px;
  }

  #view-result.result .certificate-stage {
    gap: 8px;
  }

  #view-result.result .certificate {
    padding: 10px;
    gap: 8px;
  }

  #view-result.result .cert-main {
    padding: 10px;
    gap: 10px;
  }

  #view-result.result .cert-head h3 {
    font-size: 1.44rem;
    line-height: 1.2;
  }

  #view-result.result .cert-head p {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  #view-result.result .cert-head small {
    font-size: 0.79rem;
    line-height: 1.2;
  }

  #view-result.result .cert-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  #view-result.result .cert-meta div:first-child {
    grid-column: 1 / -1;
  }

  #view-result.result .cert-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #view-result.result .relation-copy-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-left: -23px;
  }

  #view-result.result .action-plan ol,
  #view-result.result .action-list {
    width: 100% !important;
    gap: 0 !important;
  }

  #view-result.result #action-list {
    width: 100% !important;
    gap: 0 !important;
    padding-left: 0 !important;
  }

  #view-result.result .badge-wrap img {
    width: 168px;
  }

#view-result.result .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
  }

  #view-result.result .metric {
    padding: 12px 6px;
    min-height: 150px;
    gap: 6px;
  }

#view-result.result .metric-title {
    font-size: 14px;
  }

#view-result.result .metric-icon,
#view-result.result .metric-icon img,
#view-result.result .metric-icon-large img {
  width: 42px;
  height: 42px;
}

#view-result.result .metric-affection.metric-affection-main .metric-icon-initiative,
#view-result.result .metric-affection.metric-affection-main .metric-icon-initiative img {
  width: 44px;
  height: 44px;
}

#view-result.result .metric-affection.metric-affection-main .metric-icon-handsignal,
#view-result.result .metric-affection.metric-affection-main .metric-icon-handsignal img {
  width: 46px;
  height: 46px;
}

#view-result.result .metric strong {
    font-size: 21px;
    transform: translateY(-6px);
  }

#view-result.result .metric em {
    color: #fff7ee;
    font-size: 13px;
  }

  #view-result.result .cert-footer {
    grid-template-columns: minmax(255px, 1fr) minmax(150px, 180px);
    gap: 10px;
    padding-top: 8px;
  }

  #view-result.result .seal {
    width: 72px;
    height: 72px;
  }

  #view-result.result .seal-caption {
    font-size: 11px;
  }

  #view-result.result .locked-report {
    padding: 10px;
    gap: 8px;
  }

  #view-result.result .locked-item {
    font-size: 12px;
  }

  #view-result.result .locked-lock {
    width: 36px;
    height: 36px;
  }

  #view-result.result .cert-actions {
    gap: 8px;
  }

  #view-result.result .cert-actions button {
    min-height: 50px;
    padding: 7px 6px;
  }

  #view-result.result .cert-actions span {
    font-size: 9px;
  }

  #view-result.result .unlock-inline {
    min-height: 52px;
    font-size: 14px;
  }

  #view-result.result .unlock-inline span,
  #view-result.result .unlock-inline b {
    line-height: 1.15;
  }

  #view-result.result .result-legal-note {
    gap: 5px;
    padding-top: 8px;
  }

  #view-result.result .icra-brand-mark {
    font-size: 11px;
    padding-right: 34px;
  }

  #view-result.result .icra-brand-mark::after {
    width: 28px;
    height: 28px;
    top: -8px;
    font-size: 10px;
  }

  #view-result.result .result-disclaimer {
    max-width: 100%;
    font-size: 8px;
    line-height: 1.26;
  }

  .subtitle-signals span:nth-of-type(3) .signal-icon {
    width: 16px;
    height: 16px;
  }

  #view-result.result .cert-head h3 {
    font-size: 5.76rem;
  }

  #view-result.result .cert-head p {
    font-size: 3.8rem;
  }

  #view-result.result .cert-head small {
    font-size: 2.88rem;
  }

  #view-result.result .cert-meta span {
    font-size: 44px;
    line-height: 1.25;
  }

  #view-result.result .cert-meta strong {
    font-size: 56px;
    line-height: 1.2;
  }

  #view-result.result .interpretation h4,
  #view-result.result .section-kicker {
    font-size: 4.2rem;
  }

  #view-result.result .section-kicker-with-icon img {
    width: 56px;
    height: 56px;
  }

  #view-result.result .interpretation-text-box,
  #view-result.result .action-plan-box,
  #view-result.result .action-plan li,
  #view-result.result .action-plan p,
  #view-result.result #action-list li,
  #view-result.result #action-list {
    font-size: 54px;
    line-height: 1.45;
  }

  #view-result.result .metric-title {
    font-size: 56px;
    line-height: 1.3;
  }

  #view-result.result .metric-icon,
  #view-result.result .metric-icon img,
  #view-result.result .metric-icon-large img {
    width: 72px;
    height: 72px;
  }

  #view-result.result .metric-affection.metric-affection-main .metric-icon,
  #view-result.result .metric-affection.metric-affection-main .metric-icon img {
    width: 120px;
    height: 120px;
  }

  #view-result.result .metric strong {
    font-size: 6rem;
  }

  #view-result.result .metric em,
  #view-result.result .metric-affection em {
    font-size: 44px;
  }

#view-result.result .locked-item {
  font-size: 40px;
  gap: 20px;
}

#view-result.result .locked-item-icon {
  width: 77px;
  height: 77px;
}

#view-result.result .locked-item-kiss-row {
  gap: 0px !important;
}

#view-result.result .locked-item-kiss-row > .locked-item-icon {
  margin-left: -16px !important;
  width: 87px !important;
  height: 87px !important;
}

#view-result.result .locked-item-kiss-title {
  font-size: 44px !important;
}

#view-result.result .download-certificate-card .locked-item-kiss-title {
  font-size: 46px !important;
}

#view-result.result .locked-item-kiss-detail {
  font-size: 38px !important;
  margin-top: -24px !important;
  margin-left: 0 !important;
  gap: 4px !important;
}

#view-result.result .locked-item-kiss-detail .locked-lock {
  width: 56px !important;
  height: 56px !important;
}

#view-result.result .locked-item-kiss-row > .locked-kiss-lock {
  width: 44px !important;
  height: 44px !important;
  margin-left: 2px !important;
}

#view-result.result .locked-item-kiss-detail > span {
  font-size: 36px !important;
}

  #view-result.result .locked-report .unlock-inline {
    min-height: 58px;
  }

  #view-result.result .unlock-inline span,
  #view-result.result .unlock-inline b {
    font-size: 4rem;
  }

  #view-result.result .cert-actions button {
    min-height: 112px;
  }

  #view-result.result .cert-actions span {
    font-size: 36px;
  }

  #view-result.result .result-disclaimer {
    font-size: 32px;
    line-height: 1.4;
    max-width: 100%;
  }

  #view-result.result .cert-head,
  #view-result.result .cert-meta,
  #view-result.result .relation-copy-layout,
  #view-result.result .metric-grid,
  #view-result.result .locked-item {
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.2);
  }

  #view-result.result .cert-head h3,
  #view-result.result .cert-head p,
  #view-result.result .cert-head small,
  #view-result.result .cert-meta strong,
  #view-result.result .interpretation h4,
  #view-result.result .section-kicker-with-icon span,
  #view-result.result .action-plan li,
  #view-result.result .action-plan p,
  #view-result.result #action-list li,
  #view-result.result .metric-title,
  #view-result.result .metric strong,
  #view-result.result .metric em,
  #view-result.result .locked-report span,
  #view-result.result .cert-actions button {
    font-family: "Kaiti SC", "STKaiti", "KaiTi", "PingFang SC", serif;
    letter-spacing: 0.04em;
    font-style: italic;
  }
}

/* ===== 结果页视觉微调：再优雅一点 ===== */
#view-result.result {
  background:
    radial-gradient(circle at 50% -8%, rgba(244, 199, 106, 0.11), transparent 56%),
    radial-gradient(circle at 0% 100%, rgba(233, 40, 63, 0.14), transparent 38%);
}

#view-result.result .result-header #restart-btn {
  border: 1px solid rgba(244, 199, 106, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244, 199, 106, 0.17), rgba(233, 40, 63, 0.28));
  color: #ffe8c7;
  border: 1px solid rgba(244, 199, 106, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#view-result.result .result-header #restart-btn:active {
  transform: translateY(1px);
}

#view-result.result .certificate {
  border: 1px solid rgba(244, 199, 106, 0.36);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

#view-result.result .cert-main {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(244, 199, 106, 0.23);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 168, 0.06);
}

#view-result.result .cert-main > * {
  position: relative;
  z-index: 1;
}

#view-result.result .cert-main::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 8px;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='86' height='86' viewBox='0 0 86 86'%3E%3Cg fill='none' stroke='%23f4c76a' stroke-opacity='.36' stroke-width='1.15' stroke-linecap='round'%3E%3Cpath d='M8 44 C8 24 24 8 44 8'/%3E%3Cpath d='M8 58 C8 30 30 8 58 8' stroke-opacity='.2'/%3E%3C/g%3E%3Cpath d='M32 27 C32 21 40 21 43 27 C46 21 54 21 54 27 C54 35 43 41 43 41 C43 41 32 35 32 27Z' fill='none' stroke='%23ffe6a8' stroke-opacity='.48' stroke-width='1.2'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='86' height='86' viewBox='0 0 86 86'%3E%3Cg transform='translate(86 0) scale(-1 1)'%3E%3Cg fill='none' stroke='%23f4c76a' stroke-opacity='.36' stroke-width='1.15' stroke-linecap='round'%3E%3Cpath d='M8 44 C8 24 24 8 44 8'/%3E%3Cpath d='M8 58 C8 30 30 8 58 8' stroke-opacity='.2'/%3E%3C/g%3E%3Cpath d='M32 27 C32 21 40 21 43 27 C46 21 54 21 54 27 C54 35 43 41 43 41 C43 41 32 35 32 27Z' fill='none' stroke='%23ffe6a8' stroke-opacity='.48' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='86' height='86' viewBox='0 0 86 86'%3E%3Cg transform='translate(0 86) scale(1 -1)'%3E%3Cg fill='none' stroke='%23f4c76a' stroke-opacity='.36' stroke-width='1.15' stroke-linecap='round'%3E%3Cpath d='M8 44 C8 24 24 8 44 8'/%3E%3Cpath d='M8 58 C8 30 30 8 58 8' stroke-opacity='.2'/%3E%3C/g%3E%3Cpath d='M32 27 C32 21 40 21 43 27 C46 21 54 21 54 27 C54 35 43 41 43 41 C43 41 32 35 32 27Z' fill='none' stroke='%23ffe6a8' stroke-opacity='.48' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='86' height='86' viewBox='0 0 86 86'%3E%3Cg transform='translate(86 86) scale(-1 -1)'%3E%3Cg fill='none' stroke='%23f4c76a' stroke-opacity='.36' stroke-width='1.15' stroke-linecap='round'%3E%3Cpath d='M8 44 C8 24 24 8 44 8'/%3E%3Cpath d='M8 58 C8 30 30 8 58 8' stroke-opacity='.2'/%3E%3C/g%3E%3Cpath d='M32 27 C32 21 40 21 43 27 C46 21 54 21 54 27 C54 35 43 41 43 41 C43 41 32 35 32 27Z' fill='none' stroke='%23ffe6a8' stroke-opacity='.48' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E");
  background-position: left top, right top, left bottom, right bottom;
  background-repeat: no-repeat;
  background-size: 90px 90px;
  opacity: 0.88;
}

#view-result.result .section-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(244, 199, 106, 0.16);
  color: #f1d59b;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 800;
}

#view-result.result .section-kicker::after {
  content: "";
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 199, 106, 0), rgba(244, 199, 106, 0.32), rgba(244, 199, 106, 0));
}

#view-result.result .cert-head h3 {
  background: linear-gradient(180deg, #fff1bc 0%, #f4c76a 58%, #d98532 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Songti SC", "Kaiti SC", "STKaiti", "PingFang SC", serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 16px rgba(244, 199, 106, 0.18);
}

#view-result.result .cert-head p {
  color: #f6d9aa;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 10px rgba(244, 199, 106, 0.16);
}

#view-result.result .cert-head small {
  color: rgba(248, 218, 170, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0.02em;
}

#view-result.result .metric {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#view-result.result .metric-title {
  color: #ffe6a8;
  font-family: "Apple Chancery", "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 10px rgba(255, 230, 168, 0.34);
}

#view-result.result .metric strong {
  background: linear-gradient(180deg, #fff4bd 0%, #f4c76a 48%, #e57f31 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "PingFang SC", sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 18px rgba(244, 199, 106, 0.28);
}

#view-result.result .metric em {
  color: #fff7ee;
  font-family: "Songti SC", "Kaiti SC", "STKaiti", serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(244, 199, 106, 0.18);
}

#view-result.result .metric-affection-main {
  position: relative;
  overflow: hidden;
}

#view-result.result .metric-affection-main::before,
#view-result.result .metric-affection-main::after {
  content: "↠";
  position: absolute;
  top: 48%;
  width: 46px;
  height: 18px;
  border: 0;
  color: #ffe6a8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 220, 140, 0.5);
  opacity: 0.9;
  pointer-events: none;
}

#view-result.result .metric-affection-main::before {
  left: 7px;
  transform: translateY(-50%) rotate(-18deg);
}

#view-result.result .metric-affection-main::after {
  right: 7px;
  text-align: right;
  transform: translateY(-50%) rotate(198deg);
}

#view-result.result .relation-copy-layout .section-kicker-with-icon span {
  color: #f7d89b;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 8px rgba(244, 199, 106, 0.22);
}

#view-result.result .interpretation-text-box,
#view-result.result .action-plan-box,
#view-result.result .action-plan li,
#view-result.result .action-plan p,
#view-result.result #action-list li {
  color: #f8d8c8;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(233, 40, 63, 0.16);
}

#view-result.result .locked-report {
  border: 1px solid rgba(244, 199, 106, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

#view-result.result .locked-report li {
  border-color: rgba(244, 199, 106, 0.22);
  background: rgba(0, 0, 0, 0.18);
}

#view-result.result .locked-report li.share-to-her-card {
  border-color: rgba(255, 143, 176, 0.78);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 143, 176, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 95, 127, 0.14), rgba(0, 0, 0, 0.15));
}

#view-result.result .cert-actions button {
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(244, 199, 106, 0.34);
}

#view-result.result .cert-actions button:hover {
  background: linear-gradient(150deg, rgba(233, 40, 63, 0.35), rgba(255, 255, 255, 0.05));
}

#view-result.result .cert-actions button:nth-child(3) {
  background: linear-gradient(135deg, #f4c76a, #e47f24);
  color: #2b0c10;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 24px rgba(233, 40, 63, 0.3);
}

#view-result.result .cert-actions button:nth-child(3) span,
#view-result.result .cert-actions button:nth-child(3) b {
  color: inherit;
}

#view-result.result .unlock-inline {
  border-radius: 12px;
  background: linear-gradient(135deg, #f4c76a, #f0b84a);
  color: #2a0d14;
  box-shadow: 0 16px 40px rgba(244, 199, 106, 0.3);
}

#view-result.result .unlock-inline b {
  color: #2a0d14;
}

#view-result.result .unlock-inline span {
  color: rgba(51, 25, 14, 0.8);
}

#view-result.result .result-disclaimer {
  max-width: 60ch;
  opacity: 0.92;
}

@media (max-width: 560px) {
  #view-result.result .cert-meta {
    gap: 6px;
  }

  #view-result.result .cert-actions {
    gap: 6px;
  }

  #view-result.result .cert-actions button {
    min-height: 48px;
    border-radius: 10px;
  }

  #view-result.result .cert-actions span {
    font-size: 9px;
    line-height: 1.16;
  }

  #view-result.result .unlock-cta {
    width: min(100%, 100%);
  }
}

/* ===== 结果页对齐收口（移动端稳态优先） ===== */
#view-result.result {
  box-sizing: border-box;
}

#view-result.result * {
  box-sizing: border-box;
}

#view-result.result,
#view-result.result .certificate-stage,
#view-result.result .certificate {
  width: min(100%, 100%);
}

#view-result.result .result-header {
  width: min(100%, calc(100vw - 24px));
  margin-inline: auto;
  padding-right: 0;
  box-sizing: border-box;
}

#view-result.result #result-brand-logo {
  flex: 1 1 auto;
  min-width: 0;
  width: clamp(220px, 40vw, 340px);
  max-width: calc(100% - 120px);
}

#view-result.result .result-header #restart-btn {
  flex: 0 0 auto;
  max-width: 30vw;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 700px) {
  #view-result.result {
    padding-left: 10px;
    padding-right: 10px;
  }

  #view-result.result .result-header {
    width: 100%;
    gap: 8px;
  }

  #view-result.result #result-brand-logo {
    width: clamp(190px, 64vw, 270px);
    max-width: calc(100% - 74px);
    margin-left: 10px;
  }

  #view-result.result .certificate {
    width: 100%;
    margin-inline: 0;
    padding-inline: 10px;
  }

  #view-result.result .result-header #restart-btn {
    margin-right: 27px;
  }

  #view-result.result .cert-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  #view-result.result .cert-actions button {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-wrap: wrap;
  }

  #view-result.result .cert-actions b,
  #view-result.result .cert-actions span {
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 430px) {
  #view-result.result .result-header #restart-btn {
    max-width: 78px;
    margin-right: 29px;
    transform: translateX(-33.3333%) !important;
  }

  #view-result.result #result-brand-logo {
    width: clamp(220px, 74vw, 300px);
    max-width: calc(100% - 54px);
    transform: translateX(8px);
  }

  #view-result.result .cert-main,
  #view-result.result .cert-body,
  #view-result.result .locked-report,
  #view-result.result .result-legal-note {
    width: 100%;
  }

  #view-result.result .metric-grid,
  #view-result.result .cert-actions {
    width: 100%;
  }
}

#view-result.result .locked-report .unlock-cta {
  order: -1;
  justify-self: center;
  width: min(100%, calc(100% - 8px));
  margin: 0 0 2px;
  gap: 4px;
}

#view-result.result .locked-report .unlock-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.1vw, 15px);
  width: 100%;
  min-height: 58px;
  padding: 6px 14px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 232, 240, 0.82);
  background:
    radial-gradient(circle at 18px 50%, rgba(255, 255, 255, 0.82) 0 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 18px) 50%, rgba(255, 255, 255, 0.82) 0 4px, transparent 5px),
    linear-gradient(135deg, #f2a5b7 0%, #cf6b8b 48%, #8b3453 100%);
  color: #fff;
  box-shadow:
    0 18px 38px rgba(147, 48, 82, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 -12px 22px rgba(72, 17, 43, 0.16);
}

#view-result.result .locked-report .unlock-inline::before {
  content: "♡";
  position: absolute;
  left: 10px;
  top: 5px;
  color: rgba(255, 246, 249, 0.9);
  font: 900 15px "Chalkboard SE", "Comic Sans MS", "Trebuchet MS", cursive;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(99, 0, 42, 0.22);
}

#view-result.result .locked-report .unlock-inline::after {
  content: "♡";
  position: absolute;
  right: 10px;
  bottom: 5px;
  color: rgba(255, 246, 249, 0.9);
  font: 900 15px "Chalkboard SE", "Comic Sans MS", "Trebuchet MS", cursive;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(99, 0, 42, 0.22);
}

#view-result.result .locked-report .unlock-inline span {
  min-width: 0;
  color: #fffdf7;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(26px, 2.22vw, 31px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 246, 236, 0.75),
    0 2px 1px rgba(86, 8, 38, 0.5),
    0 4px 8px rgba(86, 8, 38, 0.28);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

#view-result.result .locked-report .unlock-inline b {
  min-width: 0;
  display: inline-block;
  padding-right: 66px;
  color: #fffdf7;
  font-family: "Chalkboard SE", "Comic Sans MS", "Marker Felt", "Trebuchet MS", "PingFang SC", cursive;
  font-size: clamp(35px, 2.92vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 246, 236, 0.75),
    0 2px 1px rgba(86, 8, 38, 0.48),
    0 4px 8px rgba(86, 8, 38, 0.24);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

#view-result.result .locked-report .unlock-inline b::before {
  content: none;
}

#view-result.result .locked-report .unlock-inline b::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  background: url("./assets/reference/heart-lock.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 7px rgba(83, 0, 34, 0.24));
}

html[lang="ko"] #view-result.result .locked-report .unlock-inline span {
  flex: 0 1 58%;
  max-width: 58%;
  transform: scaleX(0.82);
  transform-origin: left center;
}

html[lang="ko"] #view-result.result .locked-report .unlock-inline b {
  margin-left: -28px;
}

@media (max-width: 560px) {
  #view-result.result .locked-report .unlock-inline {
    flex-wrap: wrap;
    min-height: 68px;
    padding-block: 7px;
    row-gap: 0;
  }

  #view-result.result .locked-report .unlock-inline span {
    font-size: 25px;
  }

  #view-result.result .locked-report .unlock-inline b {
    font-size: 35px;
  }
}

#view-result.result .locked-report .unlock-cta small {
  display: block;
  color: rgba(248, 230, 233, 0.78);
  font-size: clamp(10px, 1.32vw, 13px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
}

html[lang="en"] #view-result.result .locked-report .unlock-cta {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
}

html[lang="en"] #view-result.result .locked-report .unlock-inline {
  max-width: 100%;
  gap: clamp(6px, 0.72vw, 10px);
  padding-inline: 10px;
}

html[lang="en"] #view-result.result .locked-report .unlock-inline span {
  flex: 1 1 auto;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.45vw, 25px);
}

html[lang="en"] #view-result.result .locked-report .unlock-inline b {
  flex: 0 1 auto;
  padding-right: 42px;
  font-size: clamp(25px, 2vw, 34px);
}

html[lang="en"] #view-result.result .locked-report .unlock-inline b::after {
  right: 2px;
  width: 34px;
  height: 34px;
}

html[lang="en"] #view-result.result .locked-report .unlock-cta small {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(9px, 0.82vw, 12px);
  line-height: 1.15;
}

html[lang="en"] #view-result.result #locked-list {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
}

html[lang="en"] #view-result.result #locked-list > .locked-item-signal-card {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  grid-template-columns: minmax(24px, auto) minmax(0, 1fr) minmax(34px, auto);
  padding: 8px 6px;
  overflow: hidden;
}

html[lang="en"] #view-result.result #locked-list > .download-certificate-card {
  min-width: 0;
  padding-right: 6px;
}

html[lang="en"] #view-result.result .locked-item-kiss-content {
  min-width: 0;
  gap: 20px !important;
}

html[lang="en"] #view-result.result .locked-item-kiss-title {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: clamp(15px, 1vw, 18px) !important;
  line-height: 1.08 !important;
}

html[lang="en"] #view-result.result .download-certificate-card .locked-item-kiss-title {
  font-size: clamp(16px, 1.04vw, 19px) !important;
}

html[lang="en"] #view-result.result .locked-item-kiss-detail > span {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 11px !important;
}

/* Result page iPhone portrait top bar only. */
@media screen and (max-width: 700px) and (orientation: portrait) {
  #view-result.result .result-header {
    width: min(100%, calc(100vw - 32px)) !important;
    margin: 0 auto 10px !important;
    padding: 0 !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
  }

  #view-result.result #result-brand-logo {
    width: clamp(210px, 62vw, 236px) !important;
    max-width: calc(100% - 104px) !important;
    margin-left: 6px !important;
    transform: none !important;
  }

  #view-result.result .result-header #restart-btn {
    width: 92px !important;
    max-width: 92px !important;
    min-height: 40px !important;
    margin-right: 0 !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    transform: none !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

/* Result page iPhone portrait certificate scale only. */
@supports (zoom: 1) {
  @media screen and (max-width: 700px) and (orientation: portrait) {
    #view-result.result {
      overflow-x: hidden !important;
    }

    #view-result.result .certificate-stage {
      width: min(100%, calc(100vw - 24px)) !important;
      max-width: calc(100vw - 24px) !important;
      margin-inline: auto !important;
      overflow: visible !important;
    }

    #view-result.result .certificate {
      width: 128.205% !important;
      max-width: none !important;
      margin-left: -14.1025% !important;
      margin-right: 0 !important;
      zoom: 0.78;
    }
  }

  @media screen and (max-width: 430px) and (orientation: portrait) {
    #view-result.result .certificate {
      width: 135.135% !important;
      margin-left: -17.5675% !important;
      zoom: 0.74;
    }
  }
}

/* Result page iPhone portrait reference layout v3. */
@media screen and (max-width: 700px) and (orientation: portrait) {
  #view-result.result {
    display: grid !important;
    justify-items: center !important;
    align-content: start !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px) !important;
    gap: 12px !important;
    overflow-x: hidden !important;
  }

  #view-result.result .result-header {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: 358px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  #view-result.result #result-brand-logo {
    width: clamp(212px, 62vw, 236px) !important;
    max-width: calc(100% - 104px) !important;
    margin: 0 0 0 6px !important;
    transform: none !important;
  }

  #view-result.result .result-header #restart-btn {
    width: 94px !important;
    max-width: 94px !important;
    min-height: 41px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 14.5px !important;
    line-height: 1.1 !important;
    transform: none !important;
    white-space: normal !important;
    text-align: center !important;
  }

  #view-result.result .certificate-stage {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: 358px !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  #view-result.result .certificate {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    zoom: 1 !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 8px !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }

  #view-result.result .cert-main {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    gap: 14px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  #view-result.result .cert-main::before {
    background-size: 82px 82px !important;
    opacity: 0.78 !important;
  }

  #view-result.result .cert-head {
    gap: 2px !important;
    padding-top: 24px !important;
    justify-items: center !important;
    text-align: center !important;
  }

  #view-result.result .cert-head h3 {
    font-size: 34px !important;
    line-height: 1.12 !important;
    letter-spacing: 0.03em !important;
  }

  #view-result.result .cert-head p {
    font-size: 22px !important;
    line-height: 1.16 !important;
  }

  #view-result.result .cert-head small {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  #view-result.result .cert-meta {
    display: grid !important;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr) !important;
    gap: 10px !important;
    margin-top: 8px !important;
  }

  #view-result.result .cert-meta div {
    padding: 12px 12px !important;
    border-radius: 8px !important;
  }

  #view-result.result .cert-meta div:nth-child(3) {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 18px !important;
  }

  #view-result.result .cert-meta span {
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  #view-result.result .cert-meta strong {
    margin-top: 6px !important;
    font-size: 26px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  #view-result.result .cert-meta div:nth-child(2) strong {
    font-size: 22px !important;
    word-break: normal !important;
  }

  #view-result.result .cert-meta div:nth-child(3) strong {
    margin-top: 0 !important;
    justify-self: end !important;
    font-size: 20px !important;
  }

  #view-result.result .cert-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
  }

  #view-result.result .badge-wrap,
  #view-result.result .badge-wrap.is-testing-stage {
    justify-self: center !important;
    margin: 0 !important;
    transform: none !important;
  }

  #view-result.result .badge-wrap img {
    width: 178px !important;
    height: 178px !important;
    max-width: 58vw !important;
  }

  #view-result.result .relation-copy-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    margin: 0 !important;
  }

  #view-result.result .interpretation,
  #view-result.result .action-plan {
    width: 100% !important;
    margin: 0 !important;
  }

  #view-result.result .interpretation .section-kicker,
  #view-result.result .action-plan .section-kicker,
  #view-result.result .section-kicker {
    position: static !important;
    top: auto !important;
    margin: 0 0 8px !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  #view-result.result .section-kicker-with-icon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  #view-result.result .section-kicker-with-icon img,
  #view-result.result .interpretation .section-kicker-with-icon img,
  #view-result.result .action-plan .section-kicker-with-icon img {
    width: 26px !important;
    height: 26px !important;
  }

  #view-result.result .interpretation h4 {
    display: none !important;
  }

  #view-result.result .interpretation-text-box,
  #view-result.result .action-plan-box {
    width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    transform: none !important;
    border-radius: 10px !important;
    font-size: 18px !important;
    line-height: 1.9 !important;
    white-space: pre-line !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  #view-result.result .action-plan ol,
  #view-result.result .action-list,
  #view-result.result #action-list {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    font-size: 19px !important;
    line-height: 2.1 !important;
  }

  #view-result.result .action-plan li,
  #view-result.result .action-plan p,
  #view-result.result #action-list li {
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 2.1 !important;
    white-space: normal !important;
  }

  #view-result.result .metric-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
    margin: 0 !important;
  }

  #view-result.result .metric {
    min-height: 124px !important;
    padding: 12px 8px !important;
    border-radius: 11px !important;
    gap: 3px !important;
  }

  #view-result.result .metric-title {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  #view-result.result .metric-icon,
  #view-result.result .metric-icon img,
  #view-result.result .metric-icon-large img,
  #view-result.result .metric-affection .metric-icon,
  #view-result.result .metric-affection .metric-icon img,
  #view-result.result .metric-affection.metric-affection-main .metric-icon,
  #view-result.result .metric-affection.metric-affection-main .metric-icon img,
  #view-result.result .metric-affection.metric-affection-main .metric-icon-initiative,
  #view-result.result .metric-affection.metric-affection-main .metric-icon-initiative img,
  #view-result.result .metric-affection.metric-affection-main .metric-icon-handsignal,
  #view-result.result .metric-affection.metric-affection-main .metric-icon-handsignal img {
    width: 52px !important;
    height: 52px !important;
    transform: none !important;
  }

  #view-result.result .metric-affection-main::before,
  #view-result.result .metric-affection-main::after {
    content: none !important;
  }

  #view-result.result .metric strong,
  #view-result.result .metric-affection strong,
  #view-result.result .metric-affection.metric-affection-main strong {
    font-size: 27px !important;
    line-height: 1.05 !important;
    transform: none !important;
    top: auto !important;
  }

  #view-result.result .metric em,
  #view-result.result .metric-affection em {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  #view-result.result .cert-footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.76fr) !important;
    align-items: end !important;
    gap: 12px !important;
    padding-top: 12px !important;
  }

  #view-result.result .seal-block {
    justify-self: start !important;
  }

  #view-result.result .seal {
    width: 52px !important;
    height: 52px !important;
  }

  #view-result.result .seal-caption {
    font-size: 10px !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  #view-result.result .signature {
    transform: none !important;
    justify-self: end !important;
    gap: 0 !important;
  }

  #view-result.result .signature img {
    width: 82px !important;
    max-width: 82px !important;
    max-height: 32px !important;
  }

  #view-result.result .signature span {
    color: #f3d08c !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  #view-result.result .locked-report {
    width: 100% !important;
    display: grid !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  #view-result.result .locked-report .unlock-cta {
    order: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 9px !important;
  }

  #view-result.result .locked-report .unlock-inline {
    min-height: 72px !important;
    padding: 8px 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    border-radius: 14px !important;
  }

  #view-result.result .locked-report .unlock-inline span,
  #view-result.result .locked-report .unlock-inline b,
  html[lang="en"] #view-result.result .locked-report .unlock-inline span,
  html[lang="en"] #view-result.result .locked-report .unlock-inline b,
  html[lang="ko"] #view-result.result .locked-report .unlock-inline span,
  html[lang="ko"] #view-result.result .locked-report .unlock-inline b {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    transform: none !important;
  }

  #view-result.result .locked-report .unlock-inline span {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  #view-result.result .locked-report .unlock-inline b {
    font-size: 25px !important;
    line-height: 1.18 !important;
  }

  #view-result.result .locked-report .unlock-inline b::after,
  html[lang="en"] #view-result.result .locked-report .unlock-inline b::after {
    display: none !important;
  }

  #view-result.result .locked-report .unlock-cta small {
    max-width: 100% !important;
    white-space: normal !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  #view-result.result #locked-list,
  html[lang="en"] #view-result.result #locked-list {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    justify-content: stretch !important;
  }

  #view-result.result #locked-list > li,
  #view-result.result #locked-list > li:not(.locked-item-signal-card),
  html[lang="en"] #view-result.result #locked-list > .locked-item-signal-card,
  html[lang="en"] #view-result.result #locked-list > .download-certificate-card {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  #view-result.result .share-to-her-card {
    grid-column: 1 / -1 !important;
  }

  #view-result.result .locked-item,
  #view-result.result .locked-item-kiss-row {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 20px !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 88px !important;
    padding: 10px 6px !important;
    border-radius: 11px !important;
    overflow: hidden !important;
  }

  #view-result.result .locked-item-kiss-content,
  html[lang="en"] #view-result.result .locked-item-kiss-content {
    min-width: 0 !important;
    min-height: auto !important;
    margin: 0 !important;
    gap: 3px !important;
  }

  #view-result.result .locked-item-icon,
  #view-result.result .locked-item-kiss-row > .locked-item-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    transform: none !important;
  }

  #view-result.result .locked-item-kiss-row > .locked-kiss-lock,
  #view-result.result .locked-lock,
  #view-result.result .locked-item-kiss-detail .locked-lock {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    transform: none !important;
  }

  #view-result.result .locked-item-kiss-title,
  #view-result.result .download-certificate-card .locked-item-kiss-title,
  html[lang="en"] #view-result.result .locked-item-kiss-title,
  html[lang="en"] #view-result.result .download-certificate-card .locked-item-kiss-title {
    display: block !important;
    width: 100% !important;
    font-size: 18px !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  #view-result.result .locked-item-kiss-detail,
  #view-result.result .locked-item-kiss-detail > span,
  html[lang="en"] #view-result.result .locked-item-kiss-detail > span {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  #view-result.result .cert-actions {
    display: none !important;
  }

  #view-result.result .result-legal-note {
    width: 100% !important;
    margin: 0 !important;
  }

  #view-result.result .result-disclaimer {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 10px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* User result page iPhone portrait fine-tune, scoped to the certificate result view only. */
@media screen and (max-width: 700px) and (orientation: portrait) {
  #view-result.result .result-header {
    width: min(100%, calc(100vw - 14px)) !important;
    max-width: 400px !important;
    gap: 4px !important;
  }

  #view-result.result #result-brand-logo {
    width: clamp(315px, 82vw, 350px) !important;
    max-width: calc(100% - 68px) !important;
    margin-left: 0 !important;
    transform: none !important;
  }

  #view-result.result .result-header #restart-btn {
    width: 66px !important;
    max-width: 66px !important;
    min-height: 27px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    background: linear-gradient(180deg, rgba(255, 232, 168, 0.2), rgba(141, 16, 32, 0.72)) !important;
    border: 1px solid rgba(244, 199, 106, 0.72) !important;
    box-shadow:
      0 4px 10px rgba(0, 0, 0, 0.22),
      inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  }

  #view-result.result .cert-head h3 {
    font-size: 25.5px !important;
    line-height: 1.12 !important;
  }

  #view-result.result .cert-head p {
    font-size: 16.5px !important;
    line-height: 1.16 !important;
  }

  #view-result.result .cert-head small {
    font-size: 8.5px !important;
    line-height: 1.2 !important;
  }

  #view-result.result .cert-meta {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  #view-result.result .cert-meta div,
  #view-result.result .cert-meta div:first-child,
  #view-result.result .cert-meta div:nth-child(2) {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    align-items: baseline !important;
    gap: 10px !important;
  }

  #view-result.result .cert-meta div:nth-child(3) {
    grid-template-columns: max-content minmax(0, 1fr) !important;
    justify-content: stretch !important;
  }

  #view-result.result .cert-meta span {
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  #view-result.result .cert-meta strong,
  #view-result.result .cert-meta div:nth-child(2) strong {
    margin-top: 0 !important;
    min-width: 0 !important;
    font-size: 16.5px !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  #view-result.result .cert-meta div:first-child strong {
    font-size: 19.5px !important;
  }

  #view-result.result .cert-meta div:nth-child(3) strong {
    justify-self: center !important;
    text-align: center !important;
    font-size: 16.5px !important;
  }

  #view-result.result .interpretation .section-kicker,
  #view-result.result .action-plan .section-kicker,
  #view-result.result .section-kicker {
    font-size: 22px !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
  }

  #view-result.result .section-kicker-with-icon {
    gap: 10px !important;
    white-space: nowrap !important;
  }

  #view-result.result .relation-copy-layout .section-kicker-with-icon span {
    font-size: 22px !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
  }

  #view-result.result .section-kicker-with-icon img,
  #view-result.result .interpretation .section-kicker-with-icon img,
  #view-result.result .action-plan .section-kicker-with-icon img {
    width: 35px !important;
    height: 35px !important;
    flex: 0 0 35px !important;
  }

  #view-result.result .action-plan-box {
    display: grid !important;
    place-items: center !important;
    padding: 1px 18px !important;
  }

  #view-result.result .action-plan ol,
  #view-result.result .action-list,
  #view-result.result #action-list {
    display: block !important;
    justify-items: initial !important;
    text-align: center !important;
    line-height: 1.65 !important;
  }

  #view-result.result .action-plan li,
  #view-result.result .action-plan p,
  #view-result.result #action-list li {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    line-height: 1.65 !important;
  }
}

.unlock-modal {
  width: min(440px, calc(100vw - 28px));
  max-height: min(720px, calc(100svh - 28px));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.unlock-modal::backdrop {
  background: rgba(5, 2, 3, 0.72);
}

.unlock-modal .modal-card {
  width: 100%;
  max-height: min(720px, calc(100svh - 28px));
  overflow: auto;
  overscroll-behavior: contain;
}

@media screen and (max-width: 700px) and (orientation: portrait) {
  .unlock-modal {
    width: min(356px, calc(100vw - 28px));
    max-height: calc(100svh - 28px);
  }

  .unlock-modal .modal-card {
    max-height: calc(100svh - 28px);
  }
}
