:root{
  --bg:#020617;
  --card:#111827;
  --accent:#6366f1;
  --text:#e5e7eb;
}

*{
  box-sizing:border-box;
  font-family:Inter,system-ui,sans-serif;
}

body{
  margin:0;
  background:linear-gradient(135deg,#020617,#1e293b);
  color:var(--text);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
}

header{
  font-size:26px;
  font-weight:600;
  padding:20px;
}

.selector{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:20px;
}

.selector button{
  padding:10px 16px;
  border-radius:999px;
  border:none;
  background:var(--card);
  color:white;
  cursor:pointer;
}

.selector button.active,
.selector button:hover{
  background:var(--accent);
}

.game{
  background:var(--card);
  width:90%;
  max-width:420px;
  padding:25px;
  border-radius:20px;
  text-align:center;
  display:none;
}

.game.active{ display:block; }

button.action{
  padding:10px 16px;
  border:none;
  border-radius:10px;
  background:var(--accent);
  color:white;
  cursor:pointer;
  margin:6px;
}

.result{
  margin-top:14px;
  font-size:18px;
  font-weight:600;
}

.board{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:15px 0;
}

.board button{
  height:80px;
  font-size:28px;
  border:none;
  border-radius:12px;
  background:#020617;
  color:white;
}

.big{
  font-size:64px;
  margin:20px 0;
}

footer{
  margin-top:auto;
  text-align:center;
  font-size:13px;
  padding:16px;
}

.socials{
  display:flex;
  justify-content:center;
  gap:18px;
  margin-top:10px;
}

.socials a,.mail-btn{
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--card);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.socials svg{
  width:20px;
  height:20px;
  fill:var(--text);
}

.email{
  margin-top:6px;
  opacity:0;
  transition:.3s;
}

.email.show{
  opacity:1;
}
