.memory-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #111827 0%, #020617 100%);
  color: #fff;
  overflow: hidden;
}

.memory-layout {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

.memory-hud {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}

.memory-board-wrap {
  display: grid;
  place-items: center;
  padding: 16px;
}

.memory-board {
  width: min(88vw, 380px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.memory-card {
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(180deg, #334155, #0f172a);
  color: #fff;
}

.memory-card.revealed,
.memory-card.done {
  background: linear-gradient(180deg, #f9a8d4, #ec4899);
}

.memory-actions {
  padding: 14px;
  display: flex;
  justify-content: center;
}

.memory-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}
