:root {
  color-scheme: light dark;
  font-size: 16px;
  font-family: 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --bg: #05080f;
  --fg: #f5f5f5;
  --primary: #1d9bf0;
  --card-bg: #0b1220;
  --border: rgba(59, 130, 246, 0.35);
  --selection-bg: rgba(29, 155, 240, 0.35);
  --selection-fg: #ffffff;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

header {
  background: #10141e;
  color: #fff;
  padding: 24px 16px;
}

.lp-hero {
  background: linear-gradient(135deg, #05080f, #10213a);
  color: #fff;
  padding: 48px 0 32px;
}

.hero-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: 2.4rem;
  line-height: 1.3;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: #94a3b8;
}

.hero-copy {
  margin: 0 0 16px;
  line-height: 1.7;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #dbeafe;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 24px;
}

.hero-card .profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-card .profile img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(148, 197, 253, 0.4);
}

.result-hero .result-search {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.4);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 197, 253, 0.4);
}

.result-name-highlight {
  display: inline-block;
  background: linear-gradient(110deg, #60a5fa, #c084fc, #f8fafc, #60a5fa);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: resultNameGlow 6s linear infinite;
  letter-spacing: 0.05em;
}

.result-search label {
  color: #cbd5f5;
  font-weight: 700;
}

.result-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 1rem;
  outline: none;
}

.result-search input::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.result-search button {
  border-radius: 999px;
  white-space: nowrap;
}

.xpi-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.35), transparent 40%),
    linear-gradient(120deg, #020617 0%, #050b1f 55%, #0c1230 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 6px 25px rgba(2, 6, 23, 0.8);
  overflow: hidden;
  z-index: 1000;
  transition: opacity 0.7s ease, transform 0.8s ease;
}

.xpi-banner.dismissed {
  opacity: 0;
  transform: translateY(-40px) scale(0.96);
  pointer-events: none;
}

.xpi-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0.6;
}

.xpi-banner-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.xpi-banner-title {
  position: relative;
  display: inline-block;
  font-size: clamp(4.5rem, 13vw, 9rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 800;
  background-image: linear-gradient(
    120deg,
    rgba(59, 130, 246, 1) 0%,
    rgba(2, 6, 23, 1) 30%,
    rgba(255, 255, 255, 1) 60%,
    rgba(199, 213, 255, 1) 85%,
    rgba(59, 130, 246, 1) 100%
  );
  background-size: 300% 300%;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.45));
  animation: xpiTitleGradient 8s linear infinite;
}

.xpi-banner-title::after {
  content: '';
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
  filter: blur(18px);
  animation: xpiGlow 5s ease-in-out infinite;
}

.xpi-banner-sub {
  display: block;
  margin-top: 8px;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #cbd5f5;
}

.xpi-banner-copy {
  margin: 18px auto 32px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #dbeafe;
  max-width: 520px;
}

.xpi-banner-enter {
  border: 1px solid rgba(148, 197, 253, 0.6);
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.xpi-banner-enter:hover {
  background: rgba(148, 197, 253, 0.25);
  transform: translateY(-2px);
}

.xpi-scroll-hint {
  position: absolute;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: #e0f2fe;
  text-transform: uppercase;
}

.xpi-scroll-hint span {
  width: 2px;
  height: 36px;
  background: linear-gradient(180deg, rgba(148, 197, 253, 0), rgba(148, 197, 253, 0.8));
  border-radius: 999px;
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0.5);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.9;
  }
  100% {
    transform: scaleY(0.5);
    opacity: 0.3;
  }
}

.lp-block {
  max-width: 960px;
  margin: 48px auto;
  padding: 32px 24px;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: #f1f5f9;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.55);
}

.lp-block h2 {
  margin-bottom: 12px;
  color: #f8fafc;
}

.lp-block p {
  line-height: 1.7;
  color: #cbd5f5;
}

.lp-axes {
  background: #020617;
  padding: 48px 16px;
  border-top: 1px solid rgba(59, 130, 246, 0.25);
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
}

.lp-axes h2,
.lp-axes .note {
  max-width: 960px;
  margin: 0 auto 16px;
  color: #e0f2fe;
}

