/* Mystery Box / Festive Quest landing page.
   Loaded only on templates/template_mystery_box.php (see includes/mystery-box.php). */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #060b37;
  --navy-deep: #03071e;
  --blue-radial: #2234c5;
  --blue-btn: #1732ff;
  --blue-accent: #4d7bff;
  --blue-card-txt: #3a6bff;
  --green: #3ddc6e;
  --green-btn-txt: #02200c;
  --white: #ffffff;
  --w90: rgba(255, 255, 255, 0.9);
  --w70: rgba(255, 255, 255, 0.7);
  --w50: rgba(255, 255, 255, 0.5);
  --w35: rgba(255, 255, 255, 0.35);
  --w14: rgba(255, 255, 255, 0.14);
  --w08: rgba(255, 255, 255, 0.08);
  --w05: rgba(255, 255, 255, 0.05);
}

/* ---- Fonts. The M4 theme already serves Syncopate and PP Telegraf:
          delete this @font-face block on WordPress if so. ---- */
@font-face {
  font-family: "Syncopate";
  src: url("../fonts/mystery-box/syncopate-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Telegraf";
  src: url("../fonts/mystery-box/pp-telegraf-400.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Telegraf";
  src: url("../fonts/mystery-box/pp-telegraf-800.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.fq {
  /* M4 brand palette: Blue Black #010B1B, Dark Blue #1A257E, Cobalt Blue #2235C5 */
  --fq-bg: #010b1b;
  --fq-navy: #1a257e;
  --fq-cobalt: #2235c5;
  --fq-line: rgba(110, 135, 255, 0.18);
  --fq-line-strong: rgba(125, 150, 255, 0.5);
  --fq-text: #ffffff;
  --fq-soft: #d9dcee;
  --fq-muted: #8d95ba;
  /* Text and buttons stay in brand blue. The iridescent colours live in the box artwork only. */
  --fq-blue: #4a70ff;
  /* Cobalt lifted for display text on Blue Black (4.7:1) */
  --fq-sky: #7aa2ff;
  /* lighter brand blue for small text and icons */
  --fq-sky-2: #5584ff;
  --fq-gold: #ffc65c;
  --fq-gold-2: #f5a524;
  --fq-display: "Syncopate", "Syne", sans-serif;
  --fq-body:
    "PP Telegraf", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fq-pad: clamp(16px, 4vw, 40px);
  --fq-gap: clamp(44px, 5.2vw, 72px);
  /* space between sections */
  --fq-gutter: clamp(12px, 1.5vw, 20px);
  /* space between cards */

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--fq-bg);
  color: var(--fq-text);
  font-family: var(--fq-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.fq *,
.fq *::before,
.fq *::after {
  box-sizing: border-box;
}

.fq img {
  display: block;
  max-width: 100%;
  height: auto;
}

.fq a {
  color: inherit;
  text-decoration: none;
}

.fq h1,
.fq h2,
.fq h3,
.fq p,
.fq ul,
.fq ol {
  margin: 0;
  padding: 0;
}

.fq ul,
.fq ol {
  list-style: none;
}

.fq button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.fq :focus-visible {
  outline: 2px solid var(--fq-sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.fq .fq-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--fq-pad);
}

.fq .fq-section {
  padding-top: var(--fq-gap);
  position: relative;
}

.fq .fq-accent {
  color: var(--fq-blue);
}

.fq .fq-nowrap {
  white-space: nowrap;
}

.fq .fq-h2 {
  font-family: var(--fq-display);
  font-weight: 700;
  font-size: clamp(20px, 2.3vw, 31px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 clamp(18px, 2.2vw, 28px);
}

.fq .fq-h2--lede {
  margin-bottom: 10px;
}

.fq .fq-lede {
  margin: 0 auto clamp(16px, 2vw, 24px) !important;
  max-width: 40em;
  text-align: center;
  text-wrap: balance;
  color: var(--fq-soft);
  font-size: clamp(14.5px, 1.2vw, 16px);
  line-height: 1.45;
}

.fq .fq-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(26, 37, 126, 0.38) 0%,
    rgba(3, 10, 30, 0.86) 100%
  );
  border: 1px solid var(--fq-line);
  border-radius: 18px;
}

.fq .fq-kicker {
  display: block;
  color: var(--fq-sky);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.fq .fq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2c43de 0%, #2235c5 100%);
  /* Cobalt Blue */
  border: 1px solid rgba(122, 162, 255, 0.45);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    0 10px 28px rgba(34, 53, 197, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.fq .fq-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow:
    0 14px 36px rgba(46, 70, 230, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.fq .fq-btn:active {
  transform: translateY(0);
}

.fq .fq-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.2s ease;
}

.fq .fq-btn:hover svg {
  transform: translateX(3px);
}

.fq .fq-btn--quest {
  padding: 13px 22px;
  font-size: 15px;
}

.fq .fq-btn--sm {
  padding: 11px 16px;
  font-size: 14px;
  border-radius: 10px;
  box-shadow:
    0 8px 22px rgba(34, 53, 197, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ---------- Festive layer: confetti + firework bursts (no seasonal or religious motifs) ---------- */
.fq .fq-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fq .fq-confetti i {
  position: absolute;
  top: -24px;
  display: block;
  width: var(--s);
  height: calc(var(--s) * var(--r));
  background: var(--c);
  border-radius: var(--b);
  opacity: var(--o);
  animation: fq-fall var(--d) linear var(--delay) infinite;
}

@keyframes fq-fall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(var(--x), var(--h), 0) rotate(var(--rot));
  }
}

.fq .fq-burst {
  position: absolute;
  pointer-events: none;
  color: var(--fq-gold);
  opacity: 0;
  transform-origin: 50% 50%;
  animation: fq-burst 5.2s ease-out infinite;
}

.fq .fq-burst--lav {
  color: var(--fq-sky-2);
}

@keyframes fq-burst {
  0% {
    opacity: 0;
    transform: scale(0.25);
  }

  12% {
    opacity: 0.85;
  }

  55% {
    opacity: 0.4;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

/* ---------- Top bar (optional on WordPress: the theme header can replace it) ---------- */
.fq .fq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16rem;
  padding-bottom: 8px;
  position: relative;
}

.fq .fq-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.fq .fq-logo {
  height: 26px;
  width: auto;
  flex: none;
}

.fq .fq-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--fq-line-strong);
  background: rgba(34, 53, 197, 0.3);
  color: var(--fq-sky);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fq .fq-nav {
  display: flex;
  align-items: center;
  flex: none;
  gap: clamp(14px, 1.9vw, 26px);
}

.fq .fq-nav a {
  color: var(--fq-soft);
  font-size: 14px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.fq .fq-nav a:hover {
  color: var(--fq-sky);
}

/* ---------- Hero ---------- */
.fq .fq-hero {
  position: relative;
}

.fq .fq-hero-glow {
  position: absolute;
  inset: -12% -8% auto auto;
  width: 66%;
  aspect-ratio: 1.2;
  pointer-events: none;
  background:
    radial-gradient(
      closest-side at 46% 40%,
      rgba(255, 61, 190, 0.1),
      transparent 58%
    ),
    radial-gradient(
      closest-side at 72% 66%,
      rgba(34, 237, 189, 0.09),
      transparent 56%
    ),
    radial-gradient(
      closest-side at 60% 50%,
      rgba(40, 62, 215, 0.5),
      rgba(26, 37, 126, 0.2) 62%,
      transparent 100%
    );
}

.fq .fq-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-top: clamp(12px, 1.8vw, 22px);
  padding-bottom: clamp(8px, 1.4vw, 18px);
}

.fq .fq-h1 {
  font-family: var(--fq-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 3.55vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
}

.fq .fq-h1 span {
  display: block;
  white-space: nowrap;
  width: fit-content;
}

.fq .fq-hero-copy {
  margin-top: 18px !important;
  max-width: 30em;
  color: var(--fq-soft);
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.45;
}

.fq .fq-hero-cta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.fq .fq-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

/* Countdown: to the start before 1 December, then to the end of the campaign */
.fq .fq-tcs {
  color: var(--fq-muted) !important;
  font-size: 13px;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-color: rgba(141, 149, 186, 0.45) !important;
}

.fq .fq-tcs:hover {
  color: var(--fq-soft) !important;
}

.fq .fq-hero-art {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
}

.fq .fq-hero-art img {
  width: 100%;
  animation: fq-float 6.5s ease-in-out infinite;
  filter: drop-shadow(0 28px 44px rgba(20, 40, 180, 0.4));
}

@keyframes fq-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/* ---------- How it works ---------- */
.fq .fq-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fq-gutter);
}

.fq .fq-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.fq .fq-step-art {
  flex: none;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}

.fq .fq-step-art img {
  max-height: 76px;
  max-width: 76px;
  width: auto;
  filter: drop-shadow(0 10px 16px rgba(14, 28, 140, 0.5));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fq .fq-step:hover .fq-step-art img {
  transform: translateY(-4px) scale(1.05);
}

.fq .fq-step-n {
  display: block;
  font-family: var(--fq-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--fq-sky);
  margin-bottom: 4px;
}

.fq .fq-step h3 {
  font-family: var(--fq-display);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fq .fq-step p {
  color: var(--fq-soft);
  font-size: 14.5px;
  line-height: 1.4;
}

.fq .fq-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--fq-gutter) / -2 - 12px);
  width: 24px;
  height: 24px;
  z-index: 2;
  border-radius: 50%;
  border: 1px solid var(--fq-line-strong);
  background: #0b1033
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' stroke='%237AA2FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 11px no-repeat;
  transform: translateY(-50%);
}

.fq .fq-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: clamp(12px, 1.5vw, 18px) auto 0 !important;
  width: fit-content;
  max-width: 100%;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--fq-line);
  background: rgba(10, 16, 50, 0.7);
  color: var(--fq-soft);
  font-size: 14px;
  text-align: center;
}

.fq .fq-note svg {
  width: 15px;
  height: 15px;
  color: var(--fq-sky);
  flex: none;
}

.fq .fq-note b {
  color: #fff;
  font-weight: 800;
}

.fq .fq-note i {
  font-style: normal;
  color: var(--fq-muted);
  margin: 0 4px;
}

.fq .fq-note [hidden] {
  display: none !important;
}

/* ---------- Full-width December calendar ---------- */
.fq .fq-cal {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: var(--fq-gutter);
  align-items: stretch;
}

.fq .fq-board {
  padding: clamp(14px, 1.7vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fq .fq-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin-bottom: clamp(10px, 1.1vw, 14px);
}

.fq .fq-board-tag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--fq-line-strong);
  background: rgba(34, 53, 197, 0.3);
  color: var(--fq-sky);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fq .fq-board-tag[hidden] {
  display: none;
}

.fq .fq-board-month {
  font-family: var(--fq-display);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fq .fq-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(5px, 0.6vw, 8px);
}

.fq .fq-dow {
  text-align: center;
  color: var(--fq-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 1px;
}

.fq .fq-day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.12;
  border-radius: clamp(8px, 0.9vw, 12px);
  background: rgba(13, 19, 58, 0.72);
  border: 1px solid rgba(150, 160, 255, 0.12);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s ease,
    background 0.25s ease;
}

.fq .fq-day.is-blank {
  background: none;
  border-color: transparent;
}

.fq .fq-day-num {
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: var(--fq-display);
  font-weight: 700;
  font-size: clamp(8.5px, 0.8vw, 10.5px);
  line-height: 1;
  color: var(--fq-muted);
}

.fq .fq-day img {
  height: 58%;
  width: auto;
  max-width: 66%;
  object-fit: contain;
  filter: drop-shadow(0 6px 9px rgba(6, 14, 90, 0.55));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fq .fq-day.is-next:hover {
  transform: translateY(-3px);
  border-color: var(--fq-line-strong);
}

.fq .fq-day.is-next:hover img {
  transform: rotate(-5deg) scale(1.08);
}

.fq .fq-day.is-past {
  background: rgba(8, 12, 38, 0.55);
}

.fq .fq-day.is-past img {
  opacity: 0.42;
  filter: none;
}

.fq .fq-day.is-past .fq-day-num {
  opacity: 0.6;
}

/* Opened and Missed need the client's own data: see data-opened on #fq-days */
.fq .fq-day.is-open {
  background: rgba(20, 30, 96, 0.72);
  border-color: rgba(122, 162, 255, 0.3);
}

.fq .fq-day.is-open img {
  opacity: 1;
  filter: drop-shadow(0 6px 9px rgba(6, 14, 90, 0.55));
}

.fq .fq-day.is-open .fq-day-num {
  opacity: 1;
  color: var(--fq-soft);
}

.fq .fq-day.is-open::after,
.fq .fq-sw--open::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--fq-gold)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.6 6.3 5 8.6l4.4-5' stroke='%232A1600' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 8px no-repeat;
}

