/* Mythiq landing — builds on mythiq-theme.css */

.page-top {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  padding-top: max(1rem, env(safe-area-inset-top));
}

.page-top .account-link {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: 1rem;
  z-index: 30;
  font-size: 0.82rem;
  color: rgba(245, 240, 230, 0.9);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(12, 8, 18, 0.88);
}

.page-top .account-link:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.page-top .account-link-primary {
  font-weight: 700;
  color: #1a1208;
  background: linear-gradient(135deg, #e8c96a, #c9a227);
  border-color: rgba(212, 175, 55, 0.65);
}

.page-top .account-link-primary:hover {
  filter: brightness(1.06);
}

.login-banner {
  max-width: 480px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(12, 8, 18, 0.75);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.login-banner.is-logged-in {
  border-color: rgba(7, 193, 96, 0.35);
}

.login-banner-text {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.92;
  flex: 1 1 12rem;
}

.login-banner-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: #1a1208;
  background: linear-gradient(135deg, #e8c96a, #c9a227);
  border: 1px solid rgba(212, 175, 55, 0.5);
  white-space: nowrap;
}

.login-banner-btn:hover {
  filter: brightness(1.06);
}

.page-top .lang-switcher {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  left: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--mq-gold-dim);
  background: rgba(12, 8, 18, 0.88);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.lang-switcher .lang-globe {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

.lang-switcher .lang-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mq-gold);
}

.lang-switcher select {
  border: none;
  background: transparent;
  color: var(--mq-paper);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 1.1rem 0.15rem 0;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23e8c96a' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
}

.lang-switcher select option {
  background: #1a1428;
  color: var(--mq-paper);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.1rem 3rem;
  padding-bottom: max(3rem, env(safe-area-inset-bottom));
}

.wrap a.back {
  color: var(--mq-gold);
  font-size: 0.84rem;
  text-decoration: none;
  opacity: 0.85;
}

.hero-block {
  text-align: center;
  padding: 2.25rem 0.5rem 0.75rem;
}

.hero-block-compact {
  padding: 1.75rem 0.5rem 0.35rem;
}

.hero-block-compact .hero-ornament {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.45rem;
}

.mq-form-primary {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mq-form-primary .mq-form-heading {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

.hero-ornament {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.65rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='28' fill='none' stroke='%23e8c96a' stroke-width='1.2' opacity='0.7'/%3E%3Cpath d='M32 10 L35 28 L54 32 L35 36 L32 54 L29 36 L10 32 L29 28 Z' fill='none' stroke='%23e88aa8' stroke-width='0.9' opacity='0.65'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(232, 201, 106, 0.35));
}

.hero-block h1 {
  margin: 0;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-family: var(--mq-font-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(165deg, #ffffff 0%, #f0d78c 50%, #d4b85a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.4));
}

body[lang="en"] .hero-block h1 {
  font-family: var(--mq-font-display-en);
}

body[lang="zh-Hans"] .hero-block h1 {
  font-family: "Noto Serif SC", var(--mq-font-serif);
}

.hero-block .brand-en {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mq-font-display-en);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--mq-paper-muted);
  font-weight: 400;
}

.hero-block .sub {
  margin: 0.65rem auto 0;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--mq-paper);
  padding: 0;
}

.hero-block .lead {
  margin: 0.55rem auto 0;
  max-width: 24rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--mq-paper-muted);
}

.hero-divider {
  width: 3rem;
  height: 2px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--mq-gold), transparent);
}

.mq-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mq-gold);
  text-align: center;
}

.mq-how,
.mq-form-section {
  margin-top: 1.75rem;
}

.mq-how-prominent {
  margin-top: 1.25rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid rgba(232, 201, 106, 0.12);
}

