* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:root {
  --rose: #bb285e;
  --rose-deep: #8c2149;
  --rose-ink: #54253a;
  --rose-muted: #7b4b60;
  --rose-line: #efb5cc;
  --rose-soft: #fff0f6;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  font-family: "HarmonyOS Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: radial-gradient(ellipse at 50% 12%, #fff6fa 0%, #f9dce8 55%, #efb9cf 100%);
  color: var(--rose-ink);
  overflow-x: hidden;
}

#mc {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.mc-frame {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  padding: max(10px, env(safe-area-inset-top, 0px)) 0 max(10px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #f9cadd 0%, #ffe9f2 46%, #f6b9d1 100%);
  box-shadow: 0 0 80px #9c345323;
}

.mc-wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  filter: grayscale(1);
  pointer-events: none;
}

.mc-pulse {
  position: absolute;
  top: 34px;
  right: -16px;
  width: 138px;
  opacity: .45;
  filter: sepia(1) saturate(2) hue-rotate(285deg);
}

.mc-head {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 4px;
  flex-shrink: 0;
}

.mc-head--plain {
  margin-bottom: 18px;
}

.mc-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mc-headline img {
  height: 26px;
}

.mc-headline .mc-cap {
  height: 30px;
}

.mc-note {
  margin: 10px 0 15px;
  color: var(--rose-muted);
  font-size: 13px;
}

.mc-flow {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 8px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mc-card {
  position: relative;
  width: 100%;
  min-height: min(480px, calc(100dvh - 200px));
  padding: 0;
  background: transparent;
  display: flex;
  justify-content: center;
}

.mc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('./m/c.png') center / 100% 100% no-repeat;
  filter: grayscale(1) sepia(1) saturate(4) hue-rotate(292deg);
  opacity: .72;
  pointer-events: none;
}

.mc-card .mc-body {
  position: relative;
  z-index: 1;
  width: 270px;
  padding: 75px 8px 0 20px;
}

.mc-asktext {
  margin: 0 0 12px;
  color: var(--rose-ink);
  font-size: clamp(15px, 4.2vw, 20px);
  line-height: 1.55;
  font-weight: 700;
  min-height: 0;
}

.mc-card h2 {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 20px;
  line-height: 1.05;
  font-style: italic;
  letter-spacing: .2px;
}

.mc-quest {
  margin: 0 0 14px;
  color: var(--rose-ink);
  font-size: 14px;
  height: 38px;
  font-weight: 700;
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
}

