/* ── MESBG Army Quiz — Dark Fantasy Style ── */

#maq-quiz-wrap {
  font-family: 'Georgia', 'Times New Roman', serif;
  max-width: 680px;
  margin: 0 auto;
  min-height: 520px;
  position: relative;
}

/* ── Screens ── */
.maq-screen {
  display: none;
  animation: maqFadeIn 0.4s ease;
}
.maq-screen.active {
  display: block;
}
@keyframes maqFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Language picker ── */
.maq-lang-picker {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.maq-lang-btn {
  background: #1e0e00;
  border: 1px solid #3d2800;
  color: #7a6040;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: 1px;
}
.maq-lang-btn:hover {
  border-color: #c9a84c;
  color: #c9a84c;
}
.maq-lang-btn.active {
  border-color: #c9a84c;
  color: #c9a84c;
  background: #2a1800;
}

/* ── Intro ── */
#maq-intro {
  background: linear-gradient(160deg, #1a0d00 0%, #2a1200 50%, #0d0500 100%);
  border: 1px solid #7a5c1e;
  border-radius: 4px;
  padding: 60px 40px;
  text-align: center;
}
.maq-intro-inner {
  max-width: 460px;
  margin: 0 auto;
}
.maq-rune {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 8px #c9a84c88);
}
.maq-title {
  font-size: 2.2rem;
  color: #c9a84c;
  margin: 0 0 12px;
  letter-spacing: 2px;
  text-shadow: 0 0 20px #c9a84c55;
}
.maq-subtitle {
  color: #b09060;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── Buttons ── */
.maq-btn-primary {
  background: linear-gradient(135deg, #7a5c1e, #c9a84c, #7a5c1e);
  background-size: 200% auto;
  color: #1a0d00;
  border: none;
  padding: 14px 36px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-position 0.3s, transform 0.15s;
  text-transform: uppercase;
}
.maq-btn-primary:hover {
  background-position: right center;
  transform: translateY(-1px);
}
.maq-btn-secondary {
  background: transparent;
  color: #c9a84c;
  border: 1px solid #7a5c1e;
  padding: 11px 28px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 1px;
  transition: background 0.2s;
  margin-top: 24px;
  text-transform: uppercase;
}
.maq-btn-secondary:hover {
  background: #7a5c1e22;
}
.maq-btn-skip {
  background: none;
  border: none;
  color: #7a6040;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
  display: block;
  width: 100%;
  text-align: center;
  transition: color 0.2s;
}
.maq-btn-skip:hover {
  color: #c9a84c;
}

/* ── Quiz screen ── */
#maq-quiz {
  background: linear-gradient(160deg, #1a0d00 0%, #2a1200 50%, #0d0500 100%);
  border: 1px solid #7a5c1e;
  border-radius: 4px;
  padding: 36px 40px 48px;
}

/* Progress bar */
.maq-progress-bar {
  background: #2e1a00;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}
.maq-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7a5c1e, #c9a84c);
  transition: width 0.4s ease;
  width: 0%;
}
.maq-question-counter {
  color: #7a6040;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* Question */
#maq-question-wrap {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.maq-q-text {
  color: #e8c87a;
  font-size: 1.5rem;
  margin: 0 0 6px;
  line-height: 1.3;
  font-weight: normal;
}
.maq-q-sl {
  color: #7a6040;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0 0 28px;
}

/* Answers */
.maq-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.maq-answer {
  background: #1e0e00;
  border: 1px solid #3d2800;
  color: #c9a84c;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.maq-answer:hover {
  border-color: #c9a84c;
  background: #2a1800;
  transform: translateX(4px);
}
.maq-answer.selected {
  border-color: #c9a84c;
  background: #2e1a00;
}
.maq-ans-en {
  font-size: 1rem;
  line-height: 1.4;
}
.maq-ans-sl {
  font-size: 0.8rem;
  color: #7a6040;
  font-style: italic;
}

/* ── Email gate ── */
#maq-email-gate {
  background: linear-gradient(160deg, #1a0d00 0%, #2a1200 50%, #0d0500 100%);
  border: 1px solid #7a5c1e;
  border-radius: 4px;
  padding: 60px 40px;
  text-align: center;
}
.maq-email-inner {
  max-width: 420px;
  margin: 0 auto;
}
.maq-email-inner h2 {
  color: #c9a84c;
  font-size: 1.6rem;
  margin: 0 0 10px;
  font-weight: normal;
  letter-spacing: 1px;
}
.maq-email-inner p {
  color: #b09060;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
#maq-email-input {
  width: 100%;
  background: #1e0e00;
  border: 1px solid #3d2800;
  color: #e8c87a;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 2px;
  margin-bottom: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
#maq-email-input:focus {
  outline: none;
  border-color: #c9a84c;
}
#maq-email-input::placeholder {
  color: #4a3520;
}

/* ── Results ── */
#maq-results {
  background: linear-gradient(160deg, #1a0d00 0%, #2a1200 50%, #0d0500 100%);
  border: 1px solid #7a5c1e;
  border-radius: 4px;
  padding: 48px 40px;
}
.maq-results-inner {
  text-align: center;
}
.maq-results-title {
  color: #c9a84c;
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.maq-results-sub {
  color: #7a6040;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* Result cards */
#maq-results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.maq-result-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 2px;
  border: 1px solid #3d2800;
  background: #1e0e00;
  transition: border-color 0.2s;
}
.maq-result-card:hover {
  border-color: #7a5c1e;
}
.maq-rank-1 { border-color: #c9a84c; background: #221200; }
.maq-rank-2 { border-color: #7a7a7a; }
.maq-rank-3 { border-color: #6b3d1e; }

.maq-result-medal {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.maq-result-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #7a6040;
  margin-bottom: 4px;
}
.maq-result-name {
  color: #e8c87a;
  font-size: 1.2rem;
  font-weight: normal;
  margin: 0 0 4px;
}
.maq-result-feeling {
  color: #b09060;
  font-size: 0.85rem;
  font-style: italic;
  margin: 0 0 10px;
  line-height: 1.5;
}
.maq-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.maq-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 2px;
  background: #2a1400;
  border: 1px solid #3d2800;
  color: #7a6040;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.maq-tag.good  { border-color: #2a6030; color: #5a9060; }
.maq-tag.evil  { border-color: #6a1a1a; color: #c05050; }

/* ── Mobile ── */
@media (max-width: 600px) {
  #maq-intro, #maq-quiz, #maq-email-gate, #maq-results {
    padding: 32px 20px;
  }
  .maq-title { font-size: 1.7rem; }
  .maq-q-text { font-size: 1.2rem; }
  .maq-result-card { flex-direction: column; gap: 8px; }
  .maq-result-medal { font-size: 1.4rem; }
}
