/* ---------- Tokens ---------- */
:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --text-dim: #6b6b6b;
  --accent: #6c5ce7;
  --accent-dark: #4834d4;
  --card: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);

  --font: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Main Content ---------- */
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 90px 24px 80px;
  text-align: center;
}

.title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.instructions {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

.bold-question {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 700;
}

.counter {
  margin-top: 44px;
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
}

button#clickButton {
  margin-top: 24px;
  padding: 16px 40px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: var(--accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform 0.12s ease, background-color 0.2s ease;
}

button#clickButton:hover {
  background-color: var(--accent-dark);
}

button#clickButton:active {
  transform: scale(0.95);
}

.secret-message {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-dark);
  min-height: 24px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.secret-message.visible {
  opacity: 1;
}

/* ---------- Popups ---------- */
.popup {
  position: fixed;
  top: 40%;
  left: 50%;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  padding: 28px 36px;
  text-align: center;
  z-index: 100;
  transition: top 1.2s ease, left 1.2s ease;
}

.popup.hidden {
  display: none;
}

.popup p {
  font-size: 18px;
  font-weight: 700;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-dim);
}

.popup-close:hover {
  color: var(--text);
}

.image-popup {
  padding: 16px;
}

.image-popup img {
  display: block;
  width: 260px;
  max-width: 60vw;
  border-radius: 10px;
}

/* ---------- Emoji-Hintergrundeffekte ---------- */
.emoji-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.floating-emoji {
  position: absolute;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.floating-emoji.visible {
  opacity: 0.9;
}

/* ---------- Finale weiße Seite ---------- */
.final-screen {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.final-screen.hidden {
  display: none;
}

.final-screen p {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--text);
}