.fq .fq-day.is-missed {
  background: transparent;
  border-style: dashed;
  border-color: rgba(141, 149, 186, 0.32);
}

.fq .fq-day.is-missed img {
  opacity: 0.3;
  filter: grayscale(1);
}

.fq .fq-day.is-missed .fq-day-num {
  text-decoration: line-through;
}

.fq .fq-day.is-today {
  border: 1.5px solid var(--fq-sky);
  background: radial-gradient(
    120% 120% at 50% 100%,
    #2743d6 0%,
    #1a257e 55%,
    #111a5c 100%
  );
  box-shadow: 0 10px 30px rgba(34, 53, 197, 0.65);
}

.fq .fq-day.is-today img {
  animation: fq-wiggle 2.6s ease-in-out infinite;
}

.fq .fq-day.is-today .fq-day-num {
  color: #fff;
}

@keyframes fq-wiggle {
  0%,
  60%,
  100% {
    transform: rotate(0) scale(1);
  }

  68% {
    transform: rotate(-7deg) scale(1.08);
  }

  76% {
    transform: rotate(6deg) scale(1.08);
  }

  84% {
    transform: rotate(-4deg) scale(1.05);
  }

  92% {
    transform: rotate(2deg);
  }
}

.fq .fq-day-tag {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  z-index: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--fq-navy);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}

