#mh-quiz-app {
      --mh-ink: #211419;
      --mh-muted: #725f66;
      --mh-wine: #4d1020;
      --mh-wine-2: #761a31;
      --mh-ruby: #a92d48;
      --mh-copper: #c97845;
      --mh-copper-2: #e2a36e;
      --mh-cream: #fffaf4;
      --mh-paper: #f6eee5;
      --mh-card: rgba(255, 252, 247, .96);
      --mh-border: rgba(86, 24, 40, .14);
      --mh-green: #176943;
      --mh-green-bg: #edf8f1;
      --mh-red: #9a2534;
      --mh-red-bg: #fff0f1;
      --mh-shadow: 0 24px 70px rgba(55, 13, 26, .12);
      color: var(--mh-ink);
      font-family: "Assistant", "assistant-regular", Arial, sans-serif;
      background:
        radial-gradient(circle at 12% 5%, rgba(201, 120, 69, .14), transparent 22%),
        radial-gradient(circle at 88% 30%, rgba(118, 26, 49, .10), transparent 24%),
        linear-gradient(180deg, #fbf7f2 0%, #f5ede4 100%);
      width: 100vw;
      max-width: 100vw;
      margin-inline: calc(50% - 50vw);
      margin-block-start: -15px !important;
      margin-block-end: -15px !important;
      overflow: hidden;
      min-height: 100vh;
}

/* Secure server edition: identity, status and leaderboard components. */
#mh-quiz-app .mh-system-notice {
  margin: 18px 18px 0;
  padding: 14px 18px;
  border: 1px solid rgba(154, 37, 52, .28);
  border-radius: 15px;
  color: #781a2b;
  background: linear-gradient(135deg, #fff7f4, #fff0f1);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
}

#mh-quiz-app .mh-player-block {
  display: grid;
  grid-template-columns: 54px minmax(220px, 1fr) minmax(190px, 290px);
  gap: 16px;
  align-items: center;
  margin: 26px 0 4px;
  padding: 18px 20px;
  border: 1px solid rgba(86, 24, 40, .13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 20%, rgba(226, 163, 110, .14), transparent 28%),
    rgba(255, 255, 255, .76);
}

#mh-quiz-app .mh-player-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff7eb;
  background: linear-gradient(145deg, var(--mh-wine-2), var(--mh-wine));
  box-shadow: 0 9px 24px rgba(77, 16, 32, .19);
  font-size: 23px;
}

#mh-quiz-app .mh-player-copy { display: grid; gap: 3px; cursor: pointer; }
#mh-quiz-app .mh-player-copy strong { color: var(--mh-wine); font-size: 17px; font-weight: 900; }
#mh-quiz-app .mh-player-copy small { color: var(--mh-muted); font-size: 14px; line-height: 1.45; }

#mh-quiz-app .mh-player-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid rgba(86, 24, 40, .20);
  border-radius: 14px;
  outline: none;
  color: var(--mh-ink);
  background: #fff;
  font-size: 16px;
  font-weight: 750;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#mh-quiz-app .mh-player-input:focus {
  border-color: var(--mh-copper);
  box-shadow: 0 0 0 4px rgba(201, 120, 69, .13);
  transform: translateY(-1px);
}

#mh-quiz-app .mh-start-btn.is-loading,
#mh-quiz-app .mh-next-btn.is-loading,
#mh-quiz-app .mh-secondary-btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .82;
}

#mh-quiz-app .mh-start-btn.is-loading::after,
#mh-quiz-app .mh-next-btn.is-loading::after,
#mh-quiz-app .mh-secondary-btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-inline-start: 10px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
  vertical-align: -3px;
  animation: mhSecureSpin .72s linear infinite;
}

@keyframes mhSecureSpin { to { transform: rotate(360deg); } }

#mh-quiz-app .mh-leaderboard {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid rgba(86, 24, 40, .14);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255,255,255,.94), rgba(255,247,238,.86));
  box-shadow: 0 18px 46px rgba(55, 13, 26, .08);
}

#mh-quiz-app .mh-leaderboard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--mh-wine), var(--mh-ruby), var(--mh-copper-2));
}

#mh-quiz-app .mh-leaderboard-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px 25px 18px;
}

#mh-quiz-app .mh-leaderboard-head span {
  color: var(--mh-copper);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .035em;
}

#mh-quiz-app .mh-leaderboard-head h4 {
  margin: 3px 0 2px;
  color: var(--mh-wine);
  font-size: 25px;
  font-weight: 950;
}

#mh-quiz-app .mh-leaderboard-head p { margin: 0; color: var(--mh-muted); font-size: 14px; font-weight: 700; }

#mh-quiz-app .mh-leaderboard-medal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff4df;
  background: linear-gradient(145deg, #d99a55, #8c2139);
  box-shadow: 0 10px 25px rgba(124, 36, 53, .22);
  font-size: 25px;
  animation: mhMedalPulse 3.4s ease-in-out infinite;
}

@keyframes mhMedalPulse {
  0%, 100% { transform: scale(1) rotate(0); box-shadow: 0 10px 25px rgba(124, 36, 53, .22); }
  50% { transform: scale(1.06) rotate(5deg); box-shadow: 0 13px 30px rgba(201, 120, 69, .32); }
}

#mh-quiz-app .mh-leaderboard-list { padding: 0 20px 17px; }

#mh-quiz-app .mh-leaderboard-row {
  display: grid;
  grid-template-columns: 48px minmax(120px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 13px;
  border-top: 1px solid rgba(86, 24, 40, .09);
}

#mh-quiz-app .mh-leaderboard-row:first-child { border-top: 0; }
#mh-quiz-app .mh-leaderboard-place { color: var(--mh-wine); font-size: 17px; font-weight: 950; }
#mh-quiz-app .mh-leaderboard-row:nth-child(1) .mh-leaderboard-place { color: #b36e1f; font-size: 21px; }
#mh-quiz-app .mh-leaderboard-name { overflow: hidden; color: var(--mh-ink); font-size: 16px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
#mh-quiz-app .mh-leaderboard-score { color: var(--mh-green); font-size: 15px; font-weight: 900; }
#mh-quiz-app .mh-leaderboard-time { min-width: 86px; color: var(--mh-muted); font-size: 14px; font-weight: 750; text-align: left; direction: rtl; }
#mh-quiz-app .mh-leaderboard-empty { padding: 22px 12px; color: var(--mh-muted); text-align: center; font-weight: 750; }
#mh-quiz-app .mh-leaderboard-note { margin: 0; padding: 13px 24px 17px; border-top: 1px solid rgba(86,24,40,.08); color: var(--mh-muted); font-size: 13px; line-height: 1.45; }

#mh-quiz-app .mh-rank-summary {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: center;
  margin: 22px auto;
  max-width: 760px;
  padding: 19px 22px;
  border: 1px solid rgba(201, 120, 69, .32);
  border-radius: 20px;
  background: linear-gradient(135deg, #fffaf2, #fff1e4);
}

