/* ==========================================================================
   Age Gate · 云梦阁主题（粉紫 / 玻璃拟态）
   与站内 css/design-tokens.css 的 --color-accent(#FF7EB3) / --accent2(#C8B6FF)
   / --radius-lg(16px) / --font-body 体系对齐。
   刻意区别于姊妹站的「米白宣纸 + 苔绿」：此处为粉紫渐变玻璃 + 16px 圆角。
   仅在 html.ag-pending 期间影响 body，不改动任何既有布局/字号规则。
   ========================================================================== */

html.ag-pending,
html.ag-pending body {
  overflow: hidden !important;
}
/* 固定遮罩只覆盖可视区；html 画布高度仍为文档全高，不铺底色时
   viewport 之外会露出站点粉色背景。刷成同一深紫底，遮罩期不留死角。 */
html.ag-pending {
  background: #241528;
}
html.ag-pending body {
  visibility: hidden !important;
  opacity: 0 !important;
}

.ag-overlay {
  position: fixed;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  box-sizing: border-box;
  overflow-y: auto;
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(255, 126, 179, 0.28) 0%, rgba(59, 30, 51, 0.92) 55%),
    radial-gradient(80% 60% at 85% 100%, rgba(200, 182, 255, 0.26) 0%, rgba(43, 25, 41, 0.92) 60%),
    rgba(35, 20, 32, 0.93);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif);
  animation: ag-fade 0.24s ease both;
}
@keyframes ag-fade { from { opacity: 0; } to { opacity: 1; } }

/* 卡片：粉紫渐变描边玻璃质感 */
.ag-card {
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 34px 26px 22px;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 238, 246, 0.14) 100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 126, 179, 0.55);
  border-radius: 16px;            /* 云梦阁 radius-lg 档（姊妹站为 14px） */
  box-shadow: 0 14px 44px rgba(61, 43, 61, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.ag-card-denied { border-color: rgba(200, 182, 255, 0.6); }

/* 徽标：粉→紫渐变胶囊（非圆形，与姊妹站圆形徽标区分） */
.ag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 16px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FFFFFF;
  background: linear-gradient(120deg, #FF7EB3 0%, #C8B6FF 100%);
  border-radius: 999px;           /* radius-full 档 */
  box-shadow: 0 6px 20px rgba(255, 126, 179, 0.45);
}
.ag-badge-deny { background: linear-gradient(120deg, #C8B6FF 0%, #B8A9E8 100%); box-shadow: 0 6px 20px rgba(184, 169, 232, 0.4); }

.ag-title {
  margin: 0 0 12px;
  font-size: 20px;               /* --fs-lg */
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.ag-desc {
  margin: 0 0 22px;
  font-size: 14px;               /* --fs-xs（云梦阁 14=正文） */
  line-height: 1.6;
  color: #F3E6EF;
}
.ag-note {
  margin: 16px 0 0;
  font-size: 12px;               /* --fs-micro */
  color: #D9C7DA;
}

.ag-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag-btn {
  display: block;
  width: 100%;
  min-height: 46px;             /* >= --tap-min */
  padding: 12px 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 12px;           /* 云梦阁 radius-md 档（姊妹站为 10px） */
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.ag-btn:focus-visible {
  outline: 3px solid #C8B6FF;
  outline-offset: 3px;
}
.ag-btn-primary {
  color: #FFFFFF;
  background: linear-gradient(120deg, #FF7EB3 0%, #E45C9C 55%, #C8B6FF 100%);
  border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(255, 126, 179, 0.42);
}
.ag-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 9px 26px rgba(255, 126, 179, 0.5); }
.ag-btn-primary:active { transform: translateY(0); }
.ag-btn-ghost {
  color: #F3E6EF;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.ag-btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

@media (max-width: 420px) {
  .ag-overlay { padding: 18px 14px; }
  .ag-card { padding: 28px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-overlay { animation: none; }
  .ag-btn { transition: none; }
}