/* 성인 입장 화면(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; }
/* 로고 옆 「앱 설치」(관리자 로그인 .ad-install 과 같은 모양 · 2026-09-28) — 로고 아래 여백은 이 줄이 갖는다 */
.ag-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 36px; }
.ag-brand .ag-logo { margin-bottom: 0; }
.ag-install { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--accent, #7C4DFF) 55%, transparent); background: color-mix(in srgb, var(--accent, #7C4DFF) 16%, transparent);
  color: #fff; font: 700 13px/1 var(--font, inherit); white-space: nowrap; cursor: pointer; }
.ag-install:hover { background: color-mix(in srgb, var(--accent, #7C4DFF) 26%, transparent); }
.ag-install svg { width: 15px; height: 15px; flex: none; color: var(--accent, #7C4DFF); }

/* 이메일 코드 · 엔터 소속 로그인 단계(예전 팝업 로그인 창 · 2026-09-28) — 입력칸은 session.js 가 그리는 .login-step 그대로.
 * 입장 화면은 테마와 상관없이 검은 판이라 그 안의 색도 검은 판 값으로 묶는다(밝은 테마면 흰 칸이 뜬다). */
.ag-step { width: 100%; text-align: left;
  --text: #fff; --text-2: rgba(255,255,255,.6); --text-3: rgba(255,255,255,.4); --line: rgba(255,255,255,.12);
  --chip: rgba(255,255,255,.08); --bg-hover: rgba(255,255,255,.08); color: #fff; }
.ag-step .login.login-step { position: relative; padding: 52px 0 0; }
.ag-step .login-back { left: -8px; top: 0; color: #fff; }
.ag-step .login-step h2 { font-size: 26px; }

.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;
  /* 숫자 글꼴은 윗여백이 커서 line-height:1 이어도 글자가 원 가운데보다 2px(32px 기준) 아래로 앉는다(09-26 실측) */
  transform: translateY(-.0625em); }
/* 입장 판 19 표시 양옆의 조커 둘(2026-09-25 소유자 그림 — 왼쪽 클래퍼보드, 오른쪽 하트).
 * 19 는 그대로 가운데 두고 조커만 양옆에 같은 간격·같은 키로 띄운다 — 그림 아래가 잘린 몸통이라 밑을 흐려 검은 판에 녹인다.
 * max-width:none — 공용 img{max-width:100%} 가 76px 짜리 감싸개 폭으로 그림을 눌러 버린다. */
.ag-hero { position: relative; margin-bottom: 22px; }
.ag-hero .ag-19 { margin-bottom: 0; }
.ag-joker { position: absolute; top: 50%; transform: translateY(-54%); max-width: none;
  width: 79px; height: 95px; object-fit: contain; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ag-joker.l { right: calc(100% + 12px); }
.ag-joker.r { left: calc(100% + 12px); width: 88px; }
.ag-19.sm { width: 56px; height: 56px; border-width: 4px; margin-bottom: 18px; }
.ag-19.sm span { font-size: 23px; }
/* 작은 19(성인인증·이미 가입 판) 옆 조커는 19 크기에 맞춰 같은 비율(56/76)로 줄인다 */
.ag-hero.sm { margin-bottom: 18px; }
.ag-hero.sm .ag-19 { margin-bottom: 0; }
.ag-hero.sm .ag-joker { width: 58px; height: 70px; }
.ag-hero.sm .ag-joker.l { right: calc(100% + 9px); }
.ag-hero.sm .ag-joker.r { left: calc(100% + 9px); width: 65px; }

.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); word-break: keep-all; }
.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; }
  .ag-joker { width: 68px; height: 82px; }
  .ag-joker.l { right: calc(100% + 8px); }
  .ag-joker.r { left: calc(100% + 8px); width: 75px; }
}

/* 본인확인 결과 한 줄 — 표준창에서 돌아왔을 때 이 자리에 뜬다(2026-09-23). */
.ag-msg { width: 100%; margin: 14px 0 0; padding: 11px 13px; border-radius: 9px; font-size: 13px; line-height: 1.5; text-align: left; }
.ag-msg.ok { background: rgba(0,224,184,.12); border: 1px solid rgba(0,224,184,.35); color: #00E0B8; }
.ag-msg.no { background: rgba(255,90,90,.12); border: 1px solid rgba(255,90,90,.35); color: #FF7B7B; }
.ag-method[disabled] { opacity: .55; pointer-events: none; }.ag-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* AI XEX — 전체 로고 4.07:1 */
.ag-logo { width: 163px; }