.mq-how-prominent .mq-section-title {
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.mq-how[hidden] {
  display: none !important;
}

.mq-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mq-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: var(--mq-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

.mq-step-body {
  flex: 1;
  min-width: 0;
}

.mq-step-has-preview .mq-step-body p {
  margin-bottom: 0.55rem;
}

.how-preview-slot {
  margin-top: 0.15rem;
}

/* --- Real slip preview (step 2) --- */
.how-slip-preview-wrap {
  position: relative;
  max-width: min(100%, 340px);
  margin: 0.4rem auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.how-slip-preview-wrap.is-loading {
  min-height: 14rem;
  background: rgba(0, 0, 0, 0.25);
}

.how-slip-preview-wrap.is-loading .how-slip-preview-stage {
  opacity: 0.35;
}

.how-slip-preview-stage.slip-stage {
  margin: 0;
  max-width: none;
  width: 100%;
}

.how-slip-preview-wrap .slip-card {
  opacity: 1 !important;
  transform: none !important;
  margin: 0;
}

.how-slip-preview-wrap .slip-actions,
.how-slip-preview-wrap .slip-promo-toast,
.how-slip-preview-wrap .slip-unlock-btn {
  display: none !important;
}

.how-slip-preview-wrap .slip-brand-id {
  display: none;
}

.how-slip-preview-wrap .slip-dock-inner > :not(.slip-title-row) {
  filter: blur(3.5px);
  opacity: 0.88;
  user-select: none;
  pointer-events: none;
}

.how-slip-preview-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 58%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0.5rem 0.45rem;
  background: linear-gradient(
    180deg,
    rgba(245, 240, 230, 0) 0%,
    rgba(245, 240, 230, 0.18) 45%,
    rgba(245, 240, 230, 0.62) 100%
  );
  pointer-events: none;
}

.how-slip-preview-mask .how-preview-frost-label {
  color: #5c5670;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.how-slip-preview-fallback {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--mq-paper-muted);
}

/* --- Celestial mock (step 3) --- */
.how-celestial-mock {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 184, 90, 0.28);
  background: linear-gradient(165deg, #1a1524 0%, #0e0c14 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.how-cel-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}

.how-cel-portrait {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(212, 184, 90, 0.35);
  background: linear-gradient(145deg, #3d2a4a, #8b1a1a);
}

.how-cel-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f4efe6;
}

.how-cel-meta {
  font-size: 0.62rem;
  color: rgba(244, 239, 230, 0.55);
}

.how-cel-strip {
  display: flex;
  gap: 0.3rem;
  padding: 0.45rem 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.how-cel-strip::-webkit-scrollbar {
  display: none;
}

.how-cel-pill {
  flex-shrink: 0;
  font-size: 0.58rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(244, 239, 230, 0.55);
  white-space: nowrap;
}

.how-cel-pill.is-active {
  border-color: rgba(212, 184, 90, 0.45);
  color: #f0d78c;
  background: rgba(122, 24, 40, 0.35);
}

.how-cel-reader-head {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.45rem 0.65rem 0.25rem;
  font-size: 1rem;
  color: #f0d78c;
}

.how-cel-reader-head strong {
  display: block;
  font-size: 0.78rem;
  color: #f4efe6;
}

.how-cel-reader-head p {
  margin: 0.1rem 0 0;
  font-size: 0.62rem;
  color: rgba(244, 239, 230, 0.55);
}

.how-cel-body {
  padding: 0 0.65rem 0.55rem;
  max-height: 7.5rem;
  overflow: hidden;
}

.how-cel-dossier {
  font-size: 0.62rem;
  line-height: 1.45;
  color: rgba(244, 239, 230, 0.6);
  margin-bottom: 0.35rem;
  filter: blur(2.5px);
  opacity: 0.75;
}

.how-cel-dossier strong {
  color: rgba(240, 215, 140, 0.85);
  font-weight: 600;
}

.how-cel-dossier p {
  margin: 0 0 0.2rem;
}

.how-cel-scenes {
  filter: blur(3px);
  user-select: none;
  pointer-events: none;
  opacity: 0.85;
}

.how-cel-scene {
  margin-bottom: 0.45rem;
}

.how-cel-scene-num {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(240, 215, 140, 0.65);
}

.how-cel-scene h4 {
  margin: 0.1rem 0 0.15rem;
  font-size: 0.72rem;
  color: #f4efe6;
}

.how-cel-scene p {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.45;
  color: rgba(244, 239, 230, 0.65);
}

.how-preview-frost {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: linear-gradient(
    180deg,
    rgba(6, 5, 12, 0.15) 0%,
    rgba(6, 5, 12, 0.55) 45%,
    rgba(6, 5, 12, 0.82) 100%
  );
  pointer-events: none;
}

.how-preview-frost.is-lock {
  background: linear-gradient(
    180deg,
    rgba(6, 5, 12, 0.05) 0%,
    rgba(6, 5, 12, 0.42) 50%,
    rgba(6, 5, 12, 0.78) 100%
  );
}

.how-cel-portrait.has-img {
  background: none;
  overflow: hidden;
}

.how-cel-portrait.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.how-preview-lock {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 12px rgba(240, 215, 140, 0.4));
}

.how-preview-frost-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(244, 239, 230, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.mq-step-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1020;
  background: linear-gradient(145deg, var(--mq-gold-bright, #f0d78c), var(--mq-gold));
}

.mq-steps strong {
  display: block;
  font-size: 0.88rem;
  color: var(--mq-paper);
  margin-bottom: 0.15rem;
}

.mq-steps p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--mq-paper-muted);
}

.mq-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.mq-feat-tile {
  padding: 0.75rem 0.7rem;
  border-radius: var(--mq-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 10, 20, 0.65);
  min-height: 5.5rem;
}

.mq-feat-icon {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mq-font-serif);
  color: var(--mq-gold);
  border: 1px solid var(--mq-gold-dim);
  margin-bottom: 0.35rem;
}

.mq-feat-tile strong {
  display: block;
  font-size: 0.8rem;
  color: var(--mq-paper);
  margin-bottom: 0.2rem;
}

.mq-feat-tile p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--mq-paper-muted);
}