#mh-quiz-app .mh-rank-summary[hidden] { display: none; }
#mh-quiz-app .mh-rank-badge { display: grid; grid-template-columns: auto auto; place-content: center; width: 70px; height: 70px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--mh-copper), var(--mh-wine-2)); box-shadow: 0 10px 26px rgba(93, 25, 43, .20); font-size: 20px; font-weight: 800; }
#mh-quiz-app .mh-rank-badge b { font-size: 25px; }
#mh-quiz-app .mh-rank-summary span { color: var(--mh-copper); font-size: 13px; font-weight: 900; }
#mh-quiz-app .mh-rank-summary h4 { margin: 2px 0 3px; color: var(--mh-wine); font-size: 21px; font-weight: 950; }
#mh-quiz-app .mh-rank-summary p { margin: 0; color: var(--mh-muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 720px) {
  #mh-quiz-app .mh-player-block { grid-template-columns: 46px 1fr; padding: 16px; }
  #mh-quiz-app .mh-player-icon { width: 42px; height: 42px; }
  #mh-quiz-app .mh-player-input { grid-column: 1 / -1; }
  #mh-quiz-app .mh-leaderboard-row { grid-template-columns: 36px minmax(90px, 1fr) auto; gap: 8px; }
  #mh-quiz-app .mh-leaderboard-time { grid-column: 2 / -1; min-width: 0; text-align: right; }
  #mh-quiz-app .mh-rank-summary { grid-template-columns: 62px 1fr; padding: 16px; }
  #mh-quiz-app .mh-rank-badge { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  #mh-quiz-app .mh-leaderboard-medal,
  #mh-quiz-app .mh-start-btn.is-loading::after,
  #mh-quiz-app .mh-next-btn.is-loading::after,
  #mh-quiz-app .mh-secondary-btn.is-loading::after { animation: none; }
}

    #mh-quiz-app * { box-sizing: border-box; }
    #mh-quiz-app button,
    #mh-quiz-app select { font: inherit; }

    #mh-quiz-app .mh-shell { min-height: 100vh; }
    #mh-quiz-app .mh-inner { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

    #mh-quiz-app .mh-hero {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      color: #fff;
      background:
        radial-gradient(circle at 16% 10%, rgba(226, 163, 110, .20), transparent 21%),
        radial-gradient(circle at 86% 84%, rgba(169, 45, 72, .28), transparent 28%),
        linear-gradient(135deg, #1d0a10 0%, #3a0c1a 48%, #16080e 100%);
      border-bottom: 2px solid rgba(201, 120, 69, .8);
      box-shadow: 0 18px 50px rgba(39, 8, 17, .25);
    }

    #mh-quiz-app .mh-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: .45;
      background:
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
      pointer-events: none;
    }

    #mh-quiz-app .mh-hero::after {
      content: "?";
      position: absolute;
      left: -30px;
      bottom: -145px;
      font-family: Georgia, serif;
      font-size: 460px;
      line-height: 1;
      color: rgba(255,255,255,.025);
      transform: rotate(-8deg);
      pointer-events: none;
      z-index: -1;
    }

    #mh-quiz-app .mh-hero-inner {
      min-height: 430px;
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 42px;
      align-items: center;
      padding: 54px 0 48px;
      position: relative;
      z-index: 1;
    }

    #mh-quiz-app .mh-home-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 43px;
      margin-bottom: 20px;
      padding: 0 17px;
      border: 1px solid rgba(239, 189, 149, .48);
      border-radius: 12px;
      color: #fff1df;
      background: rgba(255, 255, 255, .07);
      box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
      font-size: 15px;
      font-weight: 900;
      text-decoration: none;
      backdrop-filter: blur(6px);
      transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }

    #mh-quiz-app .mh-home-btn:hover {
      color: #fff;
      border-color: #e2a36e;
      background: rgba(226, 163, 110, .16);
      transform: translateY(-1px);
    }

    #mh-quiz-app .mh-home-btn:focus-visible {
      outline: 3px solid rgba(239, 189, 149, .55);
      outline-offset: 3px;
    }

    #mh-quiz-app .mh-home-btn span {
      font-size: 19px;
      line-height: 1;
    }

    #mh-quiz-app .mh-kicker {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #efbd95;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: .06em;
      margin-bottom: 13px;
    }

    #mh-quiz-app .mh-kicker::before {
      content: "";
      width: 44px;
      height: 1px;
      background: linear-gradient(90deg, transparent, #dc9361);
    }

    #mh-quiz-app .mh-hero h1 {
      margin: 0;
      font-family: "ba-franknatan-bold", "Assistant", Arial, sans-serif;
      font-size: clamp(54px, 7vw, 88px);
      line-height: .98;
      font-weight: 900;
      color: #fff1df;
      text-shadow: 0 8px 34px rgba(0,0,0,.28);
    }

    #mh-quiz-app .mh-hero h2 {
      margin: 12px 0 0;
      color: #eaa676;
      font-size: clamp(22px, 2.7vw, 32px);
      font-weight: 800;
    }

    #mh-quiz-app .mh-hero p {
      max-width: 740px;
      margin: 22px 0 0;
      color: rgba(255,255,255,.88);
      font-size: clamp(17px, 1.5vw, 20px);
      line-height: 1.75;
      font-weight: 500;
    }

    #mh-quiz-app .mh-brain-wrap {
      position: relative;
      width: 270px;
      height: 270px;
      justify-self: end;
      display: grid;
      place-items: center;
    }

    #mh-quiz-app .mh-brain-wrap::before,
    #mh-quiz-app .mh-brain-wrap::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      border: 1px solid rgba(226,163,110,.25);
    }
    #mh-quiz-app .mh-brain-wrap::before { inset: 0; box-shadow: 0 0 0 28px rgba(226,163,110,.025); }
    #mh-quiz-app .mh-brain-wrap::after { inset: 42px; border-color: rgba(255,255,255,.12); }

    #mh-quiz-app .mh-brain {
      width: 165px;
      height: 165px;
      color: #eda873;
      filter: drop-shadow(0 14px 26px rgba(0,0,0,.28));
    }

    #mh-quiz-app .mh-brain svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

    #mh-quiz-app .mh-main { padding: 38px 0 54px; }

    #mh-quiz-app .mh-panel {
      background: var(--mh-card);
      border: 1px solid var(--mh-border);
      border-radius: 26px;
      box-shadow: var(--mh-shadow);
      overflow: hidden;
    }

    #mh-quiz-app .mh-start { padding: 34px; }
    #mh-quiz-app .mh-start-head { text-align: center; margin-bottom: 28px; }
    #mh-quiz-app .mh-start-head h3 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 38px); color: var(--mh-wine); font-weight: 900; }
    #mh-quiz-app .mh-start-head p {
      max-width: 940px;
      margin: 0 auto;
      color: #4f3941;
      font-size: clamp(17px, 1.45vw, 19px);
      line-height: 1.5;
      font-weight: 700;
      text-wrap: balance;
    }

    #mh-quiz-app .mh-modes {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 14px;
      margin: 12px 0 20px;
    }

    #mh-quiz-app .mh-mode {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(77,16,32,.12);
      border-radius: 18px;
      background: #fff;
      padding: 16px 13px 14px;
      text-align: center;
      cursor: pointer;
      color: var(--mh-ink);
      transition: .2s ease;
      min-height: 110px;
      line-height: 1.2;
    }
    #mh-quiz-app .mh-mode::before {
      content: "";
      position: absolute;
      top: 0;
      right: 50%;
      width: 48px;
      height: 3px;
      border-radius: 0 0 999px 999px;
      background: linear-gradient(90deg, var(--mh-copper), var(--mh-ruby));
      opacity: .48;
      transform: translateX(50%);
      transition: width .2s ease, opacity .2s ease;
    }
    #mh-quiz-app .mh-mode:hover { transform: translateY(-2px); border-color: rgba(169,45,72,.35); box-shadow: 0 14px 30px rgba(71,18,32,.08); }
    #mh-quiz-app .mh-mode.is-selected { background: linear-gradient(180deg, #fff6ee, #fff); border-color: var(--mh-copper); box-shadow: 0 0 0 3px rgba(201,120,69,.10); }
    #mh-quiz-app .mh-mode:hover::before,
    #mh-quiz-app .mh-mode.is-selected::before { width: 82px; opacity: 1; }
    #mh-quiz-app .mh-mode strong {
      display: block;
      margin: 0 0 7px;
      color: #3f0a18;
      font-size: 20px;
      line-height: 1.08;
      font-weight: 900;
      letter-spacing: -.015em;
    }
    #mh-quiz-app .mh-mode-meta {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      width: 100%;
    }
    #mh-quiz-app .mh-mode-desc {
      display: block;
      color: #584249;
      font-size: 14px;
      line-height: 1.22;
      font-weight: 700;
    }
    #mh-quiz-app .mh-mode-count {
      display: block;
      color: #854428;
      font-size: 13.5px;
      line-height: 1.18;
      font-weight: 800;
    }
    #mh-quiz-app .mh-mode.is-selected strong { color: #5c0d22; }
    #mh-quiz-app .mh-mode.is-selected .mh-mode-count { color: #9a4f2c; }

    #mh-quiz-app .mh-filter-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin: 4px 0 20px;
    }
    #mh-quiz-app .mh-filter-block {
      padding: 18px;
      border: 1px solid rgba(77,16,32,.10);
      border-radius: 18px;
      background: linear-gradient(180deg, #fffdfb, #fff8f1);
    }
    #mh-quiz-app .mh-filter-title {
      display: flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 13px;
      color: var(--mh-wine);
      font-size: 16px;
      font-weight: 900;
    }
    #mh-quiz-app .mh-filter-title span {
      width: 27px;
      height: 27px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #fff;
      background: var(--mh-wine);
      font-size: 13px;
    }
    #mh-quiz-app .mh-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
    #mh-quiz-app .mh-filter-pill {
      min-height: 40px;
      padding: 7px 14px;
      border-radius: 999px;
      border: 1px solid rgba(77,16,32,.14);
      background: #fff;
      color: #493038;
      font: inherit;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      transition: .18s ease;
    }
    #mh-quiz-app .mh-filter-pill:hover { border-color: rgba(169,45,72,.42); transform: translateY(-1px); }
    #mh-quiz-app .mh-filter-pill.is-selected {
      color: #fff;
      border-color: var(--mh-wine);
      background: linear-gradient(180deg, var(--mh-wine-2), var(--mh-wine));
      box-shadow: 0 7px 16px rgba(77,16,32,.16);
    }

    #mh-quiz-app .mh-bank-showcase {
      position: relative;
      isolation: isolate;
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      align-items: center;
      gap: 24px;
      margin: 0 0 24px;
      padding: 22px 26px;
      overflow: hidden;
      border: 1px solid rgba(201,120,69,.34);
      border-radius: 22px;
      background:
        radial-gradient(circle at 9% 50%, rgba(226,163,110,.22), transparent 28%),
        linear-gradient(135deg, #fffaf4 0%, #fff2e4 58%, #fffaf6 100%);
      box-shadow: 0 16px 38px rgba(77,16,32,.08), inset 0 0 0 1px rgba(255,255,255,.75);
    }
    #mh-quiz-app .mh-bank-showcase::after {
      content: "";
      position: absolute;
      z-index: -1;
      top: -90%;
      right: -24%;
      width: 34%;
      height: 280%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent);
      transform: rotate(18deg);
      animation: mhBankSheen 6.5s ease-in-out infinite;
      pointer-events: none;
    }
    #mh-quiz-app .mh-bank-emblem {
      position: relative;
      width: 128px;
      height: 128px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #fff7eb;
      background: radial-gradient(circle at 36% 28%, #a92d48, #681629 62%, #3c0d1a 100%);
      box-shadow: 0 16px 34px rgba(77,16,32,.24), inset 0 0 0 1px rgba(255,255,255,.12);
    }
    #mh-quiz-app .mh-bank-emblem::before,
    #mh-quiz-app .mh-bank-emblem::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      border: 1px solid rgba(201,120,69,.48);
    }
    #mh-quiz-app .mh-bank-emblem::before { inset: -8px; animation: mhBankOrbit 9s linear infinite; border-top-color: #e8ad78; }
    #mh-quiz-app .mh-bank-emblem::after { inset: 8px; border-color: rgba(255,255,255,.13); }
    #mh-quiz-app .mh-bank-number { position: relative; z-index: 1; text-align: center; font-variant-numeric: tabular-nums; }
    #mh-quiz-app .mh-bank-number strong { display: block; font-size: 29px; line-height: 1; letter-spacing: -.025em; }
    #mh-quiz-app .mh-bank-number small { display: block; margin-top: 7px; color: #efbd95; font-size: 12px; font-weight: 900; }
    #mh-quiz-app .mh-bank-live {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 7px;
      color: #8f3e25;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .02em;
    }
    #mh-quiz-app .mh-bank-live i {
      position: relative;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--mh-ruby);
      box-shadow: 0 0 0 0 rgba(169,45,72,.38);
      animation: mhBankPulse 2s ease-out infinite;
    }
    #mh-quiz-app .mh-bank-copy h4 {
      margin: 0;
      color: var(--mh-wine);
      font-size: clamp(22px, 2.4vw, 32px);
      line-height: 1.22;
      font-weight: 900;
    }
    #mh-quiz-app .mh-bank-copy h4 b { color: var(--mh-ruby); font-variant-numeric: tabular-nums; }
    #mh-quiz-app .mh-bank-copy > p { margin: 8px 0 0; color: #583f47; font-size: 15.5px; line-height: 1.55; font-weight: 700; }
    #mh-quiz-app .mh-selection-summary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 12px;
      padding: 8px 12px;
      border-radius: 999px;
      color: #74412b;
      background: rgba(255,255,255,.76);
      border: 1px solid rgba(201,120,69,.25);
      font-size: 13px;
      line-height: 1.35;
      font-weight: 850;
    }
    #mh-quiz-app .mh-selection-summary::before { content: "✦"; color: var(--mh-ruby); }

    #mh-quiz-app .mh-difficulty-cards {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }
    #mh-quiz-app .mh-level-card {
      min-width: 0;
      min-height: 102px;
      padding: 12px 8px 10px;
      border-radius: 15px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
    #mh-quiz-app .mh-level-visual {
      height: 27px;
      display: flex;
      align-items: flex-end;
      gap: 4px;
      margin-bottom: 7px;
      direction: ltr;
    }
    #mh-quiz-app .mh-level-bar {
      width: 7px;
      border-radius: 5px 5px 2px 2px;
      background: #e6d9d2;
      transform-origin: bottom;
      transition: height .25s ease, background .2s ease, transform .2s ease;
    }
    #mh-quiz-app .mh-level-bar:nth-child(1) { height: 10px; }
    #mh-quiz-app .mh-level-bar:nth-child(2) { height: 18px; }
    #mh-quiz-app .mh-level-bar:nth-child(3) { height: 26px; }
    #mh-quiz-app .mh-level-card[data-level="all"] .mh-level-bar,
    #mh-quiz-app .mh-level-card[data-level="1"] .mh-level-bar:nth-child(1),
    #mh-quiz-app .mh-level-card[data-level="2"] .mh-level-bar:nth-child(-n+2),
    #mh-quiz-app .mh-level-card[data-level="3"] .mh-level-bar:nth-child(-n+3) { background: linear-gradient(180deg, var(--mh-copper-2), var(--mh-ruby)); }
    #mh-quiz-app .mh-level-card strong { display: block; font-size: 14px; line-height: 1.15; }
    #mh-quiz-app .mh-level-card small { display: block; margin-top: 5px; color: #8a747a; font-size: 10.5px; line-height: 1.25; font-weight: 750; }
    #mh-quiz-app .mh-level-card.is-selected small { color: rgba(255,255,255,.78); }
    #mh-quiz-app .mh-level-card.is-selected .mh-level-bar { background: #f5c49c !important; animation: mhLevelRise .65s cubic-bezier(.2,.8,.2,1) both; }
    #mh-quiz-app .mh-level-card.is-selected .mh-level-bar:nth-child(2) { animation-delay: .08s; }
    #mh-quiz-app .mh-level-card.is-selected .mh-level-bar:nth-child(3) { animation-delay: .16s; }

    #mh-quiz-app .mh-track-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    #mh-quiz-app .mh-track-card {
      position: relative;
      isolation: isolate;
      min-width: 0;
      min-height: 64px;
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      padding: 8px 9px;
      overflow: hidden;
      border-radius: 15px;
      text-align: right;
    }
    #mh-quiz-app .mh-track-card::after {
      content: "";
      position: absolute;
      z-index: 0;
      top: -45%;
      right: -70%;
      width: 55%;
      height: 190%;
      opacity: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
      transform: rotate(15deg);
      pointer-events: none;
    }
    #mh-quiz-app .mh-track-card.is-selected::after { animation: mhChoiceSweep 1.15s ease-out both; }
    #mh-quiz-app .mh-track-symbol {
      position: relative;
      z-index: 1;
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border-radius: 11px;
      color: var(--mh-ruby);
      background: linear-gradient(145deg, #fff4e8, #f8e4d8);
      border: 1px solid rgba(201,120,69,.25);
      font-family: Arial, sans-serif;
      font-size: 16px;
      line-height: 1;
      font-weight: 900;
      transition: transform .22s ease, color .22s ease, background .22s ease;
    }
    #mh-quiz-app .mh-track-symbol::after {
      content: "";
      position: absolute;
      inset: -4px;
      border: 1px solid transparent;
      border-top-color: rgba(201,120,69,.72);
      border-radius: 12px;
      opacity: 0;
    }
    #mh-quiz-app .mh-track-copy { position: relative; z-index: 1; min-width: 0; display: block; }
    #mh-quiz-app .mh-track-copy strong { display: block; color: inherit; font-size: 13.5px; line-height: 1.2; font-weight: 900; }
    #mh-quiz-app .mh-track-copy small { display: block; margin-top: 3px; color: #765f67; font-size: 10.2px; line-height: 1.25; font-weight: 800; }
    #mh-quiz-app .mh-track-card:hover .mh-track-symbol { transform: translateY(-2px) rotate(-4deg); }
    #mh-quiz-app .mh-track-card.is-selected .mh-track-symbol { color: #fff7ec; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.26); }
    #mh-quiz-app .mh-track-card.is-selected .mh-track-symbol::after { opacity: 1; animation: mhTrackOrbit 2.8s linear infinite; }
    #mh-quiz-app .mh-track-card.is-selected .mh-track-copy small { color: rgba(255,255,255,.76); }

    #mh-quiz-app .mh-challenge-block { margin: -4px 0 20px; }
    #mh-quiz-app .mh-challenge-pills {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 9px;
    }
    #mh-quiz-app .mh-challenge-pill {
      position: relative;
      isolation: isolate;
      min-width: 0;
      min-height: 74px;
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      padding: 8px 9px;
      overflow: hidden;
      border-radius: 16px;
      text-align: right;
    }
    #mh-quiz-app .mh-challenge-pill::before {
      content: "";
      position: absolute;
      z-index: 0;
      inset: auto -24px -34px auto;
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(201,120,69,.18), transparent 68%);
      transition: transform .28s ease, opacity .28s ease;
    }
    #mh-quiz-app .mh-challenge-pill::after {
      content: "";
      position: absolute;
      z-index: 0;
      top: -55%;
      right: -80%;
      width: 58%;
      height: 210%;
      opacity: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.40), transparent);
      transform: rotate(16deg);
      pointer-events: none;
    }
    #mh-quiz-app .mh-challenge-pill:hover::before { transform: scale(1.35); }
    #mh-quiz-app .mh-challenge-pill.is-selected::after { animation: mhChoiceSweep 1.15s ease-out both; }
    #mh-quiz-app .mh-challenge-mark {
      position: relative;
      z-index: 1;
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: var(--mh-ruby);
      background: #fff5eb;
      border: 1px solid rgba(201,120,69,.28);
      font-family: Arial, sans-serif;
      font-size: 16px;
      line-height: 1;
      font-weight: 900;
      transition: transform .22s ease, color .22s ease, background .22s ease;
    }
    #mh-quiz-app .mh-challenge-mark::after {
      content: "";
      position: absolute;
      inset: -4px;
      border: 1px solid rgba(201,120,69,.28);
      border-radius: 50%;
      opacity: 0;
      transform: scale(.72);
    }
    #mh-quiz-app .mh-challenge-copy { position: relative; z-index: 1; min-width: 0; display: block; }
    #mh-quiz-app .mh-challenge-copy strong { display: block; color: inherit; font-size: 13.5px; line-height: 1.2; font-weight: 900; }
    #mh-quiz-app .mh-challenge-copy small { display: block; margin-top: 3px; color: #765f67; font-size: 10.2px; line-height: 1.25; font-weight: 800; }
    #mh-quiz-app .mh-challenge-pill:hover .mh-challenge-mark { transform: scale(1.08) rotate(-6deg); }
    #mh-quiz-app .mh-challenge-pill.is-selected .mh-challenge-mark { color: #fff8ef; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.26); animation: mhChallengeBeat 2.2s ease-in-out infinite; }
    #mh-quiz-app .mh-challenge-pill.is-selected .mh-challenge-mark::after { opacity: 1; animation: mhChallengeRing 2.2s ease-out infinite; }
    #mh-quiz-app .mh-challenge-pill.is-selected .mh-challenge-copy small { color: rgba(255,255,255,.76); }
    #mh-quiz-app .mh-track-card:focus-visible,
    #mh-quiz-app .mh-challenge-pill:focus-visible { outline: 3px solid rgba(201,120,69,.42); outline-offset: 3px; }

    #mh-quiz-app .mh-length-block { margin: -4px 0 20px; }
    #mh-quiz-app .mh-length-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 13px;
    }
    #mh-quiz-app .mh-length-heading .mh-filter-title { margin-bottom: 0; }
    #mh-quiz-app .mh-length-availability { color: #806970; font-size: 12px; font-weight: 800; text-align: left; }
    #mh-quiz-app .mh-length-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }
    #mh-quiz-app .mh-length-card {
      --mh-length-accent: var(--mh-copper);
      position: relative;
      isolation: isolate;
      min-width: 0;
      min-height: 104px;
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      padding: 13px 14px;
      overflow: hidden;
      border: 1px solid rgba(77,16,32,.13);
      border-radius: 18px;
      color: #493038;
      background: linear-gradient(145deg, #fff, #fffaf6);
      text-align: right;
      cursor: pointer;
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
    }
    #mh-quiz-app .mh-length-card::before {
      content: "";
      position: absolute;
      z-index: 0;
      left: -26px;
      bottom: -42px;
      width: 104px;
      height: 104px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(201,120,69,.18), transparent 67%);
      transition: transform .25s ease;
    }
    #mh-quiz-app .mh-length-card:hover:not(:disabled) {
      transform: translateY(-2px);
      border-color: rgba(169,45,72,.34);
      box-shadow: 0 12px 26px rgba(55,13,26,.09);
    }
    #mh-quiz-app .mh-length-card:hover:not(:disabled)::before { transform: scale(1.25); }
    #mh-quiz-app .mh-length-card.is-selected {
      color: #fff;
      border-color: var(--mh-wine);
      background: linear-gradient(145deg, var(--mh-wine-2), var(--mh-wine));
      box-shadow: 0 13px 28px rgba(77,16,32,.20);
      animation: mhLengthSettle .48s cubic-bezier(.2,.85,.2,1) both;
    }
    #mh-quiz-app .mh-length-card:disabled {
      opacity: .42;
      filter: grayscale(.38);
      cursor: not-allowed;
      box-shadow: none;
    }
    #mh-quiz-app .mh-length-card:focus-visible { outline: 3px solid rgba(201,120,69,.42); outline-offset: 3px; }
    #mh-quiz-app .mh-length-dial {
      position: relative;
      z-index: 1;
      width: 56px;
      height: 56px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: conic-gradient(var(--mh-length-accent) var(--mh-length-progress), #eaded7 0);
      box-shadow: inset 0 0 0 1px rgba(77,16,32,.05);
    }
    #mh-quiz-app .mh-length-dial::before {
      content: "";
      position: absolute;
      inset: 5px;
      border-radius: 50%;
      background: #fffaf6;
      box-shadow: inset 0 0 0 1px rgba(77,16,32,.08);
    }
    #mh-quiz-app .mh-length-dial::after {
      content: "";
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 1px solid transparent;
      border-top-color: #efbd95;
      opacity: 0;
    }
    #mh-quiz-app .mh-length-dial b {
      position: relative;
      z-index: 1;
      color: var(--mh-wine);
      font-size: 20px;
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }
    #mh-quiz-app .mh-length-copy { position: relative; z-index: 1; min-width: 0; }
    #mh-quiz-app .mh-length-copy strong { display: block; font-size: 17px; line-height: 1.2; font-weight: 900; }
    #mh-quiz-app .mh-length-copy small { display: block; margin-top: 5px; color: #7c666d; font-size: 12px; line-height: 1.3; font-weight: 800; }
    #mh-quiz-app .mh-length-card.is-selected .mh-length-dial { background: conic-gradient(#efbd95 var(--mh-length-progress), rgba(255,255,255,.18) 0); }
    #mh-quiz-app .mh-length-card.is-selected .mh-length-dial::before { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
    #mh-quiz-app .mh-length-card.is-selected .mh-length-dial::after { opacity: 1; animation: mhLengthOrbit 2.8s linear infinite; }
    #mh-quiz-app .mh-length-card.is-selected .mh-length-dial b { color: #fff8ef; }
    #mh-quiz-app .mh-length-card.is-selected .mh-length-copy small { color: rgba(255,255,255,.76); }
    #mh-quiz-app .mh-length-card[data-length="10"] { --mh-length-progress: 90deg; }
    #mh-quiz-app .mh-length-card[data-length="20"] { --mh-length-progress: 145deg; }
    #mh-quiz-app .mh-length-card[data-length="50"] { --mh-length-progress: 240deg; }
    #mh-quiz-app .mh-length-card[data-length="100"] { --mh-length-progress: 360deg; }

    #mh-quiz-app .mh-pacing-block { margin: -4px 0 20px; }
    #mh-quiz-app .mh-pacing-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    #mh-quiz-app .mh-pacing-card {
      position: relative;
      isolation: isolate;
      min-width: 0;
      min-height: 112px;
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr) auto;
      align-items: center;
      gap: 13px;
      padding: 15px 16px;
      overflow: hidden;
      border: 1px solid rgba(77,16,32,.13);
      border-radius: 18px;
      color: #493038;
      background: linear-gradient(145deg, #fff, #fff9f4);
      text-align: right;
      cursor: pointer;
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    }
    #mh-quiz-app .mh-pacing-card::before {
      content: "";
      position: absolute;
      z-index: -1;
      left: -34px;
      bottom: -58px;
      width: 145px;
      height: 145px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(201,120,69,.22), transparent 68%);
      transition: transform .32s ease;
    }
    #mh-quiz-app .mh-pacing-card:hover { transform: translateY(-2px); border-color: rgba(169,45,72,.34); box-shadow: 0 12px 28px rgba(55,13,26,.09); }
    #mh-quiz-app .mh-pacing-card:hover::before { transform: scale(1.22); }
    #mh-quiz-app .mh-pacing-card:focus-visible { outline: 3px solid rgba(201,120,69,.42); outline-offset: 3px; }
    #mh-quiz-app .mh-pacing-card.is-selected {
      color: #fff;
      border-color: var(--mh-wine);
      background: linear-gradient(145deg, var(--mh-wine-2), var(--mh-wine));
      box-shadow: 0 13px 28px rgba(77,16,32,.20);
      animation: mhLengthSettle .48s cubic-bezier(.2,.85,.2,1) both;
    }
    #mh-quiz-app .mh-pacing-icon {
      position: relative;
      width: 56px;
      height: 56px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: var(--mh-ruby);
      background: #fff4e9;
      border: 1px solid rgba(201,120,69,.32);
      font-family: Arial, sans-serif;
      font-size: 27px;
      line-height: 1;
      font-weight: 900;
    }
    #mh-quiz-app .mh-pacing-card[data-pacing="timed"] .mh-pacing-icon::after {
      content: "";
      position: absolute;
      inset: -5px;
      border: 2px solid transparent;
      border-top-color: var(--mh-copper);
      border-radius: 50%;
    }
    #mh-quiz-app .mh-pacing-card.is-selected[data-pacing="timed"] .mh-pacing-icon::after { border-top-color: #efbd95; animation: mhLengthOrbit 2.4s linear infinite; }
    #mh-quiz-app .mh-pacing-card.is-selected .mh-pacing-icon { color: #fff7ec; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.25); }
    #mh-quiz-app .mh-pacing-copy { min-width: 0; }
    #mh-quiz-app .mh-pacing-copy strong { display: block; font-size: 18px; line-height: 1.2; font-weight: 900; }
    #mh-quiz-app .mh-pacing-copy small { display: block; margin-top: 5px; color: #765f67; font-size: 12.5px; line-height: 1.4; font-weight: 800; }
    #mh-quiz-app .mh-pacing-card.is-selected .mh-pacing-copy small { color: rgba(255,255,255,.78); }
    #mh-quiz-app .mh-pacing-tag {
      align-self: start;
      padding: 5px 8px;
      border-radius: 999px;
      color: #8d4327;
      background: #fff0e2;
      border: 1px solid rgba(201,120,69,.24);
      font-size: 10.5px;
      font-style: normal;
      font-weight: 900;
      white-space: nowrap;
    }
    #mh-quiz-app .mh-pacing-card.is-selected .mh-pacing-tag { color: #fff4e5; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }

    @keyframes mhBankSheen {
      0%, 42% { transform: translateX(0) rotate(18deg); opacity: 0; }
      52% { opacity: .8; }
      75%, 100% { transform: translateX(-390%) rotate(18deg); opacity: 0; }
    }
    @keyframes mhBankOrbit { to { transform: rotate(360deg); } }
    @keyframes mhBankPulse {
      0% { box-shadow: 0 0 0 0 rgba(169,45,72,.42); }
      70%, 100% { box-shadow: 0 0 0 9px rgba(169,45,72,0); }
    }
    @keyframes mhLevelRise {
      0% { transform: scaleY(.18); opacity: .35; }
      100% { transform: scaleY(1); opacity: 1; }
    }
    @keyframes mhTrackOrbit { to { transform: rotate(360deg); } }
    @keyframes mhChoiceSweep {
      0% { right: -80%; opacity: 0; }
      30% { opacity: .75; }
      100% { right: 135%; opacity: 0; }
    }
    @keyframes mhChallengeBeat {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.08); }
    }
    @keyframes mhChallengeRing {
      0% { transform: scale(.72); opacity: .72; }
      75%, 100% { transform: scale(1.34); opacity: 0; }
    }
    @keyframes mhLengthOrbit { to { transform: rotate(360deg); } }
    @keyframes mhLengthSettle {
      0% { transform: scale(.965); }
      65% { transform: scale(1.015); }
      100% { transform: scale(1); }
    }

    #mh-quiz-app .mh-start-btn,
    #mh-quiz-app .mh-next-btn,
    #mh-quiz-app .mh-restart-btn {
      border: 0;
      min-height: 56px;
      border-radius: 14px;
      padding: 0 26px;
      background: linear-gradient(180deg, var(--mh-wine-2), var(--mh-wine));
      color: #fff;
      font-weight: 900;
      font-size: 18px;
      cursor: pointer;
      box-shadow: 0 12px 24px rgba(77,16,32,.20);
      transition: transform .18s ease, box-shadow .18s ease;
    }
    #mh-quiz-app .mh-start-btn:hover,
    #mh-quiz-app .mh-next-btn:hover,
    #mh-quiz-app .mh-restart-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(77,16,32,.24); }
    #mh-quiz-app .mh-start-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

    #mh-quiz-app .mh-start-actions { display: flex; justify-content: center; }

    #mh-quiz-app .mh-quiz { display: none; }
    #mh-quiz-app .mh-quiz.is-active { display: block; }
    #mh-quiz-app .mh-start.is-hidden { display: none; }

    #mh-quiz-app .mh-top {
      display: grid;
      grid-template-columns: minmax(0,1fr) auto;
      gap: 20px;
      align-items: center;
      padding: 22px 26px;
      background: linear-gradient(180deg, #fffaf5, #fff7f0);
      border-bottom: 1px solid rgba(77,16,32,.08);
    }

    #mh-quiz-app .mh-top-actions { display: flex; align-items: center; gap: 10px; }
    #mh-quiz-app .mh-exit-btn {
      min-height: 46px;
      padding: 0 15px;
      border-radius: 12px;
      border: 1px solid rgba(77,16,32,.18);
      background: #fff;
      color: var(--mh-wine);
      font-size: 14px;
      font-weight: 900;
      cursor: pointer;
      white-space: nowrap;
      transition: .18s ease;
    }
    #mh-quiz-app .mh-exit-btn:hover { border-color: var(--mh-copper); background: #fff8f1; transform: translateY(-1px); }
    #mh-quiz-app .mh-exit-btn:focus-visible,
    #mh-quiz-app .mh-prev-btn:focus-visible,
    #mh-quiz-app .mh-secondary-btn:focus-visible,
    #mh-quiz-app .mh-start-btn:focus-visible,
    #mh-quiz-app .mh-next-btn:focus-visible,
    #mh-quiz-app .mh-restart-btn:focus-visible { outline: 3px solid rgba(201,120,69,.42); outline-offset: 3px; }

    #mh-quiz-app .mh-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; color: var(--mh-muted); font-size: 14px; font-weight: 800; }
    #mh-quiz-app .mh-progress { width: 100%; height: 10px; border-radius: 999px; background: #eaded6; overflow: hidden; }
    #mh-quiz-app .mh-progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--mh-copper), var(--mh-ruby)); transition: width .35s ease; }

    #mh-quiz-app .mh-scorebox { display: flex; gap: 10px; }
    #mh-quiz-app .mh-stat { min-width: 92px; padding: 10px 12px; border-radius: 13px; background: #fff; border: 1px solid rgba(77,16,32,.09); text-align: center; }
    #mh-quiz-app .mh-stat b { display: block; color: var(--mh-wine); font-size: 21px; line-height: 1.1; }
    #mh-quiz-app .mh-stat small { color: var(--mh-muted); font-weight: 700; }

    #mh-quiz-app .mh-question-wrap { padding: 30px 32px 34px; }
    #mh-quiz-app .mh-question-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 16px;
    }
    #mh-quiz-app .mh-topic { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: #7c4526; background: #fff3e7; border: 1px solid rgba(201,120,69,.22); font-size: 13px; font-weight: 800; }
    #mh-quiz-app .mh-clock-zone { min-width: 0; display: flex; justify-content: flex-end; }
    #mh-quiz-app .mh-timer {
      --mh-timer-color: var(--mh-green);
      display: inline-grid;
      grid-template-columns: 62px minmax(0, auto) 36px;
      align-items: center;
      gap: 10px;
      min-width: 224px;
      min-height: 68px;
      padding: 5px 12px 5px 6px;
      border-radius: 18px;
      color: #2f2227;
      background: linear-gradient(145deg, #fff, #f5fbf7);
      border: 1px solid rgba(23,105,67,.20);
      box-shadow: 0 9px 24px rgba(55,13,26,.06);
      transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
      position: relative;
      isolation: isolate;
      overflow: hidden;
    }
    #mh-quiz-app .mh-timer > * { position: relative; z-index: 2; }
    #mh-quiz-app .mh-timer::before {
      content: "";
      position: absolute;
      z-index: 0;
      inset: -90%;
      opacity: 0;
      pointer-events: none;
      background: conic-gradient(from 0deg, transparent 0 68%, rgba(232,141,65,.25) 76%, transparent 86%);
      transition: opacity .25s ease;
    }
    #mh-quiz-app .mh-timer::after {
      content: "";
      position: absolute;
      z-index: 1;
      inset: 1px;
      border-radius: 16px;
      pointer-events: none;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.52);
    }
    #mh-quiz-app .mh-timer-dial {
      position: relative;
      width: 58px;
      height: 58px;
      display: grid;
      place-items: center;
      direction: ltr;
    }
    #mh-quiz-app .mh-timer-dial::after {
      content: "";
      position: absolute;
      inset: 5px;
      border-radius: 50%;
      border: 1px solid transparent;
      pointer-events: none;
    }
    #mh-quiz-app .mh-timer-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
    #mh-quiz-app .mh-timer-track,
    #mh-quiz-app .mh-timer-progress { fill: none; stroke-width: 5; }
    #mh-quiz-app .mh-timer-track { stroke: #e7dfda; }
    #mh-quiz-app .mh-timer-progress {
      stroke: var(--mh-timer-color);
      stroke-linecap: round;
      stroke-dasharray: 100;
      stroke-dashoffset: 0;
      transition: stroke-dashoffset .25s linear, stroke .2s ease;
    }
    #mh-quiz-app .mh-timer-dial strong {
      position: relative;
      z-index: 1;
      color: var(--mh-timer-color);
      font-family: Arial, sans-serif;
      font-size: 17px;
      line-height: 1;
      font-variant-numeric: tabular-nums;
      letter-spacing: -.03em;
    }
    #mh-quiz-app .mh-timer-copy b { display: block; color: var(--mh-timer-color); font-size: 13px; line-height: 1.2; font-weight: 900; }
    #mh-quiz-app .mh-timer-copy small { display: block; margin-top: 4px; color: #78656b; font-size: 10.5px; line-height: 1.25; font-weight: 800; }
    #mh-quiz-app .mh-sound-toggle {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      padding: 0;
      border-radius: 50%;
      border: 1px solid rgba(77,16,32,.13);
      color: var(--mh-wine);
      background: rgba(255,255,255,.82);
      box-shadow: 0 5px 14px rgba(55,13,26,.07);
      font-family: Arial, sans-serif;
      font-size: 17px;
      font-weight: 900;
      cursor: pointer;
      transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
    }
    #mh-quiz-app .mh-sound-toggle:hover { transform: scale(1.08); border-color: var(--mh-copper); background: #fff7ed; }
    #mh-quiz-app .mh-sound-toggle:focus-visible { outline: 3px solid rgba(201,120,69,.42); outline-offset: 2px; }
    #mh-quiz-app .mh-sound-toggle.is-muted { color: #88777c; background: #f1ece9; box-shadow: none; }
    #mh-quiz-app .mh-timer.is-warning { --mh-timer-color: #bd692e; border-color: rgba(189,105,46,.34); background: linear-gradient(145deg, #fff, #fff6e9); }
    #mh-quiz-app .mh-timer.is-danger { --mh-timer-color: var(--mh-red); border-color: rgba(154,37,52,.38); background: linear-gradient(145deg, #fff, #fff0f1); animation: mhTimerUrgent .85s ease-in-out infinite; }
    #mh-quiz-app .mh-timer.is-countdown {
      box-shadow: 0 12px 32px rgba(189,105,46,.20), 0 0 0 4px rgba(232,141,65,.08);
    }
    #mh-quiz-app .mh-timer.is-countdown::before { opacity: 1; animation: mhTimerSweep 3.2s linear infinite; }
    #mh-quiz-app .mh-timer.is-countdown .mh-timer-progress { filter: drop-shadow(0 0 4px var(--mh-timer-color)); }
    #mh-quiz-app .mh-timer.is-countdown .mh-timer-dial::after {
      border-color: rgba(189,105,46,.38);
      animation: mhTimerHalo 1s ease-out infinite;
    }
    #mh-quiz-app .mh-timer.is-danger .mh-timer-dial::after { border-color: rgba(154,37,52,.42); }
    #mh-quiz-app .mh-timer.is-tick .mh-timer-dial strong { animation: mhTimerNumberBeat .34s cubic-bezier(.2,.85,.35,1); }
    #mh-quiz-app .mh-timer.is-finished { --mh-timer-color: var(--mh-green); opacity: .9; }
    #mh-quiz-app .mh-timer.is-expired { --mh-timer-color: var(--mh-red); border-color: rgba(154,37,52,.34); background: var(--mh-red-bg); animation: none; }
    #mh-quiz-app .mh-study-badge {
      display: inline-grid;
      grid-template-columns: 42px minmax(0, auto);
      align-items: center;
      gap: 10px;
      min-height: 58px;
      padding: 8px 13px;
      border-radius: 17px;
      color: #5c2c1f;
      background: linear-gradient(145deg, #fff9ef, #fff2df);
      border: 1px solid rgba(201,120,69,.28);
      box-shadow: 0 9px 24px rgba(55,13,26,.06);
    }
    #mh-quiz-app .mh-study-badge > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--mh-ruby), var(--mh-wine)); font-family: Arial, sans-serif; font-size: 20px; }
    #mh-quiz-app .mh-study-badge b,
    #mh-quiz-app .mh-study-badge small { display: block; }
    #mh-quiz-app .mh-study-badge b { font-size: 13px; line-height: 1.2; }
    #mh-quiz-app .mh-study-badge small { margin-top: 3px; color: #816960; font-size: 10.5px; font-weight: 800; }
    #mh-quiz-app .mh-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
    @keyframes mhTimerUrgent {
      0%, 100% { transform: scale(1); box-shadow: 0 9px 24px rgba(154,37,52,.07); }
      50% { transform: scale(1.025); box-shadow: 0 10px 28px rgba(154,37,52,.18); }
    }
    @keyframes mhTimerSweep { to { transform: rotate(360deg); } }
    @keyframes mhTimerHalo {
      0% { transform: scale(.82); opacity: .8; }
      100% { transform: scale(1.38); opacity: 0; }
    }
    @keyframes mhTimerNumberBeat {
      0% { transform: scale(.78); opacity: .55; }
      65% { transform: scale(1.18); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }
    @keyframes mhSpeedShine {
      0%, 66% { left: -36%; opacity: 0; }
      72% { opacity: 1; }
      88%, 100% { left: 118%; opacity: 0; }
    }
    #mh-quiz-app .mh-question {
      margin: 0;
      color: #25141a;
      font-family: "Assistant", "Heebo", Arial, sans-serif !important;
      font-size: clamp(25px, 2.35vw, 34px);
      line-height: 1.42;
      letter-spacing: -.012em;
      font-weight: 800 !important;
      text-wrap: balance;
    }
    #mh-quiz-app .mh-challenge { margin: 10px 0 0; color: var(--mh-muted); font-size: 15px; font-weight: 700; }

    #mh-quiz-app .mh-answers { display: grid; gap: 12px; margin-top: 26px; }
    #mh-quiz-app .mh-answer {
      width: 100%;
      display: grid;
      grid-template-columns: 44px minmax(0,1fr) 30px;
      align-items: center;
      gap: 14px;
      min-height: 68px;
      padding: 12px 16px;
      border-radius: 16px;
      border: 1px solid rgba(77,16,32,.12);
      background: #fff;
      color: var(--mh-ink);
      cursor: pointer;
      text-align: right;
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }
    #mh-quiz-app .mh-answer:hover:not([disabled]) { transform: translateY(-1px); border-color: rgba(169,45,72,.32); box-shadow: 0 10px 24px rgba(55,13,26,.07); }
    #mh-quiz-app .mh-answer[disabled] { cursor: default; }
    #mh-quiz-app .mh-answer.is-correct { background: var(--mh-green-bg); border-color: rgba(23,105,67,.42); color: #123f2b; }
    #mh-quiz-app .mh-answer.is-wrong { background: var(--mh-red-bg); border-color: rgba(154,37,52,.42); color: #6e1722; }
    #mh-quiz-app .mh-answer-key { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #f5ece7; color: var(--mh-wine); font-weight: 900; }
    #mh-quiz-app .mh-answer.is-correct .mh-answer-key { background: #d9efdf; color: var(--mh-green); }
    #mh-quiz-app .mh-answer.is-wrong .mh-answer-key { background: #f6d8dc; color: var(--mh-red); }
    #mh-quiz-app .mh-answer-text { display: block; font-size: 18px; line-height: 1.45; font-weight: 700; }
    #mh-quiz-app .mh-answer-main { display: block; }
    #mh-quiz-app .mh-answer-reason {
      display: block;
      margin-top: 5px;
      color: #735f66;
      font-size: .86em;
      line-height: 1.35;
      font-weight: 600;
    }
    #mh-quiz-app .mh-answer.is-correct .mh-answer-reason,
    #mh-quiz-app .mh-answer.is-wrong .mh-answer-reason { color: inherit; opacity: .82; }
    #mh-quiz-app .mh-answer-mark { font-size: 22px; font-weight: 900; text-align: center; }

    #mh-quiz-app .mh-feedback {
      display: none;
      margin-top: 24px;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid rgba(77,16,32,.11);
      background: #fff;
    }
    #mh-quiz-app .mh-feedback.is-visible { display: block; animation: mhFade .2s ease both; }
    @keyframes mhFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
    #mh-quiz-app .mh-feedback-head { padding: 15px 18px; font-size: 18px; font-weight: 900; border-bottom: 1px solid rgba(77,16,32,.08); }
    #mh-quiz-app .mh-feedback-head.is-correct { color: var(--mh-green); background: var(--mh-green-bg); }
    #mh-quiz-app .mh-feedback-head.is-wrong { color: var(--mh-red); background: var(--mh-red-bg); }
    #mh-quiz-app .mh-feedback-head.is-timeout { color: #80321e; background: linear-gradient(90deg, #fff0f1, #fff6e9); }
    #mh-quiz-app .mh-feedback-body { padding: 18px; }
    #mh-quiz-app .mh-feedback-body p { margin: 0; color: #35252a; font-size: 17px; line-height: 1.72; font-weight: 600; }

    #mh-quiz-app .mh-correction {
      display: none;
      margin-bottom: 17px;
      padding: 14px;
      border-radius: 15px;
      background: #fffaf7;
      border: 1px solid rgba(77,16,32,.11);
    }
    #mh-quiz-app .mh-correction.is-visible { display: grid; gap: 10px; }
    #mh-quiz-app .mh-correction-row {
      display: grid;
      grid-template-columns: minmax(118px, auto) minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      padding: 11px 12px;
      border-radius: 12px;
    }
    #mh-quiz-app .mh-correction-row > span { font-size: 13px; font-weight: 900; }
    #mh-quiz-app .mh-correction-row > strong { font-size: 16px; line-height: 1.55; }
    #mh-quiz-app .mh-correction-row.is-chosen { color: #761d2b; background: var(--mh-red-bg); border: 1px solid rgba(154,37,52,.18); }
    #mh-quiz-app .mh-correction-row.is-right { color: #145437; background: var(--mh-green-bg); border: 1px solid rgba(23,105,67,.18); }
    #mh-quiz-app .mh-explanation-title { margin: 0 0 7px; color: var(--mh-wine); font-size: 15px; font-weight: 900; }

    #mh-quiz-app .mh-credit {
      display: none;
      margin-top: 14px;
      padding: 13px 15px;
      border-radius: 13px;
      color: #155b3a;
      background: linear-gradient(135deg, #edf8f0, #f8fcf8);
      border: 1px solid rgba(23,105,67,.22);
      border-right: 4px solid var(--mh-green);
      font-size: 16px;
      line-height: 1.55;
      font-weight: 900;
    }
    #mh-quiz-app .mh-credit.is-visible { display: block; }

    #mh-quiz-app .mh-source-quote {
      position: relative;
      margin: 15px 0 0;
      padding: 15px 18px;
      border-radius: 14px;
      color: #3b252c;
      background: linear-gradient(135deg, #f7f1eb, #fffdf9);
      border: 1px solid rgba(77,16,32,.12);
      border-right: 4px solid var(--mh-wine-2);
    }
    #mh-quiz-app .mh-source-quote span { display: block; margin-bottom: 5px; color: #8c5132; font-size: 12px; font-weight: 900; }
    #mh-quiz-app .mh-source-quote q { font-size: 17px; line-height: 1.65; font-weight: 850; quotes: "״" "״" "׳" "׳"; }

    #mh-quiz-app .mh-sources { margin-top: 16px; padding: 15px 16px; border-radius: 14px; background: #fff8ef; border: 1px solid rgba(201,120,69,.28); border-right: 4px solid var(--mh-copper); }
    #mh-quiz-app .mh-sources-title { color: #7d492b; font-weight: 900; margin-bottom: 8px; }
    #mh-quiz-app .mh-source-links { display: flex; flex-direction: column; gap: 7px; }
    #mh-quiz-app .mh-source-links a { color: #6e2e20; font-weight: 800; text-decoration: none; line-height: 1.45; }
    #mh-quiz-app .mh-source-links a:hover { text-decoration: underline; }

    #mh-quiz-app .mh-question-nav {
      display: grid;
      grid-template-columns: minmax(170px, auto) minmax(0, 1fr) minmax(170px, auto);
      align-items: center;
      gap: 12px;
      margin-top: 18px;
      padding-top: 18px;
      border-top: 1px solid rgba(77,16,32,.09);
    }
    #mh-quiz-app .mh-next-btn,
    #mh-quiz-app .mh-prev-btn { min-width: 170px; }
    #mh-quiz-app .mh-prev-btn {
      min-height: 56px;
      padding: 0 22px;
      border-radius: 14px;
      border: 1px solid rgba(77,16,32,.17);
      background: #fff;
      color: var(--mh-wine);
      font: inherit;
      font-size: 16px;
      font-weight: 900;
      cursor: pointer;
      transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }
    #mh-quiz-app .mh-prev-btn:hover { transform: translateY(-1px); border-color: var(--mh-copper); background: #fff8f1; }
    #mh-quiz-app .mh-nav-status {
      min-height: 24px;
      color: #755b63;
      font-size: 13px;
      line-height: 1.45;
      font-weight: 800;
      text-align: center;
    }
    #mh-quiz-app .mh-nav-status.is-locked { color: #216044; }
    #mh-quiz-app [hidden] { display: none !important; }

    #mh-quiz-app .mh-result { display: none; padding: 36px; text-align: center; }
    #mh-quiz-app .mh-result.is-active { display: block; }
    #mh-quiz-app .mh-result-ring { --score: 0; width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: conic-gradient(var(--mh-ruby) calc(var(--score) * 1%), #eaded5 0); position: relative; }
    #mh-quiz-app .mh-result-ring::before { content: ""; position: absolute; inset: 13px; border-radius: inherit; background: #fffaf5; }
    #mh-quiz-app .mh-result-ring strong { position: relative; z-index: 1; color: var(--mh-wine); font-size: 38px; font-weight: 900; }
    #mh-quiz-app .mh-result h3 { margin: 0 0 8px; color: var(--mh-wine); font-size: 36px; font-weight: 900; }
    #mh-quiz-app .mh-result > p { margin: 0 auto; max-width: 720px; color: var(--mh-muted); font-size: 18px; line-height: 1.7; }
    #mh-quiz-app .mh-result-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
    #mh-quiz-app .mh-result-stat { min-width: 150px; padding: 14px 18px; border: 1px solid rgba(77,16,32,.1); border-radius: 14px; background: #fff; }
    #mh-quiz-app .mh-result-stat b { display: block; color: var(--mh-wine); font-size: 25px; }
    #mh-quiz-app .mh-result-stat span { color: var(--mh-muted); font-size: 14px; font-weight: 700; }

    #mh-quiz-app .mh-speed-summary {
      position: relative;
      isolation: isolate;
      max-width: 900px;
      margin: 6px auto 0;
      padding: 18px 20px;
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr) auto;
      align-items: center;
      gap: 16px;
      overflow: hidden;
      border: 1px solid rgba(201,120,69,.32);
      border-radius: 20px;
      color: #fffaf3;
      background:
        radial-gradient(circle at 14% 20%, rgba(255,178,103,.22), transparent 28%),
        linear-gradient(125deg, #4d1020 0%, #71152d 54%, #3b0b19 100%);
      box-shadow: 0 18px 42px rgba(55,13,26,.18);
      text-align: right;
    }
    #mh-quiz-app .mh-speed-summary::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset: 0 auto 0 -36%;
      width: 26%;
      transform: skewX(-18deg);
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
      animation: mhSpeedShine 4.8s ease-in-out infinite;
    }
    #mh-quiz-app .mh-speed-icon {
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,206,157,.42);
      border-radius: 17px;
      color: #ffd49f;
      background: rgba(255,255,255,.08);
      box-shadow: inset 0 0 18px rgba(255,190,119,.08);
      font-family: Arial, sans-serif;
      font-size: 31px;
      font-weight: 900;
    }
    #mh-quiz-app .mh-speed-copy span,
    #mh-quiz-app .mh-speed-copy strong,
    #mh-quiz-app .mh-speed-copy small { display: block; }
    #mh-quiz-app .mh-speed-copy span { color: #f5c694; font-size: 13px; font-weight: 900; }
    #mh-quiz-app .mh-speed-copy strong { margin-top: 1px; color: #fffaf3; font-size: clamp(25px, 3vw, 34px); line-height: 1.18; font-weight: 900; }
    #mh-quiz-app .mh-speed-copy small { margin-top: 4px; color: #f2d9cc; font-size: 14px; font-weight: 750; }
    #mh-quiz-app .mh-speed-rule {
      min-width: 230px;
      padding: 11px 14px;
      border-radius: 14px;
      border: 1px solid rgba(255,221,189,.18);
      background: rgba(255,255,255,.07);
    }
    #mh-quiz-app .mh-speed-rule b,
    #mh-quiz-app .mh-speed-rule span { display: block; }
    #mh-quiz-app .mh-speed-rule b { color: #ffc98b; font-size: 13px; font-weight: 900; }
    #mh-quiz-app .mh-speed-rule span { margin-top: 3px; color: #fff2e6; font-size: 12px; line-height: 1.45; font-weight: 750; }

    #mh-quiz-app .mh-assessment {
      max-width: 900px;
      margin: 26px auto 0;
      padding: 24px;
      border-radius: 20px;
      border: 1px solid rgba(77,16,32,.12);
      border-right: 5px solid var(--mh-ruby);
      background: linear-gradient(135deg, #fff, #fff7f1);
      text-align: right;
      box-shadow: 0 16px 42px rgba(55,13,26,.07);
    }
    #mh-quiz-app .mh-assessment-kicker {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 7px;
      color: #9b532e;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .02em;
    }
    #mh-quiz-app .mh-assessment h4 { margin: 0 0 8px; color: var(--mh-wine); font-size: 25px; line-height: 1.35; }
    #mh-quiz-app .mh-assessment p { margin: 0; color: #47343a; font-size: 17px; line-height: 1.7; font-weight: 650; }

    #mh-quiz-app .mh-domain-section { max-width: 900px; margin: 22px auto 0; text-align: right; }
    #mh-quiz-app .mh-domain-section h4 { margin: 0 0 11px; color: var(--mh-wine); font-size: 21px; }
    #mh-quiz-app .mh-domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
    #mh-quiz-app .mh-domain-card {
      padding: 15px 16px;
      border-radius: 15px;
      border: 1px solid rgba(77,16,32,.1);
      background: #fff;
    }
    #mh-quiz-app .mh-domain-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
    #mh-quiz-app .mh-domain-head strong { color: #3c202a; font-size: 16px; }
    #mh-quiz-app .mh-domain-head b { color: var(--mh-wine); font-size: 19px; }
    #mh-quiz-app .mh-domain-card small { display: block; margin-top: 3px; color: #806b71; font-size: 13px; font-weight: 750; }
    #mh-quiz-app .mh-domain-bar { height: 7px; margin-top: 10px; border-radius: 999px; background: #eee3dc; overflow: hidden; }
    #mh-quiz-app .mh-domain-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mh-copper), var(--mh-ruby)); }

    #mh-quiz-app .mh-study-plan {
      max-width: 900px;
      margin: 22px auto 0;
      padding: 22px;
      border-radius: 20px;
      color: #3a282e;
      background: linear-gradient(135deg, #fff7e9, #fffdf9);
      border: 1px solid rgba(201,120,69,.32);
      text-align: right;
    }
    #mh-quiz-app .mh-study-plan h4 { margin: 0 0 6px; color: var(--mh-wine); font-size: 22px; line-height: 1.45; }
    #mh-quiz-app .mh-study-plan > p { margin: 0; color: #70565d; font-size: 15px; line-height: 1.6; font-weight: 650; }
    #mh-quiz-app .mh-study-links { display: grid; gap: 9px; margin-top: 15px; }
    #mh-quiz-app .mh-study-link {
      display: grid;
      grid-template-columns: minmax(0,1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 13px 15px;
      border-radius: 13px;
      color: #51202d;
      background: rgba(255,255,255,.86);
      border: 1px solid rgba(77,16,32,.10);
      text-decoration: none;
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
    }
    #mh-quiz-app .mh-study-link:hover { transform: translateY(-1px); border-color: rgba(169,45,72,.32); box-shadow: 0 9px 22px rgba(55,13,26,.07); }
    #mh-quiz-app .mh-study-link strong { display: block; font-size: 16px; line-height: 1.45; }
    #mh-quiz-app .mh-study-link small { display: block; margin-top: 3px; color: #826b72; font-size: 12px; line-height: 1.45; font-weight: 750; }
    #mh-quiz-app .mh-study-link b { color: #9a4d28; font-size: 13px; white-space: nowrap; }

    #mh-quiz-app .mh-result-verse {
      position: relative;
      max-width: 720px;
      margin: 26px auto 8px;
      padding: 23px 60px 20px;
      border-radius: 18px;
      color: var(--mh-wine);
      background: linear-gradient(135deg, #fff4e9, #fffaf5);
      border: 1px solid rgba(201,120,69,.30);
      box-shadow: inset 0 0 0 4px rgba(255,255,255,.55);
    }
    #mh-quiz-app .mh-result-verse::before {
      content: "״";
      position: absolute;
      top: 1px;
      right: 20px;
      color: rgba(169,45,72,.20);
      font-family: Georgia, serif;
      font-size: 68px;
      line-height: 1;
    }
    #mh-quiz-app .mh-result-verse strong { display: block; font-size: 23px; line-height: 1.55; }
    #mh-quiz-app .mh-result-verse cite { display: block; margin-top: 8px; color: #8a5638; font-size: 14px; font-style: normal; font-weight: 900; }

    #mh-quiz-app .mh-mistakes { margin: 26px auto 0; max-width: 820px; text-align: right; display: none; }
    #mh-quiz-app .mh-mistakes.is-visible { display: block; }
    #mh-quiz-app .mh-mistakes h4 { margin: 0 0 12px; color: var(--mh-wine); font-size: 23px; }
    #mh-quiz-app .mh-mistake { padding: 18px; margin-bottom: 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(77,16,32,.1); }
    #mh-quiz-app .mh-mistake-question { display: block; margin-bottom: 11px; color: #302027; font-size: 17px; line-height: 1.5; }
    #mh-quiz-app .mh-mistake-answer { margin: 7px 0; padding: 9px 11px; border-radius: 10px; font-weight: 800; line-height: 1.5; }
    #mh-quiz-app .mh-mistake-answer.is-chosen { color: var(--mh-red); background: var(--mh-red-bg); }
    #mh-quiz-app .mh-mistake-answer.is-right { color: var(--mh-green); background: var(--mh-green-bg); }
    #mh-quiz-app .mh-mistake-explanation { margin: 12px 0 0; color: #3d2d32; line-height: 1.65; font-weight: 600; }
    #mh-quiz-app .mh-mistake-quote { margin: 11px 0 0; padding: 10px 12px; border-radius: 10px; color: #51202d; background: #fff8ef; border-right: 3px solid var(--mh-copper); font-weight: 800; line-height: 1.55; }
    #mh-quiz-app .mh-mistake-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    #mh-quiz-app .mh-mistake-sources a { color: #6e2e20; font-size: 14px; font-weight: 900; text-decoration: none; }
    #mh-quiz-app .mh-mistake-sources a:hover { text-decoration: underline; }
    #mh-quiz-app .mh-result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
    #mh-quiz-app .mh-secondary-btn { min-height: 52px; padding: 0 20px; border-radius: 13px; border: 1px solid rgba(77,16,32,.17); background: #fff; color: var(--mh-wine); font-weight: 900; cursor: pointer; }

    #mh-quiz-app .mh-footer {
      margin-top: 18px;
      padding: 24px 0 30px;
      color: #fff;
      background: linear-gradient(135deg, #1b090f, #3b0c1a);
      border-top: 1px solid rgba(226,163,110,.42);
    }
    #mh-quiz-app .mh-footer-inner { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: center; }
    #mh-quiz-app .mh-footer strong { color: #efbd95; }
    #mh-quiz-app .mh-footer span { color: rgba(255,255,255,.72); font-size: 14px; }

    @media (max-width: 920px) {
      #mh-quiz-app .mh-hero-inner { grid-template-columns: 1fr; text-align: center; min-height: 360px; padding: 42px 0 40px; }
      #mh-quiz-app .mh-brain-wrap { display: none; }
      #mh-quiz-app .mh-kicker { justify-content: center; }
      #mh-quiz-app .mh-hero p { margin-inline: auto; }
      #mh-quiz-app .mh-home-btn { margin-inline: auto; }
      #mh-quiz-app .mh-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #mh-quiz-app .mh-filter-grid { grid-template-columns: 1fr; }
      #mh-quiz-app .mh-challenge-pills { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      #mh-quiz-app .mh-length-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #mh-quiz-app .mh-pacing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #mh-quiz-app .mh-bank-showcase { grid-template-columns: 118px minmax(0, 1fr); gap: 20px; }
      #mh-quiz-app .mh-bank-emblem { width: 104px; height: 104px; }
      #mh-quiz-app .mh-bank-number strong { font-size: 24px; }
      #mh-quiz-app .mh-top { grid-template-columns: 1fr; }
      #mh-quiz-app .mh-top-actions { justify-content: center; flex-wrap: wrap; }
      #mh-quiz-app .mh-scorebox { justify-content: center; }
      #mh-quiz-app .mh-question-wrap { padding: 25px 20px 28px; }
      #mh-quiz-app .mh-speed-summary { grid-template-columns: 58px minmax(0, 1fr); }
      #mh-quiz-app .mh-speed-rule { grid-column: 1 / -1; min-width: 0; }
    }

    @media (max-width: 600px) {
      #mh-quiz-app .mh-inner { width: calc(100% - 16px); }
      #mh-quiz-app .mh-hero h1 { font-size: clamp(48px, 15vw, 65px); }
      #mh-quiz-app .mh-hero h2 { font-size: 22px; }
      #mh-quiz-app .mh-hero p { font-size: 16px; line-height: 1.65; }
      #mh-quiz-app .mh-main { padding-top: 20px; }
      #mh-quiz-app .mh-panel { border-radius: 18px; }
      #mh-quiz-app .mh-start { padding: 24px 14px; }
      #mh-quiz-app .mh-modes { grid-template-columns: 1fr; gap: 9px; }
      #mh-quiz-app .mh-mode { min-height: 0; padding: 14px 12px; }
      #mh-quiz-app .mh-filter-block { padding: 15px 12px; }
      #mh-quiz-app .mh-filter-pill { flex: 1 1 auto; padding-inline: 11px; }
      #mh-quiz-app .mh-bank-showcase { grid-template-columns: 1fr; gap: 14px; padding: 20px 15px; text-align: center; }
      #mh-quiz-app .mh-bank-emblem { width: 94px; height: 94px; margin-inline: auto; }
      #mh-quiz-app .mh-bank-number strong { font-size: 22px; }
      #mh-quiz-app .mh-bank-copy h4 { font-size: 24px; }
      #mh-quiz-app .mh-bank-copy > p { font-size: 14.5px; }
      #mh-quiz-app .mh-bank-live,
      #mh-quiz-app .mh-selection-summary { justify-content: center; }
      #mh-quiz-app .mh-selection-summary { display: flex; border-radius: 14px; }
      #mh-quiz-app .mh-difficulty-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #mh-quiz-app .mh-level-card { flex: 0 0 auto; min-height: 92px; padding: 10px 7px 9px; }
      #mh-quiz-app .mh-track-grid,
      #mh-quiz-app .mh-challenge-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #mh-quiz-app .mh-track-card { min-height: 62px; }
      #mh-quiz-app .mh-challenge-pill { min-height: 66px; }
      #mh-quiz-app .mh-length-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
      #mh-quiz-app .mh-length-availability { text-align: right; }
      #mh-quiz-app .mh-length-card { min-height: 96px; grid-template-columns: 50px minmax(0, 1fr); gap: 9px; padding: 10px; }
      #mh-quiz-app .mh-length-dial { width: 48px; height: 48px; }
      #mh-quiz-app .mh-length-dial b { font-size: 18px; }
      #mh-quiz-app .mh-length-copy strong { font-size: 15.5px; }
      #mh-quiz-app .mh-length-copy small { font-size: 11px; }
      #mh-quiz-app .mh-pacing-grid { grid-template-columns: 1fr; }
      #mh-quiz-app .mh-pacing-card { min-height: 98px; grid-template-columns: 50px minmax(0, 1fr) auto; padding: 11px 12px; }
      #mh-quiz-app .mh-pacing-icon { width: 48px; height: 48px; font-size: 23px; }
      #mh-quiz-app .mh-top { padding: 18px 14px; }
      #mh-quiz-app .mh-top-actions { width: 100%; }
      #mh-quiz-app .mh-exit-btn { width: 100%; order: 2; }
      #mh-quiz-app .mh-stat { min-width: 0; flex: 1; }
      #mh-quiz-app .mh-question-wrap { padding: 21px 13px 24px; }
      #mh-quiz-app .mh-question-meta { align-items: stretch; flex-direction: column; gap: 10px; }
      #mh-quiz-app .mh-topic { align-self: flex-start; }
      #mh-quiz-app .mh-clock-zone { justify-content: stretch; }
      #mh-quiz-app .mh-timer,
      #mh-quiz-app .mh-study-badge { width: 100%; }
      #mh-quiz-app .mh-timer { grid-template-columns: 56px minmax(0, 1fr) 34px; min-height: 62px; }
      #mh-quiz-app .mh-timer-dial { width: 52px; height: 52px; }
      #mh-quiz-app .mh-speed-summary { grid-template-columns: 48px minmax(0, 1fr); gap: 11px; padding: 15px; }
      #mh-quiz-app .mh-speed-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 27px; }
      #mh-quiz-app .mh-speed-copy strong { font-size: 25px; }
      #mh-quiz-app .mh-question { font-size: 23px; }
      #mh-quiz-app .mh-answer { grid-template-columns: 38px minmax(0,1fr) 24px; gap: 9px; padding: 11px 10px; }
      #mh-quiz-app .mh-answer-key { width: 34px; height: 34px; }
      #mh-quiz-app .mh-answer-text { font-size: 16.5px; }
      #mh-quiz-app .mh-feedback-body { padding: 15px 13px; }
      #mh-quiz-app .mh-feedback-body p { font-size: 16.5px; }
      #mh-quiz-app .mh-correction-row { grid-template-columns: 1fr; gap: 4px; }
      #mh-quiz-app .mh-question-nav { grid-template-columns: 1fr 1fr; gap: 9px; }
      #mh-quiz-app .mh-nav-status { grid-column: 1 / -1; grid-row: 1; }
      #mh-quiz-app .mh-prev-btn,
      #mh-quiz-app .mh-next-btn { width: 100%; min-width: 0; padding-inline: 10px; font-size: 15px; }
      #mh-quiz-app .mh-result { padding: 28px 14px; }
      #mh-quiz-app .mh-result h3 { font-size: 30px; }
      #mh-quiz-app .mh-assessment,
      #mh-quiz-app .mh-study-plan { padding: 18px 15px; }
      #mh-quiz-app .mh-assessment h4 { font-size: 22px; }
      #mh-quiz-app .mh-domain-grid { grid-template-columns: 1fr; }
      #mh-quiz-app .mh-study-link { grid-template-columns: 1fr; gap: 5px; }
      #mh-quiz-app .mh-study-link b { white-space: normal; }
      #mh-quiz-app .mh-result-verse { padding: 20px 38px 18px 16px; }
      #mh-quiz-app .mh-result-verse strong { font-size: 20px; }
      #mh-quiz-app .mh-footer-inner { justify-content: center; text-align: center; }
    }

    @media (prefers-reduced-motion: reduce) {
      #mh-quiz-app *,
      #mh-quiz-app *::before,
      #mh-quiz-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
    }

