/* PD V2 · 18+ age gate (SPEC-age-gate.md). Ported from handover/v2/pages/_shared/age-gate.css,
 * swapping the prototype's own .btn/.btn--1/.btn--3 for this theme's real .pd-v2-action system.
 * Always dark in both color modes (a brand moment) — .pd-v2-action--3's border/text normally
 * follow --tx/--tx-faint, which flip in light mode, so they're force-overridden to the fixed
 * light-on-dark colors here; .pd-v2-action--1 already uses the fixed --act brand pink and needs
 * no override.
 */
html.ag-open,html.ag-open body{overflow:hidden}
html.ag-open body>*:not(.ag){filter:blur(26px) brightness(.45);pointer-events:none;user-select:none}
.ag{position:fixed;inset:0;z-index:999;display:grid;place-items:center;padding:20px;
  background:rgba(14,8,16,.55)}
.ag[hidden]{display:none}
.ag__card{position:relative;width:min(100%,460px);padding:clamp(28px,5vw,44px) clamp(22px,4.4vw,40px) 26px;border-radius:18px;
  color:#FFF7F1;text-align:center;overflow:hidden;
  background:radial-gradient(70% 55% at 0% 0%,rgba(254,3,115,.34),transparent 70%),
             radial-gradient(70% 55% at 100% 100%,rgba(197,39,243,.34),transparent 70%),#1A1118;
  border:1px solid rgba(255,247,241,.16);box-shadow:0 30px 80px -20px rgba(0,0,0,.75);
  animation:agIn .5s cubic-bezier(.16,1,.3,1)}
@keyframes agIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ag__card{animation:none}}
.ag__lg{height:52px;width:auto;margin:0 auto 22px}
.ag__cap{display:block;font:700 12px/1 var(--ui);letter-spacing:.22em;text-transform:uppercase;color:var(--main2)}
/* 32-36px 全程 Display(--fr-display token · 650),不加字距——同 SPEC-typography.md 的规则 14,
   >30px 不加 0.02em。 */
