/* ── AUTH SCREEN ── */
#authScreen {
  position: fixed; inset: 0; z-index: 1000;
  background: linear-gradient(135deg, #F48FB1 0%, #CE93D8 50%, #90CAF9 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.auth-box {
  background: #fff; border-radius: 26px;
  padding: 36px 28px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(120,40,100,.25);
  text-align: center;
  position: relative;
}

/* Sprint 15: 게스트 모드에서 열었을 때 로그인 없이 되돌아갈 수 있는 닫기 버튼 */
.auth-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: #F5EEF5; color: var(--txl);
  font-size: .85rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.auth-close:hover { background: var(--pkl); color: var(--pkd); }

.auth-logo {
  font-family: 'OwnglyphParkDahyun', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 1.85rem; font-weight: 400; margin-bottom: 4px;
  background: linear-gradient(135deg, #F06292, #9C27B0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
/* v0.0.4: css/main.css에서 .brand-mark 높이를 고정값(2.85rem)으로 바꾸면서 로그인 화면
   마스코트까지 같이 작아지는 부작용이 있어, 로그인 화면은 기존 크기(1.9em × 1.85rem)를 그대로 유지 */
.auth-logo .brand-mark {
  height: 3.515rem;
  vertical-align: -.925rem;
}

.auth-sub { font-size: .78rem; color: var(--txl); margin-bottom: 8px; }
.auth-sub-guest {
  font-size: .7rem; color: var(--pkd); font-weight: 700;
  background: var(--pkl); border-radius: 10px; padding: 8px 10px;
  margin-bottom: 20px; line-height: 1.5;
}

.auth-tabs {
  display: flex; gap: 6px; margin-bottom: 18px;
  background: #F3EAF2; border-radius: 14px; padding: 4px;
}
.auth-tab {
  flex: 1; padding: 9px; border: none; border-radius: 11px;
  background: none; cursor: pointer; font-family: inherit;
  font-weight: 800; font-size: .8rem; color: var(--txl); transition: all .2s;
}
.auth-tab.on { background: #fff; color: var(--pkd); box-shadow: 0 2px 8px rgba(160,80,140,.12); }

.auth-form .fg { text-align: left; margin-bottom: 12px; }
.auth-err { color: #E53935; font-size: .74rem; font-weight: 700; margin: -4px 0 10px; min-height: 1em; }

.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0; color: var(--txl); font-size: .72rem; font-weight: 700;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #EEE0F0; }

.btn-google {
  width: 100%; padding: 11px; border-radius: 13px; border: 1.5px solid #E0E0E0;
  background: #fff; cursor: pointer; font-family: inherit; font-weight: 800;
  font-size: .83rem; color: var(--tx);
  display: flex; align-items: center; justify-content: center; gap: 9px; transition: all .2s;
}
.btn-google:hover { background: #FAFAFA; border-color: #CCC; }

.auth-loading { display: none; font-size: .78rem; color: var(--txl); margin-top: 14px; }

/* ── Sprint 8: 체험하기(데모 모드) ── */
.btn-demo {
  width: 100%; padding: 11px; border-radius: 13px;
  border: 1.5px dashed var(--pk); background: var(--pkl);
  cursor: pointer; font-family: inherit; font-weight: 800;
  font-size: .8rem; color: var(--pkd); margin-top: 12px; transition: all .2s;
}
.btn-demo:hover { background: #FCE4EC; }

.demo-banner {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: linear-gradient(90deg, #F06292, #9C27B0);
  color: #fff; text-align: center; padding: 8px 14px;
  font-size: .74rem; font-weight: 800;
  align-items: center; justify-content: center; gap: 10px;
}
.demo-banner.show { display: flex; }
.demo-banner button {
  background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.5);
  color: #fff; border-radius: 20px; padding: 3px 11px;
  font-size: .68rem; font-weight: 800; cursor: pointer; font-family: inherit;
}
.demo-banner button:hover { background: rgba(255,255,255,.4); }
body.demo-active .topbar { top: 36px; }
body.demo-active #authScreen { padding-top: 36px; }

/* ── USER CHIP (TOPBAR) ── */
.user-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--pkl); border-radius: 40px;
  padding: 5px 12px 5px 6px; cursor: pointer; flex-shrink: 0;
  font-size: .74rem; font-weight: 800; color: var(--pkd);
  border: none; font-family: inherit;
}
.user-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #F06292, #9C27B0);
  color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: .72rem; font-weight: 900; flex-shrink: 0;
}

/* ── USER DROPDOWN MENU ── */
#userMenu {
  display: none; position: fixed; top: 96px; right: 16px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(120,40,100,.18);
  padding: 8px; z-index: 250; min-width: 160px;
}
#userMenuEmail {
  padding: 10px 12px; font-size: .74rem; color: var(--txl);
  font-weight: 700; border-bottom: 1px solid #F3EAF2; margin-bottom: 4px;
}