/* Community edition: WordPress accounts, personal journey and period rankings. */
#mh-quiz-app [hidden] { display: none !important; }

#mh-quiz-app .mh-player-block {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
  padding: 20px 22px;
  border-color: rgba(86, 24, 40, .16);
  background:
    radial-gradient(circle at 4% 20%, rgba(226, 163, 110, .20), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,247,239,.88));
  box-shadow: 0 15px 38px rgba(55, 13, 26, .07);
}

#mh-quiz-app .mh-account-guest,
#mh-quiz-app .mh-account-member { min-width: 0; }

#mh-quiz-app .mh-account-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#mh-quiz-app .mh-account-actions,
#mh-quiz-app .mh-account-editor {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

#mh-quiz-app .mh-account-btn,
#mh-quiz-app .mh-account-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 17px;
  border: 1px solid rgba(77, 16, 32, .20);
  border-radius: 12px;
  color: var(--mh-wine);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#mh-quiz-app .mh-account-btn:hover,
#mh-quiz-app .mh-account-save:hover { transform: translateY(-1px); border-color: var(--mh-copper); box-shadow: 0 8px 20px rgba(77,16,32,.10); }
#mh-quiz-app .mh-account-btn.is-primary,
#mh-quiz-app .mh-account-save { color: #fffaf2; border-color: transparent; background: linear-gradient(135deg, var(--mh-wine-2), var(--mh-wine)); }
#mh-quiz-app .mh-registration-closed { color: var(--mh-muted); font-size: 12px; font-weight: 750; }

