/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Darker pastel gradient */
  --bg1: #d77ce0;   /* deepened pastel purple-pink */
  --bg2: #8ec5fc;   /* deeper pastel blue */
  --card-bg: #ffffffee; /* semi-white card with slight transparency */
  --accent: #f093fb;    /* pink accent */
  --accent-dark: #d66ae5;
  --text: #222;
  --muted: #555;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

  /* Card sizing */
  --card-w: clamp(280px, 90vw, 500px);
  --card-h: 200px; /* steady height for all compliments */
}

body {
  min-height: 100vh;
  font-family: system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* Container */
.container {
  width: 90%;
  max-width: 640px;
  padding: 2rem;
  text-align: center;
}

/* Header */
.header { margin-bottom: 2rem; }
.title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.subtitle {
  font-size: 1rem;
  color: var(--muted);
}

/* Compliment Card */
.compliment-card {
  width: var(--card-w);
  min-height: var(--card-h);
  display: flex;
  justify-content: center;
  align-items: center;

  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.compliment-text {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* Buttons */
.buttons {
  display: flex;
  justify-content: center;
}
.btn {
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn, .toast { transition: none; }
}
