/* ══════════════════════════════════════════════════════════
   入定（仪式）样式
   ★ 设计原则：**安静压倒一切**。
     · 大留白、低对比、慢动画（不闪、不弹、不抢注意力）
     · 字号大一点（入定时人不想眯眼看小字）
     · 颜色只有一种强调色（暖琥珀），不用红绿刺激
   ══════════════════════════════════════════════════════════ */

.rt-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 2px 12px;
}
.rt-title { font-size: 17px; font-weight: 600; letter-spacing: .04em; opacity: .9; }
.rt-x {
  font-size: 22px; line-height: 1; padding: 2px 8px; cursor: pointer;
  opacity: .45; border-radius: 6px;
}
.rt-x:hover { opacity: .8; background: rgba(128,128,128,.12); }

.rt-intro {
  font-size: 14px; line-height: 1.85; opacity: .78;
  padding: 12px 14px; border-left: 3px solid rgba(200,150,60,.5);
  background: rgba(200,150,60,.07); border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}
.rt-sec-t {
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  opacity: .55; margin: 18px 2px 10px;
}

/* ── 准备清单 ─────────────────────────────────────────── */
.rt-prep {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  border: 1px solid rgba(128,128,128,.22); border-radius: 10px;
  transition: all .35s ease;
}
.rt-prep:hover { border-color: rgba(200,150,60,.45); }
.rt-prep.on {
  border-color: rgba(200,150,60,.6);
  background: rgba(200,150,60,.09);
}
.rt-tick {
  flex: 0 0 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(128,128,128,.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all .35s ease;
}
.rt-prep.on .rt-tick {
  border-color: rgb(200,150,60); color: rgb(200,150,60);
  background: rgba(200,150,60,.16);
}
.rt-pt { font-size: 15px; font-weight: 500; margin-bottom: 3px; }
.rt-ps { font-size: 12.5px; opacity: .6; line-height: 1.6; }

/* ── 音频 ─────────────────────────────────────────────── */
.rt-audio {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(128,128,128,.07);
}
.rt-audio-hint { font-size: 12.5px; opacity: .62; flex: 1; min-width: 160px; }

/* ── 开始区 ───────────────────────────────────────────── */
.rt-startbox {
  padding: 18px 16px; border-radius: 12px;
  border: 1px solid rgba(128,128,128,.2);
  background: rgba(128,128,128,.05);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.rt-note { font-size: 13.5px; line-height: 1.8; opacity: .8; }
.rt-note.warn { color: rgb(190,120,40); opacity: .95; }
.rt-daily {
  margin-top: 14px; font-size: 12.5px; opacity: .6; line-height: 1.7;
  padding: 10px 12px; border-radius: 8px; background: rgba(128,128,128,.07);
}
.rt-daily.warn { color: rgb(190,120,40); opacity: .95; background: rgba(200,150,60,.09); }

/* ── 进行中 ───────────────────────────────────────────── */
.rt-steps { display: flex; gap: 8px; justify-content: center; margin: 6px 0 20px; }
.rt-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(128,128,128,.3); transition: all .5s ease;
}
.rt-dot.now {
  width: 22px; border-radius: 4px; background: rgb(200,150,60);
}
.rt-dot.done { background: rgba(200,150,60,.55); }

.rt-wordbox {
  text-align: center; padding: 34px 18px 26px;
  border-radius: 14px; background: rgba(128,128,128,.05);
  transition: background .6s ease;
}
.rt-word {
  font-size: 17px; line-height: 2; opacity: .88; margin-bottom: 26px;
  letter-spacing: .03em;
  animation: rtFadeIn 1.4s ease;
}
.rt-clock {
  font-size: 46px; font-weight: 200; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; opacity: .82;
  margin-bottom: 20px;
}
.rt-bartrack {
  height: 2px; background: rgba(128,128,128,.2); border-radius: 2px; overflow: hidden;
}
.rt-bar {
  height: 100%; background: rgb(200,150,60); border-radius: 2px;
  transition: width 1s linear;
}
@keyframes rtFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: .88; transform: translateY(0); }
}

