:root{
  --bg:#0f1115;
  --card:#151923;
  --text:#f5f7ff;
  --muted:#a9b0c3;
  --border:rgba(255,255,255,.10);
  --accent:#e10600;       /* race red */
  --accent2:#9aa3b2;      /* cool gray */
  --input:#0c0f16;
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(225,6,0,.18), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(154,163,178,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{ color:var(--text); }
a:hover{ opacity:.9; }
.container{ width:min(980px, 92vw); margin:24px auto 60px; }
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent),
              var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.header{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:44px; width:auto; display:block; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
h1{ font-size: clamp(22px, 4.6vw, 34px); margin:0; letter-spacing:.2px; }
h2{ font-size: clamp(18px, 4vw, 24px); margin:14px 0 10px; }
p{ color:var(--muted); line-height:1.45; margin:10px 0; }
hr{ border:none; border-top:1px solid var(--border); margin:16px 0; }
.btnrow{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.btn{
  appearance:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:12px 14px;
  border-radius:12px;
  text-decoration:none;
  cursor:pointer;
  font-weight:650;
  letter-spacing:.2px;
  min-height:44px;
}
.btn-primary{
  border-color: rgba(225,6,0,.55);
  background: linear-gradient(180deg, rgba(225,6,0,.22), rgba(225,6,0,.10));
}
.btn:hover{ transform: translateY(-1px); transition:.12s; }
.small{ font-size:.95rem; color:var(--muted); }
.input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: var(--input);
  color:var(--text);
  outline:none;
  min-height:44px;
}
label{ display:block; margin:10px 0 6px; font-weight:700; color:var(--text); }
.grid{ display:grid; grid-template-columns: 1fr; gap:12px; }
@media (min-width: 720px){
  .card{ padding:22px; }
  .grid{ grid-template-columns: 1fr 1fr; }
  .grid.three{ grid-template-columns: 1fr 1fr 1fr; }
}
.agreement{
  white-space:pre-wrap;
  background: rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
  color: #e9ecff;
}
.note{
  background: rgba(154,163,178,.10);
  border:1px solid rgba(154,163,178,.25);
  border-radius:14px;
  padding:12px;
  color: #dfe5ff;
}
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
table{ border-collapse: collapse; width: 100%; margin-top: 14px; }
th, td{ border:1px solid var(--border); padding:10px; text-align:left; }
th{ background: rgba(255,255,255,.03); }

/* Center + stacked buttons (for homepage) */
.center { text-align: center; }

.btnrow.centered { justify-content: center; }

.btnrow.stack {
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.btnrow.stack .btn {
  width: min(320px, 100%);
}
