/* ================= RESET ================= */

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:radial-gradient(circle at 30% 30%, #0f7a38, #0b5d2a 60%);
  color:white;
  min-height:100vh;
}



/* ================= HEADER ================= */

.header{
  text-align:center;
  padding:14px 10px;
  font-size:22px;
  font-weight:700;
  letter-spacing:.5px;
}



/* ================= TOPBAR ================= */

.topbar{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:12px auto;
  max-width:1000px;
}

.stat{
  background:rgba(0,0,0,.35);
  padding:6px 12px;
  border-radius:20px;
  font-weight:600;
}



/* ================= BUTTONS ================= */

button{
  background:#ffd54a;
  border:none;
  padding:8px 14px;
  border-radius:12px;
  font-weight:bold;
  cursor:pointer;
  transition:.15s;
}

button:hover{
  transform:scale(1.05);
}

button:active{
  transform:scale(.96);
}



/* ================= LINKS ================= */

a{
  color:white;
  text-decoration:none;
  background:rgba(255,255,255,.15);
  padding:6px 12px;
  border-radius:10px;
  font-size:14px;
}

a:hover{
  background:rgba(255,255,255,.25);
}



/* ================= GAME BOARD ================= */

.board{
  max-width:1100px;
  margin:20px auto;
  padding:10px;

  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(80px, 1fr));
  gap:10px;

  justify-items:center;
}



/* ================= CARDS ================= */

.card{
  width:80px;
  height:110px;

  background:white;
  color:black;

  border-radius:10px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-weight:bold;
  font-size:18px;

  box-shadow:
    0 6px 14px rgba(0,0,0,.45);

  cursor:pointer;

  transition:
    transform .12s,
    box-shadow .12s;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 20px rgba(0,0,0,.55);
}

.red{
  color:#d22;
}



/* ================= ADS ================= */

.ad{
  margin:18px auto;
  max-width:1000px;
  min-height:90px;

  display:flex;
  justify-content:center;
  align-items:center;
}



/* ================= SEO CONTENT ================= */

.seo{
  max-width:900px;
  margin:50px auto;
  padding:0 20px;
  line-height:1.6;
  opacity:.95;
}

.seo h1{
  margin-bottom:14px;
}

.seo h2{
  margin:20px 0 10px;
}

.seo ul{
  padding-left:20px;
  margin:10px 0;
}



/* ================= MOBILE ================= */

@media(max-width:768px){

  .board{
    grid-template-columns:repeat(auto-fit, minmax(65px, 1fr));
  }

  .card{
    width:65px;
    height:95px;
    font-size:16px;
  }

  .topbar{
    gap:6px;
  }

  button, a{
    font-size:13px;
    padding:6px 10px;
  }

}



/* ================= APP LOOK (PWA) ================= */

@media (display-mode: standalone) {
  body{
    padding-top:8px;
  }
}



/* ================= SMOOTH UI ================= */

html{
  scroll-behavior:smooth;
}