.rt-para {
  margin-top: 18px; padding: 14px; border-radius: 10px;
  background: rgba(128,128,128,.05);
}
.rt-para-t { font-size: 14px; margin-bottom: 6px; }
.rt-para-s { font-size: 12.5px; opacity: .6; line-height: 1.7; }

.rt-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
}
.rt-foot {
  margin-top: 16px; font-size: 12px; opacity: .5; line-height: 1.7;
}

/* ── 入定全屏（最重要的一屏：安静、大字、只有一个按钮）──── */
/*
   ★★★ 2026-09-27 老板反馈"入定段全屏安静模式没落实到位"—— 真因在 CSS 包含块：
     `#page-me` 带 `.page.on { animation: fade }`，fade 的 keyframes 有
     `transform: translateY(4px)`。**元素一旦有非 none 的 transform，
     它内部的 position:fixed 就不再相对视口，而相对该元素** →
     实测 overlay `height: 0.0`，遮罩根本没显示出来。
   ★ 修法（两层，缺一不可）：
     ① JS：遮罩挂到 `body` 直接子级（`#rtVeilHost`）→ 祖先链无 transform。
     ② CSS：本段自己**不许依赖任何祖先**——用 `position:fixed + inset:0`
        并显式 `width/height: 100%`（双保险，防将来又被谁包进 transform 里）。
   ★ 教训归类：**这是"渲染层"的静默失效**，和"接口通≠功能对""测试全绿可能是假的"
     同族 —— HTML/CSS/JS 全都读不出错，只有**真浏览器量 getBoundingClientRect**才现形。
*/
.rt-full {
  position: fixed; inset: 0;
  /* ★ 显式写全宽高：`inset:0` 在包含块异常时会塌成 0，这里不靠它 */
  width: 100%; height: 100%;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9000;
  background: #08080a;           /* ★ 不透明：真"安静模式"，不让人看见后面的列表 */
  display: flex; align-items: center; justify-content: center;
  animation: rtVeilIn 1.6s ease;  /* ★ 慢：1.6 秒渐入，不突兀 */
  /* ★ 关掉缩放/惯性滚动干扰 */
  overscroll-behavior: contain;
  -webkit-user-select: none; user-select: none;
}
@keyframes rtVeilIn { from { opacity: 0; } to { opacity: 1; } }
.rt-veil { text-align: center; padding: 24px; max-width: 420px; width: 100%; }
.rt-veil-t {
  /* ★ 大字：15 → 22px（老板要"大字"） */
  font-size: 22px; letter-spacing: .5em; color: rgba(200,150,60,.85);
  margin-bottom: 40px; text-indent: .5em; font-weight: 300;
}
.rt-veil-s {
  /* ★ 大字 + 低对比：18 → 24px，颜色压到 .72（不刺眼） */
  font-size: 24px; line-height: 2.2; color: rgba(255,255,255,.72);
  margin-bottom: 18px; font-weight: 300; letter-spacing: .04em;
}
.rt-veil-s2 {
  font-size: 19px; letter-spacing: .06em; color: rgba(255,255,255,.52);
  margin-bottom: 0;
}
.rt-veil-btn {
  background: transparent; border: 1px solid rgba(200,150,60,.6);
  color: rgba(200,150,60,.95); border-radius: 30px;
  /* ★ 唯一按钮要够大好按（手机拇指）—— 老板要"只有一个按钮"，
     那它就得承担全部注意力，不能小气 */
  padding: 15px 40px; font-size: 16px; letter-spacing: .12em;
  cursor: pointer; transition: all .5s ease;
  margin-top: 6px;
}
.rt-veil-btn:hover {
  background: rgba(200,150,60,.14); border-color: rgb(200,150,60);
}
.rt-veil-hint {
  margin-top: 24px; font-size: 12.5px; color: rgba(255,255,255,.3);
  letter-spacing: .05em; line-height: 1.8;
}
/* ★ 慢动画：按钮像呼吸一样极缓地明暗（6 秒一轮）——
   不是"动效好看"，是**给静坐的人一点生命感**，让他知道系统在陪着他。 */
