:root {
  --bg:#0b1020;
  --card:#121a33;
  --text:#e8ecff;
  --muted:#aab3d6;
  --ok:#2ecc71;
  --bad:#ff5a5f;
  --tile:#1b2550;
 }
* { box-sizing: border-box; }
body { 
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:var(--bg);
  color:var(--text);
  display:grid;
  place-items:center;
  min-height:100vh;
 }
.card { 
  width:min(760px, 92vw); 
  background:var(--card); 
  padding:20px; border-radius:16px; 
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
 }
 
.row { 
  display:flex; 
  gap:12px; 
  align-items:center; 
  justify-content:center;  
  flex-wrap:wrap; 
}
h1 { 
  font-size: 1.2rem; 
  margin:0; 
}
label { 
  color:var(--muted); 
  font-size:.9rem;
 }
.controls { 
  display:flex; gap:10px;
  flex-wrap:wrap;
  margin:14px 0;
  justify-content:center;
 }
button { 
  border:1px solid rgba(255,255,255,.15);
  background:transparent; color:var(--text);
  padding:10px 12px; border-radius:10px;
  cursor:pointer; 
}
button.primary {
  background:#2b66ff;
  border-color:#2b66ff;
 }
button:active {
  transform: translateY(1px);
 }
input {
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  background:#0f1630;
  color:var(--text);
  font-size:1rem; 
  }

.hint { 
  display:flex;
   gap:8px;
  flex-wrap:wrap;
  min-height:52px;
  align-items:center;
  padding:10px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:12px; 
}
.tile { width:40px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--tile);
  font-weight:700; 
}
.tile.blank { 
  color: rgba(255,255,255,.35);
 }
.message { 
  min-height: 1.2em;
  margin: 10px 0 0; color: var(--muted); 
}
.message.ok {
  color: var(--ok);
 }
.message.bad {
  color: var(--bad);
 }
.stats { 
  display:flex; 
  gap:16px; 
  justify-content:center;  
  color:var(--muted); 
  margin-top:16px; 
  flex-wrap:wrap; 
}


