/* Animations */
.result-reveal {
  animation: fadeInUp 0.35s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.detail-row:last-child {
  border-bottom: 0;
}
.detail-stack {
  flex-direction: column;
  gap: 0.4rem;
}
.detail-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}
.detail-value {
  color: #1f2937;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}
.steps-text {
  width: 100%;
  text-align: left;
  color: #660066;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.meaning-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
}
.meaning-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
  background: #f9e6f9;
  color: #660066;
}
.meaning-badge.master {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  margin-left: 4px;
}
.meaning-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  color: #660066;
}
.meaning-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.meaning-desc {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}

body.embed-mode {
  background: transparent !important;
}
body.embed-mode #ad-header,
body.embed-mode #ad-inline,
body.embed-mode nav,
body.embed-mode footer,
body.embed-mode .embed-section,
body.embed-mode #seo-section,
body.embed-mode #hero-heading {
  display: none !important;
}
body.embed-mode section:first-of-type {
  padding-top: 0.5rem;
}
body.embed-mode #input-card {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}
body.embed-mode #input-card label {
  color: #fff !important;
}

@media (max-width: 640px) {
  .detail-row {
    flex-direction: column;
    gap: 0.35rem;
  }
  .detail-value {
    text-align: left;
  }
  .meaning-number {
    font-size: 2rem;
  }
}
