:root{
  --bg:#0f1724; --card:#0b1a2b; --accent:#06b6d4; --accent-2:#fb923c; --muted:#94a3b8; --text:#e6eef6;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;background:linear-gradient(180deg,var(--bg),#071021);color:var(--text);display:flex;align-items:center;justify-content:center;padding:24px}

.app{width:100%;max-width:760px}
.app-header {
  margin-top: -10px;
  text-align: center;
  margin-bottom: 20px;
}
.app-header h1 {
  font-size: 26px !important;
  font-weight: 600 !important;
}
.subtitle{margin:0;color:var(--muted);font-size:13px}

.cards{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:16px}

/* cada item */
.card{
  display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 4px 10px rgba(2,6,23,0.6);border:1px solid rgba(255,255,255,0.03);
  cursor:pointer;
}
.badge{flex:0 0 52px;height:52px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#071021;font-size:18px}
.info{flex:1;display:flex;flex-direction:column}
.name{font-weight:700;text-align:left}
.meta{font-size:12px;color:var(--muted);display:none}

/* selected */
.card.selected{
  transform:translateY(-6px);
  box-shadow:0 10px 30px rgba(255,215,0,0.18);
  outline:3px solid rgba(255,215,0,0.25);
  background:linear-gradient(180deg, rgba(255,215,0,0.12), rgba(255,215,0,0.04));
}
.card.selected .badge{
  background: linear-gradient(135deg, #fff59d, #ffd54f);
  color: #FFFFFF; /* text white for selected */
071021;
  font-weight:800;
} 
.card.selected .name{
  color: #FFFFFF; /* text white for selected */
071021;
  font-weight:800;
}
/* Controls */
.controls{display:flex;align-items:center;gap:12px;justify-content:space-between}
.warning{color:#ffb4a2; min-height:20px}
.resultado {
  width: 100%;
  font-size: 2.2rem;
  padding: 14px 18px;
  color: var(--text);
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
}


/* responsive */
@media (max-width:520px){.badge{flex:0 0 44px;height:44px;font-size:16px} .controls{flex-direction:column;align-items:stretch} .resultado {
  width: 100%;
  font-size: 2.2rem;
  padding: 14px 18px;
  color: var(--text);
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
}
}

.selected { color: #FFFFFF !important; }




#resultado {
  font-size: 24px;
  font-weight: 700;
  display: block;
  margin: 10px auto;
  max-width: 90%;
  text-align: center;
  z-index: 9999;
  padding: 6px 12px;
}


header p {
  font-size: 32px !important;
  font-weight: 700 !important;
}

header button, header a {
  margin-bottom: 50px !important;
}


.top-tabela-periodica {
  display: inline-block;
  margin-top: 20px !important;
  margin-bottom: 30px !important;
}
