.emotion-card-modal {
  max-width: min(36rem, calc(100vw - 2rem));
  width: 100%;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgb(15 23 42 / 0.25);
  background: #fff;
  color: #0f172a;
  z-index: 100;
}

.emotion-card-modal::backdrop {
  background: rgb(15 23 42 / 0.45);
}

.emotion-card-modal__surface {
  position: relative;
  max-height: min(85dvh, 640px);
  overflow: auto;
  padding: 1.25rem 1.35rem 1.5rem;
}

.emotion-card-modal__header {
  padding-right: 2.5rem;
  margin-bottom: 0.75rem;
}

.emotion-card-modal__title {
  margin: 0;
  font-size: clamp(0.95rem, 2.6vmin, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.emotion-card-modal__subtitle {
  margin: 0.35rem 0 0;
  font-size: clamp(0.9rem, 2.2vmin, 1rem);
  font-weight: 600;
  color: #334155;
}

.emotion-card-modal__ordinal {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.emotion-card-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.emotion-card-modal__close:hover {
  background: #e2e8f0;
}

.emotion-card-modal__close:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.emotion-card-modal__body {
  font-size: clamp(0.875rem, 2.2vmin, 0.95rem);
  line-height: 1.52;
}

.emotion-card-modal__section {
  margin-top: 1rem;
}

.emotion-card-modal__section:first-child {
  margin-top: 0;
}

.emotion-card-modal__section-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.emotion-card-modal__section p {
  margin: 0.4rem 0 0;
}

.emotion-card-modal__section ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.emotion-card-modal__section li {
  margin-top: 0.25rem;
}
