* { 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;
  background: linear-gradient(135deg, #fde2ff, #ffffff 40%, #efe3ff);
  color: #111;
  display: flex;
  justify-content: center;
}

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

.header {
  text-align: center;
  padding: 12px 0 6px;
}

.brand {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.tagline {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: #444;
  font-weight: 500;
}

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  background: rgba(255,255,255,.96);
  border-radius: 26px;
  padding: 24px 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
  text-align: center;
}

.swipeHint {
  display: inline-flex;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(109,40,217,.1);
  font-weight: 700;
  margin-bottom: 18px;
}

.questionWrap {
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question {
  font-size: clamp(26px, 5.5vw, 36px);
  font-weight: 800;
  line-height: 1.25;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.secondaryControls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.btn, .btn-outline {
  padding: 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  border: none;
}

.btn {
  background: #6d28d9;
  color: #fff;
}

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

.small {
  padding: 12px;
  font-size: 14px;
}

.shuffle {
  border: 2px dashed #e9d5ff;
  background: transparent;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  padding-top: 10px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal.show {
  display: flex;
}

.modalCard {
  background: #fff;
  padding: 26px;
  border-radius: 22px;
  text-align: center;
  width: 90%;
  max-width: 380px;
}

.modalCard h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.modalCard button {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border-radius: 14px;
  font-weight: 800;
  background: #6d28d9;
  color: #fff;
  border: none;
}


/* Admin */
.adminCard { max-width: 520px; margin: 0 auto; }
.adminTitle { margin: 0 0 10px; font-size: 20px; font-weight: 900; }
.adminHelp { margin: 8px 0; color: #444; font-weight: 600; line-height: 1.35; }
.adminInput {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 2px solid #e9d5ff;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}
.adminInput:focus { border-color: #6d28d9; }
.adminBtn { width: 100%; margin-top: 12px; }
.adminMsg { margin: 10px 0 0; font-weight: 800; color: #b91c1c; min-height: 20px; }
.adminRow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.adminNote { margin-top: 12px; color: #6b7280; font-weight: 700; font-size: 12px; }
