:root{
  --bg: #0b1020;
  --card: #121a31;
  --text: #e6edff;
  --muted: #9fb0d6;
  --primary: #4f8cff;
  --primary-2: #6ea2ff;
  --ok: #3ad07a;
  --error: #ff6b6b;
  --border: #233153;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #17264d, var(--bg) 45%);
  color:var(--text);
}
.container{
  width:min(900px, 92%);
  margin:32px auto;
}
.hero{
  text-align:center;
  margin-bottom:20px;
}
.hero h1{
  margin:0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing:.8px;
}
.hero p{
  margin:8px 0 0;
  color:var(--muted);
}
.card{
  background: linear-gradient(180deg, #141f3b, var(--card));
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
  margin-bottom:16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
h2{margin-top:0}
.muted{color:var(--muted)}
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.vote-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-top:14px;
}
.vote-option{
  background:#0f1730;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
}
.vote-option:hover{border-color:var(--primary)}
.vote-option input{accent-color:var(--primary)}
.btn{
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color:white;
  border:none;
  border-radius:10px;
  padding:12px 16px;
  font-weight:700;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn-secondary{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
}
.ranking{
  margin:12px 0 0;
  padding-left:22px;
}
.ranking li{
  margin:10px 0;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#0f1730;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.message{
  margin-top:12px;
  padding:10px 12px;
  border-radius:10px;
  display:none;
}
.message.ok{
  display:block;
  background: rgba(58,208,122,.12);
  border:1px solid rgba(58,208,122,.5);
  color:#8ef2b4;
}
.message.error{
  display:block;
  background: rgba(255,107,107,.12);
  border:1px solid rgba(255,107,107,.5);
  color:#ff9f9f;
}
.footer{
  text-align:center;
  color:var(--muted);
  margin-top:8px;
}
