/* 성인 입장 화면(ui/adult-gate.js). 화면 테마와 상관없이 늘 검은 판 — 첫인상이라 한 벌로 둔다.
 * z-index 99: 로그인·가입 동의 창(.modal-wrap 100)과 알림(#toasts 1000)은 이 판 위에 뜬다. */

html.ag-boot body::before { content: ""; position: fixed; inset: 0; z-index: 98; background: #000; }
html.ag-open, html.ag-open body { overflow: hidden; }

.ag {
  --ag-red: #E5243B;
  --ag-dim: rgba(255,255,255,.6);
  --ag-faint: rgba(255,255,255,.4);
  --ag-line: rgba(255,255,255,.12);
  position: fixed; inset: 0; z-index: 99; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(40px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 70% at 50% 0%, #17121f 0%, #000 60%) #000;
  color: #fff; --logo: #fff;
}

.ag-card { width: 100%; max-width: 380px; margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ag-logo { width: 104px; height: 40px; color: var(--logo); margin-bottom: 36px; }

.ag-19 { width: 76px; height: 76px; border-radius: 50%; border: 5px solid var(--ag-red); display: grid; place-items: center; margin-bottom: 22px; }
.ag-19 span { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.ag-19.sm { width: 56px; height: 56px; border-width: 4px; margin-bottom: 18px; }
.ag-19.sm span { font-size: 23px; }

.ag h1 { margin: 0 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.ag-lead { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.85); }
.ag-lead b { color: #fff; }
.ag-law { margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--ag-line);
  font-size: 12.5px; line-height: 1.65; color: var(--ag-dim); text-align: left; word-break: keep-all; }

.ag-steps { list-style: none; margin: 26px 0 20px; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ag-faint); }
.ag-steps li { display: flex; align-items: center; gap: 7px; }
.ag-steps li + li::before { content: ""; width: 22px; height: 1px; background: var(--ag-line); margin-right: 3px; }
.ag-steps b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,.25); }
.ag-steps b svg { width: 12px; height: 12px; }
.ag-steps li.on { color: #fff; }
.ag-steps li.on b { background: #fff; color: #000; border-color: #fff; }
.ag-steps li.done { color: var(--ag-dim); }
.ag-steps li.done b { background: var(--accent, #7C4DFF); border-color: transparent; color: #fff; }

.ag-google { width: 100%; min-height: 44px; display: flex; justify-content: center; }
.ag-google .spinner { margin: 8px auto; width: 24px; height: 24px; }
.ag-google > div { color-scheme: light; }

.ag-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ag-dim); padding: 6px 8px; border-radius: 6px; }
.ag-link svg { width: 16px; height: 16px; }
.ag-link:hover { color: #fff; }

.ag-exit { margin-top: 18px; width: 100%; height: 44px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--ag-line);
  font-size: 14px; font-weight: 600; color: var(--ag-dim); text-decoration: none; transition: border-color .15s, color .15s; }
.ag-exit:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.ag-who { margin-bottom: 14px; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border-radius: 99px;
  background: rgba(255,255,255,.07); font-size: 13px; color: rgba(255,255,255,.85); }
.ag-who svg { width: 14px; height: 14px; flex: none; color: #00E0B8; }
.ag-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ag-methods { width: 100%; display: grid; gap: 10px; }
.ag-method { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; text-align: left;
  background: rgba(255,255,255,.06); border: 1px solid var(--ag-line); color: #fff; transition: background .15s, border-color .15s; }
.ag-method:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.ag-m-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; }
.ag-m-ic svg { width: 20px; height: 20px; }
.ag-m-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ag-m-t b { font-size: 15px; font-weight: 600; }
.ag-m-t small { font-size: 12px; color: var(--ag-faint); }
.ag-m-go { width: 18px; height: 18px; flex: none; color: var(--ag-faint); }
.ag-note { margin: 14px 0 0; font-size: 12px; color: var(--ag-faint); }

.ag-foot { width: 100%; max-width: 380px; margin-top: 40px; text-align: center; font-size: 12px; color: var(--ag-faint); }
.ag-foot a { color: var(--ag-faint); text-decoration: none; }
.ag-foot a:hover { color: #fff; }
.ag-foot i { display: inline-block; width: 1px; height: 9px; margin: 0 10px; background: var(--ag-line); vertical-align: middle; }
.ag-foot p { margin: 8px 0 0; }

@media (max-width: 360px) {
  .ag h1 { font-size: 21px; }
  .ag-steps li + li::before { width: 12px; }
}