#mh-quiz-app .mh-account-member {
  display: grid;
  grid-template-columns: 48px minmax(190px, 1fr) minmax(330px, auto);
  gap: 13px 17px;
  align-items: center;
}

#mh-quiz-app .mh-account-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 50%;
  color: #fff9ef;
  background: linear-gradient(145deg, var(--mh-copper), var(--mh-ruby));
  box-shadow: 0 8px 20px rgba(102, 27, 44, .18);
  font-size: 20px;
  font-weight: 950;
}

#mh-quiz-app .mh-account-editor { justify-content: flex-end; }
#mh-quiz-app .mh-account-editor .mh-player-input { width: min(220px, 100%); min-height: 43px; }
#mh-quiz-app .mh-account-logout { padding: 8px 4px; color: #876d74; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
#mh-quiz-app .mh-profile-status { grid-column: 2 / -1; min-height: 18px; color: var(--mh-muted); font-size: 13px; font-weight: 800; }
#mh-quiz-app .mh-profile-status.is-success { color: var(--mh-green); }
#mh-quiz-app .mh-profile-status.is-error { color: var(--mh-red); }

#mh-quiz-app .mh-account-save.is-loading { pointer-events: none; opacity: .82; }
#mh-quiz-app .mh-account-save.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-inline-start: 8px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
  animation: mhSecureSpin .72s linear infinite;
}