.fq .fq-day-tag--missed {
  background: #0b1033;
  color: var(--fq-muted);
  box-shadow: inset 0 0 0 1px rgba(141, 149, 186, 0.35);
}

.fq .fq-day.is-draw {
  grid-column: span 3;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 12px);
  padding: 4px 10px;
  background: linear-gradient(
    120deg,
    rgba(255, 198, 92, 0.2),
    rgba(34, 53, 197, 0.34)
  );
  border-color: rgba(255, 198, 92, 0.55);
}

.fq .fq-day.is-draw img {
  width: clamp(18px, 2vw, 26px);
  height: auto;
  color: var(--fq-gold);
  flex: none;
}

.fq .fq-draw-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.fq .fq-draw-text b {
  font-family: var(--fq-display);
  font-weight: 700;
  font-size: clamp(10px, 1.1vw, 14px);
  text-transform: uppercase;
  color: var(--fq-gold);
  letter-spacing: 0.03em;
}

.fq .fq-draw-text span {
  color: var(--fq-soft);
  font-size: clamp(9.5px, 0.9vw, 12px);
}

/* ---------- Social quests ---------- */
/* The platforms each quest runs on: shown as icons only, the loyalty page holds the links */

/* ---------- Trading quest tiers ---------- */
/* Each card shows its daily M4Coins reward: the tier name centred on top, the amount and the coin artwork
     centred beneath it. The trading thresholds are not shown in this section. */
