:root{
  --bg1:#050814;
  --bg2:#071022;
  --card: rgba(10,15,28,0.85);
  --border: rgba(255,255,255,0.10);
  --txt:#f3f4f6;
  --muted:#9ca3af;
  --green:#00ff88;
}

*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,Arial;color:var(--txt)}
.bg{
  min-height:100vh;
  background: radial-gradient(circle at top, #0c2030 0, var(--bg1) 60%, #020308 100%);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
}
.card{
  width:min(420px, 100%);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px;
  backdrop-filter: blur(10px);
}
h1,h2{margin:0 0 10px 0}
.muted{color:var(--muted)}
label{display:block;margin:12px 0 6px}
input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color:var(--txt);
}
button{
  width:100%;
  margin-top:14px;
  padding:12px 14px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  background: linear-gradient(135deg, var(--green), #27e0ff);
  color:#00150a;
  font-weight:800;
}
.btn-ghost{
  width:auto;
  background: transparent;
  color:var(--txt);
  border:1px solid var(--border);
  padding:10px 12px;
}
.alert{
  margin:12px 0;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,80,80,0.35);
  background: rgba(255,80,80,0.12);
}
.foot{margin-top:14px;text-align:center}
a{color:var(--green);text-decoration:none}
a:hover{text-decoration:underline}

.top{
  position:fixed; top:0; left:0; right:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  background: rgba(0,0,0,0.35);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(12px);
}
.wrap{
  width:min(980px, 100%);
  margin:92px auto 40px;
  padding:0 16px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
}
.tile{
  display:block;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(10,15,28,0.75);
}
.cards{display:grid; gap:12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));}
.game-card{
  padding:14px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(10,15,28,0.75);
}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,255,136,0.25);
  background: rgba(0,255,136,0.08);
  color: var(--green);
  font-weight:800;
}
.bar{
  margin-top:10px;
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,0.08);
  overflow:hidden;
}
.bar > div{
  height:100%;
  background: linear-gradient(90deg, var(--green), #27e0ff);
}
