#results {
  --ink: #222822;
  --muted: #62665e;
  --secondary: #555a52;
  --action: #31594d;
  --action-hover: #254539;
  --selection: #e8eee6;
  --surface: #f5f3ee;
  --line: #dedad0;
}

#result-prime {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 21px;
  background: #f5f1e8;
}

.naming-result-card {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(19px, 5.2vw, 42px);
  border-radius: inherit;
  background: #202722;
  color: #fcf7ea;
}

.naming-result-name-content {
  min-width: 0;
  animation: naming-result-reveal 200ms ease-out both;
}

.naming-result-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px .29em;
  font: 600 clamp(2.95rem, 13vw, 5.15rem)/1.13 "Hiragino Mincho ProN", "YuMincho", "Noto Serif JP", "Songti TC", serif;
  letter-spacing: .018em;
  overflow-wrap: anywhere;
}

[data-name-size="medium"] .naming-result-name {
  font-size: clamp(2.22rem, 11.05vw, 4.4rem);
}

[data-name-size="long"] .naming-result-name {
  font-size: clamp(1.8rem, 9.25vw, 3.8rem);
}

.naming-result-name > span { min-width: 0; max-width: 100%; }

.naming-result-empty .naming-result-name {
  font: 650 clamp(1.25rem, 5vw, 1.8rem)/1.42 var(--sans);
  letter-spacing: normal;
}

.naming-result-kana {
  margin-top: 7px;
  color: #dddfd1;
  font-size: clamp(.98rem, 3.7vw, 1.19rem);
  line-height: 1.5;
  letter-spacing: .022em;
}

.naming-result-card .pronunciation-controls { margin-top: 13px; }

.naming-result-card .pronunciation-button {
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid #555e52;
  border-radius: 999px;
  color: #fcf7ea;
  background: #343d34;
}

.naming-result-card .pronunciation-button:hover { background: #475144; }
.naming-result-card .pronunciation-status { color: #dddfd1; }
.naming-result-card :focus-visible { outline-color: #e3dbbd; }

.naming-result-overview {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 5px;
  padding: clamp(14px, 4vw, 31px) clamp(16px, 5vw, 34px);
}

.naming-result-verdict {
  color: var(--ink);
  font-size: clamp(1.09rem, 4.55vw, 1.65rem);
  letter-spacing: -.02em;
}

.naming-result-conclusion {
  color: #363e35;
  font-size: .96rem;
  line-height: 1.53;
}

.naming-result-reason,
.naming-result-fit {
  font-size: .84rem;
  line-height: 1.5;
}

.naming-result-reason { color: #5d645a; }
.naming-result-fit { color: #365749; }

#result-view-tabs {
  display: flex;
  gap: 4px;
  margin-block: 14px;
  padding: 3px;
  border: 1px solid #e6e2d8;
  border-radius: 12px;
  background: #f2f0e9;
}

.naming-result-tab {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #5a6057;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.naming-result-tab:hover { color: #252d25; }

.naming-result-tab[aria-selected="true"] {
  border-color: #ded9cc;
  background: #fffdf8;
  color: #222a23;
  font-weight: 680;
}

#result-life-panel,
#result-name-panel {
  min-width: 0;
  animation: naming-result-reveal 200ms ease-out both;
}

#result-name-panel > .suggestions-heading { margin-top: 0; }
#result-life-panel > .ai-explanation:first-child { margin-top: 0; }

@keyframes naming-result-reveal {
  from { opacity: .65; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 760px) {
  #result-prime { grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr); }
  #result-view-tabs { width: 300px; margin-block: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .naming-result-name-content,
  #result-life-panel,
  #result-name-panel { animation: none; }
  .naming-result-tab { transition: none; }
}