.axes-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.axes-grid article {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 16px;
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lp-steps {
  max-width: 960px;
  margin: 48px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.lp-steps .step {
  border-left: 4px solid #1d9bf0;
  padding-left: 12px;
  margin-bottom: 12px;
}

.lp-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  background: var(--card-bg);
  color: #e2e8f0;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.5);
}

.sample-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.sample-types article {
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lp-list {
  list-style: disc;
  margin-left: 20px;
  color: #cbd5f5;
}

.lp-safe {
  background: #0f172a;
  color: #fff;
  padding: 48px 16px;
}

.lp-safe ul {
  max-width: 960px;
  margin: 0 auto;
  list-style: disc;
  padding-left: 20px;
  line-height: 1.7;
}

.lp-faq {
  max-width: 960px;
  margin: 48px auto;
  padding: 0 16px;
}

.lp-faq dl {
  margin: 0;
}

.lp-faq dt {
  font-weight: 700;
  margin-top: 16px;
}

.lp-faq dd {
  margin: 4px 0 0 0;
  color: #cbd5f5;
}

.lp-cta {
  text-align: center;
  padding: 48px 16px 80px;
  background: linear-gradient(135deg, #05080f, #132347);
  color: #f8fafc;
}

.lp-cta p {
  max-width: 640px;
  margin: 12px auto 24px;
  color: #bfdbfe;
}

header .container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

main {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px 64px;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h2 {
  margin: 0;
  font-size: 1.3rem;
}

.card p {
  margin: 0;
  flex: 1;
  color: #dbeafe;
  line-height: 1.6;
}

.lp-diagnosis strong {
  color: #f8fafc;
}

.lp-diagnosis .diagnosis-data ul {
  margin: 8px 0 0 18px;
  color: #cbd5f5;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 155, 240, 0.3);
}

.btn-secondary {
  background: #f0f3f5;
  color: #1a1a1a;
}

#share-result {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 1200;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding-inline: 28px;
}

#share-result[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  #share-result {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    justify-content: center;
  }
}

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

.auth-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.auth-status strong {
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 560px;
  line-height: 1.7;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.notice {
  margin: 24px 0;
  font-size: 0.95rem;
  color: #d5e3ff;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 197, 253, 0.25);
  border-radius: 14px;
  padding: 20px 24px;
  line-height: 1.7;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.6);
}

.result-box {
  background: rgba(8, 15, 32, 0.85);
  border: none;
  border-radius: 20px;
  padding: 28px;
  margin-top: 24px;
  display: none;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.7);
  color: #e2e8f0;
}

.result-box.visible {
  display: flex;
}

.result-stage {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

.result-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 32px auto;
  padding: 36px 24px;
  border-radius: 20px;
  border: 1px solid rgba(148, 197, 253, 0.35);
  background: rgba(8, 15, 32, 0.85);
  color: #e2e8f0;
  box-shadow: 0 25px 50px rgba(2, 6, 23, 0.6);
  text-align: center;
  max-width: 520px;
}

.result-loader.visible {
  display: flex;
}

.result-loader .spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(148, 197, 253, 0.35);
  border-top-color: #60a5fa;
  animation: spin 1s linear infinite;
}

.result-progress {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-progress li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #cbd5f5;
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.result-progress li .progress-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(148, 197, 253, 0.5);
  background: transparent;
  box-shadow: 0 0 0 rgba(96, 165, 250, 0);
  transition: all 0.3s ease;
}

.result-progress li[data-state='active'] {
  opacity: 1;
  transform: translateX(4px);
}

.result-progress li[data-state='active'] .progress-dot {
  border-color: #60a5fa;
  background: #60a5fa;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.7);
  animation: progressPulse 1s ease-in-out infinite;
}

.result-progress li[data-state='done'] {
  opacity: 0.8;
}

.result-progress li[data-state='done'] .progress-dot {
  border-color: #34d399;
  background: #34d399;
}

.result-progress li[data-state='pending'] .progress-dot {
  border-color: rgba(148, 197, 253, 0.35);
  background: transparent;
}

@keyframes progressPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.result-loader p {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

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

@keyframes resultNameGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 250% 50%;
  }
}

@keyframes xpiTitleGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

@keyframes xpiGlow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

@media (max-width: 600px) {
  body.no-scroll {
    height: 100%;
  }

  .xpi-banner-title {
    letter-spacing: 0.3em;
  }

  .xpi-banner-sub {
    letter-spacing: 0.2em;
  }
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.result-headline {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #f8fafc;
}

.type-code {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(148, 197, 253, 0.9);
}

.type-desc {
  margin: 0;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.95);
}

.result-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #bae6fd;
  font-size: 0.8rem;
  font-weight: 600;
}

.type-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 197, 253, 0.25);
}

.type-poem {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
  color: rgba(226, 232, 240, 0.95);
}

.type-overview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(248, 250, 252, 0.92);
  line-height: 1.8;
}

.type-overview p {
  margin: 0;
}

.type-overview-block {
  border-left: 3px solid rgba(148, 197, 253, 0.6);
  padding-left: 12px;
}

.type-overview-block h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bae6fd;
}

