:root {
  color-scheme: dark;
}

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

body {
  background: #0b0b0f;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.4s ease;
}

#app {
  max-width: 40rem;
  width: 100%;
  text-align: center;
}

#message {
  color: #f5f5f7;
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 3rem);
  line-height: 1.25;
  margin: 0;
  transition: color 0.4s ease, font-size 0.4s ease, transform 0.2s ease;
}

/* Escalating insistence, driven by body[data-intensity] set in app.js */

body[data-intensity="3"] #message,
body[data-intensity="4"] #message {
  color: #ffd166;
}

body[data-intensity="5"] #message,
body[data-intensity="6"] #message {
  color: #ff9f1c;
}

body[data-intensity="7"] #message,
body[data-intensity="8"] #message {
  color: #ff4d4d;
}

body[data-intensity="9"] #message,
body[data-intensity="10"] #message {
  color: #ff1744;
  text-shadow: 0 0 18px rgba(255, 23, 68, 0.6);
}

body[data-intensity="6"],
body[data-intensity="7"],
body[data-intensity="8"] {
  background: #170b0b;
}

body[data-intensity="9"],
body[data-intensity="10"] {
  background: #200606;
  animation: shake 0.4s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
