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

/* Word block card */
.word-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}
.word-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Letter breakdown table */
.letter-table {
  width: 100%;
  border-collapse: collapse;
}
.letter-table td {
  padding: 0.35rem 0.5rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.system-cell {
  text-align: left !important;
  padding-right: 0.75rem !important;
  width: 28px;
}
.letter-cell {
  font-weight: 700;
  font-size: 1rem;
  color: #374151;
}
.val-cell.pyth  { font-size: 0.85rem; font-weight: 600; color: #660066; }
.val-cell.chald { font-size: 0.85rem; font-weight: 600; color: #b45309; }
.total-header {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  border-left: 1px solid #e5e7eb;
  padding-left: 1rem !important;
}
.total-cell {
  font-weight: 700;
  font-size: 0.85rem;
  border-left: 1px solid #e5e7eb;
  padding-left: 1rem !important;
}
.total-cell.pyth  { color: #660066; }
.total-cell.chald { color: #b45309; }

/* System badges */
.system-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}
.system-badge.pyth  { background: #f9e6f9; color: #660066; }
.system-badge.chald { background: #fef3c7; color: #b45309; }

/* Meaning cards */
.meaning-card {
  flex: 1;
  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;
}
.meaning-badge.pyth  { background: #f9e6f9; color: #660066; }
.meaning-badge.chald { background: #fef3c7; color: #b45309; }
.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;
}
.meaning-number.pyth  { color: #660066; }
.meaning-number.chald { color: #b45309; }
.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;
}

/* Embed mode */
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;
}

/* Mobile */
@media (max-width: 640px) {
  .letter-table td { padding: 0.25rem 0.35rem; }
  .letter-cell { font-size: 0.85rem; }
  .meaning-number { font-size: 2rem; }
}
