/* 新手引导蒙版：克制、可读，贴合念经网纸本气质 */

.nj-onboard-root {
  position: fixed;
  inset: 0;
  z-index: 10080;
  pointer-events: none;
}

.nj-onboard-root.is-open {
  pointer-events: auto;
}

.nj-onboard-mask {
  display: none;
}

.nj-onboard-hole {
  position: absolute;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow:
    0 0 0 9999px rgba(28, 18, 8, 0.52),
    0 0 0 3px rgba(255, 232, 170, 0.92),
    0 8px 28px rgba(0, 0, 0, 0.28);
  background: transparent;
  pointer-events: none;
  transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease;
}

.nj-onboard-card {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  width: min(320px, calc(100vw - 28px));
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(180, 140, 70, 0.45);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 248, 230, 0.98) 0%, transparent 70%),
    linear-gradient(180deg, #fffef8 0%, #f6ebd4 100%);
  color: #3d2a10;
  box-shadow: 0 12px 36px rgba(20, 10, 0, 0.22);
}

/* 咒语/经文页：红色框更醒目 */
.nj-onboard-root.is-accent-red .nj-onboard-hole {
  box-shadow:
    0 0 0 9999px rgba(40, 8, 8, 0.55),
    0 0 0 3px rgba(220, 60, 50, 0.95),
    0 8px 28px rgba(120, 0, 0, 0.28);
}

.nj-onboard-root.is-accent-red .nj-onboard-card {
  border: 2px solid #c62828;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 246, 244, 0.98) 0%, transparent 70%),
    linear-gradient(180deg, #fff8f6 0%, #f8e6e2 100%);
  box-shadow: 0 12px 36px rgba(120, 20, 10, 0.28);
}

.nj-onboard-root.is-accent-red .nj-onboard-kicker {
  color: #c62828;
}

.nj-onboard-root.is-accent-red .nj-onboard-btn {
  background: linear-gradient(180deg, #d6453d, #a82228);
  color: #fff8f4;
  box-shadow: 0 3px 10px rgba(140, 30, 20, 0.22);
}

.nj-onboard-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9a7a45;
}

.nj-onboard-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #3d2a10;
}

.nj-onboard-body {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: #5a4428;
}

.nj-onboard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.nj-onboard-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  box-sizing: border-box;
  min-height: 36px;
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #6b4e1e, #3d2a10);
  color: #fff4c8;
  box-shadow: 0 3px 10px rgba(61, 42, 16, 0.18);
}

.nj-onboard-btn:hover,
.nj-onboard-btn:focus {
  filter: brightness(1.06);
}

.nj-onboard-btn:focus {
  outline: 2px solid rgba(180, 140, 70, 0.55);
  outline-offset: 2px;
}
