* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f0eb;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', 'Tahoma', system-ui, sans-serif;
  padding: 1.5rem;
  margin: 0;
  background-image: radial-gradient(circle at 20% 30%, #faf5f0 0%, #e8e0d8 80%);
}

.container {
  max-width: 720px;
  width: 100%;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(160, 100, 80, 0.15);
  border-radius: 2.5rem;
  padding: 2.2rem 2rem 2.5rem;
  box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #4a2a2a, #7a4040);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(180, 80, 60, 0.1);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

h1 small {
  font-size: 1rem;
  background: rgba(120, 70, 60, 0.12);
  padding: 0.2rem 1rem;
  border-radius: 40px;
  color: #6a4a40;
  letter-spacing: 0;
  font-weight: 400;
}

.subhead {
  color: #7a6a62;
  border-right: 3px solid #b07060;
  padding-right: 1rem;
  font-size: 0.95rem;
  margin-top: 0.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.meter-wrap {
  background: #e8e0d8;
  border-radius: 60px;
  height: 18px;
  border: 1px solid #d0c0b8;
  margin-bottom: 2.2rem;
  position: relative;
  box-shadow: 0 0 12px rgba(160, 80, 60, 0.08) inset;
}

#darkMeter {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d07060, #e05040, #ff3020);
  border-radius: 60px;
  transition: width 0.6s cubic-bezier(0.34, 1.1, 0.55, 1);
  box-shadow: 0 0 18px rgba(200, 80, 60, 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.question-header {
  display: flex;
  justify-content: space-between;
  color: #7a6a62;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed #d0c0b8;
  padding-bottom: 0.5rem;
}

#qText {
  font-size: 1.45rem;
  font-weight: 500;
  color: #2a1a1a;
  line-height: 1.6;
  min-height: 4.5rem;
  margin-bottom: 2rem;
  padding: 0.2rem 0.2rem 0.2rem 0;
  border-right: 2px solid #b07060;
  padding-right: 1.2rem;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 2rem 0 1.8rem;
}

.opt-btn {
  flex: 1 0 60px;
  min-width: 52px;
  background: #f5f0eb;
  border: 1px solid #d0c0b8;
  color: #4a3a3a;
  padding: 0.7rem 0.4rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.opt-btn:hover {
  background: #e8dcd0;
  border-color: #b09080;
  color: #2a1a1a;
  transform: scale(1.02);
  box-shadow: 0 0 16px rgba(160, 80, 60, 0.12);
}

.opt-btn.selected {
  background: #c08070;
  border-color: #a06050;
  color: #fff;
  box-shadow: 0 0 20px rgba(200, 80, 60, 0.2);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
  gap: 1rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid #c0b0a8;
  color: #5a4a42;
  padding: 0.6rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
  backdrop-filter: blur(2px);
}

.nav-btn:hover:not(:disabled) {
  background: #e8dcd0;
  border-color: #a08070;
  color: #2a1a1a;
  box-shadow: 0 0 14px rgba(160, 80, 60, 0.08);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

#resetBtn {
  border-color: #c0b0a8;
  color: #7a6a62;
  font-size: 0.85rem;
  padding: 0.4rem 1.2rem;
}

#resetBtn:hover {
  background: #e8dcd0;
  border-color: #a08070;
}

#submitBtn {
  background: #c08070 !important;
  border-color: #a06050 !important;
  color: #fff !important;
  padding: 0.8rem 3rem !important;
  font-size: 1.1rem !important;
}

#submitBtn:hover {
  background: #d09080 !important;
  box-shadow: 0 0 30px rgba(200, 80, 60, 0.15) !important;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.35s ease;
}

@media (max-width: 550px) {
  .container { padding: 1.5rem; }
  h1 { font-size: 2rem; flex-wrap: wrap; }
  #qText { font-size: 1.2rem; }
  .opt-btn { flex: 1 0 44px; min-width: 40px; font-size: 0.7rem; padding: 0.5rem 0.2rem; }
  .nav-row { flex-wrap: wrap; justify-content: center; }
}