/* 註冊彈窗：新職業「蕾媞」即將登場宣傳卡（2026-11-21，修訂 2：電腦版角色右移 18px，避免說明文字碰到臉）
   - 取代「加入貓貓谷／10 秒免費註冊…」標題區的視覺；h2 與副標保留給讀屏與 aria-labelledby。
   - 步驟膠囊、關閉鈕縮小，三張特色卡往上移 16px；宣傳卡高度＝原本標題＋副標的高度＋16px，
     所以整個彈窗的寬和高都跟上線前一樣。
   - 這支 CSS 只在 register-modal.html 有宣傳卡時才載入（<link> 寫在宣傳卡旁邊），下架時一起拿掉即可。
   - 卡片本身固定深色，淺色／深色主題都適用。 */

/* ---------- 1. 隱藏原本的標題與副標（讀屏仍讀得到） ---------- */
html body #register-modal.modal-overlay #modal-step-register .rp2-header .lethe-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  display: block !important;
}

/* ---------- 2. 步驟膠囊縮小：高 30→24、寬 184→156，往上 6px ---------- */
html body #register-modal.modal-overlay .modal-container .modal-progress::before {
  top: calc(var(--rp-pill-y) - 6px);
  width: 156px;
  height: 24px;
}
html body #register-modal.modal-overlay .modal-container .modal-progress-step {
  top: calc(var(--rp-pill-y) - 3px);
  height: 18px;
  gap: 6px !important;
}
html body #register-modal.modal-overlay .modal-container .modal-progress-step:first-child { right: calc(50% + 21px); }
html body #register-modal.modal-overlay .modal-container .modal-progress-step:last-child { left: calc(50% + 21px); }
html body #register-modal.modal-overlay .modal-container .step-number {
  width: 18px !important;
  height: 18px !important;
  font-size: 10px !important;
}
html body #register-modal.modal-overlay .modal-container .modal-progress-step .step-label,
html body #register-modal.modal-overlay .modal-container .modal-progress-step.active .step-label {
  width: 24px;
  font-size: 11px !important;
  line-height: 18px !important;
}
html body #register-modal.modal-overlay .modal-container .modal-progress-line {
  top: calc(var(--rp-pill-y) + 5px);
  width: 30px !important;
}

/* 關閉鈕 36→28，讓上移的特色卡不被蓋到 */
html body #register-modal.modal-overlay .modal-container .modal-close {
  top: calc(7px + env(safe-area-inset-top, 0px)) !important;
  width: 28px !important;
  height: 28px !important;
  margin: 7px 12px -35px auto !important;
  font-size: 17px !important;
}

/* ---------- 3. 特色卡往上 16px（整個彈窗因此少 16px，留給宣傳卡） ---------- */
html body #register-modal.modal-overlay #modal-step-register .modal-header.rp2-header {
  --rp2-top: 40px;
}

/* ---------- 4. 宣傳卡（電腦版：416×74） ---------- */
html body #register-modal.modal-overlay .lethe-promo {
  position: relative;
  display: flex;
  align-items: center;
  height: 74px;
  margin: 0;
  padding: 0 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  background-color: #140c30;
  background-image: url("lethe-card.jpg?v=20261121-2");
  background-image: image-set(url("lethe-card.webp?v=20261121-2") type("image/webp"), url("lethe-card.jpg?v=20261121-2") type("image/jpeg"));
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: right -18px center;
  box-shadow: 0 4px 14px rgba(60, 30, 90, .26), inset 0 0 0 1px rgba(232, 190, 110, .55);
  font-family: inherit;
  text-align: left;
}

html body #register-modal.modal-overlay .lethe-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 10, 44, .97) 0%, rgba(22, 12, 52, .85) 44%, rgba(22, 12, 52, .25) 60%, rgba(22, 12, 52, 0) 70%);
}

/* 左欄：名字＋稱號 */
html body #register-modal.modal-overlay .lethe-promo-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 217, 138, .45);
  line-height: 1;
}

html body #register-modal.modal-overlay .lethe-promo-name strong {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  color: #ffd98a;
  background: linear-gradient(180deg, #fff7e0 0%, #ffd98a 55%, #e8a94c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(40, 15, 70, .9)) drop-shadow(0 0 8px rgba(170, 110, 255, .5));
}

html body #register-modal.modal-overlay .lethe-promo-name span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  color: #d9c6ff;
  white-space: nowrap;
}

/* 右欄：標籤＋說明 */
html body #register-modal.modal-overlay .lethe-promo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding-left: 14px;
}

html body #register-modal.modal-overlay .lethe-promo-tag {
  margin: 0;
  padding: 1px 9px 1px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .12em;
  color: #3a2206;
  background: linear-gradient(180deg, #ffe7a3, #e9b453);
  box-shadow: 0 0 10px rgba(255, 210, 120, .45);
  white-space: nowrap;
}

html body #register-modal.modal-overlay .lethe-promo-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .02em;
  color: #e3d8ff;
  white-space: nowrap;
}

html body #register-modal.modal-overlay .lethe-promo-desc b {
  color: #ffd98a;
  font-weight: 700;
}

html body #register-modal.modal-overlay .lethe-promo-desc .lethe-l2 {
  font-style: normal;
}

/* ---------- 5. 手機（與 register-polish 的全螢幕版型同一條件）：325×66 ---------- */
@media (max-width: 740px), (pointer: coarse) and (max-height: 600px) {
  html body #register-modal.modal-overlay #modal-step-register .modal-header.rp2-header {
    --rp2-top: calc(36px + env(safe-area-inset-top, 0px));
  }
  html body #register-modal.modal-overlay .lethe-promo {
    height: 66px;
    padding-left: 14px;
    background-position: right center;
  }
  html body #register-modal.modal-overlay .lethe-promo::before {
    background: linear-gradient(90deg, rgba(18, 10, 44, .97) 0%, rgba(22, 12, 52, .85) 50%, rgba(22, 12, 52, .25) 64%, rgba(22, 12, 52, 0) 74%);
  }
  html body #register-modal.modal-overlay .lethe-promo-name { padding-right: 11px; gap: 3px; }
  html body #register-modal.modal-overlay .lethe-promo-name strong { font-size: 30px; }
  html body #register-modal.modal-overlay .lethe-promo-name span { font-size: 10px; letter-spacing: .08em; }
  html body #register-modal.modal-overlay .lethe-promo-copy { padding-left: 11px; gap: 4px; }
  html body #register-modal.modal-overlay .lethe-promo-tag { font-size: 10px; padding: 1px 8px 1px 9px; }
  html body #register-modal.modal-overlay .lethe-promo-desc { font-size: 11px; letter-spacing: .02em; }
  /* 說明拆兩行，把右邊留給角色 */
  html body #register-modal.modal-overlay .lethe-promo-desc .lethe-l2 { display: block; }
}

/* 窄螢幕（摺疊機外螢幕等）：步驟膠囊配合原本的 112px，再縮小 */
@media (max-width: 380px) {
  html body #register-modal.modal-overlay .modal-container .modal-progress::before { width: 96px; }
  html body #register-modal.modal-overlay .lethe-promo { background-position: right -24px center; }
  html body #register-modal.modal-overlay .lethe-promo-name strong { font-size: 26px; }
}