#mh-quiz-app .mh-start-actions { display: grid; justify-items: center; gap: 7px; }
#mh-quiz-app .mh-start-eligibility { color: var(--mh-muted); font-size: 12.5px; font-weight: 750; text-align: center; }

#mh-quiz-app .mh-period-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0 24px 18px;
  padding: 6px;
  border: 1px solid rgba(86,24,40,.11);
  border-radius: 16px;
  background: rgba(246, 238, 229, .72);
}

#mh-quiz-app .mh-period-pill {
  min-height: 42px;
  padding: 7px 12px;
  border: 0;
  border-radius: 11px;
  color: #674d56;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

#mh-quiz-app .mh-period-pill:hover { color: var(--mh-wine); background: rgba(255,255,255,.74); }
#mh-quiz-app .mh-period-pill.is-selected { color: #fffaf1; background: linear-gradient(135deg, var(--mh-wine-2), var(--mh-wine)); box-shadow: 0 8px 20px rgba(77,16,32,.18); transform: translateY(-1px); }

#mh-quiz-app .mh-personal-dashboard {
  position: relative;
  overflow: hidden;
  margin: 0 24px 20px;
  padding: 21px;
  border: 1px solid rgba(201, 120, 69, .28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 0, rgba(201,120,69,.18), transparent 29%),
    linear-gradient(145deg, #fffdf9, #fff6eb);
  animation: mhDashboardIn .42s ease both;
}