.mq-form-heading {
  margin-bottom: 0.35rem;
}

.mq-form-sub {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mq-paper-muted);
}

.form-card {
  position: relative;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: var(--mq-radius-xl);
  background: linear-gradient(165deg, rgba(28, 22, 38, 0.92) 0%, rgba(12, 10, 18, 0.95) 100%);
  border: 1px solid var(--mq-glass-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--mq-shadow-soft), 0 0 48px rgba(143, 31, 46, 0.12);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 4 L34 26 L56 30 L34 34 L30 56 L26 34 L4 30 L26 26 Z' fill='none' stroke='%23e8c96a' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E") repeat;
  opacity: 0.5;
}

form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.85rem;
  color: var(--mq-gold);
  letter-spacing: 0.04em;
}

form label:first-of-type {
  margin-top: 0;
}

form input,
form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--mq-radius-md);
  background: rgba(0, 0, 0, 0.28);
  color: var(--mq-paper);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

form input:focus,
form select:focus {
  outline: none;
  border-color: var(--mq-gold-dim);
  box-shadow: 0 0 0 3px var(--mq-gold-glow);
}

form select option {
  background: #1a1428;
  color: var(--mq-paper);
}

.form-card form {
  width: 100%;
  min-width: 0;
}

.mq-field {
  min-width: 0;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.row--ymd {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.mq-birth-time {
  margin-top: 0.85rem;
}

.mq-birth-time label {
  margin-top: 0;
}

form input[type="number"] {
  -moz-appearance: textfield;
}

form input[type="number"]::-webkit-outer-spin-button,
form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

form input[type="time"] {
  display: block;
  min-height: 2.75rem;
  padding-inline: 0.55rem;
}

form input[type="time"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: start;
}

@media (max-width: 380px) {
  .row--ymd {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .row--ymd .mq-field:last-child {
    grid-column: 1 / -1;
  }
}

button[type="submit"] {
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.95rem 1rem;
  border: none;
  border-radius: var(--mq-radius-md);
  font-size: 1.02rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--mq-crimson) 0%, var(--mq-rose-deep) 55%, var(--mq-rose) 100%);
  box-shadow: 0 10px 28px rgba(143, 31, 46, 0.4);
  transition: transform 0.12s, box-shadow 0.12s;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(143, 31, 46, 0.5);
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: wait;
}

#slipWrap {
  display: none;
}

.hint {
  margin-top: 1rem;
  font-size: 0.76rem;
  color: var(--mq-paper-muted);
  text-align: center;
  line-height: 1.5;
}

.err {
  color: #ffb8b8;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.88rem;
}
