/* herd.gametimecoin.com -- one stylesheet, dark, herd's blue. */
:root {
  --bg: #0f1216;
  --panel: #171b21;
  --panel-2: #1e232b;
  --line: #2a313b;
  --text: #e6e9ee;
  --dim: #9aa0a6;
  --blue: #1e5aa8;
  --blue-hi: #2f73c9;
  --ok: #3fb27f;
  --warn: #d9a441;
  --err: #d9534f;
  --discord: #5865f2;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--blue-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; }
.dim { color: var(--dim); }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* header / footer */
.nav { border-bottom: 1px solid var(--line); background: rgba(15, 18, 22, .92); position: sticky; top: 0; z-index: 5; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.nav-acct { display: flex; align-items: center; gap: 14px; }
.nav-signin { color: var(--text); }
.nav-user { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; color: var(--text); font-size: 14px; }
.nav-user .dim { font-size: 12px; }
.page { flex: 1; padding: 32px 0 48px; }
.foot { border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; padding: 18px 0; flex-wrap: wrap; gap: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px;
       padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; background: var(--panel-2); color: var(--text); }
.btn:hover { text-decoration: none; border-color: var(--blue-hi); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hi); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-danger { color: #f0a3a1; }
.btn-danger:hover { border-color: var(--err); }
.btn-provider { min-width: 240px; color: #fff; }
.btn-discord { background: var(--discord); border-color: var(--discord); }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }

/* cards and messages */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.msg-card, .form-card { max-width: 560px; margin: 24px auto; }
.msg-card h1, .form-card h1 { margin-top: 0; font-size: 26px; }
.flash { background: rgba(47, 115, 201, .14); border: 1px solid rgba(47, 115, 201, .45); border-radius: 10px; padding: 10px 14px; }
.flash-err { background: rgba(217, 83, 79, .12); border-color: rgba(217, 83, 79, .5); }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); vertical-align: middle; }
.tag-ok { color: var(--ok); border-color: rgba(63, 178, 127, .5); }
.tag-tier { color: var(--warn); border-color: rgba(217, 164, 65, .5); font-size: 13px; }

/* landing */
.hero { padding: 40px 0 28px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; max-width: 760px; }
.lead { font-size: 19px; color: #c9cdd3; max-width: 700px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feat h2 { margin: 0 0 6px; font-size: 19px; }
.feat p { margin: 0; color: #c9cdd3; }

/* sign-in / sign-up */
.provider-list { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin: 20px 0; }
.ident { display: inline-flex; align-items: center; gap: 10px; }
.ident img, .linkbar img { border-radius: 50%; width: 28px; height: 28px; object-fit: cover; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form small { font-weight: 400; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
input[type=text] { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
input[type=text]:focus { outline: none; border-color: var(--blue-hi); }
.input-suffix { display: flex; align-items: center; gap: 0; }
.input-suffix input { flex: 1; border-radius: 10px 0 0 10px; }
.input-suffix span { background: var(--panel-2); border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; padding: 10px 12px; color: var(--dim); font-weight: 400; }

/* account */
.acct { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
             background: linear-gradient(135deg, #1b2a44 0%, #171b21 70%); }
.acct-head h1 { margin: 0; font-size: 28px; }
.acct-handle { margin: 2px 0 12px; color: var(--dim); }
.linkbar { display: flex; gap: 8px; min-height: 28px; }
.acct-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; }
.acct-facts dt { color: var(--dim); font-size: 13px; }
.acct-facts dd { margin: 2px 0 0; }
.acct-h2 { font-size: 18px; margin: 14px 0 0; }
.inline-form { display: flex; gap: 10px; align-items: center; }
.inline-form input { flex: 1; }
.acct-list { padding: 6px 22px; }
.acct-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.acct-row:last-child { border-bottom: 0; }
.acct-row form { margin: 0; }
.acct-signout { margin-top: 8px; }

@media (max-width: 560px) {
  .nav-user .dim { display: none; }
  .btn-provider { min-width: 0; width: 100%; }
  .inline-form { flex-direction: column; align-items: stretch; }
}