@keyframes mhDashboardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

#mh-quiz-app .mh-personal-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
#mh-quiz-app .mh-personal-head span { color: #a05d36; font-size: 12px; font-weight: 950; letter-spacing: .02em; }
#mh-quiz-app .mh-personal-head h5 { margin: 2px 0 0; color: var(--mh-wine); font-size: 21px; font-weight: 950; }
#mh-quiz-app .mh-personal-progress-copy { color: #745860; font-size: 13px; font-weight: 850; }
#mh-quiz-app .mh-personal-progress { overflow: hidden; height: 8px; margin: 13px 0 17px; border-radius: 999px; background: #eadfd7; }
#mh-quiz-app .mh-personal-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mh-copper), var(--mh-ruby), var(--mh-wine-2)); box-shadow: 0 0 16px rgba(169,45,72,.30); transition: width .8s cubic-bezier(.2,.8,.2,1); }

#mh-quiz-app .mh-personal-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
#mh-quiz-app .mh-personal-stat {
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid rgba(86,24,40,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  text-align: center;
}
#mh-quiz-app .mh-personal-stat b { display: block; overflow: hidden; color: var(--mh-wine); font-size: 22px; font-weight: 950; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
#mh-quiz-app .mh-personal-stat span { display: block; margin-top: 5px; color: #776169; font-size: 11.5px; font-weight: 800; line-height: 1.3; }
#mh-quiz-app .mh-personal-stat.is-rank { border-color: rgba(201,120,69,.28); background: linear-gradient(145deg, #fff8e9, #fff); }

