/* ANGELBET 정적 첫 화면 연동 부분 모양(2026-11-19) - 시안 angel.css 위에 얹는다. 색·둥글기는 시안 변수 그대로.
   손님/회원 칸 바꾸기, 로그인·회원가입 창(솔루션 가입 칸), 실데이터 칸의 빈 상태. */

/* 손님 칸(.ab-g)·회원 칸(.ab-m): 머리 인라인 판정이 첫 그림부터 data-ab-member 를 단다 */
html:not([data-ab-member="1"]) .ab-m { display: none !important; }
html[data-ab-member="1"] .ab-g { display: none !important; }
.me .me-out { display: inline-flex; align-items: center; height: 36px; color: #9db6e8; font: inherit; }
.me .me-out:hover { color: #fff; }
.me-lv[hidden] { display: none; }

/* ── 로그인 · 회원가입 창 ── */
#authSheet { max-height: min(92vh, 900px); overflow-y: auto; overscroll-behavior: contain; }
#authSheet .sheet-top { aspect-ratio: auto; height: 132px; background-position: center 38%; }
#authSheet[data-tab="register"] .sheet-top { height: 96px; }
.am-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--sky-1); }
.am-tabs button { height: 44px; border-radius: 10px; font-weight: 800; font-size: 15px; color: var(--ink-2); }
.am-tabs button.is-active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(15, 60, 140, 0.12); }
.am-panel { display: grid; gap: 14px; }
.am-panel[hidden] { display: none; }
.am-panel h2 { font-size: 20px; font-weight: 800; color: var(--navy); }
.am-sub { margin-top: -10px; font-size: 14px; color: var(--ink-3); }
.am-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.am-field[hidden] { display: none; }
.am-label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.am-input, .am-select { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--sky-0); color: var(--ink); font: inherit; font-size: 16px; transition: border-color 0.2s, background 0.2s; }
.am-input::placeholder { color: #8b97ba; }
.am-input:focus, .am-select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.15); }
.am-input[aria-invalid="true"] { border-color: #e0455f; }
.am-input[readonly] { background: var(--sky-1); color: var(--ink-2); }
.am-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.am-select:disabled { opacity: 0.75; }
.am-hint { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.am-error { min-height: 0; font-size: 12.5px; font-weight: 700; color: #d6334f; }
.am-error:empty { display: none; }
.am-status { font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--blue-700); }
.am-status:empty { display: none; }
.am-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.am-type { position: relative; display: grid; align-content: center; gap: 2px; min-height: 56px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; font-weight: 800; color: var(--ink-2); line-height: 1.35; }
.am-type input { position: absolute; opacity: 0; pointer-events: none; }
.am-type small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.am-type:has(input:checked) { border-color: var(--blue); background: rgba(30, 107, 255, 0.06); color: var(--blue-700); box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.12); }
.am-type:has(input:focus-visible) { outline: 3px solid rgba(30, 107, 255, 0.55); outline-offset: 2px; }
.am-meter { display: flex; align-items: center; gap: 10px; }
.am-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: 1; }
.am-bars i { height: 5px; border-radius: 3px; background: var(--line); }
.am-meter[data-level="1"] .am-bars i:nth-child(-n+1) { background: #e0455f; }
.am-meter[data-level="2"] .am-bars i:nth-child(-n+2) { background: var(--gold); }
.am-meter[data-level="3"] .am-bars i:nth-child(-n+3) { background: #39a96b; }
.am-meter[data-level="4"] .am-bars i { background: #1f9d5a; }
.am-meter-text { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.am-rules { padding: 10px 12px; border-radius: 12px; background: var(--sky-0); border: 1px solid var(--line); }
.am-rules p { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); }
.am-rules p b { color: var(--ink-2); }
.am-rules ul { display: grid; gap: 2px; margin-top: 6px; }
.am-rules li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.am-rules li.is-ok { color: #1f9d5a; font-weight: 700; }
.am-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-grid2 .am-wide { grid-column: 1 / -1; }
.am-phone { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 8px; }
.am-phone-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.am-phone-code[hidden] { display: none; }
.am-btn { height: 48px; padding: 0 14px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.am-btn:disabled { background: var(--sky-2); color: var(--ink-3); cursor: not-allowed; }
.am-btn.is-done { background: #1f9d5a; color: #fff; }
.am-ref-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.am-link { font-size: 13px; font-weight: 800; color: var(--blue); min-height: 32px; }
.am-submit { height: 52px; border-radius: 16px; background: linear-gradient(180deg, #2a72f5 0%, var(--blue-600) 100%); color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 6px 16px rgba(30, 107, 255, 0.32); }
#am-register .am-submit { background: linear-gradient(180deg, #ffc93c 0%, var(--gold) 100%); color: var(--navy-900); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 6px 16px rgba(232, 154, 0, 0.35); }
.am-submit:disabled { background: var(--sky-2); color: var(--ink-3); box-shadow: none; cursor: not-allowed; }
#am-register .am-submit:disabled { background: var(--sky-2); color: var(--ink-3); box-shadow: none; }
.am-switch { font-size: 13.5px; color: var(--ink-3); text-align: center; }
.am-switch button, .am-switch a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; padding: 0 4px; font-weight: 800; color: var(--blue); }
.am-captcha.ab-cap { min-height: 65px; border-radius: 14px; overflow: hidden; }
.am-captcha.ab-cap[hidden] { display: none; }

/* ── 실데이터 칸의 빈 상태 · 팀 로고 없는 팀 ── */
.ab-empty { grid-column: 1 / -1; padding: 28px 16px; border-radius: 18px; background: #fff; border: 1px dashed var(--sky-3); color: var(--ink-3); font-size: 14px; font-weight: 700; text-align: center; list-style: none; }
.notice .ab-empty { border: 0; padding: 22px 12px; }
.ab-empty-match { justify-content: center; align-items: center; gap: 14px; min-height: 196px; text-align: center; color: var(--ink-2); font-size: 15px; font-weight: 700; }
.ab-empty-win { padding: 14px 20px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.crest.ab-crest-text { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #2a72f5 0%, var(--navy) 100%); color: #fff; font-size: 20px; font-weight: 800; filter: none; }
.match-odds.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
a.odd { text-decoration: none; }

@media (max-width: 767px) {
  #authSheet { max-height: 94vh; }
  #authSheet .sheet-top { height: 88px; }
  .am-types { grid-template-columns: 1fr; }
  .am-grid2 { grid-template-columns: 1fr; }
  .am-phone { grid-template-columns: 76px minmax(0, 1fr) auto; }
}

/* ── 공통 안내 창(SBAPI.dialog: 점검·제한·막힘·확인 창) - 토끼카지노에서 옮겨 온 어두운 색을 엔젤벳 흰 창으로(2026-11-20) ── */
dialog.sbapi-dlg { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-xl, 28px); background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(8, 29, 77, 0.35); }
dialog.sbapi-dlg::backdrop { background: rgba(8, 29, 77, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.sbapi-block::backdrop { background: rgba(8, 29, 77, 0.85); }
.sbapi-dlg h2 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--navy); }
.sbapi-dlg .sbapi-d { color: var(--ink-2) !important; }
.sbapi-dlg .sbapi-s { color: var(--ink-3) !important; }
.sbapi-dlg .sbapi-f { background: var(--sky-0) !important; border: 1.5px solid var(--line) !important; border-radius: 14px !important; color: var(--ink) !important; }
.sbapi-dlg .sbapi-f:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.15) !important; }
.sbapi-dlg .dlg-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-1); color: var(--navy); }
.sbapi-dlg .btn-line { background: #fff; border: 1.5px solid var(--sky-3); color: var(--navy); }
.sbapi-cap-msg { color: #d6334f !important; }

/* ── 떠 있는 상담 단추(앱 화면 상담 단추와 같은 자리, 2026-11-20) ── */
.ab-chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #2a72f5 0%, var(--blue-600) 100%); color: #fff; box-shadow: 0 10px 26px rgba(30, 107, 255, 0.4); }
.ab-chat-fab svg { width: 28px; height: 28px; fill: currentColor; }
.ab-chat-fab svg circle { fill: var(--blue-600); }
.ab-chat-fab:hover { transform: translateY(-2px); }
@media (max-width: 767px) { .ab-chat-fab { right: 14px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; } }
/* 머리줄 내 정보 단추(사람 모양, 2026-11-25 작업 요청 #266). 시안 머리줄 단추(.btn-ghost) 모양 그대로 정사각으로만 둔다 - 휴대폰에서 출금 단추는 숨지만 이 단추는 남는다 */
.auth-me .btn.me-user { display: inline-flex; width: 44px; padding: 0; flex: none; }
.auth-me .btn.me-user svg { width: 22px; height: 22px; }
/* 360px 보다 좁은 화면은 로고와 보유머니 칸 사이에 자리가 없어 종전 그대로 둔다(내 정보는 전체 메뉴에 있다) */
@media (max-width: 359px) { .auth-me .btn.me-user { display: none; } }