.fq .fq-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fq-gutter);
  align-items: stretch;
}

.fq .fq-tier {
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.6vw, 20px) clamp(16px, 1.9vw, 24px);
}

.fq .fq-tier-pill {
  align-self: center;
  display: inline-flex;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--fq-line-strong);
  color: var(--fq-sky);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fq .fq-tier-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 12px;
  min-height: clamp(94px, 8.8vw, 122px);
  margin-top: clamp(12px, 1.3vw, 16px);
}

.fq .fq-tier-coins {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  font-family: var(--fq-display);
  font-weight: 700;
  font-size: clamp(40px, 4.1vw, 56px);
  line-height: 0.86;
}

.fq .fq-tier-coins small {
  font-family: var(--fq-body);
  font-weight: 800;
  font-size: clamp(13px, 1.2vw, 15.5px);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fq-gold);
}

/* "Earn" above the amount: same label style as "M4Coins" below it, in white so the gold stays with the coins */
.fq .fq-tier .fq-tier-coins .fq-tier-earn {
  color: #ffffff;
}

/* The coin artwork sits level with the amount, in the middle of the card, and carries a warm glow.
     The row is as tall as the largest artwork, so all three cards keep the same height. */
.fq .fq-tier-main img {
  height: clamp(66px, 6vw, 84px);
  width: auto;
  flex: none;
  filter: drop-shadow(0 12px 18px rgba(245, 165, 36, 0.3))
    drop-shadow(0 0 30px rgba(245, 165, 36, 0.24));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fq .fq-tier-main img.fq-c3 {
  height: clamp(82px, 7.5vw, 104px);
}

.fq .fq-tier-main img.fq-c6 {
  height: clamp(94px, 8.8vw, 122px);
}

.fq .fq-tier:hover .fq-tier-main img {
  transform: translateY(-5px) rotate(-3deg);
}

.fq .fq-m4 {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  flex: none;
}

.fq .fq-tier--top {
  background: linear-gradient(
    180deg,
    rgba(40, 62, 215, 0.8) 0%,
    rgba(26, 37, 126, 0.92) 100%
  );
  border-color: var(--fq-sky);
  box-shadow:
    0 0 0 1px rgba(122, 162, 255, 0.4),
    0 16px 46px rgba(34, 53, 197, 0.65);
  transform: translateY(-6px);
}

.fq .fq-tier--top .fq-tier-pill {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--fq-navy);
}

.fq .fq-tier--top .fq-tier-coins small {
  color: #ffd98a;
}

/* Daily progress bar (illustrative here: the client area feeds it real numbers) */

/* ---------- Lucky Draw prizes ---------- */
.fq .fq-prizes-wrap {
  position: relative;
}

.fq .fq-prizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fq-gutter);
}

.fq .fq-prize {
  overflow: hidden;
}

