* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-sans-jp);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
#app { height: 100dvh; }

/* ---- ボタン ---- */
.btn {
  appearance: none; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-family: inherit; font-size: 15px; font-weight: 500;
  padding: 10px 16px; border-radius: var(--radius); cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: var(--surface-alt); }
.btn:active { opacity: .85; }
.btn-primary { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.btn-primary:hover { filter: brightness(1.05); background: var(--primary); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-danger { color: var(--hbq-urgent); border-color: #e4c4bf; background: #fbf1ef; }

/* ---- 認証画面 ---- */
.auth-screen {
  height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px; text-align: center;
  background: radial-gradient(1200px 600px at 50% -10%, #fbf6ec 0%, var(--bg) 60%);
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-soft); padding: 32px 28px; max-width: 360px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.brand-logo { border-radius: 20px; box-shadow: var(--shadow-soft); }
.brand-title { font-family: var(--font-serif-en); font-size: 28px; margin: 6px 0 0; letter-spacing: .5px; color: var(--text); }
.brand-sub { margin: 0 0 8px; color: var(--text-muted); font-size: 14px; }
.auth-status { font-size: 13px; color: var(--text-muted); min-height: 18px; margin: 4px 0 0; }
.auth-status.error { color: var(--hbq-urgent); }
.auth-note { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; line-height: 1.6; }
.auth-footer { font-size: 11px; color: var(--text-muted); letter-spacing: .5px; }
.gate-steps { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 6px; }
.gate-step { background: var(--surface-alt); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; text-align: left; }

/* ---- 入力 ---- */
.field { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.field label { font-size: 12px; color: var(--text-muted); }
input[type=text], input[type=email], input[type=datetime-local], input[type=date], input[type=time], input[type=color], select, textarea {
  font-family: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
textarea { resize: vertical; min-height: 60px; }
