* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(ellipse at top, #201018 0%, #12080c 60%, #0a0508 100%);
  color: #e8d8d0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app {
  width: min(90vw, 42rem);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

header {
  text-align: center;
}

header h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: #d94f4f;
  letter-spacing: 0.03em;
  text-shadow: 0 0 12px rgba(217, 79, 79, 0.35);
}

header .subtitle {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #a8909a;
  font-style: italic;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.speaker-select {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.speaker-btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #5a3438;
  background: #241418;
  color: #c8aab0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.speaker-btn:hover {
  border-color: #d94f4f;
}

.speaker-btn.active {
  background: #7a2b30;
  border-color: #d94f4f;
  color: #ffe8e0;
}

#comeback-card {
  width: 100%;
  min-height: 8rem;
  background: #1a0e12;
  border: 1px solid #4a2830;
  border-radius: 0.75rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(217, 79, 79, 0.06);
}

#speaker-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #d94f4f;
}

#comeback-text {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.5;
  color: #f0e0d8;
}

#generate-btn {
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #b03030, #7a2020);
  color: #fff0ec;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(176, 48, 48, 0.35);
  transition: transform 0.1s, box-shadow 0.15s;
}

#generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(176, 48, 48, 0.45);
}

#generate-btn:active {
  transform: translateY(0);
}

@media (max-width: 30rem) {
  #app { width: 94vw; }
}
