/*
 * MECI QUIZ
 * PASUL 1H
 *
 * Strict local.
 * Nu modifică stilurile celorlalte jocuri.
 */

.match-quiz-page {
  --mq-charcoal: #25211f;
  --mq-charcoal-soft: #342e2a;
  --mq-red: #c62b2f;
  --mq-red-dark: #9f2024;
  --mq-cream: #f6f0e5;
  --mq-cream-light: #fffaf2;
  --mq-ink: #282321;
  --mq-muted: #776b63;
  --mq-border: rgba(58, 46, 39, .15);
  --mq-green: #2f714c;
  --mq-shadow: 0 22px 60px rgba(48, 37, 31, .12);
}

.match-quiz-page [hidden] {
  display: none !important;
}

.mq-main {
  width: 100%;
}

.match-quiz-page .mq-page-hero {
  margin-bottom: clamp(26px, 4vw, 48px);
}

.match-quiz-app {
  width: min(100%, 980px);
  margin: 0 auto clamp(54px, 8vw, 90px);
}

.mq-loading,
.mq-error,
.mq-start,
.mq-game,
.mq-rules {
  box-sizing: border-box;
}

.mq-loading {
  min-height: 230px;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 42px 20px;
  text-align: center;
  color: var(--mq-charcoal);
}

.mq-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(198, 43, 47, .18);
  border-top-color: var(--mq-red);
  border-radius: 50%;
  animation: mq-spin .8s linear infinite;
}

@keyframes mq-spin {
  to {
    transform: rotate(360deg);
  }
}

.mq-kicker,
.mq-stage-kicker {
  display: inline-block;
  color: var(--mq-red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mq-start {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(198, 43, 47, .24),
      transparent 34%
    ),
    var(--mq-charcoal);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 30px;
  box-shadow: var(--mq-shadow);
}

.mq-start-copy {
  padding:
    clamp(30px, 5vw, 58px)
    clamp(26px, 5vw, 58px);
  color: var(--mq-cream-light);
}

.mq-start-copy .mq-kicker {
  margin-bottom: 14px;
  color: #f05a5e;
}

.mq-start-copy h2 {
  max-width: 650px;
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.mq-start-copy > p {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 250, 242, .78);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.mq-start-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.mq-start-facts > div {
  min-width: 0;
  padding: 14px 12px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
}

.mq-start-facts strong,
.mq-start-facts span {
  display: block;
}

.mq-start-facts strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 1.28rem;
}

.mq-start-facts span {
  color: rgba(255, 250, 242, .68);
  font-size: .78rem;
  line-height: 1.25;
}

.mq-start-copy small {
  display: block;
  max-width: 560px;
  margin-top: 13px;
  color: rgba(255, 250, 242, .58);
  line-height: 1.45;
}

.mq-start-visual {
  display: flex;
  align-items: stretch;
  padding: 18px 18px 18px 0;
}

.mq-start-image-frame {
  overflow: hidden;
  width: 100%;
  min-height: 100%;
  border-radius: 22px;
  background: #171413;
}

.mq-start-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.mq-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease,
    opacity .16s ease;
}

.mq-button:hover {
  transform: translateY(-1px);
}

.mq-button:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.mq-button-primary {
  background: var(--mq-red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(198, 43, 47, .22);
}

.mq-button-primary:hover {
  background: var(--mq-red-dark);
}

.mq-button-secondary {
  background: transparent;
  color: var(--mq-charcoal);
  border: 1px solid rgba(37, 33, 31, .22);
}

.mq-start .mq-button-secondary {
  color: var(--mq-cream-light);
  border-color: rgba(255, 255, 255, .18);
}

.mq-start-button {
  min-width: min(100%, 245px);
}

.mq-game {
  overflow: hidden;
  background: var(--mq-cream-light);
  border: 1px solid var(--mq-border);
  border-radius: 28px;
  box-shadow: var(--mq-shadow);
}

.mq-scorebar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(20px, 4vw, 34px);
  background:
    linear-gradient(
      110deg,
      var(--mq-charcoal),
      var(--mq-charcoal-soft)
    );
  color: #fff;
}

.mq-scorebar-copy {
  min-width: 0;
}

.mq-scorebar-copy > span {
  display: block;
  margin-bottom: 4px;
  color: #f05a5e;
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.mq-scorebar-copy > strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.mq-scorebar-copy b {
  color: #fff;
}

.mq-goal-icons {
  min-height: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  font-size: 1.22rem;
}

.mq-arena {
  min-height: 430px;
  padding:
    clamp(28px, 5vw, 50px)
    clamp(22px, 5vw, 52px)
    clamp(30px, 5vw, 52px);
}

.mq-stage-head {
  min-height: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.mq-action-label {
  display: block;
  max-width: 670px;
  margin-top: 6px;
  color: var(--mq-charcoal);
  font-size: clamp(.95rem, 2vw, 1.08rem);
}

.mq-question-timer {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--mq-charcoal);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 33, 31, .15);
}

.mq-question-timer strong,
.mq-question-timer small {
  display: block;
  line-height: 1;
}

.mq-question-timer strong {
  font-size: 1.22rem;
}

.mq-question-timer small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .66);
  font-size: .62rem;
}

.mq-question-timer.is-urgent {
  background: var(--mq-red);
}

.mq-narrative {
  display: flex;
  align-items: center;
  min-height: 150px;
  margin-bottom: 22px;
  padding:
    clamp(24px, 4vw, 36px)
    clamp(22px, 4vw, 38px);
  background: var(--mq-cream);
  border: 1px solid rgba(75, 59, 48, .12);
  border-left: 5px solid var(--mq-red);
  border-radius: 20px;
}

