/* login.css — 첫 화면 로그인(Google · Apple · 게스트) + 마이 '계정' 칸의 연결 단추. 2026-11-20 (js/login.js)
   단추 규칙: 구글 = 흰 바탕 #FFF · 테두리 #747775 · 글자 #1F1F1F · 컬러 G 로고(Google 브랜드 가이드 light)
             애플 = 어두운 바탕 위 흰 단추(Apple HIG 「white」) · 검정 로고·글자 · 로고 왼쪽 정렬형
             게스트 = 덜 강조(투명 + 얇은 테두리)
   단추는 그림 아래 40% 어두운 그라데이션 위, 390×844 기준 엄지가 닿는 아래쪽에 둔다. */
.cine .lg {
  --lg-floor: #0c0a08; /* 그림 B 아래쪽에서 뽑은 바닥색 */
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; min-height: 100%; background: var(--lg-floor);
}
.cine .lg-art { position: absolute; inset: 0; z-index: -2; }
.cine .lg-art img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; }
/* 그림 아래쪽을 어둡게(단추 자리) — 위 55% 는 그림 그대로 */
.cine .lg-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0) 0%, rgba(12, 10, 8, 0) 42%, rgba(12, 10, 8, .35) 50%, rgba(12, 10, 8, .72) 58%, rgba(12, 10, 8, .93) 67%, var(--lg-floor) 76%);
}
.cine .lg-top { position: absolute; top: calc(var(--sat, env(safe-area-inset-top, 0px)) + 12px); right: 12px; left: 12px; display: flex; justify-content: flex-end; }
.cine .lg-lang .seg { background: rgba(11, 10, 9, .55); box-shadow: inset 0 0 0 1px var(--c-glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cine .lg-lang .seg-btn { min-height: 44px; min-width: 44px; padding: 0 10px; font-size: 12.5px; } /* 터치 32→44px(QA 1129 D-08) */

.cine .lg-body {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 24px calc(max(env(safe-area-inset-bottom, 0px), var(--sab, 0px)) + 18px);
}
.cine .lg-logo { display: flex; align-items: baseline; gap: 6px; margin: 0; font-family: var(--f-title), serif; font-weight: 800; font-size: 30px; line-height: 1.2; letter-spacing: .14em; color: var(--c-text); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.cine .lg-logo b { font-family: var(--f-num); font-weight: 500; font-size: 36px; letter-spacing: 0; color: var(--c-gold); }
html[data-lang='en'] .cine .lg-logo { font-size: 24px; letter-spacing: .04em; }
.cine .lg-tag { margin: 6px 0 22px; max-width: 320px; font-size: 13.5px; line-height: 1.6; letter-spacing: .03em; color: var(--c-text2); text-wrap: balance; }

.cine .lg-btns { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }
.cine .lg-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; padding: 0 52px; border-radius: 999px; border: 0;
  /* 구글·애플·게스트 같은 글꼴·굵기(중간 500)·크기 — 화면 글꼴(언어별 고딕, 500 굵기를 실제로 받는 것) */
  font-family: var(--f-ui), sans-serif; font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: .01em;
  transition: transform .16s cubic-bezier(.23, 1, .32, 1), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.cine .lg-btn:active { transform: scale(.98); }
.cine .lg-btn:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.cine .lg-btn[hidden], .cine .lg-gsi[hidden] { display: none; }
.cine .lg-btn-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; padding: 1px 0; } /* 한글 글꼴은 위아래가 커서 line-height 1 이면 g·p 아래가 잘림 */
.cine .lg-btn-ico { position: absolute; left: 20px; top: 50%; display: grid; place-items: center; width: 20px; height: 20px; margin-top: -10px; }
.cine .lg-ico { display: block; width: 20px; height: 20px; }
/* 두 브랜드 단추 = 같은 흰 바탕·같은 얇은 회색 테두리(구글 light 규칙 #747775)·같은 검정 글자 */
.cine .lg-btn--google, .cine .lg-btn--apple { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775; }
.cine .lg-btn--apple .lg-ico { color: #000; margin-top: -2px; }
.cine .lg-btn--guest { background: rgba(12, 10, 8, .35); color: var(--c-text); box-shadow: inset 0 0 0 1px rgba(244, 237, 225, .34); }
@media (hover: hover) and (pointer: fine) {
  .cine .lg-btn--google:hover, .cine .lg-btn--apple:hover { background: #f2f2f2; }
  .cine .lg-btn--guest:hover { background: rgba(244, 237, 225, .08); }
}
/* 웹 구글 공식 버튼(GIS, outline 흰 단추) 자리 */
.cine .lg-gsi { display: flex; justify-content: center; align-items: center; min-height: 50px; color-scheme: light; }

.cine .lg-consent { margin: 14px 0 0; max-width: 342px; font-size: 11.5px; line-height: 1.75; color: var(--c-text2); text-wrap: balance; }
/* 링크 터치 영역 44px(글줄은 그대로 — 위아래 여백을 음수 여백으로 상쇄) */
.cine .lg-consent a { display: inline-block; min-width: 44px; text-align: center; padding: 13px 0; margin: -13px 0; color: var(--c-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--c-line2); white-space: nowrap; }
.cine .lg.is-busy .lg-btn { opacity: .55; pointer-events: none; }
@media (max-height: 700px) { .cine .lg-tag { margin-bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .cine .lg-btn { transition: none; } .cine .lg-btn:active { transform: none; } }

/* 확인 창(2단계) 본문 */
.lg-confirm-p { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: var(--c-text2, #b9ad98); }

/* 마이 '계정' 칸: 게스트·연결 단추·로그인 방식 */
.cine .acct-btns { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 12px; }
.cine .acct-btns .lg-btn { height: 46px; font-size: 15px; }
.cine .acct-btns .lg-gsi { min-height: 46px; }
.cine .acct-whot { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cine .acct-via { font-size: 12px; color: var(--c-text2); }
.cine .acct-av--guest { background: rgba(244, 237, 225, .08); box-shadow: inset 0 0 0 1px var(--c-line2); color: var(--c-text2); }
.cine .acct-link-lead { margin-top: 0; }
html[data-lang='zh'] .cine .lg-consent { word-break: keep-all; } /* 「继续即表/示同意」처럼 낱말 가운데서 꺾이지 않게 — 마침표 뒤에서만 줄바꿈 */
html[data-lang='ja'] .cine .lg-consent { word-break: auto-phrase; }
/* QA 1129 2차 G-02: 첫 화면의 게스트 시작 = 주 버튼(금색) */
.cine .lg-btn--guest.lg-btn--main { background: var(--g-gold); color: var(--c-on-gold); box-shadow: var(--shadow-gold); font-weight: 700; }
@media (hover: hover) { .cine .lg-btn--guest.lg-btn--main:hover { background: var(--g-gold); filter: brightness(1.06); } }

/* 터치 기기(폰)에서는 backdrop-filter 끔 — 카드·목록 스크롤마다 뒤 화면을 흐리게 다시 그려 GPU 가 바빴다(12/3 탐정 실측, 러브 ca28e24 와 같은 방식).
   같은 톤의 더 짙은 반투명으로 대신(겉모습 차이 최소). 마우스 기기(웹 PC)는 그대로. 이 파일이 가장 늦게 불러오는 유리 규칙 뒤라 여기서 한꺼번에 덮는다 */
@media (hover: none) and (pointer: coarse) {
  .c-glass, .btn--glass, .icon-btn--glass, .tk-chip, .sheet--wallet .sheet-x, .notice--ticket .tk-poster .pw-lock { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .c-glass, .btn--glass, .icon-btn--glass, .tk-chip, .sheet--wallet .sheet-x, .notice--ticket .tk-poster .pw-lock { background: rgba(18, 15, 12, .74); }
  .cine .lg-lang .seg { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(11, 10, 9, .72); }
}
