/* styles.css */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  background: radial-gradient(1200px 600px at 50% 0%, rgba(109,40,217,0.14), rgba(255,255,255,0)) ,
              linear-gradient(135deg, #fde2ff, #ffffff 45%, #efe3ff);
  color: #111;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

#app {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  width: 100%;
  padding: 18px 16px 16px;
}

header { text-align: center; padding: 6px 0 12px; }
h1 { margin: 8px 0 6px; font-size: 20px; letter-spacing: 0.2px; }
.tagline { margin: 0 auto 10px; color: #1f1f1f; font-weight: 650; line-height: 1.35; }
.subtitle { margin: 0; color: #666; font-size: 14px; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.card {
  width: 100%;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: 24px;
  padding: 40px 30px 30px;
  box-shadow: 0 18px 60px rgba(17,17,17,0.10);
  text-align: center;
  touch-action: pan-x;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56vh;
  backdrop-filter: blur(10px);
}

.question {
  font-size: 30px;
  line-height: 1.45;
  font-weight: 750;
  color: #111;
  padding: 30px 14px 34px;
  max-width: 560px;
  margin: 0 auto;
}

.question::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: rgba(109,40,217,0.18);
  border-radius: 999px;
  margin: 22px auto 0;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 16px;
  background: #6d28d9;
  color: #fff;
  font-weight: 750;
  font-size: 16px;
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.btn-outline {
  background: #f3e8ff;
  color: #4b2ca4;
}

.actionsOutside {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 4px 2px 0;
}

.btn-pill {
  width: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(109,40,217,0.10);
  color: #4b2ca4;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(109,40,217,0.16);
}

.btn-pill-outline {
  background: transparent;
  border: 1px solid rgba(109,40,217,0.22);
}

footer { text-align: center; color: #6b7280; padding: 10px 8px 8px; }

.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.modalOverlay.isOpen { display: flex; }

.modalCard {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 70px rgba(0,0,0,.22);
  text-align: center;
}

.modalTitle {
  font-size: 16px;
  font-weight: 850;
  color: #111;
  margin: 4px 0 12px;
}

.modalButtons {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.modalButtons .btn { padding: 12px 16px; border-radius: 14px; }

.modalClose {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(109,40,217,0.22);
  color: #4b2ca4;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 480px) {
  .question { font-size: 24px; padding: 26px 8px 30px; }
  .card { padding: 34px 20px 26px; min-height: 60vh; }
  .controls { margin-top: 28px; }
  .actionsOutside { gap: 10px; }
  .btn-pill { width: 100%; }
}