.mq-narrative p {
  margin: 0;
  color: var(--mq-ink);
  font-size: clamp(1.28rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -.015em;
}

.mq-question {
  margin: 0 0 22px;
}

.mq-question h2 {
  margin: 0;
  color: var(--mq-charcoal);
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  line-height: 1.38;
}

.mq-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mq-option {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  padding: 14px 16px;
  text-align: left;
  background: #fff;
  color: var(--mq-charcoal);
  border: 1px solid rgba(65, 51, 43, .16);
  border-radius: 15px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color .14s ease,
    transform .14s ease,
    background .14s ease;
}

.mq-option:hover {
  transform: translateY(-1px);
  border-color: rgba(198, 43, 47, .55);
  background: #fffdf9;
}

.mq-option-index {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: var(--mq-charcoal);
  color: #fff;
  border-radius: 9px;
  font-size: .8rem;
  font-weight: 900;
}

.mq-option.is-attack .mq-option-index {
  background: var(--mq-red);
}

.mq-option:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.mq-feedback-status {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  text-align: center;
}

.mq-feedback-status.is-correct {
  background: rgba(47, 113, 76, .1);
  color: var(--mq-green);
}

.mq-feedback-status.is-wrong {
  background: rgba(198, 43, 47, .09);
  color: var(--mq-red-dark);
}

.mq-arena.is-goal .mq-narrative {
  border-left-color: var(--mq-green);
}

.mq-arena.is-miss .mq-narrative {
  border-left-color: var(--mq-red);
}

.mq-final {
  padding: 8px 0 0;
  text-align: center;
}

.mq-final .mq-kicker {
  margin-bottom: 10px;
}

.mq-final h2 {
  margin: 0 0 14px;
  color: var(--mq-charcoal);
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.mq-final > p {
  max-width: 690px;
  margin: 0 auto;
  color: var(--mq-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.mq-login-prompt {
  max-width: 610px;
  margin: 26px auto 0;
  padding: 20px;
  background: var(--mq-cream);
  border: 1px solid var(--mq-border);
  border-radius: 17px;
}

.mq-login-prompt strong {
  display: block;
  margin-bottom: 5px;
  color: var(--mq-charcoal);
}

.mq-login-prompt p {
  margin: 0 0 14px;
  color: var(--mq-muted);
  line-height: 1.5;
}

.mq-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.mq-error {
  padding: clamp(28px, 5vw, 46px);
  background: #fff7f2;
  border: 1px solid rgba(198, 43, 47, .2);
  border-radius: 22px;
  text-align: center;
}

.mq-error h2 {
  margin: 8px 0 8px;
  color: var(--mq-charcoal);
}

.mq-error p {
  margin: 0 0 20px;
  color: var(--mq-muted);
}

.mq-rules {
  margin-top: 24px;
  padding:
    clamp(24px, 4vw, 34px)
    clamp(22px, 4vw, 36px);
  background: rgba(255, 250, 242, .78);
  border: 1px solid var(--mq-border);
  border-radius: 22px;
}

.mq-rules h2 {
  margin: 0 0 10px;
  color: var(--mq-charcoal);
  font-size: 1.25rem;
}

.mq-rules p {
  margin: 7px 0 0;
  color: var(--mq-muted);
  line-height: 1.65;
}

.match-quiz-app.is-busy {
  cursor: progress;
}

@media (max-width: 760px) {
  .mq-start {
    grid-template-columns: 1fr;
  }

  .mq-start-copy {
    padding: 28px 22px 24px;
  }

  .mq-start-visual {
    order: -1;
    padding: 14px 14px 0;
  }

  .mq-start-image-frame {
    max-height: 225px;
  }

  .mq-start-image-frame img {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

  .mq-start-facts {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .mq-start-facts > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .mq-start-facts strong {
    margin: 0;
  }

  .mq-start-button {
    width: 100%;
  }

  .mq-scorebar {
    align-items: flex-start;
  }

  .mq-goal-icons {
    max-width: 42%;
  }

  .mq-arena {
    min-height: 395px;
    padding: 25px 18px 28px;
  }

  .mq-narrative {
    min-height: 135px;
    padding: 22px 19px;
  }

  .mq-stage-head {
    margin-bottom: 14px;
  }

  .mq-question-timer {
    width: 54px;
    height: 54px;
  }

  .mq-option {
    min-height: 55px;
    padding: 13px 14px;
  }

  .mq-final-actions {
    flex-direction: column;
  }

  .mq-final-actions .mq-button,
  .mq-login-prompt .mq-button {
    width: 100%;
  }
}

/* MF-MQ-ATTACK-CARDS-20260914 */
.mq-option.mq-attack-option {
  min-height: 82px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.mq-attack-option .mq-option-index {
  width: 31px;
  height: 31px;
}

.mq-attack-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.mq-attack-title {
  color: var(--mq-red-dark);
  font-size: clamp(.7rem, 1.7vw, .8rem);
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: .05em;
}

.mq-attack-action {
  color: var(--mq-charcoal);
  font-size: clamp(.92rem, 2.2vw, 1rem);
  font-weight: 850;
  line-height: 1.28;
}

.mq-attack-meta {
  margin-top: 2px;
  color: rgba(65, 51, 43, .72);
  font-size: clamp(.71rem, 1.8vw, .79rem);
  font-weight: 850;
  line-height: 1.25;
}

