:root {
  --bg: #0a0a0a;
  --bg-elevated: #1c1c1c;
  --accent: #ffcc00;
  --accent-text: #111111;
  --text: #ffffff;
  --text-dim: #a8a8a8;
  --border-dim: rgba(255, 255, 255, 0.22);
  --whatsapp: #25d366;
  --whatsapp-text: #072b14;
}

* {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", Arial, sans-serif;
  direction: rtl;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
}

#app {
  width: 100%;
  max-width: 480px;
}

.stage-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question {
  font-size: clamp(1.35rem, 5.2vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.msg-paragraph {
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.answer-buttons,
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, opacity 0.12s ease;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn:active {
  transform: scale(0.97);
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-dim);
}

.btn-social {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-dim);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--whatsapp-text);
}

.btn-back {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 8px 4px;
  margin-bottom: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