.mc-item {
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: var(--rose-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.mc-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  display: block;
  margin-bottom: 4px;
}

.mc-item.mc-item--on img {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px #fff2f8, 0 4px 14px #bb285e33;
}

.mc-wait {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 136px;
}

.mc-wait h2 {
  margin: 0;
  align-self: flex-start;
  color: var(--rose);
  font-size: 14px;
  line-height: 1.05;
  font-style: italic;
}

.mc-wait--mid {
  width: 100%;
  padding-top: 0;
  min-height: 430px;
  justify-content: center;
  transform: translateY(-24px);
}

.mc-wait p {
  margin: 0 0 20px;
  color: var(--rose-ink);
  font-size: 14px;
  font-weight: 700;
}

.mc-wait--mid .mc-w1 {
  margin-bottom: 36px;
}

.mc-wait--mid .mc-w2 {
  margin-bottom: 15px;
}

.mc-wait--last {
  width: 100%;
  min-height: 430px;
  justify-content: center;
  gap: 0;
  padding-top: 0;
}

.mc-wait--last h2 {
  position: absolute;
  top: 0;
  left: 0;
}

.mc-wtext {
  margin: 0 0 15px;
  font-size: 14px;
  color: var(--rose-ink);
  font-weight: 700;
}

.mc-track {
  width: min(234px, 100%);
  height: 16px;
  border-radius: 999px;
  background: #fff5f9;
  border: 1px solid var(--rose-line);
  overflow: hidden;
  margin-top: 0;
}

.mc-thumb {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d23a75, #ee8eb4);
  transition: width .06s linear;
}

.mc-frame > .mc-end {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mc-end {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 0 24px 20px;
  color: var(--rose-ink);
}

.mc-end h3 {
  color: var(--rose-deep);
  margin: 0 0 19px;
  font-size: 20px;
  line-height: 1.3;
}

.mc-end .mc-meta {
  margin: 0 0 35px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.mc-end .mc-lead {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
}

.mc-end ol {
  margin: 32px 0 0;
  padding-left: 20px;
  color: var(--rose-muted);
}

.mc-end li {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 8px;
}

.mc-line {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mc-line strong {
  font-size: 22px;
}

.mc-avatar {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: #f4bbd0;
  border: 2px solid #fff4f8;
  box-shadow: 0 5px 16px #ad356028;
  cursor: pointer;
}

.mc-frame > footer.mc-actions {
  flex-shrink: 0;
  margin-top: 8px;
  padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
}

.mc-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.mc-action {
  width: 132px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9316a, #a71f50);
  box-shadow: 0 5px 14px #ad28582e, inset 0 1px 0 #ffffff30;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.mc-actions--ask {
  margin-top: 16px;
}

.mc-actions--ask .mc-action {
  height: 46px;
  font-size: 16px;
}

.mc-card.mc-card--ask {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.mc-card--ask .mc-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 290px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(130px, 22vh, 180px) 12px 0 16px;
}

.mc-card--ask .mc-actions--ask {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: auto;
  padding: 12px 12px 8px;
  flex-shrink: 0;
}

.mc-action:active {
  transform: translateY(1px);
  opacity: .95;
}

@media (max-width: 480px) {
  .mc-frame {
    width: 100vw;
    padding: max(8px, env(safe-area-inset-top, 0px)) 0 max(8px, env(safe-area-inset-bottom, 0px));
  }

  .mc-headline .mc-cap {
    height: clamp(18px, 5vw, 20px);
  }

  .mc-headline img:not(.mc-cap) {
    height: clamp(20px, 5.5vw, 26px);
  }

  .mc-pulse {
    width: min(126px, 28vw);
    top: 22px;
  }

  .mc-card:not(.mc-card--ask) {
    min-height: min(480px, calc(100dvh - 160px));
    padding: 0;
  }

  .mc-card.mc-card--ask {
    min-height: 0;
  }

  .mc-card h2 {
    font-size: 14px;
  }

  .mc-asktext {
    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.5;
    margin-bottom: 10px;
    min-height: 0;
  }

  .mc-quest {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .mc-item {
    font-size: 12px;
  }

  .mc-wait {
    padding-top: 100px;
  }

  .mc-wait h2 {
    font-size: 14px;
  }

  .mc-wait--mid {
    min-height: 390px;
    transform: translateY(-20px);
  }

  .mc-wait--last {
    min-height: 390px;
  }

  .mc-track {
    width: min(234px, 100%);
    height: 12px;
  }

  .mc-end h3 {
    font-size: 20px;
  }

  .mc-end .mc-meta {
    font-size: 15px;
  }

  .mc-end .mc-lead {
    font-size: 18px;
  }

  .mc-end li {
    font-size: 13px;
  }

  .mc-line strong {
    font-size: 16px;
  }

  .mc-action {
    width: 134px;
    height: 44px;
    font-size: 16px;
  }

  .mc-actions--ask .mc-action {
    width: 132px;
    height: 42px;
    font-size: 16px;
  }

  .mc-card--ask .mc-actions--ask {
    padding: 10px 8px 6px;
  }
}

@media (max-height: 700px) {
  .mc-note {
    margin: 6px 0 8px;
    font-size: 12px;
  }

  .mc-pulse {
    width: min(100px, 26vw);
    top: 16px;
    right: -12px;
  }

  .mc-headline {
    gap: 6px;
  }

  .mc-card:not(.mc-card--ask) .mc-body {
    padding-top: clamp(32px, 8vh, 60px);
  }
}

/* Country/language switcher and flexible translated text. */
.mc-language {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 14px 10px;
  text-align: start;
}
.mc-language label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.mc-language select {
  font: inherit;
  font-size: 13px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--rose-line);
  box-shadow: 0 3px 12px #ac315514;
  border-radius: 10px;
  min-height: 40px;
  max-width: 100%;
  width: 245px;
  padding: 6px 10px;
  cursor: pointer;
}
.mc-language select:focus-visible,
.mc-action:focus-visible,
.mc-item:focus-visible {
  outline: 3px solid var(--rose-deep);
  outline-offset: 3px;
}
.mc-brand {
  max-width: 70%;
  color: var(--rose-deep);
  font-size: clamp(17px, 5vw, 23px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.mc-headline img {
  flex-shrink: 0;
  filter: sepia(1) saturate(2) hue-rotate(285deg);
}
.mc-note {
  padding-inline: 16px;
  line-height: 1.5;
}
.mc-quest {
  height: auto;
  min-height: 38px;
  line-height: 1.5;
}
.mc-asktext, .mc-quest, .mc-end, .mc-wait p {
  overflow-wrap: anywhere;
}
.mc-wait p {
  padding-inline: 18px;
}
.mc-action, .mc-actions--ask .mc-action {
  height: auto;
  min-height: 46px;
  padding: 9px 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mc-actions {
  padding-inline: 12px;
}
.mc-avatar {
  flex-shrink: 0;
}
.mc-end ol {
  padding-inline-start: 20px;
  padding-inline-end: 0;
}
[dir="rtl"] .mc-card .mc-body {
  padding-inline-start: 20px;
  padding-inline-end: 8px;
}
[dir="rtl"] .mc-card--ask .mc-body {
  padding-inline-start: 16px;
  padding-inline-end: 12px;
}
@media (max-height: 700px) {
  .mc-language {
    padding-bottom: 6px;
  }
  .mc-language select {
    min-height: 34px;
  }
  .mc-card--ask .mc-body {
    padding-top: clamp(48px, 13vh, 90px);
  }
}

/* Rose and cream edition. */
:root {
  --rose: #b52c59;
  --rose-deep: #902343;
  --rose-ink: #4e2936;
  --rose-muted: #866674;
  --rose-line: #efd3dc;
  --rose-soft: #fff5f7;
}
body {
  background: radial-gradient(ellipse at top, #fff9f5 0%, #f5dce2 65%, #e9bbc8 100%);
}
.mc-frame {
  padding: max(18px, env(safe-area-inset-top, 0px)) 16px max(18px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(155deg, #fffaf6 0%, #fff4f6 55%, #f9e4e9 100%);
  box-shadow: 0 0 90px #873a4e20;
}
.mc-wall { opacity: .04; }
.mc-pulse { opacity: .12; top: 68px; }
.mc-head { padding-top: 0; }
.mc-head--plain { margin-bottom: 8px; }
.mc-language { padding: 0 0 22px; justify-content: center; }
.mc-language select {
  width: 100%; min-height: 42px; border-radius: 14px;
  border-color: #edd3dc; color: #79505f; font-size: 12px;
  background: #ffffffdc; box-shadow: 0 4px 16px #9d38550a;
}
.mc-brand { font-size: clamp(20px, 5.8vw, 26px); letter-spacing: -.6px; }
.mc-headline { gap: 8px; }
.mc-headline img { height: 20px; opacity: .5; }
.mc-note { margin: 12px 0 20px; padding-inline: 8px; font-size: 12px; line-height: 1.6; }
.mc-flow { margin-top: 0; border-radius: 24px; }
.mc-card, .mc-card.mc-card--ask {
  border: 1px solid #efd7df; border-radius: 24px;
  background: #fffdfc; box-shadow: 0 8px 24px #a8496210;
  overflow: hidden; flex-shrink: 0;
}
.mc-card::before { background: none; filter: none; opacity: 1; }
.mc-card::after {
  content: ''; position: absolute; inset: 0 0 auto;
  height: 5px; background: linear-gradient(90deg, #f4c7d6, #c94c77, #f4c7d6);
  pointer-events: none;
}
.mc-card .mc-body,
.mc-card:not(.mc-card--ask) .mc-body,
[dir="rtl"] .mc-card .mc-body {
  width: 100%; padding: 24px 18px;
}
.mc-card.mc-card--ask { min-height: 0; flex: 1; }
.mc-card--ask .mc-body,
[dir="rtl"] .mc-card--ask .mc-body {
  max-width: 100%; padding: 30px 24px;
  display: flex; align-items: center; justify-content: center;
}
.mc-asktext { margin: 0; font-size: clamp(17px, 4.8vw, 20px); font-weight: 600; line-height: 1.75; text-align: center; }
.mc-quest { font-size: 15px; text-align: center; margin-bottom: 18px; }
.mc-grid { gap: 14px; }
.mc-item img { border-radius: 16px; border-color: #f5e4ea; }
.mc-item span { display: block; padding-top: 4px; }
.mc-item.mc-item--on img { border-color: #ba3b66; box-shadow: 0 0 0 3px #fbe8ef; }
.mc-actions { gap: 10px; }
.mc-action, .mc-actions--ask .mc-action {
  border-radius: 14px; font-size: 14px; font-weight: 600;
  background: linear-gradient(120deg, #bd3863, #a12b50);
  box-shadow: 0 5px 12px #a6375620; min-height: 46px;
}
.mc-action + .mc-action {
  color: var(--rose-deep); background: #fceaf0; border: 1px solid #f0cdd9; box-shadow: none;
}
.mc-card--ask .mc-actions--ask { padding: 16px 20px 24px; }
.mc-card--ask .mc-actions--ask .mc-action { flex: 1; width: auto; }
.mc-frame > footer.mc-actions { padding-inline: 0; margin-top: 14px; }
.mc-frame > footer.mc-actions .mc-action { flex: 1; }
.mc-wait { width: 100%; padding: 24px 12px; }
.mc-wait--mid, .mc-wait--last { min-height: 380px; transform: none; }
.mc-wait p { line-height: 1.7; font-weight: 500; }
.mc-wait--mid .mc-w1 { font-size: 19px; color: var(--rose-deep); margin-bottom: 14px; }
.mc-wait--mid .mc-w2 { color: var(--rose-muted); }
.mc-track { height: 10px; background: #fae7ed; border: 0; }
.mc-thumb { background: linear-gradient(90deg, #b52c59, #e58fab); }
.mc-frame > .mc-end {
  margin-top: 0; padding: 26px 22px; border: 1px solid #efd7df;
  border-radius: 24px; background: #fffdfc;
}
.mc-end h3 { font-size: 22px; margin-bottom: 16px; }
.mc-end .mc-meta { margin-bottom: 24px; color: #a23b60; }
.mc-end .mc-lead { font-size: 16px; line-height: 1.65; }
.mc-end ol { margin-top: 24px; }
.mc-end li { font-size: 14px; line-height: 1.7; }
.mc-line { border-top: 1px solid #f2dce4; padding-top: 20px; }
.mc-line strong { font-size: 17px; }
.mc-avatar { border-radius: 50%; }
@media (max-height: 700px) {
  .mc-frame { padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  .mc-language { padding-bottom: 12px; }
  .mc-language select { min-height: 36px; }
  .mc-note { margin: 8px 0 12px; }
  .mc-card--ask .mc-body, [dir="rtl"] .mc-card--ask .mc-body { padding: 18px 22px; }
  .mc-asktext { font-size: 16px; line-height: 1.6; }
}

/* Candlelit burgundy edition. */
:root {
  color-scheme: dark;
  --rose: #e6b98a;
  --rose-deep: #f1d1ab;
  --rose-ink: #faeae5;
  --rose-muted: #c9a7ad;
  --rose-line: #74505a;
  --rose-soft: #3c2432;
}
body {
  background: radial-gradient(ellipse at 50% 0%, #4a2434 0%, #241521 52%, #140e16 100%);
}
.mc-frame {
  background: radial-gradient(ellipse at 95% 7%, #67324555 0%, transparent 50%),
    radial-gradient(ellipse at 0% 95%, #8a573322 0%, transparent 45%),
    linear-gradient(160deg, #2f1b29, #211520 60%, #311c29);
  box-shadow: 0 0 100px #00000050;
}
.mc-wall { opacity: .025; }
.mc-pulse { opacity: .1; filter: sepia(1) saturate(.7); }
.mc-language select {
  color: #e6c7ba; background: #35232ecc;
  border: 1px solid #ae7e683d; box-shadow: 0 5px 18px #00000014;
}
.mc-language option { background: #35232e; color: #faeae5; }
.mc-brand {
  font-family: Georgia, 'Noto Serif SC', 'Songti SC', serif;
  font-weight: 500; letter-spacing: .3px;
  color: #f1d1ab; text-shadow: 0 2px 22px #f4bb6a22;
}
.mc-headline img { filter: sepia(1) saturate(.65); opacity: .5; }
.mc-note { color: #c9a7ad; }
.mc-card, .mc-card.mc-card--ask {
  border-color: #b88b733d;
  background: linear-gradient(150deg, #4b2d3a, #35222e 60%, #3d2633);
  box-shadow: 0 16px 30px #0a060b33, inset 0 1px 0 #fff1d50a;
}
.mc-card::before {
  background: radial-gradient(ellipse at 15% 0%, #da9e5840, transparent 48%);
}
.mc-card::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, #d6ad7c, transparent);
}
.mc-asktext { font-weight: 500; line-height: 1.85; color: #faeae5; }
.mc-quest, .mc-item { color: #faeae5; }
.mc-item img { border-color: #80505d; }
.mc-item.mc-item--on img {
  border-color: #e6b98a;
  box-shadow: 0 0 0 3px #e6b98a20, 0 4px 18px #00000025;
}
.mc-action, .mc-actions--ask .mc-action {
  color: #412b25;
  background: linear-gradient(120deg, #f0d0a9, #d9aa7b);
  box-shadow: 0 5px 18px #110a1240, inset 0 1px 0 #fff3de80;
  border: 1px solid #f0d0a960;
}
.mc-action + .mc-action {
  color: #f0cbc4; background: #4d2e3a;
  border-color: #ac758150; box-shadow: inset 0 1px 0 #ffffff05;
}
.mc-language select:focus-visible, .mc-action:focus-visible, .mc-item:focus-visible {
  outline-color: #efcaa0;
}
@media (hover: hover) {
  .mc-action:hover { transform: translateY(-1px); filter: brightness(1.07); }
}
.mc-wait p, .mc-wtext { color: #faeae5; }
.mc-wait--mid .mc-w1 { color: #f1d1ab; }
.mc-wait--mid .mc-w2 { color: #c9a7ad; }
.mc-track { background: #241720; border: 1px solid #76505a80; }
.mc-thumb { background: linear-gradient(90deg, #b98158, #edcda6); }
.mc-frame > .mc-end {
  border-color: #b88b733d;
  background: linear-gradient(150deg, #4b2d3a, #35222e 65%);
  box-shadow: 0 12px 30px #00000020;
}
.mc-end h3 { color: #f1d1ab; }
.mc-end .mc-meta { color: #e8b6be; }
.mc-end .mc-lead { color: #faeae5; }
.mc-end ol { color: #c9a7ad; }
.mc-line { border-top-color: #b88b733d; }
.mc-avatar { border-color: #d6ad7c; box-shadow: 0 5px 20px #00000040; }
.mc-flow, .mc-body, .mc-end { scrollbar-color: #9b6974 #30202b; scrollbar-width: thin; }
