.final-root {
  display: block;
  background-color: #fafafa;
  overflow-x: hidden;
}

.final-card {
  width: 100%;
  min-width: 0;
  padding: 10px;
  max-width: none;
}

.final-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.final-card .highlighted {
  font-weight: 800;
  color: #99115c;
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  margin-bottom: 0.25rem;
}

.final-card li {
  font-size: clamp(0.9rem, 3.4vw, 0.98rem);
  line-height: 1.25;
}

#results-view .results-wrap {
  text-align: center;
}

#results-view .results-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 12px;
  z-index: 1000;
}

#results-view h2 {
  margin-bottom: 1.5rem;
}

#results-view ol {
  line-height: 1.6;
  font-size: 1.1rem;
  padding-left: 1.2rem;
}

#results-view .btn-primary {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: solid 1px #fff;
  background: #99115c;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#results-view .btn-primary:hover {
  background-color: #ad2c70;
  transform: scale(1.05);
}

#results-view .btn-primary:active {
  transform: scale(0.95);
}

#results-view .btn-secondary {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: solid 2px #99115c;
  background: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  color: #99115c;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#results-view .btn-secondary:hover {
  background-color: #ad2c70;
  color: #fff;
  transform: scale(1.05);
}

#results-view .btn-secondary:active {
  transform: scale(0.95);
}

/* mobily */
@media (max-width: 600px) {
  #results-view .results-wrap {
    text-align: left;
  }

  .final-cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-inline: 6px;
  }

  .final-card {
    max-width: 140px;
    min-width: 140px;
  }

  .final-card ul {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .final-card .highlighted {
    font-size: clamp(0.95rem, 3.6vw, 1.05rem);
  }
  .final-card li {
    font-size: clamp(0.82rem, 3.2vw, 0.95rem);
    line-height: 1.25;
  }

  #results-view .results-actions {
    gap: 1rem;
  }

  #results-view .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 13px;
  }
}