#mh-quiz-app .mh-community-guest {
  display: grid;
  gap: 3px;
  margin: 0 24px 20px;
  padding: 15px 18px;
  border: 1px dashed rgba(86,24,40,.20);
  border-radius: 16px;
  color: #765e66;
  background: rgba(255,255,255,.62);
}
#mh-quiz-app .mh-community-guest b { color: var(--mh-wine); font-size: 15px; }
#mh-quiz-app .mh-community-guest span { font-size: 13px; font-weight: 700; line-height: 1.45; }

#mh-quiz-app .mh-board-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 24px 17px;
}

#mh-quiz-app .mh-board-tab {
  display: grid;
  gap: 2px;
  min-height: 62px;
  padding: 10px 15px;
  border: 1px solid rgba(86,24,40,.13);
  border-radius: 15px;
  color: #5e4650;
  background: rgba(255,255,255,.76);
  text-align: right;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
#mh-quiz-app .mh-board-tab:hover { transform: translateY(-1px); border-color: rgba(201,120,69,.46); }
#mh-quiz-app .mh-board-tab b { color: var(--mh-wine); font-size: 16px; font-weight: 950; }
#mh-quiz-app .mh-board-tab small { color: var(--mh-muted); font-size: 12px; font-weight: 750; }
#mh-quiz-app .mh-board-tab.is-selected { border-color: rgba(118,26,49,.50); background: linear-gradient(145deg, #fff6ec, #fff); box-shadow: 0 9px 23px rgba(77,16,32,.09), inset 4px 0 0 var(--mh-wine-2); }

