/* RESET + BASE */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f8c8dc, #f4a7c0);
}

/* APP */
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* TOPBAR */
.topbar {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.3);
  margin-top: 20px;
}

.title h1 {
  margin: 0;
  font-size: 40px;
  color: #ff2e7a;
}

.subtitle {
  color: black;
  font-weight: 500;
}

/* STATS */
.stats {
  display: flex;
  gap: 15px;
}

.box {
  background: white;
  padding: 12px 20px;
  border-radius: 999px;
  text-align: center;
}

.value {
  color: #ff2e7a;
  font-weight: 700;
}

/* MAIN */
.main {
  display: flex;
  gap: 20px;
  width: 90%;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 20px;
}

/* FORM */
select {
  width: 100%;
  padding: 10px;
  border-radius: 25px;
  border: none;
  margin-bottom: 10px;
}

/* BUTTONS */
button {
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.05);
}

.primary {
  background: #ff4f90;
  color: white;
}

/* GAME */
.game {
  flex: 1;
  text-align: center;
}

.center-info h2 {
  font-size: 50px;
  color: white;
  margin: 0;
}

#wordDisplay {
  color: #ff2e7a;
  font-size: 36px;
  font-weight: 800;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 20px auto;
}

.cell {
  height: 140px;
  background: white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: 0.2s;
}

.emoji {
  font-size: 45px;
}

.cell {
  height: 140px;
  background: white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: 0.2s;
}

.cell span{ 
   position:absolute; 
   bottom:0; 
   width:100%; 
   background:rgba(0,0,0,0.6); 
   color:white; 
   border-radius:0 0 25px 25px; 
   font-weight:800; 
}
/* ACTIVE STATE */
.active {
  border: 4px solid #ff2e7a;
  transform: scale(1.1);
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {

  .main {
    flex-direction: column;
    align-items: center;
  }

  .sidebar {
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cell {
    height: 120px;
  }

  .center-info h2 {
    font-size: 36px;
  }

  #wordDisplay {
    font-size: 24px;
  }

  .topbar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}