/* Shabd Saga - Wordle-style word puzzle board. */
.wd-arena { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.wd-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: min(88vw, 320px);
  touch-action: manipulation;
  user-select: none;
}

.wd-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--casino-line, #2e2e44);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  color: #f5f6fa;
  font-family: "Chivo", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 6vw, 30px);
  text-transform: uppercase;
}
.wd-cell.filled { border-color: #6a6a8c; background: rgba(255,255,255,.07); }
.wd-cell.active { border-color: #7c5cff; }
.wd-cell.correct { background: #37e0a0; color: #0a0a14; border-color: #37e0a0; }
.wd-cell.present { background: #ffd400; color: #0a0a14; border-color: #ffd400; }
.wd-cell.absent { background: #3a3a52; color: #8a8aa5; border-color: #3a3a52; }
.wd-cell.flip { animation: wd-flip .5s ease both; }
@keyframes wd-flip {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}

.wd-keys { display: flex; flex-direction: column; gap: 5px; width: min(96vw, 440px); }
.wd-krow { display: flex; gap: 4px; justify-content: center; }
.wd-krow.last { padding: 0 2px; }
.wd-key {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: none;
  border-radius: 6px;
  background: #565674;
  color: #f5f6fa;
  font-family: "Chivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 15px);
  cursor: pointer;
  touch-action: manipulation;
}
.wd-key.wide { flex: 1.6; font-size: clamp(9px, 2.4vw, 12px); }
.wd-key:active { transform: scale(.94); }
.wd-key.absent { background: #2c2c40; color: #6a6a8c; }
.wd-key.present { background: #b89600; color: #0a0a14; }
.wd-key.correct { background: #26a97c; color: #0a0a14; }

#dailyBtn.on { background: #37e0a0; color: #0a0a14; box-shadow: 0 0 12px rgba(55,224,160,.6); }

/* Lifetime stats grid (Wordle-genre standard) */
.wd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0 4px;
}
.wd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--casino-line, #2e2e44);
  border-radius: 10px;
}
.wd-stat b {
  font-family: "Chivo", system-ui, sans-serif;
  font-size: clamp(15px, 3.5vw, 20px);
  color: #37e0a0;
}
.wd-stat span {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--casino-muted, #9aa0b8);
}
@media (max-width: 480px) {
  .wd-stats { grid-template-columns: repeat(2, 1fr); }
}
