/* assets/css/style.css */
:root{
  --bg:#0b0c10;
  --card:#12141b;
  --muted:#9aa3b2;
  --text:#eef1f6;
  --line:#24283a;
  --ok:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --btn:#1b2133;
  --btn2:#2a3350;
  --radius:14px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 20% -10%, #1b2250 0%, rgba(0,0,0,0) 60%),
    radial-gradient(900px 500px at 90% 10%, #1a3b2d 0%, rgba(0,0,0,0) 55%),
    var(--bg);
  color:var(--text);
}

.container{
  width:min(1100px, 92vw);
  margin:0 auto;
}

.top{
  border-bottom:1px solid var(--line);
  padding:22px 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}

h1{
  margin:0;
  font-size:22px;
  letter-spacing:.2px;
}

.subtitle{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}

.panel{
  margin:18px 0;
  padding:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.015) 100%);
  border:1px solid var(--line);
  border-radius: var(--radius);
}

.panelHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

h2{
  margin:0;
  font-size:16px;
}

.resultForm{margin-top:14px}

.resultGrid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
}

.resultGrid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  background: rgba(0,0,0,.2);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
}

.resultGrid span{
  font-size:12px;
  color:var(--muted);
}

.resultGrid input{
  width:100%;
  background: transparent;
  border:0;
  outline:0;
  color:var(--text);
  font-size:18px;
  font-weight:650;
  padding:2px 0;
}

.actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}

.btn{
  border:1px solid var(--line);
  background: var(--btn);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
}

.btn:hover{background: var(--btn2)}

.btn.primary{
  background:#2b3bff;
  border-color: rgba(255,255,255,.08);
}

.btn.primary:hover{filter:brightness(1.05)}
.btn.close{background: transparent}

.hint{
  margin:10px 0 0;
  color:var(--muted);
  font-size:13px;
}

.imgButtons{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap:10px;
  margin-top:14px;
}

@media (max-width: 900px){
  .imgButtons{grid-template-columns: repeat(4, minmax(0, 1fr))}
  .resultGrid{grid-template-columns: repeat(3, minmax(0, 1fr))}
}

@media (max-width: 520px){
  .imgButtons{grid-template-columns: repeat(3, minmax(0, 1fr))}
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color:var(--muted);
  font-size:13px;
}

.summary{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 6px;
}

.games{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:12px;
}

@media (max-width: 900px){
  .games{grid-template-columns: 1fr}
}

.gameCard{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  background: rgba(0,0,0,.18);
}

.gameTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.gameTitle{
  font-weight:800;
}

.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  background: rgba(255,255,255,.03);
}

.badge.ok{color: var(--ok); border-color: rgba(34,197,94,.35)}
.badge.warn{color: var(--warn); border-color: rgba(245,158,11,.35)}
.badge.bad{color: var(--bad); border-color: rgba(239,68,68,.35)}

.nums{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.num{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-weight:800;
}

.num.hit{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.10);
  color: var(--ok);
}

.footer{
  padding:22px 0 30px;
  color:var(--muted);
  border-top:1px solid var(--line);
  margin-top:16px;
}

/* Modal */
.modal{
  width:min(920px, 94vw);
  border:1px solid var(--line);
  border-radius:16px;
  background:#0f1118;
  color:var(--text);
  padding:12px;
}

.modal::backdrop{
  background: rgba(0,0,0,.55);
}

.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:6px 6px 12px;
  border-bottom:1px solid var(--line);
}

.modalBody{
  padding:12px 6px 6px;
}

/* Ajustes para não virar “risco” e sempre caber na tela */
.modalBody img{
  width:100%;
  max-height:70vh;
  height:auto;
  object-fit:contain;
  display:block;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}

/* Mensagem de erro opcional no modal */
.imgError{
  margin:10px 0 0;
  color:#ffd2d2;
  font-size:14px;
}