.fq .fq-prize-stage {
  position: relative;
  height: clamp(150px, 15.5vw, 204px);
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 18px 20px 2px;
  background: radial-gradient(
    60% 55% at 50% 58%,
    rgba(40, 62, 215, 0.5),
    transparent 70%
  );
}

.fq .fq-prize-stage img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(2, 8, 54, 0.65));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fq .fq-prize:hover .fq-prize-stage img {
  transform: translateY(-6px) scale(1.035);
}

.fq .fq-prize-qty {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 1;
  font-family: var(--fq-display);
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1;
}

.fq .fq-prize-qty small {
  font-size: 0.45em;
  color: var(--fq-sky);
  margin-left: 3px;
}

.fq .fq-prize-body {
  padding: 10px 20px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.fq .fq-prize-body h3 {
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.1;
}

.fq .fq-prize-body p {
  color: var(--fq-muted);
  font-size: 14px;
  white-space: nowrap;
}

.fq .fq-prize--top {
  border-color: rgba(255, 198, 92, 0.5);
}

.fq .fq-prize--top .fq-prize-stage {
  background: radial-gradient(
    60% 55% at 50% 58%,
    rgba(255, 190, 80, 0.2),
    rgba(40, 62, 215, 0.42) 45%,
    transparent 72%
  );
}

.fq .fq-prize--top .fq-prize-qty small,
.fq .fq-prize--top .fq-prize-body p {
  color: var(--fq-gold);
}

.fq .fq-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: var(--fq-gutter) !important;
  padding: clamp(11px, 1.2vw, 15px) clamp(16px, 2vw, 26px);
  border-radius: 14px;
  border: 1px solid rgba(255, 198, 92, 0.4);
  background: linear-gradient(
    100deg,
    rgba(255, 198, 92, 0.13),
    rgba(34, 53, 197, 0.3)
  );
  color: var(--fq-soft);
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

.fq .fq-entry img {
  width: 24px;
  height: 24px;
  color: var(--fq-gold);
  flex: none;
}

.fq .fq-entry b {
  color: #fff;
  font-weight: 800;
}

.fq .fq-small {
  margin: 12px auto 0 !important;
  max-width: 58em;
  text-align: center;
  text-wrap: balance;
  color: var(--fq-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- FAQ (same structure as m4markets.com/loyalty-program) ---------- */
.fq .fq-faq {
  padding-bottom: clamp(40px, 4.6vw, 64px);
}

.fq .fq-faq-eyebrow {
  text-align: center;
  color: var(--fq-soft);
  font-size: 14px;
  margin-bottom: 8px !important;
}

.fq .fq-faq .fq-h2 {
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.fq .fq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.fq .fq-tab {
  padding: 7px 16px !important;
  border-radius: 6px;
  border: 1px solid #141c4a !important;
  color: var(--fq-muted) !important;
  font-size: 13.5px;
  font-weight: 800;
  transition: all 0.18s ease;
}

.fq .fq-tab:hover {
  color: #fff !important;
  border-color: var(--fq-line-strong) !important;
}

.fq .fq-tab.is-active {
  background: var(--fq-cobalt) !important;
  border-color: var(--fq-cobalt) !important;
  color: #fff !important;
}

.fq .fq-faq-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fq .fq-faq-item {
  background: #060b23;
  border: 1px solid #0f163b;
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.fq .fq-faq-item:hover,
.fq .fq-faq-item.is-open {
  border-color: #232c6b;
}

.fq .fq-faq-item[hidden] {
  display: none;
}

.fq .fq-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px !important;
  text-align: left;
  color: var(--fq-muted) !important;
  font-size: clamp(14.5px, 1.15vw, 16px);
  font-weight: 400;
  transition: color 0.2s ease;
}

.fq .fq-faq-item:hover .fq-faq-q,
.fq .fq-faq-item.is-open .fq-faq-q {
  color: #fff !important;
}

.fq .fq-faq-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  flex: none;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.fq .fq-faq-icon img {
  width: 11px;
  height: 11px;
}

.fq .fq-faq-item.is-open .fq-faq-icon {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.08);
}

.fq .fq-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.fq .fq-faq-item.is-open .fq-faq-a {
  grid-template-rows: 1fr;
}

.fq .fq-faq-a > div {
  overflow: hidden;
}

.fq .fq-faq-a p {
  padding: 0 20px 15px;
  color: #e1e3eb;
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 62em;
}

.fq .fq-faq-a a {
  color: var(--fq-sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fq .fq-fine {
  margin-top: 20px !important;
  text-align: center;
  color: #6a7299;
  font-size: 12px;
  line-height: 1.6;
  max-width: 70em;
  margin-left: auto !important;
  margin-right: auto !important;
}

.fq .fq-fine a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.fq.fq-js .fq-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--fq-delay, 0s);
}

.fq.fq-js .fq-reveal.is-in {
  opacity: 1;
  transform: none;
}

.fq.fq-js .fq-tier--top.fq-reveal.is-in {
  transform: translateY(-6px);
}

/* ---------- Tablet ---------- */
@media (min-width: 1100px) and (max-width: 1279px) {
  .fq .fq-pill {
    display: none;
  }
}

@media (max-width: 1099px) {
  .fq .fq-nav {
    display: none;
  }
}

@media (max-width: 1040px) {
  .fq .fq-cal {
    grid-template-columns: 1fr;
  }

  .fq .fq-cal-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .fq .fq-day {
    aspect-ratio: 1.5;
  }

  .fq .fq-step {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 18px 14px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .fq {
    font-size: 15.5px;
  }

  .fq .fq-top {
    padding-top: 16px;
  }

  .fq .fq-logo {
    height: 23px;
  }

  .fq .fq-top .fq-btn {
    display: none;
  }

  .fq .fq-top-left {
    width: 100%;
    justify-content: space-between;
  }

  .fq .fq-pill {
    font-size: 10.5px;
    padding: 6px 11px;
  }

  .fq .fq-hero-grid {
    grid-template-columns: 1fr;
    padding-top: 12rem;
    text-align: center;
    gap: 10px;
  }

  .fq .fq-h1 {
    font-size: clamp(25px, 7.8vw, 40px);
  }

  .fq .fq-h1 span {
    white-space: normal;
    margin-left: auto;
    margin-right: auto;
  }

  .fq .fq-hero-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .fq .fq-hero-cta {
    align-items: center;
    margin-top: 22px;
  }

  .fq .fq-hero-cta .fq-btn {
    width: 100%;
    max-width: 360px;
  }

  .fq .fq-hero-row {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .fq .fq-hero-art {
    width: min(68%, 290px);
    margin: 0 auto;
    justify-self: center;
  }

  .fq .fq-hero-glow {
    inset: auto -30% -6% -30%;
    width: auto;
    height: 62%;
    aspect-ratio: auto;
  }

  .fq .fq-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fq .fq-step {
    flex-direction: row;
    text-align: left;
    gap: 14px;
    padding: 13px 16px;
  }

  .fq .fq-step-art {
    width: 62px;
    height: 62px;
  }

  .fq .fq-step-art img {
    max-height: 62px;
    max-width: 62px;
  }

  .fq .fq-step:not(:last-child)::after {
    top: auto;
    bottom: -19px;
    right: 50%;
    transform: translateX(50%) rotate(90deg);
  }

  .fq .fq-note {
    border-radius: 14px;
    flex-direction: column;
    gap: 2px;
    font-size: 13.5px;
    padding: 10px 16px;
  }

  .fq .fq-note svg,
  .fq .fq-note i {
    display: none;
  }

  .fq .fq-note span {
    display: block;
  }

  .fq .fq-board {
    padding: 10px;
    border-radius: 16px;
  }

  .fq .fq-board-head {
    padding: 6px 4px 2px;
  }

  .fq .fq-dow {
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  .fq .fq-day {
    aspect-ratio: 0.82;
    border-radius: 8px;
    place-items: end center;
    padding-bottom: 14%;
  }

  .fq .fq-day-num {
    top: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
  }

  .fq .fq-day img {
    height: auto;
    width: 60%;
    max-width: none;
  }

  .fq .fq-day.is-draw {
    aspect-ratio: auto;
    place-items: center;
    padding: 4px 8px;
    gap: 6px;
  }

  .fq .fq-day-tag {
    font-size: 7.5px;
    padding: 2px 5px;
  }

  .fq .fq-day.is-past img {
    width: 76%;
  }

  .fq .fq-day.is-missed img {
    width: 60%;
  }

  .fq .fq-day.is-open::after {
    top: 3px;
    right: 3px;
    width: 10px;
    height: 10px;
    background-size: 6px;
  }

  .fq .fq-cal-side {
    grid-template-columns: 1fr;
  }

  .fq .fq-tiers {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fq .fq-tier--top,
  .fq.fq-js .fq-tier--top.fq-reveal.is-in {
    transform: none;
  }

  .fq .fq-burst {
    max-width: 92px;
    max-height: 92px;
  }

  .fq .fq-prizes {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fq .fq-prize {
    display: grid;
    grid-template-columns: 42% 1fr;
    align-items: center;
  }

  .fq .fq-prize-stage {
    height: 136px;
    padding: 26px 6px 10px 20px;
  }

  .fq .fq-prize-qty {
    top: 10px;
    left: 14px;
    font-size: 21px;
  }

  .fq .fq-prize-body {
    display: block;
    padding: 14px 16px 14px 6px;
  }

  .fq .fq-prize-body h3 {
    margin-bottom: 2px;
  }

  .fq .fq-entry {
    flex-direction: column;
    gap: 8px;
  }

  .fq .fq-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: calc(var(--fq-pad) * -1);
    margin-right: calc(var(--fq-pad) * -1);
    padding: 0 var(--fq-pad) 4px;
    scrollbar-width: none;
  }

  .fq .fq-tabs::-webkit-scrollbar {
    display: none;
  }

  .fq .fq-tab {
    white-space: nowrap;
    flex: none;
  }

  .fq .fq-faq-q {
    padding: 13px 16px !important;
  }

  .fq .fq-faq-a p {
    padding: 0 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fq *,
  .fq *::before,
  .fq *::after {
    animation: none !important;
    transition: none !important;
  }

  .fq .fq-confetti,
  .fq .fq-burst {
    display: none;
  }

  .fq.fq-js .fq-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Language selector (top bar, right). Names are drawn in a system font so every script has its glyphs. ---------- */
.fq .fq-top {
  z-index: 30;
}

.fq .fq-top-right {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex: none;
}

.fq .fq-lang {
  position: relative;
  display: flex;
  flex: none;
}

.fq .fq-lang[hidden],
.fq .fq-lang-menu[hidden] {
  display: none !important;
}

.fq .fq-lang-btn,
.fq .fq-lang-menu a {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    "Malgun Gothic",
    "Hiragino Sans",
    "Yu Gothic",
    "Leelawadee UI",
    Thonburi,
    "Noto Sans",
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.fq .fq-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px 0 11px !important;
  border-radius: 10px;
  border: 1px solid var(--fq-line-strong) !important;
  background: rgba(10, 16, 50, 0.72) !important;
  color: var(--fq-text) !important;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.fq .fq-lang-btn:hover,
.fq .fq-lang-btn[aria-expanded="true"] {
  border-color: var(--fq-sky) !important;
  background: rgba(34, 53, 197, 0.5) !important;
}

.fq .fq-lang-globe {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--fq-sky);
}

.fq .fq-lang-caret {
  width: 10px;
  height: 10px;
  flex: none;
  color: var(--fq-sky);
  transition: transform 0.15s ease;
}

.fq .fq-lang-btn[aria-expanded="true"] .fq-lang-caret {
  transform: rotate(180deg);
}

.fq .fq-lang-code {
  display: none;
}

.fq .fq-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 196px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--fq-line-strong);
  background: #0a1032;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(1, 11, 27, 0.6);
}

.fq .fq-lang-menu li + li {
  margin-top: 2px;
}

.fq .fq-lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--fq-soft);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.fq .fq-lang-menu a:hover,
.fq .fq-lang-menu a:focus-visible {
  background: rgba(34, 53, 197, 0.5);
  color: var(--fq-text);
  outline-offset: -2px;
}

.fq .fq-lang-menu a[aria-current="true"] {
  background: var(--fq-cobalt);
  color: var(--fq-text);
  font-weight: 600;
}

.fq .fq-lang-menu a[aria-current="true"]::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.6 6.3 5 8.6l4.4-5' stroke='%23FFFFFF' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Top bar fit. The script adds these classes one step at a time, only while the bar is wider than the page
     (the nav and button labels differ a lot in length between languages): fq-fit-p hides the pill, fq-fit-c shows the
     short language code, fq-fit-n and fq-fit-n2 tighten the nav, fq-fit-x hides the nav as on tablets. */
.fq .fq-top.fq-fit-p .fq-pill {
  display: none;
}

.fq .fq-top.fq-fit-c .fq-lang-name {
  display: none;
}

.fq .fq-top.fq-fit-c .fq-lang-code {
  display: inline;
}

.fq .fq-top.fq-fit-n {
  gap: 18px;
}

.fq .fq-top.fq-fit-n .fq-nav {
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 12px;
}

.fq .fq-top.fq-fit-n2 {
  gap: 12px;
}

.fq .fq-top.fq-fit-n2 .fq-nav {
  gap: 9px;
}

.fq .fq-top.fq-fit-n2 .fq-btn {
  padding-left: 13px;
  padding-right: 13px;
}

.fq .fq-top.fq-fit-n2 .fq-nav a {
  font-size: 13px;
}

.fq .fq-top.fq-fit-x .fq-nav {
  display: none;
}

@media (max-width: 760px) {
  .fq .fq-top {
    gap: 10px;
  }

  .fq .fq-top-left {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .fq .fq-pill {
    flex: none;
  }

  .fq .fq-lang-btn {
    min-height: 34px;
    padding: 0 9px !important;
    gap: 6px;
    font-size: 13px;
  }

  .fq .fq-lang-name,
  .fq .fq-lang-caret {
    display: none;
  }

  .fq .fq-lang-code {
    display: inline;
  }
}

/* ---------- Public landing page adjustments ---------- */
.fq .fq-cal {
  display: block;
  width: 100%;
}

.fq .fq-board {
  width: 100%;
  padding: clamp(16px, 2.4vw, 30px);
}

.fq .fq-board-head {
  justify-content: center;
  margin-bottom: 18px;
}

.fq .fq-days {
  gap: clamp(6px, 0.9vw, 12px);
}

.fq .fq-day {
  aspect-ratio: 1.7;
}

.fq .fq-day-num {
  font-size: clamp(10px, 1.05vw, 13px);
}

.fq .fq-day img {
  height: 64%;
  max-width: 67%;
}

.fq .fq-section-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(22px, 3vw, 34px);
}

.fq .fq-section-cta .fq-btn {
  text-align: center;
}

@media (max-width: 760px) {
  .fq .fq-board {
    padding: 10px;
  }

  .fq .fq-days {
    gap: 5px;
  }

  .fq .fq-day {
    aspect-ratio: 0.9;
  }

  .fq .fq-day-num {
    font-size: 9px;
  }

  .fq .fq-day img {
    height: auto;
    width: 62%;
    max-width: none;
  }

  .fq .fq-section-cta .fq-btn {
    width: 100%;
    max-width: 360px;
    white-space: normal;
    line-height: 1.2;
  }
}

/* ---------- Translations ----------
   The template prints lang="" and dir="" on .fq from the WPML language.
   These rules come from the per-language HTML builds. */

/* Longer translated strings: let them wrap. */
.fq:not([lang="en"]) .fq-h1 span {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.fq:not([lang="en"]) .fq-nowrap {
  white-space: normal;
}
.fq:not([lang="en"]) .fq-btn {
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}
.fq:not([lang="en"]) .fq-prize-body p,
.fq:not([lang="en"]) .fq-prize-body h3 {
  white-space: normal;
  overflow-wrap: anywhere;
}
.fq:not([lang="en"]) .fq-draw-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.fq:not([lang="en"]) .fq-day-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
  padding-inline: 3px;
}
.fq:not([lang="en"]) .fq-tier-coins small {
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .fq:not([lang="en"]) .fq-tier-coins small {
    font-size: 13px;
  }
}

/* Non-Latin scripts: system fonts, no letter-spacing or uppercase. */
.fq[lang="zh-CN"] {
  --fq-display:
    "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --fq-body:
    "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.fq[lang="zh-TW"] {
  --fq-display:
    "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", system-ui,
    sans-serif;
  --fq-body:
    "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", system-ui,
    sans-serif;
}
.fq[lang="ja"] {
  --fq-display:
    "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --fq-body:
    "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}
.fq[lang="ko"] {
  --fq-display: "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;
  --fq-body: "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;
}
.fq[lang="th"] {
  --fq-display:
    "Noto Sans Thai", "Leelawadee UI", Thonburi, system-ui, sans-serif;
  --fq-body: "Noto Sans Thai", "Leelawadee UI", Thonburi, system-ui, sans-serif;
}
.fq[lang="vi"] {
  --fq-display: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --fq-body: "Noto Sans", "Segoe UI", system-ui, sans-serif;
}
.fq[lang="ug"] {
  --fq-display:
    "Noto Sans Arabic", "Noto Naskh Arabic", "Arial", system-ui, sans-serif;
  --fq-body:
    "Noto Sans Arabic", "Noto Naskh Arabic", "Arial", system-ui, sans-serif;
}

.fq:is(
    [lang="zh-CN"],
    [lang="zh-TW"],
    [lang="ja"],
    [lang="ko"],
    [lang="th"],
    [lang="vi"],
    [lang="ug"]
  )
  :is(
    .fq-h1,
    .fq-h2,
    .fq-step-n,
    .fq-step h3,
    .fq-board-month,
    .fq-draw-text b
  ) {
  letter-spacing: 0;
  text-transform: none;
}

/* Right-to-left (Uyghur). */
.fq[dir="rtl"] .fq-faq-q {
  text-align: right;
}
.fq[dir="rtl"] .fq-hero-art {
  justify-self: end;
}
.fq[dir="rtl"] .fq-tier-coins {
  direction: rtl;
}
.fq[dir="rtl"] .fq-day-num {
  left: auto;
  right: 8px;
}
.fq[dir="rtl"] :is(.fq-tier-pill, .fq-tier-coins small) {
  letter-spacing: 0;
  text-transform: none;
}
