/* ============================================================
   アカウント（/account/）
   トップページの css/style.css を土台に、ログイン／登録／設定のカードを足す
   ============================================================ */

.ac-lead {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 0.95rem;
}

.ac-card {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.ac-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ac-card h2 + p { margin-top: 6px; }

.ac-loading {
  margin-top: 28px;
  color: var(--text-sub);
  text-align: center;
}

/* ---- お知らせ帯（成功・エラー） ---- */
.ac-msg {
  max-width: 560px;
  margin: 22px auto 0;
  padding: 11px 14px;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  font-size: 0.88rem;
  line-height: 1.7;
}

.ac-msg--ok {
  border-color: rgba(88, 255, 177, 0.5);
  background: rgba(88, 255, 177, 0.1);
  color: #d5ffe9;
}

.ac-msg--err {
  border-color: rgba(255, 46, 136, 0.5);
  background: rgba(255, 46, 136, 0.1);
  color: #ffbcd6;
}

/* ---- 登録記念のプレゼントの案内（ゲストのカード） ---- */
/* ---- ソーシャルログイン ---- */
.ac-social {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ac-sbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}

.ac-sbtn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ac-sbtn svg { width: 20px; height: 20px; flex: none; }
.ac-sbtn--google { background: #fff; color: #1f1f1f; border-color: #d0d4dc; }
.ac-sbtn--x { background: #000; color: #fff; border-color: #3a3a3a; }
.ac-sbtn--discord { background: #5865f2; color: #fff; }

/* 区切り「or use your e-mail」。英語は文が長いので、左右の線は残りの幅に合わせて伸び縮みさせる */
.ac-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 6px;
  color: var(--text-sub);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.ac-or::before,
.ac-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

/* ---- タブ（ログイン／新規登録） ---- */
.ac-tabs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(5, 6, 15, 0.5);
}

.ac-tab {
  flex: 1;
  padding: 9px 6px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-sub);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.ac-tab.is-active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-hi);
}

/* ---- フォーム ---- */
.ac-form { margin-top: 16px; }
.ac-field { margin-bottom: 16px; }

.ac-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ac-input {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 6, 15, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;   /* iOS で自動ズームさせないため 16px 以上 */
  line-height: 1.6;
}

.ac-input:focus {
  outline: none;
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.ac-hint {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 0.76rem;
  line-height: 1.7;
}

.ac-error {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 46, 136, 0.5);
  border-radius: 10px;
  background: rgba(255, 46, 136, 0.1);
  color: #ffbcd6;
  font-size: 0.84rem;
}

.ac-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 6px;
}

button.btn-start {
  border: 0;
  padding: 1.5px;
  font: inherit;
  cursor: pointer;
}

button.btn-start[disabled] {
  animation: none;
  opacity: 0.55;
  cursor: progress;
}

.ac-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--cyan);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
}

.ac-link--danger { color: #ff8fbd; }

/* ---- ログイン中の一覧 ---- */
.ac-rows { margin-top: 12px; }

.ac-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.ac-row:first-child { border-top: 0; padding-top: 4px; }

.ac-row__icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(124, 77, 255, 0.18);
  font-size: 1.1rem;
}

.ac-row__icon svg { width: 20px; height: 20px; }
.ac-row__icon--google { background: #fff; }
.ac-row__icon--x { background: #000; }
.ac-row__icon--discord { background: #5865f2; }

.ac-row__body { flex: 1 1 160px; min-width: 0; }

.ac-row__k {
  display: block;
  color: var(--text-sub);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.ac-row__v {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  /* 英語は単語の途中で折らない。長いメールアドレスのように 1 語で幅を超えるものだけ途中で折る */
  overflow-wrap: anywhere;
}

.ac-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: 2px;
}

.ac-badge--ok { background: rgba(88, 255, 177, 0.16); color: var(--lime); }
.ac-badge--warn { background: rgba(255, 178, 46, 0.18); color: #ffd28a; }
.ac-badge--off { background: rgba(139, 149, 189, 0.16); color: var(--text-sub); }

.ac-row__act { flex: none; display: flex; gap: 8px; }

.ac-btn {
  padding: 7px 13px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.ac-btn:hover { background: rgba(0, 240, 255, 0.18); }
.ac-btn--quiet { border-color: var(--border); background: rgba(16, 20, 42, 0.6); }
.ac-btn--danger { border-color: rgba(255, 46, 136, 0.5); background: rgba(255, 46, 136, 0.08); color: #ffbcd6; }
.ac-btn[disabled] { opacity: 0.5; cursor: progress; }

/* 行の下に開く小さなフォーム */
.ac-sub {
  flex-basis: 100%;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 6, 15, 0.45);
}

.ac-sub .ac-field { margin-bottom: 12px; }
.ac-sub .ac-actions { justify-content: flex-start; margin-top: 2px; }

.ac-note {
  margin-top: 16px;
  color: var(--text-sub);
  font-size: 0.78rem;
  line-height: 1.8;
}

.ac-note--center { text-align: center; }

.ac-about {
  max-width: 560px;
  margin: 28px auto 0;
  color: var(--text-sub);
  font-size: 0.8rem;
  line-height: 1.85;
}

.ac-about h2 {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.06em;
}

.ac-about ul { margin-top: 6px; padding-left: 1.2em; list-style: disc; }
.ac-about li + li { margin-top: 2px; }

.ac-back {
  max-width: 560px;
  margin: 16px auto 0;
  text-align: center;
}

@media (max-width: 600px) {
  .ac-card { padding: 18px 15px; }
}

/* display を指定した要素でも hidden 属性を効かせる（ソーシャルログインのボタン・フォーム・お知らせ帯） */
.page-account [hidden] { display: none !important; }