@keyframes rtBreathe {
  0%, 100% { border-color: rgba(200,150,60,.35); }
  50%      { border-color: rgba(200,150,60,.75); }
}
.rt-veil-btn { animation: rtBreathe 6s ease-in-out infinite; }
/* ★ 尊重系统"减少动态效果"设置 —— 有人开了这个是为健康，不能无视 */
@media (prefers-reduced-motion: reduce) {
  .rt-full { animation: none; }
  .rt-veil-btn { animation: none; }
}

/* ── 落子 / 完成 ──────────────────────────────────────── */
.rt-card {
  padding: 16px; border-radius: 12px; margin-bottom: 14px;
  border: 1px solid rgba(200,150,60,.32);
  background: rgba(200,150,60,.07);
}
.rt-card-t { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.rt-card-s { font-size: 12.5px; opacity: .62; margin-bottom: 12px; }
.rt-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px;
  background: rgba(200,150,60,.18); color: rgb(215,170,90);
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.rt-num.sm { min-width: 25px; height: 25px; font-size: 12.5px; }
.rt-num.dim {
  background: rgba(128,128,128,.16); color: rgba(200,200,200,.66);
}

.rt-cmp {
  padding: 14px; border-radius: 10px; margin-bottom: 14px;
  background: rgba(128,128,128,.06);
  border: 1px dashed rgba(128,128,128,.28);
}
.rt-cmp-t { font-size: 12.5px; opacity: .66; margin-bottom: 10px; letter-spacing: .04em; }
.rt-cmp-n { font-size: 12px; opacity: .5; line-height: 1.7; margin-top: 10px; }

.rt-tks { display: flex; flex-direction: column; gap: 6px; }
.rt-tk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rt-tki {
  font-size: 11px; opacity: .45; min-width: 18px;
  font-variant-numeric: tabular-nums;
}

.rt-form { display: flex; flex-direction: column; gap: 10px; }
.rt-in {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border-radius: 9px; border: 1px solid rgba(128,128,128,.28);
  background: rgba(128,128,128,.07); color: inherit;
  font-size: 14px; font-family: inherit; resize: vertical;
}
.rt-in.sm { width: 120px; }
.rt-in:focus { outline: none; border-color: rgba(200,150,60,.6); }
.rt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rt-lb { font-size: 12.5px; opacity: .55; margin-left: 4px; }

.rt-done-t {
  font-size: 16px; line-height: 1.9; opacity: .85; margin-bottom: 18px;
  padding: 14px; border-radius: 10px; background: rgba(200,150,60,.08);
}
.rt-facts {
  padding: 12px 14px; border-radius: 10px; background: rgba(128,128,128,.06);
  font-size: 12.5px; line-height: 1.9;
}
.rt-fact { opacity: .72; }
.rt-fact b { opacity: 1; font-weight: 600; }
.rt-warn { color: rgb(190,120,40); opacity: .9; margin-top: 8px; }

/* ★ 深色模式下更安静一点（不刺眼） */
@media (prefers-color-scheme: dark) {
  .rt-num { background: rgba(200,150,60,.22); }
  .rt-num.dim { background: rgba(255,255,255,.09); }
  .rt-wordbox { background: rgba(255,255,255,.04); }
}

/* ── 入定入口（打法列表顶部横幅 + tab 按钮）────────────── */
.rt-enter {
  border-color: rgba(200,150,60,.55) !important;
  color: rgb(200,150,60) !important;
}
.rt-banner {
  margin: 4px 0 14px; padding: 16px 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(200,150,60,.34);
  background: linear-gradient(135deg, rgba(200,150,60,.13), rgba(200,150,60,.04));
  transition: all .4s ease;
}
.rt-banner:hover {
  border-color: rgba(200,150,60,.6);
  background: linear-gradient(135deg, rgba(200,150,60,.19), rgba(200,150,60,.07));
}
.rt-banner-t { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.rt-banner-s { font-size: 12.5px; opacity: .68; line-height: 1.75; }

/* ── 梵音信息区 ───────────────────────────────────────── */
.rt-audio-info { flex: 1; min-width: 170px; }
.rt-audio-nm { font-size: 14px; margin-bottom: 4px; color: rgb(210,170,95); }
.rt-audio-cred { font-size: 11px; opacity: .42; margin-top: 6px; line-height: 1.6; }
.rt-audio-cred a { color: inherit; text-decoration: underline dotted; }
.rt-veil-s3 {
  font-size: 15px; letter-spacing: .22em; color: rgba(200,150,60,.7);
  margin-bottom: 44px; margin-top: 18px;
}

/* ══════════════════════════════════════════════════════════
   2026-09-28 老板升级：背景音乐选择 + 30 秒呼吸法
   ★ 设计原则不变：安静压倒一切（大留白、低对比、慢动画）
   ══════════════════════════════════════════════════════════ */

/* ── 准备项全勾完后的提示区 ─────────────────────────────── */
.rt-prep-go { margin-top: 14px; }
.rt-note-s { font-size: 12px; opacity: .6; }

/* ── 背景音乐列表 ─────────────────────────────────────── */
.rt-mus-list { display: flex; flex-direction: column; gap: 10px; }
.rt-mus {
  padding: 13px 15px; cursor: pointer;
  border: 1px solid rgba(128,128,128,.22); border-radius: 10px;
  transition: all .35s ease;
}
.rt-mus:hover { border-color: rgba(200,150,60,.45); }
.rt-mus.on {
  border-color: rgba(200,150,60,.7);
  background: rgba(200,150,60,.1);
}
.rt-mus-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rt-mus-n { font-size: 15px; font-weight: 600; }
.rt-mus.on .rt-mus-n { color: rgb(205,155,65); }
.rt-mus-mood { font-size: 12px; opacity: .5; letter-spacing: .06em; }
.rt-mus-d { font-size: 13px; line-height: 1.7; opacity: .72; margin-top: 5px; }
.rt-mus-sec { font-size: 11px; opacity: .4; margin-top: 5px; }

.rt-sexplain {
  margin-top: 16px; padding: 11px 14px; font-size: 12.5px; line-height: 1.75;
  opacity: .62; border-left: 3px solid rgba(128,128,128,.3);
  background: rgba(128,128,128,.06); border-radius: 0 8px 8px 0;
}

/* ── 30 秒呼吸法 ──────────────────────────────────────── */
.rt-br-wrap { display: flex; flex-direction: column; align-items: center; padding: 10px 0 4px; }

.rt-br-ring {
  width: 200px; height: 200px; border-radius: 50%;
  border: 2px solid rgba(200,150,60,.35);
  display: flex; align-items: center; justify-content: center;
  margin: 12px 0 20px;
  /* ★ 呼吸感：缓慢缩放（12 秒一轮），不闪不弹 */
  transition: transform 4s ease-in-out, border-color 1s ease, box-shadow 1s ease;
  transform: scale(1);
}
.rt-br-ring[data-phase="吸"] {
  transform: scale(1.14);
  border-color: rgba(200,150,60,.85);
  box-shadow: 0 0 26px rgba(200,150,60,.18);
}
.rt-br-ring[data-phase="停"] {
  transform: scale(1.14);
  border-color: rgba(200,150,60,.6);
}
.rt-br-ring[data-phase="呼"] {
  transform: scale(.9);
  border-color: rgba(200,150,60,.3);
}
.rt-br-inner { text-align: center; }
.rt-br-phase {
  font-size: 22px; font-weight: 600; letter-spacing: .2em;
  color: rgba(205,155,65,.95); min-height: 30px;
}
.rt-br-num {
  font-size: 46px; font-weight: 300; letter-spacing: .04em;
  font-variant-numeric: tabular-nums; opacity: .9; line-height: 1.15;
}
.rt-br-line {
  font-size: 15px; line-height: 1.8; opacity: .8; text-align: center;
  min-height: 52px; padding: 0 8px; margin-bottom: 16px;
  transition: opacity .5s ease;
}
.rt-br-wrap .rt-bartrack { width: 100%; }
.rt-br-hint {
  margin-top: 20px; padding: 11px 14px; font-size: 12.5px; line-height: 1.75;
  opacity: .62; border-left: 3px solid rgba(128,128,128,.3);
  background: rgba(128,128,128,.06); border-radius: 0 8px 8px 0;
  text-align: left; width: 100%; box-sizing: border-box;
}
.rt-br-go { flex-direction: column; }
.rt-br-go-hint { font-size: 12.5px; opacity: .55; margin-top: 9px; text-align: center; }

/* ══════════════════════════════════════════════════════════
   骰子面板（「我的打法」页顶部）—— 见 cust-playbook.js 的 pbdPanel()
   ══════════════════════════════════════════════════════════ */
.pbd-wrap {
  margin-bottom: 12px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(200,150,60,.4);
  background: linear-gradient(180deg, rgba(200,150,60,.09), rgba(200,150,60,.03));
}
.pbd-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px 9px;
}
.pbd-h-t { font-size: 14px; font-weight: 600; letter-spacing: .05em; }
.pbd-x { font-size: 20px; line-height: 1; cursor: pointer; opacity: .45; padding: 0 5px; }
.pbd-x:hover { opacity: .85; }
.pbd-body { padding: 0 14px 14px; }

.pbd-dice-box { display: flex; flex-direction: column; align-items: center; padding: 6px 0 12px; }
.pbd-dice {
  width: 84px; height: 84px; border-radius: 16px; cursor: pointer;
  background: #fff; border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 3px 14px rgba(0,0,0,.17);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  gap: 3px; padding: 11px; box-sizing: border-box;
  transition: transform .25s ease;
}
.pbd-dice:active { transform: scale(.94); }
/* ★ 滚动动画：转两圈再落定（仪式感，不是伪装随机 —— 点数来自后端真随机） */
.pbd-dice.roll { animation: pbdRoll .45s linear infinite; }
@keyframes pbdRoll {
  0%   { transform: rotate(0deg)   scale(.96); }
  50%  { transform: rotate(180deg) scale(1.04); }
  100% { transform: rotate(360deg) scale(.96); }
}
.pbd-dice i { border-radius: 50%; background: transparent; }
.pbd-dice i.on { background: #2b2b2b; }
.pbd-face-num {
  grid-column: 1 / -1; grid-row: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; color: rgba(0,0,0,.55);
}
.pbd-tip { font-size: 12.5px; opacity: .6; margin-top: 10px; }

.pbd-tpl {
  margin-top: 4px; padding: 13px 14px; border-radius: 10px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(200,150,60,.3);
}
.pbd-tpl-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pbd-tpl-n { font-size: 15px; font-weight: 600; }
.pbd-tpl-s { font-size: 12px; opacity: .52; letter-spacing: .05em; }
.pbd-tpl-d { font-size: 13px; line-height: 1.7; opacity: .76; margin-top: 6px; }
.pbd-tpl-meta { font-size: 12px; opacity: .58; margin-top: 7px; }
.pbd-tpl-tip {
  font-size: 12.5px; line-height: 1.7; opacity: .68; margin-top: 8px;
  padding-left: 9px; border-left: 2px solid rgba(200,150,60,.45);
}
.pbd-tpl .pbn-go { width: 100%; margin-top: 12px; }

.pbd-note {
  font-size: 12px; line-height: 1.7; opacity: .58; margin-top: 12px;
  padding: 9px 12px; border-radius: 8px; background: rgba(128,128,128,.08);
}
.pbd-all { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.pbd-chip {
  font-size: 11.5px; padding: 4px 9px; border-radius: 20px;
  background: rgba(128,128,128,.1); opacity: .75;
}
.pbd-chip.on { background: rgba(200,150,60,.22); opacity: 1; font-weight: 600; }
