:root {
  --bg: #fff8fb;
  --surface: rgba(255, 255, 255, 0.92);
  --border: rgba(244, 143, 177, 0.28);
  --text: #402731;
  --muted: #775965;
  --accent: #f48fb1;
  --accent-strong: #ec5d93;
  --shadow: 0 20px 50px rgba(236, 93, 147, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 143, 177, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 205, 216, 0.22), transparent 25%),
    linear-gradient(180deg, #fffdfd 0%, var(--bg) 100%);
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.card {
  width: min(100%, 28rem);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0;
  color: #c76d92;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
}

.subtitle {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.counter-block,
.phrase-block {
  margin-top: 1.3rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(244, 143, 177, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.counter-label {
  margin: 0;
  color: #c76d92;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.count-text,
.phrase-text {
  margin: 0.65rem 0 0;
  line-height: 1.55;
}

.count-text {
  font-size: 1.3rem;
  font-weight: 700;
}

.phrase-text {
  color: var(--muted);
  font-size: 1rem;
}

.main-button,
.secondary-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.main-button {
  margin-top: 1.4rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(236, 93, 147, 0.2);
}

.secondary-button {
  margin-top: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  color: #b64e79;
  border: 1px solid rgba(244, 143, 177, 0.28);
  font-weight: 600;
}

.main-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.main-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(236, 93, 147, 0.24);
  outline-offset: 4px;
}

.footer-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hidden {
  display: none;
}
