/* =========================
   StreetEmpire — UI Styles (cleaned)
   ========================= */

/* ---------- Design tokens ---------- */
:root{
  --bg:#0b0f14;
  --bg-2:#0f141b;
  --panel:#121923;
  --panel-2:#0e151e;
  --line:#1f2a36;
  --line-soft:#1a2431;
  --text:#e8eaed;
  --muted:#9aa0a6;
  --accent:#3b82f6;
  --accent-2:#22d3ee;
  --good:#10b981;
  --warn:#f59e0b;
  --bad:#ef4444;
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --shadow-soft:0 8px 20px rgba(0,0,0,.25);
  --maxw:1100px;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(59,130,246,.15), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(34,211,238,.10), transparent 60%),
    linear-gradient(180deg,#0a0d12 0%, #0b0f14 60%, #0a0d12 100%);
}
img{max-width:100%; height:auto; display:block}
a{color:var(--text); text-decoration:none}
a:hover{opacity:.9}

/* ---------- Race forms (global) ---------- */
.race-form,
.race-inline-form {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.race-inline-form {
  flex-direction:row;
  align-items:center;
}
.race-form .input,
.race-inline-form .input {
  width:100%;
  max-width:100%;
}
.race-form .btn,
.race-inline-form .btn {
  width:100%;
}
.race-inline-form .input.small {
  flex:1 1 0;
  width:100%;
}

/* ---------- Chat input ---------- */
.chat-form .input,
.chat-form textarea,
.chat-input-wrapper .input,
.chat-inline-form .input {
  width:100%;
  max-width:100%;
}
.chat-form .btn,
.chat-inline-form .btn {
  width:100%;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 16px;
  border-radius:var(--radius);
  border:1px solid transparent;
  background:var(--accent);
  color:#f8fafc;
  font-weight:700;
  cursor:pointer;
}
.btn.ghost{
  background:rgba(255,255,255,0.04);
  border-color:rgba(255,255,255,0.1);
}
.btn.success{background:var(--good);}
.btn.danger{background:var(--bad);}
.btn.small{padding:8px 12px;}
.btn.primary{background:var(--accent);}
.btn.ghost.danger,.btn.danger.ghost{
  background:rgba(239,68,68,0.12);
  color:#fecdd3;
  border-color:rgba(239,68,68,0.35);
}

/* ---------- Inputs ---------- */
.input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.04);
  color:var(--text);
}
form .input,
form select,
form textarea,
.form-control{
  width:100%;
  max-width:100%;
}
select.input,
textarea.input{
  width:100%;
}

/* ---------- Tables & cards ---------- */
.card{
  background:rgba(18,25,35,0.9);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  padding:16px;
  box-shadow:var(--shadow-soft);
}
.table{width:100%; border-collapse:collapse;}
.table th,.table td{padding:8px 10px; text-align:left; border-bottom:1px solid rgba(255,255,255,0.06);}

/* ---------- Messages ---------- */
.pm-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:10px;
}
.pm-form span{color:var(--muted); font-size:13px;}
.pm-form button{width:100%;}

/* (Other site styles should follow here; truncated for brevity) */