.type-overview-block p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.6;
  white-space: pre-line;
}

.account-value {
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(14, 165, 233, 0.15));
  display: none;
  color: #f8fafc;
}

.account-value.visible {
  display: block;
}

.account-value h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: inherit;
}

.account-value .value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 2.2rem;
  font-weight: 700;
  color: inherit;
}

.account-value .value-max {
  font-size: 1.1rem;
  color: rgba(248, 250, 252, 0.7);
  letter-spacing: 0.05em;
}

.account-value .comment {
  margin: 6px 0 0;
  color: rgba(248, 250, 252, 0.85);
  font-size: 0.95rem;
}

.xpi-axes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.axis-card {
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
}

.axis-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #f8fafc;
}

.axis-scale {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  position: relative;
  overflow: hidden;
}

.axis-scale span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #4ade80);
}

.axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.8);
}

.axis-insight {
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.85);
}

.xpi-axis-table {
  display: none;
  margin-top: 18px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.95), rgba(15, 23, 42, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 40px rgba(2, 6, 23, 0.6);
}

.xpi-axis-table.visible {
  display: block;
}

.axis-table-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  color: #f8fafc;
}

.axis-table-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.axis-table-head span {
  font-size: 0.95rem;
  color: rgba(148, 197, 253, 0.9);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.xpi-axis-table table {
  width: 100%;
  border-collapse: collapse;
}

.xpi-axis-table td {
  padding: 12px 10px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(15, 23, 42, 0.65);
}

.xpi-axis-table tr:last-child td {
  border-bottom: none;
}

.xpi-axis-table strong {
  display: block;
  color: #f8fafc;
  font-size: 0.95rem;
}

.xpi-axis-table small {
  display: block;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.75rem;
}

.axis-score {
  font-weight: 700;
  font-size: 1.1rem;
  color: #e0f2fe;
  text-align: right;
  white-space: nowrap;
}

.axis-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  overflow: hidden;
  margin: 6px 0;
}

.axis-progress span {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #3b82f6);
}

.axis-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.7);
}

@media (max-width: 640px) {
  .xpi-axis-table {
    padding: 16px;
  }

  .xpi-axis-table table,
  .xpi-axis-table tbody,
  .xpi-axis-table tr,
  .xpi-axis-table td {
    display: block;
    width: 100%;
  }

  .xpi-axis-table tr {
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.6);
  }

  .xpi-axis-table tr:last-child {
    border-bottom: none;
  }

  .xpi-axis-table td {
    border-bottom: none;
    padding: 6px 0;
  }

  .axis-table-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .axis-score {
    text-align: left;
    font-size: 1rem;
  }

  .axis-progress {
    margin: 4px 0 8px;
  }

  .axis-progress-labels {
    font-size: 0.65rem;
  }
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.metric-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.metric-card span {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0a1a3d;
  text-shadow: none;
}

.result-metrics .metric-value {
  color: #f8fafc;
  text-shadow: 0 4px 12px rgba(13, 20, 40, 0.35);
}

.metric-comment {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 6px;
}

.metric-bar {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  position: relative;
  overflow: hidden;
}

.metric-bar span {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: inherit;
  background: #1d9bf0;
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #4b5563;
}

.breakdown-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.2);
  overflow: hidden;
}

.breakdown-bar span {
  display: block;
  height: 100%;
  background: #f97316;
}

.result-toplist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toplist-item {
  border-left: 4px solid #1d9bf0;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toplist-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.toplist-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.toplist-link {
  margin-top: 6px;
  display: inline-block;
  font-size: 0.85rem;
  color: #1d9bf0;
}

.toplist-embed {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

.toplist-embed blockquote {
  margin: 0;
  padding: 0;
}

.result-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-card {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
}

.section-card h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.section-card p.section-summary {
  margin: 0 0 12px;
  color: #f8fafc;
  line-height: 1.6;
}

.section-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.section-metrics .metric-card {
  background: #f1f5ff;
}

.section-details {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #f8fafc;
}

.section-details li {
  margin-bottom: 4px;
}

.section-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-items li {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.section-share-hint {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #1d4ed8;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05080f;
    --fg: #f8fafc;
    --card-bg: #101421;
    --border: #1f2433;
  }

  .card p {
    color: #c7d2fe;
  }

  .metric-card {
    background: #111a32;
    border-color: #1f2945;
  }

  .type-poem {
    color: #cbd5f5;
  }

  .toplist-item {
    border-color: #38bdf8;
  }

  .account-value {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.1);
  }

  .section-card {
    background: #111a32;
    border-color: #1f2945;
  }

  .section-items li {
    background: #0f1a34;
    border-color: #1f2945;
  }
}

