/* ===== ログイン/保存UX(auth-ui.js 用) ===== */

/* ヘッダー直下の「ゲストプレイ中 [データを保存]」バー */
#guest-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 auto; max-width: 480px; padding: 6px 14px;
  background: linear-gradient(90deg, rgba(86, 42, 140, 0.35), rgba(20, 24, 48, 0.3));
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  font-size: 12px; font-weight: 800;
}
.gb-text { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim, #9aa0b5); }
.gb-dot {
  width: 7px; height: 7px; border-radius: 99px; background: #f5b301;
  box-shadow: 0 0 8px #f5b301; animation: gb-pulse 1.8s ease-in-out infinite;
}
@keyframes gb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.gb-save {
  border: none; cursor: pointer; color: #fff; font-weight: 900; font-size: 12px;
  padding: 5px 13px; border-radius: 99px;
  background: var(--grad-cta, linear-gradient(90deg, #3970ff, #28d8d8));
  box-shadow: 0 2px 10px rgba(57, 112, 255, 0.35);
}

/* 保存モーダル */
.save-modal { width: min(92vw, 360px); }
.save-sub {
  font-size: 12px; color: var(--text-dim, #9aa0b5); line-height: 1.55;
  margin: 4px 0 14px; text-align: center;
}
.save-providers { display: flex; flex-direction: column; gap: 8px; }
.save-provider {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 14px; color: #fff;
  border: 1px solid var(--border-glow, rgba(120, 90, 220, 0.5));
  background: linear-gradient(160deg, rgba(40, 28, 72, 0.9), rgba(20, 24, 48, 0.95));
}
.save-provider .sp-icon { font-size: 18px; }
.save-provider .sp-label { flex: 1; text-align: left; }
.save-provider .sp-soon {
  font-size: 10px; font-weight: 800; color: var(--text-dim, #9aa0b5);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15)); padding: 1px 7px; border-radius: 99px;
}
.save-provider.is-soon { opacity: 0.6; cursor: default; }
.save-later {
  margin-top: 12px; width: 100%; padding: 10px; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: var(--text-dim, #9aa0b5); font-weight: 800;
}

/* メール認証フォーム */
.auth-fields { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 4px; }
.auth-input {
  width: 100%; padding: 11px 13px; border-radius: 11px; font-size: 14px; color: #fff;
  background: rgba(10, 14, 30, 0.7);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
}
.auth-input::placeholder { color: var(--text-dim, #9aa0b5); }
.auth-input:focus { outline: none; border-color: var(--cyan, #28d8d8); box-shadow: 0 0 0 2px rgba(40, 216, 216, 0.2); }
.auth-err { min-height: 16px; font-size: 11.5px; font-weight: 700; color: #ff6b6b; text-align: center; margin: 6px 0 8px; }
.auth-switch {
  margin-top: 12px; width: 100%; background: none; border: none; cursor: pointer;
  color: var(--cyan, #28d8d8); font-size: 12px; font-weight: 800;
}

/* ガチャのゲスト用ゲート(gacha.js が data.guestLocked のとき表示) */
.gc-guest-gate { text-align: center; }
.gc-guest-gate p { margin-bottom: 4px; }
.gc-guest-gate .cta-btn { margin-top: 16px; }

/* 初回プロフィール入力(onboarding.js) */
.ob-overlay { z-index: 1200; }
.ob-modal { max-width: 360px; max-height: calc(100vh - 28px); overflow-y: auto; text-align: center; }
.ob-fields { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 4px; text-align: left; }
.ob-label { font-size: 11px; font-weight: 800; color: var(--text-dim, #9aa0b5); margin-top: 4px; }
.ob-fields select.auth-input { appearance: none; -webkit-appearance: none; }
.ob-note { margin-top: 8px; font-size: 10.5px; line-height: 1.5; color: var(--text-dim, #9aa0b5); }
.ob-note-warn { color: #ffc04d; font-weight: 700; }

/* ホーム画面追加を必須化するPWAゲート(pwa.js) */
.pwa-gate-overlay { z-index: 1400; }
.pwa-gate-modal {
  width: min(92vw, 380px);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  text-align: center;
}
.pwa-gate-copy {
  margin: 4px 0 14px;
  color: var(--text-dim, #c6cbe0);
  font-size: 12.5px;
  line-height: 1.65;
  text-align: left;
}
.pwa-gate-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.pwa-gate-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(64, 243, 255, .18);
  border-radius: 13px;
  background: rgba(64, 243, 255, .06);
  text-align: left;
}
.pwa-gate-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #06101c;
  background: linear-gradient(90deg, #40f3ff, #b84dff);
  font-size: 12px;
  font-weight: 900;
}
.pwa-gate-step p {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.pwa-gate-status {
  min-height: 18px;
  margin: 8px 0 10px;
  color: var(--text-dim, #9aa0b5);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.45;
}
.pwa-gate-status.is-ok { color: #40f3a3; }
.pwa-gate-status.is-warn { color: #ffc04d; }
.pwa-gate-install { margin-top: 4px; }
.pwa-gate-refresh {
  margin-top: 9px;
  width: 100%;
  border-radius: 12px;
}
.pwa-gate-lock {
  margin-top: 10px;
  color: #ffcf73;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.45;
}