.ag h2{margin:12px 0 0;font-family:var(--disp);font-variation-settings:var(--fr-display);font-weight:650;
  font-size:clamp(32px,4.4vw,36px);line-height:1.08;letter-spacing:-.015em;color:#FFF7F1}
.ag p{margin:12px auto 0;max-width:34ch;font-size:15px;line-height:1.6;color:rgba(255,247,241,.76)}
.ag__btns{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;margin-top:24px}
.ag .pd-v2-action{width:100%}
.ag .pd-v2-action--3{background:transparent;color:#FFF7F1;border-color:rgba(255,247,241,.5)}
@media (hover:hover) and (pointer:fine){.ag .pd-v2-action--3:hover{border-color:#FFF7F1;background:rgba(255,247,241,.08);color:#FFF7F1}}
.ag .pd-v2-action:focus-visible,.ag__back:focus-visible,.ag a:focus-visible{outline:2px solid #FFF7F1;outline-offset:3px}
/* font-weight:400 overrides theme.css's bare label{font-weight:600} (same normalize-layer
   leak as the Nunito-bold bug fixed in pd-v2-base.css) — the prototype's label is normal
   weight, not bold. */
.ag__rem{display:inline-flex;align-items:center;gap:10px;margin-top:18px;font-size:14px;font-weight:400;color:rgba(255,247,241,.86);cursor:pointer}
.ag__rem input{position:absolute;opacity:0;width:1px;height:1px}
.ag__box{width:18px;height:18px;border-radius:5px;border:1.5px solid rgba(255,247,241,.55);display:grid;place-items:center;flex:none}
.ag__box::after{content:"";width:9px;height:5px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px);opacity:0}
.ag__rem input:checked+.ag__box{background:var(--act);border-color:var(--act)}
.ag__rem input:checked+.ag__box::after{opacity:1}
.ag__rem input:focus-visible+.ag__box{outline:2px solid #FFF7F1;outline-offset:2px}
.ag__back{margin-top:22px;padding:0;border:0;background:none;color:#FFF7F1;font:700 14px/1.4 var(--ui);
  text-decoration:underline;text-decoration-color:rgba(255,247,241,.45);text-underline-offset:4px;cursor:pointer}
.ag__fine{margin:24px 0 0!important;padding-top:16px;border-top:1px solid rgba(255,247,241,.12);font-size:12.5px!important;color:rgba(255,247,241,.62)!important;max-width:none!important}
/* 2026-11-18 (Yimei, second pass): no caption above the title any more, so the title starts right
   under the logo; "adults only." drops to its own centred line in the same soft pink the footer's
   "Closer" uses. The confirm line now lives in the fine print, which becomes the card's only
   description, so it is a touch larger and brighter than before (13.5px, .72) and balanced. */
.ag__body h2{margin-top:0;text-wrap:balance}
.ag__pk{display:block;color:var(--main2)}
.ag #agAsk .ag__btns{margin-top:28px}
.ag__card .ag__fine{margin-top:22px!important;padding-top:18px;font-size:13.5px!important;line-height:1.6!important;
  color:rgba(255,247,241,.72)!important;text-wrap:balance}
@media (max-width:420px){.ag__card .ag__fine{font-size:13px!important}}
.ag__fine a{color:#FFF7F1;text-decoration:underline;text-decoration-color:rgba(255,247,241,.4);text-underline-offset:3px}
@media (max-width:420px){.ag__btns{grid-template-columns:1fr}}

/* Welcome offer = the back of the gate card (design D3, 2026-11-05): a photo of the twins
 * taped on with one big yellow tape that carries the sale title, a cream letter under it,
 * one button. Always dark around it, like the gate itself, in both colour modes.
 * The overlay scrolls when the card is taller than a short phone (iPhone SE), and the card
 * centres with margin:auto so it is never clipped at the top. */
.ag{perspective:1100px;display:flex;overflow-y:auto;overscroll-behavior:contain}
.ag__card{margin:auto;flex:none}
.ag__card.is-offer{background:linear-gradient(180deg,#3A1235,#1E0D1C 72%);padding-top:clamp(30px,5vw,40px)}
.ag__card.is-offer .ag__fine,.ag__card.is-offer .ag__lg{display:none}
.ag__offer{outline:none}

.ag__photo{position:relative;z-index:2;margin:10px 4px 0;padding:8px;background:#fff;rotate:-2.2deg;
  box-shadow:0 16px 30px -10px rgba(0,0,0,.6)}
.ag__photo img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover}
.ag__tape{position:absolute;left:50%;top:-16px;translate:-50% 0;rotate:3deg;max-width:92%;padding:9px 18px 8px;
  background:rgba(255,241,79,.94);color:#262026;font:800 15px/1.2 var(--ui);letter-spacing:.1em;text-transform:uppercase;
  white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.22);
  /* torn tape ends */
  clip-path:polygon(0 8%,3% 0,97% 4%,100% 0,98% 50%,100% 100%,96% 94%,4% 100%,0 92%,2% 50%)}

.ag__tape{z-index:3}
/* four small tape scraps on the photo corners, each a slightly different size, angle and
   tear, so it looks stuck on by hand rather than lined up */
.ag__bit{position:absolute;z-index:2;height:22px;background:rgba(255,241,79,.84);
  box-shadow:0 1px 3px rgba(0,0,0,.18);pointer-events:none}
.ag__bit--tl{width:66px;left:-20px;top:4px;rotate:-41deg;
  clip-path:polygon(0 12%,6% 0,94% 6%,100% 0,97% 55%,100% 100%,5% 92%,0 100%,3% 48%)}
.ag__bit--tr{width:58px;right:-17px;top:8px;rotate:37deg;
  clip-path:polygon(3% 0,100% 8%,96% 46%,100% 92%,92% 100%,0 94%,4% 52%,0 6%)}
.ag__bit--bl{width:60px;left:-16px;bottom:6px;rotate:31deg;
  clip-path:polygon(0 4%,95% 0,100% 40%,97% 100%,6% 96%,0 100%,2% 58%)}
.ag__bit--br{width:70px;right:-21px;bottom:2px;rotate:-46deg;
  clip-path:polygon(5% 0,100% 10%,98% 52%,100% 100%,0 92%,4% 46%,0 4%)}
@media (max-width:420px){
  .ag__bit{height:18px}
  .ag__bit--tl{width:54px;left:-16px}
  .ag__bit--tr{width:48px;right:-14px}
  .ag__bit--bl{width:50px;left:-13px}
  .ag__bit--br{width:56px;right:-17px}
}

.ag__letter{position:relative;z-index:1;margin:-22px 2px 0;padding:42px 24px 20px;background:#FFF7F1;color:#262026;border-radius:6px;
  text-align:left;rotate:.8deg;box-shadow:0 18px 40px -12px rgba(0,0,0,.6)}
.ag .ag__letter h2{margin:0;font-family:var(--disp);font-variation-settings:var(--fr-text);font-weight:600;font-size:22px;line-height:1.25;
  letter-spacing:.02em;color:#262026}
.ag__words p{margin:11px 0 0!important;max-width:none!important;font-size:15px!important;line-height:1.62!important;color:rgba(38,32,38,.84)!important}
/* the highlighted line: yellow marker under ink, whatever inline colour the editor adds */
.ag__words strong,.ag__words b{font-weight:800;color:#262026!important;padding:0 2px;
  background:linear-gradient(transparent 58%,rgba(255,241,79,.95) 58%)}
.ag__words *{color:inherit}
.ag__sign{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:14px}
.ag__sign span{font-size:14px;color:rgba(38,32,38,.7)}
.ag__sign img{height:40px;width:auto}

.ag .ag__go{display:flex;width:100%;margin-top:22px;text-decoration:none;color:#fff}
.ag a.ag__go:hover{color:#fff}

@media (max-width:420px){
  .ag__tape{font-size:13px;letter-spacing:.06em;padding:8px 14px 7px;top:-14px}
  .ag__letter{padding:38px 18px 18px}
  .ag .ag__letter h2{font-size:20px}
  .ag__words p{font-size:14.5px!important;line-height:1.58!important}
}