#mh-quiz-app .mh-my-rank { margin: 0 24px 8px; padding: 10px 14px; border-radius: 12px; color: #75401f; background: #fff1df; font-size: 13px; font-weight: 900; text-align: center; }
#mh-quiz-app .mh-leaderboard-row.is-me { border: 1px solid rgba(201,120,69,.35); border-radius: 13px; background: linear-gradient(90deg, rgba(255,244,224,.92), rgba(255,255,255,.80)); box-shadow: 0 6px 18px rgba(77,16,32,.06); }
#mh-quiz-app .mh-leaderboard-row.is-me .mh-leaderboard-name::after { content: "אתה"; display: inline-block; margin-inline-start: 7px; padding: 2px 7px; border-radius: 999px; color: #fff; background: var(--mh-wine-2); font-size: 10px; vertical-align: 2px; }

@media (max-width: 920px) {
  #mh-quiz-app .mh-account-member { grid-template-columns: 48px minmax(0,1fr); }
  #mh-quiz-app .mh-account-editor { grid-column: 1 / -1; justify-content: flex-start; }
  #mh-quiz-app .mh-profile-status { grid-column: 1 / -1; }
  #mh-quiz-app .mh-personal-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 600px) {
  #mh-quiz-app .mh-player-block { grid-template-columns: 44px minmax(0,1fr); gap: 11px; padding: 15px 13px; }
  #mh-quiz-app .mh-player-icon { width: 42px; height: 42px; }
  #mh-quiz-app .mh-account-guest { align-items: flex-start; flex-direction: column; gap: 12px; }
  #mh-quiz-app .mh-account-actions { width: 100%; }
  #mh-quiz-app .mh-account-btn { flex: 1; }
  #mh-quiz-app .mh-account-member { grid-template-columns: 42px minmax(0,1fr); gap: 10px; }
  #mh-quiz-app .mh-account-avatar { width: 40px; height: 40px; }
  #mh-quiz-app .mh-account-editor { display: grid; grid-template-columns: minmax(0,1fr) auto; width: 100%; }
  #mh-quiz-app .mh-account-editor .mh-player-input { width: 100%; }
  #mh-quiz-app .mh-account-logout { grid-column: 1 / -1; }
  #mh-quiz-app .mh-period-switch { gap: 4px; margin: 0 12px 14px; padding: 4px; }
  #mh-quiz-app .mh-period-pill { min-height: 38px; padding-inline: 5px; font-size: 12px; }
  #mh-quiz-app .mh-personal-dashboard { margin: 0 12px 15px; padding: 15px 12px; }
  #mh-quiz-app .mh-personal-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  #mh-quiz-app .mh-personal-stats { gap: 6px; }
  #mh-quiz-app .mh-personal-stat { padding: 11px 5px; }
  #mh-quiz-app .mh-personal-stat b { font-size: 19px; }
  #mh-quiz-app .mh-personal-stat span { font-size: 10.5px; }
  #mh-quiz-app .mh-community-guest,
  #mh-quiz-app .mh-board-tabs,
  #mh-quiz-app .mh-my-rank { margin-right: 12px; margin-left: 12px; }
  #mh-quiz-app .mh-board-tab { min-height: 58px; padding: 9px 10px; }
  #mh-quiz-app .mh-board-tab b { font-size: 14px; }
  #mh-quiz-app .mh-board-tab small { font-size: 10.5px; }
  #mh-quiz-app .mh-leaderboard-row { grid-template-columns: 38px minmax(80px,1fr) auto; }
  #mh-quiz-app .mh-leaderboard-score { font-size: 12.5px; }
}
